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
// TODO: There's a lot of boiler plate code identical // to increment... See how to better unify that. public Result append(Append append, long nonceGroup, long nonce) throws IOException { byte[] row = append.getRow(); checkRow(row, "append"); boolean flush = false; Durability durability = ...
Result function(Append append, long nonceGroup, long nonce) throws IOException { byte[] row = append.getRow(); checkRow(row, STR); boolean flush = false; Durability durability = getEffectiveDurability(append.getDurability()); boolean writeToWAL = durability != Durability.SKIP_WAL; WALEdit walEdits = null; List<Cell> al...
/** * Perform one or more append operations on a row. * * @param append * @return new keyvalues after increment * @throws IOException */
Perform one or more append operations on a row
append
{ "repo_name": "throughsky/lywebank", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java", "license": "apache-2.0", "size": 235118 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.Collections", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.hadoop.hbase.Cell", "org.apache.hadoop.hbase.CellUtil", "org.apache.hadoop.hbase.KeyValue", "org.apache.hadoop.hbase.KeyValueUtil", "org.apache.hadoop.hbase....
import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.CellUtil; import org.apache.hadoop.hbase.KeyValue; import org.apache.hadoop.hbase.KeyValueUtil;...
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.coprocessor.*; import org.apache.hadoop.hbase.regionserver.*; import org.apache.hadoop.hbase.regionserver.wal.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,972,095
public void addPatternField(Field field){ List<Field> fields = notValidFields.get(VALIDATION_FAILED_PATTERN); if(fields == null) fields = new ArrayList<Field>(); fields.add(field); notValidFields.put(VALIDATION_FAILED_PATTERN, fields); }
void function(Field field){ List<Field> fields = notValidFields.get(VALIDATION_FAILED_PATTERN); if(fields == null) fields = new ArrayList<Field>(); fields.add(field); notValidFields.put(VALIDATION_FAILED_PATTERN, fields); }
/** * Use to add a field that failed pattern validation * @param field */
Use to add a field that failed pattern validation
addPatternField
{ "repo_name": "wisdom-garden/dotcms", "path": "src/com/dotmarketing/portlets/contentlet/business/DotContentletValidationException.java", "license": "gpl-3.0", "size": 8264 }
[ "com.dotmarketing.portlets.structure.model.Field", "java.util.ArrayList", "java.util.List" ]
import com.dotmarketing.portlets.structure.model.Field; import java.util.ArrayList; import java.util.List;
import com.dotmarketing.portlets.structure.model.*; import java.util.*;
[ "com.dotmarketing.portlets", "java.util" ]
com.dotmarketing.portlets; java.util;
1,836,121
public int setBalancerBandwidth(String[] argv, int idx) throws IOException { long bandwidth; int exitCode = -1; try { bandwidth = Long.parseLong(argv[idx]); } catch (NumberFormatException nfe) { System.err.println("NumberFormatException: " + nfe.getMessage()); System.err.println("Us...
int function(String[] argv, int idx) throws IOException { long bandwidth; int exitCode = -1; try { bandwidth = Long.parseLong(argv[idx]); } catch (NumberFormatException nfe) { System.err.println(STR + nfe.getMessage()); System.err.println(STR + STR); return exitCode; } FileSystem fs = getFS(); if (!(fs instanceof Distr...
/** * Command to ask the namenode to set the balancer bandwidth for all of the * datanodes. * Usage: hdfs dfsadmin -setBalancerBandwidth bandwidth * @param argv List of of command line parameters. * @param idx The index of the command that is being processed. * @exception IOException */
Command to ask the namenode to set the balancer bandwidth for all of the datanodes. Usage: hdfs dfsadmin -setBalancerBandwidth bandwidth
setBalancerBandwidth
{ "repo_name": "oza/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java", "license": "apache-2.0", "size": 77148 }
[ "java.io.IOException", "java.util.List", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.hdfs.DistributedFileSystem", "org.apache.hadoop.hdfs.HAUtil", "org.apache.hadoop.hdfs.NameNodeProxies", "org.apache.hadoop.hdfs.protocol.ClientProtocol" ]
import java.io.IOException; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs.HAUtil; import org.apache.hadoop.hdfs.NameNodeProxies; import org.apache.hadoop.hdfs.protocol.ClientP...
import java.io.*; import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.protocol.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
600,310
public void updatePoints(Vector3f start, Vector3f end) { this.start.set(start); this.end.set(end); VertexBuffer posBuf = getBuffer(Type.Position); FloatBuffer fb = (FloatBuffer) posBuf.getData(); fb.rewind(); fb.put(start.x).put(start.y).put(start.z); ...
void function(Vector3f start, Vector3f end) { this.start.set(start); this.end.set(end); VertexBuffer posBuf = getBuffer(Type.Position); FloatBuffer fb = (FloatBuffer) posBuf.getData(); fb.rewind(); fb.put(start.x).put(start.y).put(start.z); fb.put(end.x).put(end.y).put(end.z); posBuf.updateData(fb); updateBound(); }
/** * Alter the start and end. * * @param start the desired mesh location of the start (not null, * unaffected) * @param end the desired mesh location of the end (not null, unaffected) */
Alter the start and end
updatePoints
{ "repo_name": "zzuegg/jmonkeyengine", "path": "jme3-core/src/main/java/com/jme3/scene/shape/Line.java", "license": "bsd-3-clause", "size": 4287 }
[ "com.jme3.math.Vector3f", "com.jme3.scene.VertexBuffer", "java.nio.FloatBuffer" ]
import com.jme3.math.Vector3f; import com.jme3.scene.VertexBuffer; import java.nio.FloatBuffer;
import com.jme3.math.*; import com.jme3.scene.*; import java.nio.*;
[ "com.jme3.math", "com.jme3.scene", "java.nio" ]
com.jme3.math; com.jme3.scene; java.nio;
785,234
private final Object deserialization(byte[] b) throws IOException, ClassNotFoundException { ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(b)); Object result = ois.readObject(); ois.close(); return result; }
final Object function(byte[] b) throws IOException, ClassNotFoundException { ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(b)); Object result = ois.readObject(); ois.close(); return result; }
/** * Reads an object from a stream that encapsulate <code>b</code> and * returns the result as an object * * @param b * the buffer that contains the serialized object * @return an object that has been deserialized * @throws IOException * if an I/O error h...
Reads an object from a stream that encapsulate <code>b</code> and returns the result as an object
deserialization
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/modules/crypto2/src/javax/crypto/SealedObject.java", "license": "apache-2.0", "size": 8537 }
[ "java.io.ByteArrayInputStream", "java.io.IOException", "java.io.ObjectInputStream" ]
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream;
import java.io.*;
[ "java.io" ]
java.io;
228,779
@Override public void write(DataOutputStream out) throws IOException { out.write(header.getBytes(StandardCharsets.US_ASCII)); out.writeInt(version); rules.write(out); initialBoard.write(out); }
void function(DataOutputStream out) throws IOException { out.write(header.getBytes(StandardCharsets.US_ASCII)); out.writeInt(version); rules.write(out); initialBoard.write(out); }
/** * Write the Level to a DataOutputStream. * * @param out */
Write the Level to a DataOutputStream
write
{ "repo_name": "mvit/sixes-wild", "path": "model/Level.java", "license": "mit", "size": 3780 }
[ "java.io.DataOutputStream", "java.io.IOException", "java.nio.charset.StandardCharsets" ]
import java.io.DataOutputStream; import java.io.IOException; import java.nio.charset.StandardCharsets;
import java.io.*; import java.nio.charset.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,268,823
CaseDefinition getCaseDefinition(String caseDefinitionId);
CaseDefinition getCaseDefinition(String caseDefinitionId);
/** * Returns the {@link CaseDefinition}. * * @throws NotValidException when the given case definition id is null * @throws NotFoundException when no case definition is found for the given case definition id * @throws ProcessEngineException when an internal exception happens during the execution * ...
Returns the <code>CaseDefinition</code>
getCaseDefinition
{ "repo_name": "xasx/camunda-bpm-platform", "path": "engine/src/main/java/org/camunda/bpm/engine/RepositoryService.java", "license": "apache-2.0", "size": 37134 }
[ "org.camunda.bpm.engine.repository.CaseDefinition" ]
import org.camunda.bpm.engine.repository.CaseDefinition;
import org.camunda.bpm.engine.repository.*;
[ "org.camunda.bpm" ]
org.camunda.bpm;
1,072,807
@Override public String getShortFileName() { if (isInConsoleLog()) { return NO_PACKAGE; } return FilenameUtils.getName(TreeString.toString(fileName)); }
String function() { if (isInConsoleLog()) { return NO_PACKAGE; } return FilenameUtils.getName(TreeString.toString(fileName)); }
/** * Gets the associated file name of this bug (without path). * * @return the short file name */
Gets the associated file name of this bug (without path)
getShortFileName
{ "repo_name": "uhafner/analysis-model", "path": "src/main/java/hudson/plugins/analysis/util/model/AbstractAnnotation.java", "license": "mit", "size": 17504 }
[ "hudson.plugins.analysis.util.TreeString", "org.apache.commons.io.FilenameUtils" ]
import hudson.plugins.analysis.util.TreeString; import org.apache.commons.io.FilenameUtils;
import hudson.plugins.analysis.util.*; import org.apache.commons.io.*;
[ "hudson.plugins.analysis", "org.apache.commons" ]
hudson.plugins.analysis; org.apache.commons;
326,228
@Override public void finishBundle(Context context) throws Exception { try { mutator.close(); } catch (RetriesExhaustedWithDetailsException e) { List<Throwable> causes = e.getCauses(); if (causes.size() == 1) { throw (Exception) causes.get(0); } else { ...
void function(Context context) throws Exception { try { mutator.close(); } catch (RetriesExhaustedWithDetailsException e) { List<Throwable> causes = e.getCauses(); if (causes.size() == 1) { throw (Exception) causes.get(0); } else { throw e; } } conn.close(); } } public static class CloudBigtableMultiTableWriteFn extend...
/** * Closes the {@link BufferedMutator} and {@link Connection}. */
Closes the <code>BufferedMutator</code> and <code>Connection</code>
finishBundle
{ "repo_name": "waprin/cloud-bigtable-client", "path": "bigtable-hbase-dataflow/src/main/java/com/google/cloud/bigtable/dataflow/CloudBigtableIO.java", "license": "apache-2.0", "size": 33342 }
[ "com.google.cloud.dataflow.sdk.transforms.DoFn", "java.util.List", "org.apache.hadoop.hbase.client.Connection", "org.apache.hadoop.hbase.client.Mutation", "org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException" ]
import com.google.cloud.dataflow.sdk.transforms.DoFn; import java.util.List; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.Mutation; import org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException;
import com.google.cloud.dataflow.sdk.transforms.*; import java.util.*; import org.apache.hadoop.hbase.client.*;
[ "com.google.cloud", "java.util", "org.apache.hadoop" ]
com.google.cloud; java.util; org.apache.hadoop;
160,349
public boolean datagramReceived(DatagramPacket datagramPacket);
boolean function(DatagramPacket datagramPacket);
/** * Called when a datagram is received. If the method returns false, the * packet MUST NOT be resent from the received Channel. * * @param datagramPacket the datagram packet received. * @return ? */
Called when a datagram is received. If the method returns false, the packet MUST NOT be resent from the received Channel
datagramReceived
{ "repo_name": "qyj415/openfire", "path": "src/java/org/jivesoftware/openfire/mediaproxy/DatagramListener.java", "license": "apache-2.0", "size": 1158 }
[ "java.net.DatagramPacket" ]
import java.net.DatagramPacket;
import java.net.*;
[ "java.net" ]
java.net;
2,298,736
// P R I V A T E ------------------------------------------------------- private void initCtrls() { // K E Y S T R O K E ----------------------------------------------- AWTKeyStroke aksTab = AWTKeyStroke.getAWTKeyStroke ( KeyEvent.VK_TAB , 0 ); AWTKeyStroke aksShftTab = AWTKeyStroke.getAWTKeyStroke...
void function() { AWTKeyStroke aksTab = AWTKeyStroke.getAWTKeyStroke ( KeyEvent.VK_TAB , 0 ); AWTKeyStroke aksShftTab = AWTKeyStroke.getAWTKeyStroke ( KeyEvent.VK_TAB , InputEvent.SHIFT_DOWN_MASK ); AWTKeyStroke aksCtrlTab = AWTKeyStroke.getAWTKeyStroke ( KeyEvent.VK_TAB , InputEvent.CTRL_DOWN_MASK ); AWTKeyStroke aksC...
/** * initialize controls with modified key mappings */
initialize controls with modified key mappings
initCtrls
{ "repo_name": "ldohxc/SOEN343", "path": "org/ezim/ui/EzimTextArea.java", "license": "gpl-3.0", "size": 4530 }
[ "java.awt.AWTKeyStroke", "java.awt.KeyboardFocusManager", "java.awt.event.InputEvent", "java.awt.event.KeyEvent", "java.util.HashSet", "java.util.Set", "javax.swing.KeyStroke" ]
import java.awt.AWTKeyStroke; import java.awt.KeyboardFocusManager; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.util.HashSet; import java.util.Set; import javax.swing.KeyStroke;
import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*;
[ "java.awt", "java.util", "javax.swing" ]
java.awt; java.util; javax.swing;
1,622,943
public String report (String codIndicator) { StringWriter writer=new StringWriter(); writer.write(codIndicator); writer.write(";"); for (int i=0; i<data.size(); i++) { WDI wdi=data.get(i); if (wdi.getIndicatorCode().equals(codIndicator)) { Dou...
String function (String codIndicator) { StringWriter writer=new StringWriter(); writer.write(codIndicator); writer.write(";"); for (int i=0; i<data.size(); i++) { WDI wdi=data.get(i); if (wdi.getIndicatorCode().equals(codIndicator)) { Double[] years=wdi.getValues(); double mean=0.0; for (int j=0; j<years.length; j++) {...
/** * Method that makes a report of data * @param codIndicator Indicator * @return The medium value of that indicator per country */
Method that makes a report of data
report
{ "repo_name": "SergeyZhernovoy/any_themes", "path": "concurrent/src/main/java/lesson5_executors/client_server/wdi/WDIDAO.java", "license": "gpl-3.0", "size": 3805 }
[ "java.io.StringWriter" ]
import java.io.StringWriter;
import java.io.*;
[ "java.io" ]
java.io;
2,657,467
protected Object convertToString(final Object value) { if (value instanceof Date) { DateFormat df = new SimpleDateFormat(DateUtil.getDatePattern()); if (value instanceof Timestamp) { df = new SimpleDateFormat(DateUtil.getDateTimePattern()); } ...
Object function(final Object value) { if (value instanceof Date) { DateFormat df = new SimpleDateFormat(DateUtil.getDatePattern()); if (value instanceof Timestamp) { df = new SimpleDateFormat(DateUtil.getDateTimePattern()); } try { return df.format(value); } catch (final Exception e) { throw new ConversionException(STR...
/** * Convert a java.util.Date or a java.sql.Timestamp to a String. Or does a toString * @param value value to convert * @return Converted value for property population */
Convert a java.util.Date or a java.sql.Timestamp to a String. Or does a toString
convertToString
{ "repo_name": "Axxis-computo/Control", "path": "src/main/java/com/axxiscomputo/util/DateConverter.java", "license": "apache-2.0", "size": 3246 }
[ "java.sql.Timestamp", "java.text.DateFormat", "java.text.SimpleDateFormat", "java.util.Date", "org.apache.commons.beanutils.ConversionException" ]
import java.sql.Timestamp; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.beanutils.ConversionException;
import java.sql.*; import java.text.*; import java.util.*; import org.apache.commons.beanutils.*;
[ "java.sql", "java.text", "java.util", "org.apache.commons" ]
java.sql; java.text; java.util; org.apache.commons;
1,409,669
private void testPutBufferFails(@Nullable final JobID jobId, BlobKey.BlobType blobType) throws IOException { assumeTrue(!OperatingSystem.isWindows()); //setWritable doesn't work on Windows. final Configuration config = new Configuration(); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporaryFold...
void function(@Nullable final JobID jobId, BlobKey.BlobType blobType) throws IOException { assumeTrue(!OperatingSystem.isWindows()); final Configuration config = new Configuration(); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporaryFolder.newFolder().getAbsolutePath()); File tempFileDir = null; try (BlobS...
/** * Uploads a byte array to a server which cannot create any files via the {@link BlobServer}. * File transfers should fail. * * @param jobId * job id * @param blobType * whether the BLOB should become permanent or transient */
Uploads a byte array to a server which cannot create any files via the <code>BlobServer</code>. File transfers should fail
testPutBufferFails
{ "repo_name": "zhangminglei/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerPutTest.java", "license": "apache-2.0", "size": 30835 }
[ "java.io.File", "java.io.IOException", "javax.annotation.Nullable", "org.apache.flink.api.common.JobID", "org.apache.flink.configuration.BlobServerOptions", "org.apache.flink.configuration.Configuration", "org.apache.flink.util.OperatingSystem", "org.junit.Assert", "org.junit.Assume" ]
import java.io.File; import java.io.IOException; import javax.annotation.Nullable; import org.apache.flink.api.common.JobID; import org.apache.flink.configuration.BlobServerOptions; import org.apache.flink.configuration.Configuration; import org.apache.flink.util.OperatingSystem; import org.junit.Assert; import org.jun...
import java.io.*; import javax.annotation.*; import org.apache.flink.api.common.*; import org.apache.flink.configuration.*; import org.apache.flink.util.*; import org.junit.*;
[ "java.io", "javax.annotation", "org.apache.flink", "org.junit" ]
java.io; javax.annotation; org.apache.flink; org.junit;
2,763,583
public static void put(String key, Object object, IHyracksTaskContext ctx) { TaskUtil.getSharedMap(ctx, true).put(key, object); }
static void function(String key, Object object, IHyracksTaskContext ctx) { TaskUtil.getSharedMap(ctx, true).put(key, object); }
/** * put the key value pair in a map task object * * @param key * @param ctx * @param object */
put the key value pair in a map task object
put
{ "repo_name": "ty1er/incubator-asterixdb", "path": "hyracks-fullstack/hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/utils/TaskUtil.java", "license": "apache-2.0", "size": 2466 }
[ "org.apache.hyracks.api.context.IHyracksTaskContext" ]
import org.apache.hyracks.api.context.IHyracksTaskContext;
import org.apache.hyracks.api.context.*;
[ "org.apache.hyracks" ]
org.apache.hyracks;
1,980,081
public static XconnectLoadBalancerEndpoint fromString(String s) { checkArgument(s.matches(LOAD_BALANCER_PATTERN), "String {} does not match {} format", s, LOAD_BALANCER_PATTERN); return new XconnectLoadBalancerEndpoint(Integer.valueOf(s.replaceFirst(LB_KEYWORD, ""))); }
static XconnectLoadBalancerEndpoint function(String s) { checkArgument(s.matches(LOAD_BALANCER_PATTERN), STR, s, LOAD_BALANCER_PATTERN); return new XconnectLoadBalancerEndpoint(Integer.valueOf(s.replaceFirst(LB_KEYWORD, ""))); }
/** * Gets XconnectLoadBalancerEndpoint from string. * * @param s string * @return XconnectLoadBalancerEndpoint */
Gets XconnectLoadBalancerEndpoint from string
fromString
{ "repo_name": "oplinkoms/onos", "path": "apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/xconnect/api/XconnectLoadBalancerEndpoint.java", "license": "apache-2.0", "size": 2564 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
471,633
Camera.Parameters parameters = camera.getParameters(); previewFormat = parameters.getPreviewFormat(); previewFormatString = parameters.get("preview-format"); Log.d(TAG, "Default preview format: " + previewFormat + '/' + previewFormatString); WindowManager manager = (WindowManager) context.getSystemServi...
Camera.Parameters parameters = camera.getParameters(); previewFormat = parameters.getPreviewFormat(); previewFormatString = parameters.get(STR); Log.d(TAG, STR + previewFormat + '/' + previewFormatString); WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display display = manage...
/** * Reads, one time, values from the camera that are needed by the app. */
Reads, one time, values from the camera that are needed by the app
initFromCameraParameters
{ "repo_name": "yuanguozheng/XiyouLibrary", "path": "src/com/zxing/camera/CameraConfigurationManager.java", "license": "apache-2.0", "size": 8996 }
[ "android.content.Context", "android.graphics.Point", "android.hardware.Camera", "android.util.Log", "android.view.Display", "android.view.WindowManager" ]
import android.content.Context; import android.graphics.Point; import android.hardware.Camera; import android.util.Log; import android.view.Display; import android.view.WindowManager;
import android.content.*; import android.graphics.*; import android.hardware.*; import android.util.*; import android.view.*;
[ "android.content", "android.graphics", "android.hardware", "android.util", "android.view" ]
android.content; android.graphics; android.hardware; android.util; android.view;
535,238
public void testTryConvertToReadLock() throws InterruptedException { StampedLock lock = new StampedLock(); long s, p; assertEquals(0L, lock.tryConvertToReadLock(0L)); s = assertValid(lock, lock.tryOptimisticRead()); p = assertValid(lock, lock.tryConvertToReadLock(s)); ...
void function() throws InterruptedException { StampedLock lock = new StampedLock(); long s, p; assertEquals(0L, lock.tryConvertToReadLock(0L)); s = assertValid(lock, lock.tryOptimisticRead()); p = assertValid(lock, lock.tryConvertToReadLock(s)); assertTrue(lock.isReadLocked()); assertEquals(1, lock.getReadLockCount());...
/** * tryConvertToReadLock succeeds for valid stamps */
tryConvertToReadLock succeeds for valid stamps
testTryConvertToReadLock
{ "repo_name": "md-5/jdk10", "path": "test/jdk/java/util/concurrent/tck/StampedLockTest.java", "license": "gpl-2.0", "size": 57159 }
[ "java.util.concurrent.locks.StampedLock", "java.util.function.BiConsumer", "java.util.function.Function" ]
import java.util.concurrent.locks.StampedLock; import java.util.function.BiConsumer; import java.util.function.Function;
import java.util.concurrent.locks.*; import java.util.function.*;
[ "java.util" ]
java.util;
846,476
Map<Long, SubversionManager> loadSvnManagers() { Map<Long, SubversionManager> managers = loadManagersFromJiraProperties(); if (managers.isEmpty()) { log.info("Could not find any subversion repositories configured, trying to load from " + SvnPropertiesLoader.PROPERTIES_FILE_...
Map<Long, SubversionManager> loadSvnManagers() { Map<Long, SubversionManager> managers = loadManagersFromJiraProperties(); if (managers.isEmpty()) { log.info(STR + SvnPropertiesLoader.PROPERTIES_FILE_NAME); managers = loadFromProperties(); } return managers; } /** * The Subversion configuration properties are stored in...
/** * Loads a {@link java.util.Map} of {@link com.atlassian.jira.plugin.ext.subversion.SubversionManager} IDs to the {@link com.atlassian.jira.plugin.ext.subversion.SubversionManager}. * The repositories are loaded from persistent storage. If they couldn't be found there, we will try to look for them in the p...
Loads a <code>java.util.Map</code> of <code>com.atlassian.jira.plugin.ext.subversion.SubversionManager</code> IDs to the <code>com.atlassian.jira.plugin.ext.subversion.SubversionManager</code>. The repositories are loaded from persistent storage. If they couldn't be found there, we will try to look for them in the plug...
loadSvnManagers
{ "repo_name": "justingarrick/jira-svn-plugin-instantupdate", "path": "atlassian-jira-subversion-plugin-0.10.5.4_01/src/main/java/com/atlassian/jira/plugin/ext/subversion/MultipleSubversionRepositoryManagerImpl.java", "license": "apache-2.0", "size": 10856 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,888,064
public void setNewBeanInstanceStrategy( NewBeanInstanceStrategy newBeanInstanceStrategy ) { this.newBeanInstanceStrategy = newBeanInstanceStrategy == null ? DEFAULT_NEW_BEAN_INSTANCE_STRATEGY : newBeanInstanceStrategy; }
void function( NewBeanInstanceStrategy newBeanInstanceStrategy ) { this.newBeanInstanceStrategy = newBeanInstanceStrategy == null ? DEFAULT_NEW_BEAN_INSTANCE_STRATEGY : newBeanInstanceStrategy; }
/** * Sets the NewBeanInstanceStrategy to use.<br> * Will set default value (NewBeanInstanceStrategy.DEFAULT) if null.<br> * [JSON -&gt; Java] */
Sets the NewBeanInstanceStrategy to use. Will set default value (NewBeanInstanceStrategy.DEFAULT) if null. [JSON -&gt; Java]
setNewBeanInstanceStrategy
{ "repo_name": "kohsuke/Json-lib", "path": "src/main/java/net/sf/json/JsonConfig.java", "license": "apache-2.0", "size": 49405 }
[ "net.sf.json.util.NewBeanInstanceStrategy" ]
import net.sf.json.util.NewBeanInstanceStrategy;
import net.sf.json.util.*;
[ "net.sf.json" ]
net.sf.json;
2,130,892
public void setTilt(float radians, int duration, @NonNull EaseType easeType) { mapStateManager.setTilt(radians); mapController.setTiltEased(radians, duration, EASE_TYPE_TO_MAP_CONTROLLER_EASE_TYPE.get(easeType)); }
void function(float radians, int duration, @NonNull EaseType easeType) { mapStateManager.setTilt(radians); mapController.setTiltEased(radians, duration, EASE_TYPE_TO_MAP_CONTROLLER_EASE_TYPE.get(easeType)); }
/** * Set map tilt in radians with animation and custom easing. * * @param radians tilt in radians * @param duration duration in millis * @param easeType map ease type */
Set map tilt in radians with animation and custom easing
setTilt
{ "repo_name": "mapzen/android", "path": "core/src/main/java/com/mapzen/android/graphics/MapzenMap.java", "license": "apache-2.0", "size": 43752 }
[ "android.support.annotation.NonNull", "com.mapzen.android.graphics.model.EaseType" ]
import android.support.annotation.NonNull; import com.mapzen.android.graphics.model.EaseType;
import android.support.annotation.*; import com.mapzen.android.graphics.model.*;
[ "android.support", "com.mapzen.android" ]
android.support; com.mapzen.android;
2,744,468
private List<VisualTreeNode> getTreeLayoutLeaves(VisualTreeNode treeNode) { List<VisualTreeNode> leaves = new ArrayList<VisualTreeNode>(); this.getTreeLayoutLeavesRecursive(treeNode, leaves); // since directionality doesn't matter we need to check if the // root...
List<VisualTreeNode> function(VisualTreeNode treeNode) { List<VisualTreeNode> leaves = new ArrayList<VisualTreeNode>(); this.getTreeLayoutLeavesRecursive(treeNode, leaves); if(treeNode.getChildNodes().size() == 1) { leaves.add(treeNode); } return leaves; }
/** * Get all of the leaves in the tree layout (including the tree itself if * it is a leaf ignoring directionality * @param treeNode * the tree * @return * the leaves */
Get all of the leaves in the tree layout (including the tree itself if it is a leaf ignoring directionality
getTreeLayoutLeaves
{ "repo_name": "cgd/haplotype-analysis", "path": "src/java/org/jax/haplotype/analysis/visualization/SimplePhylogenyTreeImageFactory.java", "license": "gpl-3.0", "size": 32393 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,481,600
@Override public void operate(Individual[] population) { int n = population.length; Individual[] newPop = new Individual[n]; // find best individual and make her live into the next generation double maxFitness = Double.NEGATIVE_INFINITY; Individual winner = null; ...
void function(Individual[] population) { int n = population.length; Individual[] newPop = new Individual[n]; double maxFitness = Double.NEGATIVE_INFINITY; Individual winner = null; for (Individual i : population) { double f = i.getFitness(); if (f > maxFitness) { maxFitness = f; winner = i; } } newPop[0] = Individual.c...
/** * Perform an elitist tournament selection operation on the population, with * tournament size k. The best individual in the population is guaranteed to * live into the next generation. * * @param population Array of Individuals to perform selection on. */
Perform an elitist tournament selection operation on the population, with tournament size k. The best individual in the population is guaranteed to live into the next generation
operate
{ "repo_name": "mmeysenburg/DEA", "path": "src/edu/doane/dugal/dea/kits/general/ElitistTournamentSelection.java", "license": "mit", "size": 3518 }
[ "edu.doane.dugal.dea.Individual" ]
import edu.doane.dugal.dea.Individual;
import edu.doane.dugal.dea.*;
[ "edu.doane.dugal" ]
edu.doane.dugal;
2,217,295
public ImageStrips getImageStrips() { return imageStrips; }
ImageStrips function() { return imageStrips; }
/** * Gets the image in strips. * * @return the image strips object */
Gets the image in strips
getImageStrips
{ "repo_name": "EasyinnovaSL/Tiff-Library-4J", "path": "src/main/java/com/easyinnova/tiff/model/types/IFD.java", "license": "gpl-3.0", "size": 10300 }
[ "com.easyinnova.tiff.model.ImageStrips" ]
import com.easyinnova.tiff.model.ImageStrips;
import com.easyinnova.tiff.model.*;
[ "com.easyinnova.tiff" ]
com.easyinnova.tiff;
1,322,549
public Adapter createMInterfaceTypeAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link es.uah.aut.srg.micobs.mclev.mclevdom.MInterfaceType <em>MInterface Type</em>}'. * @return the new adapter. * @see es.uah.aut.srg.micobs.mclev.mclevdom.MInterfaceType * @generated */
Creates a new adapter for an object of class '<code>es.uah.aut.srg.micobs.mclev.mclevdom.MInterfaceType MInterface Type</code>'
createMInterfaceTypeAdapter
{ "repo_name": "parraman/micobs", "path": "mclev/es.uah.aut.srg.micobs.mclev/src/es/uah/aut/srg/micobs/mclev/mclevdom/util/mclevdomAdapterFactory.java", "license": "epl-1.0", "size": 27448 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,474,662
public List<GraphicTrack> getTracks() { return tracks; }
List<GraphicTrack> function() { return tracks; }
/** * Getter for property 'tracks'. * * @return Value for property 'tracks'. */
Getter for property 'tracks'
getTracks
{ "repo_name": "creativitRy/ClearComposer", "path": "src/main/java/com/ctry/clearcomposer/music/TrackPlayer.java", "license": "mit", "size": 5251 }
[ "com.ctry.clearcomposer.sequencer.GraphicTrack", "java.util.List" ]
import com.ctry.clearcomposer.sequencer.GraphicTrack; import java.util.List;
import com.ctry.clearcomposer.sequencer.*; import java.util.*;
[ "com.ctry.clearcomposer", "java.util" ]
com.ctry.clearcomposer; java.util;
201,263
protected boolean isPersisted(Resource resource) { boolean result = false; try { InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI()); if (stream != null) { result = true; stream.close(); } } catch (IOException e) { // Ignore } ret...
boolean function(Resource resource) { boolean result = false; try { InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI()); if (stream != null) { result = true; stream.close(); } } catch (IOException e) { } return result; }
/** * This returns whether something has been persisted to the URI of the specified resource. * The implementation uses the URI converter from the editor's resource set to try to open an input stream. * @generated */
This returns whether something has been persisted to the URI of the specified resource. The implementation uses the URI converter from the editor's resource set to try to open an input stream
isPersisted
{ "repo_name": "parraman/micobs", "path": "mesp/es.uah.aut.srg.micobs.mesp/src/es/uah/aut/srg/micobs/mesp/library/mesplibrary/presentation/mesplibraryEditor.java", "license": "epl-1.0", "size": 43634 }
[ "java.io.IOException", "java.io.InputStream", "org.eclipse.emf.ecore.resource.Resource" ]
import java.io.IOException; import java.io.InputStream; import org.eclipse.emf.ecore.resource.Resource;
import java.io.*; import org.eclipse.emf.ecore.resource.*;
[ "java.io", "org.eclipse.emf" ]
java.io; org.eclipse.emf;
789,134
@Override protected HttpClient newHttpClient() { return new HttpClient(new SslContextFactory()); }
HttpClient function() { return new HttpClient(new SslContextFactory()); }
/** * Override <code>newHttpClient</code> so we can proxy to HTTPS URIs. */
Override <code>newHttpClient</code> so we can proxy to HTTPS URIs
newHttpClient
{ "repo_name": "Snickermicker/smarthome", "path": "bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/proxy/AsyncProxyServlet.java", "license": "epl-1.0", "size": 3013 }
[ "org.eclipse.jetty.client.HttpClient", "org.eclipse.jetty.util.ssl.SslContextFactory" ]
import org.eclipse.jetty.client.HttpClient; import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.eclipse.jetty.client.*; import org.eclipse.jetty.util.ssl.*;
[ "org.eclipse.jetty" ]
org.eclipse.jetty;
2,265,410
public State getState(Widget w);
State function(Widget w);
/** * Retrieves the current state of the item of a widget or <code>UnDefType.UNDEF</code>. * * @param w * the widget to retrieve the item state for * @return the item state of the widget */
Retrieves the current state of the item of a widget or <code>UnDefType.UNDEF</code>
getState
{ "repo_name": "marinmitev/smarthome", "path": "bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/items/ItemUIRegistry.java", "license": "epl-1.0", "size": 4689 }
[ "org.eclipse.smarthome.core.types.State", "org.eclipse.smarthome.model.sitemap.Widget" ]
import org.eclipse.smarthome.core.types.State; import org.eclipse.smarthome.model.sitemap.Widget;
import org.eclipse.smarthome.core.types.*; import org.eclipse.smarthome.model.sitemap.*;
[ "org.eclipse.smarthome" ]
org.eclipse.smarthome;
1,522,233
public static void sendMessage(UserContext context, DPUContext.MessageType type, String shortMessage, Exception exception, String fullMessage, Object... args) { // Localization. String shortMessageTranslated = context.tr(shortMessage, args); final String fullMessageTranslated = c...
static void function(UserContext context, DPUContext.MessageType type, String shortMessage, Exception exception, String fullMessage, Object... args) { String shortMessageTranslated = context.tr(shortMessage, args); final String fullMessageTranslated = context.tr(fullMessage, args); if (context.getMasterContext() instan...
/** * Translates and sends given formated message consisting of shortMessage and fullMessage and an Exception. * Both messages (short and full) may have arguments, but there is just one list of arguments, which is shared between short and long message. * * @param context * If null o...
Translates and sends given formated message consisting of shortMessage and fullMessage and an Exception. Both messages (short and full) may have arguments, but there is just one list of arguments, which is shared between short and long message
sendMessage
{ "repo_name": "UnifiedViews/Plugin-DevEnv", "path": "uv-dpu-helpers/src/main/java/eu/unifiedviews/helpers/dpu/context/ContextUtils.java", "license": "lgpl-3.0", "size": 13814 }
[ "eu.unifiedviews.dpu.DPUContext", "eu.unifiedviews.helpers.dpu.exec.ExecContext" ]
import eu.unifiedviews.dpu.DPUContext; import eu.unifiedviews.helpers.dpu.exec.ExecContext;
import eu.unifiedviews.dpu.*; import eu.unifiedviews.helpers.dpu.exec.*;
[ "eu.unifiedviews.dpu", "eu.unifiedviews.helpers" ]
eu.unifiedviews.dpu; eu.unifiedviews.helpers;
2,536,461
protected void processImageUpdate(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) { if (updateList...
void function(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) { if (updateListeners == null) { return; } int numListeners = updateListeners.size(); for (int i = 0; i < numListeners; i++) { IIOReadUpdateListener listener = (IIOReadUpdateListener)updateListeners.g...
/** * Broadcasts the update of a set of samples to all registered * <code>IIOReadUpdateListener</code>s by calling their * <code>imageUpdate</code> method. Subclasses may use this * method as a convenience. * * @param theImage the <code>BufferedImage</code> being updated. * @param mi...
Broadcasts the update of a set of samples to all registered <code>IIOReadUpdateListener</code>s by calling their <code>imageUpdate</code> method. Subclasses may use this method as a convenience
processImageUpdate
{ "repo_name": "haikuowuya/android_system_code", "path": "src/javax/imageio/ImageReader.java", "license": "apache-2.0", "size": 118398 }
[ "java.awt.image.BufferedImage", "javax.imageio.event.IIOReadUpdateListener" ]
import java.awt.image.BufferedImage; import javax.imageio.event.IIOReadUpdateListener;
import java.awt.image.*; import javax.imageio.event.*;
[ "java.awt", "javax.imageio" ]
java.awt; javax.imageio;
2,570,836
private boolean pruned(Type type) { return pruned(TypeToken.of(type).getRawType()); }
boolean function(Type type) { return pruned(TypeToken.of(type).getRawType()); }
/** * Whether a type and all that it references should be pruned from the graph. */
Whether a type and all that it references should be pruned from the graph
pruned
{ "repo_name": "tweise/incubator-beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/util/ApiSurface.java", "license": "apache-2.0", "size": 21659 }
[ "com.google.common.reflect.TypeToken", "java.lang.reflect.Type" ]
import com.google.common.reflect.TypeToken; import java.lang.reflect.Type;
import com.google.common.reflect.*; import java.lang.reflect.*;
[ "com.google.common", "java.lang" ]
com.google.common; java.lang;
29,564
static private void doSendEmail(String sub, String msg, String recip) { if (null == recip || recip.length() <= 0) { logEmailError(msg, "invalid recipient"); return; } String host = SystemAttrEnum.EMAIL_SMTP_HOST.getString(); if (null == host || host.length() <= 0) { logEmailError(msg, "invalid host"...
static void function(String sub, String msg, String recip) { if (null == recip recip.length() <= 0) { logEmailError(msg, STR); return; } String host = SystemAttrEnum.EMAIL_SMTP_HOST.getString(); if (null == host host.length() <= 0) { logEmailError(msg, STR); return; } String sender = SystemAttrEnum.EMAIL_SENDER_SERVER....
/** Send an email. This method blocks while sending. * @param sub Subject of email. * @param msg Text of email. * @param recip Recipient of email. */
Send an email. This method blocks while sending
doSendEmail
{ "repo_name": "CA-IRIS/mn-iris", "path": "src/us/mn/state/dot/tms/server/EmailHandler.java", "license": "gpl-2.0", "size": 2685 }
[ "javax.mail.MessagingException", "us.mn.state.dot.tms.SystemAttrEnum", "us.mn.state.dot.tms.utils.Emailer" ]
import javax.mail.MessagingException; import us.mn.state.dot.tms.SystemAttrEnum; import us.mn.state.dot.tms.utils.Emailer;
import javax.mail.*; import us.mn.state.dot.tms.*; import us.mn.state.dot.tms.utils.*;
[ "javax.mail", "us.mn.state" ]
javax.mail; us.mn.state;
2,238,020
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<Void>> deleteWithResponseAsync( String resourceGroupName, String clusterName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentExcep...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Void>> function( String resourceGroupName, String clusterName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException...
/** * Delete a Service Fabric cluster resource with the specified name. * * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thro...
Delete a Service Fabric cluster resource with the specified name
deleteWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClustersClientImpl.java", "license": "mit", "size": 72998 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
2,047,417
public AIEnvironment getAIEnvironment();
AIEnvironment function();
/** * Get the npc's ai environment * <p> * The ai environment manages the npc's ai * </p> * * @return the npc's ai environment */
Get the npc's ai environment The ai environment manages the npc's ai
getAIEnvironment
{ "repo_name": "TechzoneMC/NPCLib", "path": "api/src/main/java/net/techcable/npclib/NPC.java", "license": "mit", "size": 2353 }
[ "net.techcable.npclib.ai.AIEnvironment" ]
import net.techcable.npclib.ai.AIEnvironment;
import net.techcable.npclib.ai.*;
[ "net.techcable.npclib" ]
net.techcable.npclib;
20,987
public static String slurpFile(File file) throws IOException { Reader r = new FileReader(file); return IOUtils.slurpReader(r); }
static String function(File file) throws IOException { Reader r = new FileReader(file); return IOUtils.slurpReader(r); }
/** * Returns all the text in the given File. */
Returns all the text in the given File
slurpFile
{ "repo_name": "MarkBoon/Stanford-NLP", "path": "src/edu/stanford/nlp/io/IOUtils.java", "license": "gpl-2.0", "size": 35924 }
[ "java.io.File", "java.io.FileReader", "java.io.IOException", "java.io.Reader" ]
import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.Reader;
import java.io.*;
[ "java.io" ]
java.io;
2,142,633
public static CipherTextIvMac encrypt(String plaintext, SecretKeys secretKeys) throws UnsupportedEncodingException, GeneralSecurityException { return encrypt(plaintext, secretKeys, "UTF-8"); }
static CipherTextIvMac function(String plaintext, SecretKeys secretKeys) throws UnsupportedEncodingException, GeneralSecurityException { return encrypt(plaintext, secretKeys, "UTF-8"); }
/** * Generates a random IV and encrypts this plain text with the given key. Then attaches * a hashed MAC, which is contained in the CipherTextIvMac class. * * @param plaintext The text that will be encrypted, which * will be serialized with UTF-8 * @param secretKeys The A...
Generates a random IV and encrypts this plain text with the given key. Then attaches a hashed MAC, which is contained in the CipherTextIvMac class
encrypt
{ "repo_name": "mil-oss/fgsms", "path": "fgsms-common/src/main/java/org/miloss/fgsms/common/AesCbcWithIntegrity.java", "license": "mpl-2.0", "size": 37140 }
[ "java.io.UnsupportedEncodingException", "java.security.GeneralSecurityException" ]
import java.io.UnsupportedEncodingException; import java.security.GeneralSecurityException;
import java.io.*; import java.security.*;
[ "java.io", "java.security" ]
java.io; java.security;
2,536,247
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<ComputePolicyInner> getAsync(String resourceGroupName, String accountName, String computePolicyName) { return getWithResponseAsync(resourceGroupName, accountName, computePolicyName) .flatMap( (Response<ComputePolicyInne...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<ComputePolicyInner> function(String resourceGroupName, String accountName, String computePolicyName) { return getWithResponseAsync(resourceGroupName, accountName, computePolicyName) .flatMap( (Response<ComputePolicyInner> res) -> { if (res.getValue() != null) { return Mo...
/** * Gets the specified Data Lake Analytics compute policy. * * @param resourceGroupName The name of the Azure resource group. * @param accountName The name of the Data Lake Analytics account. * @param computePolicyName The name of the compute policy to retrieve. * @throws IllegalArgument...
Gets the specified Data Lake Analytics compute policy
getAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java", "license": "mit", "size": 57622 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.datalakeanalytics.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
890,465
@Override public void receive(CloudServiceEvent event) { logger.debug("Cloudstack event received: reference type:" + event.getCloudServiceReferenceType() + " reference id:" + event.getCloudServiceReferenceId()); }
void function(CloudServiceEvent event) { logger.debug(STR + event.getCloudServiceReferenceType() + STR + event.getCloudServiceReferenceId()); }
/** * This receives the cs related events * * @param event -- cs event */
This receives the cs related events
receive
{ "repo_name": "backbrainer/cpbm-customization", "path": "citrix.cpbm.custom.common/src/main/java/com/citrix/cpbm/admin/CustomTopicSubscriber.java", "license": "bsd-2-clause", "size": 6940 }
[ "com.vmops.event.CloudServiceEvent" ]
import com.vmops.event.CloudServiceEvent;
import com.vmops.event.*;
[ "com.vmops.event" ]
com.vmops.event;
888,919
public void runProduceConsumeMultipleTopics(boolean useLegacySchema) throws Exception { final int numTopics = 5; final int numElements = 20; StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); // create topics with content final List<String> topics = new ArrayList<>(); ...
void function(boolean useLegacySchema) throws Exception { final int numTopics = 5; final int numElements = 20; StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); final List<String> topics = new ArrayList<>(); for (int i = 0; i < numTopics; i++) { final String topic = STR + i; topics....
/** * Test producing and consuming into multiple topics. * @throws Exception */
Test producing and consuming into multiple topics
runProduceConsumeMultipleTopics
{ "repo_name": "tzulitai/flink", "path": "flink-connectors/flink-connector-kafka-base/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaConsumerTestBase.java", "license": "apache-2.0", "size": 85965 }
[ "java.util.ArrayList", "java.util.List", "org.apache.flink.api.java.tuple.Tuple3", "org.apache.flink.streaming.api.datastream.DataStream", "org.apache.flink.streaming.api.environment.StreamExecutionEnvironment", "org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction" ]
import java.util.ArrayList; import java.util.List; import org.apache.flink.api.java.tuple.Tuple3; import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction;
import java.util.*; import org.apache.flink.api.java.tuple.*; import org.apache.flink.streaming.api.datastream.*; import org.apache.flink.streaming.api.environment.*; import org.apache.flink.streaming.api.functions.source.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
2,077,241
public void setOutlinePaint(Paint paint, boolean notify) { this.outlinePaint = paint; if (notify) { fireChangeEvent(); } }
void function(Paint paint, boolean notify) { this.outlinePaint = paint; if (notify) { fireChangeEvent(); } }
/** * Sets the outline paint for ALL series and, if requested, sends a * {@link RendererChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> permitted). * @param notify notify listeners? * * @deprecated This method should no longer be used (...
Sets the outline paint for ALL series and, if requested, sends a <code>RendererChangeEvent</code> to all registered listeners
setOutlinePaint
{ "repo_name": "integrated/jfreechart", "path": "source/org/jfree/chart/renderer/AbstractRenderer.java", "license": "lgpl-2.1", "size": 137987 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,208,016
public void writeFonts(RtfHeader header) throws IOException { if (fontTable == null || fontTable.size() == 0) { return; } header.newLine(); header.writeGroupMark(true); header.writeControlWord("fonttbl"); int len = fontTable.size(); for (int i =...
void function(RtfHeader header) throws IOException { if (fontTable == null fontTable.size() == 0) { return; } header.newLine(); header.writeGroupMark(true); header.writeControlWord(STR); int len = fontTable.size(); for (int i = 0; i < len; i++) { header.writeGroupMark(true); header.newLine(); header.write("\\f" + i); h...
/** * Writes the font table in the header. * * @param header The header container to write in * * @throws IOException On error */
Writes the font table in the header
writeFonts
{ "repo_name": "argv-minus-one/fop", "path": "fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFontManager.java", "license": "apache-2.0", "size": 4797 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,646,350
String generateExpression( String expression, Map<? extends DimensionalItemObject, Double> valueMap, Map<String, Double> constantMap, Map<String, Integer> orgUnitCountMap, Integer days, MissingValueStrategy missingValueStrategy );
String generateExpression( String expression, Map<? extends DimensionalItemObject, Double> valueMap, Map<String, Double> constantMap, Map<String, Integer> orgUnitCountMap, Integer days, MissingValueStrategy missingValueStrategy );
/** * Generates an expression where the Operand identifiers, consisting of * data element id and category option combo id, are replaced * by the aggregated value for the relevant combination of data element, * period, and source. * * @param formula formula to parse. ...
Generates an expression where the Operand identifiers, consisting of data element id and category option combo id, are replaced by the aggregated value for the relevant combination of data element, period, and source
generateExpression
{ "repo_name": "uonafya/jphes-core", "path": "dhis-2/dhis-api/src/main/java/org/hisp/dhis/expression/ExpressionService.java", "license": "bsd-3-clause", "size": 21926 }
[ "java.util.Map", "org.hisp.dhis.common.DimensionalItemObject" ]
import java.util.Map; import org.hisp.dhis.common.DimensionalItemObject;
import java.util.*; import org.hisp.dhis.common.*;
[ "java.util", "org.hisp.dhis" ]
java.util; org.hisp.dhis;
2,244,240
private RecoveredEditsWriter getRecoveredEditsWriter(TableName tableName, byte[] region, long seqId) throws IOException { RecoveredEditsWriter ret = writers.get(Bytes.toString(region)); if (ret != null) { return ret; } ret = createRecoveredEditsWriter(tableName, region, seqId); if (ret...
RecoveredEditsWriter function(TableName tableName, byte[] region, long seqId) throws IOException { RecoveredEditsWriter ret = writers.get(Bytes.toString(region)); if (ret != null) { return ret; } ret = createRecoveredEditsWriter(tableName, region, seqId); if (ret == null) { return null; } LOG.trace(STR, ret.path); writ...
/** * Get a writer and path for a log starting at the given entry. This function is threadsafe so * long as multiple threads are always acting on different regions. * @return null if this region shouldn't output any logs */
Get a writer and path for a log starting at the given entry. This function is threadsafe so long as multiple threads are always acting on different regions
getRecoveredEditsWriter
{ "repo_name": "HubSpot/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/wal/RecoveredEditsOutputSink.java", "license": "apache-2.0", "size": 5598 }
[ "java.io.IOException", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.util.Bytes" ]
import java.io.IOException; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.util.Bytes;
import java.io.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,670,993
public void removebiboCourt(Organization value) { Base.remove(this.model, this.getResource(), COURT, value); }
void function(Organization value) { Base.remove(this.model, this.getResource(), COURT, value); }
/** * Removes a value of property Court given as an instance of Organization * @param value the value to be removed * * [Generated from RDFReactor template rule #remove4dynamic] */
Removes a value of property Court given as an instance of Organization
removebiboCourt
{ "repo_name": "oeg-upm/biotea", "path": "src/ws/biotea/ld2rdf/rdf/model/bibo/LegalDocument.java", "license": "apache-2.0", "size": 31487 }
[ "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.rdfreactor" ]
org.ontoware.rdfreactor;
2,812,184
@NotNull TextNode requireTextNode(@NotNull String id);
TextNode requireTextNode(@NotNull String id);
/** * Returns a available {@link TextNode} of the supplied id from * the store or throws an exception if none is found. * * @param id * @return */
Returns a available <code>TextNode</code> of the supplied id from the store or throws an exception if none is found
requireTextNode
{ "repo_name": "eikek/wicket-commons", "path": "src/main/java/org/eknet/wicket/commons/textstore/TextNodeStore.java", "license": "apache-2.0", "size": 2078 }
[ "org.jetbrains.annotations.NotNull" ]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
2,457,681
String configFilename = System.getProperty ("LogHelperConfig", DEFAULT_CONFIG_FILENAME); File configFile = new File (configFilename); boolean success = false; if (configFile.exists ()) { success = configure (configFile); } else { LogHelperDebug.printError ("File " + configFilename + " does not exist", ...
String configFilename = System.getProperty (STR, DEFAULT_CONFIG_FILENAME); File configFile = new File (configFilename); boolean success = false; if (configFile.exists ()) { success = configure (configFile); } else { LogHelperDebug.printError (STR + configFilename + STR, false); } return success; }
/** * Configure the log-helper library to the values in the default XML config file * Config file name is set as a system property LogHelperConfig (via <code>-DLogHelperConfig=<i>filename</i></code>) or, if the property is not set, the config file name is set to {@link DEFAULT_CONFIG_FILENAME} * * @return <code...
Configure the log-helper library to the values in the default XML config file Config file name is set as a system property LogHelperConfig (via <code>-DLogHelperConfig=filename</code>) or, if the property is not set, the config file name is set to <code>DEFAULT_CONFIG_FILENAME</code>
configure
{ "repo_name": "dmerkushov/log-helper", "path": "src/main/java/ru/dmerkushov/loghelper/configure/LogHelperConfigurator.java", "license": "apache-2.0", "size": 10619 }
[ "java.io.File", "ru.dmerkushov.loghelper.LogHelperDebug" ]
import java.io.File; import ru.dmerkushov.loghelper.LogHelperDebug;
import java.io.*; import ru.dmerkushov.loghelper.*;
[ "java.io", "ru.dmerkushov.loghelper" ]
java.io; ru.dmerkushov.loghelper;
1,880,782
private void build(File home, File rootPath) { LOG.info("Scheduling pending uploads"); // Move any older cache pending uploads movePendingUploadsToStaging(home, rootPath, true);
void function(File home, File rootPath) { LOG.info(STR); movePendingUploadsToStaging(home, rootPath, true);
/** * Retrieves all the files staged in the staging area and schedules them for uploads. * @param home the home of the repo * @param rootPath the parent of the cache */
Retrieves all the files staged in the staging area and schedules them for uploads
build
{ "repo_name": "FlakyTestDetection/jackrabbit-oak", "path": "oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/UploadStagingCache.java", "license": "apache-2.0", "size": 27347 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,598,378
List<java.lang.Class<? extends Element>> nodes = new LinkedList<>(Arrays.asList( Class.class, Component.class, DataType.class, Enumeration.class, InformationItem.class, InstanceSpecification.class, Interface.class, Model.class, Package.class, PrimitiveType.class )); if(P...
List<java.lang.Class<? extends Element>> nodes = new LinkedList<>(Arrays.asList( Class.class, Component.class, DataType.class, Enumeration.class, InformationItem.class, InstanceSpecification.class, Interface.class, Model.class, Package.class, PrimitiveType.class )); if(PreferencesManager.getBoolean(PreferencesManager.C...
/** * Returns the types of elements that are to be added * @return Returns the types of elements that are to be added */
Returns the types of elements that are to be added
generateElementsToBeAdded
{ "repo_name": "ELTE-Soft/txtUML", "path": "dev/plugins/hu.elte.txtuml.export.papyrus/src/hu/elte/txtuml/export/papyrus/elementsmanagers/ClassDiagramElementsManager.java", "license": "epl-1.0", "size": 7000 }
[ "hu.elte.txtuml.utils.eclipse.preferences.PreferencesManager", "java.util.Arrays", "java.util.LinkedList", "java.util.List", "org.eclipse.uml2.uml.Class", "org.eclipse.uml2.uml.Comment", "org.eclipse.uml2.uml.Component", "org.eclipse.uml2.uml.Constraint", "org.eclipse.uml2.uml.DataType", "org.ecli...
import hu.elte.txtuml.utils.eclipse.preferences.PreferencesManager; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import org.eclipse.uml2.uml.Class; import org.eclipse.uml2.uml.Comment; import org.eclipse.uml2.uml.Component; import org.eclipse.uml2.uml.Constraint; import org.eclipse.uml2....
import hu.elte.txtuml.utils.eclipse.preferences.*; import java.util.*; import org.eclipse.uml2.uml.*;
[ "hu.elte.txtuml", "java.util", "org.eclipse.uml2" ]
hu.elte.txtuml; java.util; org.eclipse.uml2;
2,258,824
private void compileWhere() { WhereClause whereClause = null; if (query.isSelectStatement()) { whereClause = (WhereClause) query.getSelectStatement().getWhereClause(); } else if (query.isUpdateStatement()) { ...
void function() { WhereClause whereClause = null; if (query.isSelectStatement()) { whereClause = (WhereClause) query.getSelectStatement().getWhereClause(); } else if (query.isUpdateStatement()) { whereClause = (WhereClause) query.getUpdateStatement().getWhereClause(); } if (query.isDeleteStatement()) { whereClause = (W...
/** * Compile where. */
Compile where
compileWhere
{ "repo_name": "impetus-opensource/Kundera", "path": "src/jpa-engine/core/src/main/java/com/impetus/kundera/query/KunderaQueryParser.java", "license": "apache-2.0", "size": 18181 }
[ "org.eclipse.persistence.jpa.jpql.parser.WhereClause" ]
import org.eclipse.persistence.jpa.jpql.parser.WhereClause;
import org.eclipse.persistence.jpa.jpql.parser.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
636,146
//linea 1: IndividuoCuadratico LB = null; IndividuoCuadratico S = null; IndividuoCuadratico solParcialS = new IndividuoMochilaGraps(funcion); IndividuoCuadratico bestLB = solParcialS; int cont = 0; int m = 0; int minLen = gama; int maxLen = gama + beta; ...
IndividuoCuadratico LB = null; IndividuoCuadratico S = null; IndividuoCuadratico solParcialS = new IndividuoMochilaGraps(funcion); IndividuoCuadratico bestLB = solParcialS; int cont = 0; int m = 0; int minLen = gama; int maxLen = gama + beta; List<IndividuoCuadratico> listaRecorrido = new ArrayList(); for (k = m * sigm...
/** * GRASP CON REINICIOS BASADO EN LA MEMORIA * * numLanda es el numero de reinicios usados para intentar mejorar bestLB * numDelta es el numero de iteraciones GRASp * * @return */
GRASP CON REINICIOS BASADO EN LA MEMORIA numLanda es el numero de reinicios usados para intentar mejorar bestLB numDelta es el numero de iteraciones GRASp
ejecutar
{ "repo_name": "andersonbui/metaheuristicas", "path": "src/main/mochila/cuadratica/graspBasadoMemoria/GraspFundamental.java", "license": "gpl-3.0", "size": 2454 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,820,063
public void moveCard(Context context, String sourceLymboId, String targetLymboId, String cardId) { Stack sourceStack = stacksController.getLymboById(sourceLymboId); Stack targetStack = stacksController.getLymboById(targetLymboId); Card card = getCardById(cardId); targetStack.getCard...
void function(Context context, String sourceLymboId, String targetLymboId, String cardId) { Stack sourceStack = stacksController.getLymboById(sourceLymboId); Stack targetStack = stacksController.getLymboById(targetLymboId); Card card = getCardById(cardId); targetStack.getCards().add(card); stacksController.save(context...
/** * Moves a card from one stack to another * * @param context context * @param sourceLymboId id of source stack * @param targetLymboId id of target stack * @param cardId id of card to be copied */
Moves a card from one stack to another
moveCard
{ "repo_name": "interoberlin/lymbo", "path": "app/src/main/java/de/interoberlin/lymbo/controller/CardsController.java", "license": "gpl-3.0", "size": 22250 }
[ "android.content.Context", "de.interoberlin.lymbo.core.model.v1.impl.Card", "de.interoberlin.lymbo.core.model.v1.impl.Stack" ]
import android.content.Context; import de.interoberlin.lymbo.core.model.v1.impl.Card; import de.interoberlin.lymbo.core.model.v1.impl.Stack;
import android.content.*; import de.interoberlin.lymbo.core.model.v1.impl.*;
[ "android.content", "de.interoberlin.lymbo" ]
android.content; de.interoberlin.lymbo;
361,947
private void forwardDilationC26() { // the maximal value around current pixel int maxValue; Object[] stack = result.getImageArray(); byte[] slice; byte[] slice2; // Iterate over pixels for (int z = 0; z < size3; z++) { showProgress(z, size3, "z = " + z); slice = (byte[]) stack[z]; for ...
void function() { int maxValue; Object[] stack = result.getImageArray(); byte[] slice; byte[] slice2; for (int z = 0; z < size3; z++) { showProgress(z, size3, STR + z); slice = (byte[]) stack[z]; for (int y = 0; y < size2; y++) { for (int x = 0; x < size1; x++) { int currentValue = slice[y * size1 + x] & 0x00FF; maxVal...
/** * Update result image using pixels in the upper left neighborhood, using * the 26-adjacency, assuming pixels are stored in bytes. */
Update result image using pixels in the upper left neighborhood, using the 26-adjacency, assuming pixels are stored in bytes
forwardDilationC26
{ "repo_name": "ijpb/MorphoLibJ", "path": "src/main/java/inra/ijpb/morphology/geodrec/GeodesicReconstructionByDilation3DGray8.java", "license": "lgpl-3.0", "size": 31108 }
[ "java.lang.Math" ]
import java.lang.Math;
import java.lang.*;
[ "java.lang" ]
java.lang;
1,940,210
@Uninterruptible(reason = "Called during teardown.", callerMustBe = true) @NeverInline("Prevent elimination of object reference in caller.") public static void releaseTetherUnsafe(@SuppressWarnings("unused") UntetheredCodeInfo info, Object tether) { assert VMOperation.isGCInProgress() || ((CodeInfoT...
@Uninterruptible(reason = STR, callerMustBe = true) @NeverInline(STR) static void function(@SuppressWarnings(STR) UntetheredCodeInfo info, Object tether) { assert VMOperation.isGCInProgress() ((CodeInfoTether) tether).decrementCount() >= 0; }
/** * Try to avoid using this method. It is similar to * {@link #releaseTether(UntetheredCodeInfo, Object)} but with less verification. */
Try to avoid using this method. It is similar to <code>#releaseTether(UntetheredCodeInfo, Object)</code> but with less verification
releaseTetherUnsafe
{ "repo_name": "smarr/Truffle", "path": "substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/code/CodeInfoAccess.java", "license": "gpl-2.0", "size": 21945 }
[ "com.oracle.svm.core.annotate.NeverInline", "com.oracle.svm.core.annotate.Uninterruptible", "com.oracle.svm.core.thread.VMOperation" ]
import com.oracle.svm.core.annotate.NeverInline; import com.oracle.svm.core.annotate.Uninterruptible; import com.oracle.svm.core.thread.VMOperation;
import com.oracle.svm.core.annotate.*; import com.oracle.svm.core.thread.*;
[ "com.oracle.svm" ]
com.oracle.svm;
2,296,482
@Override public final void getResult() { try { completed.get(); } catch (ExecutionException e) { throw StatusUtils.fromThrowable(e.getCause()); } catch (InterruptedException e) { throw StatusUtils.fromThrowable(e); } }
final void function() { try { completed.get(); } catch (ExecutionException e) { throw StatusUtils.fromThrowable(e.getCause()); } catch (InterruptedException e) { throw StatusUtils.fromThrowable(e); } }
/** * Wait for the stream to finish on the server side. You must call this to be notified of any errors that may have * happened during the upload. */
Wait for the stream to finish on the server side. You must call this to be notified of any errors that may have happened during the upload
getResult
{ "repo_name": "renesugar/arrow", "path": "java/flight/src/main/java/org/apache/arrow/flight/AsyncPutListener.java", "license": "apache-2.0", "size": 2112 }
[ "java.util.concurrent.ExecutionException", "org.apache.arrow.flight.grpc.StatusUtils" ]
import java.util.concurrent.ExecutionException; import org.apache.arrow.flight.grpc.StatusUtils;
import java.util.concurrent.*; import org.apache.arrow.flight.grpc.*;
[ "java.util", "org.apache.arrow" ]
java.util; org.apache.arrow;
2,584,873
public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { checkPermission(CONFIGURE); req.setCharacterEncoding("UTF-8"); description = req.getParameter("description"); owner.save(); rsp.sendRedirect("."); ...
synchronized void function( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { checkPermission(CONFIGURE); req.setCharacterEncoding("UTF-8"); description = req.getParameter(STR); owner.save(); rsp.sendRedirect("."); }
/** * Accepts the new description. */
Accepts the new description
doSubmitDescription
{ "repo_name": "fujibee/hudson", "path": "core/src/main/java/hudson/model/View.java", "license": "mit", "size": 19618 }
[ "java.io.IOException", "javax.servlet.ServletException", "org.kohsuke.stapler.StaplerRequest", "org.kohsuke.stapler.StaplerResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse;
import java.io.*; import javax.servlet.*; import org.kohsuke.stapler.*;
[ "java.io", "javax.servlet", "org.kohsuke.stapler" ]
java.io; javax.servlet; org.kohsuke.stapler;
145,685
private void assertValidToLocale( String localeString, String language, String country, String variant) { Locale locale = LocaleUtils.toLocale(localeString); assertNotNull("valid locale", locale); assertEquals(language, locale.getLanguage()); assertEquals(cou...
void function( String localeString, String language, String country, String variant) { Locale locale = LocaleUtils.toLocale(localeString); assertNotNull(STR, locale); assertEquals(language, locale.getLanguage()); assertEquals(country, locale.getCountry()); assertEquals(variant, locale.getVariant()); }
/** * Pass in a valid language, test toLocale. * * @param localeString to pass to toLocale() * @param language of the resulting Locale * @param country of the resulting Locale * @param variant of the resulting Locale */
Pass in a valid language, test toLocale
assertValidToLocale
{ "repo_name": "justinwm/astor", "path": "examples/lang_55/src/test/org/apache/commons/lang/LocaleUtilsTest.java", "license": "gpl-2.0", "size": 18244 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,130,813
public static ApplyElementDTO processBagFunction(String function, String dataType, String attributeValue, AttributeDesignatorDTO designatorDTO) { if (PolicyConstants.Functions.FUNCTION_IS_IN.equals(function)) { ApplyElementDTO applyElementDTO...
static ApplyElementDTO function(String function, String dataType, String attributeValue, AttributeDesignatorDTO designatorDTO) { if (PolicyConstants.Functions.FUNCTION_IS_IN.equals(function)) { ApplyElementDTO applyElementDTO = new ApplyElementDTO(); applyElementDTO.setFunctionId(processFunction("is-in", dataType)); if...
/** * process Bag functions * * @param function * @param dataType * @param attributeValue * @param designatorDTO * @return */
process Bag functions
processBagFunction
{ "repo_name": "dharshanaw/carbon-identity-framework", "path": "components/entitlement/org.wso2.carbon.identity.entitlement.common/src/main/java/org/wso2/carbon/identity/entitlement/common/util/PolicyEditorUtil.java", "license": "apache-2.0", "size": 134713 }
[ "org.wso2.balana.utils.Constants", "org.wso2.balana.utils.policy.dto.ApplyElementDTO", "org.wso2.balana.utils.policy.dto.AttributeDesignatorDTO", "org.wso2.balana.utils.policy.dto.AttributeValueElementDTO", "org.wso2.carbon.identity.entitlement.common.PolicyEditorConstants" ]
import org.wso2.balana.utils.Constants; import org.wso2.balana.utils.policy.dto.ApplyElementDTO; import org.wso2.balana.utils.policy.dto.AttributeDesignatorDTO; import org.wso2.balana.utils.policy.dto.AttributeValueElementDTO; import org.wso2.carbon.identity.entitlement.common.PolicyEditorConstants;
import org.wso2.balana.utils.*; import org.wso2.balana.utils.policy.dto.*; import org.wso2.carbon.identity.entitlement.common.*;
[ "org.wso2.balana", "org.wso2.carbon" ]
org.wso2.balana; org.wso2.carbon;
2,543,907
@Override protected boolean deleteAllImpl(RepositoryModel repository) { Jedis jedis = pool.getResource(); if (jedis == null) { return false; } boolean success = false; try { Set<String> keys = jedis.keys(repository.name + ":*"); if (keys.size() > 0) { Transaction t = jedis.multi(); t.del...
boolean function(RepositoryModel repository) { Jedis jedis = pool.getResource(); if (jedis == null) { return false; } boolean success = false; try { Set<String> keys = jedis.keys(repository.name + ":*"); if (keys.size() > 0) { Transaction t = jedis.multi(); t.del(keys.toArray(new String[keys.size()])); t.exec(); } succ...
/** * Deletes all Tickets for the rpeository from the Redis key-value store. * */
Deletes all Tickets for the rpeository from the Redis key-value store
deleteAllImpl
{ "repo_name": "cesarmarinhorj/gitblit", "path": "src/main/java/com/gitblit/tickets/RedisTicketService.java", "license": "apache-2.0", "size": 15703 }
[ "com.gitblit.models.RepositoryModel", "java.util.Set", "redis.clients.jedis.Jedis", "redis.clients.jedis.Transaction", "redis.clients.jedis.exceptions.JedisException" ]
import com.gitblit.models.RepositoryModel; import java.util.Set; import redis.clients.jedis.Jedis; import redis.clients.jedis.Transaction; import redis.clients.jedis.exceptions.JedisException;
import com.gitblit.models.*; import java.util.*; import redis.clients.jedis.*; import redis.clients.jedis.exceptions.*;
[ "com.gitblit.models", "java.util", "redis.clients.jedis" ]
com.gitblit.models; java.util; redis.clients.jedis;
198,912
public static class QueryBuilder extends BaseQueryBuilder<QueryBuilder> { public Items execute(Client client) throws ChainException { Items items = new Items(); items.setClient(client); items.setNext(this.next); return items.getPage(); }
static class QueryBuilder extends BaseQueryBuilder<QueryBuilder> { public Items function(Client client) throws ChainException { Items items = new Items(); items.setClient(client); items.setNext(this.next); return items.getPage(); }
/** * Executes queries on asset balances. * @return a collection of balance objects * @throws APIException This exception is raised if the api returns errors while retrieving the balances. * @throws BadURLException This exception wraps java.net.MalformedURLException. * @throws ConnectivityExcep...
Executes queries on asset balances
execute
{ "repo_name": "chain/chain", "path": "sdk/java/src/main/java/com/chain/api/Balance.java", "license": "agpl-3.0", "size": 3289 }
[ "com.chain.exception.ChainException", "com.chain.http.Client" ]
import com.chain.exception.ChainException; import com.chain.http.Client;
import com.chain.exception.*; import com.chain.http.*;
[ "com.chain.exception", "com.chain.http" ]
com.chain.exception; com.chain.http;
1,776,510
MyHashSet<String> list = new MyHashSet<>(); list.add("A"); list.add("B"); list.remove("B"); list.add("C"); list.add("D"); list.remove("A"); list.add("E"); list.add("F"); list.add("J"); list.add("K"); list.remove("J"); list....
MyHashSet<String> list = new MyHashSet<>(); list.add("A"); list.add("B"); list.remove("B"); list.add("C"); list.add("D"); list.remove("A"); list.add("E"); list.add("F"); list.add("J"); list.add("K"); list.remove("J"); list.add("L"); list.add("M"); list.add("N"); list.add("O"); list.remove("L"); list.add("P"); list.add(...
/** * Test for add and get. */
Test for add and get
whenAddThenGet
{ "repo_name": "wolfdog007/aruzhev", "path": "chapter_005/src/test/java/ru/job4j/set/MySimpleHashSetTest.java", "license": "apache-2.0", "size": 2137 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
1,461,417
protected void onRemoveMarker(Marker marker) { }
void function(Marker marker) { }
/** * A marker is about to be removed. This is called right be before the marker will be removed from the map. Registered observer will * be called after this. * * @param marker */
A marker is about to be removed. This is called right be before the marker will be removed from the map. Registered observer will be called after this
onRemoveMarker
{ "repo_name": "panzerfahrer/android-maps-utils", "path": "library/src/com/google/maps/android/MarkerManager.java", "license": "apache-2.0", "size": 32056 }
[ "com.google.android.gms.maps.model.Marker" ]
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.*;
[ "com.google.android" ]
com.google.android;
2,342,800
@Named("ListHostedZones") @GET @Path("/hostedzone") @XMLResponseParser(ListHostedZonesResponseHandler.class) @Transform(HostedZonesToPagedIterable.class) PagedIterable<HostedZone> list();
@Named(STR) @Path(STR) @XMLResponseParser(ListHostedZonesResponseHandler.class) @Transform(HostedZonesToPagedIterable.class) PagedIterable<HostedZone> list();
/** * returns all zones in order. */
returns all zones in order
list
{ "repo_name": "yanzhijun/jclouds-aliyun", "path": "apis/route53/src/main/java/org/jclouds/route53/features/HostedZoneApi.java", "license": "apache-2.0", "size": 5870 }
[ "javax.inject.Named", "javax.ws.rs.Path", "org.jclouds.collect.PagedIterable", "org.jclouds.rest.annotations.Transform", "org.jclouds.rest.annotations.XMLResponseParser", "org.jclouds.route53.domain.HostedZone", "org.jclouds.route53.functions.HostedZonesToPagedIterable", "org.jclouds.route53.xml.ListH...
import javax.inject.Named; import javax.ws.rs.Path; import org.jclouds.collect.PagedIterable; import org.jclouds.rest.annotations.Transform; import org.jclouds.rest.annotations.XMLResponseParser; import org.jclouds.route53.domain.HostedZone; import org.jclouds.route53.functions.HostedZonesToPagedIterable; import org.jc...
import javax.inject.*; import javax.ws.rs.*; import org.jclouds.collect.*; import org.jclouds.rest.annotations.*; import org.jclouds.route53.domain.*; import org.jclouds.route53.functions.*; import org.jclouds.route53.xml.*;
[ "javax.inject", "javax.ws", "org.jclouds.collect", "org.jclouds.rest", "org.jclouds.route53" ]
javax.inject; javax.ws; org.jclouds.collect; org.jclouds.rest; org.jclouds.route53;
1,957,161
@Nullable() public Long getFailedCount() { return failedCount; }
@Nullable() Long function() { return failedCount; }
/** * Retrieves the number of extended operations of all types that resulted in * failure, if available. * * @return The number of extended operations of all types that resulted in * failure, or {@code null} if this information was not in the * monitor entry. */
Retrieves the number of extended operations of all types that resulted in failure, if available
getFailedCount
{ "repo_name": "UnboundID/ldapsdk", "path": "src/com/unboundid/ldap/sdk/unboundidds/monitors/ExtendedOperationResultCodeInfo.java", "license": "gpl-2.0", "size": 11917 }
[ "com.unboundid.util.Nullable" ]
import com.unboundid.util.Nullable;
import com.unboundid.util.*;
[ "com.unboundid.util" ]
com.unboundid.util;
1,332,210
public static boolean syncHidden(OrasiDriver driver, int timeout, Element element) { return syncHidden(driver, timeout, getSyncToFailTest(), element); }
static boolean function(OrasiDriver driver, int timeout, Element element) { return syncHidden(driver, timeout, getSyncToFailTest(), element); }
/** * Used in conjunction with WebObjectVisible to determine if the desired * element is hidden from the screen Will loop for the time out listed in * org.orasi.chameleon.CONSTANT.TIMEOUT If object is not visible within the * time, throw an error * * @author Justin */
Used in conjunction with WebObjectVisible to determine if the desired element is hidden from the screen Will loop for the time out listed in org.orasi.chameleon.CONSTANT.TIMEOUT If object is not visible within the time, throw an error
syncHidden
{ "repo_name": "Orasi/Xeeva", "path": "src/main/java/com/orasi/utils/PageLoaded.java", "license": "bsd-3-clause", "size": 30167 }
[ "com.orasi.core.interfaces.Element" ]
import com.orasi.core.interfaces.Element;
import com.orasi.core.interfaces.*;
[ "com.orasi.core" ]
com.orasi.core;
671,846
private boolean isRequestUrlExcluded(final HttpServletRequest request) { for (String exclusion : this.exclusions) { if (request.getPathInfo() != null && request.getPathInfo().matches(exclusion)) { return true; } } return false; } private class ServiceTicketRequestWrapper extend...
boolean function(final HttpServletRequest request) { for (String exclusion : this.exclusions) { if (request.getPathInfo() != null && request.getPathInfo().matches(exclusion)) { return true; } } return false; } private class ServiceTicketRequestWrapper extends HttpServletRequestWrapper { private final String serviceTick...
/** * Is the requested path in the list of exclusions? * * @param request * the request. * * @return <code>true</code> if it is excluded and <code>false</code> otherwise. */
Is the requested path in the list of exclusions
isRequestUrlExcluded
{ "repo_name": "keeps/dbviewer", "path": "src/main/java/com/databasepreservation/common/filter/CasApiAuthFilter.java", "license": "lgpl-3.0", "size": 6960 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletRequestWrapper" ]
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequestWrapper;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
852,331
public static String generateSHA256(String someString) { MessageDigest md; String result = ""; try { md = MessageDigest.getInstance("SHA-256"); md.update(someString.getBytes()); byte[] bytes = md.digest(); result = convertBytesToString(byt...
static String function(String someString) { MessageDigest md; String result = STRSHA-256"); md.update(someString.getBytes()); byte[] bytes = md.digest(); result = convertBytesToString(bytes); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return result; }
/** * Generates SHA256 hash in HEX of a given string * * @param someString * @return */
Generates SHA256 hash in HEX of a given string
generateSHA256
{ "repo_name": "Telecooperation/assistance-platform-client-sdk-android", "path": "AssistanceSDK/app/src/main/java/de/tudarmstadt/informatik/tk/assistance/sdk/util/AppUtils.java", "license": "apache-2.0", "size": 2442 }
[ "java.security.MessageDigest", "java.security.NoSuchAlgorithmException" ]
import java.security.MessageDigest; import java.security.NoSuchAlgorithmException;
import java.security.*;
[ "java.security" ]
java.security;
1,297,620
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "BaSys-PC1/models", "path": "de.dfki.iui.basys.model.runtime.edit/src/de/dfki/iui/basys/model/runtime/component/provider/PropertyItemProvider.java", "license": "epl-1.0", "size": 5437 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
301,636
boolean isReadOnly() throws SQLException { if (this.connection.versionMeetsMinimum(4, 1, 0)) { String orgColumnName = getOriginalName(); String orgTableName = getOriginalTableName(); return !(orgColumnName != null && orgColumnName.length() > 0 && orgTableName != null && orgTableName.length() > 0); ...
boolean isReadOnly() throws SQLException { if (this.connection.versionMeetsMinimum(4, 1, 0)) { String orgColumnName = getOriginalName(); String orgTableName = getOriginalTableName(); return !(orgColumnName != null && orgColumnName.length() > 0 && orgTableName != null && orgTableName.length() > 0); } return false; }
/** * Is this field _definitely_ not writable? * * @return true if this field can not be written to in an INSERT/UPDATE * statement. */
Is this field _definitely_ not writable
isReadOnly
{ "repo_name": "google-code/blufeedme", "path": "material/BDs/mysql-connector-java-5.1.13/src/com/mysql/jdbc/Field.java", "license": "gpl-3.0", "size": 27420 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,787,762
private static boolean isServerUp() throws IOException { String apiPath = "/api/v1/stacks"; String apiUrl = String.format(SERVER_URL_FORMAT, serverPort) + apiPath; CloseableHttpClient httpClient = HttpClients.createDefault();; try { HttpGet httpGet = new HttpGet(apiUrl)...
static boolean function() throws IOException { String apiPath = STR; String apiUrl = String.format(SERVER_URL_FORMAT, serverPort) + apiPath; CloseableHttpClient httpClient = HttpClients.createDefault();; try { HttpGet httpGet = new HttpGet(apiUrl); httpGet.addHeader(STR, getBasicAdminAuthentication()); httpGet.addHeade...
/** * Attempt to query the server for the stack. If the server is up, * we will get a response. If not, an exception will be thrown. * * @return - True if the local server is responsive to queries. * False, otherwise. */
Attempt to query the server for the stack. If the server is up, we will get a response. If not, an exception will be thrown
isServerUp
{ "repo_name": "sekikn/ambari", "path": "ambari-funtest/src/test/java/org/apache/ambari/funtest/server/tests/ServerTestBase.java", "license": "apache-2.0", "size": 8857 }
[ "java.io.IOException", "org.apache.http.HttpEntity", "org.apache.http.HttpResponse", "org.apache.http.client.methods.HttpGet", "org.apache.http.impl.client.CloseableHttpClient", "org.apache.http.impl.client.HttpClients", "org.apache.http.util.EntityUtils" ]
import java.io.IOException; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils;
import java.io.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.apache.http.impl.client.*; import org.apache.http.util.*;
[ "java.io", "org.apache.http" ]
java.io; org.apache.http;
1,646,943
interface WithFilters { WithCreate withFilters(List<PacketCaptureFilter> filters); }
interface WithFilters { WithCreate withFilters(List<PacketCaptureFilter> filters); }
/** * Specifies filters. * @param filters A list of packet capture filters * @return the next definition stage */
Specifies filters
withFilters
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/PacketCaptureResult.java", "license": "mit", "size": 8575 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
524,690
private void handleAcceleration(double dt) { InputHandler inputHandler = c.getInputHandler(); double maxChange, maxVel; if (inputHandler.getKey(InputHandler.SLOW)) { maxChange = 0.4*dt; maxVel = 0.2; } else { maxChange = 4*dt; maxVel = 2; } double dx=0, dy=0, dz=0; if (inputH...
void function(double dt) { InputHandler inputHandler = c.getInputHandler(); double maxChange, maxVel; if (inputHandler.getKey(InputHandler.SLOW)) { maxChange = 0.4*dt; maxVel = 0.2; } else { maxChange = 4*dt; maxVel = 2; } double dx=0, dy=0, dz=0; if (inputHandler.getMouseButton(InputHandler.FORWARDS)) dz -= 1; if (inp...
/** * Accelerates to the desired velocity depending on the controls the user is pressing * @param dt the time step in seconds */
Accelerates to the desired velocity depending on the controls the user is pressing
handleAcceleration
{ "repo_name": "patowen/hyperbolic-space", "path": "HyperbolicSpace/src/net/patowen/hyperbolicspace/entity/Player.java", "license": "mit", "size": 8967 }
[ "net.patowen.hyperbolicspace.InputHandler", "net.patowen.hyperbolicspace.math.Vector3" ]
import net.patowen.hyperbolicspace.InputHandler; import net.patowen.hyperbolicspace.math.Vector3;
import net.patowen.hyperbolicspace.*; import net.patowen.hyperbolicspace.math.*;
[ "net.patowen.hyperbolicspace" ]
net.patowen.hyperbolicspace;
453,725
public ResourceLocalService getResourceLocalService() { return resourceLocalService; }
ResourceLocalService function() { return resourceLocalService; }
/** * Returns the resource local service. * * @return the resource local service */
Returns the resource local service
getResourceLocalService
{ "repo_name": "fraunhoferfokus/govapps", "path": "data-portlet/src/main/java/de/fraunhofer/fokus/movepla/service/base/EntitlementServiceBaseImpl.java", "license": "bsd-3-clause", "size": 32782 }
[ "com.liferay.portal.service.ResourceLocalService" ]
import com.liferay.portal.service.ResourceLocalService;
import com.liferay.portal.service.*;
[ "com.liferay.portal" ]
com.liferay.portal;
882,155
private void addMember() { Intent selectGroupIntent = new Intent(this, SelectArticleActivity.class); MembersAdapter membersAdapter = (MembersAdapter) membersList.getAdapter(); selectGroupIntent.putExtra(IntentFields.WORLD_NAME, getWorldName()); selectGroupIntent.putExtra(IntentField...
void function() { Intent selectGroupIntent = new Intent(this, SelectArticleActivity.class); MembersAdapter membersAdapter = (MembersAdapter) membersList.getAdapter(); selectGroupIntent.putExtra(IntentFields.WORLD_NAME, getWorldName()); selectGroupIntent.putExtra(IntentFields.CATEGORY, Category.Person); selectGroupInten...
/** * Opens SelectArticleActivity so the user can select a new Member to add to this Group. */
Opens SelectArticleActivity so the user can select a new Member to add to this Group
addMember
{ "repo_name": "MarquisLP/World-Scribe", "path": "app/src/main/java/com/averi/worldscribe/activities/GroupActivity.java", "license": "mit", "size": 8892 }
[ "android.content.Intent", "com.averi.worldscribe.Category", "com.averi.worldscribe.adapters.MembersAdapter", "com.averi.worldscribe.utilities.IntentFields" ]
import android.content.Intent; import com.averi.worldscribe.Category; import com.averi.worldscribe.adapters.MembersAdapter; import com.averi.worldscribe.utilities.IntentFields;
import android.content.*; import com.averi.worldscribe.*; import com.averi.worldscribe.adapters.*; import com.averi.worldscribe.utilities.*;
[ "android.content", "com.averi.worldscribe" ]
android.content; com.averi.worldscribe;
22,236
public Set<String> getCommonPropertyAsSet(String key) { Set<String> propertiesSet = new HashSet<>(); StringTokenizer tk = new StringTokenizer(props.getProperty(PropertiesBundleConstant.PROPS_PREFIX + key, ""), ","); while (tk.hasMoreTokens()) propertiesSet.add(tk.nextToken().trim()); return properties...
Set<String> function(String key) { Set<String> propertiesSet = new HashSet<>(); StringTokenizer tk = new StringTokenizer(props.getProperty(PropertiesBundleConstant.PROPS_PREFIX + key, STR,"); while (tk.hasMoreTokens()) propertiesSet.add(tk.nextToken().trim()); return propertiesSet; }
/** * Returns as a set, the comma separated values of a property * * @param key * the key of the property * @return a set of the comma separated values of a property */
Returns as a set, the comma separated values of a property
getCommonPropertyAsSet
{ "repo_name": "maximmold/jawr-main-repo", "path": "jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/factory/util/PropertiesConfigHelper.java", "license": "apache-2.0", "size": 12156 }
[ "java.util.HashSet", "java.util.Set", "java.util.StringTokenizer", "net.jawr.web.resource.bundle.factory.PropertiesBundleConstant" ]
import java.util.HashSet; import java.util.Set; import java.util.StringTokenizer; import net.jawr.web.resource.bundle.factory.PropertiesBundleConstant;
import java.util.*; import net.jawr.web.resource.bundle.factory.*;
[ "java.util", "net.jawr.web" ]
java.util; net.jawr.web;
519,401
public WorkManager getWorkManager() { if (logger.isTraceEnabled()) { logger.trace("getWorkManager()"); } if (ctx == null) { return null; } return ctx.getWorkManager(); }
WorkManager function() { if (logger.isTraceEnabled()) { logger.trace(STR); } if (ctx == null) { return null; } return ctx.getWorkManager(); }
/** * Get the work manager * * @return The manager */
Get the work manager
getWorkManager
{ "repo_name": "gaohoward/activemq-artemis", "path": "artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java", "license": "apache-2.0", "size": 66758 }
[ "javax.resource.spi.work.WorkManager" ]
import javax.resource.spi.work.WorkManager;
import javax.resource.spi.work.*;
[ "javax.resource" ]
javax.resource;
1,457,722
protected void addIndicatorPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_SubAdministrativeAreaType_indicator_feature"), getString("_UI_Pro...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), XALPackage.eINSTANCE.getSubAdministrativeAreaType_Indicator(), true, false, false, ItemPropertyDe...
/** * This adds a property descriptor for the Indicator feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Indicator feature.
addIndicatorPropertyDescriptor
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/org/oasis/xAL/provider/SubAdministrativeAreaTypeItemProvider.java", "license": "apache-2.0", "size": 235657 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.oasis.xAL.XALPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.oasis.xAL.XALPackage;
import org.eclipse.emf.edit.provider.*; import org.oasis.*;
[ "org.eclipse.emf", "org.oasis" ]
org.eclipse.emf; org.oasis;
2,245,325
CompletableFuture<Map.Entry<String, Versioned<V>>> lastEntry();
CompletableFuture<Map.Entry<String, Versioned<V>>> lastEntry();
/** * Return the entry associated with the highest key in the map. * * @return the entry or null if none exist */
Return the entry associated with the highest key in the map
lastEntry
{ "repo_name": "Shashikanth-Huawei/bmp", "path": "core/api/src/main/java/org/onosproject/store/service/AsyncConsistentTreeMap.java", "license": "apache-2.0", "size": 5678 }
[ "java.util.Map", "java.util.concurrent.CompletableFuture" ]
import java.util.Map; import java.util.concurrent.CompletableFuture;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
985,060
// Called from Event Dispatch Thread public JMenuBar createMenuBar () { JMenuItem menuItem = null; JMenuBar menuBar = new JMenuBar(); JMenu mainMenu = new JMenu("Edit"); menuItem = new JMenuItem(new cutAction()); menuItem.setText("Cut"); menuItem.setAccelerator(KeyStroke.getKeyStroke("control X")); m...
JMenuBar function () { JMenuItem menuItem = null; JMenuBar menuBar = new JMenuBar(); JMenu mainMenu = new JMenu("Edit"); menuItem = new JMenuItem(new cutAction()); menuItem.setText("Cut"); menuItem.setAccelerator(KeyStroke.getKeyStroke(STR)); mainMenu.add(menuItem); menuItem = new JMenuItem(new copyAction()); menuItem....
/** * Create an Edit menu to support cut/copy/paste. */
Create an Edit menu to support cut/copy/paste
createMenuBar
{ "repo_name": "jlutgen/stanford-whittier-cpplib", "path": "java/src/edu/stanford/cs/java/spl/JBEConsole.java", "license": "gpl-3.0", "size": 16397 }
[ "javax.swing.AbstractAction", "javax.swing.JMenu", "javax.swing.JMenuBar", "javax.swing.JMenuItem", "javax.swing.KeyStroke" ]
import javax.swing.AbstractAction; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.KeyStroke;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,613,732
@Nonnull public ClaimsMappingPolicyCollectionRequest top(final int value) { addTopOption(value); return this; }
ClaimsMappingPolicyCollectionRequest function(final int value) { addTopOption(value); return this; }
/** * Sets the top value for the request * * @param value the max number of items to return * @return the updated request */
Sets the top value for the request
top
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/ClaimsMappingPolicyCollectionRequest.java", "license": "mit", "size": 6131 }
[ "com.microsoft.graph.requests.ClaimsMappingPolicyCollectionRequest" ]
import com.microsoft.graph.requests.ClaimsMappingPolicyCollectionRequest;
import com.microsoft.graph.requests.*;
[ "com.microsoft.graph" ]
com.microsoft.graph;
2,261,054
EClass getEntitiesFeature();
EClass getEntitiesFeature();
/** * Returns the meta object for class '{@link com.mguidi.soa.soa.EntitiesFeature <em>Entities Feature</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Entities Feature</em>'. * @see com.mguidi.soa.soa.EntitiesFeature * @generated */
Returns the meta object for class '<code>com.mguidi.soa.soa.EntitiesFeature Entities Feature</code>'.
getEntitiesFeature
{ "repo_name": "mguidi/SOA-Code-Factory", "path": "com.mguidi.soa/src-gen/com/mguidi/soa/soa/SoaPackage.java", "license": "apache-2.0", "size": 49882 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
398,840
public int getSendBufferSize() { int result = this.sendBufferSize; if (result != -1) { return result; } try { result = getSocket().getSendBufferSize(); } catch (SocketException ignore) { // just return a default result = this.owner.getConduit().tcpBufferSize; } this...
int function() { int result = this.sendBufferSize; if (result != -1) { return result; } try { result = getSocket().getSendBufferSize(); } catch (SocketException ignore) { result = this.owner.getConduit().tcpBufferSize; } this.sendBufferSize = result; return result; }
/** * Returns the size of the send buffer on this connection's socket. */
Returns the size of the send buffer on this connection's socket
getSendBufferSize
{ "repo_name": "deepakddixit/incubator-geode", "path": "geode-core/src/main/java/org/apache/geode/internal/tcp/Connection.java", "license": "apache-2.0", "size": 165015 }
[ "java.net.SocketException" ]
import java.net.SocketException;
import java.net.*;
[ "java.net" ]
java.net;
2,539,019
protected VdcReturnValueBase attemptRollback(VdcActionType commandType, VdcActionParametersBase params, CommandContext context) { if (canPerformRollbackUsingCommand(commandType, params)) { params.setExecutionReason(CommandExecutionReason.ROLLBACK_FLOW); params...
VdcReturnValueBase function(VdcActionType commandType, VdcActionParametersBase params, CommandContext context) { if (canPerformRollbackUsingCommand(commandType, params)) { params.setExecutionReason(CommandExecutionReason.ROLLBACK_FLOW); params.setTransactionScopeOption(TransactionScopeOption.RequiresNew); return Backen...
/** * Checks if possible to perform rollback using command, and if so performs it * * @param commandType * command type for the rollback * @param params * parameters for the rollback * @param context * command context for the rollback * @retu...
Checks if possible to perform rollback using command, and if so performs it
attemptRollback
{ "repo_name": "Dhandapani/gluster-ovirt", "path": "backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java", "license": "apache-2.0", "size": 52016 }
[ "org.ovirt.engine.core.bll.context.CommandContext", "org.ovirt.engine.core.common.action.VdcActionParametersBase", "org.ovirt.engine.core.common.action.VdcActionType", "org.ovirt.engine.core.common.action.VdcReturnValueBase", "org.ovirt.engine.core.compat.TransactionScopeOption" ]
import org.ovirt.engine.core.bll.context.CommandContext; import org.ovirt.engine.core.common.action.VdcActionParametersBase; import org.ovirt.engine.core.common.action.VdcActionType; import org.ovirt.engine.core.common.action.VdcReturnValueBase; import org.ovirt.engine.core.compat.TransactionScopeOption;
import org.ovirt.engine.core.bll.context.*; import org.ovirt.engine.core.common.action.*; import org.ovirt.engine.core.compat.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
610,991
@LogMessageDoc(level="ERROR", message="Error reading link discovery update.", explanation="Unable to process link discovery update", recommendation=LogMessageDoc.REPORT_CONTROLLER_BUG) public List<LDUpdate> applyUpdates() { List<LDUpdate> appliedUpdates = new ArrayLis...
@LogMessageDoc(level="ERROR", message=STR, explanation=STR, recommendation=LogMessageDoc.REPORT_CONTROLLER_BUG) List<LDUpdate> function() { List<LDUpdate> appliedUpdates = new ArrayList<LDUpdate>(); LDUpdate update = null; while (ldUpdates.peek() != null) { try { update = ldUpdates.take(); } catch (Exception e) { log.e...
/** * Updates concerning switch disconnect and port down are not processed. * LinkDiscoveryManager is expected to process those messages and send * multiple link removed messages. However, all the updates from * LinkDiscoveryManager would be propagated to the listeners of topology. */
Updates concerning switch disconnect and port down are not processed. LinkDiscoveryManager is expected to process those messages and send multiple link removed messages. However, all the updates from LinkDiscoveryManager would be propagated to the listeners of topology
applyUpdates
{ "repo_name": "jmiserez/floodlight", "path": "src/main/java/net/floodlightcontroller/topology/TopologyManager.java", "license": "apache-2.0", "size": 56464 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List", "net.floodlightcontroller.core.annotations.LogMessageDoc" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List; import net.floodlightcontroller.core.annotations.LogMessageDoc;
import java.util.*; import net.floodlightcontroller.core.annotations.*;
[ "java.util", "net.floodlightcontroller.core" ]
java.util; net.floodlightcontroller.core;
1,053,144
public Result execStatement( String sql ) throws KettleDatabaseException { return execStatement( sql, null, null ); }
Result function( String sql ) throws KettleDatabaseException { return execStatement( sql, null, null ); }
/** * Execute an SQL statement on the database connection (has to be open) * * @param sql The SQL to execute * @return a Result object indicating the number of lines read, deleted, inserted, updated, ... * @throws KettleDatabaseException in case anything goes wrong. */
Execute an SQL statement on the database connection (has to be open)
execStatement
{ "repo_name": "pavel-sakun/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/database/Database.java", "license": "apache-2.0", "size": 170347 }
[ "org.pentaho.di.core.Result", "org.pentaho.di.core.exception.KettleDatabaseException" ]
import org.pentaho.di.core.Result; import org.pentaho.di.core.exception.KettleDatabaseException;
import org.pentaho.di.core.*; import org.pentaho.di.core.exception.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,830,612
private void cleanStaleStatusMessages(UUID opId) { Iterator<SchemaOperationStatusMessage> it = pendingMsgs.iterator(); while (it.hasNext()) { SchemaOperationStatusMessage statusMsg = it.next(); if (F.eq(opId, statusMsg.operationId())) { it.remove(); ...
void function(UUID opId) { Iterator<SchemaOperationStatusMessage> it = pendingMsgs.iterator(); while (it.hasNext()) { SchemaOperationStatusMessage statusMsg = it.next(); if (F.eq(opId, statusMsg.operationId())) { it.remove(); if (log.isDebugEnabled()) log.debug(STR + opId + STR + statusMsg.senderNodeId() + ']'); } } }
/** * Get rid of stale IO message received from other nodes which joined when operation had been in progress. * * @param opId Operation ID. */
Get rid of stale IO message received from other nodes which joined when operation had been in progress
cleanStaleStatusMessages
{ "repo_name": "SomeFire/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java", "license": "apache-2.0", "size": 139367 }
[ "java.util.Iterator", "org.apache.ignite.internal.processors.query.schema.message.SchemaOperationStatusMessage", "org.apache.ignite.internal.util.typedef.F" ]
import java.util.Iterator; import org.apache.ignite.internal.processors.query.schema.message.SchemaOperationStatusMessage; import org.apache.ignite.internal.util.typedef.F;
import java.util.*; import org.apache.ignite.internal.processors.query.schema.message.*; import org.apache.ignite.internal.util.typedef.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
2,336,499
protected void setJsonUtils(JsonProcessingUtils jsonUtils) { this.jsonUtils = jsonUtils; }
void function(JsonProcessingUtils jsonUtils) { this.jsonUtils = jsonUtils; }
/** * Sets the {@link JsonProcessingUtils} - implemented for testing purpose only * @param jsonUtils */
Sets the <code>JsonProcessingUtils</code> - implemented for testing purpose only
setJsonUtils
{ "repo_name": "ottogroup/flink-operator-library", "path": "src/main/java/com/ottogroup/bi/streaming/operator/json/statsd/StatsdExtractedMetricsReporter.java", "license": "apache-2.0", "size": 11657 }
[ "com.ottogroup.bi.streaming.operator.json.JsonProcessingUtils" ]
import com.ottogroup.bi.streaming.operator.json.JsonProcessingUtils;
import com.ottogroup.bi.streaming.operator.json.*;
[ "com.ottogroup.bi" ]
com.ottogroup.bi;
386,703
public static EurekaUpdatingListener of( SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) { return new EurekaUpdatingListenerBuilder( sessionProtocol, endpointGroup, requireNonNull(path, "path")).build(); }
static EurekaUpdatingListener function( SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) { return new EurekaUpdatingListenerBuilder( sessionProtocol, endpointGroup, requireNonNull(path, "path")).build(); }
/** * Returns a new {@link EurekaUpdatingListener} which registers the current {@link Server} to * the specified {@link EndpointGroup} under the specified {@code path}. */
Returns a new <code>EurekaUpdatingListener</code> which registers the current <code>Server</code> to the specified <code>EndpointGroup</code> under the specified path
of
{ "repo_name": "trustin/armeria", "path": "eureka/src/main/java/com/linecorp/armeria/server/eureka/EurekaUpdatingListener.java", "license": "apache-2.0", "size": 16868 }
[ "com.linecorp.armeria.client.endpoint.EndpointGroup", "com.linecorp.armeria.common.SessionProtocol", "java.util.Objects" ]
import com.linecorp.armeria.client.endpoint.EndpointGroup; import com.linecorp.armeria.common.SessionProtocol; import java.util.Objects;
import com.linecorp.armeria.client.endpoint.*; import com.linecorp.armeria.common.*; import java.util.*;
[ "com.linecorp.armeria", "java.util" ]
com.linecorp.armeria; java.util;
1,707,567
//----------------------------------------------------------------------- public MetaProperty<IborIndex> index() { return index; }
MetaProperty<IborIndex> function() { return index; }
/** * The meta-property for the {@code index} property. * @return the meta-property, not null */
The meta-property for the index property
index
{ "repo_name": "nssales/Strata", "path": "modules/finance/src/main/java/com/opengamma/strata/finance/rate/IborRateObservation.java", "license": "apache-2.0", "size": 12480 }
[ "com.opengamma.strata.basics.index.IborIndex", "org.joda.beans.MetaProperty" ]
import com.opengamma.strata.basics.index.IborIndex; import org.joda.beans.MetaProperty;
import com.opengamma.strata.basics.index.*; import org.joda.beans.*;
[ "com.opengamma.strata", "org.joda.beans" ]
com.opengamma.strata; org.joda.beans;
967,303
public NabuccoList<Absence> getAbsenceList() { if ((this.absenceList == null)) { this.absenceList = new NabuccoListImpl<Absence>(NabuccoCollectionState.INITIALIZED); } return this.absenceList; }
NabuccoList<Absence> function() { if ((this.absenceList == null)) { this.absenceList = new NabuccoListImpl<Absence>(NabuccoCollectionState.INITIALIZED); } return this.absenceList; }
/** * The absences of the employee * * @return the NabuccoList<Absence>. */
The absences of the employee
getAbsenceList
{ "repo_name": "NABUCCO/org.nabucco.business.person", "path": "org.nabucco.business.person.facade.datatype/src/main/gen/org/nabucco/business/person/facade/datatype/Employee.java", "license": "epl-1.0", "size": 27692 }
[ "org.nabucco.business.person.facade.datatype.Absence", "org.nabucco.framework.base.facade.datatype.collection.NabuccoCollectionState", "org.nabucco.framework.base.facade.datatype.collection.NabuccoList", "org.nabucco.framework.base.facade.datatype.collection.NabuccoListImpl" ]
import org.nabucco.business.person.facade.datatype.Absence; import org.nabucco.framework.base.facade.datatype.collection.NabuccoCollectionState; import org.nabucco.framework.base.facade.datatype.collection.NabuccoList; import org.nabucco.framework.base.facade.datatype.collection.NabuccoListImpl;
import org.nabucco.business.person.facade.datatype.*; import org.nabucco.framework.base.facade.datatype.collection.*;
[ "org.nabucco.business", "org.nabucco.framework" ]
org.nabucco.business; org.nabucco.framework;
2,574,848
public void setRemoteServicesManager(IRemoteServicesManager manager) { if (manager != null) { logger.info( "[JobLauncher Message] Setting the IRemoteServicesManager: " + manager.toString()); remoteManager = manager; } }
void function(IRemoteServicesManager manager) { if (manager != null) { logger.info( STR + manager.toString()); remoteManager = manager; } }
/** * This method is used by the platform to give this MOOSEModel a reference * to the available IRemoteServicesManager. * * @param manager */
This method is used by the platform to give this MOOSEModel a reference to the available IRemoteServicesManager
setRemoteServicesManager
{ "repo_name": "eclipse/ice", "path": "org.eclipse.ice.item/src/org/eclipse/ice/item/jobLauncher/JobLauncher.java", "license": "epl-1.0", "size": 67304 }
[ "org.eclipse.remote.core.IRemoteServicesManager" ]
import org.eclipse.remote.core.IRemoteServicesManager;
import org.eclipse.remote.core.*;
[ "org.eclipse.remote" ]
org.eclipse.remote;
2,368,648
public static boolean deleteDirectory(String file) { return deleteDirectory(new File(file)); }
static boolean function(String file) { return deleteDirectory(new File(file)); }
/** * Recursively delete a directory, useful to zapping test data * * @param file the directory to be deleted * @return <tt>false</tt> if error deleting directory */
Recursively delete a directory, useful to zapping test data
deleteDirectory
{ "repo_name": "shuliangtao/apache-camel-2.13.0-src", "path": "components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java", "license": "apache-2.0", "size": 19853 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,178,989
public E getEagerLoadedDetachedEntity(E entity) throws ModelDetachException;
E function(E entity) throws ModelDetachException;
/** * Populates all fields of the supplied entity from the database then returns it detached from the session. The returned object can be modified freely * without affecting persisted data and can be merged again later * @param entity * @return detached entity with all fields pre-populated (Eagerly loaded)...
Populates all fields of the supplied entity from the database then returns it detached from the session. The returned object can be modified freely without affecting persisted data and can be merged again later
getEagerLoadedDetachedEntity
{ "repo_name": "WASP-System/central", "path": "wasp-core/src/main/java/edu/yu/einstein/wasp/dao/WaspDao.java", "license": "agpl-3.0", "size": 6528 }
[ "edu.yu.einstein.wasp.exception.ModelDetachException" ]
import edu.yu.einstein.wasp.exception.ModelDetachException;
import edu.yu.einstein.wasp.exception.*;
[ "edu.yu.einstein" ]
edu.yu.einstein;
1,949,545
public SequentialFutureChain<Void> newSequentialChain() { return new SequentialFutureChain<>(null); } public final class SequentialFutureChain<T> { private final List<FutureChainElement<T>> operations; private final T init; private SequentialFutureChain(T init) { this.operations = new A...
SequentialFutureChain<Void> function() { return new SequentialFutureChain<>(null); } public final class SequentialFutureChain<T> { private final List<FutureChainElement<T>> operations; private final T init; private SequentialFutureChain(T init) { this.operations = new ArrayList<>(); this.init = init; }
/** * Create a SequentialFutureChain that doesn't compute a result. * * <p>If any intermediate operation raises an exception, the whole chain raises an exception. * * <p>Note that sequentialExecutor must be a sequential executor, i.e. provide the sequentiality * guarantees provided by {@link com.googl...
Create a SequentialFutureChain that doesn't compute a result. If any intermediate operation raises an exception, the whole chain raises an exception. Note that sequentialExecutor must be a sequential executor, i.e. provide the sequentiality guarantees provided by <code>com.google.common.util.concurrent.SequentialExecut...
newSequentialChain
{ "repo_name": "google/mobile-data-download", "path": "java/com/google/android/libraries/mobiledatadownload/internal/util/FuturesUtil.java", "license": "apache-2.0", "size": 4950 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,778,973
void setMimeType(MimeType mimeType);
void setMimeType(MimeType mimeType);
/** * Sets the <code>MimeType</code> attribute. * * @param mimeType * The <code>MimeType</code> attribute. Must not be * <code>null</code>. */
Sets the <code>MimeType</code> attribute
setMimeType
{ "repo_name": "SAP/xliff-1-2", "path": "com.sap.mlt.xliff12.api/src/main/java/com/sap/mlt/xliff12/api/element/structural/BinUnit.java", "license": "apache-2.0", "size": 9132 }
[ "com.sap.mlt.xliff12.api.attribute.MimeType" ]
import com.sap.mlt.xliff12.api.attribute.MimeType;
import com.sap.mlt.xliff12.api.attribute.*;
[ "com.sap.mlt" ]
com.sap.mlt;
1,906,818
public void setCrew(UserConfigurableConfig<Crew> crewConfig) { this.crewConfig = crewConfig; }
void function(UserConfigurableConfig<Crew> crewConfig) { this.crewConfig = crewConfig; }
/** * Enable the use of a predefined crews */
Enable the use of a predefined crews
setCrew
{ "repo_name": "mars-sim/mars-sim", "path": "mars-sim-core/src/main/java/org/mars_sim/msp/core/structure/SettlementBuilder.java", "license": "gpl-3.0", "size": 20499 }
[ "org.mars_sim.msp.core.configuration.UserConfigurableConfig", "org.mars_sim.msp.core.person.Crew" ]
import org.mars_sim.msp.core.configuration.UserConfigurableConfig; import org.mars_sim.msp.core.person.Crew;
import org.mars_sim.msp.core.configuration.*; import org.mars_sim.msp.core.person.*;
[ "org.mars_sim.msp" ]
org.mars_sim.msp;
2,575,075
public static <T> T one(@Required AlchemyGenerator<T> generator) { if (generator == null) { throw new IllegalArgumentException("Generator cannot be null"); } return generator.get(); } }
static <T> T function(@Required AlchemyGenerator<T> generator) { if (generator == null) { throw new IllegalArgumentException(STR); } return generator.get(); } }
/** * Calls the generator once to get the ones of its values. * * @param <T> * @param generator * @return Only one value from the generator. */
Calls the generator once to get the ones of its values
one
{ "repo_name": "SirWellington/alchemy-generator", "path": "src/main/java/tech/sirwellington/alchemy/generator/AlchemyGenerator.java", "license": "apache-2.0", "size": 2174 }
[ "tech.sirwellington.alchemy.annotations.arguments.Required" ]
import tech.sirwellington.alchemy.annotations.arguments.Required;
import tech.sirwellington.alchemy.annotations.arguments.*;
[ "tech.sirwellington.alchemy" ]
tech.sirwellington.alchemy;
559,734
@MethodContract( post = @Expression("false"), exc = @Throw(type = CloneNotSupportedException.class, cond = @Expression("true")) ) @Override protected final Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException("semantic objects may never be cloned"); }
@MethodContract( post = @Expression("false"), exc = @Throw(type = CloneNotSupportedException.class, cond = @Expression("true")) ) final Object function() throws CloneNotSupportedException { throw new CloneNotSupportedException(STR); }
/** * Because this method is final, it is impossible to make a subtype * Cloneable succesfully. */
Because this method is final, it is impossible to make a subtype Cloneable succesfully
clone
{ "repo_name": "jandppw/ppwcode-recovered-from-google-code", "path": "java/vernacular/semantics/trunk/src/main/java/org/ppwcode/vernacular/semantics_VI/bean/AbstractSemanticBean.java", "license": "apache-2.0", "size": 5751 }
[ "org.toryt.annotations_I.Expression", "org.toryt.annotations_I.MethodContract", "org.toryt.annotations_I.Throw" ]
import org.toryt.annotations_I.Expression; import org.toryt.annotations_I.MethodContract; import org.toryt.annotations_I.Throw;
import org.toryt.*;
[ "org.toryt" ]
org.toryt;
174,703
public NFRetornoConsultaCadastro consultaCadastro(final String cnpj, final DFUnidadeFederativa uf) throws Exception { return this.wsConsultaCadastro.consultaCadastro(cnpj, uf); }
NFRetornoConsultaCadastro function(final String cnpj, final DFUnidadeFederativa uf) throws Exception { return this.wsConsultaCadastro.consultaCadastro(cnpj, uf); }
/** * Realiza a consulta de cadastro de pessoa juridica com inscricao estadual * @param cnpj CNPJ da pessoa juridica * @param uf UF da pessoa juridica * @return dados da consulta da pessoa juridica retornado pelo webservice * @throws Exception caso nao consiga gerar o xml ou problema de conexao...
Realiza a consulta de cadastro de pessoa juridica com inscricao estadual
consultaCadastro
{ "repo_name": "jefperito/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe310/webservices/WSFacade.java", "license": "apache-2.0", "size": 14488 }
[ "com.fincatto.documentofiscal.DFUnidadeFederativa", "com.fincatto.documentofiscal.nfe310.classes.cadastro.NFRetornoConsultaCadastro" ]
import com.fincatto.documentofiscal.DFUnidadeFederativa; import com.fincatto.documentofiscal.nfe310.classes.cadastro.NFRetornoConsultaCadastro;
import com.fincatto.documentofiscal.*; import com.fincatto.documentofiscal.nfe310.classes.cadastro.*;
[ "com.fincatto.documentofiscal" ]
com.fincatto.documentofiscal;
1,221,250
public HttpRequestBase getHttpRequest() { return httpRequest; }
HttpRequestBase function() { return httpRequest; }
/** * Returns the original http request associated with this response. * * @return The original http request associated with this response. */
Returns the original http request associated with this response
getHttpRequest
{ "repo_name": "XidongHuang/aws-sdk-for-java", "path": "src/main/java/com/amazonaws/http/HttpResponse.java", "license": "apache-2.0", "size": 4353 }
[ "org.apache.http.client.methods.HttpRequestBase" ]
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.client.methods.*;
[ "org.apache.http" ]
org.apache.http;
2,823,618