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
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true) public void onNaturalMobSpawn(final CreatureSpawnEvent e) { // if grid is not loaded yet, return. if (plugin.getGrid() == null) { return; } // If not in the right world, return if (!IslandGuar...
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true) void function(final CreatureSpawnEvent e) { if (plugin.getGrid() == null) { return; } if (!IslandGuard.inWorld(e.getEntity())) { return; } if (e.getSpawnReason().equals(SpawnReason.NATURAL) e.getSpawnReason().equals(SpawnReason.CHUNK_GEN) e.getSpawnRea...
/** * Prevents mobs spawning naturally at spawn or in an island * * @param e - event */
Prevents mobs spawning naturally at spawn or in an island
onNaturalMobSpawn
{ "repo_name": "tastybento/askyblock", "path": "src/com/wasteofplastic/askyblock/listeners/EntityLimits.java", "license": "gpl-2.0", "size": 39546 }
[ "com.wasteofplastic.askyblock.Island", "org.bukkit.entity.Animals", "org.bukkit.entity.Monster", "org.bukkit.entity.Slime", "org.bukkit.event.EventHandler", "org.bukkit.event.EventPriority", "org.bukkit.event.entity.CreatureSpawnEvent" ]
import com.wasteofplastic.askyblock.Island; import org.bukkit.entity.Animals; import org.bukkit.entity.Monster; import org.bukkit.entity.Slime; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.entity.CreatureSpawnEvent;
import com.wasteofplastic.askyblock.*; import org.bukkit.entity.*; import org.bukkit.event.*; import org.bukkit.event.entity.*;
[ "com.wasteofplastic.askyblock", "org.bukkit.entity", "org.bukkit.event" ]
com.wasteofplastic.askyblock; org.bukkit.entity; org.bukkit.event;
2,154,231
protected final void emit_arraylength() { popAddr(T0); asm.emitLIntOffset(T1, T0, ObjectModel.getArrayLengthOffset()); pushInt(T1); }
final void function() { popAddr(T0); asm.emitLIntOffset(T1, T0, ObjectModel.getArrayLengthOffset()); pushInt(T1); }
/** * Emit code to implement the arraylength bytecode */
Emit code to implement the arraylength bytecode
emit_arraylength
{ "repo_name": "ut-osa/laminar", "path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/compilers/baseline/ppc/BaselineCompilerImpl.java", "license": "bsd-3-clause", "size": 181446 }
[ "org.jikesrvm.objectmodel.ObjectModel" ]
import org.jikesrvm.objectmodel.ObjectModel;
import org.jikesrvm.objectmodel.*;
[ "org.jikesrvm.objectmodel" ]
org.jikesrvm.objectmodel;
2,834,790
Pair<Boolean, Long> getCommandHostDelegation(long hostId, Command cmd);
Pair<Boolean, Long> getCommandHostDelegation(long hostId, Command cmd);
/** * Give hypervisor guru opportunity to decide if certain command needs to be delegated to other host, mainly to secondary storage VM host * * @param hostId original hypervisor host * @param cmd command that is going to be sent, hypervisor guru usually needs to register various context objects int...
Give hypervisor guru opportunity to decide if certain command needs to be delegated to other host, mainly to secondary storage VM host
getCommandHostDelegation
{ "repo_name": "ikoula/cloudstack", "path": "api/src/com/cloud/hypervisor/HypervisorGuru.java", "license": "gpl-2.0", "size": 3276 }
[ "com.cloud.agent.api.Command", "com.cloud.utils.Pair" ]
import com.cloud.agent.api.Command; import com.cloud.utils.Pair;
import com.cloud.agent.api.*; import com.cloud.utils.*;
[ "com.cloud.agent", "com.cloud.utils" ]
com.cloud.agent; com.cloud.utils;
2,861,742
public long readBERLength() throws EOFException, IOException, KLVException { long val = 0; int b = read(); if (b <= 0) { throw new EOFException(); } if ((b & 0x80) == 0) { return b; } int bersz = (b & 0x0f); ...
long function() throws EOFException, IOException, KLVException { long val = 0; int b = read(); if (b <= 0) { throw new EOFException(); } if ((b & 0x80) == 0) { return b; } int bersz = (b & 0x0f); if (bersz > 8) { throw new KLVException(MAX_LENGTH_EXCEEED); } byte[] octets = new byte[bersz]; if (read(octets) < bersz) { ...
/** * Reads a single BER-encoded length. The maximum length of the encoded length is 8 bytes. * * @return Length * @throws EOFException * @throws IOException * @throws KLVException */
Reads a single BER-encoded length. The maximum length of the encoded length is 8 bytes
readBERLength
{ "repo_name": "ethanchan747/regxmllib", "path": "regxmllib/src/main/java/com/sandflow/smpte/klv/KLVInputStream.java", "license": "bsd-2-clause", "size": 10569 }
[ "com.sandflow.smpte.klv.exceptions.KLVException", "java.io.EOFException", "java.io.IOException" ]
import com.sandflow.smpte.klv.exceptions.KLVException; import java.io.EOFException; import java.io.IOException;
import com.sandflow.smpte.klv.exceptions.*; import java.io.*;
[ "com.sandflow.smpte", "java.io" ]
com.sandflow.smpte; java.io;
2,877,115
EList<TransformType> getTransform();
EList<TransformType> getTransform();
/** * Returns the value of the '<em><b>Transform</b></em>' containment reference list. * The list contents are of type {@link org.w3._2000._09.xmldsig.TransformType}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Transform</em>' containment reference list isn't clear, * there really should be...
Returns the value of the 'Transform' containment reference list. The list contents are of type <code>org.w3._2000._09.xmldsig.TransformType</code>. If the meaning of the 'Transform' containment reference list isn't clear, there really should be more of a description here...
getTransform
{ "repo_name": "GRA-UML/tool", "path": "plugins/org.ijis.gra.ebxml.cpp-cpa/src/org/w3/_2000/_09/xmldsig/TransformsType.java", "license": "epl-1.0", "size": 1399 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
144,508
FreeformLayeredPane layeredPane = new FreeformLayeredPane(); FreeformLayer comp = new FreeformLayer(); comp.setLayoutManager(new FreeformLayout()); layeredPane.add(comp, COMPONENT_LAYER); layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER); layeredPane.add(new FreeformLaye...
FreeformLayeredPane layeredPane = new FreeformLayeredPane(); FreeformLayer comp = new FreeformLayer(); comp.setLayoutManager(new FreeformLayout()); layeredPane.add(comp, COMPONENT_LAYER); layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER); layeredPane.add(new FreeformLayer(), PRIMARY_LAYER); return layeredPane; }
/** * Overwrite this function and add the connection layer before the primary layer. This will make the nodes display on top of the connections. */
Overwrite this function and add the connection layer before the primary layer. This will make the nodes display on top of the connections
createPrintableLayers
{ "repo_name": "gmussbacher/seg.jUCMNav", "path": "src/seg/jUCMNav/editparts/UCMConnectionOnBottomRootEditPart.java", "license": "epl-1.0", "size": 1870 }
[ "org.eclipse.draw2d.ConnectionLayer", "org.eclipse.draw2d.FreeformLayer", "org.eclipse.draw2d.FreeformLayeredPane", "org.eclipse.draw2d.FreeformLayout" ]
import org.eclipse.draw2d.ConnectionLayer; import org.eclipse.draw2d.FreeformLayer; import org.eclipse.draw2d.FreeformLayeredPane; import org.eclipse.draw2d.FreeformLayout;
import org.eclipse.draw2d.*;
[ "org.eclipse.draw2d" ]
org.eclipse.draw2d;
1,619,093
private void startTask( ) { this.lock.lock( ); try { if ( this.isShutdown( ) ) { throw new RejectedExecutionException( "Executor already shutdown" ); } this.runningTasks++; } finally { this.lock.unlock( ); } }
void function( ) { this.lock.lock( ); try { if ( this.isShutdown( ) ) { throw new RejectedExecutionException( STR ); } this.runningTasks++; } finally { this.lock.unlock( ); } }
/** * Checks if the executor has been shut down and increments the running task count. * * @throws RejectedExecutionException * if the executor has been previously shutdown */
Checks if the executor has been shut down and increments the running task count
startTask
{ "repo_name": "davenpcj5542009/eucalyptus", "path": "clc/modules/msgs/src/main/java/com/eucalyptus/system/Threads.java", "license": "gpl-3.0", "size": 30857 }
[ "java.util.concurrent.RejectedExecutionException" ]
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,688,202
public List<String> getDocumentsSpecificToUser(final String username) throws ServiceException { try { return userDocumentQueries.getVisibleDocumentsSpecificToUser(username); } catch(DataAccessException e) { throw new ServiceException(e); } }
List<String> function(final String username) throws ServiceException { try { return userDocumentQueries.getVisibleDocumentsSpecificToUser(username); } catch(DataAccessException e) { throw new ServiceException(e); } }
/** * Retrieves the ID for all documents directly associated with the user. * * @param username The username of the user. * * @return A list of document IDs. * * @throws ServiceException Thrown if there is an error. */
Retrieves the ID for all documents directly associated with the user
getDocumentsSpecificToUser
{ "repo_name": "HaiJiaoXinHeng/server-1", "path": "src/org/ohmage/service/UserDocumentServices.java", "license": "apache-2.0", "size": 18458 }
[ "java.util.List", "org.ohmage.exception.DataAccessException", "org.ohmage.exception.ServiceException" ]
import java.util.List; import org.ohmage.exception.DataAccessException; import org.ohmage.exception.ServiceException;
import java.util.*; import org.ohmage.exception.*;
[ "java.util", "org.ohmage.exception" ]
java.util; org.ohmage.exception;
575,289
private void removeSubnetsWithAvailableIpsLessThan(List<Subnet> subnets, int availableIps) { Iterator<Subnet> iterator = subnets.iterator(); while (iterator.hasNext()) { Subnet subnet = iterator.next(); if (subnet.getAvailableIpAddressCount() < availableIps) ...
void function(List<Subnet> subnets, int availableIps) { Iterator<Subnet> iterator = subnets.iterator(); while (iterator.hasNext()) { Subnet subnet = iterator.next(); if (subnet.getAvailableIpAddressCount() < availableIps) { iterator.remove(); } } } /** * Creates a new {@link EmrClusterPriceDto} object from the given pa...
/** * Updates the given list of subnets to remove subnets with number of available IPs less than the given value. * * @param subnets List of subnets * @param availableIps The number of available IPs to filter by */
Updates the given list of subnets to remove subnets with number of available IPs less than the given value
removeSubnetsWithAvailableIpsLessThan
{ "repo_name": "seoj/herd", "path": "herd-code/herd-dao/src/main/java/org/finra/herd/dao/helper/EmrPricingHelper.java", "license": "apache-2.0", "size": 27356 }
[ "com.amazonaws.services.ec2.model.Subnet", "java.util.Iterator", "java.util.List", "org.finra.herd.model.dto.EmrClusterPriceDto" ]
import com.amazonaws.services.ec2.model.Subnet; import java.util.Iterator; import java.util.List; import org.finra.herd.model.dto.EmrClusterPriceDto;
import com.amazonaws.services.ec2.model.*; import java.util.*; import org.finra.herd.model.dto.*;
[ "com.amazonaws.services", "java.util", "org.finra.herd" ]
com.amazonaws.services; java.util; org.finra.herd;
1,976,906
@NotNull public static Dependency[] fromString(@NotNull String ... str) { List<Dependency> deps = new ArrayList<>(str.length); for (String s : str) { Dependency dep = Dependency.fromString(s); if (dep != null) { deps.add(dep); } } ...
static Dependency[] function(@NotNull String ... str) { List<Dependency> deps = new ArrayList<>(str.length); for (String s : str) { Dependency dep = Dependency.fromString(s); if (dep != null) { deps.add(dep); } } return deps.toArray(new Dependency[deps.size()]); }
/** * Returns dependencies from the given strings. * @param str the strings * @return the dependencies */
Returns dependencies from the given strings
fromString
{ "repo_name": "tripodsan/jackrabbit-filevault", "path": "vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/Dependency.java", "license": "apache-2.0", "size": 8604 }
[ "java.util.ArrayList", "java.util.List", "org.jetbrains.annotations.NotNull" ]
import java.util.ArrayList; import java.util.List; import org.jetbrains.annotations.NotNull;
import java.util.*; import org.jetbrains.annotations.*;
[ "java.util", "org.jetbrains.annotations" ]
java.util; org.jetbrains.annotations;
1,407,024
User getRelatedUser(User user, String relation, String peasId) throws WorkflowException;
User getRelatedUser(User user, String relation, String peasId) throws WorkflowException;
/** * Get a user from a given user and relation * @param user reference user * @param relation relation between given user and searched user * @param peasId the id of workflow peas associated to that information * @return the user that has the given relation with given user */
Get a user from a given user and relation
getRelatedUser
{ "repo_name": "SilverDav/Silverpeas-Core", "path": "core-services/workflow/src/main/java/org/silverpeas/core/workflow/api/UserManager.java", "license": "agpl-3.0", "size": 2335 }
[ "org.silverpeas.core.workflow.api.user.User" ]
import org.silverpeas.core.workflow.api.user.User;
import org.silverpeas.core.workflow.api.user.*;
[ "org.silverpeas.core" ]
org.silverpeas.core;
2,189,777
public boolean validPDFFile(FileMeta fileInQuestion, ErrorReporter errorReporterService, String errorPrefix);
boolean function(FileMeta fileInQuestion, ErrorReporter errorReporterService, String errorPrefix);
/** * This method checks to see if the attachment is of type PDF * @param fileInQuestion * @param errorReporterService * @param errorPrefix * @return boolean */
This method checks to see if the attachment is of type PDF
validPDFFile
{ "repo_name": "sanjupolus/KC6.oLatest", "path": "coeus-impl/src/main/java/org/kuali/coeus/common/framework/attachment/KcAttachmentService.java", "license": "agpl-3.0", "size": 2308 }
[ "org.kuali.coeus.sys.framework.validation.ErrorReporter", "org.kuali.rice.krad.file.FileMeta" ]
import org.kuali.coeus.sys.framework.validation.ErrorReporter; import org.kuali.rice.krad.file.FileMeta;
import org.kuali.coeus.sys.framework.validation.*; import org.kuali.rice.krad.file.*;
[ "org.kuali.coeus", "org.kuali.rice" ]
org.kuali.coeus; org.kuali.rice;
1,768,086
public void saveGradesAndComments(String gradebookUid, Long assignmentId, List<GradeDefinition> gradeDefList) throws InvalidGradeException, GradebookNotFoundException, AssessmentNotFoundException;
void function(String gradebookUid, Long assignmentId, List<GradeDefinition> gradeDefList) throws InvalidGradeException, GradebookNotFoundException, AssessmentNotFoundException;
/** * Given a list of GradeDefinitions for students for a given gradebook and gradable object, * will save the associated scores and comments. Scores must be in a format * according to the gradebook's grade entry type (ie points, %, letter). * @param gradebookUid * @param assignmentId * @param gradeDefLis...
Given a list of GradeDefinitions for students for a given gradebook and gradable object, will save the associated scores and comments. Scores must be in a format according to the gradebook's grade entry type (ie points, %, letter)
saveGradesAndComments
{ "repo_name": "buckett/sakai-gitflow", "path": "edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/GradebookService.java", "license": "apache-2.0", "size": 30679 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,410,542
void exitClassMemberDeclaration(@NotNull Java8Parser.ClassMemberDeclarationContext ctx);
void exitClassMemberDeclaration(@NotNull Java8Parser.ClassMemberDeclarationContext ctx);
/** * Exit a parse tree produced by {@link Java8Parser#classMemberDeclaration}. * * @param ctx the parse tree */
Exit a parse tree produced by <code>Java8Parser#classMemberDeclaration</code>
exitClassMemberDeclaration
{ "repo_name": "BigDaddy-Germany/WHOAMI", "path": "WHOAMI/src/de/aima13/whoami/modules/syntaxcheck/languages/antlrgen/Java8Listener.java", "license": "mit", "size": 97945 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
100,161
private Set<PortNumber> getPorts(Collection<TrafficTreatment> treatments) { ImmutableSet.Builder<PortNumber> builder = ImmutableSet.builder(); treatments.forEach(treatment -> { treatment.allInstructions().stream() .filter(instr -> instr instanceof OutputInstruction) ...
Set<PortNumber> function(Collection<TrafficTreatment> treatments) { ImmutableSet.Builder<PortNumber> builder = ImmutableSet.builder(); treatments.forEach(treatment -> { treatment.allInstructions().stream() .filter(instr -> instr instanceof OutputInstruction) .forEach(instr -> { builder.add(((OutputInstruction) instr).p...
/** * Gets output ports information from treatments. * * @param treatments collection of traffic treatments * @return set of output port numbers */
Gets output ports information from treatments
getPorts
{ "repo_name": "Shashikanth-Huawei/bmp", "path": "apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/McastHandler.java", "license": "apache-2.0", "size": 35116 }
[ "com.google.common.collect.ImmutableSet", "java.util.Collection", "java.util.Set", "org.onosproject.net.PortNumber", "org.onosproject.net.flow.TrafficTreatment", "org.onosproject.net.flow.instructions.Instructions" ]
import com.google.common.collect.ImmutableSet; import java.util.Collection; import java.util.Set; import org.onosproject.net.PortNumber; import org.onosproject.net.flow.TrafficTreatment; import org.onosproject.net.flow.instructions.Instructions;
import com.google.common.collect.*; import java.util.*; import org.onosproject.net.*; import org.onosproject.net.flow.*; import org.onosproject.net.flow.instructions.*;
[ "com.google.common", "java.util", "org.onosproject.net" ]
com.google.common; java.util; org.onosproject.net;
1,474,245
public boolean stopPodListener(TimeUnit timeUnit, long joinWait) { if (!isShutdown.get() && inKubernetes) { isShutdown.set(true); // stop the pod listener thread podListenerThread.interrupt(); long waitMillis = timeUnit.toMillis(joinWait); try { podListenerThread.join(waitMil...
boolean function(TimeUnit timeUnit, long joinWait) { if (!isShutdown.get() && inKubernetes) { isShutdown.set(true); podListenerThread.interrupt(); long waitMillis = timeUnit.toMillis(joinWait); try { podListenerThread.join(waitMillis); } catch (InterruptedException ex) { return false; } } return true; }
/** * Stop pod listener flips the isShutdown flag so we don't do it more than once. It tries to join * the pod listener thread. * * @param timeUnit time unit to wait for the listener thread to stop * @param joinWait time in the time unit to wait * @return true if we joined the listener thread; false i...
Stop pod listener flips the isShutdown flag so we don't do it more than once. It tries to join the pod listener thread
stopPodListener
{ "repo_name": "DataBiosphere/terra-common-lib", "path": "src/main/java/bio/terra/common/kubernetes/KubeService.java", "license": "bsd-3-clause", "size": 7299 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,802,160
public String getAssessmentName() { return Validator.check(assessmentName, "N/A"); }
String function() { return Validator.check(assessmentName, "N/A"); }
/** * get assessment name * * @return the name */
get assessment name
getAssessmentName
{ "repo_name": "marktriggs/nyu-sakai-10.4", "path": "samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/evaluation/QuestionScoresBean.java", "license": "apache-2.0", "size": 22504 }
[ "org.sakaiproject.tool.assessment.ui.bean.util.Validator" ]
import org.sakaiproject.tool.assessment.ui.bean.util.Validator;
import org.sakaiproject.tool.assessment.ui.bean.util.*;
[ "org.sakaiproject.tool" ]
org.sakaiproject.tool;
1,482,794
/// initialize LOGGER.finer("Generating csw:DescribeRecordResponse..."); DescribeRecordOptions drOptions = context.getRequestOptions().getDescribeRecordOptions(); // load the resource document String loc = drOptions.getDescribeRecordLocation(); Document dom = DomUtil.makeDomFromResourceP...
LOGGER.finer(STR); DescribeRecordOptions drOptions = context.getRequestOptions().getDescribeRecordOptions(); String loc = drOptions.getDescribeRecordLocation(); Document dom = DomUtil.makeDomFromResourcePath(loc,true); CswNamespaces ns = new CswNamespaces(); XPath xpath = XPathFactory.newInstance().newXPath(); xpath.se...
/** * Generates the response. * @param context the operation context * @throws Exception if a processing exception occurs */
Generates the response
generateResponse
{ "repo_name": "GeoinformationSystems/geoportal-server", "path": "geoportal/src/com/esri/gpt/server/csw/provider/components/DescribeRecordResponse.java", "license": "apache-2.0", "size": 6404 }
[ "com.esri.gpt.framework.collection.StringSet", "com.esri.gpt.framework.util.Val", "com.esri.gpt.framework.xml.DomUtil", "com.esri.gpt.framework.xml.XmlIoUtil", "java.util.ArrayList", "javax.xml.xpath.XPath", "javax.xml.xpath.XPathConstants", "javax.xml.xpath.XPathFactory", "org.w3c.dom.Document", ...
import com.esri.gpt.framework.collection.StringSet; import com.esri.gpt.framework.util.Val; import com.esri.gpt.framework.xml.DomUtil; import com.esri.gpt.framework.xml.XmlIoUtil; import java.util.ArrayList; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathFactory; import...
import com.esri.gpt.framework.collection.*; import com.esri.gpt.framework.util.*; import com.esri.gpt.framework.xml.*; import java.util.*; import javax.xml.xpath.*; import org.w3c.dom.*;
[ "com.esri.gpt", "java.util", "javax.xml", "org.w3c.dom" ]
com.esri.gpt; java.util; javax.xml; org.w3c.dom;
1,082,705
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<Flux<ByteBuffer>>> installPatchesWithResponseAsync( String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput) { if (this.client.getEndpoint() == null) { return Mono ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String resourceGroupName, String vmName, VirtualMachineInstallPatchesParameters installPatchesInput) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null)...
/** * Installs patches on the VM. * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param installPatchesInput Input for InstallPatches as directly received by the API. * @throws IllegalArgumentException thrown if parameters fai...
Installs patches on the VM
installPatchesWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java", "license": "mit", "size": 333925 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.compute.models.VirtualMachineInstallPatchesParameters", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.compute.models.VirtualMachineInstallPatchesParameters; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.compute.models.*; import java.nio.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.nio" ]
com.azure.core; com.azure.resourcemanager; java.nio;
902,751
void flushTo(OutputStream out) throws IOException { bufReady.writeTo(out); // write data to file bufReady.reset(); // erase all data in the buffer }
void flushTo(OutputStream out) throws IOException { bufReady.writeTo(out); bufReady.reset(); }
/** * Writes the content of the "ready" buffer to the given output stream, * and resets it. Does not swap any buffers. */
Writes the content of the "ready" buffer to the given output stream, and resets it. Does not swap any buffers
flushTo
{ "repo_name": "moreus/hadoop", "path": "hadoop-0.23.10/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditsDoubleBuffer.java", "license": "apache-2.0", "size": 4296 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,422,727
EAttribute getSetType_Fill();
EAttribute getSetType_Fill();
/** * Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getFill <em>Fill</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Fill</em>'. * @see org.w3._2001.smil20.language.SetType#getFill() * @see ...
Returns the meta object for the attribute '<code>org.w3._2001.smil20.language.SetType#getFill Fill</code>'.
getSetType_Fill
{ "repo_name": "geotools/geotools", "path": "modules/ogc/net.opengis.wmts/src/org/w3/_2001/smil20/language/LanguagePackage.java", "license": "lgpl-2.1", "size": 137841 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,284,592
Entity getBaseVehicle();
Entity getBaseVehicle();
/** * Gets the base vehicle this entity may indirectly be riding. * * @return The base vehicle */
Gets the base vehicle this entity may indirectly be riding
getBaseVehicle
{ "repo_name": "caseif/SpongeAPI", "path": "src/main/java/org/spongepowered/api/data/manipulator/entity/PassengerData.java", "license": "mit", "size": 2092 }
[ "org.spongepowered.api.entity.Entity" ]
import org.spongepowered.api.entity.Entity;
import org.spongepowered.api.entity.*;
[ "org.spongepowered.api" ]
org.spongepowered.api;
607,360
public EnvEntryType<T> removeEnvEntryType() { childNode.removeChildren("env-entry-type"); return this; } // --------------------------------------------------------------------------------------------------------|| // ClassName: EnvEntryType ElementName: xsd:string ElementType : env-entry-...
EnvEntryType<T> function() { childNode.removeChildren(STR); return this; }
/** * Removes the <code>env-entry-type</code> element * @return the current instance of <code>EnvEntryType<T></code> */
Removes the <code>env-entry-type</code> element
removeEnvEntryType
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/javaee6/EnvEntryTypeImpl.java", "license": "epl-1.0", "size": 12856 }
[ "org.jboss.shrinkwrap.descriptor.api.javaee6.EnvEntryType" ]
import org.jboss.shrinkwrap.descriptor.api.javaee6.EnvEntryType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
1,332,069
public static <T> QueryPlus<T> wrap(Query<T> query) { Preconditions.checkNotNull(query); return new QueryPlus<>(query, null); } private final Query<T> query; private final QueryMetrics<?> queryMetrics; private QueryPlus(Query<T> query, QueryMetrics<?> queryMetrics) { this.query = query; ...
static <T> QueryPlus<T> function(Query<T> query) { Preconditions.checkNotNull(query); return new QueryPlus<>(query, null); } private final Query<T> query; private final QueryMetrics<?> queryMetrics; private QueryPlus(Query<T> query, QueryMetrics<?> queryMetrics) { this.query = query; this.queryMetrics = queryMetrics; }
/** * Returns the minimum bare QueryPlus object with the given query. {@link #getQueryMetrics()} of the QueryPlus object, * returned from this factory method, returns {@code null}. */
Returns the minimum bare QueryPlus object with the given query. <code>#getQueryMetrics()</code> of the QueryPlus object, returned from this factory method, returns null
wrap
{ "repo_name": "noddi/druid", "path": "processing/src/main/java/io/druid/query/QueryPlus.java", "license": "apache-2.0", "size": 4590 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,363,402
protected boolean readAtOffset(FSDataInputStream istream, ByteBuff dest, int size, boolean peekIntoNextBlock, long fileOffset, boolean pread) throws IOException { if (!pread) { // Seek + read. Better for scanning. HFileUtil.seekOnMultipleSources(istream, fileOffset); long realO...
boolean function(FSDataInputStream istream, ByteBuff dest, int size, boolean peekIntoNextBlock, long fileOffset, boolean pread) throws IOException { if (!pread) { HFileUtil.seekOnMultipleSources(istream, fileOffset); long realOffset = istream.getPos(); if (realOffset != fileOffset) { throw new IOException(STR + fileOff...
/** * Does a positional read or a seek and read into the given byte buffer. We need take care that * we will call the {@link ByteBuff#release()} for every exit to deallocate the ByteBuffers, * otherwise the memory leak may happen. * @param dest destination buffer * @param size size of read ...
Does a positional read or a seek and read into the given byte buffer. We need take care that we will call the <code>ByteBuff#release()</code> for every exit to deallocate the ByteBuffers, otherwise the memory leak may happen
readAtOffset
{ "repo_name": "ChinmaySKulkarni/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java", "license": "apache-2.0", "size": 89101 }
[ "java.io.IOException", "org.apache.hadoop.fs.FSDataInputStream", "org.apache.hadoop.hbase.io.util.BlockIOUtils", "org.apache.hadoop.hbase.nio.ByteBuff" ]
import java.io.IOException; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.hbase.io.util.BlockIOUtils; import org.apache.hadoop.hbase.nio.ByteBuff;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.io.util.*; import org.apache.hadoop.hbase.nio.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
181,847
boolean isExistingTemplate(String templateName, String tenantDomain) throws IdentityApplicationManagementException;
boolean isExistingTemplate(String templateName, String tenantDomain) throws IdentityApplicationManagementException;
/** * Check Existence of a application template. * * @param templateName name of the template * @param tenantDomain tenant domain * @return true if a template with the specified template name exists * @throws IdentityApplicationManagementException */
Check Existence of a application template
isExistingTemplate
{ "repo_name": "omindu/carbon-identity-framework", "path": "components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/dao/ApplicationTemplateDAO.java", "license": "apache-2.0", "size": 3273 }
[ "org.wso2.carbon.identity.application.common.IdentityApplicationManagementException" ]
import org.wso2.carbon.identity.application.common.IdentityApplicationManagementException;
import org.wso2.carbon.identity.application.common.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,921,078
private static void initializeJcrResourceProvider(BundleContext bundleContext) { Dictionary<String, Object> config = new Hashtable<String, Object>(); JcrResourceProvider provider = new JcrResourceProvider(); MockOsgi.injectServices(provider, bundleContext); MockOsgi.activate(provider...
static void function(BundleContext bundleContext) { Dictionary<String, Object> config = new Hashtable<String, Object>(); JcrResourceProvider provider = new JcrResourceProvider(); MockOsgi.injectServices(provider, bundleContext); MockOsgi.activate(provider, bundleContext, config); bundleContext.registerService(ResourceP...
/** * Initialize JCR resource provider. * @param bundleContext Bundle context */
Initialize JCR resource provider
initializeJcrResourceProvider
{ "repo_name": "tmaret/sling", "path": "testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/ResourceResolverFactoryInitializer.java", "license": "apache-2.0", "size": 8616 }
[ "java.util.Dictionary", "java.util.Hashtable", "org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider", "org.apache.sling.spi.resource.provider.ResourceProvider", "org.apache.sling.testing.mock.osgi.MockOsgi", "org.osgi.framework.BundleContext" ]
import java.util.Dictionary; import java.util.Hashtable; import org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider; import org.apache.sling.spi.resource.provider.ResourceProvider; import org.apache.sling.testing.mock.osgi.MockOsgi; import org.osgi.framework.BundleContext;
import java.util.*; import org.apache.sling.jcr.resource.internal.helper.jcr.*; import org.apache.sling.spi.resource.provider.*; import org.apache.sling.testing.mock.osgi.*; import org.osgi.framework.*;
[ "java.util", "org.apache.sling", "org.osgi.framework" ]
java.util; org.apache.sling; org.osgi.framework;
2,868,782
public HashSet<GroupMembershipRecord> getRecords() { return this.records; }
HashSet<GroupMembershipRecord> function() { return this.records; }
/** * Gets a HashSet containing the group membership records. * @return A reference to the internal group record HashSet. */
Gets a HashSet containing the group membership records
getRecords
{ "repo_name": "chenxiuheng/js4ms", "path": "js4ms-jsdk/amt/src/main/java/org/js4ms/amt/proxy/MembershipReport.java", "license": "apache-2.0", "size": 2098 }
[ "java.util.HashSet", "org.js4ms.amt.message.GroupMembershipRecord" ]
import java.util.HashSet; import org.js4ms.amt.message.GroupMembershipRecord;
import java.util.*; import org.js4ms.amt.message.*;
[ "java.util", "org.js4ms.amt" ]
java.util; org.js4ms.amt;
1,685,646
public static void trace(Level logLevel, EnvironmentImpl envImpl, String msg) { envImpl.getLogger().log(logLevel, msg); }
static void function(Level logLevel, EnvironmentImpl envImpl, String msg) { envImpl.getLogger().log(logLevel, msg); }
/** * Logger method for recording a general message. */
Logger method for recording a general message
trace
{ "repo_name": "ckaestne/CIDE", "path": "CIDE_Samples/cide_samples/Berkeley DB JE/src/com/sleepycat/je/utilint/Tracer.java", "license": "gpl-3.0", "size": 6982 }
[ "com.sleepycat.je.dbi.EnvironmentImpl", "java.util.logging.Level" ]
import com.sleepycat.je.dbi.EnvironmentImpl; import java.util.logging.Level;
import com.sleepycat.je.dbi.*; import java.util.logging.*;
[ "com.sleepycat.je", "java.util" ]
com.sleepycat.je; java.util;
171,671
@Override public ReviewEntity getReview(Long reviewid) { try { return persistence.find(reviewid); }catch(NoResultException e){ throw new IllegalArgumentException("El Review no existe"); } }
ReviewEntity function(Long reviewid) { try { return persistence.find(reviewid); }catch(NoResultException e){ throw new IllegalArgumentException(STR); } }
/** * Obtiene los datos de una instancia de Review a partir de su ID. * * @pre La existencia del elemento padre Book se debe garantizar. * @param reviewid) Identificador del Review a consultar * @return Instancia de ReviewEntity con los datos del Review consultado. * @generated */
Obtiene los datos de una instancia de Review a partir de su ID
getReview
{ "repo_name": "diegofruizs/book", "path": "book-logic/src/main/java/co/edu/uniandes/csw/book/ejbs/ReviewLogic.java", "license": "mit", "size": 4929 }
[ "co.edu.uniandes.csw.book.entities.ReviewEntity", "javax.persistence.NoResultException" ]
import co.edu.uniandes.csw.book.entities.ReviewEntity; import javax.persistence.NoResultException;
import co.edu.uniandes.csw.book.entities.*; import javax.persistence.*;
[ "co.edu.uniandes", "javax.persistence" ]
co.edu.uniandes; javax.persistence;
1,090,917
protected void assertContains(Resource s, URI p, String l) throws RepositoryException { assertContains(s, p, RDFUtils.literal(l)); }
void function(Resource s, URI p, String l) throws RepositoryException { assertContains(s, p, RDFUtils.literal(l)); }
/** * Assert that the model contains the statement <code>(s p l)</code> where * <code>l</code> is a literal. * * @param s * subject. * @param p * predicate. * @param l * literal content. * @throws RepositoryException */
Assert that the model contains the statement <code>(s p l)</code> where <code>l</code> is a literal
assertContains
{ "repo_name": "kidaa/any23", "path": "core/src/test/java/org/apache/any23/extractor/html/AbstractExtractorTestCase.java", "license": "apache-2.0", "size": 23048 }
[ "org.apache.any23.rdf.RDFUtils", "org.openrdf.model.Resource", "org.openrdf.repository.RepositoryException" ]
import org.apache.any23.rdf.RDFUtils; import org.openrdf.model.Resource; import org.openrdf.repository.RepositoryException;
import org.apache.any23.rdf.*; import org.openrdf.model.*; import org.openrdf.repository.*;
[ "org.apache.any23", "org.openrdf.model", "org.openrdf.repository" ]
org.apache.any23; org.openrdf.model; org.openrdf.repository;
2,621,080
public Future<SSHPacket, ConnectionException> sendGlobalRequest(String name, boolean wantReply, byte[] specifics) throws TransportException;
Future<SSHPacket, ConnectionException> function(String name, boolean wantReply, byte[] specifics) throws TransportException;
/** * Send an SSH global request. * * @param name request name * @param wantReply whether a reply is requested * @param specifics {@link SSHPacket} containing fields specific to the request * * @return a {@link Future} for the reply data (in case {@code wantReply} is true) which ...
Send an SSH global request
sendGlobalRequest
{ "repo_name": "rwinston/netling", "path": "src/main/java/org/netling/ssh/connection/Connection.java", "license": "apache-2.0", "size": 5445 }
[ "org.netling.concurrent.Future", "org.netling.ssh.common.SSHPacket", "org.netling.ssh.transport.TransportException" ]
import org.netling.concurrent.Future; import org.netling.ssh.common.SSHPacket; import org.netling.ssh.transport.TransportException;
import org.netling.concurrent.*; import org.netling.ssh.common.*; import org.netling.ssh.transport.*;
[ "org.netling.concurrent", "org.netling.ssh" ]
org.netling.concurrent; org.netling.ssh;
533,425
@Override protected void onSaveInstanceState(Bundle outState) { // TODO Auto-generated method stub super.onSaveInstanceState(outState); if (dialogCaldroidFragment != null) { dialogCaldroidFragment.saveStatesToKey(outState, "DIALOG_CALDROID_SAVED_STATE"); } }
void function(Bundle outState) { super.onSaveInstanceState(outState); if (dialogCaldroidFragment != null) { dialogCaldroidFragment.saveStatesToKey(outState, STR); } }
/** * Save current states of the Caldroid here */
Save current states of the Caldroid here
onSaveInstanceState
{ "repo_name": "irontec/Jaigiro-mobile", "path": "Android/src/com/irontec/jaigiro/EkintzaProposatuActivity.java", "license": "gpl-3.0", "size": 10039 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
1,032,619
PingResult ping(ScanningSubject subject, int count) throws IOException; @Override default void close() throws IOException {}
PingResult ping(ScanningSubject subject, int count) throws IOException; @Override default void close() throws IOException {}
/** * Issues the specified number of pings and * waits for replies. * * @param count number of pings to perform */
Issues the specified number of pings and waits for replies
ping
{ "repo_name": "angryip/ipscan", "path": "src/net/azib/ipscan/core/net/Pinger.java", "license": "gpl-2.0", "size": 622 }
[ "java.io.IOException", "net.azib.ipscan.core.ScanningSubject" ]
import java.io.IOException; import net.azib.ipscan.core.ScanningSubject;
import java.io.*; import net.azib.ipscan.core.*;
[ "java.io", "net.azib.ipscan" ]
java.io; net.azib.ipscan;
895,300
@Test public void testRevertToDefaultValue() { boolean valueOnly = true; FieldConfigTextArea field = new FieldConfigTextArea( new FieldConfigCommonData( String.class, FieldIdEnum.NAME, "test label", valueOnly, false), ...
void function() { boolean valueOnly = true; FieldConfigTextArea field = new FieldConfigTextArea( new FieldConfigCommonData( String.class, FieldIdEnum.NAME, STR, valueOnly, false), STR); String expectedDefaultValue = STR; field.setDefaultValue(expectedDefaultValue); field.revertToDefaultValue(); assertNull(field.getStri...
/** * Test method for {@link * com.sldeditor.ui.detail.config.FieldConfigTextArea#revertToDefaultValue()}. Test method for * {@link com.sldeditor.ui.detail.config.FieldConfigTextArea#setDefaultValue(java.lang.String)}. * Test method for {@link com.sldeditor.ui.detail.config.FieldConfigTextArea#getSt...
Test method for <code>com.sldeditor.ui.detail.config.FieldConfigTextArea#revertToDefaultValue()</code>. Test method for <code>com.sldeditor.ui.detail.config.FieldConfigTextArea#setDefaultValue(java.lang.String)</code>. Test method for <code>com.sldeditor.ui.detail.config.FieldConfigTextArea#getStringValue()</code>
testRevertToDefaultValue
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/test/java/com/sldeditor/test/unit/ui/detail/config/FieldConfigTextAreaTest.java", "license": "gpl-3.0", "size": 16334 }
[ "com.sldeditor.common.xml.ui.FieldIdEnum", "com.sldeditor.ui.detail.config.FieldConfigCommonData", "com.sldeditor.ui.detail.config.FieldConfigTextArea", "org.junit.jupiter.api.Assertions" ]
import com.sldeditor.common.xml.ui.FieldIdEnum; import com.sldeditor.ui.detail.config.FieldConfigCommonData; import com.sldeditor.ui.detail.config.FieldConfigTextArea; import org.junit.jupiter.api.Assertions;
import com.sldeditor.common.xml.ui.*; import com.sldeditor.ui.detail.config.*; import org.junit.jupiter.api.*;
[ "com.sldeditor.common", "com.sldeditor.ui", "org.junit.jupiter" ]
com.sldeditor.common; com.sldeditor.ui; org.junit.jupiter;
2,361,328
public Builder audio(InputStream audio) { this.audio = audio; return this; }
Builder function(InputStream audio) { this.audio = audio; return this; }
/** * Set the audio. * * @param audio the audio * @return the RecognizeOptions builder */
Set the audio
audio
{ "repo_name": "watson-developer-cloud/java-sdk", "path": "speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/RecognizeOptions.java", "license": "apache-2.0", "size": 39570 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,701,893
public void setAttribute(String str, String str1) throws DOMException { setModified(true); getElementImpl().setAttribute(str, str1); }
void function(String str, String str1) throws DOMException { setModified(true); getElementImpl().setAttribute(str, str1); }
/** * Passes the call to the implementation */
Passes the call to the implementation
setAttribute
{ "repo_name": "deepakalur/acre", "path": "external/ant-antidote/src/java/org/apache/tools/ant/gui/xml/DOMElement.java", "license": "apache-2.0", "size": 7212 }
[ "org.w3c.dom.DOMException" ]
import org.w3c.dom.DOMException;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
184,137
public void setAppSearchData(Bundle appSearchData) { mAppSearchData = appSearchData; }
void function(Bundle appSearchData) { mAppSearchData = appSearchData; }
/** * Sets the APP_DATA for legacy SearchDialog use. * @param appSearchData bundle provided by the app when launching the search dialog * @hide */
Sets the APP_DATA for legacy SearchDialog use
setAppSearchData
{ "repo_name": "treasure-lau/CSipSimple", "path": "actionbarsherlock-library/src/main/java/com/actionbarsherlock/widget/SearchView.java", "license": "gpl-3.0", "size": 71183 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
538,090
@Nonnull public static String getFullPath(@Nonnull Node no) { return getFullPath(no, null); }
static String function(@Nonnull Node no) { return getFullPath(no, null); }
/** * Retorna o path completo do elemento. * * @see #getFullPath(Node, Node) */
Retorna o path completo do elemento
getFullPath
{ "repo_name": "opensingular/singular-core", "path": "lib/commons/src/main/java/org/opensingular/internal/lib/commons/xml/XPathToolkit.java", "license": "apache-2.0", "size": 16266 }
[ "javax.annotation.Nonnull", "org.w3c.dom.Node" ]
import javax.annotation.Nonnull; import org.w3c.dom.Node;
import javax.annotation.*; import org.w3c.dom.*;
[ "javax.annotation", "org.w3c.dom" ]
javax.annotation; org.w3c.dom;
1,445,694
@Override public void execute() throws BuildException { if (testIfCondition() && testUnlessCondition()) { try { String error = null; MBeanServerConnection jmxServerConnection = getJMXConnection(); error = jmxExecute(jmxServerConnection); ...
void function() throws BuildException { if (testIfCondition() && testUnlessCondition()) { try { String error = null; MBeanServerConnection jmxServerConnection = getJMXConnection(); error = jmxExecute(jmxServerConnection); if (error != null && isFailOnError()) { throw new BuildException(error); } } catch (Exception e) {...
/** * Execute the specified command. This logic only performs the common * attribute validation required by all subclasses; it does not perform any * functional logic directly. * * @exception BuildException * if a validation error occurs */
Execute the specified command. This logic only performs the common attribute validation required by all subclasses; it does not perform any functional logic directly
execute
{ "repo_name": "thanple/tomcatsrc", "path": "java/org/apache/catalina/ant/jmx/JMXAccessorTask.java", "license": "apache-2.0", "size": 22889 }
[ "javax.management.MBeanServerConnection", "org.apache.tools.ant.BuildException" ]
import javax.management.MBeanServerConnection; import org.apache.tools.ant.BuildException;
import javax.management.*; import org.apache.tools.ant.*;
[ "javax.management", "org.apache.tools" ]
javax.management; org.apache.tools;
1,231,500
protected SystemTask getSystemTask() { return task; }
SystemTask function() { return task; }
/** * Returns the SystemTask for this Job * * @return The SystemTask for this Job */
Returns the SystemTask for this Job
getSystemTask
{ "repo_name": "kingargyle/exist-1.4.x", "path": "src/org/exist/scheduler/SystemTaskJob.java", "license": "lgpl-2.1", "size": 3103 }
[ "org.exist.storage.SystemTask" ]
import org.exist.storage.SystemTask;
import org.exist.storage.*;
[ "org.exist.storage" ]
org.exist.storage;
2,453,766
@JsonIgnore public Map<String, Thermostat> getThermostats() { return (devices == null) ? null : devices.getThermostats(); }
Map<String, Thermostat> function() { return (devices == null) ? null : devices.getThermostats(); }
/** * Convenience method so property specs don't have to include "devices." in each one. * * @return name-based map of thermostats */
Convenience method so property specs don't have to include "devices." in each one
getThermostats
{ "repo_name": "dbadia/openhab", "path": "bundles/binding/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/messages/DataModel.java", "license": "epl-1.0", "size": 22463 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,932,654
public ImageView getImageView() { return (ImageView) view; }
ImageView function() { return (ImageView) view; }
/** * Gets the current view as an image view. * * @return ImageView */
Gets the current view as an image view
getImageView
{ "repo_name": "libit/lr_dialer", "path": "app/src/main/java/com/androidquery/AbstractAQuery.java", "license": "gpl-3.0", "size": 62801 }
[ "android.widget.ImageView" ]
import android.widget.ImageView;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,507,072
@RequestMapping("/opendapMakeRequest.do") public void makeRequest(@RequestParam("opendapUrl") final String opendapUrl, @RequestParam("downloadFormat") final String downloadFormat, @RequestParam(required = false, value = "constraints") final String constraintsJson, HttpSer...
@RequestMapping(STR) void function(@RequestParam(STR) final String opendapUrl, @RequestParam(STR) final String downloadFormat, @RequestParam(required = false, value = STR) final String constraintsJson, HttpServletResponse response) throws Exception { log.trace(String.format(STR, opendapUrl)); log.trace(String.format(ST...
/** * Makes a request to an OPeNDAP service for data within given constraints. * * @param opendapUrl The remote service URL to query * @param downloadFormat How the response data should be formatted * @param constraintsJson [Optional] Must be an object with an element 'constraints' set to ...
Makes a request to an OPeNDAP service for data within given constraints
makeRequest
{ "repo_name": "AuScope/detcrc-portal", "path": "src/main/java/org/auscope/portal/server/web/controllers/OPeNDAPController.java", "license": "gpl-3.0", "size": 6693 }
[ "java.io.InputStream", "java.util.zip.ZipEntry", "java.util.zip.ZipOutputStream", "javax.servlet.http.HttpServletResponse", "net.sf.json.JSONObject", "org.auscope.portal.core.services.methodmakers.OPeNDAPGetDataMethodMaker", "org.auscope.portal.core.services.responses.opendap.AbstractViewVariable", "o...
import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; import javax.servlet.http.HttpServletResponse; import net.sf.json.JSONObject; import org.auscope.portal.core.services.methodmakers.OPeNDAPGetDataMethodMaker; import org.auscope.portal.core.services.responses.opendap.Abstrac...
import java.io.*; import java.util.zip.*; import javax.servlet.http.*; import net.sf.json.*; import org.auscope.portal.core.services.methodmakers.*; import org.auscope.portal.core.services.responses.opendap.*; import org.auscope.portal.core.util.*; import org.springframework.web.bind.annotation.*;
[ "java.io", "java.util", "javax.servlet", "net.sf.json", "org.auscope.portal", "org.springframework.web" ]
java.io; java.util; javax.servlet; net.sf.json; org.auscope.portal; org.springframework.web;
1,110,649
public void buildClause(Term rewrite) { if (mIsTrue) { return; } // first finish the rewrite proof. // If this is zero, there is no or, if this is one there is only a top-level or that // doesn't have to be flattened. if (mFlattenedOrs.size() > 1) { // or needs to be flattened. mFlattened...
void function(Term rewrite) { if (mIsTrue) { return; } if (mFlattenedOrs.size() > 1) { rewrite = mTracker.flatten(rewrite, mFlattenedOrs); } if (mSimpOr && mTracker.getProvedTerm(rewrite) != rewrite.getTheory().mFalse) { rewrite = mTracker.orSimpClause(rewrite); } Term rewriteProof = mTracker.modusPonens(mClause, rewri...
/** * Builds the final clause * * @param rewrite * the rewrite proof from mClause to a (possibly nested) or term with the final literals. */
Builds the final clause
buildClause
{ "repo_name": "juergenchrist/smtinterpol", "path": "SMTInterpol/src/de/uni_freiburg/informatik/ultimate/smtinterpol/convert/Clausifier.java", "license": "gpl-3.0", "size": 88373 }
[ "de.uni_freiburg.informatik.ultimate.logic.Annotation", "de.uni_freiburg.informatik.ultimate.logic.Term", "de.uni_freiburg.informatik.ultimate.logic.TermVariable", "de.uni_freiburg.informatik.ultimate.smtinterpol.dpll.Literal", "de.uni_freiburg.informatik.ultimate.smtinterpol.proof.ProofConstants", "de.un...
import de.uni_freiburg.informatik.ultimate.logic.Annotation; import de.uni_freiburg.informatik.ultimate.logic.Term; import de.uni_freiburg.informatik.ultimate.logic.TermVariable; import de.uni_freiburg.informatik.ultimate.smtinterpol.dpll.Literal; import de.uni_freiburg.informatik.ultimate.smtinterpol.proof.ProofConsta...
import de.uni_freiburg.informatik.ultimate.logic.*; import de.uni_freiburg.informatik.ultimate.smtinterpol.dpll.*; import de.uni_freiburg.informatik.ultimate.smtinterpol.proof.*; import de.uni_freiburg.informatik.ultimate.smtinterpol.theory.epr.atoms.*; import de.uni_freiburg.informatik.ultimate.smtinterpol.theory.quan...
[ "de.uni_freiburg.informatik" ]
de.uni_freiburg.informatik;
1,866,488
public EClass getPENodeType() { return peNodeTypeEClass; }
EClass function() { return peNodeTypeEClass; }
/** * Returns the meta object for class '{@link org.mar9000.pe.ecore.PENodeType <em>PE Node Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>PE Node Type</em>'. * @see org.mar9000.pe.ecore.PENodeType * @generated */
Returns the meta object for class '<code>org.mar9000.pe.ecore.PENodeType PE Node Type</code>'.
getPENodeType
{ "repo_name": "mar9000/pe", "path": "src-gen/org/mar9000/pe/ecore/impl/EcorePackageImpl.java", "license": "apache-2.0", "size": 100111 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
251,378
public void saveXml(File configXmlPath, String selectedEnvStr) throws ConfigurationException { createConfiguration(selectedEnvStr); writeXml(getFileOutoutStream(configXmlPath)); }
void function(File configXmlPath, String selectedEnvStr) throws ConfigurationException { createConfiguration(selectedEnvStr); writeXml(getFileOutoutStream(configXmlPath)); }
/** * Created the configuration xml of selected environment using File object * @param configXmlPath * @param selectedEnvStr * @throws ConfigurationException * @throws Exception */
Created the configuration xml of selected environment using File object
saveXml
{ "repo_name": "photon-infotech/commons", "path": "src/main/java/com/photon/phresco/configuration/ConfigWriter.java", "license": "apache-2.0", "size": 9920 }
[ "com.photon.phresco.exception.ConfigurationException", "java.io.File" ]
import com.photon.phresco.exception.ConfigurationException; import java.io.File;
import com.photon.phresco.exception.*; import java.io.*;
[ "com.photon.phresco", "java.io" ]
com.photon.phresco; java.io;
2,051,024
@Path("/recom/strategies") @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public String getRecom(@FormParam("ID") String ID) { Connection conn = null; try { // This will load the MySQL driver, each DB has its own driver Class.forName("com.mysql.jd...
@Path(STR) @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_FORM_URLENCODED) String function(@FormParam("ID") String ID) { Connection conn = null; try { Class.forName(STR); conn = DriverManager.getConnection( STRSQLException: STRSQLState: STRVendorError: STRSELECT DISTINCT Strategy FROM `case` WHER...
/** * Recommend several strategies in return for a specific ClientID given. The * strategies are being fetched from the strategies used in the client's * cases until now. * * @param ID * @return */
Recommend several strategies in return for a specific ClientID given. The strategies are being fetched from the strategies used in the client's cases until now
getRecom
{ "repo_name": "LawOS/LawOSREST", "path": "LawOSREST/src/lawos_Rest/GeneralServices.java", "license": "gpl-3.0", "size": 18754 }
[ "java.sql.Connection", "java.sql.DriverManager", "javax.ws.rs.Consumes", "javax.ws.rs.FormParam", "javax.ws.rs.Path", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType" ]
import java.sql.Connection; import java.sql.DriverManager; import javax.ws.rs.Consumes; import javax.ws.rs.FormParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType;
import java.sql.*; import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "java.sql", "javax.ws" ]
java.sql; javax.ws;
1,947,394
@Override public final void unread(char[] cbuf, int off, int len) throws IOException { ByteBuffer tb = // temp buffer ce.encode(CharBuffer.wrap(cbuf, off, len)); if (tb.limit() > bbuf.position()) { // unread bbuf into the pushback input stream // in order to...
final void function(char[] cbuf, int off, int len) throws IOException { ByteBuffer tb = ce.encode(CharBuffer.wrap(cbuf, off, len)); if (tb.limit() > bbuf.position()) { for (int i = bbuf.limit(); i-- > bbuf.position(); ) stream.unread(bbuf.get(i)); bbuf.clear(); ce.encode(CharBuffer.wrap(cbuf, off, len), bbuf, true); bb...
/** Unread the character array into the reader. * * Decodes the characters in the array into bytes, * allowing the encoding to be changed before reading from * the stream again, using a different charset. */
Unread the character array into the reader. Decodes the characters in the array into bytes, allowing the encoding to be changed before reading from the stream again, using a different charset
unread
{ "repo_name": "logicmoo/jrelisp-abcl-ws", "path": "src/org/armedbear/lisp/util/DecodingReader.java", "license": "gpl-2.0", "size": 10111 }
[ "java.io.IOException", "java.nio.ByteBuffer", "java.nio.CharBuffer" ]
import java.io.IOException; import java.nio.ByteBuffer; import java.nio.CharBuffer;
import java.io.*; import java.nio.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
224,034
public void close() { if (DBG) Log.d(TAG, "close()"); if (mClosed) { throw new IllegalStateException("Double close()"); } mDataSetObservable.unregisterAll(); mClosed = true; if (mShortcuts != null) { mShortcuts.close(); mShortcuts = null; } for (CorpusResult result : mCorpusResults) ...
void function() { if (DBG) Log.d(TAG, STR); if (mClosed) { throw new IllegalStateException(STR); } mDataSetObservable.unregisterAll(); mClosed = true; if (mShortcuts != null) { mShortcuts.close(); mShortcuts = null; } for (CorpusResult result : mCorpusResults) { result.close(); } mCorpusResults.clear(); }
/** * Closes all the source results and unregisters all observers. */
Closes all the source results and unregisters all observers
close
{ "repo_name": "Adward-R/AlfredLite", "path": "QuickSearchBox/src/com/android/quicksearchbox/Suggestions.java", "license": "apache-2.0", "size": 6731 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
1,302,099
ContractInvoiceType findFirstContractInvoiceType(Integer contractId);
ContractInvoiceType findFirstContractInvoiceType(Integer contractId);
/** * Finds the first {@link ContractInvoiceType} of {@link Contract} specified by the given key. * * @param contractId * @return */
Finds the first <code>ContractInvoiceType</code> of <code>Contract</code> specified by the given key
findFirstContractInvoiceType
{ "repo_name": "CIT-VSB-TUO/ResBill", "path": "resbill/src/main/java/cz/vsb/resbill/dao/ContractInvoiceTypeDAO.java", "license": "bsd-3-clause", "size": 2063 }
[ "cz.vsb.resbill.model.ContractInvoiceType" ]
import cz.vsb.resbill.model.ContractInvoiceType;
import cz.vsb.resbill.model.*;
[ "cz.vsb.resbill" ]
cz.vsb.resbill;
784,929
public void testIsActiveKemId_False() { KEMID kemid = KemIdFixture.CLOSED_KEMID_RECORD.createKemidRecord(); EndowmentTransactionLine endowmentTransactionLine = EndowmentTransactionLineFixture.ENDOWMENT_TRANSACTIONAL_LINE_INCOME.createEndowmentTransactionLine(true); assertFalse(rule.isAc...
void function() { KEMID kemid = KemIdFixture.CLOSED_KEMID_RECORD.createKemidRecord(); EndowmentTransactionLine endowmentTransactionLine = EndowmentTransactionLineFixture.ENDOWMENT_TRANSACTIONAL_LINE_INCOME.createEndowmentTransactionLine(true); assertFalse(rule.isActiveKemId(endowmentTransactionLine, rule.getErrorPrefix...
/** * Validates that isActiveKemId returns false when the KEMID is closed (closed indicator is true). */
Validates that isActiveKemId returns false when the KEMID is closed (closed indicator is true)
testIsActiveKemId_False
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "test/unit/src/org/kuali/kfs/module/endow/document/validation/impl/SecurityTransferDocumentRulesTest.java", "license": "agpl-3.0", "size": 34081 }
[ "org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine", "org.kuali.kfs.module.endow.fixture.EndowmentTransactionLineFixture", "org.kuali.kfs.module.endow.fixture.KemIdFixture" ]
import org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine; import org.kuali.kfs.module.endow.fixture.EndowmentTransactionLineFixture; import org.kuali.kfs.module.endow.fixture.KemIdFixture;
import org.kuali.kfs.module.endow.businessobject.*; import org.kuali.kfs.module.endow.fixture.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
2,358,927
protected AbstractVarDec copy() { throw new MiscErrorException("Shouldn't be calling copy()! Type: " + this.getClass(), new CloneNotSupportedException()); }
AbstractVarDec function() { throw new MiscErrorException(STR + this.getClass(), new CloneNotSupportedException()); }
/** * <p> * Implemented by concrete subclasses of {@link AbstractVarDec} to manufacture a copy of themselves. * </p> * * @return A new {@link AbstractVarDec} that is a deep copy of the original. */
Implemented by concrete subclasses of <code>AbstractVarDec</code> to manufacture a copy of themselves.
copy
{ "repo_name": "ClemsonRSRG/RESOLVE", "path": "src/java/edu/clemson/rsrg/absyn/declarations/variabledecl/AbstractVarDec.java", "license": "bsd-3-clause", "size": 4074 }
[ "edu.clemson.rsrg.statushandling.exception.MiscErrorException" ]
import edu.clemson.rsrg.statushandling.exception.MiscErrorException;
import edu.clemson.rsrg.statushandling.exception.*;
[ "edu.clemson.rsrg" ]
edu.clemson.rsrg;
650,845
protected NevadoMessage deserializeMessage(String serializedMessage) throws JMSException { Serializable deserializedObject; try { // TODO: should this use the OOS version @ // for https://github.com/skyscreamer/nevado/issues/81 deserializedObject = SerializeUtil.deserializeFr...
NevadoMessage function(String serializedMessage) throws JMSException { Serializable deserializedObject; try { deserializedObject = SerializeUtil.deserializeFromString(serializedMessage); } catch (IOException e) { String exMessage = STR + e.getMessage(); _log.error(exMessage, e); throw new JMSException(exMessage); } if ...
/** * Deserializes the body of an SQS message into a NevadoMessage object. * * @param serializedMessage String-serialized NevadoMessage * @return A deserialized NevadoMessage object * @throws JMSException Unable to deserializeFromString a single NevadoMessage object from the source */
Deserializes the body of an SQS message into a NevadoMessage object
deserializeMessage
{ "repo_name": "bitsofinfo/nevado", "path": "nevado-jms/src/main/java/org/skyscreamer/nevado/jms/connector/AbstractSQSConnector.java", "license": "apache-2.0", "size": 13680 }
[ "java.io.IOException", "java.io.Serializable", "javax.jms.JMSException", "org.skyscreamer.nevado.jms.message.NevadoMessage", "org.skyscreamer.nevado.jms.util.SerializeUtil" ]
import java.io.IOException; import java.io.Serializable; import javax.jms.JMSException; import org.skyscreamer.nevado.jms.message.NevadoMessage; import org.skyscreamer.nevado.jms.util.SerializeUtil;
import java.io.*; import javax.jms.*; import org.skyscreamer.nevado.jms.message.*; import org.skyscreamer.nevado.jms.util.*;
[ "java.io", "javax.jms", "org.skyscreamer.nevado" ]
java.io; javax.jms; org.skyscreamer.nevado;
2,357,231
private SolrDocumentList executeSolrQuery(String queryString) throws SolrServerException { return executeSolrQuery(COLLECTION1, queryString); }
SolrDocumentList function(String queryString) throws SolrServerException { return executeSolrQuery(COLLECTION1, queryString); }
/** * Execute a Solr query on COLLECTION1. * * @param queryString Solr query string * @return list of results from Solr */
Execute a Solr query on COLLECTION1
executeSolrQuery
{ "repo_name": "jayfans3/hbase-indexer", "path": "hbase-indexer-mr/src/test/java/com/ngdata/hbaseindexer/mr/HBaseMapReduceIndexerToolDirectWriteTest.java", "license": "apache-2.0", "size": 17944 }
[ "org.apache.solr.client.solrj.SolrServerException", "org.apache.solr.common.SolrDocumentList" ]
import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.common.SolrDocumentList;
import org.apache.solr.client.solrj.*; import org.apache.solr.common.*;
[ "org.apache.solr" ]
org.apache.solr;
2,708,146
protected CharacterInformation getCharacterInformation (List list,int startIndex, int charnum, AttributedCharacterIterator aci) { CharacterInformation info = new CharacterInformation(); info.characterIndex = startIndex+charnum; for (int i = 0; i < list.size(); i++) { ...
CharacterInformation function (List list,int startIndex, int charnum, AttributedCharacterIterator aci) { CharacterInformation info = new CharacterInformation(); info.characterIndex = startIndex+charnum; for (int i = 0; i < list.size(); i++) { StrokingTextPainter.TextRun run; run = (StrokingTextPainter.TextRun)list.get(...
/** * Retrieve the information about a character * of en element. The element first character in * the ACI is 'firstChar' and the character * look for is the charnum th character in the * element * * @param list list of the layouts * @param startIndex index in the ACI of the firs...
Retrieve the information about a character of en element. The element first character in the ACI is 'firstChar' and the character look for is the charnum th character in the element
getCharacterInformation
{ "repo_name": "sflyphotobooks/crp-batik", "path": "sources/org/apache/batik/bridge/SVGTextElementBridge.java", "license": "apache-2.0", "size": 114566 }
[ "java.text.AttributedCharacterIterator", "java.util.List", "org.apache.batik.gvt.renderer.StrokingTextPainter", "org.apache.batik.gvt.text.TextSpanLayout" ]
import java.text.AttributedCharacterIterator; import java.util.List; import org.apache.batik.gvt.renderer.StrokingTextPainter; import org.apache.batik.gvt.text.TextSpanLayout;
import java.text.*; import java.util.*; import org.apache.batik.gvt.renderer.*; import org.apache.batik.gvt.text.*;
[ "java.text", "java.util", "org.apache.batik" ]
java.text; java.util; org.apache.batik;
2,202,025
public AttributeHeader decodeSTUNAttributeHeader(final byte[] encoded) throws IOException, MessageFormatException { this.checkHeaderLength(encoded); final ByteArrayInputStream bin = new ByteArrayInputStream(encoded); final DataInputStream din = new DataInputStream(bin); final int typ...
AttributeHeader function(final byte[] encoded) throws IOException, MessageFormatException { this.checkHeaderLength(encoded); final ByteArrayInputStream bin = new ByteArrayInputStream(encoded); final DataInputStream din = new DataInputStream(bin); final int typeBits = din.readUnsignedShort(); final AttributeType type = ...
/** * Decodes the specified byte array to a {@link AttributeHeader} instance. * * @param encoded * the byte encoded attribute header * @return the decoded attribute header * @throws IOException * if an I/O error occurs if the encoded attribute header is * ...
Decodes the specified byte array to a <code>AttributeHeader</code> instance
decodeSTUNAttributeHeader
{ "repo_name": "htwg/UCE", "path": "stun/src/main/java/de/fhkn/in/uce/stun/attribute/AttributeHeaderDecoder.java", "license": "gpl-3.0", "size": 7629 }
[ "de.fhkn.in.uce.stun.util.MessageFormatException", "java.io.ByteArrayInputStream", "java.io.DataInputStream", "java.io.IOException" ]
import de.fhkn.in.uce.stun.util.MessageFormatException; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException;
import de.fhkn.in.uce.stun.util.*; import java.io.*;
[ "de.fhkn.in", "java.io" ]
de.fhkn.in; java.io;
1,110,619
@Test public void testProductPositive02() throws Exception { TestPerformer testPerformer; String modelFileName; String oclFileName; oclFileName = "standardlibrary/collection/productPositive02.ocl"; modelFileName = "testmodel.uml"; testPerformer = TestPerformer.getInstance(AllStandardLibraryTe...
void function() throws Exception { TestPerformer testPerformer; String modelFileName; String oclFileName; oclFileName = STR; modelFileName = STR; testPerformer = TestPerformer.getInstance(AllStandardLibraryTests.META_MODEL_ID, AllStandardLibraryTests.MODEL_BUNDLE, AllStandardLibraryTests.MODEL_DIRECTORY); testPerformer...
/** * <p> * A test case testing the method * <code>Collection->product(Collection(T))</code>. * </p> */
A test case testing the method <code>Collection->product(Collection(T))</code>.
testProductPositive02
{ "repo_name": "dresden-ocl/dresdenocl", "path": "tests/org.dresdenocl.ocl2parser.test/src/org/dresdenocl/ocl2parser/test/standardlibrary/TestCollection.java", "license": "lgpl-3.0", "size": 77031 }
[ "org.dresdenocl.ocl2parser.test.TestPerformer" ]
import org.dresdenocl.ocl2parser.test.TestPerformer;
import org.dresdenocl.ocl2parser.test.*;
[ "org.dresdenocl.ocl2parser" ]
org.dresdenocl.ocl2parser;
2,058,365
private TableDescriptor justGetDescriptor(TableName tableName) throws StandardException { String schemaName = tableName.getSchemaName(); SchemaDescriptor sd = getSchemaDescriptor(null, schemaName); TableDescriptor td = getTableDescriptor(tableName.getTableName(), sd); if (t...
TableDescriptor function(TableName tableName) throws StandardException { String schemaName = tableName.getSchemaName(); SchemaDescriptor sd = getSchemaDescriptor(null, schemaName); TableDescriptor td = getTableDescriptor(tableName.getTableName(), sd); if (td == null){ TableName synonymTab=resolveTableToSynonym(tableNam...
/** * Just get the table descriptor. Don't worry if it belongs to a view, * system table, synonym or a real table. Let the caller decide what * to do. * * @param tableName * * @return TableDescriptor for the give TableName * * @throws StandardException on error */
Just get the table descriptor. Don't worry if it belongs to a view, system table, synonym or a real table. Let the caller decide what to do
justGetDescriptor
{ "repo_name": "splicemachine/spliceengine", "path": "db-engine/src/main/java/com/splicemachine/db/impl/sql/compile/DDLStatementNode.java", "license": "agpl-3.0", "size": 17461 }
[ "com.splicemachine.db.iapi.error.StandardException", "com.splicemachine.db.iapi.reference.SQLState", "com.splicemachine.db.iapi.sql.dictionary.SchemaDescriptor", "com.splicemachine.db.iapi.sql.dictionary.TableDescriptor" ]
import com.splicemachine.db.iapi.error.StandardException; import com.splicemachine.db.iapi.reference.SQLState; import com.splicemachine.db.iapi.sql.dictionary.SchemaDescriptor; import com.splicemachine.db.iapi.sql.dictionary.TableDescriptor;
import com.splicemachine.db.iapi.error.*; import com.splicemachine.db.iapi.reference.*; import com.splicemachine.db.iapi.sql.dictionary.*;
[ "com.splicemachine.db" ]
com.splicemachine.db;
1,636,227
@Nullable PsiClass findInnerClassByName(@NonNls String name, boolean checkBases);
PsiClass findInnerClassByName(@NonNls String name, boolean checkBases);
/** * Searches the class (and optionally its superclasses) for the inner class with the specified name. * * @param name the name of the inner class to find. * @param checkBases if true, the inner class is also searched in the base classes of the class. * @return the inner class instance, or null if...
Searches the class (and optionally its superclasses) for the inner class with the specified name
findInnerClassByName
{ "repo_name": "android-ia/platform_tools_idea", "path": "java/java-psi-api/src/com/intellij/psi/PsiClass.java", "license": "apache-2.0", "size": 11944 }
[ "org.jetbrains.annotations.NonNls" ]
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
116,116
@SmallTest @Feature({"Navigation"}) public void testFormResubmissionCancel() throws Throwable { // Load the url posting data for the first time. postNavigation(); mCallbackHelper.getOnPageFinishedHelper().waitForCallback(0); // Trigger a reload and wait for the warning to be...
@Feature({STR}) void function() throws Throwable { postNavigation(); mCallbackHelper.getOnPageFinishedHelper().waitForCallback(0); reload(); AlertDialog dialog = waitForRepostFormWarningDialog(); clickButton(dialog, AlertDialog.BUTTON_NEGATIVE); boolean timedOut = false; try { mCallbackHelper.getOnPageFinishedHelper()....
/** * Verifies that cancelling the form reload prevents it from happening. Currently the test waits * after the "Cancel" button is clicked to verify that the load was not triggered, which blocks * for CallbackHelper's default timeout upon each execution. */
Verifies that cancelling the form reload prevents it from happening. Currently the test waits after the "Cancel" button is clicked to verify that the load was not triggered, which blocks for CallbackHelper's default timeout upon each execution
testFormResubmissionCancel
{ "repo_name": "danakj/chromium", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/RepostFormWarningTest.java", "license": "bsd-3-clause", "size": 7812 }
[ "android.support.v7.app.AlertDialog", "java.util.concurrent.TimeoutException", "org.chromium.base.test.util.Feature" ]
import android.support.v7.app.AlertDialog; import java.util.concurrent.TimeoutException; import org.chromium.base.test.util.Feature;
import android.support.v7.app.*; import java.util.concurrent.*; import org.chromium.base.test.util.*;
[ "android.support", "java.util", "org.chromium.base" ]
android.support; java.util; org.chromium.base;
330,078
public BufferedImage getThumbnail(long pixelsID, int sizeX, int sizeY, long userID) throws RenderingServiceException;
BufferedImage function(long pixelsID, int sizeX, int sizeY, long userID) throws RenderingServiceException;
/** * Returns a thumbnail of the currently selected 2D-plane for the * passed pixels set. * * @param pixelsID The id of the pixels set. * @param sizeX The width of the thumbnail. * @param sizeY The height of the thumnail. * @param userID The id of the user the thumbnail is for. * @return See a...
Returns a thumbnail of the currently selected 2D-plane for the passed pixels set
getThumbnail
{ "repo_name": "joshmoore/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OmeroImageService.java", "license": "gpl-2.0", "size": 32693 }
[ "java.awt.image.BufferedImage", "org.openmicroscopy.shoola.env.rnd.RenderingServiceException" ]
import java.awt.image.BufferedImage; import org.openmicroscopy.shoola.env.rnd.RenderingServiceException;
import java.awt.image.*; import org.openmicroscopy.shoola.env.rnd.*;
[ "java.awt", "org.openmicroscopy.shoola" ]
java.awt; org.openmicroscopy.shoola;
1,599,430
public static ProductionPackage init() { if (isInited) return (ProductionPackage)EPackage.Registry.INSTANCE.getEPackage(ProductionPackage.eNS_URI); // Obtain or create and register package ProductionPackageImpl theProductionPackage = (ProductionPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof P...
static ProductionPackage function() { if (isInited) return (ProductionPackage)EPackage.Registry.INSTANCE.getEPackage(ProductionPackage.eNS_URI); ProductionPackageImpl theProductionPackage = (ProductionPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ProductionPackageImpl ? EPackage.Registry.INSTANCE.get(...
/** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link ProductionPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field...
Creates, registers, and initializes the Package for this model, and for any others upon which it depends. This method is used to initialize <code>ProductionPackage#eINSTANCE</code> when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
init
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Generation/Production/impl/ProductionPackageImpl.java", "license": "mit", "size": 90424 }
[ "org.eclipse.emf.ecore.EPackage" ]
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
778,369
public int getMetaFromState(IBlockState state) { return 0; }
int function(IBlockState state) { return 0; }
/** * Convert the BlockState into the correct metadata value */
Convert the BlockState into the correct metadata value
getMetaFromState
{ "repo_name": "SuperUnitato/UnLonely", "path": "build/tmp/recompileMc/sources/net/minecraft/block/BlockChorusPlant.java", "license": "lgpl-2.1", "size": 9120 }
[ "net.minecraft.block.state.IBlockState" ]
import net.minecraft.block.state.IBlockState;
import net.minecraft.block.state.*;
[ "net.minecraft.block" ]
net.minecraft.block;
1,845,401
public void unsetColumnComment() { super.unset(TableColumn.PROPERTY.columnComment.name()); }
void function() { super.unset(TableColumn.PROPERTY.columnComment.name()); }
/** * Unsets the <b>columnComment</b> property, the value of the property of the * object being set to the property's default value. The property will no * longer be considered set. */
Unsets the columnComment property, the value of the property of the object being set to the property's default value. The property will no longer be considered set
unsetColumnComment
{ "repo_name": "plasma-framework/plasma", "path": "plasma-provisioning/src/main/java/org/plasma/provisioning/rdb/mysql/v5_5/impl/TableColumnImpl.java", "license": "apache-2.0", "size": 21654 }
[ "org.plasma.provisioning.rdb.mysql.v5_5.TableColumn" ]
import org.plasma.provisioning.rdb.mysql.v5_5.TableColumn;
import org.plasma.provisioning.rdb.mysql.v5_5.*;
[ "org.plasma.provisioning" ]
org.plasma.provisioning;
667,058
@Test public void testTextTokenizerExpr() throws AuraValidationException { String theText = "{!an.expression}"; TextTokenizer tokenizer = TextTokenizer.tokenize(expressionBuilder, theText, null); assertEquals("Wrong number of TextTokenizer tokens returned", 1, tokenizer.size()); ...
void function() throws AuraValidationException { String theText = STR; TextTokenizer tokenizer = TextTokenizer.tokenize(expressionBuilder, theText, null); assertEquals(STR, 1, tokenizer.size()); Token token = tokenizer.iterator().next(); assertEquals(TextTokenizer.TokenType.EXPRESSION, token.getType()); assertEquals(th...
/** * Test method for {@link TextTokenizer#tokenize(String, Location)}. */
Test method for <code>TextTokenizer#tokenize(String, Location)</code>
testTextTokenizerExpr
{ "repo_name": "forcedotcom/aura", "path": "aura-impl/src/test/java/org/auraframework/impl/util/TextTokenizerTest.java", "license": "apache-2.0", "size": 12154 }
[ "org.auraframework.impl.util.TextTokenizer", "org.auraframework.throwable.quickfix.AuraValidationException", "org.junit.Assert", "org.mockito.Mockito" ]
import org.auraframework.impl.util.TextTokenizer; import org.auraframework.throwable.quickfix.AuraValidationException; import org.junit.Assert; import org.mockito.Mockito;
import org.auraframework.impl.util.*; import org.auraframework.throwable.quickfix.*; import org.junit.*; import org.mockito.*;
[ "org.auraframework.impl", "org.auraframework.throwable", "org.junit", "org.mockito" ]
org.auraframework.impl; org.auraframework.throwable; org.junit; org.mockito;
1,981,301
public void close() { try { connectionQueue.take().close(); } catch(SQLException | InterruptedException e) { LOGGER.error("Unable to close database connection", e); } }
void function() { try { connectionQueue.take().close(); } catch(SQLException InterruptedException e) { LOGGER.error(STR, e); } }
/** * Closes the underlying database connection, once it's not used by any other thread. You don't have to call this * method if you close the connection externally, there is no state inside this object that requires to be cleared * out except for the actual connection. */
Closes the underlying database connection, once it's not used by any other thread. You don't have to call this method if you close the connection externally, there is no state inside this object that requires to be cleared out except for the actual connection
close
{ "repo_name": "mabe02/jdbw", "path": "src/main/java/com/googlecode/jdbw/util/OneSharedConnectionDataSource.java", "license": "lgpl-3.0", "size": 5357 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
530,399
public InternalDistributedMember getNodeForBucketWrite(int bucketId, final RetryTimeKeeper snoozer) { final boolean isDebugEnabled = logger.isDebugEnabled(); // InternalDistributedSystem ids = (InternalDistributedSystem)this.cache.getDistributedSystem(); RetryTimeKeeper localSnoozer = snoozer; ...
InternalDistributedMember function(int bucketId, final RetryTimeKeeper snoozer) { final boolean isDebugEnabled = logger.isDebugEnabled(); RetryTimeKeeper localSnoozer = snoozer; while (minimumWriteRedundancy > 0 && getRegionAdvisor().getBucketRedundancy(bucketId) < this.minimumWriteRedundancy) { this.cache.getCancelCri...
/** * Fetch the primary Node returning if the redundancy for the Node is satisfied * @param bucketId the identity of the bucket * @param snoozer a RetryTimeKeeper to track how long we may wait until the bucket is ready * @return the primary member's id or null if there is no storage */
Fetch the primary Node returning if the redundancy for the Node is satisfied
getNodeForBucketWrite
{ "repo_name": "robertgeiger/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java", "license": "apache-2.0", "size": 426773 }
[ "com.gemstone.gemfire.cache.TimeoutException", "com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember", "com.gemstone.gemfire.internal.i18n.LocalizedStrings" ]
import com.gemstone.gemfire.cache.TimeoutException; import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember; import com.gemstone.gemfire.internal.i18n.LocalizedStrings;
import com.gemstone.gemfire.cache.*; import com.gemstone.gemfire.distributed.internal.membership.*; import com.gemstone.gemfire.internal.i18n.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
317,972
public final Node getNode(int nodeType, Object arg1, ContextManager cm) throws StandardException { Node retval = getNode(nodeType, cm); retval.init(arg1); return retval; }
final Node function(int nodeType, Object arg1, ContextManager cm) throws StandardException { Node retval = getNode(nodeType, cm); retval.init(arg1); return retval; }
/** * Get a node that takes one initializer argument. * * @param nodeType Identifier for the type of node. * @param arg1 The initializer argument * @param cm A ContextManager * * @return A new QueryTree node. * * @exception StandardException Thrown on error. */
Get a node that takes one initializer argument
getNode
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/engine/org/apache/derby/iapi/sql/compile/NodeFactory.java", "license": "apache-2.0", "size": 14899 }
[ "org.apache.derby.iapi.error.StandardException", "org.apache.derby.iapi.services.context.ContextManager" ]
import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.services.context.ContextManager;
import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.services.context.*;
[ "org.apache.derby" ]
org.apache.derby;
414,315
List<Specimen> filterDescendents(List<Specimen> specimens, Specimen specimen) { if (specimen.getId() == null) { return specimens; } List<Specimen> result = new ArrayList<Specimen>(); for (Specimen candidate : specimens) { Specimen currentSpecimen = candidate; while (currentSpecimen !...
List<Specimen> filterDescendents(List<Specimen> specimens, Specimen specimen) { if (specimen.getId() == null) { return specimens; } List<Specimen> result = new ArrayList<Specimen>(); for (Specimen candidate : specimens) { Specimen currentSpecimen = candidate; while (currentSpecimen != null && !currentSpecimen.getId().e...
/** * filters the descendants of the given location from the list of locations. * * @param specimens The list of specimens to filter * @param specimen The specimen to filter from the list (with all its descendants) * @return The filtered list. */
filters the descendants of the given location from the list of locations
filterDescendents
{ "repo_name": "NCIP/calims", "path": "calims2-webapp/src/java/gov/nih/nci/calims2/ui/inventory/smallmolecule/SmallMoleculeController.java", "license": "bsd-3-clause", "size": 17389 }
[ "gov.nih.nci.calims2.domain.inventory.Specimen", "java.util.ArrayList", "java.util.List" ]
import gov.nih.nci.calims2.domain.inventory.Specimen; import java.util.ArrayList; import java.util.List;
import gov.nih.nci.calims2.domain.inventory.*; import java.util.*;
[ "gov.nih.nci", "java.util" ]
gov.nih.nci; java.util;
1,337,747
public void defineProperty(String propertyName, Class<?> clazz, int attributes) { int length = propertyName.length(); if (length == 0) throw new IllegalArgumentException(); char[] buf = new char[3 + length]; propertyName.getChars(0, length, buf, 3);...
void function(String propertyName, Class<?> clazz, int attributes) { int length = propertyName.length(); if (length == 0) throw new IllegalArgumentException(); char[] buf = new char[3 + length]; propertyName.getChars(0, length, buf, 3); buf[3] = Character.toUpperCase(buf[3]); buf[0] = 'g'; buf[1] = 'e'; buf[2] = 't'; S...
/** * Define a JavaScript property with getter and setter side effects. * * If the setter is not found, the attribute READONLY is added to * the given attributes. <p> * * The getter must be a method with zero parameters, and the setter, if * found, must be a method with one parameter....
Define a JavaScript property with getter and setter side effects. If the setter is not found, the attribute READONLY is added to the given attributes. The getter must be a method with zero parameters, and the setter, if found, must be a method with one parameter
defineProperty
{ "repo_name": "NhlalukoG/android_samsung_j7e3g", "path": "vendor/samsung/preloads/UniversalMDMClient/rhino1_7R4/src/org/mozilla/javascript/ScriptableObject.java", "license": "gpl-2.0", "size": 117408 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
350,588
private String buildErrorChapter(final BuildData buildData) { log.info("\tBuilding Error Chapter"); String errorItemizedLists = ""; if (buildData.getErrorDatabase().hasItems(buildData.getBuildLocale())) { for (final TopicErrorData topicErrorData : buildData.getErrorDatabase().g...
String function(final BuildData buildData) { log.info(STR); String errorItemizedLists = STRINFO: STRINFO: STRINFO: <link xlink:href=\STR\STR)); } else { topicErrorItems.add(DocBookUtilities.buildListItem("INFO: <ulink url=\STR\STR)); } for (final String error : topicErrorData.getItemsOfType(ErrorLevel.ERROR)) { topicEr...
/** * Builds the Error Chapter that contains all warnings and errors. It also builds a glossary to define most of the error * messages. * * @param buildData Information and data structures for the build. * @return A docbook formatted string representation of the error chapter. */
Builds the Error Chapter that contains all warnings and errors. It also builds a glossary to define most of the error messages
buildErrorChapter
{ "repo_name": "pressgang-ccms/PressGangCCMSBuilder", "path": "src/main/java/org/jboss/pressgang/ccms/contentspec/builder/DocBookBuilder.java", "license": "gpl-3.0", "size": 210070 }
[ "org.jboss.pressgang.ccms.contentspec.builder.structures.BuildData", "org.jboss.pressgang.ccms.contentspec.builder.structures.TopicErrorDatabase", "org.jboss.pressgang.ccms.contentspec.builder.utils.DocBookBuildUtilities", "org.jboss.pressgang.ccms.contentspec.enums.BookType", "org.jboss.pressgang.ccms.util...
import org.jboss.pressgang.ccms.contentspec.builder.structures.BuildData; import org.jboss.pressgang.ccms.contentspec.builder.structures.TopicErrorDatabase; import org.jboss.pressgang.ccms.contentspec.builder.utils.DocBookBuildUtilities; import org.jboss.pressgang.ccms.contentspec.enums.BookType; import org.jboss.press...
import org.jboss.pressgang.ccms.contentspec.builder.structures.*; import org.jboss.pressgang.ccms.contentspec.builder.utils.*; import org.jboss.pressgang.ccms.contentspec.enums.*; import org.jboss.pressgang.ccms.utils.common.*; import org.jboss.pressgang.ccms.wrapper.*;
[ "org.jboss.pressgang" ]
org.jboss.pressgang;
2,200,893
public List<Output<?>> components() { return components; }
List<Output<?>> function() { return components; }
/** * Gets components. * * @return components. */
Gets components
components
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalGetValue.java", "license": "apache-2.0", "size": 4394 }
[ "java.util.List", "org.tensorflow.Output" ]
import java.util.List; import org.tensorflow.Output;
import java.util.*; import org.tensorflow.*;
[ "java.util", "org.tensorflow" ]
java.util; org.tensorflow;
2,327,898
@Override public Variable emitConditionalMove(PlatformKind cmpKind, Value left, final Value right, Condition cond, boolean unorderedIsTrue, Value trueValue, Value falseValue) { AArch64ArithmeticLIRGenerator arithLir = ((AArch64ArithmeticLIRGenerator) arithmeticLIRGen); Value actualRight = right;...
Variable function(PlatformKind cmpKind, Value left, final Value right, Condition cond, boolean unorderedIsTrue, Value trueValue, Value falseValue) { AArch64ArithmeticLIRGenerator arithLir = ((AArch64ArithmeticLIRGenerator) arithmeticLIRGen); Value actualRight = right; if (isJavaConstant(actualRight) && arithLir.mustRep...
/** * Conditionally move trueValue into new variable if cond + unorderedIsTrue is true, else * falseValue. * * @param left Arbitrary value. Has to have same type as right. Non null. * @param right Arbitrary value. Has to have same type as left. Non null. * @param cond condition that decide...
Conditionally move trueValue into new variable if cond + unorderedIsTrue is true, else falseValue
emitConditionalMove
{ "repo_name": "smarr/Truffle", "path": "compiler/src/org.graalvm.compiler.core.aarch64/src/org/graalvm/compiler/core/aarch64/AArch64LIRGenerator.java", "license": "gpl-2.0", "size": 30540 }
[ "org.graalvm.compiler.asm.aarch64.AArch64Assembler", "org.graalvm.compiler.core.common.LIRKind", "org.graalvm.compiler.core.common.calc.Condition", "org.graalvm.compiler.lir.LIRValueUtil", "org.graalvm.compiler.lir.Variable", "org.graalvm.compiler.lir.aarch64.AArch64ControlFlow" ]
import org.graalvm.compiler.asm.aarch64.AArch64Assembler; import org.graalvm.compiler.core.common.LIRKind; import org.graalvm.compiler.core.common.calc.Condition; import org.graalvm.compiler.lir.LIRValueUtil; import org.graalvm.compiler.lir.Variable; import org.graalvm.compiler.lir.aarch64.AArch64ControlFlow;
import org.graalvm.compiler.asm.aarch64.*; import org.graalvm.compiler.core.common.*; import org.graalvm.compiler.core.common.calc.*; import org.graalvm.compiler.lir.*; import org.graalvm.compiler.lir.aarch64.*;
[ "org.graalvm.compiler" ]
org.graalvm.compiler;
2,550,145
@Override public Constructor<CompilerPhase> getClassConstructor() { return constructor; } public LoopVersioning() { desiredSSAOptions = new SSAOptions(); desiredSSAOptions.setScalarsOnly(true); if (!inSSAphase) { enterSSA = new EnterSSA(); leaveSSA = new LeaveSSA(); } dom...
Constructor<CompilerPhase> function() { return constructor; } public LoopVersioning() { desiredSSAOptions = new SSAOptions(); desiredSSAOptions.setScalarsOnly(true); if (!inSSAphase) { enterSSA = new EnterSSA(); leaveSSA = new LeaveSSA(); } domPhase = new DominatorsPhase(false); }
/** * Get a constructor object for this compiler phase * @return compiler phase constructor */
Get a constructor object for this compiler phase
getClassConstructor
{ "repo_name": "CodeOffloading/JikesRVM-CCO", "path": "jikesrvm-3.1.3/rvm/src/org/jikesrvm/compilers/opt/ssa/LoopVersioning.java", "license": "epl-1.0", "size": 64303 }
[ "java.lang.reflect.Constructor", "org.jikesrvm.compilers.opt.controlflow.DominatorsPhase", "org.jikesrvm.compilers.opt.driver.CompilerPhase" ]
import java.lang.reflect.Constructor; import org.jikesrvm.compilers.opt.controlflow.DominatorsPhase; import org.jikesrvm.compilers.opt.driver.CompilerPhase;
import java.lang.reflect.*; import org.jikesrvm.compilers.opt.controlflow.*; import org.jikesrvm.compilers.opt.driver.*;
[ "java.lang", "org.jikesrvm.compilers" ]
java.lang; org.jikesrvm.compilers;
326,315
public IMatrix getTransitionalMatrix() { return transitionalMatrix; }
IMatrix function() { return transitionalMatrix; }
/** * Final transitional matrix. * * @return IMatrix */
Final transitional matrix
getTransitionalMatrix
{ "repo_name": "miloskrca/lib.matrix.forms", "path": "src/rs/etf/km123247m/Matrix/Forms/Implementation/JordanMatrixForm.java", "license": "gpl-3.0", "size": 10748 }
[ "rs.etf.km123247m.Matrix" ]
import rs.etf.km123247m.Matrix;
import rs.etf.km123247m.*;
[ "rs.etf.km123247m" ]
rs.etf.km123247m;
833,466
public RequestBody buildRequestBodyMultipart(Map<String, Object> formParams) { MultipartBuilder mpBuilder = new MultipartBuilder().type(MultipartBuilder.FORM); for (Entry<String, Object> param : formParams.entrySet()) { if (param.getValue() instanceof File) { File file = ...
RequestBody function(Map<String, Object> formParams) { MultipartBuilder mpBuilder = new MultipartBuilder().type(MultipartBuilder.FORM); for (Entry<String, Object> param : formParams.entrySet()) { if (param.getValue() instanceof File) { File file = (File) param.getValue(); Headers partHeaders = Headers.of(STR, STRSTR\ST...
/** * Build a multipart (file uploading) request body with the given form parameters, * which could contain text fields and file fields. * * @param formParams Form parameters in the form of Map * @return RequestBody */
Build a multipart (file uploading) request body with the given form parameters, which could contain text fields and file fields
buildRequestBodyMultipart
{ "repo_name": "coviu/coviu-java-sdk", "path": "core/src/main/java/com/coviu/core/ApiClient.java", "license": "apache-2.0", "size": 48459 }
[ "com.squareup.okhttp.Headers", "com.squareup.okhttp.MediaType", "com.squareup.okhttp.MultipartBuilder", "com.squareup.okhttp.RequestBody", "java.io.File", "java.util.Map" ]
import com.squareup.okhttp.Headers; import com.squareup.okhttp.MediaType; import com.squareup.okhttp.MultipartBuilder; import com.squareup.okhttp.RequestBody; import java.io.File; import java.util.Map;
import com.squareup.okhttp.*; import java.io.*; import java.util.*;
[ "com.squareup.okhttp", "java.io", "java.util" ]
com.squareup.okhttp; java.io; java.util;
685,262
public TransportChannel createTransportChannel(final PlainActionFuture<TransportResponse> listener) { return new TestTransportChannel(listener); }
TransportChannel function(final PlainActionFuture<TransportResponse> listener) { return new TestTransportChannel(listener); }
/** * Transport channel that is needed for replica operation testing. */
Transport channel that is needed for replica operation testing
createTransportChannel
{ "repo_name": "robin13/elasticsearch", "path": "server/src/test/java/org/elasticsearch/action/support/replication/TransportReplicationActionTests.java", "license": "apache-2.0", "size": 74368 }
[ "org.elasticsearch.action.support.PlainActionFuture", "org.elasticsearch.transport.TestTransportChannel", "org.elasticsearch.transport.TransportChannel", "org.elasticsearch.transport.TransportResponse" ]
import org.elasticsearch.action.support.PlainActionFuture; import org.elasticsearch.transport.TestTransportChannel; import org.elasticsearch.transport.TransportChannel; import org.elasticsearch.transport.TransportResponse;
import org.elasticsearch.action.support.*; import org.elasticsearch.transport.*;
[ "org.elasticsearch.action", "org.elasticsearch.transport" ]
org.elasticsearch.action; org.elasticsearch.transport;
1,319,564
public static boolean isAuthenticated() { SecurityContext securityContext = SecurityContextHolder.getContext(); final Collection<? extends GrantedAuthority> authorities = securityContext.getAuthentication().getAuthorities(); if (authorities != null) { for (GrantedAuthority auth...
static boolean function() { SecurityContext securityContext = SecurityContextHolder.getContext(); final Collection<? extends GrantedAuthority> authorities = securityContext.getAuthentication().getAuthorities(); if (authorities != null) { for (GrantedAuthority authority : authorities) { if (authority.getAuthority().equa...
/** * Check if a user is authenticated. * * @return true if the user is authenticated, false otherwise */
Check if a user is authenticated
isAuthenticated
{ "repo_name": "orius123/slenkins", "path": "src/main/java/github/orius123/orchapp/security/SecurityUtils.java", "license": "apache-2.0", "size": 1967 }
[ "java.util.Collection", "org.springframework.security.core.GrantedAuthority", "org.springframework.security.core.context.SecurityContext", "org.springframework.security.core.context.SecurityContextHolder" ]
import java.util.Collection; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder;
import java.util.*; import org.springframework.security.core.*; import org.springframework.security.core.context.*;
[ "java.util", "org.springframework.security" ]
java.util; org.springframework.security;
1,731,854
public void setPrivateKeyName(String privateKeyName) { if (context != null && privateKeyName != null) { PrivateKey pk = context.getRegistry().lookupByNameAndType(privateKeyName, PrivateKey.class); if (pk != null) { setPrivateKey(pk); } } if...
void function(String privateKeyName) { if (context != null && privateKeyName != null) { PrivateKey pk = context.getRegistry().lookupByNameAndType(privateKeyName, PrivateKey.class); if (pk != null) { setPrivateKey(pk); } } if (privateKeyName != null) { this.privateKeyName = privateKeyName; } }
/** * Sets the reference name for a PrivateKey that can be fond in the registry. */
Sets the reference name for a PrivateKey that can be fond in the registry
setPrivateKeyName
{ "repo_name": "kevinearls/camel", "path": "components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java", "license": "apache-2.0", "size": 16253 }
[ "java.security.PrivateKey" ]
import java.security.PrivateKey;
import java.security.*;
[ "java.security" ]
java.security;
2,240,742
public static List<String> cachedHeaders() { return CACHED_HEADERS; }
static List<String> function() { return CACHED_HEADERS; }
/** * Returns the value of the {@code cachedHeaders} parameter which contains a comma-separated list of * headers whose values are cached using {@code headerValueCache}. * * <p>The default value of this flag is {@value DEFAULT_CACHED_HEADERS}. Specify the * {@code -Dcom.linecorp.armeria.cachedH...
Returns the value of the cachedHeaders parameter which contains a comma-separated list of headers whose values are cached using headerValueCache. The default value of this flag is DEFAULT_CACHED_HEADERS. Specify the -Dcom.linecorp.armeria.cachedHeaders= JVM option to override the default value
cachedHeaders
{ "repo_name": "imasahiro/armeria", "path": "core/src/main/java/com/linecorp/armeria/common/Flags.java", "license": "apache-2.0", "size": 26475 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,188,087
CriticalSectionTimerComparison test = new CriticalSectionTimerComparison(); System.out.println("Threads: " + THREADS); int round = 1; while (true) { System.out.println("\nRound: " + round++); test.doBasicSync(THREADS, LOOP); BasicMonManager.reset(); ...
CriticalSectionTimerComparison test = new CriticalSectionTimerComparison(); System.out.println(STR + THREADS); int round = 1; while (true) { System.out.println(STR + round++); test.doBasicSync(THREADS, LOOP); BasicMonManager.reset(); test.doBasicSyncWithStats(THREADS, LOOP); BasicMonManager.reset(); test.doBasicAtomic(...
/** * Entry point of the demo application. * * @param args command line arguments * @throws InterruptedException should not happen */
Entry point of the demo application
main
{ "repo_name": "rocketraman/basicmon", "path": "src/test/java/org/basicmon/benchmark/CriticalSectionTimerComparison.java", "license": "apache-2.0", "size": 6887 }
[ "org.basicmon.BasicMonManager", "org.javasimon.SimonManager" ]
import org.basicmon.BasicMonManager; import org.javasimon.SimonManager;
import org.basicmon.*; import org.javasimon.*;
[ "org.basicmon", "org.javasimon" ]
org.basicmon; org.javasimon;
2,208,387
public void stopRecord() { if(!initialized || audioManager == null) throw new IllegalStateException("You must call a create method before stoping any detection!"); try { audioManager.stopRecord(); } catch (IOException e) { e.printStackTrace(); } ...
void function() { if(!initialized audioManager == null) throw new IllegalStateException(STR); try { audioManager.stopRecord(); } catch (IOException e) { e.printStackTrace(); } if(activityFP != null) activityFP.stopFeatureProcessing(); }
/** * stops a previously started scenario. Subsequent calls will do nothing.<br> * Use in conjunction with startDetection() * * @throws IllegalStateException if no scenario was created */
stops a previously started scenario. Subsequent calls will do nothing. Use in conjunction with startDetection()
stopRecord
{ "repo_name": "jkarolus/UltraSense", "path": "app/src/main/java/jakobkarolus/de/ultrasense/UltraSenseModule.java", "license": "gpl-2.0", "size": 17222 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,427,332
private MInOut createShipment(MDocType dt, Timestamp movementDate) { log.info("For " + dt); MInOut shipment = new MInOut (this, dt.getC_DocTypeShipment_ID(), movementDate); // shipment.setDateAcct(getDateAcct()); if (!shipment.save(get_TrxName())) { m_processMsg = "Could not create Shipment"; return ...
MInOut function(MDocType dt, Timestamp movementDate) { log.info(STR + dt); MInOut shipment = new MInOut (this, dt.getC_DocTypeShipment_ID(), movementDate); if (!shipment.save(get_TrxName())) { m_processMsg = STR; return null; } for (int i = 0; i < oLines.length; i++) { MOrderLine oLine = oLines[i]; BigDecimal MovementQ...
/** * Create Shipment * @param dt order document type * @param movementDate optional movement date (default today) * @return shipment or null */
Create Shipment
createShipment
{ "repo_name": "geneos/adempiere", "path": "base/src/org/compiere/model/MOrder.java", "license": "gpl-2.0", "size": 73338 }
[ "java.math.BigDecimal", "java.sql.Timestamp", "org.compiere.process.DocAction" ]
import java.math.BigDecimal; import java.sql.Timestamp; import org.compiere.process.DocAction;
import java.math.*; import java.sql.*; import org.compiere.process.*;
[ "java.math", "java.sql", "org.compiere.process" ]
java.math; java.sql; org.compiere.process;
1,250,989
@Override public synchronized void handlePeerDisconnected(SharingPeer peer) { BitSet availablePieces = peer.getAvailablePieces(); for (int i = availablePieces.nextSetBit(0); i >= 0; i = availablePieces.nextSetBit(i+1)) { this.rarest.remove(this.pieces[i]); this.pieces[i].noLongerAt(peer); this.rar...
synchronized void function(SharingPeer peer) { BitSet availablePieces = peer.getAvailablePieces(); for (int i = availablePieces.nextSetBit(0); i >= 0; i = availablePieces.nextSetBit(i+1)) { this.rarest.remove(this.pieces[i]); this.pieces[i].noLongerAt(peer); this.rarest.add(this.pieces[i]); } Piece requested = peer.get...
/** * Peer disconnection handler. * * <p> * When a peer disconnects, we need to mark in all of the pieces it had * available that they can't be reached through this peer anymore. * </p> * * @param peer The peer we got this piece from. */
Peer disconnection handler. When a peer disconnects, we need to mark in all of the pieces it had available that they can't be reached through this peer anymore.
handlePeerDisconnected
{ "repo_name": "cocosvsn/ttorrent", "path": "src/main/java/com/turn/ttorrent/client/SharedTorrent.java", "license": "apache-2.0", "size": 24695 }
[ "com.turn.ttorrent.client.peer.SharingPeer", "java.util.BitSet" ]
import com.turn.ttorrent.client.peer.SharingPeer; import java.util.BitSet;
import com.turn.ttorrent.client.peer.*; import java.util.*;
[ "com.turn.ttorrent", "java.util" ]
com.turn.ttorrent; java.util;
211,914
protected void drawCloud(int x, int y, int w, int h, Color fillColor, Paint fillPaint, Color penColor, boolean shadow) { GeneralPath path = new GeneralPath(); path.moveTo((float) (x + 0.25 * w), (float) (y + 0.25 * h)); path.curveTo((float) (x + 0.05 * w), (float) (y + 0.25 * h), (float) x, (float) (y...
void function(int x, int y, int w, int h, Color fillColor, Paint fillPaint, Color penColor, boolean shadow) { GeneralPath path = new GeneralPath(); path.moveTo((float) (x + 0.25 * w), (float) (y + 0.25 * h)); path.curveTo((float) (x + 0.05 * w), (float) (y + 0.25 * h), (float) x, (float) (y + 0.5 * h), (float) (x + 0.1...
/** * Draws a cloud shape for the given parameters. * * @param x X-coordinate of the shape. * @param y Y-coordinate of the shape. * @param w Width of the shape. * @param h Height of the shape. * @param fillColor Optional fill color of the shape. * @param fillPaint Optional paint of the shape. * @para...
Draws a cloud shape for the given parameters
drawCloud
{ "repo_name": "JasonEX/scxmlgui", "path": "jgraphx/src/com/mxgraph/canvas/mxGraphics2DCanvas.java", "license": "apache-2.0", "size": 44427 }
[ "java.awt.Color", "java.awt.Paint", "java.awt.geom.GeneralPath" ]
import java.awt.Color; import java.awt.Paint; import java.awt.geom.GeneralPath;
import java.awt.*; import java.awt.geom.*;
[ "java.awt" ]
java.awt;
432,933
public void add(Duration duration) { boolean fieldUndefined[] = { false, false, false, false, false, false }; int signum = duration.getSign(); int startMonth = ge...
void function(Duration duration) { boolean fieldUndefined[] = { false, false, false, false, false, false }; int signum = duration.getSign(); int startMonth = getMonth(); if (startMonth == DatatypeConstants.FIELD_UNDEFINED) { startMonth = MIN_FIELD_VALUE[MONTH]; fieldUndefined[MONTH] = true; } BigInteger dMonths = sanit...
/** * <p>Add <code>duration</code> to this instance.<\p> * * <p>The computation is specified in * <a href="http://www.w3.org/TR/xmlschema-2/#adding-durations-to-dateTimes">XML Schema 1.0 Part 2, Appendix E, * <i>Adding durations to dateTimes</i>></a>. * <a href="#datetimefieldsmappi...
Add <code>duration</code> to this instance. The computation is specified in XML Schema 1.0 Part 2, Appendix E, Adding durations to dateTimes>. date/time field mapping table defines the mapping from XML Schema 1.0 <code>dateTime</code> fields to this class' representation of those fields
add
{ "repo_name": "machine16/xerces-for-android", "path": "src/mf/org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl.java", "license": "apache-2.0", "size": 122701 }
[ "java.math.BigDecimal", "java.math.BigInteger" ]
import java.math.BigDecimal; import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
506,371
public Set<FileCollaborator> getCollaborators() { return Collections.unmodifiableSet(collaborators); }
Set<FileCollaborator> function() { return Collections.unmodifiableSet(collaborators); }
/** * Set of collaborators invited to help work on the versioned file. * * @return unmodifiable set of people allowed to work on the versioned file. */
Set of collaborators invited to help work on the versioned file
getCollaborators
{ "repo_name": "nate-rcl/irplus", "path": "ir_core/src/edu/ur/ir/file/VersionedFile.java", "license": "apache-2.0", "size": 18503 }
[ "java.util.Collections", "java.util.Set" ]
import java.util.Collections; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
732,100
protected void emitRecordAndUpdateState( T record, long recordTimestamp, int shardStateIndex, SequenceNumber lastSequenceNumber) { ShardWatermarkState sws = shardWatermarks.get(shardStateIndex); Preconditions.checkNotNull( sws, "shard w...
void function( T record, long recordTimestamp, int shardStateIndex, SequenceNumber lastSequenceNumber) { ShardWatermarkState sws = shardWatermarks.get(shardStateIndex); Preconditions.checkNotNull( sws, STR); Watermark watermark = null; if (sws.periodicWatermarkAssigner != null) { recordTimestamp = sws.periodicWatermark...
/** * Prepare a record and hand it over to the {@link RecordEmitter}, which may collect it * asynchronously. This method is called by {@link ShardConsumer}s. * * @param record the record to collect * @param recordTimestamp timestamp to attach to the collected record * @param shardStateInde...
Prepare a record and hand it over to the <code>RecordEmitter</code>, which may collect it asynchronously. This method is called by <code>ShardConsumer</code>s
emitRecordAndUpdateState
{ "repo_name": "aljoscha/flink", "path": "flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/internals/KinesisDataFetcher.java", "license": "apache-2.0", "size": 67223 }
[ "org.apache.flink.streaming.api.watermark.Watermark", "org.apache.flink.streaming.connectors.kinesis.model.SequenceNumber", "org.apache.flink.util.Preconditions" ]
import org.apache.flink.streaming.api.watermark.Watermark; import org.apache.flink.streaming.connectors.kinesis.model.SequenceNumber; import org.apache.flink.util.Preconditions;
import org.apache.flink.streaming.api.watermark.*; import org.apache.flink.streaming.connectors.kinesis.model.*; import org.apache.flink.util.*;
[ "org.apache.flink" ]
org.apache.flink;
614,181
@Nonnull public InferenceClassificationOverrideCollectionRequestBuilder overrides() { return new InferenceClassificationOverrideCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("overrides"), getClient(), null); }
InferenceClassificationOverrideCollectionRequestBuilder function() { return new InferenceClassificationOverrideCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(STR), getClient(), null); }
/** * Gets a request builder for the InferenceClassificationOverride collection * * @return the collection request builder */
Gets a request builder for the InferenceClassificationOverride collection
overrides
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/InferenceClassificationRequestBuilder.java", "license": "mit", "size": 3456 }
[ "com.microsoft.graph.requests.InferenceClassificationOverrideCollectionRequestBuilder" ]
import com.microsoft.graph.requests.InferenceClassificationOverrideCollectionRequestBuilder;
import com.microsoft.graph.requests.*;
[ "com.microsoft.graph" ]
com.microsoft.graph;
1,903,335
public DirContext getSchema() throws NamingException { if (ctx == null) throw new NamingException("No context open to retrieve Schema from"); log.log(Level.FINER,"getSchema() call"); return ctx.getSchema(""); }
DirContext function() throws NamingException { if (ctx == null) throw new NamingException(STR); log.log(Level.FINER,STR); return ctx.getSchema(""); }
/** * A simple wrapper for a ctx.getSchema("") call. * @deprecated - jndi's 'getSchema' may not always be available (e.g. not implemented in dsml). * use 'getSchemaAttributes()' instead */
A simple wrapper for a ctx.getSchema("") call
getSchema
{ "repo_name": "idega/com.idega.block.ldap", "path": "src/java/com/idega/core/ldap/client/jndi/BasicOps.java", "license": "gpl-3.0", "size": 48723 }
[ "java.util.logging.Level", "javax.naming.NamingException", "javax.naming.directory.DirContext" ]
import java.util.logging.Level; import javax.naming.NamingException; import javax.naming.directory.DirContext;
import java.util.logging.*; import javax.naming.*; import javax.naming.directory.*;
[ "java.util", "javax.naming" ]
java.util; javax.naming;
1,492,786
@Deprecated public void forEachByteArray(final ByteArrayConsumer byteArrayConsumer, final boolean ignoreIOExceptions) { for (final Resource resource : this) { try (final Resource resourceToClose = resource) { final byte[] resourceContent = resource.load(); byt...
void function(final ByteArrayConsumer byteArrayConsumer, final boolean ignoreIOExceptions) { for (final Resource resource : this) { try (final Resource resourceToClose = resource) { final byte[] resourceContent = resource.load(); byteArrayConsumer.accept(resource, resourceContent); } catch (final IOException e) { if (!...
/** * Fetch the content of each {@link Resource} in this {@link ResourceList} as a byte array, pass the byte array * to the given {@link ByteArrayConsumer}, then close the underlying InputStream or release the underlying * ByteBuffer by calling {@link Resource#close()}. * * @param byteArrayCon...
Fetch the content of each <code>Resource</code> in this <code>ResourceList</code> as a byte array, pass the byte array to the given <code>ByteArrayConsumer</code>, then close the underlying InputStream or release the underlying ByteBuffer by calling <code>Resource#close()</code>
forEachByteArray
{ "repo_name": "classgraph/classgraph", "path": "src/main/java/io/github/classgraph/ResourceList.java", "license": "mit", "size": 30542 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,153,939
@Nullable public CacheObject peek(boolean heap, boolean offheap, boolean swap, AffinityTopologyVersion topVer, @Nullable IgniteCacheExpiryPolicy plc) throws GridCacheEntryRemovedException, IgniteCheckedException;
@Nullable CacheObject function(boolean heap, boolean offheap, boolean swap, AffinityTopologyVersion topVer, @Nullable IgniteCacheExpiryPolicy plc) throws GridCacheEntryRemovedException, IgniteCheckedException;
/** * Peeks into entry without loading value or updating statistics. * * @param heap Read from heap flag. * @param offheap Read from offheap flag. * @param swap Read from swap flag. * @param topVer Topology version. * @param plc Expiry policy if TTL should be updated. * @return V...
Peeks into entry without loading value or updating statistics
peek
{ "repo_name": "agura/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheEntryEx.java", "license": "apache-2.0", "size": 37668 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion", "org.jetbrains.annotations.Nullable" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion; import org.jetbrains.annotations.Nullable;
import org.apache.ignite.*; import org.apache.ignite.internal.processors.affinity.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
2,004,171
protected static ImageIcon createImageIcon(final String path) { URL imgURL = Player.class.getResource(path); if (imgURL != null) { return new ImageIcon(imgURL); } else { System.err.println("Couldn't find file: " + path); System.err.println("path: " + Player.class.getResource("."));...
static ImageIcon function(final String path) { URL imgURL = Player.class.getResource(path); if (imgURL != null) { return new ImageIcon(imgURL); } else { System.err.println(STR + path); System.err.println(STR + Player.class.getResource(".")); return null; } }
/** * Returns an ImageIcon, or null if the path was invalid. * @param path * @return an ImageIcon, or null if the path was invalid. */
Returns an ImageIcon, or null if the path was invalid
createImageIcon
{ "repo_name": "roboidstudio/embedded", "path": "org.roboid.audio/src/org/xiph/speex/player/Player.java", "license": "lgpl-2.1", "size": 20266 }
[ "javax.swing.ImageIcon" ]
import javax.swing.ImageIcon;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
16,522
public static FactoryConfiguration load(String path) { FactoryConfiguration config = find(path); if (config == null) { throw new ResourceNotFoundException("Could not find configuration at "+path); } return config; }
static FactoryConfiguration function(String path) { FactoryConfiguration config = find(path); if (config == null) { throw new ResourceNotFoundException(STR+path); } return config; }
/** * Returns a {@link FactoryConfiguration} loaded from a configuration file * at the specified path. If no such file is found at that path, this * will throw a {@link ResourceNotFoundException}. * * @see #find(String path) */
Returns a <code>FactoryConfiguration</code> loaded from a configuration file at the specified path. If no such file is found at that path, this will throw a <code>ResourceNotFoundException</code>
load
{ "repo_name": "fluidinfo/velocity-tools-packaging", "path": "src/main/java/org/apache/velocity/tools/config/ConfigurationUtils.java", "license": "apache-2.0", "size": 18710 }
[ "org.apache.velocity.exception.ResourceNotFoundException" ]
import org.apache.velocity.exception.ResourceNotFoundException;
import org.apache.velocity.exception.*;
[ "org.apache.velocity" ]
org.apache.velocity;
1,936,325
public Entry[] getLookupAttributes() throws NoSuchObjectException, RemoteException { readyState.check(); concurrentObj.readLock(); try { return thisServicesAttrs; } finally { concurrentObj.readUnlock(); } ...
Entry[] function() throws NoSuchObjectException, RemoteException { readyState.check(); concurrentObj.readLock(); try { return thisServicesAttrs; } finally { concurrentObj.readUnlock(); } }
/** * Returns the current attribute sets for the lookup discovery service. * * @return array of net.jini.core.entry.Entry containing the current * attribute sets for the lookup discovery service * * @throws java.rmi.NoSuchObjectException if this method is called during * ...
Returns the current attribute sets for the lookup discovery service
getLookupAttributes
{ "repo_name": "cdegroot/river", "path": "src/com/sun/jini/fiddler/FiddlerImpl.java", "license": "apache-2.0", "size": 419779 }
[ "java.rmi.NoSuchObjectException", "java.rmi.RemoteException", "net.jini.core.entry.Entry" ]
import java.rmi.NoSuchObjectException; import java.rmi.RemoteException; import net.jini.core.entry.Entry;
import java.rmi.*; import net.jini.core.entry.*;
[ "java.rmi", "net.jini.core" ]
java.rmi; net.jini.core;
872,663
public void setServiceId(String serviceId) { cfg.PAZPAR2_SERVICE_ID = serviceId; try { client = new Pazpar2ClientGeneric(cfg); } catch (ProxyErrorException pe) { logger.error("Could not configure Pazpar2 client: " + pe.getMessage()); } }
void function(String serviceId) { cfg.PAZPAR2_SERVICE_ID = serviceId; try { client = new Pazpar2ClientGeneric(cfg); } catch (ProxyErrorException pe) { logger.error(STR + pe.getMessage()); } }
/** * Sets the service ID that Pazpar2 should use when servicing requests * @param serviceId */
Sets the service ID that Pazpar2 should use when servicing requests
setServiceId
{ "repo_name": "indexdata/mkjsf", "path": "src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Client.java", "license": "agpl-3.0", "size": 11758 }
[ "com.indexdata.masterkey.pazpar2.client.Pazpar2ClientGeneric", "com.indexdata.masterkey.pazpar2.client.exceptions.ProxyErrorException" ]
import com.indexdata.masterkey.pazpar2.client.Pazpar2ClientGeneric; import com.indexdata.masterkey.pazpar2.client.exceptions.ProxyErrorException;
import com.indexdata.masterkey.pazpar2.client.*; import com.indexdata.masterkey.pazpar2.client.exceptions.*;
[ "com.indexdata.masterkey" ]
com.indexdata.masterkey;
2,334,231
public void setNotiClass(String className) { synchronized (this) { if (!isInitNotiClass) { isInitNotiClass = true; try { setNotiClass = Request.class.getMethod(METHOD_NAME_SET_NOTI_CLASS, CharSequence.class); ...
void function(String className) { synchronized (this) { if (!isInitNotiClass) { isInitNotiClass = true; try { setNotiClass = Request.class.getMethod(METHOD_NAME_SET_NOTI_CLASS, CharSequence.class); } catch (Exception e) { e.printStackTrace(); } } } if (setNotiClass != null) { try { setNotiClass.invoke(this, className);...
/** * set noti class, only init once * * @param className full class name */
set noti class, only init once
setNotiClass
{ "repo_name": "haodynasty/BasePlusubLib", "path": "PlusubBaseLib/src/main/java/com/plusub/lib/util/DownloadManagerPro.java", "license": "apache-2.0", "size": 13280 }
[ "android.app.DownloadManager" ]
import android.app.DownloadManager;
import android.app.*;
[ "android.app" ]
android.app;
552,446
public void recreateProfile(boolean needsEmergencyStartup) throws PersistenceException { ((PersistenceServiceImpl) fPersistenceService).recreateProfile(needsEmergencyStartup); }
void function(boolean needsEmergencyStartup) throws PersistenceException { ((PersistenceServiceImpl) fPersistenceService).recreateProfile(needsEmergencyStartup); }
/** * Recreate the Profile of the persistence layer. In case of a Database, this * would drop relations and create them again. * * @param needsEmergencyStartup if <code>true</code> causes this method to * also trigger an emergency startup so that other operations can be normally * done afterward...
Recreate the Profile of the persistence layer. In case of a Database, this would drop relations and create them again
recreateProfile
{ "repo_name": "rssowl/RSSOwl", "path": "org.rssowl.core/src/org/rssowl/core/internal/InternalOwl.java", "license": "epl-1.0", "size": 16228 }
[ "org.rssowl.core.internal.persist.service.PersistenceServiceImpl", "org.rssowl.core.persist.service.PersistenceException" ]
import org.rssowl.core.internal.persist.service.PersistenceServiceImpl; import org.rssowl.core.persist.service.PersistenceException;
import org.rssowl.core.internal.persist.service.*; import org.rssowl.core.persist.service.*;
[ "org.rssowl.core" ]
org.rssowl.core;
2,667,488
public void testCloning() { XYBlockRenderer r1 = new XYBlockRenderer(); LookupPaintScale scale1 = new LookupPaintScale(); r1.setPaintScale(scale1); XYBlockRenderer r2 = null; try { r2 = (XYBlockRenderer) r1.clone(); } catch (CloneNotSupportedExcept...
void function() { XYBlockRenderer r1 = new XYBlockRenderer(); LookupPaintScale scale1 = new LookupPaintScale(); r1.setPaintScale(scale1); XYBlockRenderer r2 = null; try { r2 = (XYBlockRenderer) r1.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } assertTrue(r1 != r2); assertTrue(r1.getClass() == ...
/** * Confirm that cloning works. */
Confirm that cloning works
testCloning
{ "repo_name": "JSansalone/JFreeChart", "path": "tests/org/jfree/chart/renderer/xy/junit/XYBlockRendererTests.java", "license": "lgpl-2.1", "size": 7882 }
[ "java.awt.Color", "org.jfree.chart.renderer.LookupPaintScale", "org.jfree.chart.renderer.xy.XYBlockRenderer" ]
import java.awt.Color; import org.jfree.chart.renderer.LookupPaintScale; import org.jfree.chart.renderer.xy.XYBlockRenderer;
import java.awt.*; import org.jfree.chart.renderer.*; import org.jfree.chart.renderer.xy.*;
[ "java.awt", "org.jfree.chart" ]
java.awt; org.jfree.chart;
2,707,254