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
String description = "tests with story identical"; TestHelper.testStart(description); // the parameter we are going to test Runner r = new Runner("Core"); ABStory p = new ABStory("$Include 'P-FocusAndShadows'"); // ProperNameGenerator sg = new ProperNameGenerator();...
String description = STR; TestHelper.testStart(description); Runner r = new Runner("Core"); ABStory p = new ABStory(STR); ProperNameGenerator sg = new ProperNameGenerator(); List<RecordedStory> history = new ArrayList<>(); RecordedStory st = RsGenerator.generateReciprocal(STR, STR, Arrays.asList(STR, STR, STR)); Record...
/** * These are a series of tests for the instance matching head and vi * matching head enabled - they are using the artificial domain, but do not * refer to any bai's which had previous stories */
These are a series of tests for the instance matching head and vi matching head enabled - they are using the artificial domain, but do not refer to any bai's which had previous stories
testIdenticalStory
{ "repo_name": "Xapagy/Xapagy", "path": "src/test/java/org/xapagy/activity/shadowmaintenance/testDaShmViMatchingHead.java", "license": "agpl-3.0", "size": 10507 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.xapagy.ArtificialDomain", "org.xapagy.TestHelper", "org.xapagy.autobiography.ABStory", "org.xapagy.debug.Runner", "org.xapagy.debug.storygenerator.ProperNameGenerator", "org.xapagy.debug.storygenerator.RecordedStory", "org.xapagy.de...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.xapagy.ArtificialDomain; import org.xapagy.TestHelper; import org.xapagy.autobiography.ABStory; import org.xapagy.debug.Runner; import org.xapagy.debug.storygenerator.ProperNameGenerator; import org.xapagy.debug.storygenerator.Record...
import java.util.*; import org.xapagy.*; import org.xapagy.autobiography.*; import org.xapagy.debug.*; import org.xapagy.debug.storygenerator.*; import org.xapagy.ui.*;
[ "java.util", "org.xapagy", "org.xapagy.autobiography", "org.xapagy.debug", "org.xapagy.ui" ]
java.util; org.xapagy; org.xapagy.autobiography; org.xapagy.debug; org.xapagy.ui;
843,214
@Override public String toString() { String s = "RTCNodeKey\n[\n\t" + "nodeID = " + m_nodeID + "\n\t" + "IP = " + InetAddressUtils.str(m_ip) + "\n\t" + "Service = " + m_svcName + "\n]\n"; return s; }
String function() { String s = STR + STR + m_nodeID + "\n\t" + STR + InetAddressUtils.str(m_ip) + "\n\t" + STR + m_svcName + "\n]\n"; return s; }
/** * Returns a string representation of this key * * @return a string representation of this key */
Returns a string representation of this key
toString
{ "repo_name": "tharindum/opennms_dashboard", "path": "opennms-services/src/main/java/org/opennms/netmgt/rtc/datablock/RTCNodeKey.java", "license": "gpl-2.0", "size": 4579 }
[ "org.opennms.core.utils.InetAddressUtils" ]
import org.opennms.core.utils.InetAddressUtils;
import org.opennms.core.utils.*;
[ "org.opennms.core" ]
org.opennms.core;
1,964,274
public void flush() { if(appIsStringBuilder) { reorderStart=str.length(); } else { try { app.append(str); str.setLength(0); reorderStart=0; } catch(IOException e) { ...
void function() { if(appIsStringBuilder) { reorderStart=str.length(); } else { try { app.append(str); str.setLength(0); reorderStart=0; } catch(IOException e) { throw new ICUUncheckedIOException(e); } } lastCC=0; }
/** * Flushes from the intermediate StringBuilder to the Appendable, * if they are different objects. * Used after recomposition. * Must be called at the end when writing to a non-StringBuilder Appendable. */
Flushes from the intermediate StringBuilder to the Appendable, if they are different objects. Used after recomposition. Must be called at the end when writing to a non-StringBuilder Appendable
flush
{ "repo_name": "andreynovikov/maptrek", "path": "app/src/main/java/com/ibm/icu/impl/Normalizer2Impl.java", "license": "gpl-3.0", "size": 97847 }
[ "com.ibm.icu.util.ICUUncheckedIOException", "java.io.IOException" ]
import com.ibm.icu.util.ICUUncheckedIOException; import java.io.IOException;
import com.ibm.icu.util.*; import java.io.*;
[ "com.ibm.icu", "java.io" ]
com.ibm.icu; java.io;
755,462
@Override public T visitQuote(@NotNull GikiParser.QuoteContext ctx) { return visitChildren(ctx); }
@Override public T visitQuote(@NotNull GikiParser.QuoteContext ctx) { return visitChildren(ctx); }
/** * {@inheritDoc} * <p/> * The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}. */
The default implementation returns the result of calling <code>#visitChildren</code> on ctx
visitIoOperation
{ "repo_name": "jakobehmsen/giki-lang", "path": "eclipse/src/giki/antlr4/GikiBaseVisitor.java", "license": "mit", "size": 11148 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
2,897,625
@Property(order = 2, displayName = "Grid Lines") boolean isGridLines();
@Property(order = 2, displayName = STR) boolean isGridLines();
/** * Return if the grid line is displayed or not. * * @return true if the grid line is displayed */
Return if the grid line is displayed or not
isGridLines
{ "repo_name": "jplot2d/jplot2d", "path": "jplot2d-core/src/main/java/org/jplot2d/element/PlotAxis.java", "license": "lgpl-3.0", "size": 2851 }
[ "org.jplot2d.annotation.Property" ]
import org.jplot2d.annotation.Property;
import org.jplot2d.annotation.*;
[ "org.jplot2d.annotation" ]
org.jplot2d.annotation;
1,429,897
public static Properties copyProperties( Properties from ) { Properties to = new Properties(); for ( String key : from.stringPropertyNames() ) { to.setProperty( key, from.getProperty( key ) ); } return to; }
static Properties function( Properties from ) { Properties to = new Properties(); for ( String key : from.stringPropertyNames() ) { to.setProperty( key, from.getProperty( key ) ); } return to; }
/** * Copies the given properties into a new Properties object. This function * does NOT do a deep-copy of the argument's supporting Properties, if any * * @param from the source properties * * @return the new copy */
Copies the given properties into a new Properties object. This function does NOT do a deep-copy of the argument's supporting Properties, if any
copyProperties
{ "repo_name": "Ostrich-Emulators/semtool", "path": "common/src/main/java/com/ostrichemulators/semtool/util/Utility.java", "license": "gpl-3.0", "size": 17397 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
1,771,690
static boolean isConstantName(Node node) { return node.getBooleanProp(Node.IS_CONSTANT_NAME); }
static boolean isConstantName(Node node) { return node.getBooleanProp(Node.IS_CONSTANT_NAME); }
/** * Determines whether a variable is constant: * * <ol> * <li>In Normalize, any name that matches the {@link CodingConvention#isConstant(String)} is * annotated with an IS_CONSTANT_NAME property. * </ol> * * @param node A NAME or STRING node * @return True if a name node represents ...
Determines whether a variable is constant: In Normalize, any name that matches the <code>CodingConvention#isConstant(String)</code> is annotated with an IS_CONSTANT_NAME property.
isConstantName
{ "repo_name": "monetate/closure-compiler", "path": "src/com/google/javascript/jscomp/NodeUtil.java", "license": "apache-2.0", "size": 186190 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,606,134
private void notifyBegin(DetailAST rootAST, FileContents contents, AstState astState) { Set<Check> checks; if (astState == AstState.WITH_COMMENTS) { checks = commentChecks; } else { checks = ordinaryChecks; } for (Check check : ch...
void function(DetailAST rootAST, FileContents contents, AstState astState) { Set<Check> checks; if (astState == AstState.WITH_COMMENTS) { checks = commentChecks; } else { checks = ordinaryChecks; } for (Check check : checks) { check.setFileContents(contents); check.beginTree(rootAST); } }
/** * Notify checks that we are about to begin walking a tree. * @param rootAST the root of the tree. * @param contents the contents of the file the AST was generated from. * @param astState state of AST. */
Notify checks that we are about to begin walking a tree
notifyBegin
{ "repo_name": "StetsiukRoman/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/TreeWalker.java", "license": "lgpl-2.1", "size": 23543 }
[ "com.puppycrawl.tools.checkstyle.api.Check", "com.puppycrawl.tools.checkstyle.api.DetailAST", "com.puppycrawl.tools.checkstyle.api.FileContents", "java.util.Set" ]
import com.puppycrawl.tools.checkstyle.api.Check; import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.FileContents; import java.util.Set;
import com.puppycrawl.tools.checkstyle.api.*; import java.util.*;
[ "com.puppycrawl.tools", "java.util" ]
com.puppycrawl.tools; java.util;
2,905,044
private void reflect(Object obj, Properties p, String prefix) { try { if (obj == null) { p.put(prefix, "null"); return; } Class<?> cls = obj.getClass(); if (cls.getName().startsWith("org.infinispan.config") && !cls.isEnum()) { for (Method ...
void function(Object obj, Properties p, String prefix) { try { if (obj == null) { p.put(prefix, "null"); return; } Class<?> cls = obj.getClass(); if (cls.getName().startsWith(STR) && !cls.isEnum()) { for (Method m : getMethods(obj.getClass())) { if (m.getParameterTypes().length != 0 STR.equals(m.getName()) STR.equals(m...
/** * * This is a generic method for reflection copied from PropertyFormatter from Infinispan 6.0 * * @param obj * @param p * @param prefix */
This is a generic method for reflection copied from PropertyFormatter from Infinispan 6.0
reflect
{ "repo_name": "mcimbora/radargun", "path": "plugins/infinispan52/src/main/java/org/radargun/service/ConfigDumpHelper.java", "license": "apache-2.0", "size": 5823 }
[ "java.lang.reflect.Method", "java.util.Properties" ]
import java.lang.reflect.Method; import java.util.Properties;
import java.lang.reflect.*; import java.util.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
1,953,267
public List<Version> getVersionList() throws XWikiException { final List<Version> list = new ArrayList<Version>(); final String currentVersion = this.version.toString(); Version v = new Version("1.1"); for (;;) { list.add(v); if (v.toString().equals(curren...
List<Version> function() throws XWikiException { final List<Version> list = new ArrayList<Version>(); final String currentVersion = this.version.toString(); Version v = new Version("1.1"); for (;;) { list.add(v); if (v.toString().equals(currentVersion)) { break; } v = v.next(); } return list; }
/** * Get the list of all versions up to the current. We assume versions go from 1.1 to the current one This allows not * to read the full archive file. * * @return a list of Version from 1.1 to the current version. * @throws XWikiException never happens. */
Get the list of all versions up to the current. We assume versions go from 1.1 to the current one This allows not to read the full archive file
getVersionList
{ "repo_name": "pbondoer/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiAttachment.java", "license": "lgpl-2.1", "size": 39910 }
[ "com.xpn.xwiki.XWikiException", "java.util.ArrayList", "java.util.List", "org.suigeneris.jrcs.rcs.Version" ]
import com.xpn.xwiki.XWikiException; import java.util.ArrayList; import java.util.List; import org.suigeneris.jrcs.rcs.Version;
import com.xpn.xwiki.*; import java.util.*; import org.suigeneris.jrcs.rcs.*;
[ "com.xpn.xwiki", "java.util", "org.suigeneris.jrcs" ]
com.xpn.xwiki; java.util; org.suigeneris.jrcs;
1,425,194
protected ExpenseTypeObjectCode findExpenseTypeObjectCodeForAgencyStagingData(TravelDocument document, AgencyStagingData agencyStagingData) { final String documentType = document.getDocumentTypeName(); final String tripType = StringUtils.isBlank(document.getTripTypeCode()) ? TemConstants.ALL_EXPENSE...
ExpenseTypeObjectCode function(TravelDocument document, AgencyStagingData agencyStagingData) { final String documentType = document.getDocumentTypeName(); final String tripType = StringUtils.isBlank(document.getTripTypeCode()) ? TemConstants.ALL_EXPENSE_TYPE_OBJECT_CODE_TRIP_TYPE : document.getTripTypeCode(); final Str...
/** * Looks up the appropriate ExpenseTypeObjectCode record for the given document and agency staging data * @param document the document which has a document type, a traveler type (hopefully), and a trip type * @param agencyStagingData the agency staging data, from which we can find the expense type ...
Looks up the appropriate ExpenseTypeObjectCode record for the given document and agency staging data
findExpenseTypeObjectCodeForAgencyStagingData
{ "repo_name": "bhutchinson/kfs", "path": "kfs-tem/src/main/java/org/kuali/kfs/module/tem/document/web/struts/AddImportedExpenseEvent.java", "license": "agpl-3.0", "size": 9283 }
[ "org.apache.commons.lang.StringUtils", "org.kuali.kfs.module.tem.TemConstants", "org.kuali.kfs.module.tem.businessobject.AgencyStagingData", "org.kuali.kfs.module.tem.businessobject.ExpenseType", "org.kuali.kfs.module.tem.businessobject.ExpenseTypeObjectCode", "org.kuali.kfs.module.tem.document.TravelDocu...
import org.apache.commons.lang.StringUtils; import org.kuali.kfs.module.tem.TemConstants; import org.kuali.kfs.module.tem.businessobject.AgencyStagingData; import org.kuali.kfs.module.tem.businessobject.ExpenseType; import org.kuali.kfs.module.tem.businessobject.ExpenseTypeObjectCode; import org.kuali.kfs.module.tem.do...
import org.apache.commons.lang.*; import org.kuali.kfs.module.tem.*; import org.kuali.kfs.module.tem.businessobject.*; import org.kuali.kfs.module.tem.document.*; import org.kuali.rice.krad.util.*;
[ "org.apache.commons", "org.kuali.kfs", "org.kuali.rice" ]
org.apache.commons; org.kuali.kfs; org.kuali.rice;
1,001,601
public static boolean maybeBlacklistTrack(TrackSelection trackSelection, int trackSelectionIndex, Exception e, long blacklistDurationMs) { if (trackSelection.length() == 1) { // Blacklisting won't ever work if there's only one track in the selection. return false; } if (e instanceof Inva...
static boolean function(TrackSelection trackSelection, int trackSelectionIndex, Exception e, long blacklistDurationMs) { if (trackSelection.length() == 1) { return false; } if (e instanceof InvalidResponseCodeException) { InvalidResponseCodeException responseCodeException = (InvalidResponseCodeException) e; int respons...
/** * Blacklists {@code trackSelectionIndex} in {@code trackSelection} for * {@code blacklistDurationMs} if {@code e} is an {@link InvalidResponseCodeException} with * {@link InvalidResponseCodeException#responseCode} equal to 404 or 410. Else does nothing. Note * that blacklisting will fail if the track is...
Blacklists trackSelectionIndex in trackSelection for blacklistDurationMs if e is an <code>InvalidResponseCodeException</code> with <code>InvalidResponseCodeException#responseCode</code> equal to 404 or 410. Else does nothing. Note that blacklisting will fail if the track is the only non-blacklisted track in the selecti...
maybeBlacklistTrack
{ "repo_name": "rchookan/parsigram", "path": "TMessagesProj/src/main/java/org/telegram/messenger/exoplayer2/source/chunk/ChunkedTrackBlacklistUtil.java", "license": "gpl-2.0", "size": 4024 }
[ "android.util.Log", "org.telegram.messenger.exoplayer2.trackselection.TrackSelection", "org.telegram.messenger.exoplayer2.upstream.HttpDataSource" ]
import android.util.Log; import org.telegram.messenger.exoplayer2.trackselection.TrackSelection; import org.telegram.messenger.exoplayer2.upstream.HttpDataSource;
import android.util.*; import org.telegram.messenger.exoplayer2.trackselection.*; import org.telegram.messenger.exoplayer2.upstream.*;
[ "android.util", "org.telegram.messenger" ]
android.util; org.telegram.messenger;
2,262,954
private void layoutListView(final JTable listTable) { listTable.setFillsViewportHeight(true); listTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
void function(final JTable listTable) { listTable.setFillsViewportHeight(true); listTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
/** * Configures the data list view. */
Configures the data list view
layoutListView
{ "repo_name": "tomas-pluskal/masscascadeknime", "path": "src/uk/ac/ebi/masscascade/knime/defaults/DefaultView.java", "license": "gpl-3.0", "size": 8989 }
[ "javax.swing.JTable", "javax.swing.event.ListSelectionListener" ]
import javax.swing.JTable; import javax.swing.event.ListSelectionListener;
import javax.swing.*; import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
677,838
@Test public void testCashDefinition() { final ZonedDateTime date = DateUtils.getUTCDate(2017, 1, 27); final double rate = 0.01; final CashDefinition cash = CONVENTION.toCurveInstrument(date, null, null, 1, rate); assertEquals(cash.getStartDate(), DateUtils.getUTCDate(2017, 1, 27)); assertEquals...
void function() { final ZonedDateTime date = DateUtils.getUTCDate(2017, 1, 27); final double rate = 0.01; final CashDefinition cash = CONVENTION.toCurveInstrument(date, null, null, 1, rate); assertEquals(cash.getStartDate(), DateUtils.getUTCDate(2017, 1, 27)); assertEquals(cash.getEndDate(), DateUtils.getUTCDate(2017, ...
/** * Tests the cash definition. */
Tests the cash definition
testCashDefinition
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/test/java/com/mcleodmoores/analytics/financial/generator/interestrate/OvernightDepositGeneratorTest.java", "license": "apache-2.0", "size": 5818 }
[ "com.opengamma.analytics.financial.instrument.cash.CashDefinition", "com.opengamma.util.time.DateUtils", "org.testng.Assert", "org.threeten.bp.ZonedDateTime" ]
import com.opengamma.analytics.financial.instrument.cash.CashDefinition; import com.opengamma.util.time.DateUtils; import org.testng.Assert; import org.threeten.bp.ZonedDateTime;
import com.opengamma.analytics.financial.instrument.cash.*; import com.opengamma.util.time.*; import org.testng.*; import org.threeten.bp.*;
[ "com.opengamma.analytics", "com.opengamma.util", "org.testng", "org.threeten.bp" ]
com.opengamma.analytics; com.opengamma.util; org.testng; org.threeten.bp;
566,894
private static boolean isOpenPort(int port) { try { new ServerSocket(port).close(); return true; } catch (SocketException e) { return false; } catch (IOException e) { throw Throwables.propagate(e); } } publ...
static boolean function(int port) { try { new ServerSocket(port).close(); return true; } catch (SocketException e) { return false; } catch (IOException e) { throw Throwables.propagate(e); } } public static final String IP_REGEX = STR; private static final int MAX_PORT = 65535; private static final int MIN_PORT = 49152;...
/** * Return {@code true} if the {@code port} is available on the local * machine. * * @param port * @return {@code true} if the port is available */
Return true if the port is available on the local machine
isOpenPort
{ "repo_name": "dubex/concourse", "path": "concourse-driver-java/src/main/java/com/cinchapi/concourse/util/Networking.java", "license": "apache-2.0", "size": 5079 }
[ "com.google.common.base.Throwables", "java.io.IOException", "java.net.ServerSocket", "java.net.SocketException" ]
import com.google.common.base.Throwables; import java.io.IOException; import java.net.ServerSocket; import java.net.SocketException;
import com.google.common.base.*; import java.io.*; import java.net.*;
[ "com.google.common", "java.io", "java.net" ]
com.google.common; java.io; java.net;
1,199,086
public Builder addRanges(final Collection<Range> addRanges) { ranges.addAll(addRanges); return this; }
Builder function(final Collection<Range> addRanges) { ranges.addAll(addRanges); return this; }
/** * Adds multiple Ranges. * @param addRanges ranges to add * @return this Builder */
Adds multiple Ranges
addRanges
{ "repo_name": "stela/libidn", "path": "java/src/main/java/gnu/inet/encoding/RangeSet.java", "license": "lgpl-3.0", "size": 13890 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,306,469
private Property getEnumProperty(int enumValue, String text) { if (enums == null) { enums = new Property[ENUM_COUNT + 1]; } if (enums[enumValue] == null) { enums[enumValue] = EnumProperty.getInstance(enumValue, text); } return enums[enumValue]; }
Property function(int enumValue, String text) { if (enums == null) { enums = new Property[ENUM_COUNT + 1]; } if (enums[enumValue] == null) { enums[enumValue] = EnumProperty.getInstance(enumValue, text); } return enums[enumValue]; }
/** * Return a (possibly cached) enum property based in the enum value. * @param enumValue A enum value from Constants.java. * @param text the text value by which this enum property is known * @return An EnumProperty instance. */
Return a (possibly cached) enum property based in the enum value
getEnumProperty
{ "repo_name": "pellcorp/fop", "path": "src/java/org/apache/fop/fo/FOPropertyMapping.java", "license": "apache-2.0", "size": 119492 }
[ "org.apache.fop.fo.properties.EnumProperty", "org.apache.fop.fo.properties.Property" ]
import org.apache.fop.fo.properties.EnumProperty; import org.apache.fop.fo.properties.Property;
import org.apache.fop.fo.properties.*;
[ "org.apache.fop" ]
org.apache.fop;
674,142
public int getInteger(int len) throws IOException { BigInteger result = getBigInteger(len, false); if (result.compareTo(BigInteger.valueOf(Integer.MIN_VALUE)) < 0) { throw new IOException("Integer below minimum valid value"); } if (result.compareTo(BigInteger.valueOf(Int...
int function(int len) throws IOException { BigInteger result = getBigInteger(len, false); if (result.compareTo(BigInteger.valueOf(Integer.MIN_VALUE)) < 0) { throw new IOException(STR); } if (result.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) > 0) { throw new IOException(STR); } return result.intValue(); }
/** * Returns the integer which takes up the specified number * of bytes in this buffer. * @throws IOException if the result is not within the valid * range for integer, i.e. between Integer.MIN_VALUE and * Integer.MAX_VALUE. * @param len the number of bytes to use. * @return the inte...
Returns the integer which takes up the specified number of bytes in this buffer
getInteger
{ "repo_name": "Taichi-SHINDO/jdk9-jdk", "path": "src/java.base/share/classes/sun/security/util/DerInputBuffer.java", "license": "gpl-2.0", "size": 14587 }
[ "java.io.IOException", "java.math.BigInteger" ]
import java.io.IOException; import java.math.BigInteger;
import java.io.*; import java.math.*;
[ "java.io", "java.math" ]
java.io; java.math;
2,319,977
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { // TODO Auto-generated method stub String msg = "emailÒÑ´æÔÚ"; request.setAttribute("msgs", msg); return mapping.findForward("goRegUI"); }
ActionForward function(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String msg = STR; request.setAttribute("msgs", msg); return mapping.findForward(STR); }
/** * Method execute * @param mapping * @param form * @param request * @param response * @return ActionForward */
Method execute
execute
{ "repo_name": "shelwee/Films", "path": "Films/src/com/films/struts/action/RegFailAction.java", "license": "apache-2.0", "size": 985 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.struts.action.ActionForm", "org.apache.struts.action.ActionForward", "org.apache.struts.action.ActionMapping" ]
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping;
import javax.servlet.http.*; import org.apache.struts.action.*;
[ "javax.servlet", "org.apache.struts" ]
javax.servlet; org.apache.struts;
954,579
public void removeAchievement(Achievement achievement);
void function(Achievement achievement);
/** * Removes the given achievement and any children achievements that the * player has. * * @param achievement Achievement to remove * @throws IllegalArgumentException if achievement is null */
Removes the given achievement and any children achievements that the player has
removeAchievement
{ "repo_name": "dentmaged/Bukkit", "path": "src/main/java/org/bukkit/entity/Player.java", "license": "gpl-3.0", "size": 37034 }
[ "org.bukkit.Achievement" ]
import org.bukkit.Achievement;
import org.bukkit.*;
[ "org.bukkit" ]
org.bukkit;
1,816,630
public final Path getAbsolutePath(String... paths) { return getNormalizedPath(paths).toAbsolutePath(); }
final Path function(String... paths) { return getNormalizedPath(paths).toAbsolutePath(); }
/** * Gets the absolute path of the parameter. * @param paths path parameters given by the user * @return absolute path */
Gets the absolute path of the parameter
getAbsolutePath
{ "repo_name": "UnAfraid/Plugins", "path": "Plugins-API/src/main/java/com/github/unafraid/plugins/AbstractPlugin.java", "license": "mit", "size": 14489 }
[ "java.nio.file.Path" ]
import java.nio.file.Path;
import java.nio.file.*;
[ "java.nio" ]
java.nio;
252,219
@Test public void test_2() { int nnodes = 100; GraphTestUtil.buildCircular(builder(), nnodes); CountingWalker walker = new CountingWalker(); BreadthFirstTopologicalIterator iterator = createIterator(); BasicGraphTraversal traversal = new BasicGraphTraver...
void function() { int nnodes = 100; GraphTestUtil.buildCircular(builder(), nnodes); CountingWalker walker = new CountingWalker(); BreadthFirstTopologicalIterator iterator = createIterator(); BasicGraphTraversal traversal = new BasicGraphTraversal(builder().getGraph(), walker, iterator); traversal.init(); traversal.trav...
/** * Create a circular graph and do a full traversal. <br> * <br> * Expected: 1. No nodes should be visited. */
Create a circular graph and do a full traversal. Expected: 1. No nodes should be visited
test_2
{ "repo_name": "geotools/geotools", "path": "modules/extension/graph/src/test/java/org/geotools/graph/traverse/standard/BreadthFirstTopologicalIteratorTest.java", "license": "lgpl-2.1", "size": 6346 }
[ "org.geotools.graph.GraphTestUtil", "org.geotools.graph.structure.GraphVisitor", "org.geotools.graph.traverse.basic.BasicGraphTraversal", "org.geotools.graph.traverse.basic.CountingWalker", "org.junit.Assert" ]
import org.geotools.graph.GraphTestUtil; import org.geotools.graph.structure.GraphVisitor; import org.geotools.graph.traverse.basic.BasicGraphTraversal; import org.geotools.graph.traverse.basic.CountingWalker; import org.junit.Assert;
import org.geotools.graph.*; import org.geotools.graph.structure.*; import org.geotools.graph.traverse.basic.*; import org.junit.*;
[ "org.geotools.graph", "org.junit" ]
org.geotools.graph; org.junit;
1,200,076
public RelRoot convertQuery( SqlNode query, final boolean needsValidation, final boolean top) { if (needsValidation) { query = validator.validate(query); } RelNode result = convertQueryRecursive(query, top, null).rel; if (top) { if (isStream(query)) { result = ne...
RelRoot function( SqlNode query, final boolean needsValidation, final boolean top) { if (needsValidation) { query = validator.validate(query); } RelNode result = convertQueryRecursive(query, top, null).rel; if (top) { if (isStream(query)) { result = new LogicalDelta(cluster, result.getTraitSet(), result); } } RelCollat...
/** * Converts an unvalidated query's parse tree into a relational expression. * * @param query Query to convert * @param needsValidation Whether to validate the query before converting; * <code>false</code> if the query has already been * valida...
Converts an unvalidated query's parse tree into a relational expression
convertQuery
{ "repo_name": "vlsi/calcite", "path": "core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java", "license": "apache-2.0", "size": 215926 }
[ "java.util.ArrayList", "java.util.List", "org.apache.calcite.plan.RelOptUtil", "org.apache.calcite.rel.RelCollation", "org.apache.calcite.rel.RelCollations", "org.apache.calcite.rel.RelNode", "org.apache.calcite.rel.RelRoot", "org.apache.calcite.rel.hint.RelHint", "org.apache.calcite.rel.stream.Logi...
import java.util.ArrayList; import java.util.List; import org.apache.calcite.plan.RelOptUtil; import org.apache.calcite.rel.RelCollation; import org.apache.calcite.rel.RelCollations; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.RelRoot; import org.apache.calcite.rel.hint.RelHint; import org.apac...
import java.util.*; import org.apache.calcite.plan.*; import org.apache.calcite.rel.*; import org.apache.calcite.rel.hint.*; import org.apache.calcite.rel.stream.*; import org.apache.calcite.rel.type.*; import org.apache.calcite.sql.*;
[ "java.util", "org.apache.calcite" ]
java.util; org.apache.calcite;
1,565,282
public @NonNull BallColor getIconColor() { if(!isBuilding()) { // already built return getResult().color; } // a new build is in progress BallColor baseColor; RunT pb = getPreviousBuild(); if(pb==null) baseColor = BallColor.NOTBUIL...
@NonNull BallColor function() { if(!isBuilding()) { return getResult().color; } BallColor baseColor; RunT pb = getPreviousBuild(); if(pb==null) baseColor = BallColor.NOTBUILT; else baseColor = pb.getIconColor(); return baseColor.anime(); }
/** * Gets the icon color for display. */
Gets the icon color for display
getIconColor
{ "repo_name": "rsandell/jenkins", "path": "core/src/main/java/hudson/model/Run.java", "license": "mit", "size": 96962 }
[ "edu.umd.cs.findbugs.annotations.NonNull" ]
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.*;
[ "edu.umd.cs" ]
edu.umd.cs;
2,082,086
public ActionForward sort(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { LaborCorrectionForm correctionForm = (LaborCorrectionForm) form; // when we return from the lookup, our next request's method to call is going to...
ActionForward function(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { LaborCorrectionForm correctionForm = (LaborCorrectionForm) form; correctionForm.registerEditableProperty(KRADConstants.DISPATCH_REQUEST_PARAMETER); int maxRowsPerPage = CorrectionD...
/** * Sort labor correction document by selected column * * @see org.kuali.rice.kns.web.struts.action.KualiTableRenderAction#sort(org.apache.struts.action.ActionMapping, * org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) ...
Sort labor correction document by selected column
sort
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/ld/document/web/struts/LaborCorrectionAction.java", "license": "agpl-3.0", "size": 74380 }
[ "java.util.Comparator", "java.util.List", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.struts.action.ActionForm", "org.apache.struts.action.ActionForward", "org.apache.struts.action.ActionMapping", "org.kuali.kfs.gl.document.CorrectionDocumentUtils", ...
import java.util.Comparator; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.kuali.kfs.gl.document.Corr...
import java.util.*; import javax.servlet.http.*; import org.apache.struts.action.*; import org.kuali.kfs.gl.document.*; import org.kuali.kfs.module.ld.document.service.*; import org.kuali.kfs.sys.*; import org.kuali.kfs.sys.context.*; import org.kuali.rice.kns.web.struts.form.*; import org.kuali.rice.kns.web.ui.*; impo...
[ "java.util", "javax.servlet", "org.apache.struts", "org.kuali.kfs", "org.kuali.rice" ]
java.util; javax.servlet; org.apache.struts; org.kuali.kfs; org.kuali.rice;
2,487,461
public synchronized void start() { log.info("Starting Tunnel Stats collection thread for {}", pcepTunnelId); stopped = false; timeout = timer.newTimeout(this, 1, TimeUnit.SECONDS); }
synchronized void function() { log.info(STR, pcepTunnelId); stopped = false; timeout = timer.newTimeout(this, 1, TimeUnit.SECONDS); }
/** * Starts the collector. */
Starts the collector
start
{ "repo_name": "packet-tracker/onos", "path": "providers/pcep/tunnel/src/main/java/org/onosproject/provider/pcep/tunnel/impl/TunnelStatsCollector.java", "license": "apache-2.0", "size": 3181 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,895,190
public BingVideoSearchAPIImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; } private BingVideos bingVideos;
BingVideoSearchAPIImpl function(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; } private BingVideos bingVideos;
/** * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself */
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true
withGenerateClientRequestId
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cognitiveservices/ms-azure-cs-videosearch/src/main/java/com/microsoft/azure/cognitiveservices/search/videosearch/implementation/BingVideoSearchAPIImpl.java", "license": "mit", "size": 5422 }
[ "com.microsoft.azure.cognitiveservices.search.videosearch.BingVideos" ]
import com.microsoft.azure.cognitiveservices.search.videosearch.BingVideos;
import com.microsoft.azure.cognitiveservices.search.videosearch.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
442,783
public static API getAPIFromApiIdOrUUID(String apiId, String requestedTenantDomain) throws APIManagementException { API api; APIProvider apiProvider = RestApiUtil.getLoggedInUserProvider(); if (RestApiUtil.isUUID(apiId)) { api = apiProvider.getAPIbyUUID(apiId, request...
static API function(String apiId, String requestedTenantDomain) throws APIManagementException { API api; APIProvider apiProvider = RestApiUtil.getLoggedInUserProvider(); if (RestApiUtil.isUUID(apiId)) { api = apiProvider.getAPIbyUUID(apiId, requestedTenantDomain); } else { APIIdentifier apiIdentifier; try { apiIdentifi...
/** * Returns the API given the uuid or the id in {provider}-{api}-{version} format * * @param apiId uuid or the id in {provider}-{api}-{version} format * @param requestedTenantDomain tenant domain of the API * @return API which represents the given id * @throws APIManageme...
Returns the API given the uuid or the id in {provider}-{api}-{version} format
getAPIFromApiIdOrUUID
{ "repo_name": "nuwand/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/utils/mappings/APIMappingUtil.java", "license": "apache-2.0", "size": 42815 }
[ "java.io.UnsupportedEncodingException", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.api.APIProvider", "org.wso2.carbon.apimgt.api.model.APIIdentifier", "org.wso2.carbon.apimgt.rest.api.util.utils.RestApiUtil" ]
import java.io.UnsupportedEncodingException; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.APIProvider; import org.wso2.carbon.apimgt.api.model.APIIdentifier; import org.wso2.carbon.apimgt.rest.api.util.utils.RestApiUtil;
import java.io.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.rest.api.util.utils.*;
[ "java.io", "org.wso2.carbon" ]
java.io; org.wso2.carbon;
2,104,805
@Override public UserProcessInstance startProcess(final String processClassName, final Map<String, ?> vars, final Map<String, Object> widgetSubmission, final boolean advance) throws CMWorkflowException { final CMProcessClass processClass = workflowEngine.findProcessClassByName(processClassName); return start...
UserProcessInstance function(final String processClassName, final Map<String, ?> vars, final Map<String, Object> widgetSubmission, final boolean advance) throws CMWorkflowException { final CMProcessClass processClass = workflowEngine.findProcessClassByName(processClassName); return startProcess(processClass, vars, widg...
/** * Starts the process, kills every activity except for the one that this * user wanted to start, advances it if requested. * * @param processClassName * process class name * @param vars * values * @param widgetSubmission * @param advance * * @return the created process i...
Starts the process, kills every activity except for the one that this user wanted to start, advances it if requested
startProcess
{ "repo_name": "jzinedine/CMDBuild", "path": "core/src/main/java/org/cmdbuild/logic/workflow/DefaultWorkflowLogic.java", "license": "agpl-3.0", "size": 19284 }
[ "java.util.Map", "org.cmdbuild.workflow.CMProcessClass", "org.cmdbuild.workflow.CMWorkflowException", "org.cmdbuild.workflow.user.UserProcessInstance" ]
import java.util.Map; import org.cmdbuild.workflow.CMProcessClass; import org.cmdbuild.workflow.CMWorkflowException; import org.cmdbuild.workflow.user.UserProcessInstance;
import java.util.*; import org.cmdbuild.workflow.*; import org.cmdbuild.workflow.user.*;
[ "java.util", "org.cmdbuild.workflow" ]
java.util; org.cmdbuild.workflow;
386,407
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<CustomerPolicyInner>> getByCustomerWithResponseAsync( String billingAccountName, String customerName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgume...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<CustomerPolicyInner>> function( String billingAccountName, String customerName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (billingAccountName == null) { return Mono .error(new IllegalArgumentExceptio...
/** * Lists the policies for a customer. This operation is supported only for billing accounts with agreement type * Microsoft Partner Agreement. * * @param billingAccountName The ID that uniquely identifies a billing account. * @param customerName The ID that uniquely identifies a customer. ...
Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement
getByCustomerWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesClientImpl.java", "license": "mit", "size": 35613 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.billing.fluent.models.CustomerPolicyInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.billing.fluent.models.CustomerPolicyInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.billing.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
744,404
@SuppressWarnings("unchecked") protected List<String> dropScript(Collection<Table> tables, Dialect dialect, String defaultCatalog, String defaultSchema) { final List<String> script = new ArrayList<String>(tables.size() * 2); if (dialect.dropConstraints()) { for (final Table ...
@SuppressWarnings(STR) List<String> function(Collection<Table> tables, Dialect dialect, String defaultCatalog, String defaultSchema) { final List<String> script = new ArrayList<String>(tables.size() * 2); if (dialect.dropConstraints()) { for (final Table table : tables) { if (table.isPhysicalTable()) { for (final Itera...
/** * Generate the drop scripts and add them to the script list */
Generate the drop scripts and add them to the script list
dropScript
{ "repo_name": "Jasig/SSP-Platform", "path": "uportal-war/src/main/java/org/jasig/portal/tools/dbloader/HibernateDbLoader.java", "license": "apache-2.0", "size": 13234 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator", "java.util.List", "org.hibernate.dialect.Dialect", "org.hibernate.mapping.ForeignKey", "org.hibernate.mapping.Table" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.hibernate.dialect.Dialect; import org.hibernate.mapping.ForeignKey; import org.hibernate.mapping.Table;
import java.util.*; import org.hibernate.dialect.*; import org.hibernate.mapping.*;
[ "java.util", "org.hibernate.dialect", "org.hibernate.mapping" ]
java.util; org.hibernate.dialect; org.hibernate.mapping;
445,557
public Observable<ServiceResponse<EndpointInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, EndpointUpdateParametersInner endpointUpdateProperties) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resour...
Observable<ServiceResponse<EndpointInner>> function(String resourceGroupName, String profileName, String endpointName, EndpointUpdateParametersInner endpointUpdateProperties) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (profileName == null) { throw new IllegalArgumentException(STR);...
/** * Updates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags and Origin HostHeader can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update custom domains, use the Update Custom Domain...
Updates an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags and Origin HostHeader can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update custom domains, use the Update Custom Domain operation
beginUpdateWithServiceResponseAsync
{ "repo_name": "anudeepsharma/azure-sdk-for-java", "path": "azure-mgmt-cdn/src/main/java/com/microsoft/azure/management/cdn/implementation/EndpointsInner.java", "license": "mit", "size": 136317 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,333,805
public Date getDate() { return getCalendar().getTime(); }
Date function() { return getCalendar().getTime(); }
/** * Returns the Date associated with the picker * * @return The current selected date. */
Returns the Date associated with the picker
getDate
{ "repo_name": "openflexo-team/gina", "path": "flexographicutils/src/main/java/org/openflexo/swing/DateSelector.java", "license": "gpl-3.0", "size": 20004 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
317,309
protected void postRetrofitError(String TAG, RetrofitError e) { if (e.getCause() instanceof ConnectException) { postErrorEvent(ErrorEvent.ErrorType.TIMEOUT, "Timeout", e); } else { postErrorEvent(ErrorEvent.ErrorType.GENERAL, "General Error", e); } Log.e(TAG, ...
void function(String TAG, RetrofitError e) { if (e.getCause() instanceof ConnectException) { postErrorEvent(ErrorEvent.ErrorType.TIMEOUT, STR, e); } else { postErrorEvent(ErrorEvent.ErrorType.GENERAL, STR, e); } Log.e(TAG, STR + e.getMessage()); }
/** * Post an ErrorEvent for retrofit errors. * @param TAG - TAG for logging * @param e RetrofitError */
Post an ErrorEvent for retrofit errors
postRetrofitError
{ "repo_name": "MyGrades/mygrades-app", "path": "app/src/main/java/de/mygrades/main/processor/BaseProcessor.java", "license": "apache-2.0", "size": 2755 }
[ "android.util.Log", "de.mygrades.main.events.ErrorEvent", "java.net.ConnectException" ]
import android.util.Log; import de.mygrades.main.events.ErrorEvent; import java.net.ConnectException;
import android.util.*; import de.mygrades.main.events.*; import java.net.*;
[ "android.util", "de.mygrades.main", "java.net" ]
android.util; de.mygrades.main; java.net;
221,264
private static String createSamePackageRegexp(int firstPackageDomainsCount, DetailAST packageNode) { final String packageFullPath = getFullImportIdent(packageNode); return getFirstNDomainsFromIdent(firstPackageDomainsCount, packageFullPath); }
static String function(int firstPackageDomainsCount, DetailAST packageNode) { final String packageFullPath = getFullImportIdent(packageNode); return getFirstNDomainsFromIdent(firstPackageDomainsCount, packageFullPath); }
/** * Creates samePackageDomainsRegExp of the first package domains. * @param firstPackageDomainsCount * number of first package domains. * @param packageNode * package node. * @return same package regexp. */
Creates samePackageDomainsRegExp of the first package domains
createSamePackageRegexp
{ "repo_name": "Bhavik3/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheck.java", "license": "lgpl-2.1", "size": 33291 }
[ "com.puppycrawl.tools.checkstyle.api.DetailAST" ]
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import com.puppycrawl.tools.checkstyle.api.*;
[ "com.puppycrawl.tools" ]
com.puppycrawl.tools;
1,968,455
@Test public void testNumberOfEmittedSignals() throws InterruptedException, IllegalStateException, AnalysisConfigurationException { // Delivering 10 records with an interval time of 1 second, the analysis should run not more than 12 seconds. final AnalysisController ac = new AnalysisController(); final Analys...
void function() throws InterruptedException, IllegalStateException, AnalysisConfigurationException { final AnalysisController ac = new AnalysisController(); final AnalysisControllerThread thread = new AnalysisControllerThread(ac); final Configuration configuration = new Configuration(); configuration.setProperty(TimeRe...
/** * This test should make sure that the timer delivers the correct amount of records. * * @throws InterruptedException * If the test thread is interrupted. * @throws IllegalStateException * If the analysis is in the wrong state. * @throws AnalysisConfigurationException * ...
This test should make sure that the timer delivers the correct amount of records
testNumberOfEmittedSignals
{ "repo_name": "HaStr/kieker", "path": "kieker-analysis/test/kieker/test/analysis/junit/plugin/reader/timer/TimeReaderTest.java", "license": "apache-2.0", "size": 7198 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,712,907
private void fireValueEvent(final ComputationElementDTO computationElement, final String value) { // Firing a value event to register the change and trigger dependencies update. final ComputationElementDTO withHandlers = elementsWithHandlers.get(computationElement.getId()); if (withHandlers != null) { withH...
void function(final ComputationElementDTO computationElement, final String value) { final ComputationElementDTO withHandlers = elementsWithHandlers.get(computationElement.getId()); if (withHandlers != null) { withHandlers.fireValueEvent(value); } else { computationElement.fireValueEvent(value); } }
/** * Fire a value event for the given computation element. * * @param computationElement * Modified computation field. * @param value * New value. */
Fire a value event for the given computation element
fireValueEvent
{ "repo_name": "Raphcal/sigmah", "path": "src/main/java/org/sigmah/client/computation/ComputationTriggerManager.java", "license": "gpl-3.0", "size": 10675 }
[ "org.sigmah.shared.dto.element.ComputationElementDTO" ]
import org.sigmah.shared.dto.element.ComputationElementDTO;
import org.sigmah.shared.dto.element.*;
[ "org.sigmah.shared" ]
org.sigmah.shared;
556,833
void check(View view, NoMatchingViewException noViewFoundException);
void check(View view, NoMatchingViewException noViewFoundException);
/** * Checks the state of the given view (if such a view is present). * * @param view the view, if one was found during the view interaction or null if it was not (which * may be an acceptable option for an assertion) * @param noViewFoundException an exception detailing why the view could not be foun...
Checks the state of the given view (if such a view is present)
check
{ "repo_name": "android/android-test", "path": "espresso/core/java/androidx/test/espresso/ViewAssertion.java", "license": "apache-2.0", "size": 2068 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,677,882
public static DataResource fromName(String name) { String[] parts = StringUtils.split(name, '/'); if (!parts[0].equals(ROOT_NAME) || parts.length > 3) throw new IllegalArgumentException(String.format("%s is not a valid data resource name", name)); if (parts.length == 1) ...
static DataResource function(String name) { String[] parts = StringUtils.split(name, '/'); if (!parts[0].equals(ROOT_NAME) parts.length > 3) throw new IllegalArgumentException(String.format(STR, name)); if (parts.length == 1) return root(); if (parts.length == 2) return keyspace(parts[1]); return table(parts[1], parts[...
/** * Parses a data resource name into a DataResource instance. * * @param name Name of the data resource. * @return DataResource instance matching the name. */
Parses a data resource name into a DataResource instance
fromName
{ "repo_name": "nutbunnies/cassandra", "path": "src/java/org/apache/cassandra/auth/DataResource.java", "license": "apache-2.0", "size": 8428 }
[ "org.apache.commons.lang3.StringUtils" ]
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.*;
[ "org.apache.commons" ]
org.apache.commons;
2,747,535
private void scrollDown() { // Gets the active text edition area JTextComponent textPane = AcideMainWindow.getInstance() .getConsolePanel().getTextPane(); // Gets the view port from the text pane parent JViewport viewport = (JViewport) textPane.getParent(); // Gets the view rectangle from i...
void function() { JTextComponent textPane = AcideMainWindow.getInstance() .getConsolePanel().getTextPane(); JViewport viewport = (JViewport) textPane.getParent(); Rectangle rectangle = viewport.getViewRect(); Point point = rectangle.getLocation(); int increment = textPane.getFontMetrics(textPane.getFont()).getHeight() ...
/** * Performs the ACIDE - A Configurable IDE console panel scroll pane scroll * down action. */
Performs the ACIDE - A Configurable IDE console panel scroll pane scroll down action
scrollDown
{ "repo_name": "salcedonia/acide-0-8-release-2010-2011", "path": "acide/src/acide/gui/consolePanel/listeners/AcideConsolePanelKeyboardListener.java", "license": "gpl-3.0", "size": 20079 }
[ "java.awt.Point", "java.awt.Rectangle", "javax.swing.JViewport", "javax.swing.text.JTextComponent" ]
import java.awt.Point; import java.awt.Rectangle; import javax.swing.JViewport; import javax.swing.text.JTextComponent;
import java.awt.*; import javax.swing.*; import javax.swing.text.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
498,199
public Collection<Loan> findLoansByFromTo(Date fromDate, Date toDate);
Collection<Loan> function(Date fromDate, Date toDate);
/** * Finds and returns all loans limited satisfying fromDate and toDate * limitations. * * Method allows null values as parameters. Null value represents no * limitation on fromDate and/or toDate parameters. (ie. * LoanDao.findLoansByFromTo(null,null) returns ALL loans from database.) ...
Finds and returns all loans limited satisfying fromDate and toDate limitations. Method allows null values as parameters. Null value represents no limitation on fromDate and/or toDate parameters. (ie. LoanDao.findLoansByFromTo(null,null) returns ALL loans from database.)
findLoansByFromTo
{ "repo_name": "xklech/PA165_library", "path": "library-impl/src/main/java/cz/muni/fi/pa165/library/dao/LoanDao.java", "license": "gpl-2.0", "size": 2081 }
[ "cz.muni.fi.pa165.library.entity.Loan", "java.util.Collection", "java.util.Date" ]
import cz.muni.fi.pa165.library.entity.Loan; import java.util.Collection; import java.util.Date;
import cz.muni.fi.pa165.library.entity.*; import java.util.*;
[ "cz.muni.fi", "java.util" ]
cz.muni.fi; java.util;
107,532
@ServiceMethod(returns = ReturnType.SINGLE) Response<WebhookInner> getWithResponse( String resourceGroupName, String registryName, String webhookName, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<WebhookInner> getWithResponse( String resourceGroupName, String registryName, String webhookName, Context context);
/** * Gets the properties of the specified webhook. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param context The context to a...
Gets the properties of the specified webhook
getWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/WebhooksClient.java", "license": "mit", "size": 36760 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.containerregistry.fluent.models.WebhookInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.containerregistry.fluent.models.WebhookInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.containerregistry.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,085,397
return new AbstractSet<Relation>() {
return new AbstractSet<Relation>() {
/** * Returns a set view of the relations mapped by the given lower/upper bounds. * @requires lowers.keySet().equals(uppers.keySet()) * @return a set view of the relations mapped by the given lower/upper bounds */
Returns a set view of the relations mapped by the given lower/upper bounds
relations
{ "repo_name": "emina/kodkod", "path": "src/kodkod/instance/Bounds.java", "license": "mit", "size": 12819 }
[ "java.util.AbstractSet" ]
import java.util.AbstractSet;
import java.util.*;
[ "java.util" ]
java.util;
2,547,552
loader.show(); view.setTitle(editorPartPresenter.getEditorInput().getFile().getName()); if (!(editorPartPresenter instanceof TextEditorPresenter)) { Log.error(getClass(), "Open Declaration support only TextEditorPresenter as editor"); return; } activeEditor = ((T...
loader.show(); view.setTitle(editorPartPresenter.getEditorInput().getFile().getName()); if (!(editorPartPresenter instanceof TextEditorPresenter)) { Log.error(getClass(), STR); return; } activeEditor = ((TextEditorPresenter)editorPartPresenter); cursorOffset = activeEditor.getCursorOffset(); VirtualFile file = activeEd...
/** * Shows the structure of the opened class. * * @param editorPartPresenter * the active editor */
Shows the structure of the opened class
show
{ "repo_name": "evidolob/che", "path": "plugins/plugin-java/che-plugin-java-ext-lang-client/src/main/java/org/eclipse/che/ide/ext/java/client/navigation/filestructure/FileStructurePresenter.java", "license": "epl-1.0", "size": 8309 }
[ "org.eclipse.che.api.promises.client.Operation", "org.eclipse.che.api.promises.client.OperationException", "org.eclipse.che.api.promises.client.Promise", "org.eclipse.che.ide.api.editor.texteditor.TextEditorPresenter", "org.eclipse.che.ide.api.project.tree.VirtualFile", "org.eclipse.che.ide.ext.java.clien...
import org.eclipse.che.api.promises.client.Operation; import org.eclipse.che.api.promises.client.OperationException; import org.eclipse.che.api.promises.client.Promise; import org.eclipse.che.ide.api.editor.texteditor.TextEditorPresenter; import org.eclipse.che.ide.api.project.tree.VirtualFile; import org.eclipse.che.i...
import org.eclipse.che.api.promises.client.*; import org.eclipse.che.ide.api.editor.texteditor.*; import org.eclipse.che.ide.api.project.tree.*; import org.eclipse.che.ide.ext.java.client.projecttree.*; import org.eclipse.che.ide.ext.java.shared.dto.model.*; import org.eclipse.che.ide.util.loging.*;
[ "org.eclipse.che" ]
org.eclipse.che;
1,253,224
protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
void function(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Syntax: * ';'? */
Syntax: ';'
emit_XImportDeclaration_SemicolonKeyword_2_q
{ "repo_name": "niksavis/mm-dsl", "path": "org.xtext.nv.dsl/src-gen/org/xtext/nv/dsl/serializer/MMDSLSyntacticSequencer.java", "license": "epl-1.0", "size": 16434 }
[ "java.util.List", "org.eclipse.emf.ecore.EObject", "org.eclipse.xtext.nodemodel.INode", "org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider" ]
import java.util.List; import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.nodemodel.INode; import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider;
import java.util.*; import org.eclipse.emf.ecore.*; import org.eclipse.xtext.nodemodel.*; import org.eclipse.xtext.serializer.analysis.*;
[ "java.util", "org.eclipse.emf", "org.eclipse.xtext" ]
java.util; org.eclipse.emf; org.eclipse.xtext;
2,282,343
public Symbol map(int category, String str) { Symbol symbol; Object obj = entityMap.get(str); if (obj != null) { // found - was already stored symbol = (Symbol) obj; } else { // not found - create a new entity symbol = new Symbol(category, str); ...
Symbol function(int category, String str) { Symbol symbol; Object obj = entityMap.get(str); if (obj != null) { symbol = (Symbol) obj; } else { symbol = new Symbol(category, str); entityMap.put(str, symbol); if (category == 0) { symbol.setCategory(symbolList.size()); }
/** Tries to map the parameter entity (string) * to one of the entities stored so far * @param category category of the new symbol * @param str entity (identifier, number and so on) to be mapped * @return index of previously stored symbol, * or of a new symbol if not found */
Tries to map the parameter entity (string) to one of the entities stored so far
map
{ "repo_name": "gfis/jextra", "path": "src/main/java/org/teherba/jextra/scan/SymbolList.java", "license": "apache-2.0", "size": 11434 }
[ "org.teherba.jextra.scan.Symbol" ]
import org.teherba.jextra.scan.Symbol;
import org.teherba.jextra.scan.*;
[ "org.teherba.jextra" ]
org.teherba.jextra;
2,563,845
@Test public void subArray1() { int n = 3; SymbolicConstant[] sc = new SymbolicConstant[n]; Map<SymbolicExpression, SymbolicExpression> map = new HashMap<>(); SymbolicExpression array1 = universe.symbolicConstant( universe.stringObject("a"), universe.arrayType(integerType)); SymbolicExpression array2;...
void function() { int n = 3; SymbolicConstant[] sc = new SymbolicConstant[n]; Map<SymbolicExpression, SymbolicExpression> map = new HashMap<>(); SymbolicExpression array1 = universe.symbolicConstant( universe.stringObject("a"), universe.arrayType(integerType)); SymbolicExpression array2; for (int i = 0; i < n; i++) sc[...
/** * Tests substitution of symbolic constants applied to an array of symbolic * constants. */
Tests substitution of symbolic constants applied to an array of symbolic constants
subArray1
{ "repo_name": "byu-vv-lab/sarl", "path": "test/edu/udel/cis/vsl/sarl/universe/IdealUniverseTest.java", "license": "gpl-3.0", "size": 6192 }
[ "edu.udel.cis.vsl.sarl.IF", "java.util.HashMap", "java.util.Map", "org.junit.Assert" ]
import edu.udel.cis.vsl.sarl.IF; import java.util.HashMap; import java.util.Map; import org.junit.Assert;
import edu.udel.cis.vsl.sarl.*; import java.util.*; import org.junit.*;
[ "edu.udel.cis", "java.util", "org.junit" ]
edu.udel.cis; java.util; org.junit;
241,019
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { loadingPanel = new javax.swing.JPanel(); donePanel = new javax.swing.JPanel(); statusLabel = new javax.swing.JLabel(); vie...
@SuppressWarnings(STR) void function() { loadingPanel = new javax.swing.JPanel(); donePanel = new javax.swing.JPanel(); statusLabel = new javax.swing.JLabel(); viewLogButton = new javax.swing.JButton(); titleLabel = new javax.swing.JLabel(); inProgressPanel = new javax.swing.JPanel(); progressBar = new javax.swing.JPro...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "jgarman/autopsy", "path": "Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java", "license": "apache-2.0", "size": 14269 }
[ "javax.swing.JProgressBar" ]
import javax.swing.JProgressBar;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,339,084
private boolean handleFuture(final ChannelFuture future) { try { future.await(); } catch (InterruptedException e) { if (LOG.isWarnEnabled()) { LOG.warn("could not start UPD server", e); } return false; } boolean success = future.isSuccess(); if (success) { return true; } else { futu...
boolean function(final ChannelFuture future) { try { future.await(); } catch (InterruptedException e) { if (LOG.isWarnEnabled()) { LOG.warn(STR, e); } return false; } boolean success = future.isSuccess(); if (success) { return true; } else { future.cause().printStackTrace(); return false; } }
/** * Handles the waiting and returning the channel. * * @param future * The future to wait for * @return The channel or null if we failed to bind. */
Handles the waiting and returning the channel
handleFuture
{ "repo_name": "Biocodr/TomP2P", "path": "core/src/main/java/net/tomp2p/connection/ChannelServer.java", "license": "apache-2.0", "size": 12362 }
[ "io.netty.channel.ChannelFuture" ]
import io.netty.channel.ChannelFuture;
import io.netty.channel.*;
[ "io.netty.channel" ]
io.netty.channel;
1,146,406
private Payment requestNewPayment(Integer reservationID) { ClientConfig clientConfig = new DefaultClientConfig(); clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE); Client client = Client.create(clientConfig); MultivaluedMap<String, String> formData = new Multivalue...
Payment function(Integer reservationID) { ClientConfig clientConfig = new DefaultClientConfig(); clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE); Client client = Client.create(clientConfig); MultivaluedMap<String, String> formData = new MultivaluedMapImpl(); formData.add(Consts.PARA...
/** * requests a new Payment using POST * * @return Response */
requests a new Payment using POST
requestNewPayment
{ "repo_name": "fraunhoferfokus/gemo", "path": "src/mobility-services/payments/src/test/java/de/fhg/fokus/mdc/payments/tests/UnitTest.java", "license": "agpl-3.0", "size": 16920 }
[ "com.sun.jersey.api.client.Client", "com.sun.jersey.api.client.config.ClientConfig", "com.sun.jersey.api.client.config.DefaultClientConfig", "com.sun.jersey.api.json.JSONConfiguration", "com.sun.jersey.core.util.MultivaluedMapImpl", "de.fhg.fokus.mdc.jsonObjects.Payment", "de.fhg.fokus.mdc.payments.lib....
import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.config.ClientConfig; import com.sun.jersey.api.client.config.DefaultClientConfig; import com.sun.jersey.api.json.JSONConfiguration; import com.sun.jersey.core.util.MultivaluedMapImpl; import de.fhg.fokus.mdc.jsonObjects.Payment; import de.fhg.fok...
import com.sun.jersey.api.client.*; import com.sun.jersey.api.client.config.*; import com.sun.jersey.api.json.*; import com.sun.jersey.core.util.*; import de.fhg.fokus.mdc.*; import de.fhg.fokus.mdc.payments.lib.*; import javax.ws.rs.core.*;
[ "com.sun.jersey", "de.fhg.fokus", "javax.ws" ]
com.sun.jersey; de.fhg.fokus; javax.ws;
336,428
public void setSigPolicyQualifiers(List<String> sigPolicyQualifiers) { if (sigPolicyQualifiers == null) { throw new IllegalArgumentException("Parameter 'sigPolicyQualifiers' is null"); } for (String qualifier : sigPolicyQualifiers) { if (qualifier == null || qualifier...
void function(List<String> sigPolicyQualifiers) { if (sigPolicyQualifiers == null) { throw new IllegalArgumentException(STR); } for (String qualifier : sigPolicyQualifiers) { if (qualifier == null qualifier.isEmpty()) { throw new IllegalArgumentException(STR); } } this.sigPolicyQualifiers = new ArrayList<>(sigPolicyQua...
/** * Sets the signature policy qualifiers. Each qualifier can be a text or a XML fragment with the root element * 'SigPolicyQualifier' with the XAdES namespace. * * @throws IllegalArgumentException if the input parameter is <code>null</code>, or one of the qualifiers is * ...
Sets the signature policy qualifiers. Each qualifier can be a text or a XML fragment with the root element 'SigPolicyQualifier' with the XAdES namespace
setSigPolicyQualifiers
{ "repo_name": "nikhilvibhav/camel", "path": "components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/XAdESSignatureProperties.java", "license": "apache-2.0", "size": 56625 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,946,414
Ticket getTicket(String ticketId);
Ticket getTicket(String ticketId);
/** * Retrieve a ticket from the registry. * * @param ticketId the id of the ticket we wish to retrieve * @return the requested ticket. */
Retrieve a ticket from the registry
getTicket
{ "repo_name": "briandwyer/cas-hudson", "path": "cas-server-core/src/main/java/org/jasig/cas/ticket/registry/TicketRegistry.java", "license": "apache-2.0", "size": 2885 }
[ "org.jasig.cas.ticket.Ticket" ]
import org.jasig.cas.ticket.Ticket;
import org.jasig.cas.ticket.*;
[ "org.jasig.cas" ]
org.jasig.cas;
265,588
@Nullable public Bitmap generateIconForUrl(GURL url, boolean includePrivateRegistries) { if (url == null) return null; return generateIconForUrl(url.getSpec(), includePrivateRegistries); }
Bitmap function(GURL url, boolean includePrivateRegistries) { if (url == null) return null; return generateIconForUrl(url.getSpec(), includePrivateRegistries); }
/** * Returns a Bitmap representing the icon to be used for |url|. * * @param url URL for which the icon should be generated. * @param includePrivateRegistries Should private registries be considered as TLDs? * @return The generated icon, or NULL if |url| is empty or the domain cannot be resolv...
Returns a Bitmap representing the icon to be used for |url|
generateIconForUrl
{ "repo_name": "scheib/chromium", "path": "components/browser_ui/widget/android/java/src/org/chromium/components/browser_ui/widget/RoundedIconGenerator.java", "license": "bsd-3-clause", "size": 8158 }
[ "android.graphics.Bitmap" ]
import android.graphics.Bitmap;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
115,414
@Test public void testMergeMinus() throws Exception { HepProgram program = new HepProgramBuilder() .addRuleInstance(UnionMergeRule.MINUS_INSTANCE) .build(); final String sql = "select * from emp where deptno = 10\n" + "except\n" + "select * from emp where deptno = 20\n" ...
@Test void function() throws Exception { HepProgram program = new HepProgramBuilder() .addRuleInstance(UnionMergeRule.MINUS_INSTANCE) .build(); final String sql = STR + STR + STR + STR + STR; sql(sql).with(program).check(); } /** Tests {@link UnionMergeRule#MINUS_INSTANCE} * does not merge {@code Minus(a, Minus(b, c))}
/** Tests {@link UnionMergeRule#MINUS_INSTANCE}, which merges 2 * {@link Minus} operators into a single {@code Minus} with 3 * inputs. */
Tests <code>UnionMergeRule#MINUS_INSTANCE</code>, which merges 2 <code>Minus</code> operators into a single Minus with 3
testMergeMinus
{ "repo_name": "sreev/incubator-calcite", "path": "core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java", "license": "apache-2.0", "size": 120819 }
[ "org.apache.calcite.plan.hep.HepProgram", "org.apache.calcite.plan.hep.HepProgramBuilder", "org.apache.calcite.rel.core.Minus", "org.apache.calcite.rel.rules.UnionMergeRule", "org.junit.Test" ]
import org.apache.calcite.plan.hep.HepProgram; import org.apache.calcite.plan.hep.HepProgramBuilder; import org.apache.calcite.rel.core.Minus; import org.apache.calcite.rel.rules.UnionMergeRule; import org.junit.Test;
import org.apache.calcite.plan.hep.*; import org.apache.calcite.rel.core.*; import org.apache.calcite.rel.rules.*; import org.junit.*;
[ "org.apache.calcite", "org.junit" ]
org.apache.calcite; org.junit;
859,873
public EntityManager getEm() { return em; }
EntityManager function() { return em; }
/** * Getter du membre em. * @return <code>EntityManager</code> le membre em. */
Getter du membre em
getEm
{ "repo_name": "GIP-RECIA/esup-news", "path": "src/org/uhp/portlets/news/web/ShowCategorySettingController.java", "license": "gpl-3.0", "size": 5210 }
[ "org.esco.portlets.news.services.EntityManager" ]
import org.esco.portlets.news.services.EntityManager;
import org.esco.portlets.news.services.*;
[ "org.esco.portlets" ]
org.esco.portlets;
603,745
public static void checkFiles(ArrayList<String> list) throws ErrorMessage { for (int i = 0; i < list.size(); ++i) { File file = new File(list.get(i)); if (! file.exists()) throw new ErrorMessage("File not found: " + file); if (! file.isFile()) ...
static void function(ArrayList<String> list) throws ErrorMessage { for (int i = 0; i < list.size(); ++i) { File file = new File(list.get(i)); if (! file.exists()) throw new ErrorMessage(STR + file); if (! file.isFile()) throw new ErrorMessage(STR + file); if (! file.canRead()) throw new ErrorMessage(STR + file); } }
/** Check if files exist. @param list List of file names (as strings) @throws ErrorMessage If one of the files is not a normal file or not readable. */
Check if files exist
checkFiles
{ "repo_name": "noe/sgf.importer", "path": "src/sgfimporter/tools/regress/RegressUtil.java", "license": "gpl-2.0", "size": 2452 }
[ "java.io.File", "java.util.ArrayList" ]
import java.io.File; import java.util.ArrayList;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
925,645
protected String getSequenceTableName(Session session) { String sequenceTableName = null; if (session.getProject().usesSequencing()) { Sequence sequence = session.getLogin().getDefaultSequence(); if (sequence instanceof TableSequence) { sequenceTableName = ((T...
String function(Session session) { String sequenceTableName = null; if (session.getProject().usesSequencing()) { Sequence sequence = session.getLogin().getDefaultSequence(); if (sequence instanceof TableSequence) { sequenceTableName = ((TableSequence)sequence).getQualifiedTableName(); } } return sequenceTableName; }
/** * This returns the Sequence Table's qualified name, without delimiting. * @param session * @return the qualified table name */
This returns the Sequence Table's qualified name, without delimiting
getSequenceTableName
{ "repo_name": "gameduell/eclipselink.runtime", "path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/tools/schemaframework/TableCreator.java", "license": "epl-1.0", "size": 23268 }
[ "org.eclipse.persistence.sequencing.Sequence", "org.eclipse.persistence.sequencing.TableSequence", "org.eclipse.persistence.sessions.Session" ]
import org.eclipse.persistence.sequencing.Sequence; import org.eclipse.persistence.sequencing.TableSequence; import org.eclipse.persistence.sessions.Session;
import org.eclipse.persistence.sequencing.*; import org.eclipse.persistence.sessions.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
516,127
public Node compose(Reader io) { return loader.compose(io); }
Node function(Reader io) { return loader.compose(io); }
/** * Parse the first YAML document in a stream and produce the corresponding * representation tree. * * @param io * stream of a YAML document * @return parsed root Node for the specified YAML document */
Parse the first YAML document in a stream and produce the corresponding representation tree
compose
{ "repo_name": "spariev/snakeyaml", "path": "src/main/java/org/yaml/snakeyaml/Yaml.java", "license": "apache-2.0", "size": 9531 }
[ "java.io.Reader", "org.yaml.snakeyaml.nodes.Node" ]
import java.io.Reader; import org.yaml.snakeyaml.nodes.Node;
import java.io.*; import org.yaml.snakeyaml.nodes.*;
[ "java.io", "org.yaml.snakeyaml" ]
java.io; org.yaml.snakeyaml;
1,966,074
@ApiModelProperty(example = "null", value = "Opacity in % (100 is fully visible and 1 is barely visible)") public String getOpacity() { return opacity; }
@ApiModelProperty(example = "null", value = STR) String function() { return opacity; }
/** * Opacity in % (100 is fully visible and 1 is barely visible) * @return opacity **/
Opacity in % (100 is fully visible and 1 is barely visible)
getOpacity
{ "repo_name": "Muhimbi/PDF-Converter-Services-Online", "path": "clients/v1/java/client/src/main/java/com/muhimbi/online/client/model/PdfWatermarkData.java", "license": "apache-2.0", "size": 19040 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
2,178,673
private Checksum computePartialChunkCrc(long blkoff, long ckoff) throws IOException { // find offset of the beginning of partial chunk. // int sizePartialChunk = (int) (blkoff % bytesPerChecksum); blkoff = blkoff - sizePartialChunk; if (LOG.isDebugEnabled()) { LOG.debug("computePartia...
Checksum function(long blkoff, long ckoff) throws IOException { blkoff = blkoff - sizePartialChunk; if (LOG.isDebugEnabled()) { LOG.debug(STR + block + STR + sizePartialChunk + STR + blkoff + STR + ckoff); } byte[] crcbuf = new byte[checksumSize]; ReplicaInputStreams instr = null; try { instr = datanode.data.getTmpInpu...
/** * reads in the partial crc chunk and computes checksum * of pre-existing data in partial chunk. */
reads in the partial crc chunk and computes checksum of pre-existing data in partial chunk
computePartialChunkCrc
{ "repo_name": "HazelChen/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java", "license": "apache-2.0", "size": 55824 }
[ "java.io.Closeable", "java.io.DataInputStream", "java.io.DataOutputStream", "java.io.IOException", "java.util.LinkedList", "java.util.zip.Checksum", "org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos", "org.apache.hadoop.hdfs.server.datanode.fsdataset.ReplicaInputStreams", "org.apache.hadoop....
import java.io.Closeable; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.LinkedList; import java.util.zip.Checksum; import org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos; import org.apache.hadoop.hdfs.server.datanode.fsdataset.ReplicaInputStreams;...
import java.io.*; import java.util.*; import java.util.zip.*; import org.apache.hadoop.hdfs.protocol.proto.*; import org.apache.hadoop.hdfs.server.datanode.fsdataset.*; import org.apache.hadoop.io.*; import org.apache.hadoop.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
2,268,784
public int flush(Msg msg, MsgContext ep) throws IOException;
int function(Msg msg, MsgContext ep) throws IOException;
/** * Flush the data to the client. */
Flush the data to the client
flush
{ "repo_name": "yuyupapa/OpenSource", "path": "apache-tomcat-6.0.48/java/org/apache/jk/core/JkChannel.java", "license": "apache-2.0", "size": 2277 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
951,869
public void detach(final Object self, final boolean nonProxiedInstance) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { final Class<?> selfClass = self.getClass(); for (String fieldName : doc.fieldNames()) { Object value = getValue(self, fieldName, false, null, ...
void function(final Object self, final boolean nonProxiedInstance) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { final Class<?> selfClass = self.getClass(); for (String fieldName : doc.fieldNames()) { Object value = getValue(self, fieldName, false, null, true); if (value instanceof O...
/** * Method that detaches all fields contained in the document to the given object * * @param self * :- The object containing this handler instance * @throws InvocationTargetException * @throws IllegalAccessException * @throws NoSuchMethodException */
Method that detaches all fields contained in the document to the given object
detach
{ "repo_name": "mmacfadden/orientdb", "path": "object/src/main/java/com/orientechnologies/orient/object/enhancement/OObjectProxyMethodHandler.java", "license": "apache-2.0", "size": 42935 }
[ "com.orientechnologies.orient.core.db.object.OObjectLazyMultivalueElement", "java.lang.reflect.InvocationTargetException" ]
import com.orientechnologies.orient.core.db.object.OObjectLazyMultivalueElement; import java.lang.reflect.InvocationTargetException;
import com.orientechnologies.orient.core.db.object.*; import java.lang.reflect.*;
[ "com.orientechnologies.orient", "java.lang" ]
com.orientechnologies.orient; java.lang;
907,225
public AnalysisResultFuture dispatchJob(AnalysisJob job, DistributedJobContext context) throws Exception;
AnalysisResultFuture function(AnalysisJob job, DistributedJobContext context) throws Exception;
/** * Dispatches a job for execution on a node. Typically this job will not be * the original job which the {@link DistributedAnalysisRunner} received, * but a "slave job" which represents a variant with processing thresholds * added to spread the load over multiple nodes. * * @param job ...
Dispatches a job for execution on a node. Typically this job will not be the original job which the <code>DistributedAnalysisRunner</code> received, but a "slave job" which represents a variant with processing thresholds added to spread the load over multiple nodes
dispatchJob
{ "repo_name": "anandswarupv/DataCleaner", "path": "engine/env/cluster/src/main/java/org/datacleaner/cluster/ClusterManager.java", "license": "lgpl-3.0", "size": 1919 }
[ "org.datacleaner.job.AnalysisJob", "org.datacleaner.job.runner.AnalysisResultFuture" ]
import org.datacleaner.job.AnalysisJob; import org.datacleaner.job.runner.AnalysisResultFuture;
import org.datacleaner.job.*; import org.datacleaner.job.runner.*;
[ "org.datacleaner.job" ]
org.datacleaner.job;
1,576,122
public void setTitleContainer(BlockContainer container) { if (container == null) { throw new IllegalArgumentException("Null 'container' argument."); } this.container = container; }
void function(BlockContainer container) { if (container == null) { throw new IllegalArgumentException(STR); } this.container = container; }
/** * Sets the title container. * * @param container the container (<code>null</code> not permitted). */
Sets the title container
setTitleContainer
{ "repo_name": "JSansalone/JFreeChart", "path": "source/org/jfree/chart/title/CompositeTitle.java", "license": "lgpl-2.1", "size": 7988 }
[ "org.jfree.chart.block.BlockContainer" ]
import org.jfree.chart.block.BlockContainer;
import org.jfree.chart.block.*;
[ "org.jfree.chart" ]
org.jfree.chart;
2,011,457
private JPanel getMethodSelectionPanel() { if (methodSelectionPanel == null) { methodSelectionPanel = new JPanel(); methodSelectionPanel.setLayout(null); methodSelectionPanel.setBounds(new java.awt.Rectangle(2, 127, 467, 94)); methodSelectionPanel .setBorder(javax.swing.BorderFactory ....
JPanel function() { if (methodSelectionPanel == null) { methodSelectionPanel = new JPanel(); methodSelectionPanel.setLayout(null); methodSelectionPanel.setBounds(new java.awt.Rectangle(2, 127, 467, 94)); methodSelectionPanel .setBorder(javax.swing.BorderFactory .createEtchedBorder(javax.swing.border.EtchedBorder.RAISED...
/** * This method initializes methodSelectionPanel * * @return javax.swing.JPanel */
This method initializes methodSelectionPanel
getMethodSelectionPanel
{ "repo_name": "iCarto/siga", "path": "extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/buffer/gui/GeoProcessingBufferPanel.java", "license": "gpl-3.0", "size": 21001 }
[ "javax.swing.JPanel" ]
import javax.swing.JPanel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,537,969
public void addCodeMapping(MappingRecord mappingRecord) { try { // Add mappingRecord.addCodeMapping(this.sourceCode, this.targetCode); // Clean up this.sourceCode = null; this.targetCode = null; } catch (Exception err) { ...
void function(MappingRecord mappingRecord) { try { mappingRecord.addCodeMapping(this.sourceCode, this.targetCode); this.sourceCode = null; this.targetCode = null; } catch (Exception err) { this.messageUtil.error(err); } }
/** * Add new code mapping to selected detached mapping record entity */
Add new code mapping to selected detached mapping record entity
addCodeMapping
{ "repo_name": "ddRPB/rpb", "path": "radplanbio-portal/src/main/java/de/dktk/dd/rpb/portal/web/mb/admin/MappingRecordBean.java", "license": "gpl-3.0", "size": 11791 }
[ "de.dktk.dd.rpb.core.domain.edc.mapping.MappingRecord" ]
import de.dktk.dd.rpb.core.domain.edc.mapping.MappingRecord;
import de.dktk.dd.rpb.core.domain.edc.mapping.*;
[ "de.dktk.dd" ]
de.dktk.dd;
484,953
@Override public Style getResolved() { // Create a new object to return, which is a clone of this one. RowStyle resolved = null; try { resolved = (RowStyle)this.clone(); } catch (Exception e) { Debug.log(Debug.ERROR, "Can't clone", e); } /...
Style function() { RowStyle resolved = null; try { resolved = (RowStyle)this.clone(); } catch (Exception e) { Debug.log(Debug.ERROR, STR, e); } RowStyle parentStyle = null; if (sc != null) { if (parent != null) { parentStyle = (RowStyle)sc.lookup(parent, family, null, this.getClass()); if (parentStyle == null) Debug.lo...
/** * Return a {@code Style} object corresponding to this one, but with all of * the inherited information from parent {@code Style} objects filled in. * * <p>The object returned will be a new object, not a reference to this * object, even if it does not need any information added.</p> * ...
Return a Style object corresponding to this one, but with all of the inherited information from parent Style objects filled in. The object returned will be a new object, not a reference to this object, even if it does not need any information added
getResolved
{ "repo_name": "jvanz/core", "path": "xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/RowStyle.java", "license": "gpl-3.0", "size": 8642 }
[ "org.openoffice.xmerge.converter.xml.Style", "org.openoffice.xmerge.util.Debug" ]
import org.openoffice.xmerge.converter.xml.Style; import org.openoffice.xmerge.util.Debug;
import org.openoffice.xmerge.converter.xml.*; import org.openoffice.xmerge.util.*;
[ "org.openoffice.xmerge" ]
org.openoffice.xmerge;
1,651,477
public void setEncodedImage(String encodedAvatar) { setAvatar(encodedAvatar, DEFAULT_MIME_TYPE); } /** * Return the byte representation of the avatar(if one exists), otherwise returns null if * no avatar could be found. * <b>Example 1</b> * <pre> * // Load Avatar from V...
void function(String encodedAvatar) { setAvatar(encodedAvatar, DEFAULT_MIME_TYPE); } /** * Return the byte representation of the avatar(if one exists), otherwise returns null if * no avatar could be found. * <b>Example 1</b> * <pre> * * byte[] avatarBytes = vCard.getAvatar(); * <p/> * * ImageIcon icon = new ImageIcon(a...
/** * Set the encoded avatar string. This is used by the provider. * * @param encodedAvatar the encoded avatar string. * @deprecated Use {@link #setAvatar(String, String)} instead. */
Set the encoded avatar string. This is used by the provider
setEncodedImage
{ "repo_name": "UzxMx/java-bells", "path": "lib-src/smack_src_3_3_0/source/org/jivesoftware/smackx/packet/VCard.java", "license": "bsd-3-clause", "size": 28541 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,662,461
public ServiceFuture<List<TopicInner>> listAsync(final ServiceCallback<List<TopicInner>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); }
ServiceFuture<List<TopicInner>> function(final ServiceCallback<List<TopicInner>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); }
/** * List topics under an Azure subscription. * List all the topics under an Azure subscription. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link ServiceFuture} object */
List topics under an Azure subscription. List all the topics under an Azure subscription
listAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/eventgrid/mgmt-v2018_01_01/src/main/java/com/microsoft/azure/management/eventgrid/v2018_01_01/implementation/TopicsInner.java", "license": "mit", "size": 76346 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture", "java.util.List" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import java.util.List;
import com.microsoft.rest.*; import java.util.*;
[ "com.microsoft.rest", "java.util" ]
com.microsoft.rest; java.util;
1,354,669
@Override protected boolean beforeSave (boolean newRecord) { if (getC_DocType_ID() == 0) { MDocType types[] = MDocType.getOfDocBaseType(getCtx(), MDocType.DOCBASETYPE_MaterialPhysicalInventory); if (types.length > 0) // get first setC_DocType_ID(types[0].getC_DocType_ID()); else { throw new...
boolean function (boolean newRecord) { if (getC_DocType_ID() == 0) { MDocType types[] = MDocType.getOfDocBaseType(getCtx(), MDocType.DOCBASETYPE_MaterialPhysicalInventory); if (types.length > 0) setC_DocType_ID(types[0].getC_DocType_ID()); else { throw new AdempiereException(STR); } } return true; }
/** * Before Save * @param newRecord new * @return true */
Before Save
beforeSave
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.business/src/main/java-legacy/org/compiere/model/MInventory.java", "license": "gpl-2.0", "size": 29857 }
[ "org.adempiere.exceptions.AdempiereException" ]
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.exceptions.*;
[ "org.adempiere.exceptions" ]
org.adempiere.exceptions;
478,074
@SimpleFunction (description = "Milliseconds between instants") public static long Duration(Calendar start, Calendar end) { return end.getTimeInMillis() - start.getTimeInMillis(); }
@SimpleFunction (description = STR) static long function(Calendar start, Calendar end) { return end.getTimeInMillis() - start.getTimeInMillis(); }
/** * Returns the milliseconds by which end follows start (+ or -) * * @param start beginning instant * @param end ending instant * @return milliseconds */
Returns the milliseconds by which end follows start (+ or -)
Duration
{ "repo_name": "mark-friedman/app-inventor-from-google-code", "path": "src/components/runtime/components/android/Clock.java", "license": "apache-2.0", "size": 12789 }
[ "com.google.devtools.simple.runtime.annotations.SimpleFunction", "java.util.Calendar" ]
import com.google.devtools.simple.runtime.annotations.SimpleFunction; import java.util.Calendar;
import com.google.devtools.simple.runtime.annotations.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
1,279,313
public Adapter createPersonOrOrganizationAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link de.oklab.leipzig.oparl.PersonOrOrganization <em>Person Or Organization</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the ca...
Creates a new adapter for an object of class '<code>de.oklab.leipzig.oparl.PersonOrOrganization Person Or Organization</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
createPersonOrOrganizationAdapter
{ "repo_name": "joergreichert/stadtratmonitor-utils", "path": "plugins/de.oklab.leipzig.oparl.model/src-gen/de/oklab/leipzig/oparl/util/OparlAdapterFactory.java", "license": "epl-1.0", "size": 24385 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,649,511
public static QueueItem create( final Clock clock, final String line, final QueuePriority priority) { return new AutoValue_QueueItem(line, LocalDateTime.now(clock), itemCounter.getAndIncrement(), priority); }
static QueueItem function( final Clock clock, final String line, final QueuePriority priority) { return new AutoValue_QueueItem(line, LocalDateTime.now(clock), itemCounter.getAndIncrement(), priority); }
/** * Creates a new {@link QueueItem}. * * @param clock The clock to use to get the current time. * @param line The line to be sent to the server. * @param priority The priority of the line. * @return A new item to be submitted to the queue. */
Creates a new <code>QueueItem</code>
create
{ "repo_name": "greboid/Parser", "path": "irc/src/main/java/com/dmdirc/parser/irc/outputqueue/QueueItem.java", "license": "mit", "size": 3321 }
[ "com.dmdirc.parser.common.QueuePriority", "com.google.auto.value.AutoValue", "java.time.Clock", "java.time.LocalDateTime" ]
import com.dmdirc.parser.common.QueuePriority; import com.google.auto.value.AutoValue; import java.time.Clock; import java.time.LocalDateTime;
import com.dmdirc.parser.common.*; import com.google.auto.value.*; import java.time.*;
[ "com.dmdirc.parser", "com.google.auto", "java.time" ]
com.dmdirc.parser; com.google.auto; java.time;
2,324,876
@Test public void testLoad() throws Exception { // setup a single server cluster File tmpDir = ClientBase.createTmpDir(); ClientBase.setupTestEnv(); ZooKeeperServer zks = new ZooKeeperServer(tmpDir, tmpDir, 3000); SyncRequestProcessor.setSnapCount(100); final int ...
void function() throws Exception { File tmpDir = ClientBase.createTmpDir(); ClientBase.setupTestEnv(); ZooKeeperServer zks = new ZooKeeperServer(tmpDir, tmpDir, 3000); SyncRequestProcessor.setSnapCount(100); final int PORT = Integer.parseInt(HOSTPORT.split(":")[1]); ServerCnxnFactory f = ServerCnxnFactory.createFactory...
/** * test that all transactions from the Log are loaded, and only once * @throws Exception an exception might be thrown here */
test that all transactions from the Log are loaded, and only once
testLoad
{ "repo_name": "ExactTargetDev/zookeeper", "path": "src/java/test/org/apache/zookeeper/test/LoadFromLogTest.java", "license": "apache-2.0", "size": 17380 }
[ "java.io.File", "org.apache.zookeeper.CreateMode", "org.apache.zookeeper.ZooDefs", "org.apache.zookeeper.ZooKeeper", "org.apache.zookeeper.server.ServerCnxnFactory", "org.apache.zookeeper.server.SyncRequestProcessor", "org.apache.zookeeper.server.ZooKeeperServer", "org.apache.zookeeper.server.persiste...
import java.io.File; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.ZooDefs; import org.apache.zookeeper.ZooKeeper; import org.apache.zookeeper.server.ServerCnxnFactory; import org.apache.zookeeper.server.SyncRequestProcessor; import org.apache.zookeeper.server.ZooKeeperServer; import org.apache.zo...
import java.io.*; import org.apache.zookeeper.*; import org.apache.zookeeper.server.*; import org.apache.zookeeper.server.persistence.*; import org.apache.zookeeper.txn.*; import org.junit.*;
[ "java.io", "org.apache.zookeeper", "org.junit" ]
java.io; org.apache.zookeeper; org.junit;
1,702,545
public Collection hasSignatures(Collection signaturesToCheck);
Collection function(Collection signaturesToCheck);
/** * Determine if this ConnectorType contains the given set of signatures. * @param signaturesToCheck signatures to check for. * @return Collection of <code>java.lang.Boolean</code>. If the i<sup>th</sup> * element in <code>signatures</code> was found, then the i<sup>th</sup> * element of the collectio...
Determine if this ConnectorType contains the given set of signatures
hasSignatures
{ "repo_name": "sideshowcecil/myx-monitor", "path": "myx-monitor/src/main/java-apigen/edu/uci/isr/xarch/types/IConnectorType.java", "license": "mit", "size": 7778 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,371,479
@Override public void enterEveryRule(@NotNull ParserRuleContext ctx) { }
@Override public void enterEveryRule(@NotNull ParserRuleContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitComparison
{ "repo_name": "agilemobiledev/alchemy", "path": "alchemy-core/src/main/java/io/rtr/alchemy/filtering/FilterBaseListener.java", "license": "mit", "size": 3100 }
[ "org.antlr.v4.runtime.ParserRuleContext", "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.ParserRuleContext; import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
811,630
public PointerTargetTree getInheritedPartMeronyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException { return makeInheritedTree(synset, PointerType.PART_MERONYM, null, pointerDepth, ancestorDepth); }
PointerTargetTree function(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException { return makeInheritedTree(synset, PointerType.PART_MERONYM, null, pointerDepth, ancestorDepth); }
/** * Get part meronyms of each synset, to depth <code>pointerDepth</code>, starting at * <code>synset</code> and going for all of <code>synset</code>'s ancestors to depth * <code>ancestorDepth</code>. */
Get part meronyms of each synset, to depth <code>pointerDepth</code>, starting at <code>synset</code> and going for all of <code>synset</code>'s ancestors to depth <code>ancestorDepth</code>
getInheritedPartMeronyms
{ "repo_name": "onofujoHawk/twitter-wordnet-semantic-annotation", "path": "src/net/didion/jwnl/data/PointerUtils.java", "license": "lgpl-2.1", "size": 31235 }
[ "net.didion.jwnl.JWNLException", "net.didion.jwnl.data.list.PointerTargetTree" ]
import net.didion.jwnl.JWNLException; import net.didion.jwnl.data.list.PointerTargetTree;
import net.didion.jwnl.*; import net.didion.jwnl.data.list.*;
[ "net.didion.jwnl" ]
net.didion.jwnl;
560,809
public ParquetDataset withCompressionCodec(Object compressionCodec) { if (this.innerTypeProperties() == null) { this.innerTypeProperties = new ParquetDatasetTypeProperties(); } this.innerTypeProperties().withCompressionCodec(compressionCodec); return this; }
ParquetDataset function(Object compressionCodec) { if (this.innerTypeProperties() == null) { this.innerTypeProperties = new ParquetDatasetTypeProperties(); } this.innerTypeProperties().withCompressionCodec(compressionCodec); return this; }
/** * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType * string). * * @param compressionCodec the compressionCodec value to set. * @return the ParquetDataset object itself. */
Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType string)
withCompressionCodec
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java", "license": "mit", "size": 4608 }
[ "com.azure.resourcemanager.datafactory.fluent.models.ParquetDatasetTypeProperties" ]
import com.azure.resourcemanager.datafactory.fluent.models.ParquetDatasetTypeProperties;
import com.azure.resourcemanager.datafactory.fluent.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
1,798,396
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<WcfRelayInner>> getWithResponseAsync( String resourceGroupName, String namespaceName, String relayName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<WcfRelayInner>> function( String resourceGroupName, String namespaceName, String relayName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return Mono .error...
/** * Returns the description for the specified WCF relay. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name. * @param relayName The relay name. * @param context The context to associate with this operation. ...
Returns the description for the specified WCF relay
getWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/relay/azure-resourcemanager-relay/src/main/java/com/azure/resourcemanager/relay/implementation/WcfRelaysClientImpl.java", "license": "mit", "size": 109024 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.relay.fluent.models.WcfRelayInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.relay.fluent.models.WcfRelayInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.relay.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,875,663
private void setupAnalyzer(Settings settings, String analyzer) throws IOException { XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("properties").startObject("string"); mapping.field("type", "string"); mapping.field("analyzer", analyzer); mapping.end...
void function(Settings settings, String analyzer) throws IOException { XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject(STR).startObject(STR); mapping.field("type", STR); mapping.field(STR, analyzer); mapping.endObject().endObject().endObject(); client().admin().indices().prepareCreate(...
/** * Build an index named "test" with the provided settings and and a field * named "string" that uses the specified analyzer and default * position_increment_gap. */
Build an index named "test" with the provided settings and and a field named "string" that uses the specified analyzer and default position_increment_gap
setupAnalyzer
{ "repo_name": "danielmitterdorfer/elasticsearch", "path": "core/src/test/java/org/elasticsearch/index/mapper/string/StringFieldMapperPositionIncrementGapTests.java", "license": "apache-2.0", "size": 7971 }
[ "java.io.IOException", "org.elasticsearch.common.settings.Settings", "org.elasticsearch.common.xcontent.XContentBuilder", "org.elasticsearch.common.xcontent.XContentFactory" ]
import java.io.IOException; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentFactory;
import java.io.*; import org.elasticsearch.common.settings.*; import org.elasticsearch.common.xcontent.*;
[ "java.io", "org.elasticsearch.common" ]
java.io; org.elasticsearch.common;
826,262
public Map<String, String> getColumnTypeNames(String tableName, String sqlQuery) { return getColumnTypeNames(tableName, null, sqlQuery); }
Map<String, String> function(String tableName, String sqlQuery) { return getColumnTypeNames(tableName, null, sqlQuery); }
/** * Return an unordered mapping from colname to sql type name for * all columns in a table or query. * * @param tableName the name of the table * @param sqlQuery the SQL query to use if tableName is null */
Return an unordered mapping from colname to sql type name for all columns in a table or query
getColumnTypeNames
{ "repo_name": "bonnetb/sqoop", "path": "src/java/org/apache/sqoop/manager/ConnManager.java", "license": "apache-2.0", "size": 29531 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,623,055
interface Aws2KinesisComponentBuilder extends ComponentBuilder<Kinesis2Component> { default Aws2KinesisComponentBuilder amazonKinesisClient( software.amazon.awssdk.services.kinesis.KinesisClient amazonKinesisClient) { doSetProperty("amazonKine...
interface Aws2KinesisComponentBuilder extends ComponentBuilder<Kinesis2Component> { default Aws2KinesisComponentBuilder amazonKinesisClient( software.amazon.awssdk.services.kinesis.KinesisClient amazonKinesisClient) { doSetProperty(STR, amazonKinesisClient); return this; }
/** * Amazon Kinesis client to use for all requests for this endpoint. * * The option is a: * <code>software.amazon.awssdk.services.kinesis.KinesisClient</code> * type. * * Group: common */
Amazon Kinesis client to use for all requests for this endpoint. The option is a: <code>software.amazon.awssdk.services.kinesis.KinesisClient</code> type. Group: common
amazonKinesisClient
{ "repo_name": "nicolaferraro/camel", "path": "core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2KinesisComponentBuilderFactory.java", "license": "apache-2.0", "size": 15526 }
[ "org.apache.camel.builder.component.ComponentBuilder", "org.apache.camel.component.aws2.kinesis.Kinesis2Component" ]
import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.aws2.kinesis.Kinesis2Component;
import org.apache.camel.builder.component.*; import org.apache.camel.component.aws2.kinesis.*;
[ "org.apache.camel" ]
org.apache.camel;
1,808,813
void printList(final PrintWriter pw, final List l) { for (int i = 0; i < l.size(); ++i) { Object o = l.get(i); if (o instanceof List) { printList(pw, (List) o); } else { pw.print(o.toString()); } } }
void printList(final PrintWriter pw, final List l) { for (int i = 0; i < l.size(); ++i) { Object o = l.get(i); if (o instanceof List) { printList(pw, (List) o); } else { pw.print(o.toString()); } } }
/** * Prints the given string tree. * * @param pw the writer to be used to print the tree. * @param l a string tree, i.e., a string list that can contain other string * lists, and so on recursively. */
Prints the given string tree
printList
{ "repo_name": "mikebrock/mvel", "path": "src/main/java/org/mvel2/asm/util/AbstractVisitor.java", "license": "apache-2.0", "size": 7131 }
[ "java.io.PrintWriter", "java.util.List" ]
import java.io.PrintWriter; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,019,008
BufferedLogChannel allocateNewLog() throws IOException { List<File> list = ledgerDirsManager.getWritableLedgerDirs(); if (list.isEmpty()) { throw new IOException("No writable ledger directories to allocate new entry log."); } Collections.shuffle(...
BufferedLogChannel allocateNewLog() throws IOException { List<File> list = ledgerDirsManager.getWritableLedgerDirs(); if (list.isEmpty()) { throw new IOException(STR); } Collections.shuffle(list); File newLogFile = null; do { if (preallocatedLogId >= Integer.MAX_VALUE) { preallocatedLogId = 0; } else { ++preallocatedLo...
/** * Allocate a new log file. */
Allocate a new log file
allocateNewLog
{ "repo_name": "fengshao0907/bookkeeper", "path": "bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java", "license": "apache-2.0", "size": 37488 }
[ "java.io.File", "java.io.IOException", "java.io.RandomAccessFile", "java.nio.ByteBuffer", "java.nio.channels.FileChannel", "java.util.Collections", "java.util.List" ]
import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.util.Collections; import java.util.List;
import java.io.*; import java.nio.*; import java.nio.channels.*; import java.util.*;
[ "java.io", "java.nio", "java.util" ]
java.io; java.nio; java.util;
965,346
public Dao<TeamEvent, Long> getTeamEventDao() throws SQLException { if (teamEventDao == null) { teamEventDao = getDao(TeamEvent.class); } return teamEventDao; }
Dao<TeamEvent, Long> function() throws SQLException { if (teamEventDao == null) { teamEventDao = getDao(TeamEvent.class); } return teamEventDao; }
/** * Getter for the TeamEventDao * * @return This instance's TeamEventDao * @throws SQLException */
Getter for the TeamEventDao
getTeamEventDao
{ "repo_name": "ngageoint/mage-android", "path": "mage/src/main/java/mil/nga/giat/mage/sdk/datastore/DaoStore.java", "license": "apache-2.0", "size": 13716 }
[ "com.j256.ormlite.dao.Dao", "java.sql.SQLException", "mil.nga.giat.mage.sdk.datastore.user.TeamEvent" ]
import com.j256.ormlite.dao.Dao; import java.sql.SQLException; import mil.nga.giat.mage.sdk.datastore.user.TeamEvent;
import com.j256.ormlite.dao.*; import java.sql.*; import mil.nga.giat.mage.sdk.datastore.user.*;
[ "com.j256.ormlite", "java.sql", "mil.nga.giat" ]
com.j256.ormlite; java.sql; mil.nga.giat;
503,211
private void appendVoxelToFileProbabilityVersion(int x, int y, int z, Vector<FileWriter> ext ) throws IOException { int index = voxel[x][y][z]; Point points[] = new Point[8]; points[0] = getPointAt(x , y , z ); points[1] = getPointAt(x+1, y , z ); points[2] = getPointAt(x+1, y , z+1); poin...
void function(int x, int y, int z, Vector<FileWriter> ext ) throws IOException { int index = voxel[x][y][z]; Point points[] = new Point[8]; points[0] = getPointAt(x , y , z ); points[1] = getPointAt(x+1, y , z ); points[2] = getPointAt(x+1, y , z+1); points[3] = getPointAt(x , y , z+1); points[4] = getPointAt(x , y+1, ...
/** * Appends a single Voxel to some OBJ-File. * Depending on the value of the voxel this may be one ove several files. * @param x * @param y * @param z * @param ext * @throws IOException */
Appends a single Voxel to some OBJ-File. Depending on the value of the voxel this may be one ove several files
appendVoxelToFileProbabilityVersion
{ "repo_name": "SteuerHorst/Voluminator", "path": "Voluminator/src/dataTypes/Voxelvolume.java", "license": "lgpl-3.0", "size": 15107 }
[ "java.io.FileWriter", "java.io.IOException", "java.util.Vector" ]
import java.io.FileWriter; import java.io.IOException; import java.util.Vector;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,557,305
public static Path getHdfsTestDir() { Path testDir = HDFS_TEST_DIR_TL.get(); if (testDir == null) { throw new IllegalStateException("This test does not use @TestHdfs"); } return testDir; } /** * Returns a FileSystemAccess <code>JobConf</code> preconfigured with the FileSystemAccess clust...
static Path function() { Path testDir = HDFS_TEST_DIR_TL.get(); if (testDir == null) { throw new IllegalStateException(STR); } return testDir; } /** * Returns a FileSystemAccess <code>JobConf</code> preconfigured with the FileSystemAccess cluster * settings for testing. This configuration is only available when the tes...
/** * Returns the HDFS test directory for the current test, only available when the * test method has been annotated with {@link TestHdfs}. * * @return the HDFS test directory for the current test. It is an full/absolute * <code>Path</code>. */
Returns the HDFS test directory for the current test, only available when the test method has been annotated with <code>TestHdfs</code>
getHdfsTestDir
{ "repo_name": "lukmajercak/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/test/TestHdfsHelper.java", "license": "apache-2.0", "size": 8731 }
[ "org.apache.hadoop.fs.Path" ]
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,389,236
@Override @Operand(symbol = "+") public IntervalNumber plus(final double x) { return new IntervalNumber(l + x, r + x); }
@Operand(symbol = "+") IntervalNumber function(final double x) { return new IntervalNumber(l + x, r + x); }
/** * Calculate this + x * * @param x the real value to add * @return this + x */
Calculate this + x
plus
{ "repo_name": "axkr/symja_android_library", "path": "symja_android_library/matheclipse-external/src/main/java/de/lab4inf/math/sets/IntervalNumber.java", "license": "gpl-3.0", "size": 24555 }
[ "de.lab4inf.math.Operand" ]
import de.lab4inf.math.Operand;
import de.lab4inf.math.*;
[ "de.lab4inf.math" ]
de.lab4inf.math;
1,706,066
public void endDocument() throws SAXException { this.eventStack.pop(); super.endDocument(); }
void function() throws SAXException { this.eventStack.pop(); super.endDocument(); }
/** * Receive notification of the end of a document. */
Receive notification of the end of a document
endDocument
{ "repo_name": "apache/cocoon", "path": "blocks/cocoon-xsp/cocoon-xsp-impl/src/main/java/org/apache/cocoon/generation/ServerPagesGenerator.java", "license": "apache-2.0", "size": 16633 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
2,469,580
public Observable<ServiceResponse<Page<LabAccountInner>>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } ...
Observable<ServiceResponse<Page<LabAccountInner>>> function(final String resourceGroupName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (this.client.apiVersion() == null) { throw new IllegalArgume...
/** * List lab accounts in a resource group. * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;LabAccountInner&gt; object wrapped in {@link ServiceResponse} if successful. */
List lab accounts in a resource group
listByResourceGroupSinglePageAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/labservices/mgmt-v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/LabAccountsInner.java", "license": "mit", "size": 87311 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,678,311
public CustomFieldView getCustomField(int i) { while (i >= accountCustomFieldSet.size()) { accountCustomFieldSet.add(new CustomFieldView()); } return (accountCustomFieldSet.get(i)); }
CustomFieldView function(int i) { while (i >= accountCustomFieldSet.size()) { accountCustomFieldSet.add(new CustomFieldView()); } return (accountCustomFieldSet.get(i)); }
/** * Return the value of the one of the custom field at index i in * accountCustomFields List. */
Return the value of the one of the custom field at index i in accountCustomFields List
getCustomField
{ "repo_name": "mifos/1.4.x", "path": "application/src/main/java/org/mifos/application/accounts/struts/actionforms/AccountAppActionForm.java", "license": "apache-2.0", "size": 3813 }
[ "org.mifos.application.master.business.CustomFieldView" ]
import org.mifos.application.master.business.CustomFieldView;
import org.mifos.application.master.business.*;
[ "org.mifos.application" ]
org.mifos.application;
500,632
@Override public Integer doPingDB() { return Yank.queryScalar(sqlPingDB, Long.class, null).intValue(); }
Integer function() { return Yank.queryScalar(sqlPingDB, Long.class, null).intValue(); }
/************** * ITEMS DAOs * **************/
ITEMS DAOs
doPingDB
{ "repo_name": "paulianttila/openhab2", "path": "bundles/org.openhab.persistence.jdbc/src/main/java/org/openhab/persistence/jdbc/db/JdbcMariadbDAO.java", "license": "epl-1.0", "size": 3720 }
[ "org.knowm.yank.Yank" ]
import org.knowm.yank.Yank;
import org.knowm.yank.*;
[ "org.knowm.yank" ]
org.knowm.yank;
2,186,035
follows = Collections.unmodifiableList(follows); for (Follow follow: follows) { if (follow instanceof MasterFollow || follow instanceof VariantFollow || follow instanceof ForwardVariantFollow || follow instanceof LinkFieldFollow) { ...
follows = Collections.unmodifiableList(follows); for (Follow follow: follows) { if (follow instanceof MasterFollow follow instanceof VariantFollow follow instanceof ForwardVariantFollow follow instanceof LinkFieldFollow) { crossRecordFollows.add(follow); } } crossRecordFollows = Collections.unmodifiableList(crossRecord...
/** * This method should be called after all follow-expressions have been added. */
This method should be called after all follow-expressions have been added
init
{ "repo_name": "NGDATA/lilyproject", "path": "cr/indexer/model/src/main/java/org/lilyproject/indexer/model/indexerconf/DerefValue.java", "license": "apache-2.0", "size": 6842 }
[ "java.util.Collections" ]
import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
493,130
List<Integer> list = new ArrayList<Integer>(); for (Turtle t : turtles) { list.add(t.getID()); } return list; }
List<Integer> list = new ArrayList<Integer>(); for (Turtle t : turtles) { list.add(t.getID()); } return list; }
/** * returns list of Integers corresponding to ids from a list of turtles * @param turtles * @return */
returns list of Integers corresponding to ids from a list of turtles
getIds
{ "repo_name": "Chase-M/Slogo", "path": "src/command/BaseMultiTurtleCommand.java", "license": "mit", "size": 2169 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,683,547
private void rightPressed() { if ((m_iSelCert + 1) < m_certs.length) { m_iSelCert++; try { populateDialog(); } catch (CryptoException ex) { DThrowable.showAndWait(this, null, ex); dispose(); } } }
void function() { if ((m_iSelCert + 1) < m_certs.length) { m_iSelCert++; try { populateDialog(); } catch (CryptoException ex) { DThrowable.showAndWait(this, null, ex); dispose(); } } }
/** * Right certificate selection button pressed. Display the next certificate if appropriate. */
Right certificate selection button pressed. Display the next certificate if appropriate
rightPressed
{ "repo_name": "venator85/portecle", "path": "src/main/net/sf/portecle/DViewCertificate.java", "license": "gpl-2.0", "size": 25622 }
[ "net.sf.portecle.crypto.CryptoException", "net.sf.portecle.gui.error.DThrowable" ]
import net.sf.portecle.crypto.CryptoException; import net.sf.portecle.gui.error.DThrowable;
import net.sf.portecle.crypto.*; import net.sf.portecle.gui.error.*;
[ "net.sf.portecle" ]
net.sf.portecle;
159,346
@Path("realm") @DELETE @Consumes(MediaType.APPLICATION_JSON) public void deleteRealmScopeMappings(List<RoleRepresentation> roles) { managePermission.require(); if (scopeContainer == null) { throw new NotFoundException("Could not find client"); } if (roles ==...
@Path("realm") @Consumes(MediaType.APPLICATION_JSON) void function(List<RoleRepresentation> roles) { managePermission.require(); if (scopeContainer == null) { throw new NotFoundException(STR); } if (roles == null) { Set<RoleModel> roleModels = scopeContainer.getRealmScopeMappings(); roles = new LinkedList<>(); for (Rol...
/** * Remove a set of realm-level roles from the client's scope * * @param roles */
Remove a set of realm-level roles from the client's scope
deleteRealmScopeMappings
{ "repo_name": "brat000012001/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/ScopeMappedResource.java", "license": "apache-2.0", "size": 10765 }
[ "java.util.LinkedList", "java.util.List", "java.util.Set", "javax.ws.rs.Consumes", "javax.ws.rs.NotFoundException", "javax.ws.rs.Path", "javax.ws.rs.core.MediaType", "org.keycloak.events.admin.OperationType", "org.keycloak.models.RoleModel", "org.keycloak.models.utils.ModelToRepresentation", "or...
import java.util.LinkedList; import java.util.List; import java.util.Set; import javax.ws.rs.Consumes; import javax.ws.rs.NotFoundException; import javax.ws.rs.Path; import javax.ws.rs.core.MediaType; import org.keycloak.events.admin.OperationType; import org.keycloak.models.RoleModel; import org.keycloak.models.utils....
import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.keycloak.events.admin.*; import org.keycloak.models.*; import org.keycloak.models.utils.*; import org.keycloak.representations.idm.*;
[ "java.util", "javax.ws", "org.keycloak.events", "org.keycloak.models", "org.keycloak.representations" ]
java.util; javax.ws; org.keycloak.events; org.keycloak.models; org.keycloak.representations;
1,971,650
boolean removeSession(ServerSession session); /** * <p>Creates a new {@link LocalSession}.</p> * <p>A {@link LocalSession} is a server-side ClientSession that allows * server-side code to have special clients (resident within the same JVM) * that can be used to publish and subscribe like a ...
boolean removeSession(ServerSession session); /** * <p>Creates a new {@link LocalSession}.</p> * <p>A {@link LocalSession} is a server-side ClientSession that allows * server-side code to have special clients (resident within the same JVM) * that can be used to publish and subscribe like a client-side session * would d...
/** * <p>Removes the given {@code session} from this BayeuxServer.</p> * <p>This method triggers the invocation of all listeners that would be called * if the session was disconnected or if the session timed out.</p> * * @param session the session to remove * @return true if the session wa...
Removes the given session from this BayeuxServer. This method triggers the invocation of all listeners that would be called if the session was disconnected or if the session timed out
removeSession
{ "repo_name": "ghoullier/cometd", "path": "cometd-java/bayeux-api/src/main/java/org/cometd/bayeux/server/BayeuxServer.java", "license": "apache-2.0", "size": 14172 }
[ "org.cometd.bayeux.client.ClientSession" ]
import org.cometd.bayeux.client.ClientSession;
import org.cometd.bayeux.client.*;
[ "org.cometd.bayeux" ]
org.cometd.bayeux;
1,270
@Test(groups = "his.lab.test", dependsOnMethods = { "addLaboratoryTestCase", "getLabTestRequestByID", "getAllLaboratoriesTestCase" }) public void updateLaboratoryTestCase() throws IOException, JSONException { // Get JSON Request body to send LAb update Request JSONObject jsonResponseObject = new JSONObject(...
@Test(groups = STR, dependsOnMethods = { STR, STR, STR }) void function() throws IOException, JSONException { JSONObject jsonResponseObject = new JSONObject(RequestUtil.requestByID(TestCaseConstants.UPDATE_LAB)); jsonResponseObject.put(STR, labID); jsonResponseObject.put(STR, properties.get(TestCaseConstants.UPDATE_LAB...
/** * This test case is to update Laboratory * * @throws IOException * Signals that an I/O exception of some sort has occurred. This * class is the general class of exceptions produced by failed * or interrupted I/O operations. * @throws JSONException * E...
This test case is to update Laboratory
updateLaboratoryTestCase
{ "repo_name": "wimarsha93/Digital-Pulz-for-Hospitals", "path": "HIS_Latest_Project_29-07-2016/TestCases/HIS/src/LabTestCase.java", "license": "apache-2.0", "size": 6829 }
[ "java.io.IOException", "java.util.ArrayList", "org.json.JSONArray", "org.json.JSONException", "org.json.JSONObject", "org.testng.Assert", "org.testng.annotations.Test" ]
import java.io.IOException; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.testng.Assert; import org.testng.annotations.Test;
import java.io.*; import java.util.*; import org.json.*; import org.testng.*; import org.testng.annotations.*;
[ "java.io", "java.util", "org.json", "org.testng", "org.testng.annotations" ]
java.io; java.util; org.json; org.testng; org.testng.annotations;
2,882,223
BooleanAnnotationData getPublishedAnnotation() { StructuredDataResults data = parent.getStructuredData(); if (data == null) return null; return null; }
BooleanAnnotationData getPublishedAnnotation() { StructuredDataResults data = parent.getStructuredData(); if (data == null) return null; return null; }
/** * Returns the published annotation. * * @return See above. */
Returns the published annotation
getPublishedAnnotation
{ "repo_name": "joshmoore/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/editor/EditorModel.java", "license": "gpl-2.0", "size": 77037 }
[ "org.openmicroscopy.shoola.env.data.util.StructuredDataResults" ]
import org.openmicroscopy.shoola.env.data.util.StructuredDataResults;
import org.openmicroscopy.shoola.env.data.util.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
369,821
public File getHttpExe();
File function();
/** * Returns the executable of the browser to launch for http: URLs, or * <code>null</code> if not known. */
Returns the executable of the browser to launch for http: URLs, or <code>null</code> if not known
getHttpExe
{ "repo_name": "greg-dove/flex-falcon", "path": "debugger/src/main/java/flash/tools/debugger/IDebuggerCallbacks.java", "license": "apache-2.0", "size": 5677 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
688,428