method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public static void main(String[] args) { try { AppGameContainer container = new AppGameContainer(new ImageBufferEndianTest()); container.setDisplayMode(800,600,false); container.start(); } catch (SlickException e) { e.printStackTrace(); } }
static void function(String[] args) { try { AppGameContainer container = new AppGameContainer(new ImageBufferEndianTest()); container.setDisplayMode(800,600,false); container.start(); } catch (SlickException e) { e.printStackTrace(); } }
/** * Entry point to the test * * @param args The arguments passed into the test */
Entry point to the test
main
{ "repo_name": "dbank-so/fadableUnicodeFont", "path": "src/org/newdawn/slick/tests/ImageBufferEndianTest.java", "license": "bsd-3-clause", "size": 3465 }
[ "org.newdawn.slick.AppGameContainer", "org.newdawn.slick.SlickException" ]
import org.newdawn.slick.AppGameContainer; import org.newdawn.slick.SlickException;
import org.newdawn.slick.*;
[ "org.newdawn.slick" ]
org.newdawn.slick;
1,925,947
public static Class<? extends SocketChannel> getClientSocketChannelClass(EventLoopGroup eventLoopGroup) { if (eventLoopGroup instanceof EpollEventLoopGroup) { return EpollSocketChannel.class; } else { return NioSocketChannel.class; } }
static Class<? extends SocketChannel> function(EventLoopGroup eventLoopGroup) { if (eventLoopGroup instanceof EpollEventLoopGroup) { return EpollSocketChannel.class; } else { return NioSocketChannel.class; } }
/** * Return a SocketChannel class suitable for the given EventLoopGroup implementation. * * @param eventLoopGroup * @return */
Return a SocketChannel class suitable for the given EventLoopGroup implementation
getClientSocketChannelClass
{ "repo_name": "massakam/pulsar", "path": "pulsar-common/src/main/java/org/apache/pulsar/common/util/netty/EventLoopUtil.java", "license": "apache-2.0", "size": 5037 }
[ "io.netty.channel.EventLoopGroup", "io.netty.channel.epoll.EpollEventLoopGroup", "io.netty.channel.epoll.EpollSocketChannel", "io.netty.channel.socket.SocketChannel", "io.netty.channel.socket.nio.NioSocketChannel" ]
import io.netty.channel.EventLoopGroup; import io.netty.channel.epoll.EpollEventLoopGroup; import io.netty.channel.epoll.EpollSocketChannel; import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.channel.*; import io.netty.channel.epoll.*; import io.netty.channel.socket.*; import io.netty.channel.socket.nio.*;
[ "io.netty.channel" ]
io.netty.channel;
634,434
@Test public void testGetPlotScalarError() throws Exception { final String serviceUrl = "http://example/url"; final String logId = "unique-id"; final Integer width = 1; final Integer height = 2; final Integer startDepth = 3; final Integer endDepth = 4; ...
void function() throws Exception { final String serviceUrl = STRunique-id"; final Integer width = 1; final Integer height = 2; final Integer startDepth = 3; final Integer endDepth = 4; final Double samplingInterval = 1.5; final Integer graphTypeInt = 1; final PlotScalarGraphType graphType = PlotScalarGraphType.StackedB...
/** * Tests getting PlotScalar fails correctly. * * @throws Exception */
Tests getting PlotScalar fails correctly
testGetPlotScalarError
{ "repo_name": "yan073/AuScope-Portal", "path": "src/test/java/org/auscope/portal/server/web/controllers/TestNVCLController.java", "license": "lgpl-3.0", "size": 33419 }
[ "java.net.ConnectException", "org.apache.http.HttpStatus", "org.auscope.portal.server.web.NVCLDataServiceMethodMaker", "org.jmock.Expectations" ]
import java.net.ConnectException; import org.apache.http.HttpStatus; import org.auscope.portal.server.web.NVCLDataServiceMethodMaker; import org.jmock.Expectations;
import java.net.*; import org.apache.http.*; import org.auscope.portal.server.web.*; import org.jmock.*;
[ "java.net", "org.apache.http", "org.auscope.portal", "org.jmock" ]
java.net; org.apache.http; org.auscope.portal; org.jmock;
1,002,416
@Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; PathMatcher path = new PathMatch...
void function(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; PathMatcher path = new PathMatcher(request.getRequestURI()); List<Map<String, String>> station...
/** * See {@link javax.servlet.Filter#doFilter}. */
See <code>javax.servlet.Filter#doFilter</code>
doFilter
{ "repo_name": "mattkenney/mwthr", "path": "java/com/mwthr/web/LocatorFilter.java", "license": "agpl-3.0", "size": 8857 }
[ "com.mwthr.gae.URLDataFetcher", "com.mwthr.nws.Forecast", "com.mwthr.nws.Graph", "com.mwthr.nws.Locator", "com.mwthr.nws.Observation", "java.io.IOException", "java.util.Collections", "java.util.List", "java.util.Map", "javax.servlet.FilterChain", "javax.servlet.RequestDispatcher", "javax.servl...
import com.mwthr.gae.URLDataFetcher; import com.mwthr.nws.Forecast; import com.mwthr.nws.Graph; import com.mwthr.nws.Locator; import com.mwthr.nws.Observation; import java.io.IOException; import java.util.Collections; import java.util.List; import java.util.Map; import javax.servlet.FilterChain; import javax.servlet.Re...
import com.mwthr.gae.*; import com.mwthr.nws.*; import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*;
[ "com.mwthr.gae", "com.mwthr.nws", "java.io", "java.util", "javax.servlet" ]
com.mwthr.gae; com.mwthr.nws; java.io; java.util; javax.servlet;
1,103,083
public Value getValue(int rowIndex, int colIndex) { return getCell(rowIndex, colIndex).getValue(); }
Value function(int rowIndex, int colIndex) { return getCell(rowIndex, colIndex).getValue(); }
/** * Returns the value in the cell at the specified row and column indexes. * * @param rowIndex The row index. * @param colIndex The column index. * * @return The value in the cell. */
Returns the value in the cell at the specified row and column indexes
getValue
{ "repo_name": "dzxdzx1987/GoogleCharts", "path": "GoogleChartsSource/com/google/visualization/datasource/datatable/DataTable.java", "license": "apache-2.0", "size": 17906 }
[ "com.google.visualization.datasource.datatable.value.Value" ]
import com.google.visualization.datasource.datatable.value.Value;
import com.google.visualization.datasource.datatable.value.*;
[ "com.google.visualization" ]
com.google.visualization;
984,763
public Set<String> getAncestorAnnotations(String baseGpID){ Set<String> retset = new HashSet<String>(); // Look to see if that is a known node. String nodeID = gpToNodeMap.get(baseGpID); if( nodeID != null){ // We found a node ID, so now we get the ancestor closure. // For each of the ancestors, loo...
Set<String> function(String baseGpID){ Set<String> retset = new HashSet<String>(); String nodeID = gpToNodeMap.get(baseGpID); if( nodeID != null){ Set<String> ancs = getAncestors(nodeID); for( String ancID : ancs ){ Set<String> gps = nodeToGpMap.get(ancID); if( gps != null && ! gps.isEmpty() ){ for( String gp : gps ){ ...
/** * Return all annotations to ancestor nodes. * * @param baseGpID gene product id * @return all ancestor annotations (inclusive) */
Return all annotations to ancestor nodes
getAncestorAnnotations
{ "repo_name": "owlcollab/owltools", "path": "OWLTools-Solr/src/main/java/owltools/panther/PANTHERTree.java", "license": "bsd-3-clause", "size": 16991 }
[ "java.util.HashSet", "java.util.Set" ]
import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
389,293
// TODO: return an explanation of why things went wrong, and the status of the device. CompletableFuture<Boolean> deployPipeconf(PiPipeconf pipeconf);
CompletableFuture<Boolean> deployPipeconf(PiPipeconf pipeconf);
/** * Deploys the given pipeconf to the device. * * @param pipeconf pipeconf * @return true if the operation was successful, false otherwise */
Deploys the given pipeconf to the device
deployPipeconf
{ "repo_name": "osinstom/onos", "path": "core/api/src/main/java/org/onosproject/net/behaviour/PiPipelineProgrammable.java", "license": "apache-2.0", "size": 1587 }
[ "java.util.concurrent.CompletableFuture", "org.onosproject.net.pi.model.PiPipeconf" ]
import java.util.concurrent.CompletableFuture; import org.onosproject.net.pi.model.PiPipeconf;
import java.util.concurrent.*; import org.onosproject.net.pi.model.*;
[ "java.util", "org.onosproject.net" ]
java.util; org.onosproject.net;
2,048,483
public CallHandle loadAnnotations(SecurityContext ctx, Class<? extends DataObject> rootType, List<Long> rootIDs, Class<?> annotationType, List<String> nsInclude, List<String> nsExlcude, AgentEventListener observer);
CallHandle function(SecurityContext ctx, Class<? extends DataObject> rootType, List<Long> rootIDs, Class<?> annotationType, List<String> nsInclude, List<String> nsExlcude, AgentEventListener observer);
/** * Loads the annotations of the given type linked to the specified objects. * Returns a map whose keys are the object's id and the values are a * collection of annotation linked to that object. * * @param ctx The security context. * @param rootType The type of object the annotations are linked to e.g. ...
Loads the annotations of the given type linked to the specified objects. Returns a map whose keys are the object's id and the values are a collection of annotation linked to that object
loadAnnotations
{ "repo_name": "dpwrussell/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/views/MetadataHandlerView.java", "license": "gpl-2.0", "size": 20737 }
[ "java.util.List", "org.openmicroscopy.shoola.env.event.AgentEventListener" ]
import java.util.List; import org.openmicroscopy.shoola.env.event.AgentEventListener;
import java.util.*; import org.openmicroscopy.shoola.env.event.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
1,954,041
public static String getListType(String type) { Preconditions.checkArgument(StringUtils.isNotEmpty(type), "type cannot be empty or null"); if (isList(type)){ Pattern pattern = Pattern.compile(LIST_PATTERN, Pattern.CASE_INSENSITIVE); Matcher m = pattern.matcher(type); ...
static String function(String type) { Preconditions.checkArgument(StringUtils.isNotEmpty(type), STR); if (isList(type)){ Pattern pattern = Pattern.compile(LIST_PATTERN, Pattern.CASE_INSENSITIVE); Matcher m = pattern.matcher(type); if (m.find()) { return m.group(1); } else { throw new IllegalArgumentException(STR); } } ...
/** * Gets the element type in list type * @param type - type string * @return T if the type is List&lt;T&gt; */
Gets the element type in list type
getListType
{ "repo_name": "mxk1235/exovert", "path": "src/main/java/com/cyngn/exovert/generate/server/rest/TypeParser.java", "license": "apache-2.0", "size": 6179 }
[ "com.google.common.base.Preconditions", "java.util.regex.Matcher", "java.util.regex.Pattern", "org.apache.commons.lang.StringUtils" ]
import com.google.common.base.Preconditions; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang.StringUtils;
import com.google.common.base.*; import java.util.regex.*; import org.apache.commons.lang.*;
[ "com.google.common", "java.util", "org.apache.commons" ]
com.google.common; java.util; org.apache.commons;
1,828,006
private static boolean isLocalAddress(InetAddress address) { return address.isLoopbackAddress() || address.isSiteLocalAddress() || address.isAnyLocalAddress(); }
static boolean function(InetAddress address) { return address.isLoopbackAddress() address.isSiteLocalAddress() address.isAnyLocalAddress(); }
/** * Tells whether or not the given {@code address} is a loopback, a site local or any local address. * * @param address the address that will be checked * @return {@code true} if the address is loopback, site local or any local address, {@code false} otherwise. * @see InetAddress#isLoopb...
Tells whether or not the given address is a loopback, a site local or any local address
isLocalAddress
{ "repo_name": "j4nnis/bproxy", "path": "src/org/parosproxy/paros/core/proxy/ProxyThread.java", "license": "apache-2.0", "size": 32772 }
[ "java.net.InetAddress" ]
import java.net.InetAddress;
import java.net.*;
[ "java.net" ]
java.net;
1,420,543
public static it.gebhard.qa.model.Answer findByPrimaryKey(long answerId) throws com.liferay.portal.kernel.exception.SystemException, it.gebhard.qa.NoSuchAnswerException { return getPersistence().findByPrimaryKey(answerId); }
static it.gebhard.qa.model.Answer function(long answerId) throws com.liferay.portal.kernel.exception.SystemException, it.gebhard.qa.NoSuchAnswerException { return getPersistence().findByPrimaryKey(answerId); }
/** * Returns the Answer with the primary key or throws a {@link it.gebhard.qa.NoSuchAnswerException} if it could not be found. * * @param answerId the primary key of the Answer * @return the Answer * @throws it.gebhard.qa.NoSuchAnswerException if a Answer with the primary key could not be found * @throws SystemE...
Returns the Answer with the primary key or throws a <code>it.gebhard.qa.NoSuchAnswerException</code> if it could not be found
findByPrimaryKey
{ "repo_name": "p-gebhard/QuickAnswer", "path": "docroot/WEB-INF/service/it/gebhard/qa/service/persistence/AnswerUtil.java", "license": "gpl-3.0", "size": 33029 }
[ "com.liferay.portal.kernel.exception.SystemException", "it.gebhard.qa.model.Answer" ]
import com.liferay.portal.kernel.exception.SystemException; import it.gebhard.qa.model.Answer;
import com.liferay.portal.kernel.exception.*; import it.gebhard.qa.model.*;
[ "com.liferay.portal", "it.gebhard.qa" ]
com.liferay.portal; it.gebhard.qa;
46,249
protected void sendFrame(int opcode, boolean fin, byte[] payload, int offset, int length) throws IOException { // first octet byte b0 = 0; if (fin) { b0 |= (byte) (1 << 7); } b0 |= (byte) opcode; mApplicationBuffer.put(b0); // second octet byte b1 = 0; if (mWebSocketOptions.getMaskClientFrames(...
void function(int opcode, boolean fin, byte[] payload, int offset, int length) throws IOException { byte b0 = 0; if (fin) { b0 = (byte) (1 << 7); } b0 = (byte) opcode; mApplicationBuffer.put(b0); byte b1 = 0; if (mWebSocketOptions.getMaskClientFrames()) { b1 = (byte) (1 << 7); } long len = length; if (len <= 125) { b1 ...
/** * Sends a WebSockets frame. Only need to use this method in derived classes which implement * more message types in processAppMessage(). You need to know what you are doing! * * @param opcode The WebSocket frame opcode. * @param fin FIN flag for WebSocket frame. * @param payload Frame payl...
Sends a WebSockets frame. Only need to use this method in derived classes which implement more message types in processAppMessage(). You need to know what you are doing
sendFrame
{ "repo_name": "lukasz-skalski/WebSocketsClient", "path": "app/src/main/java/com/skalski/websocketsclient/SecureWebSocktes/WebSocketWriter.java", "license": "gpl-3.0", "size": 13727 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,620,393
@Test public void testChangeTypeFormulaToBoolean() throws IOException { Workbook wb = _testDataProvider.createWorkbook(); Cell cell = createACell(wb); cell.setCellFormula("1=1"); cell.setCellValue(true); cell.setCellType(CellType.BOOLEAN); assertTrue("Identified ...
void function() throws IOException { Workbook wb = _testDataProvider.createWorkbook(); Cell cell = createACell(wb); cell.setCellFormula("1=1"); cell.setCellValue(true); cell.setCellType(CellType.BOOLEAN); assertTrue(STR, cell.getBooleanCellValue()); assertEquals(true, cell.getBooleanCellValue()); wb.close(); }
/** * Test for bug in convertCellValueToBoolean to make sure that formula results get converted */
Test for bug in convertCellValueToBoolean to make sure that formula results get converted
testChangeTypeFormulaToBoolean
{ "repo_name": "lvweiwolf/poi-3.16", "path": "src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java", "license": "apache-2.0", "size": 40623 }
[ "java.io.IOException", "org.junit.Assert" ]
import java.io.IOException; import org.junit.Assert;
import java.io.*; import org.junit.*;
[ "java.io", "org.junit" ]
java.io; org.junit;
2,708,283
private void updateAllocation() { long totalAllocations = 0; for (Long allocation : writerList.values()) { totalAllocations += allocation; } if (totalAllocations <= totalMemoryPool) { scale = 1.0; } else { scale = (double) totalMemoryPool / totalAllocations; LOG.warn(String...
void function() { long totalAllocations = 0; for (Long allocation : writerList.values()) { totalAllocations += allocation; } if (totalAllocations <= totalMemoryPool) { scale = 1.0; } else { scale = (double) totalMemoryPool / totalAllocations; LOG.warn(String.format( STR + STR, 100*memoryPoolRatio, totalMemoryPool, 100*...
/** * Update the allocated size of each writer based on the current allocations and pool size. */
Update the allocated size of each writer based on the current allocations and pool size
updateAllocation
{ "repo_name": "cchang738/parquet-mr", "path": "parquet-hadoop/src/main/java/org/apache/parquet/hadoop/MemoryManager.java", "license": "apache-2.0", "size": 7044 }
[ "java.util.Map", "org.apache.parquet.ParquetRuntimeException" ]
import java.util.Map; import org.apache.parquet.ParquetRuntimeException;
import java.util.*; import org.apache.parquet.*;
[ "java.util", "org.apache.parquet" ]
java.util; org.apache.parquet;
1,957,663
default BlobEndpointConsumerBuilder timeout(Duration timeout) { doSetProperty("timeout", timeout); return this; }
default BlobEndpointConsumerBuilder timeout(Duration timeout) { doSetProperty(STR, timeout); return this; }
/** * An optional timeout value beyond which a RuntimeException will be * raised. * * The option is a: &lt;code&gt;java.time.Duration&lt;/code&gt; type. * * Group: common * * @param timeout the value to set * @return the dsl builder ...
An optional timeout value beyond which a RuntimeException will be raised. The option is a: &lt;code&gt;java.time.Duration&lt;/code&gt; type. Group: common
timeout
{ "repo_name": "pmoerenhout/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BlobEndpointBuilderFactory.java", "license": "apache-2.0", "size": 78634 }
[ "java.time.Duration" ]
import java.time.Duration;
import java.time.*;
[ "java.time" ]
java.time;
1,457,540
@FIXVersion(introduced="4.0") @TagNumRef(tagNum=TagNum.Text) public String getText() { return text; }
@FIXVersion(introduced="4.0") @TagNumRef(tagNum=TagNum.Text) String function() { return text; }
/** * Message field getter. * @return field value */
Message field getter
getText
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/OrderCancelRejectMsg.java", "license": "gpl-3.0", "size": 30445 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
1,095,838
public void setFocusedWindow(View view) { mFocusLock.writeLock().lock(); try { mFocusedWindow = view == null ? null : view.getRootView(); } finally { mFocusLock.writeLock().unlock(); } fireFocusChangedEvent(); }
void function(View view) { mFocusLock.writeLock().lock(); try { mFocusedWindow = view == null ? null : view.getRootView(); } finally { mFocusLock.writeLock().unlock(); } fireFocusChangedEvent(); }
/** * Invoke this method to change the currently focused window. * * @param view A view that belongs to the view hierarchy/window that has focus, * or null to remove focus */
Invoke this method to change the currently focused window
setFocusedWindow
{ "repo_name": "tengbinlive/aibao_demo", "path": "app/src/main/java/com/debug/ViewServer.java", "license": "apache-2.0", "size": 24633 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,210,346
public void setServiceValue(YangString serviceValue) throws JNCException { setLeafValue(Epc.NAMESPACE, "service", serviceValue, childrenNames()); }
void function(YangString serviceValue) throws JNCException { setLeafValue(Epc.NAMESPACE, STR, serviceValue, childrenNames()); }
/** * Sets the value for child leaf "service", * using instance of generated typedef class. * @param serviceValue The value to set. * @param serviceValue used during instantiation. */
Sets the value for child leaf "service", using instance of generated typedef class
setServiceValue
{ "repo_name": "jnpr-shinma/yangfile", "path": "hitel/src/hctaEpc/mmeSgsn/statistics/gprsMm/RauFail.java", "license": "apache-2.0", "size": 11341 }
[ "com.tailf.jnc.YangString" ]
import com.tailf.jnc.YangString;
import com.tailf.jnc.*;
[ "com.tailf.jnc" ]
com.tailf.jnc;
2,338,383
synchronized ItemImpl createItemInstance(ItemState state) throws RepositoryException { ItemData data = createItemData(state, null, false); return createItemInstance(data); }
synchronized ItemImpl createItemInstance(ItemState state) throws RepositoryException { ItemData data = createItemData(state, null, false); return createItemInstance(data); }
/** * Create an item instance from an item state. This method creates a * new <code>ItemData</code> instance without looking at the cache nor * testing if the item can be read and returns a new item instance. * * @param state item state * @return item instance * @throws RepositoryExce...
Create an item instance from an item state. This method creates a new <code>ItemData</code> instance without looking at the cache nor testing if the item can be read and returns a new item instance
createItemInstance
{ "repo_name": "afilimonov/jackrabbit", "path": "jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemManager.java", "license": "apache-2.0", "size": 48909 }
[ "javax.jcr.RepositoryException", "org.apache.jackrabbit.core.state.ItemState" ]
import javax.jcr.RepositoryException; import org.apache.jackrabbit.core.state.ItemState;
import javax.jcr.*; import org.apache.jackrabbit.core.state.*;
[ "javax.jcr", "org.apache.jackrabbit" ]
javax.jcr; org.apache.jackrabbit;
2,346,484
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
/** * Handles the HTTP <code>POST</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */
Handles the HTTP <code>POST</code> method
doPost
{ "repo_name": "akshayx11/Fast-Order-Service-Restaurant-Mgmt-System", "path": "FOSmanager/src/java/onlineorder1.java", "license": "gpl-2.0", "size": 3615 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
1,128,058
private GameElement last(){ //get largest distance from goal List<Double> list = new ArrayList<Double>(); for (GameElement g: myTargets){ list.add(myTargets.indexOf(g), distanceFromGoal(g)); } return myTargets.get(getLargestIndex(list)); }
GameElement function(){ List<Double> list = new ArrayList<Double>(); for (GameElement g: myTargets){ list.add(myTargets.indexOf(g), distanceFromGoal(g)); } return myTargets.get(getLargestIndex(list)); }
/** * Returns the GameElement farthest from its goal * @return GameElement farthest from its goal */
Returns the GameElement farthest from its goal
last
{ "repo_name": "calliem/voogasalad_ProtectedTower", "path": "src/engine/AttackPriority.java", "license": "mit", "size": 6748 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,824,606
private static <Q> IBeliefBaseMask<Q> walk( final CPath p_path, final IBeliefBaseMask<Q> p_root, final IGenerator<Q> p_generator ) { if ( ( p_path == null ) || ( p_path.isEmpty() ) ) return p_root; // get the next mask (on ".." the parent is returned otherwise the child is used) ...
static <Q> IBeliefBaseMask<Q> function( final CPath p_path, final IBeliefBaseMask<Q> p_root, final IGenerator<Q> p_generator ) { if ( ( p_path == null ) ( p_path.isEmpty() ) ) return p_root; IBeliefBaseMask<Q> l_mask = "..".equals( p_path.get( 0 ) ) ? p_root.getParent() : p_root.getStorage().getSingleElement( p_path.ge...
/** * returns a mask on the recursive descend * * @param p_path path * @param p_root start / root node * @param p_generator generator object for new masks * @return mask * * @note a path can contains ".." to use the parent object * @tparam Q literal type */
returns a mask on the recursive descend
walk
{ "repo_name": "flashpixx/MecSim", "path": "src/main/java/de/tu_clausthal/in/mec/object/mas/generic/implementation/CMask.java", "license": "gpl-3.0", "size": 15679 }
[ "de.tu_clausthal.in.mec.common.CCommon", "de.tu_clausthal.in.mec.common.CPath", "de.tu_clausthal.in.mec.object.mas.generic.IBeliefBaseMask" ]
import de.tu_clausthal.in.mec.common.CCommon; import de.tu_clausthal.in.mec.common.CPath; import de.tu_clausthal.in.mec.object.mas.generic.IBeliefBaseMask;
import de.tu_clausthal.in.mec.common.*; import de.tu_clausthal.in.mec.object.mas.generic.*;
[ "de.tu_clausthal.in" ]
de.tu_clausthal.in;
532,459
default void buildConfigObjects(Iterable<? extends Module> modules) { get(); }
default void buildConfigObjects(Iterable<? extends Module> modules) { get(); }
/** * Called during configuration validation. Must use the * {@link ConfigurationFactory} previously set to build all config * objects that this provider will need * * @param modules The application modules. The provider may inspect these * in order to determine which config objects to bui...
Called during configuration validation. Must use the <code>ConfigurationFactory</code> previously set to build all config objects that this provider will need
buildConfigObjects
{ "repo_name": "gwittel/platform", "path": "configuration/src/main/java/com/proofpoint/configuration/ConfigurationAwareProvider.java", "license": "apache-2.0", "size": 1303 }
[ "com.google.inject.Module" ]
import com.google.inject.Module;
import com.google.inject.*;
[ "com.google.inject" ]
com.google.inject;
995,494
public final TypeToken<T> wrap() { if (isPrimitive()) { @SuppressWarnings("unchecked") // this is a primitive class Class<T> type = (Class<T>) runtimeType; return of(Primitives.wrap(type)); } return this; }
final TypeToken<T> function() { if (isPrimitive()) { @SuppressWarnings(STR) Class<T> type = (Class<T>) runtimeType; return of(Primitives.wrap(type)); } return this; }
/** * Returns the corresponding wrapper type if this is a primitive type; otherwise returns * {@code this} itself. Idempotent. * * @since 15.0 */
Returns the corresponding wrapper type if this is a primitive type; otherwise returns this itself. Idempotent
wrap
{ "repo_name": "paulmartel/voltdb", "path": "third_party/java/src/com/google_voltpatches/common/reflect/TypeToken.java", "license": "agpl-3.0", "size": 48340 }
[ "com.google_voltpatches.common.primitives.Primitives" ]
import com.google_voltpatches.common.primitives.Primitives;
import com.google_voltpatches.common.primitives.*;
[ "com.google_voltpatches.common" ]
com.google_voltpatches.common;
1,074,459
public void write(String s, String color, Boolean bold) { try { Document doc = output.getDocument(); SimpleAttributeSet keyWord = new SimpleAttributeSet(); StyleConstants.setForeground(keyWord, sources.get(color)); //StyleConstants.setBackground(keyWord, colo...
void function(String s, String color, Boolean bold) { try { Document doc = output.getDocument(); SimpleAttributeSet keyWord = new SimpleAttributeSet(); StyleConstants.setForeground(keyWord, sources.get(color)); if (bold) { StyleConstants.setBold(keyWord, true); } doc.insertString(doc.getLength(), s + "\n", keyWord); ou...
/** * Permette di appendere alla finestra di output una stringa di un * determinato colore in bold * * @param s la strinfa da appendere * @param color una stringa rappresentante il colore. Il colore * corrispondente verrà recuperato dalla hasmap definita nel costruttore * della classe...
Permette di appendere alla finestra di output una stringa di un determinato colore in bold
write
{ "repo_name": "AlexBasile/Monitor_NGCaffe", "path": "src/monitor1213/PrintOutWindow.java", "license": "gpl-2.0", "size": 16198 }
[ "javax.swing.text.BadLocationException", "javax.swing.text.Document", "javax.swing.text.SimpleAttributeSet", "javax.swing.text.StyleConstants" ]
import javax.swing.text.BadLocationException; import javax.swing.text.Document; import javax.swing.text.SimpleAttributeSet; import javax.swing.text.StyleConstants;
import javax.swing.text.*;
[ "javax.swing" ]
javax.swing;
2,056,703
public static void migrateTabsFromClassicToDocument( final Activity activity, final int finalizeMode) { StorageDelegate storageDelegate = new StorageDelegate(); MigrationActivityDelegate activityDelegate = createActivityDelegateWithTabsToMigrate(storageDelegate, activity)...
static void function( final Activity activity, final int finalizeMode) { StorageDelegate storageDelegate = new StorageDelegate(); MigrationActivityDelegate activityDelegate = createActivityDelegateWithTabsToMigrate(storageDelegate, activity); final MigrationTabModel normalTabModel = new MigrationTabModel(activityDelega...
/** * Migrates all tab state to document mode and creates tasks for each currently open tab. * @param activity Activity to be used while launching the tasks. * @param finalizeMode The mode in which the migration should be finalized. */
Migrates all tab state to document mode and creates tasks for each currently open tab
migrateTabsFromClassicToDocument
{ "repo_name": "Just-D/chromium-1", "path": "chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMigrationHelper.java", "license": "bsd-3-clause", "size": 23755 }
[ "android.app.Activity", "org.chromium.chrome.browser.tabmodel.document.StorageDelegate" ]
import android.app.Activity; import org.chromium.chrome.browser.tabmodel.document.StorageDelegate;
import android.app.*; import org.chromium.chrome.browser.tabmodel.document.*;
[ "android.app", "org.chromium.chrome" ]
android.app; org.chromium.chrome;
2,808,592
public static Frame getFrameForComponent(Component parentComponent) { return (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parentComponent); }
static Frame function(Component parentComponent) { return (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parentComponent); }
/** * This method returns the Frame for the given parentComponent or null if * none can be found. * * @param parentComponent The component to look in. * * @return The Frame for the given component or null if none can be found. */
This method returns the Frame for the given parentComponent or null if none can be found
getFrameForComponent
{ "repo_name": "ivmai/JCGO", "path": "goclsp/clsp_fix/javax/swing/JOptionPane.java", "license": "gpl-2.0", "size": 52689 }
[ "java.awt.Component", "java.awt.Frame" ]
import java.awt.Component; import java.awt.Frame;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,140,622
public native void getCurrentHeading(GeolocationHandler handler) ;
native void function(GeolocationHandler handler) ;
/** * Retrieve the current compass heading. */
Retrieve the current compass heading
getCurrentHeading
{ "repo_name": "alpapad/ahome-titanium", "path": "ahome-titanium/src/com/ait/toolkit/titanium/mobile/client/geolocation/Geolocation.java", "license": "apache-2.0", "size": 15976 }
[ "com.ait.toolkit.titanium.mobile.client.core.handlers.geolocation.GeolocationHandler" ]
import com.ait.toolkit.titanium.mobile.client.core.handlers.geolocation.GeolocationHandler;
import com.ait.toolkit.titanium.mobile.client.core.handlers.geolocation.*;
[ "com.ait.toolkit" ]
com.ait.toolkit;
2,428,450
Session session = (Session) threadLocal.get(); if (session == null || !session.isOpen()) { if (sessionFactory == null) { rebuildSessionFactory(); } session = (sessionFactory != null) ? sessionFactory.openSession() : null; threadLocal.set(session); } return session; }
Session session = (Session) threadLocal.get(); if (session == null !session.isOpen()) { if (sessionFactory == null) { rebuildSessionFactory(); } session = (sessionFactory != null) ? sessionFactory.openSession() : null; threadLocal.set(session); } return session; }
/** * Returns the ThreadLocal Session instance. Lazy initialize * the <code>SessionFactory</code> if needed. * * @return Session * @throws HibernateException */
Returns the ThreadLocal Session instance. Lazy initialize the <code>SessionFactory</code> if needed
getSession
{ "repo_name": "hemoye/ic", "path": "src/com/jsu/ic/commons/HibernateSessionFactory.java", "license": "gpl-2.0", "size": 3213 }
[ "org.hibernate.Session" ]
import org.hibernate.Session;
import org.hibernate.*;
[ "org.hibernate" ]
org.hibernate;
398,016
private List<TestProject> createDemoProject( List<File> demoProjectsToBeBuildDirs) throws IOException, SystemException { List<TestProject> result = new ArrayList<TestProject>(); if (demoProjectsToBeBuildDirs != null) { File wsDir = Platform.getLocation().toFile(); Set<String> wsDirectoryNames = new ...
List<TestProject> function( List<File> demoProjectsToBeBuildDirs) throws IOException, SystemException { List<TestProject> result = new ArrayList<TestProject>(); if (demoProjectsToBeBuildDirs != null) { File wsDir = Platform.getLocation().toFile(); Set<String> wsDirectoryNames = new HashSet<String>( Arrays.asList(wsDir....
/** * Creates the demo Project in an empty Workspace. * * @param demoProjectsToBeBuildDirs * List of demo projects user wants to be build * * @throws IOException * on file-operations * @return list of created demo projects. * @throws SystemException * on io error...
Creates the demo Project in an empty Workspace
createDemoProject
{ "repo_name": "franzbecker/test-editor", "path": "core/org.testeditor.core/src/org/testeditor/core/services/impl/TestProjectServiceImpl.java", "license": "epl-1.0", "size": 38038 }
[ "java.io.File", "java.io.IOException", "java.util.ArrayList", "java.util.Arrays", "java.util.HashSet", "java.util.List", "java.util.Set", "org.eclipse.core.runtime.Platform", "org.testeditor.core.exceptions.SystemException", "org.testeditor.core.model.teststructure.TestProject", "org.testeditor....
import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import org.eclipse.core.runtime.Platform; import org.testeditor.core.exceptions.SystemException; import org.testeditor.core.model.teststructure.Tes...
import java.io.*; import java.util.*; import org.eclipse.core.runtime.*; import org.testeditor.core.exceptions.*; import org.testeditor.core.model.teststructure.*;
[ "java.io", "java.util", "org.eclipse.core", "org.testeditor.core" ]
java.io; java.util; org.eclipse.core; org.testeditor.core;
1,110,358
private static <C extends Chrono<C>> void printMonthCal(ChronoLocalDate<C> date, PrintStream out) { int lengthOfMonth = date.lengthOfMonth(); ChronoLocalDate<C> end = date.with(ChronoField.DAY_OF_MONTH, lengthOfMonth); end = end.plus(7 - end.get(ChronoField.DAY_OF_WEEK), ChronoUnit.DAYS); // Back up ...
static <C extends Chrono<C>> void function(ChronoLocalDate<C> date, PrintStream out) { int lengthOfMonth = date.lengthOfMonth(); ChronoLocalDate<C> end = date.with(ChronoField.DAY_OF_MONTH, lengthOfMonth); end = end.plus(7 - end.get(ChronoField.DAY_OF_WEEK), ChronoUnit.DAYS); ChronoLocalDate<C> start = date.with(Chrono...
/** * Print a month calendar with complete week rows. * * @param date A date in some calendar * @param out a PrintStream */
Print a month calendar with complete week rows
printMonthCal
{ "repo_name": "m-m-m/java8-backports", "path": "mmm-util-backport-java.time/src/test/java/javax/time/UsabilityChrono.java", "license": "apache-2.0", "size": 7487 }
[ "java.io.PrintStream", "java.time.calendrical.ChronoField", "java.time.calendrical.ChronoUnit", "java.time.chrono.Chrono", "java.time.chrono.ChronoLocalDate" ]
import java.io.PrintStream; import java.time.calendrical.ChronoField; import java.time.calendrical.ChronoUnit; import java.time.chrono.Chrono; import java.time.chrono.ChronoLocalDate;
import java.io.*; import java.time.calendrical.*; import java.time.chrono.*;
[ "java.io", "java.time" ]
java.io; java.time;
1,351,372
@Test public void changePasswordRequestSuccessTest() throws Exception { final CreateApplicationSessionRequest createApplicationSesstion = createApplicationSesstionWithRoleAnonymous(); final RegisterUserRequest serviceRequest = new RegisterUserRequest(); serviceRequest.setCountry("Sweden"); serviceRequest....
void function() throws Exception { final CreateApplicationSessionRequest createApplicationSesstion = createApplicationSesstionWithRoleAnonymous(); final RegisterUserRequest serviceRequest = new RegisterUserRequest(); serviceRequest.setCountry(STR); serviceRequest.setUsername(UUID.randomUUID().toString()); serviceReques...
/** * Serviceset google authenticator credential request success test. * * @throws Exception the exception */
Serviceset google authenticator credential request success test
changePasswordRequestSuccessTest
{ "repo_name": "Hack23/cia", "path": "service.impl/src/test/java/com/hack23/cia/service/impl/action/user/ChangePasswordServiceITest.java", "license": "apache-2.0", "size": 16054 }
[ "com.hack23.cia.model.internal.application.user.impl.UserAccount", "com.hack23.cia.model.internal.application.user.impl.UserType", "com.hack23.cia.service.api.DataContainer", "com.hack23.cia.service.api.action.application.CreateApplicationSessionRequest", "com.hack23.cia.service.api.action.application.Login...
import com.hack23.cia.model.internal.application.user.impl.UserAccount; import com.hack23.cia.model.internal.application.user.impl.UserType; import com.hack23.cia.service.api.DataContainer; import com.hack23.cia.service.api.action.application.CreateApplicationSessionRequest; import com.hack23.cia.service.api.action.app...
import com.hack23.cia.model.internal.application.user.impl.*; import com.hack23.cia.service.api.*; import com.hack23.cia.service.api.action.application.*; import com.hack23.cia.service.api.action.common.*; import com.hack23.cia.service.api.action.user.*; import java.util.*;
[ "com.hack23.cia", "java.util" ]
com.hack23.cia; java.util;
1,344,564
public static AbstractAuditLogger newJMSInstance(boolean transacted, ConnectionFactory connFactory, Queue queue) { AsyncAuditLogProducer logger = new AsyncAuditLogProducer(); logger.setTransacted(transacted); logger.setConnectionFactory(connFactory); logger.setQueue(queue); ...
static AbstractAuditLogger function(boolean transacted, ConnectionFactory connFactory, Queue queue) { AsyncAuditLogProducer logger = new AsyncAuditLogProducer(); logger.setTransacted(transacted); logger.setConnectionFactory(connFactory); logger.setQueue(queue); return logger; }
/** * Creates new instance of JMS audit logger based on given connection factory and queue. * NOTE: this will build the logger but it is not registered directly on a session: once received, * it will need to be registered as an event listener * @param transacted determines if JMS session is transac...
Creates new instance of JMS audit logger based on given connection factory and queue. it will need to be registered as an event listener
newJMSInstance
{ "repo_name": "jesuino/jbpm", "path": "jbpm-audit/src/main/java/org/jbpm/process/audit/AuditLoggerFactory.java", "license": "apache-2.0", "size": 9790 }
[ "javax.jms.ConnectionFactory", "javax.jms.Queue", "org.jbpm.process.audit.jms.AsyncAuditLogProducer" ]
import javax.jms.ConnectionFactory; import javax.jms.Queue; import org.jbpm.process.audit.jms.AsyncAuditLogProducer;
import javax.jms.*; import org.jbpm.process.audit.jms.*;
[ "javax.jms", "org.jbpm.process" ]
javax.jms; org.jbpm.process;
2,549,619
protected void beforeReload(int index, Component component) { // overwrite in subclasses }
void function(int index, Component component) { }
/** * Callback method that is called before a tab is reloaded - use this to make * sure the correct data is available in the tab * * @param index the index of the selected tab * @param component */
Callback method that is called before a tab is reloaded - use this to make sure the correct data is available in the tab
beforeReload
{ "repo_name": "opencirclesolutions/dynamo", "path": "dynamo-frontend/src/main/java/com/ocs/dynamo/ui/composite/layout/TabLayout.java", "license": "apache-2.0", "size": 6357 }
[ "com.vaadin.flow.component.Component" ]
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.*;
[ "com.vaadin.flow" ]
com.vaadin.flow;
2,702,157
public Map<String, String> getAnswers() { return mAnswers; }
Map<String, String> function() { return mAnswers; }
/** * Returns the map of answers. * @return Answer Map */
Returns the map of answers
getAnswers
{ "repo_name": "claydiffrient/classroom-questions", "path": "src/main/java/com/simplydiffrient/ClassroomQuestions/service/QuestionMessage.java", "license": "mit", "size": 3284 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
210,480
@Generated @Selector("vertexCount") @NUInt public native long vertexCount();
@Selector(STR) native long function();
/** * [@property] vertexCount * <p> * Number of vertices in the vertexBuffers. */
[@property] vertexCount Number of vertices in the vertexBuffers
vertexCount
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/metalkit/MTKMesh.java", "license": "apache-2.0", "size": 9901 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
689,668
public BigDecimal getTradingFee() { return tradingFee; }
BigDecimal function() { return tradingFee; }
/** * Returns the current trading fee * * @return The trading fee */
Returns the current trading fee
getTradingFee
{ "repo_name": "stachon/XChange", "path": "xchange-core/src/main/java/org/knowm/xchange/dto/account/AccountInfo.java", "license": "mit", "size": 6479 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,830,111
@Deprecated public static void startImport(final FileObject buildXML, final String src) { if (src != null) { final Properties p = createProjectAntProperties(); final String dest = FileUtil.toFile(buildXML.getParent()).getAbsolutePath(); p.put(IMPORT_DEST, dest); ...
static void function(final FileObject buildXML, final String src) { if (src != null) { final Properties p = createProjectAntProperties(); final String dest = FileUtil.toFile(buildXML.getParent()).getAbsolutePath(); p.put(IMPORT_DEST, dest); p.put(IMPORT_SOURCE, src); if (log.isDebugEnabled()) { log.debug(STR + ANT_TARG...
/** * DOCUMENT ME! * * @param buildXML DOCUMENT ME! * @param src DOCUMENT ME! */
DOCUMENT ME
startImport
{ "repo_name": "cismet/jpresso", "path": "jpresso-project/src/main/java/de/cismet/jpresso/project/filetypes/AntHandler.java", "license": "lgpl-3.0", "size": 16997 }
[ "java.io.IOException", "java.util.Properties", "org.apache.tools.ant.module.api.support.ActionUtils", "org.openide.ErrorManager", "org.openide.filesystems.FileObject", "org.openide.filesystems.FileUtil" ]
import java.io.IOException; import java.util.Properties; import org.apache.tools.ant.module.api.support.ActionUtils; import org.openide.ErrorManager; import org.openide.filesystems.FileObject; import org.openide.filesystems.FileUtil;
import java.io.*; import java.util.*; import org.apache.tools.ant.module.api.support.*; import org.openide.*; import org.openide.filesystems.*;
[ "java.io", "java.util", "org.apache.tools", "org.openide", "org.openide.filesystems" ]
java.io; java.util; org.apache.tools; org.openide; org.openide.filesystems;
1,198,317
protected void writeLogChannelInformation() throws KettleException { Database db = null; ChannelLogTable channelLogTable = transMeta.getChannelLogTable(); // PDI-7070: If parent trans or job has the same channel logging info, don't duplicate log entries Trans t = getParentTrans(); if ( t != null ...
void function() throws KettleException { Database db = null; ChannelLogTable channelLogTable = transMeta.getChannelLogTable(); Trans t = getParentTrans(); if ( t != null ) { if ( channelLogTable.equals( t.getTransMeta().getChannelLogTable() ) ) { return; } } Job j = getParentJob(); if ( j != null ) { if ( channelLogTab...
/** * Writes log channel information to a channel logging table (if one has been configured). * * @throws KettleException * if any errors occur during logging */
Writes log channel information to a channel logging table (if one has been configured)
writeLogChannelInformation
{ "repo_name": "ViswesvarSekar/pentaho-kettle", "path": "engine/src/org/pentaho/di/trans/Trans.java", "license": "apache-2.0", "size": 197991 }
[ "java.util.List", "org.pentaho.di.core.database.Database", "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.core.logging.ChannelLogTable", "org.pentaho.di.core.logging.LogStatus", "org.pentaho.di.core.logging.LoggingHierarchy", "org.pentaho.di.i18n.BaseMessages", "org.pentaho.di.job.Jo...
import java.util.List; import org.pentaho.di.core.database.Database; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.logging.ChannelLogTable; import org.pentaho.di.core.logging.LogStatus; import org.pentaho.di.core.logging.LoggingHierarchy; import org.pentaho.di.i18n.BaseMessages; impor...
import java.util.*; import org.pentaho.di.core.database.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.core.logging.*; import org.pentaho.di.i18n.*; import org.pentaho.di.job.*;
[ "java.util", "org.pentaho.di" ]
java.util; org.pentaho.di;
1,525,962
public BigDecimal getGoalPerformance(); public static final String COLUMNNAME_IsActive = "IsActive";
BigDecimal function(); public static final String COLUMNNAME_IsActive = STR;
/** Get Performance Goal. * Target achievement from 0..1 */
Get Performance Goal. Target achievement from 0..1
getGoalPerformance
{ "repo_name": "geneos/adempiere", "path": "base/src/org/compiere/model/I_PA_Goal.java", "license": "gpl-2.0", "size": 10591 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,144,299
public static void prepareTimeStrings(long t, StringBuilder year, StringBuilder month, StringBuilder day, StringBuilder hour, StringBuilder minute, StringBuilder second) { Date date = new Date(t*1000L); Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.ge...
static void function(long t, StringBuilder year, StringBuilder month, StringBuilder day, StringBuilder hour, StringBuilder minute, StringBuilder second) { Date date = new Date(t*1000L); Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone(PluginState.getPlugin().getConfig().getString(ST...
/** * Prepare time strings. * @param t The unix time in seconds to set the strings to. * @param year The year representing the time. * @param month The month representing the time. * @param day The day representing the time. * @param hour The hour representing the time. * @param minut...
Prepare time strings
prepareTimeStrings
{ "repo_name": "Beskhue/CustomHardcore", "path": "src/main/java/org/kepow/customhardcore/Utils.java", "license": "lgpl-2.1", "size": 11813 }
[ "java.util.Calendar", "java.util.Date", "java.util.TimeZone" ]
import java.util.Calendar; import java.util.Date; import java.util.TimeZone;
import java.util.*;
[ "java.util" ]
java.util;
351,325
public void setRequestedBy(ScreeningRoomUser requestedBy) { _requestedBy = requestedBy; }
void function(ScreeningRoomUser requestedBy) { _requestedBy = requestedBy; }
/** * Set the user that requested the cherry pick. * @param requestedBy the new user that requested the cherry pick */
Set the user that requested the cherry pick
setRequestedBy
{ "repo_name": "hmsiccbl/screensaver", "path": "core/src/main/java/edu/harvard/med/screensaver/model/cherrypicks/CherryPickRequest.java", "license": "gpl-2.0", "size": 32176 }
[ "edu.harvard.med.screensaver.model.users.ScreeningRoomUser" ]
import edu.harvard.med.screensaver.model.users.ScreeningRoomUser;
import edu.harvard.med.screensaver.model.users.*;
[ "edu.harvard.med" ]
edu.harvard.med;
925,705
protected static String getMifName(String fName) throws FileNotFoundException { int ext = fName.lastIndexOf("."); if (ext > 0) { String theExt = fName.substring(ext + 1).toLowerCase(); if (!(theExt.equals("mif"))) { throw new FileNotFoundException( ...
static String function(String fName) throws FileNotFoundException { int ext = fName.lastIndexOf("."); if (ext > 0) { String theExt = fName.substring(ext + 1).toLowerCase(); if (!(theExt.equals("mif"))) { throw new FileNotFoundException( STR); } fName = fName.substring(0, ext); } return fName; }
/** * Returns the name of a .mif file without extension * * @param fName The file name, possibly with .mif extension * * @return The name with no extension * * @throws FileNotFoundException if extension was other than "mif" */
Returns the name of a .mif file without extension
getMifName
{ "repo_name": "pgiraud/georchestra", "path": "gt-mif/src/main/java/org/geotools/data/mif/MIFFile.java", "license": "gpl-3.0", "size": 71802 }
[ "java.io.FileNotFoundException" ]
import java.io.FileNotFoundException;
import java.io.*;
[ "java.io" ]
java.io;
793,759
protected void drawItemLabel(Graphics2D g2, CategoryDataset data, int row, int column, CategoryPlot plot, CategoryItemLabelGenerator generator, ...
void function(Graphics2D g2, CategoryDataset data, int row, int column, CategoryPlot plot, CategoryItemLabelGenerator generator, Rectangle2D bar, boolean negative) { String label = generator.generateLabel(data, row, column); if (label == null) { return; } Font labelFont = getItemLabelFont(row, column); g2.setFont(label...
/** * Draws an item label. This method is overridden so that the bar can be * used to calculate the label anchor point. * * @param g2 the graphics device. * @param data the dataset. * @param row the row. * @param column the column. * @param plot the plot. * @p...
Draws an item label. This method is overridden so that the bar can be used to calculate the label anchor point
drawItemLabel
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/main/java/org/jfree/chart/renderer/category/BarRenderer.java", "license": "lgpl-2.1", "size": 50496 }
[ "java.awt.Font", "java.awt.Graphics2D", "java.awt.Paint", "java.awt.Shape", "java.awt.geom.Point2D", "java.awt.geom.Rectangle2D", "org.jfree.chart.labels.CategoryItemLabelGenerator", "org.jfree.chart.labels.ItemLabelPosition", "org.jfree.chart.plot.CategoryPlot", "org.jfree.chart.text.TextUtilitie...
import java.awt.Font; import java.awt.Graphics2D; import java.awt.Paint; import java.awt.Shape; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; import org.jfree.chart.labels.CategoryItemLabelGenerator; import org.jfree.chart.labels.ItemLabelPosition; import org.jfree.chart.plot.CategoryPlot; import org....
import java.awt.*; import java.awt.geom.*; import org.jfree.chart.labels.*; import org.jfree.chart.plot.*; import org.jfree.chart.text.*; import org.jfree.data.category.*;
[ "java.awt", "org.jfree.chart", "org.jfree.data" ]
java.awt; org.jfree.chart; org.jfree.data;
1,662,111
public void write(byte[] buffer) { if (DEBUG) Log.d(TAG, "RGBControl, BluetoothService() ConnectedThread() write()"); try { mmOutStream.write(buffer); } catch (IOException e) { Log.e(TAG, "Exception during write", e); } }
void function(byte[] buffer) { if (DEBUG) Log.d(TAG, STR); try { mmOutStream.write(buffer); } catch (IOException e) { Log.e(TAG, STR, e); } }
/** * Write to the connected OutStream. * * @param buffer The bytes to write */
Write to the connected OutStream
write
{ "repo_name": "sarweshkumar47/RGB-LED-Control-through-Intel-Edison-using-Android-Smartphone-Gesture-Tilt", "path": "BTRGBControl/app/src/main/java/com/bluetooth/rgbcontrol/BluetoothService.java", "license": "gpl-2.0", "size": 13226 }
[ "android.util.Log", "java.io.IOException" ]
import android.util.Log; import java.io.IOException;
import android.util.*; import java.io.*;
[ "android.util", "java.io" ]
android.util; java.io;
1,698,496
@Test public void testDecrypt128() { Rijndael r = new Rijndael(16, 16); byte[] key = Base16.decode(KEY128); byte[] want = Base16.decode(CLEAR128X2); byte[] have = Base16.decode(ECB128X2); r.setKey(key); r.decryptEcb(have); assertArrayEquals(want, have);...
void function() { Rijndael r = new Rijndael(16, 16); byte[] key = Base16.decode(KEY128); byte[] want = Base16.decode(CLEAR128X2); byte[] have = Base16.decode(ECB128X2); r.setKey(key); r.decryptEcb(have); assertArrayEquals(want, have); } private static final String KEY192 = STR + STR + STR; private static final String C...
/** * decrypt two 128 bit blocks with a 128 bit key, ECB mode */
decrypt two 128 bit blocks with a 128 bit key, ECB mode
testDecrypt128
{ "repo_name": "sarah-happy/happy-archive", "path": "archive/src/main/java/org/yi/happy/crypt/RijndaelTest.java", "license": "apache-2.0", "size": 7088 }
[ "org.yi.happy.archive.Base16" ]
import org.yi.happy.archive.Base16;
import org.yi.happy.archive.*;
[ "org.yi.happy" ]
org.yi.happy;
2,717,722
@Test public void testToUserInheritedVO() { Assert.fail("Test 'UserDaoTransformTest.testToUserInheritedVO' not implemented!"); }
void function() { Assert.fail(STR); }
/** * Test for method UserDao.toUserInheritedVO * * @see org.phoenixctms.ctsms.domain.UserDao#toUserInheritedVO(org.phoenixctms.ctsms.domain.User source, org.phoenixctms.ctsms.vo.UserInheritedVO target) */
Test for method UserDao.toUserInheritedVO
testToUserInheritedVO
{ "repo_name": "phoenixctms/ctsms", "path": "core/src/test/java/org/phoenixctms/ctsms/domain/test/UserDaoTransformTest.java", "license": "lgpl-2.1", "size": 3365 }
[ "org.testng.Assert" ]
import org.testng.Assert;
import org.testng.*;
[ "org.testng" ]
org.testng;
1,625,031
public void removeDumpListener ( DumpListener listener ) { dumpEventSupport.removeDumpListener ( listener ); }
void function ( DumpListener listener ) { dumpEventSupport.removeDumpListener ( listener ); }
/** * Removes a listener * * @param listener */
Removes a listener
removeDumpListener
{ "repo_name": "Esleelkartea/aonGTA", "path": "aongta_v1.0.0_src/Fuentes y JavaDoc/aon-db-dumper/src/com/code/aon/dbdumper/Dumper.java", "license": "gpl-2.0", "size": 7112 }
[ "com.code.aon.dbdumper.event.DumpListener" ]
import com.code.aon.dbdumper.event.DumpListener;
import com.code.aon.dbdumper.event.*;
[ "com.code.aon" ]
com.code.aon;
2,826,865
public ConfigureDaemons withOpts(Daemon daemon, String opts) { args.add("--" + StringUtils.lowerCase(daemon.name()) + "-opts=\"" + opts + "\""); return this; }
ConfigureDaemons function(Daemon daemon, String opts) { args.add("--" + StringUtils.lowerCase(daemon.name()) + STRSTR\""); return this; }
/** * Specify additional Java opts to be included when the daemon starts. * @param daemon The daemon to add opts to. * @param opts Additional Java command line arguments. * @return A reference to this updated object so that method calls can be chained * together. */
Specify additional Java opts to be included when the daemon starts
withOpts
{ "repo_name": "flofreud/aws-sdk-java", "path": "aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/BootstrapActions.java", "license": "apache-2.0", "size": 8686 }
[ "com.amazonaws.util.StringUtils" ]
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.*;
[ "com.amazonaws.util" ]
com.amazonaws.util;
1,235,007
@Override public JComponent createComponent(Object source, Map<String, Object> context) { ThreadContext.push("createComponent"); try { return new ThermostatPanel( (ThermostatModel) source, (ScreenDescriptor) context.get("screen descriptor"),...
JComponent function(Object source, Map<String, Object> context) { ThreadContext.push(STR); try { return new ThermostatPanel( (ThermostatModel) source, (ScreenDescriptor) context.get(STR), (Scheduler) context.get(STR), defaultUnit); } finally { ThreadContext.pop(); } }
/** * Create a panel representing a thermostat. */
Create a panel representing a thermostat
createComponent
{ "repo_name": "home-climate-control/dz", "path": "dz3-swing/src/main/java/net/sf/dz3/view/swing/thermostat/ThermostatFactory.java", "license": "gpl-3.0", "size": 1422 }
[ "java.util.Map", "javax.swing.JComponent", "net.sf.dz3.device.model.impl.ThermostatModel", "net.sf.dz3.scheduler.Scheduler", "net.sf.dz3.view.swing.ScreenDescriptor", "org.apache.logging.log4j.ThreadContext" ]
import java.util.Map; import javax.swing.JComponent; import net.sf.dz3.device.model.impl.ThermostatModel; import net.sf.dz3.scheduler.Scheduler; import net.sf.dz3.view.swing.ScreenDescriptor; import org.apache.logging.log4j.ThreadContext;
import java.util.*; import javax.swing.*; import net.sf.dz3.device.model.impl.*; import net.sf.dz3.scheduler.*; import net.sf.dz3.view.swing.*; import org.apache.logging.log4j.*;
[ "java.util", "javax.swing", "net.sf.dz3", "org.apache.logging" ]
java.util; javax.swing; net.sf.dz3; org.apache.logging;
1,192,137
public void envConfigUpdate(DbConfigManager configMgr) throws DatabaseException { LockInfo.setDeadlockStackTrace(configMgr.getBoolean (EnvironmentParams.TXN_DEADLOCK_STACK_TRACE)); setLockTableDump(configMgr.getBoolean (EnvironmentParams.TXN_DUMPLOCKS)); }
void function(DbConfigManager configMgr) throws DatabaseException { LockInfo.setDeadlockStackTrace(configMgr.getBoolean (EnvironmentParams.TXN_DEADLOCK_STACK_TRACE)); setLockTableDump(configMgr.getBoolean (EnvironmentParams.TXN_DUMPLOCKS)); }
/** * Process notifications of mutable property changes. */
Process notifications of mutable property changes
envConfigUpdate
{ "repo_name": "nologic/nabs", "path": "client/trunk/shared/libraries/je-3.2.74/src/com/sleepycat/je/txn/LockManager.java", "license": "gpl-2.0", "size": 32638 }
[ "com.sleepycat.je.DatabaseException", "com.sleepycat.je.config.EnvironmentParams", "com.sleepycat.je.dbi.DbConfigManager" ]
import com.sleepycat.je.DatabaseException; import com.sleepycat.je.config.EnvironmentParams; import com.sleepycat.je.dbi.DbConfigManager;
import com.sleepycat.je.*; import com.sleepycat.je.config.*; import com.sleepycat.je.dbi.*;
[ "com.sleepycat.je" ]
com.sleepycat.je;
1,798,708
public int compactHashTable() throws HyracksDataException { if (table.isGarbageCollectionNeeded()) { return table.collectGarbage(tupleAccessor, tpcBuild); } return -1; }
int function() throws HyracksDataException { if (table.isGarbageCollectionNeeded()) { return table.collectGarbage(tupleAccessor, tpcBuild); } return -1; }
/** * Tries to compact the table to make some space. * * @return the number of frames that have been reclaimed. If no compaction has happened, the value -1 is returned. */
Tries to compact the table to make some space
compactHashTable
{ "repo_name": "ecarm002/incubator-asterixdb", "path": "hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/join/InMemoryHashJoin.java", "license": "apache-2.0", "size": 10747 }
[ "org.apache.hyracks.api.exceptions.HyracksDataException" ]
import org.apache.hyracks.api.exceptions.HyracksDataException;
import org.apache.hyracks.api.exceptions.*;
[ "org.apache.hyracks" ]
org.apache.hyracks;
1,678,167
protected MouseAdapter createMouseListener() { if (mouseListener == null) { mouseListener = new MouseButtonListener(); } return mouseListener; }
MouseAdapter function() { if (mouseListener == null) { mouseListener = new MouseButtonListener(); } return mouseListener; }
/** * DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
createMouseListener
{ "repo_name": "khuxtable/seaglass", "path": "src/main/java/com/seaglasslookandfeel/ui/SeaGlassTextFieldUI.java", "license": "apache-2.0", "size": 29458 }
[ "java.awt.event.MouseAdapter" ]
import java.awt.event.MouseAdapter;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
719,151
public static Icon getDefaultCloseOverIcon() { return createIcon(DEFAULT_CLOSE_OVER_PATH); }
static Icon function() { return createIcon(DEFAULT_CLOSE_OVER_PATH); }
/** * Returns the default close_over icon to use for tiny window dialog. * * @return See above. */
Returns the default close_over icon to use for tiny window dialog
getDefaultCloseOverIcon
{ "repo_name": "simleo/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/ui/IconManager.java", "license": "gpl-2.0", "size": 15395 }
[ "javax.swing.Icon" ]
import javax.swing.Icon;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,429,152
public World getWorld() { return world; }
World function() { return world; }
/** * returns the world. * * @return */
returns the world
getWorld
{ "repo_name": "rkum99/windroid", "path": "src/de/macsystems/windroid/parser/StationHandler.java", "license": "gpl-3.0", "size": 6452 }
[ "de.macsystems.windroid.identifyable.World" ]
import de.macsystems.windroid.identifyable.World;
import de.macsystems.windroid.identifyable.*;
[ "de.macsystems.windroid" ]
de.macsystems.windroid;
2,301,545
protected List<String> getMappedKeys(List<String> predicateFields) { List<String> mappedKeys = new ArrayList<String>(predicateFields.size()); for (int i = 0; i < predicateFields.size(); i++) { mappedKeys.add(colNameMap.get(predicateFields.get(i))); } ...
List<String> function(List<String> predicateFields) { List<String> mappedKeys = new ArrayList<String>(predicateFields.size()); for (int i = 0; i < predicateFields.size(); i++) { mappedKeys.add(colNameMap.get(predicateFields.get(i))); } return mappedKeys; }
/** * The partition keys in the argument are as reported by * {@link LoadMetadata#getPartitionKeys(String, org.apache.hadoop.conf.Configuration)}. * The user may have renamed these by providing a schema with different names * in the load statement - this method will replace the forme...
The partition keys in the argument are as reported by <code>LoadMetadata#getPartitionKeys(String, org.apache.hadoop.conf.Configuration)</code>. The user may have renamed these by providing a schema with different names in the load statement - this method will replace the former names with the latter names
getMappedKeys
{ "repo_name": "apache/pig", "path": "src/org/apache/pig/newplan/logical/rules/PredicatePushdownOptimizer.java", "license": "apache-2.0", "size": 8994 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,309,836
Flowable<DebugInfoEntry> debugInfoEntries(InternalActionContext ac);
Flowable<DebugInfoEntry> debugInfoEntries(InternalActionContext ac);
/** * Handler which processes the provider. * * @param ac * @return */
Handler which processes the provider
debugInfoEntries
{ "repo_name": "gentics/mesh", "path": "core/src/main/java/com/gentics/mesh/core/endpoint/admin/debuginfo/DebugInfoProvider.java", "license": "apache-2.0", "size": 469 }
[ "com.gentics.mesh.context.InternalActionContext", "io.reactivex.Flowable" ]
import com.gentics.mesh.context.InternalActionContext; import io.reactivex.Flowable;
import com.gentics.mesh.context.*; import io.reactivex.*;
[ "com.gentics.mesh", "io.reactivex" ]
com.gentics.mesh; io.reactivex;
230,754
public List<Integer> getNeighbors(int v) { return new ArrayList<Integer>(adjListsMap.get(v)); }
List<Integer> function(int v) { return new ArrayList<Integer>(adjListsMap.get(v)); }
/** * Implement the abstract method for finding all out-neighbors of a vertex. * If there are multiple edges between the vertex and one of its * out-neighbors, this neighbor appears once in the list for each of these * edges. * * @param v the index of vertex. * @return List<Int...
Implement the abstract method for finding all out-neighbors of a vertex. If there are multiple edges between the vertex and one of its out-neighbors, this neighbor appears once in the list for each of these edges
getNeighbors
{ "repo_name": "HilaryBrobbey/UCSDGraphs", "path": "src/basicgraph/GraphAdjList.java", "license": "apache-2.0", "size": 3807 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,381,734
int parseAndConfigure(int count, TestElement el);
int parseAndConfigure(int count, TestElement el);
/** * the method will parse the given number of lines. Pass "-1" to parse the * entire file. If the end of the file is reached without parsing a line, a * 0 is returned. If the method is subsequently called again, it will * restart parsing at the beginning. * * @param count max lines to pa...
the method will parse the given number of lines. Pass "-1" to parse the entire file. If the end of the file is reached without parsing a line, a 0 is returned. If the method is subsequently called again, it will restart parsing at the beginning
parseAndConfigure
{ "repo_name": "benbenw/jmeter", "path": "src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/accesslog/LogParser.java", "license": "apache-2.0", "size": 2796 }
[ "org.apache.jmeter.testelement.TestElement" ]
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.testelement.*;
[ "org.apache.jmeter" ]
org.apache.jmeter;
610,061
default SlashCommandInteraction getSlashCommandInteraction() { return getInteraction().asSlashCommandInteraction().get(); }
default SlashCommandInteraction getSlashCommandInteraction() { return getInteraction().asSlashCommandInteraction().get(); }
/** * Gets the created interaction as SlashCommandInteraction, if the interaction is of this type. * * @return The interaction. */
Gets the created interaction as SlashCommandInteraction, if the interaction is of this type
getSlashCommandInteraction
{ "repo_name": "BtoBastian/Javacord", "path": "javacord-api/src/main/java/org/javacord/api/event/interaction/SlashCommandCreateEvent.java", "license": "lgpl-3.0", "size": 1197 }
[ "org.javacord.api.interaction.SlashCommandInteraction" ]
import org.javacord.api.interaction.SlashCommandInteraction;
import org.javacord.api.interaction.*;
[ "org.javacord.api" ]
org.javacord.api;
1,254,947
public static boolean validateDischargeSummaryTemplateId(DischargeSummary dischargeSummary, DiagnosticChain diagnostics, Map<Object, Object> context) { if (VALIDATE_DISCHARGE_SUMMARY_TEMPLATE_ID__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) { OCL.Helper helper = EOCL_ENV.createOCLHelper(); helper.setContext(I...
static boolean function(DischargeSummary dischargeSummary, DiagnosticChain diagnostics, Map<Object, Object> context) { if (VALIDATE_DISCHARGE_SUMMARY_TEMPLATE_ID__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) { OCL.Helper helper = EOCL_ENV.createOCLHelper(); helper.setContext(IHEPackage.Literals.DISCHARGE_SUMMARY); try { VAL...
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * self.templateId->exists(id : datatypes::II | id.root = '1.3.6.1.4.1.19376.1.5.3.1.1.4') * @param dischargeSummary The receiving '<em><b>Discharge Summary</b></em>' model object. * @param diagnostics The chain of diagnos...
self.templateId->exists(id : datatypes::II | id.root = '1.3.6.1.4.1.19376.1.5.3.1.1.4')
validateDischargeSummaryTemplateId
{ "repo_name": "drbgfc/mdht", "path": "cda/deprecated/org.openhealthtools.mdht.uml.cda.ihe/src/org/openhealthtools/mdht/uml/cda/ihe/operations/DischargeSummaryOperations.java", "license": "epl-1.0", "size": 13390 }
[ "java.util.Map", "org.eclipse.emf.common.util.BasicDiagnostic", "org.eclipse.emf.common.util.Diagnostic", "org.eclipse.emf.common.util.DiagnosticChain", "org.eclipse.ocl.ParserException", "org.eclipse.ocl.ecore.Constraint", "org.openhealthtools.mdht.uml.cda.ihe.DischargeSummary", "org.openhealthtools....
import java.util.Map; import org.eclipse.emf.common.util.BasicDiagnostic; import org.eclipse.emf.common.util.Diagnostic; import org.eclipse.emf.common.util.DiagnosticChain; import org.eclipse.ocl.ParserException; import org.eclipse.ocl.ecore.Constraint; import org.openhealthtools.mdht.uml.cda.ihe.DischargeSummary; impo...
import java.util.*; import org.eclipse.emf.common.util.*; import org.eclipse.ocl.*; import org.eclipse.ocl.ecore.*; import org.openhealthtools.mdht.uml.cda.ihe.*; import org.openhealthtools.mdht.uml.cda.ihe.util.*;
[ "java.util", "org.eclipse.emf", "org.eclipse.ocl", "org.openhealthtools.mdht" ]
java.util; org.eclipse.emf; org.eclipse.ocl; org.openhealthtools.mdht;
529,280
public static String getTableId(Key k) { requireNonNull(k); return k.getColumnQualifier().toString(); } /** * Extract the file name from the row suffix into the given {@link Text}
static String function(Key k) { requireNonNull(k); return k.getColumnQualifier().toString(); } /** * Extract the file name from the row suffix into the given {@link Text}
/** * Extract the table ID from the key (inefficiently if called repeatedly) * * @param k * Key to extract from * @return The table ID */
Extract the table ID from the key (inefficiently if called repeatedly)
getTableId
{ "repo_name": "dhutchis/accumulo", "path": "core/src/main/java/org/apache/accumulo/core/replication/ReplicationSchema.java", "license": "apache-2.0", "size": 9114 }
[ "java.util.Objects", "org.apache.accumulo.core.data.Key", "org.apache.hadoop.io.Text" ]
import java.util.Objects; import org.apache.accumulo.core.data.Key; import org.apache.hadoop.io.Text;
import java.util.*; import org.apache.accumulo.core.data.*; import org.apache.hadoop.io.*;
[ "java.util", "org.apache.accumulo", "org.apache.hadoop" ]
java.util; org.apache.accumulo; org.apache.hadoop;
311,970
public static Mutation getPutOnlyTableHeaderRow(List<Mutation> tableMetaData) { for (Mutation m : tableMetaData) { if (m instanceof Put) { return m; } } throw new IllegalStateException("No table header row found in table meatadata"); }
static Mutation function(List<Mutation> tableMetaData) { for (Mutation m : tableMetaData) { if (m instanceof Put) { return m; } } throw new IllegalStateException(STR); }
/** * Returns the first Put element in <code>tableMetaData</code>. There could be leading Delete elements before the * table header row */
Returns the first Put element in <code>tableMetaData</code>. There could be leading Delete elements before the table header row
getPutOnlyTableHeaderRow
{ "repo_name": "jffnothing/phoenix-4.0.0-incubating", "path": "phoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java", "license": "apache-2.0", "size": 13974 }
[ "java.util.List", "org.apache.hadoop.hbase.client.Mutation", "org.apache.hadoop.hbase.client.Put" ]
import java.util.List; import org.apache.hadoop.hbase.client.Mutation; import org.apache.hadoop.hbase.client.Put;
import java.util.*; import org.apache.hadoop.hbase.client.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,240,821
public void setGraphBuildingBlacklist(final FunctionBlacklistQuery graphBuildingBlacklist) { put(GRAPH_BUILDING_BLACKLIST, graphBuildingBlacklist); }
void function(final FunctionBlacklistQuery graphBuildingBlacklist) { put(GRAPH_BUILDING_BLACKLIST, graphBuildingBlacklist); }
/** * Sets the function blacklist to be used during graph building. Graphs should not be built containing any items that are currently on the blacklist. * * @param graphBuildingBlacklist interface to the blacklist to use, not null */
Sets the function blacklist to be used during graph building. Graphs should not be built containing any items that are currently on the blacklist
setGraphBuildingBlacklist
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Engine/src/main/java/com/opengamma/engine/function/FunctionCompilationContext.java", "license": "apache-2.0", "size": 13824 }
[ "com.opengamma.engine.function.blacklist.FunctionBlacklistQuery" ]
import com.opengamma.engine.function.blacklist.FunctionBlacklistQuery;
import com.opengamma.engine.function.blacklist.*;
[ "com.opengamma.engine" ]
com.opengamma.engine;
610,099
public List<String> communityPrefixes() { return this.communityPrefixes; }
List<String> function() { return this.communityPrefixes; }
/** * Get the prefixes that the bgp community contains. * * @return the communityPrefixes value */
Get the prefixes that the bgp community contains
communityPrefixes
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/BGPCommunity.java", "license": "mit", "size": 5049 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
194,192
private void initEventTypes(IoEventType... eventTypes) { if ((eventTypes == null) || (eventTypes.length == 0)) { eventTypes = DEFAULT_EVENT_SET; } // Copy the list of handled events in the event set this.eventTypes = EnumSet.of(eventTypes[0], eventTypes); ...
void function(IoEventType... eventTypes) { if ((eventTypes == null) (eventTypes.length == 0)) { eventTypes = DEFAULT_EVENT_SET; } this.eventTypes = EnumSet.of(eventTypes[0], eventTypes); if (this.eventTypes.contains( IoEventType.SESSION_CREATED )) { this.eventTypes = null; throw new IllegalArgumentException(IoEventType...
/** * Create an EnumSet from an array of EventTypes, and set the associated * eventTypes field. * * @param eventTypes The array of handled events */
Create an EnumSet from an array of EventTypes, and set the associated eventTypes field
initEventTypes
{ "repo_name": "sardine/mina-ja", "path": "src/mina-core/src/main/java/org/apache/mina/filter/executor/ExecutorFilter.java", "license": "apache-2.0", "size": 26280 }
[ "java.util.EnumSet", "org.apache.mina.core.session.IoEventType" ]
import java.util.EnumSet; import org.apache.mina.core.session.IoEventType;
import java.util.*; import org.apache.mina.core.session.*;
[ "java.util", "org.apache.mina" ]
java.util; org.apache.mina;
2,616,228
JButton getMonitorCompletionButton() { if (monitorCompletionButton == null) { monitorCompletionButton = new JButton("Track Monitor Completion Status"); monitorCompletionButton.setEnabled(false); monitorCompletionButton.addActionListener(e -> { getControlle...
JButton getMonitorCompletionButton() { if (monitorCompletionButton == null) { monitorCompletionButton = new JButton(STR); monitorCompletionButton.setEnabled(false); monitorCompletionButton.addActionListener(e -> { getController().onMonitorCompletionButtonClicked(); }); } return monitorCompletionButton; }
/** * Creates, caches and returns the Monitor Completion Button * * @return JButton */
Creates, caches and returns the Monitor Completion Button
getMonitorCompletionButton
{ "repo_name": "battjt/iumpr", "path": "src/net/soliddesign/iumpr/ui/UserInterfaceView.java", "license": "mit", "size": 31088 }
[ "javax.swing.JButton" ]
import javax.swing.JButton;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
376,749
public boolean isSinkConnector(String connName) { WorkerConnector workerConnector = connectors.get(connName); if (workerConnector == null) throw new ConnectException("Connector " + connName + " not found in this worker."); ClassLoader savedLoader = plugins.currentThreadLoader();...
boolean function(String connName) { WorkerConnector workerConnector = connectors.get(connName); if (workerConnector == null) throw new ConnectException(STR + connName + STR); ClassLoader savedLoader = plugins.currentThreadLoader(); try { savedLoader = Plugins.compareAndSwapLoaders(workerConnector.loader()); return work...
/** * Return true if the connector associated with this worker is a sink connector. * * @param connName the connector name. * @return true if the connector belongs to the worker and is a sink connector. * @throws ConnectException if the worker does not manage a connector with the given name. ...
Return true if the connector associated with this worker is a sink connector
isSinkConnector
{ "repo_name": "Chasego/kafka", "path": "connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java", "license": "apache-2.0", "size": 56102 }
[ "org.apache.kafka.connect.errors.ConnectException", "org.apache.kafka.connect.runtime.isolation.Plugins" ]
import org.apache.kafka.connect.errors.ConnectException; import org.apache.kafka.connect.runtime.isolation.Plugins;
import org.apache.kafka.connect.errors.*; import org.apache.kafka.connect.runtime.isolation.*;
[ "org.apache.kafka" ]
org.apache.kafka;
2,511,477
private XmlToken getTokenById(String tokenId) { List<XmlToken> tokens = wrapped.getSignatureOrTimestamp(); if (tokens != null) { for (XmlToken token : tokens) { if (tokenId.equals(token.getId())) { return token; } } } return null; }
XmlToken function(String tokenId) { List<XmlToken> tokens = wrapped.getSignatureOrTimestamp(); if (tokens != null) { for (XmlToken token : tokens) { if (tokenId.equals(token.getId())) { return token; } } } return null; }
/** * This method returns a wrapper for the given token id * * @param tokenId * the token id * @return the wrapper for the given token id */
This method returns a wrapper for the given token id
getTokenById
{ "repo_name": "openlimit-signcubes/dss", "path": "dss-simple-report-jaxb/src/main/java/eu/europa/esig/dss/simplereport/SimpleReport.java", "license": "lgpl-2.1", "size": 12053 }
[ "eu.europa.esig.dss.simplereport.jaxb.XmlToken", "java.util.List" ]
import eu.europa.esig.dss.simplereport.jaxb.XmlToken; import java.util.List;
import eu.europa.esig.dss.simplereport.jaxb.*; import java.util.*;
[ "eu.europa.esig", "java.util" ]
eu.europa.esig; java.util;
706,363
@Override public Vec3f getEmbeddedTarget() { return mEmbeddedTarget; }
public Vec3f getEmbeddedTarget() { return mEmbeddedTarget; }
/** * Return whether or not this chain uses an embedded target. * * Embedded target mode may be enabled or disabled using setEmbeddededTargetMode(boolean). * * @return whether or not this chain uses an embedded target. */
Return whether or not this chain uses an embedded target. Embedded target mode may be enabled or disabled using setEmbeddededTargetMode(boolean)
getEmbeddedTargetMode
{ "repo_name": "FedUni/caliko", "path": "caliko/src/main/java/au/edu/federation/caliko/FabrikChain3D.java", "license": "mit", "size": 95654 }
[ "au.edu.federation.utils.Vec3f" ]
import au.edu.federation.utils.Vec3f;
import au.edu.federation.utils.*;
[ "au.edu.federation" ]
au.edu.federation;
434,291
public COSBase getFirstCOSObject();
COSBase function();
/** * Convert this standard java object to a COS object. * * @return The cos object that matches this Java object. */
Convert this standard java object to a COS object
getFirstCOSObject
{ "repo_name": "myrridin/qz-print", "path": "pdfbox_1.8.4_qz/src/org/apache/pdfbox/pdmodel/common/DualCOSObjectable.java", "license": "lgpl-2.1", "size": 1481 }
[ "org.apache.pdfbox.cos.COSBase" ]
import org.apache.pdfbox.cos.COSBase;
import org.apache.pdfbox.cos.*;
[ "org.apache.pdfbox" ]
org.apache.pdfbox;
1,214,037
protected static synchronized void remoteTearDown() { try { if (cache != null && !cache.isClosed()) { // try to destroy the root regions first so that // we clean up any persistent files. for (Iterator itr = cache.rootRegions().iterator(); itr.hasNext();) { Region root = (R...
static synchronized void function() { try { if (cache != null && !cache.isClosed()) { for (Iterator itr = cache.rootRegions().iterator(); itr.hasNext();) { Region root = (Region) itr.next(); if (root.isDestroyed() root instanceof HARegion root instanceof PartitionedRegion) { continue; } try { root.localDestroyRegion(ST...
/** * Local destroy all root regions and close the cache. */
Local destroy all root regions and close the cache
remoteTearDown
{ "repo_name": "PurelyApplied/geode", "path": "geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/fixed/FixedPartitioningTestBase.java", "license": "apache-2.0", "size": 50811 }
[ "java.io.IOException", "java.util.Iterator", "org.apache.geode.SystemFailure", "org.apache.geode.cache.Region", "org.apache.geode.internal.cache.HARegion", "org.apache.geode.internal.cache.PartitionedRegion", "org.apache.geode.test.dunit.LogWriterUtils" ]
import java.io.IOException; import java.util.Iterator; import org.apache.geode.SystemFailure; import org.apache.geode.cache.Region; import org.apache.geode.internal.cache.HARegion; import org.apache.geode.internal.cache.PartitionedRegion; import org.apache.geode.test.dunit.LogWriterUtils;
import java.io.*; import java.util.*; import org.apache.geode.*; import org.apache.geode.cache.*; import org.apache.geode.internal.cache.*; import org.apache.geode.test.dunit.*;
[ "java.io", "java.util", "org.apache.geode" ]
java.io; java.util; org.apache.geode;
1,028,097
private List<TestData> parseAliasesTestData(String syntaxDirectory, String relativeDirectoryName, Pair<Pair<String, String>, Pair<String, String>> ctsData, TestDataConfiguration configuration, ClassLoader classLoader) throws IOException { List<TestData> testDataINAliases = new ArrayList<...
List<TestData> function(String syntaxDirectory, String relativeDirectoryName, Pair<Pair<String, String>, Pair<String, String>> ctsData, TestDataConfiguration configuration, ClassLoader classLoader) throws IOException { List<TestData> testDataINAliases = new ArrayList<>(); Pair<Pair<String, String>, Pair<String, String>...
/** * Parse Alias test data for inputs. * * @param syntaxDirectory the syntax directory from where to read syntax test data (eg "xwiki20" for "xwiki/2.0" * syntax) * @param relativeDirectoryName the name of the relative directory for a CTS test (eg "/simple/bold/bold1") * @param...
Parse Alias test data for inputs
parseAliasesTestData
{ "repo_name": "xwiki/xwiki-rendering", "path": "xwiki-rendering-test/src/main/java/org/xwiki/rendering/test/cts/TestDataParser.java", "license": "lgpl-2.1", "size": 16034 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.commons.lang3.tuple.Pair" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.tuple.Pair;
import java.io.*; import java.util.*; import org.apache.commons.lang3.tuple.*;
[ "java.io", "java.util", "org.apache.commons" ]
java.io; java.util; org.apache.commons;
2,386,062
public NettyChannelBuilder sslContext(SslContext sslContext) { this.sslContext = sslContext; return this; }
NettyChannelBuilder function(SslContext sslContext) { this.sslContext = sslContext; return this; }
/** * SSL/TLS context to use instead of the system default. It must have been configured with {@link * GrpcSslContexts}, but options could have been overridden. */
SSL/TLS context to use instead of the system default. It must have been configured with <code>GrpcSslContexts</code>, but options could have been overridden
sslContext
{ "repo_name": "wrwg/grpc-java", "path": "netty/src/main/java/io/grpc/netty/NettyChannelBuilder.java", "license": "bsd-3-clause", "size": 10229 }
[ "io.netty.handler.ssl.SslContext" ]
import io.netty.handler.ssl.SslContext;
import io.netty.handler.ssl.*;
[ "io.netty.handler" ]
io.netty.handler;
2,433,951
@Test public void testRequiredRegistrationEmailAsUserName() { RealmResource realm = adminClient.realm(bc.consumerRealmName()); RealmRepresentation realmRep = realm.toRepresentation(); updateExecutions(AbstractBrokerTest::enableUpdateProfileOnFirstLogin); realmRep.setRegistration...
void function() { RealmResource realm = adminClient.realm(bc.consumerRealmName()); RealmRepresentation realmRep = realm.toRepresentation(); updateExecutions(AbstractBrokerTest::enableUpdateProfileOnFirstLogin); realmRep.setRegistrationEmailAsUsername(true); realm.update(realmRep); driver.navigate().to(getAccountUrl(get...
/** * Refers to in old test suite: org.keycloak.testsuite.broker.AbstractFirstBrokerLoginTest#testRegistrationWithEmailAsUsername * Refers to in old test suite: org.keycloak.testsuite.broker.AbstractKeycloakIdentityProviderTest#testSuccessfulAuthenticationWithoutUpdateProfile_newUser_emailAsUsername() */
Refers to in old test suite: org.keycloak.testsuite.broker.AbstractFirstBrokerLoginTest#testRegistrationWithEmailAsUsername Refers to in old test suite: org.keycloak.testsuite.broker.AbstractKeycloakIdentityProviderTest#testSuccessfulAuthenticationWithoutUpdateProfile_newUser_emailAsUsername()
testRequiredRegistrationEmailAsUserName
{ "repo_name": "vmuzikar/keycloak", "path": "testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/broker/AbstractFirstBrokerLoginTest.java", "license": "apache-2.0", "size": 47303 }
[ "org.junit.Assert", "org.keycloak.admin.client.resource.RealmResource", "org.keycloak.representations.idm.RealmRepresentation", "org.keycloak.testsuite.Assert", "org.openqa.selenium.NoSuchElementException" ]
import org.junit.Assert; import org.keycloak.admin.client.resource.RealmResource; import org.keycloak.representations.idm.RealmRepresentation; import org.keycloak.testsuite.Assert; import org.openqa.selenium.NoSuchElementException;
import org.junit.*; import org.keycloak.admin.client.resource.*; import org.keycloak.representations.idm.*; import org.keycloak.testsuite.*; import org.openqa.selenium.*;
[ "org.junit", "org.keycloak.admin", "org.keycloak.representations", "org.keycloak.testsuite", "org.openqa.selenium" ]
org.junit; org.keycloak.admin; org.keycloak.representations; org.keycloak.testsuite; org.openqa.selenium;
1,049,722
default void updateCommandStatus(StateContext context, SCMCommand command, Consumer<CommandStatus> cmdStatusUpdater, Logger log) { if (!context.updateCommandStatus(command.getId(), cmdStatusUpdater)) { log.debug("{} with Id:{} not found.", command.getType(), command.getId()); } }
default void updateCommandStatus(StateContext context, SCMCommand command, Consumer<CommandStatus> cmdStatusUpdater, Logger log) { if (!context.updateCommandStatus(command.getId(), cmdStatusUpdater)) { log.debug(STR, command.getType(), command.getId()); } }
/** * Default implementation for updating command status. */
Default implementation for updating command status
updateCommandStatus
{ "repo_name": "xiao-chen/hadoop", "path": "hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/CommandHandler.java", "license": "apache-2.0", "size": 2603 }
[ "java.util.function.Consumer", "org.apache.hadoop.ozone.container.common.statemachine.StateContext", "org.apache.hadoop.ozone.protocol.commands.CommandStatus", "org.apache.hadoop.ozone.protocol.commands.SCMCommand", "org.slf4j.Logger" ]
import java.util.function.Consumer; import org.apache.hadoop.ozone.container.common.statemachine.StateContext; import org.apache.hadoop.ozone.protocol.commands.CommandStatus; import org.apache.hadoop.ozone.protocol.commands.SCMCommand; import org.slf4j.Logger;
import java.util.function.*; import org.apache.hadoop.ozone.container.common.statemachine.*; import org.apache.hadoop.ozone.protocol.commands.*; import org.slf4j.*;
[ "java.util", "org.apache.hadoop", "org.slf4j" ]
java.util; org.apache.hadoop; org.slf4j;
703,105
// [electrum] added state to print, -1 for static public static Map<String,Table> toTable(A4Solution solution, Instance instance, SafeList<Sig> sigs, int state) { Map<String,Table> map = new HashMap<String,Table>(); for (Sig s : sigs) { if (!s.label.startsWith("this/")) ...
static Map<String,Table> function(A4Solution solution, Instance instance, SafeList<Sig> sigs, int state) { Map<String,Table> map = new HashMap<String,Table>(); for (Sig s : sigs) { if (!s.label.startsWith("this/")) continue; TupleSet instanceTuples = (state > -1 ? ((TemporalInstance) instance).state(state) : instance)....
/** * Format a solution to a string * * @param solution * @param instance * @param sigs * @param state * @return */
Format a solution to a string
toTable
{ "repo_name": "AlloyTools/org.alloytools.alloy", "path": "org.alloytools.alloy.core/src/main/java/edu/mit/csail/sdg/alloy4/TableView.java", "license": "apache-2.0", "size": 9944 }
[ "edu.mit.csail.sdg.ast.Sig", "edu.mit.csail.sdg.sim.SimTuple", "edu.mit.csail.sdg.translator.A4Solution", "java.util.Collections", "java.util.Comparator", "java.util.HashMap", "java.util.List", "java.util.Map", "org.alloytools.util.table.Table" ]
import edu.mit.csail.sdg.ast.Sig; import edu.mit.csail.sdg.sim.SimTuple; import edu.mit.csail.sdg.translator.A4Solution; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import org.alloytools.util.table.Table;
import edu.mit.csail.sdg.ast.*; import edu.mit.csail.sdg.sim.*; import edu.mit.csail.sdg.translator.*; import java.util.*; import org.alloytools.util.table.*;
[ "edu.mit.csail", "java.util", "org.alloytools.util" ]
edu.mit.csail; java.util; org.alloytools.util;
1,468,091
public void testIt7() throws Exception { final File dir = new File( "src/test/it7" ); final File target = new File( dir, "target/generated-resources/xml/xslt/doc1.xml" ); TransformMojo mojo = (TransformMojo) newMojo( dir.getPath() ); FileUtils.fileDelete( target.getPath()...
void function() throws Exception { final File dir = new File( STR ); final File target = new File( dir, STR ); TransformMojo mojo = (TransformMojo) newMojo( dir.getPath() ); FileUtils.fileDelete( target.getPath() ); mojo.execute(); String result = read( target ); assertFalse( result.startsWith( "<?xml" ) ); mojo = (Tra...
/** * Builds the it7 test project. */
Builds the it7 test project
testIt7
{ "repo_name": "G-Ork/xml-maven-plugin", "path": "src/test/java/org/codehaus/mojo/xml/test/TransformMojoTest.java", "license": "apache-2.0", "size": 12870 }
[ "java.io.File", "org.codehaus.mojo.xml.TransformMojo", "org.codehaus.mojo.xml.transformer.TransformationSet", "org.codehaus.plexus.util.FileUtils" ]
import java.io.File; import org.codehaus.mojo.xml.TransformMojo; import org.codehaus.mojo.xml.transformer.TransformationSet; import org.codehaus.plexus.util.FileUtils;
import java.io.*; import org.codehaus.mojo.xml.*; import org.codehaus.mojo.xml.transformer.*; import org.codehaus.plexus.util.*;
[ "java.io", "org.codehaus.mojo", "org.codehaus.plexus" ]
java.io; org.codehaus.mojo; org.codehaus.plexus;
2,771,649
Operand popDouble() { Operand r = pop(); if (VM.VerifyAssertions) VM._assert(r.isDouble()); popDummy(); return r; }
Operand popDouble() { Operand r = pop(); if (VM.VerifyAssertions) VM._assert(r.isDouble()); popDummy(); return r; }
/** * Pop a double operand from the stack. */
Pop a double operand from the stack
popDouble
{ "repo_name": "ut-osa/laminar", "path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/compilers/opt/bc2ir/BC2IR.java", "license": "bsd-3-clause", "size": 233116 }
[ "org.jikesrvm.compilers.opt.ir.operand.Operand" ]
import org.jikesrvm.compilers.opt.ir.operand.Operand;
import org.jikesrvm.compilers.opt.ir.operand.*;
[ "org.jikesrvm.compilers" ]
org.jikesrvm.compilers;
1,813,259
public ServiceInstance choose(String serviceId);
ServiceInstance function(String serviceId);
/** * Choose a ServiceInstance from the LoadBalancer for the specified service * @param serviceId the service id to look up the LoadBalancer * @return a ServiceInstance that matches the serviceId */
Choose a ServiceInstance from the LoadBalancer for the specified service
choose
{ "repo_name": "jmnarloch/spring-cloud-commons", "path": "spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerClient.java", "license": "apache-2.0", "size": 2049 }
[ "org.springframework.cloud.client.ServiceInstance" ]
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.*;
[ "org.springframework.cloud" ]
org.springframework.cloud;
2,487,756
protected Message cloneMessage(Message message) { Message clone = createMessage(message.getType()); clone.setMessage((Element) message.getMessage().cloneNode(true)); Map<String, Node> headerParts = message.getHeaderParts(); for (String partName : headerParts.keySet()) { c...
Message function(Message message) { Message clone = createMessage(message.getType()); clone.setMessage((Element) message.getMessage().cloneNode(true)); Map<String, Node> headerParts = message.getHeaderParts(); for (String partName : headerParts.keySet()) { clone.setHeaderPart(partName, (Element) headerParts.get(partNam...
/** * Return a deep clone of the given message * * @param message * @return */
Return a deep clone of the given message
cloneMessage
{ "repo_name": "Subasinghe/ode", "path": "bpel-runtime/src/main/java/org/apache/ode/bpel/engine/MyRoleMessageExchangeImpl.java", "license": "apache-2.0", "size": 11493 }
[ "java.util.Map", "java.util.concurrent.Future", "org.apache.ode.bpel.iapi.Message", "org.w3c.dom.Element", "org.w3c.dom.Node" ]
import java.util.Map; import java.util.concurrent.Future; import org.apache.ode.bpel.iapi.Message; import org.w3c.dom.Element; import org.w3c.dom.Node;
import java.util.*; import java.util.concurrent.*; import org.apache.ode.bpel.iapi.*; import org.w3c.dom.*;
[ "java.util", "org.apache.ode", "org.w3c.dom" ]
java.util; org.apache.ode; org.w3c.dom;
1,375,841
private void raiseNoSuchBeanDefinitionException( Class type, String dependencyDescription, DependencyDescriptor descriptor) throws NoSuchBeanDefinitionException { throw new NoSuchBeanDefinitionException(type, dependencyDescription, "expected at least 1 bean which qualifies as autowire candidate for...
void function( Class type, String dependencyDescription, DependencyDescriptor descriptor) throws NoSuchBeanDefinitionException { throw new NoSuchBeanDefinitionException(type, dependencyDescription, STR + STR + ObjectUtils.nullSafeToString(descriptor.getAnnotations())); }
/** * Raise a NoSuchBeanDefinitionException for an unresolvable dependency. */
Raise a NoSuchBeanDefinitionException for an unresolvable dependency
raiseNoSuchBeanDefinitionException
{ "repo_name": "ua-eas/ua-rice-2.1.9", "path": "core/framework/src/main/java/org/springframework/beans/factory/support/KualiDefaultListableBeanFactory.java", "license": "apache-2.0", "size": 43566 }
[ "org.springframework.beans.factory.NoSuchBeanDefinitionException", "org.springframework.beans.factory.config.DependencyDescriptor", "org.springframework.util.ObjectUtils" ]
import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.beans.factory.config.DependencyDescriptor; import org.springframework.util.ObjectUtils;
import org.springframework.beans.factory.*; import org.springframework.beans.factory.config.*; import org.springframework.util.*;
[ "org.springframework.beans", "org.springframework.util" ]
org.springframework.beans; org.springframework.util;
673,900
private void printRoutes(Collection<BgpRouteEntry> routes) { if (outputJson()) { print("%s", json(routes)); } else { print(FORMAT_HEADER); for (BgpRouteEntry route : routes) { printRoute(route); } print(FORMAT_SUMMARY, route...
void function(Collection<BgpRouteEntry> routes) { if (outputJson()) { print("%s", json(routes)); } else { print(FORMAT_HEADER); for (BgpRouteEntry route : routes) { printRoute(route); } print(FORMAT_SUMMARY, routes.size()); } }
/** * Prints all routes. * * @param routes the routes to print */
Prints all routes
printRoutes
{ "repo_name": "helloworld20000/onos", "path": "apps/sdnip/src/main/java/org/onosproject/sdnip/cli/BgpRoutesListCommand.java", "license": "apache-2.0", "size": 9081 }
[ "java.util.Collection", "org.onosproject.sdnip.bgp.BgpRouteEntry" ]
import java.util.Collection; import org.onosproject.sdnip.bgp.BgpRouteEntry;
import java.util.*; import org.onosproject.sdnip.bgp.*;
[ "java.util", "org.onosproject.sdnip" ]
java.util; org.onosproject.sdnip;
162,712
return new SdkTracerProviderBuilder(); } SdkTracerProvider( Clock clock, IdGenerator idsGenerator, Resource resource, Supplier<SpanLimits> spanLimitsSupplier, Sampler sampler, List<SpanProcessor> spanProcessors) { this.sharedState = new TracerSharedState( ...
return new SdkTracerProviderBuilder(); } SdkTracerProvider( Clock clock, IdGenerator idsGenerator, Resource resource, Supplier<SpanLimits> spanLimitsSupplier, Sampler sampler, List<SpanProcessor> spanProcessors) { this.sharedState = new TracerSharedState( clock, idsGenerator, resource, spanLimitsSupplier, sampler, span...
/** * Returns a new {@link SdkTracerProviderBuilder} for {@link SdkTracerProvider}. * * @return a new {@link SdkTracerProviderBuilder} for {@link SdkTracerProvider}. */
Returns a new <code>SdkTracerProviderBuilder</code> for <code>SdkTracerProvider</code>
builder
{ "repo_name": "open-telemetry/opentelemetry-java", "path": "sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracerProvider.java", "license": "apache-2.0", "size": 5575 }
[ "io.opentelemetry.sdk.common.Clock", "io.opentelemetry.sdk.internal.ComponentRegistry", "io.opentelemetry.sdk.resources.Resource", "io.opentelemetry.sdk.trace.samplers.Sampler", "java.util.List", "java.util.function.Supplier" ]
import io.opentelemetry.sdk.common.Clock; import io.opentelemetry.sdk.internal.ComponentRegistry; import io.opentelemetry.sdk.resources.Resource; import io.opentelemetry.sdk.trace.samplers.Sampler; import java.util.List; import java.util.function.Supplier;
import io.opentelemetry.sdk.common.*; import io.opentelemetry.sdk.internal.*; import io.opentelemetry.sdk.resources.*; import io.opentelemetry.sdk.trace.samplers.*; import java.util.*; import java.util.function.*;
[ "io.opentelemetry.sdk", "java.util" ]
io.opentelemetry.sdk; java.util;
377,539
public Class getImplementingClass(Class interfaceType) { while (interfaceType.isArray()) { interfaceType = interfaceType.getComponentType(); } if (interfaceLookup == null) { interfaceLookup = new HashMap<Class, Class>(); interfaceLookup.put(Attribute.B...
Class function(Class interfaceType) { while (interfaceType.isArray()) { interfaceType = interfaceType.getComponentType(); } if (interfaceLookup == null) { interfaceLookup = new HashMap<Class, Class>(); interfaceLookup.put(Attribute.Boolean.class, JAMSBoolean.class); interfaceLookup.put(Attribute.BooleanArray.class, JAM...
/** * Returns the standard implementation of a JAMSData interface * * @param interfaceType A JAMSData interface * @return The class that represents the standard implementation of the * provided interface */
Returns the standard implementation of a JAMSData interface
getImplementingClass
{ "repo_name": "kralisch/jams", "path": "JAMSmain/src/jams/data/DefaultDataFactory.java", "license": "lgpl-3.0", "size": 9713 }
[ "com.vividsolutions.jts.geom.Geometry", "java.util.HashMap" ]
import com.vividsolutions.jts.geom.Geometry; import java.util.HashMap;
import com.vividsolutions.jts.geom.*; import java.util.*;
[ "com.vividsolutions.jts", "java.util" ]
com.vividsolutions.jts; java.util;
2,212,453
public long addConcept(int courseId, int evaluationId, String date, String name, String description, String weight) { long examId = -1; try { db.beginTransaction(); CourseEvaluation courseEvaluation = getCourseEvaluation(courseId, evaluationId); if(courseEvaluation != null) { long te...
long function(int courseId, int evaluationId, String date, String name, String description, String weight) { long examId = -1; try { db.beginTransaction(); CourseEvaluation courseEvaluation = getCourseEvaluation(courseId, evaluationId); if(courseEvaluation != null) { long testId = addTest(name, description, weight, cou...
/** * Add a new concept. To insert a concept it needs to insert a Test and an Exam. * It is doing with transaction. * * Also it needs to insert a register for each student enrolled in a course in the * table exam_student_mark (ExamStudentMark object). * * @param courseId * @par...
Add a new concept. To insert a concept it needs to insert a Test and an Exam. It is doing with transaction. Also it needs to insert a register for each student enrolled in a course in the table exam_student_mark (ExamStudentMark object)
addConcept
{ "repo_name": "rgmf/LTN", "path": "src/es/rgmf/ltn/db/DBAdapter.java", "license": "gpl-3.0", "size": 69648 }
[ "android.database.SQLException", "es.rgmf.ltn.model.orm.CourseEvaluation" ]
import android.database.SQLException; import es.rgmf.ltn.model.orm.CourseEvaluation;
import android.database.*; import es.rgmf.ltn.model.orm.*;
[ "android.database", "es.rgmf.ltn" ]
android.database; es.rgmf.ltn;
252,591
public void testCase24() { byte aBytes[] = {-127, 100, 56, 7, 98, -1, 39, -128, 127, 75}; byte bBytes[] = {27, -15, 65, 39, 100}; int aSign = -1; int bSign = 1; byte rBytes[] = {15, 5, -9, -17, 73}; BigInteger aNumber = new BigInteger(aSign, aBytes); B...
void function() { byte aBytes[] = {-127, 100, 56, 7, 98, -1, 39, -128, 127, 75}; byte bBytes[] = {27, -15, 65, 39, 100}; int aSign = -1; int bSign = 1; byte rBytes[] = {15, 5, -9, -17, 73}; BigInteger aNumber = new BigInteger(aSign, aBytes); BigInteger bNumber = new BigInteger(bSign, bBytes); BigInteger result = aNumbe...
/** * mod when a divisor is negative */
mod when a divisor is negative
testCase24
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/java6/modules/math/src/test/java/org/apache/harmony/tests/java/math/BigIntegerDivideTest.java", "license": "apache-2.0", "size": 25307 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
545,217
if (mnuBar == null) { mnuBar = new JMenuBar(); mnuBar.add(getBtnDrawBezier1()); mnuBar.add(getBtnDrawBezier2()); mnuBar.add(getBtnBezierIntersect()); mnuBar.add(infoLabel); mnuBar.add(Box.createHorizontalGlue()); JMenu graphOptions = new JMenu("Graph Options"); graphOptions.add(getMchkControlP...
if (mnuBar == null) { mnuBar = new JMenuBar(); mnuBar.add(getBtnDrawBezier1()); mnuBar.add(getBtnDrawBezier2()); mnuBar.add(getBtnBezierIntersect()); mnuBar.add(infoLabel); mnuBar.add(Box.createHorizontalGlue()); JMenu graphOptions = new JMenu(STR); graphOptions.add(getMchkControlPolygon()); mnuBar.add(graphOptions); m...
/** * This method initializes mnuBar * * @return javax.swing.JMenuBar */
This method initializes mnuBar
getMnuBar
{ "repo_name": "miromarko/java-experiments", "path": "various-projects/math-algo/k-mean/src/main/java/gui/MainFrame.java", "license": "gpl-2.0", "size": 11628 }
[ "javax.swing.Box", "javax.swing.JMenu", "javax.swing.JMenuBar", "javax.swing.JMenuItem", "javax.swing.JPopupMenu", "javax.swing.MenuElement" ]
import javax.swing.Box; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import javax.swing.MenuElement;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,921,938
protected Node parseExpectedJs(List<SourceFile> inputs) { Compiler compiler = new Compiler(); compiler.init(ImmutableList.<SourceFile>of(), inputs, createCompilerOptions()); compiler.parse(); Node root = compiler.getRoot(); assertThat(root).isNotNull(); Node externsRoot = root.getFirstChild()...
Node function(List<SourceFile> inputs) { Compiler compiler = new Compiler(); compiler.init(ImmutableList.<SourceFile>of(), inputs, createCompilerOptions()); compiler.parse(); Node root = compiler.getRoot(); assertThat(root).isNotNull(); Node externsRoot = root.getFirstChild(); Node mainRoot = externsRoot.getNext(); ret...
/** * Parses expected JS inputs and returns the root of the parse tree. */
Parses expected JS inputs and returns the root of the parse tree
parseExpectedJs
{ "repo_name": "MatrixFrog/closure-compiler", "path": "test/com/google/javascript/jscomp/RecoverableJsAstTest.java", "license": "apache-2.0", "size": 6680 }
[ "com.google.common.collect.ImmutableList", "com.google.common.truth.Truth", "com.google.javascript.rhino.Node", "java.util.List" ]
import com.google.common.collect.ImmutableList; import com.google.common.truth.Truth; import com.google.javascript.rhino.Node; import java.util.List;
import com.google.common.collect.*; import com.google.common.truth.*; import com.google.javascript.rhino.*; import java.util.*;
[ "com.google.common", "com.google.javascript", "java.util" ]
com.google.common; com.google.javascript; java.util;
279,045
private void setCountDown(int num) { Message msg = mAutoTestHandler .obtainMessage(YgpsActivity.HANDLE_SET_COUNTDOWN); msg.arg1 = num; mAutoTestHandler.sendMessage(msg); }
void function(int num) { Message msg = mAutoTestHandler .obtainMessage(YgpsActivity.HANDLE_SET_COUNTDOWN); msg.arg1 = num; mAutoTestHandler.sendMessage(msg); }
/** * Update test time count down. * * @param num * Count down number */
Update test time count down
setCountDown
{ "repo_name": "mtk6582/android_device_lg_leon", "path": "gps/YGPS/src/com/mediatek/ygps/YgpsActivity.java", "license": "gpl-2.0", "size": 104247 }
[ "android.os.Message" ]
import android.os.Message;
import android.os.*;
[ "android.os" ]
android.os;
426,935
protected void defineFilter(Context ctx, String name, String classname, Map<String,String> parameters, String[] urls) { FilterHolder holder = new FilterHolder(); holder.setName(name); holder.setClassName(classname); holder.setInitParameters(parameters); FilterMapping fmap = new FilterMappin...
void function(Context ctx, String name, String classname, Map<String,String> parameters, String[] urls) { FilterHolder holder = new FilterHolder(); holder.setName(name); holder.setClassName(classname); holder.setInitParameters(parameters); FilterMapping fmap = new FilterMapping(); fmap.setPathSpecs(urls); fmap.setDispa...
/** * Define a filter for a context and set up default url mappings. */
Define a filter for a context and set up default url mappings
defineFilter
{ "repo_name": "apache/incubator-trafodion", "path": "dcs/src/main/java/org/trafodion/dcs/http/HttpServer.java", "license": "apache-2.0", "size": 28300 }
[ "java.util.Map", "org.mortbay.jetty.Handler", "org.mortbay.jetty.servlet.Context", "org.mortbay.jetty.servlet.FilterHolder", "org.mortbay.jetty.servlet.FilterMapping", "org.mortbay.jetty.servlet.ServletHandler" ]
import java.util.Map; import org.mortbay.jetty.Handler; import org.mortbay.jetty.servlet.Context; import org.mortbay.jetty.servlet.FilterHolder; import org.mortbay.jetty.servlet.FilterMapping; import org.mortbay.jetty.servlet.ServletHandler;
import java.util.*; import org.mortbay.jetty.*; import org.mortbay.jetty.servlet.*;
[ "java.util", "org.mortbay.jetty" ]
java.util; org.mortbay.jetty;
2,144,257
public long startWork(Work work) throws WorkException { return startWork(work, INDEFINITE, null, null); }
long function(Work work) throws WorkException { return startWork(work, INDEFINITE, null, null); }
/** * Accepts a work instance for processing. The call blocks until * the work instance starts, but does not wait not until the completion. */
Accepts a work instance for processing. The call blocks until the work instance starts, but does not wait not until the completion
startWork
{ "repo_name": "christianchristensen/resin", "path": "modules/resin/src/com/caucho/jca/ra/WorkManagerImpl.java", "license": "gpl-2.0", "size": 6623 }
[ "javax.resource.spi.work.Work", "javax.resource.spi.work.WorkException" ]
import javax.resource.spi.work.Work; import javax.resource.spi.work.WorkException;
import javax.resource.spi.work.*;
[ "javax.resource" ]
javax.resource;
1,947,136
@SuppressWarnings("unchecked") protected final SwitchContainerType getContainer(String address) throws IOException { ThreadContext.push("getContainer"); try { Set<DeviceContainer> devices = address2dcGlobal.get(address); if (dev...
@SuppressWarnings(STR) final SwitchContainerType function(String address) throws IOException { ThreadContext.push(STR); try { Set<DeviceContainer> devices = address2dcGlobal.get(address); if (devices == null) { throw new IOException(STR + address + STR); } for (Iterator<DeviceContainer> i = devices.iterator(); i.hasNex...
/** * Get the device container. * * @param address Hardware address. * * @return Device container. * * @exception IOException if the device container is not present. */
Get the device container
getContainer
{ "repo_name": "marcass/dz-1", "path": "dz3-sensors/src/main/java/net/sf/dz3/device/factory/SingleSwitchProxy.java", "license": "gpl-3.0", "size": 3649 }
[ "java.io.IOException", "java.util.Iterator", "java.util.Set", "net.sf.dz3.device.sensor.DeviceContainer", "net.sf.dz3.device.sensor.PrototypeContainer", "net.sf.dz3.device.sensor.SensorType", "org.apache.logging.log4j.ThreadContext" ]
import java.io.IOException; import java.util.Iterator; import java.util.Set; import net.sf.dz3.device.sensor.DeviceContainer; import net.sf.dz3.device.sensor.PrototypeContainer; import net.sf.dz3.device.sensor.SensorType; import org.apache.logging.log4j.ThreadContext;
import java.io.*; import java.util.*; import net.sf.dz3.device.sensor.*; import org.apache.logging.log4j.*;
[ "java.io", "java.util", "net.sf.dz3", "org.apache.logging" ]
java.io; java.util; net.sf.dz3; org.apache.logging;
1,416,971
public static final String usage(final ISymbol head) { return usage(head.toString()); }
static final String function(final ISymbol head) { return usage(head.toString()); }
/** * Print the documentation for the given symbol. * * @param head * @return */
Print the documentation for the given symbol
usage
{ "repo_name": "axkr/symja_android_library", "path": "symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/F.java", "license": "gpl-3.0", "size": 283472 }
[ "org.matheclipse.core.interfaces.ISymbol" ]
import org.matheclipse.core.interfaces.ISymbol;
import org.matheclipse.core.interfaces.*;
[ "org.matheclipse.core" ]
org.matheclipse.core;
140,897
protected void moveRelations(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, String rootPath) throws CmsDataAccessException { try { Query q = m_sqlManager.createQuery(dbc, projectId, C_MOVE_RELATIONS_SOURCE); q.setParameter(1, structureId.toString()); @Supp...
void function(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, String rootPath) throws CmsDataAccessException { try { Query q = m_sqlManager.createQuery(dbc, projectId, C_MOVE_RELATIONS_SOURCE); q.setParameter(1, structureId.toString()); @SuppressWarnings(STR) List<I_CmsDAOResourceRelations> res = q.getResultL...
/** * Moves all relations of a resource to the new path.<p> * * @param dbc the current database context * @param projectId the id of the project to apply the changes * @param structureId the structure id of the resource to apply the changes to * @param rootPath the new root path * ...
Moves all relations of a resource to the new path
moveRelations
{ "repo_name": "sbonoc/opencms-core", "path": "src/org/opencms/db/jpa/CmsVfsDriver.java", "license": "lgpl-2.1", "size": 197794 }
[ "java.util.List", "javax.persistence.PersistenceException", "javax.persistence.Query", "org.opencms.db.CmsDbContext", "org.opencms.db.generic.Messages", "org.opencms.db.jpa.persistence.CmsDAOOfflineResourceRelations", "org.opencms.db.jpa.persistence.CmsDAOOnlineResourceRelations", "org.opencms.file.Cm...
import java.util.List; import javax.persistence.PersistenceException; import javax.persistence.Query; import org.opencms.db.CmsDbContext; import org.opencms.db.generic.Messages; import org.opencms.db.jpa.persistence.CmsDAOOfflineResourceRelations; import org.opencms.db.jpa.persistence.CmsDAOOnlineResourceRelations; imp...
import java.util.*; import javax.persistence.*; import org.opencms.db.*; import org.opencms.db.generic.*; import org.opencms.db.jpa.persistence.*; import org.opencms.file.*; import org.opencms.util.*;
[ "java.util", "javax.persistence", "org.opencms.db", "org.opencms.file", "org.opencms.util" ]
java.util; javax.persistence; org.opencms.db; org.opencms.file; org.opencms.util;
1,108,701
public static MozuClient addThirdPartyPaymentWorkflowClient(com.mozu.api.contracts.sitesettings.order.ExternalPaymentWorkflowDefinition definition) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.settings.checkout.PaymentSettingsUrl.addThirdPartyPaymentWorkflowUrl(); String verb = "PUT"; Moz...
static MozuClient function(com.mozu.api.contracts.sitesettings.order.ExternalPaymentWorkflowDefinition definition) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.settings.checkout.PaymentSettingsUrl.addThirdPartyPaymentWorkflowUrl(); String verb = "PUT"; MozuClient mozuClient = (MozuClient) MozuClientFacto...
/** * * <p><pre><code> * MozuClient mozuClient=AddThirdPartyPaymentWorkflowClient( definition); * client.setBaseAddress(url); * client.executeRequest(); * </code></pre></p> * @param definition Properties of an external payment processing workflow defined for the site. At this time, only PayPal Exp...
<code><code> MozuClient mozuClient=AddThirdPartyPaymentWorkflowClient( definition); client.setBaseAddress(url); client.executeRequest(); </code></code>
addThirdPartyPaymentWorkflowClient
{ "repo_name": "Mozu/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/settings/checkout/PaymentSettingsClient.java", "license": "mit", "size": 6723 }
[ "com.mozu.api.MozuClient", "com.mozu.api.MozuClientFactory", "com.mozu.api.MozuUrl" ]
import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
2,574,550
EList<Big> getBig();
EList<Big> getBig();
/** * Returns the value of the '<em><b>Big</b></em>' containment reference list. * The list contents are of type {@link org.openhealthtools.mdht.emf.w3c.xhtml.Big}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * bigger font * <!-- end-model-doc --> * @return the v...
Returns the value of the 'Big' containment reference list. The list contents are of type <code>org.openhealthtools.mdht.emf.w3c.xhtml.Big</code>. bigger font
getBig
{ "repo_name": "drbgfc/mdht", "path": "hl7/plugins/org.openhealthtools.mdht.emf.hl7.mif2/src/org/openhealthtools/mdht/emf/w3c/xhtml/Object.java", "license": "epl-1.0", "size": 32409 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
222,200
List<String> getPrevChildren(); void closing(); }
List<String> getPrevChildren(); void closing(); }
/** * The ZooKeeper session is no longer valid. */
The ZooKeeper session is no longer valid
closing
{ "repo_name": "whchoi83/arcus-java-client", "path": "src/main/java/net/spy/memcached/CacheMonitor.java", "license": "apache-2.0", "size": 4828 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
639,645
void setFooter(ChatComponent value);
void setFooter(ChatComponent value);
/** * Change the footer of the tablist. * If value is null, footer will be removed. * * @param value the new footer or null */
Change the footer of the tablist. If value is null, footer will be removed
setFooter
{ "repo_name": "nickrobson/TridentSDK", "path": "src/main/java/net/tridentsdk/ui/tablist/TabList.java", "license": "apache-2.0", "size": 2858 }
[ "net.tridentsdk.chat.ChatComponent" ]
import net.tridentsdk.chat.ChatComponent;
import net.tridentsdk.chat.*;
[ "net.tridentsdk.chat" ]
net.tridentsdk.chat;
657,335
@Test public void compositeNodeAndYangWithJsonReaderEmptyDataTest() { CompositeNode compositeNode = prepareCompositeNodeWithEmpties(); TestUtils.normalizeCompositeNode(compositeNode, modules, searchedModuleName + ":" + searchedDataSchemaName); String jsonOutput = null; try { ...
void function() { CompositeNode compositeNode = prepareCompositeNodeWithEmpties(); TestUtils.normalizeCompositeNode(compositeNode, modules, searchedModuleName + ":" + searchedDataSchemaName); String jsonOutput = null; try { jsonOutput = TestUtils.writeCompNodeWithSchemaContextToOutput(compositeNode, modules, dataSchema...
/** * Test of json output when as input are specified composite node with empty * data + YANG file */
Test of json output when as input are specified composite node with empty data + YANG file
compositeNodeAndYangWithJsonReaderEmptyDataTest
{ "repo_name": "yuyf10/opendaylight-controller", "path": "opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/cnsn/to/json/test/CnSnJsonBasicYangTypesTest.java", "license": "epl-1.0", "size": 28134 }
[ "java.io.IOException", "javax.ws.rs.WebApplicationException", "org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider", "org.opendaylight.controller.sal.restconf.impl.test.TestUtils", "org.opendaylight.yangtools.yang.data.api.CompositeNode" ]
import java.io.IOException; import javax.ws.rs.WebApplicationException; import org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider; import org.opendaylight.controller.sal.restconf.impl.test.TestUtils; import org.opendaylight.yangtools.yang.data.api.CompositeNode;
import java.io.*; import javax.ws.rs.*; import org.opendaylight.controller.sal.rest.impl.*; import org.opendaylight.controller.sal.restconf.impl.test.*; import org.opendaylight.yangtools.yang.data.api.*;
[ "java.io", "javax.ws", "org.opendaylight.controller", "org.opendaylight.yangtools" ]
java.io; javax.ws; org.opendaylight.controller; org.opendaylight.yangtools;
2,585,623