method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public AutoLock commitLock();
AutoLock function();
/** * Acquires the commit lock. * * <p> * Use this in conjunction with <code>try-with-resources</code> statements for easy locking. * * @return The auto-closable commit lock. Never <code>null</code>. */
Acquires the commit lock. Use this in conjunction with <code>try-with-resources</code> statements for easy locking
commitLock
{ "repo_name": "MartinHaeusler/chronos", "path": "org.chronos.chronograph/src/main/java/org/chronos/chronograph/internal/api/structure/ChronoGraphInternal.java", "license": "agpl-3.0", "size": 734 }
[ "org.chronos.common.autolock.AutoLock" ]
import org.chronos.common.autolock.AutoLock;
import org.chronos.common.autolock.*;
[ "org.chronos.common" ]
org.chronos.common;
746,992
private void index(RepositoryModel model, Repository repository) { try { if (shouldReindex(repository)) { // (re)build the entire index IndexResult result = reindex(model, repository); if (result.success) { if (result.commitCount > 0) { String msg = "Built {0} Lucene index from {...
void function(RepositoryModel model, Repository repository) { try { if (shouldReindex(repository)) { IndexResult result = reindex(model, repository); if (result.success) { if (result.commitCount > 0) { String msg = STR; logger.info(MessageFormat.format(msg, model.name, result.commitCount, result.blobCount, result.branc...
/** * Synchronously indexes a repository. This may build a complete index of a * repository or it may update an existing index. * * @param displayName * the name of the repository * @param repository * the repository object */
Synchronously indexes a repository. This may build a complete index of a repository or it may update an existing index
index
{ "repo_name": "vitalif/gitblit", "path": "src/main/java/com/gitblit/service/LuceneService.java", "license": "apache-2.0", "size": 42907 }
[ "com.gitblit.models.RepositoryModel", "java.text.MessageFormat", "org.eclipse.jgit.lib.Repository" ]
import com.gitblit.models.RepositoryModel; import java.text.MessageFormat; import org.eclipse.jgit.lib.Repository;
import com.gitblit.models.*; import java.text.*; import org.eclipse.jgit.lib.*;
[ "com.gitblit.models", "java.text", "org.eclipse.jgit" ]
com.gitblit.models; java.text; org.eclipse.jgit;
2,907,748
public void removeUpdate(DocumentEvent e) { enableSave(); }
public void removeUpdate(DocumentEvent e) { enableSave(); }
/** * Enables the save button depending on the value entered for the name. * @see DocumentListener#insertUpdate(DocumentEvent) */
Enables the save button depending on the value entered for the name
insertUpdate
{ "repo_name": "simleo/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/util/ui/EditorDialog.java", "license": "gpl-2.0", "size": 25208 }
[ "javax.swing.event.DocumentEvent" ]
import javax.swing.event.DocumentEvent;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
1,203,980
Color getBackgroundColor() { ColorCheckBoxMenuItem b; Enumeration e; for (e = bgColorGroup.getElements(); e.hasMoreElements();) { b = (ColorCheckBoxMenuItem) e.nextElement(); if (b.isSelected())return b.getColor(); } return null; }
Color getBackgroundColor() { ColorCheckBoxMenuItem b; Enumeration e; for (e = bgColorGroup.getElements(); e.hasMoreElements();) { b = (ColorCheckBoxMenuItem) e.nextElement(); if (b.isSelected())return b.getColor(); } return null; }
/** * Returns the color of the image's background. * * @return See above. */
Returns the color of the image's background
getBackgroundColor
{ "repo_name": "jballanc/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerUI.java", "license": "gpl-2.0", "size": 78388 }
[ "java.awt.Color", "java.util.Enumeration", "org.openmicroscopy.shoola.util.ui.ColorCheckBoxMenuItem" ]
import java.awt.Color; import java.util.Enumeration; import org.openmicroscopy.shoola.util.ui.ColorCheckBoxMenuItem;
import java.awt.*; import java.util.*; import org.openmicroscopy.shoola.util.ui.*;
[ "java.awt", "java.util", "org.openmicroscopy.shoola" ]
java.awt; java.util; org.openmicroscopy.shoola;
2,500,587
@Override public Point getToolTipLocation( final MouseEvent event ) { // If tool tip is provided by the renderer or the table itself, use default location: if ( super.getToolTipText( event ) != null ) return super.getToolTipLocation( event ); // If no tool tip, return null to prevent displaying an...
Point function( final MouseEvent event ) { if ( super.getToolTipText( event ) != null ) return super.getToolTipLocation( event ); if ( getToolTipText( event ) == null ) return null; final Point point = event.getPoint(); final int column = columnAtPoint( point ); if ( column < 0 ) return null; final Point location = get...
/** * Positions tool tips exactly over the header cell they belong to, also avoids showing empty tool tips (by returning <code>null</code>). */
Positions tool tips exactly over the header cell they belong to, also avoids showing empty tool tips (by returning <code>null</code>)
getToolTipLocation
{ "repo_name": "icza/scelight", "path": "src-launcher/hu/sllauncher/gui/comp/table/XTableHeader.java", "license": "apache-2.0", "size": 3511 }
[ "java.awt.Point", "java.awt.event.MouseEvent" ]
import java.awt.Point; import java.awt.event.MouseEvent;
import java.awt.*; import java.awt.event.*;
[ "java.awt" ]
java.awt;
362,350
public void rearrangement() { if (joinType != JoinType.COMMA && joinType != JoinType.INNER_JOIN) { return; } if (right instanceof SQLJoinTableSource) { SQLJoinTableSource rightJoin = (SQLJoinTableSource) right; if (rightJoin.joinType != JoinType.COMMA && ...
void function() { if (joinType != JoinType.COMMA && joinType != JoinType.INNER_JOIN) { return; } if (right instanceof SQLJoinTableSource) { SQLJoinTableSource rightJoin = (SQLJoinTableSource) right; if (rightJoin.joinType != JoinType.COMMA && rightJoin.joinType != JoinType.INNER_JOIN) { return; } SQLTableSource a = lef...
/** * a inner_join (b inner_join c) -&lt; a inner_join b innre_join c */
a inner_join (b inner_join c) -&lt; a inner_join b innre_join c
rearrangement
{ "repo_name": "zuonima/sql-utils", "path": "src/main/java/com/alibaba/druid/sql/ast/statement/SQLJoinTableSource.java", "license": "gpl-3.0", "size": 15180 }
[ "com.alibaba.druid.sql.ast.SQLExpr", "com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr", "com.alibaba.druid.sql.ast.expr.SQLPropertyExpr" ]
import com.alibaba.druid.sql.ast.SQLExpr; import com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr; import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
import com.alibaba.druid.sql.ast.*; import com.alibaba.druid.sql.ast.expr.*;
[ "com.alibaba.druid" ]
com.alibaba.druid;
2,207,745
protected void endGame() { gameIsActive = false; uiHandler.sendMessage(new Message()); }
void function() { gameIsActive = false; uiHandler.sendMessage(new Message()); }
/** * This method will initiate termination of the game and the view. * Since the UI needs to be reconfigured a {@code Handler} will be used relay the message to the UI thread. */
This method will initiate termination of the game and the view. Since the UI needs to be reconfigured a Handler will be used relay the message to the UI thread
endGame
{ "repo_name": "Edholm/dat255-bearded-octo-lama", "path": "src/it/chalmers/dat255_bearded_octo_lama/games/AbstractGameView.java", "license": "gpl-3.0", "size": 6003 }
[ "android.os.Message" ]
import android.os.Message;
import android.os.*;
[ "android.os" ]
android.os;
1,330,021
public PersonalFile getPersonalFile(IrUser user, VersionedFile versionedFile);
PersonalFile function(IrUser user, VersionedFile versionedFile);
/** * Get the personal file for user holding the specified versioned file * * @param user User having the personal file * @param versioned file the personal file pointing to * * @return Personal file of the user or null if not found */
Get the personal file for user holding the specified versioned file
getPersonalFile
{ "repo_name": "nate-rcl/irplus", "path": "ir_core/src/edu/ur/ir/user/UserFileSystemService.java", "license": "apache-2.0", "size": 17632 }
[ "edu.ur.ir.file.VersionedFile" ]
import edu.ur.ir.file.VersionedFile;
import edu.ur.ir.file.*;
[ "edu.ur.ir" ]
edu.ur.ir;
2,600,977
void maxNameTypeLen() { maxNameTypeLen = 0; for (List<VarDeclaration> varDecls : varDeclBySection.values()) { for (VarDeclaration varDecl : varDecls) { Type type = varDecl.getType(); String typeStr = typeString(type); if (typeStr == null) continue; // Get variable's name & help for (Varia...
void maxNameTypeLen() { maxNameTypeLen = 0; for (List<VarDeclaration> varDecls : varDeclBySection.values()) { for (VarDeclaration varDecl : varDecls) { Type type = varDecl.getType(); String typeStr = typeString(type); if (typeStr == null) continue; for (VariableInit vi : varDecl.getVarInit()) { String helpLine = create...
/** * Calculate max option string length */
Calculate max option string length
maxNameTypeLen
{ "repo_name": "leepc12/BigDataScript", "path": "src/org/bds/run/HelpCreator.java", "license": "apache-2.0", "size": 6039 }
[ "java.util.List", "org.bds.lang.Type", "org.bds.lang.VarDeclaration", "org.bds.lang.VariableInit" ]
import java.util.List; import org.bds.lang.Type; import org.bds.lang.VarDeclaration; import org.bds.lang.VariableInit;
import java.util.*; import org.bds.lang.*;
[ "java.util", "org.bds.lang" ]
java.util; org.bds.lang;
682,998
public RelBuilder variable(Holder<RexCorrelVariable> v) { v.set((RexCorrelVariable) getRexBuilder().makeCorrel(peek().getRowType(), cluster.createCorrel())); return this; }
RelBuilder function(Holder<RexCorrelVariable> v) { v.set((RexCorrelVariable) getRexBuilder().makeCorrel(peek().getRowType(), cluster.createCorrel())); return this; }
/** Creates a correlation variable for the current input, and writes it into * a Holder. */
Creates a correlation variable for the current input, and writes it into
variable
{ "repo_name": "sreev/incubator-calcite", "path": "core/src/main/java/org/apache/calcite/tools/RelBuilder.java", "license": "apache-2.0", "size": 64409 }
[ "org.apache.calcite.rex.RexCorrelVariable", "org.apache.calcite.util.Holder" ]
import org.apache.calcite.rex.RexCorrelVariable; import org.apache.calcite.util.Holder;
import org.apache.calcite.rex.*; import org.apache.calcite.util.*;
[ "org.apache.calcite" ]
org.apache.calcite;
387,098
public static ServiceInfo create(final String type, final String name, final int port, final int weight, final int priority, final boolean persistent, final String text) { return new ServiceInfoImpl(type, name, "", port, weight, priority, persistent, text); }
static ServiceInfo function(final String type, final String name, final int port, final int weight, final int priority, final boolean persistent, final String text) { return new ServiceInfoImpl(type, name, "", port, weight, priority, persistent, text); }
/** * Construct a service description for registering with JmDNS. * * @param type * fully qualified service type name, such as <code>_http._tcp.local.</code>. * @param name * unqualified service instance name, such as <code>foobar</code> * @param port * ...
Construct a service description for registering with JmDNS
create
{ "repo_name": "thunderace/mpd-control", "path": "src/org/thunder/jmdns/ServiceInfo.java", "license": "apache-2.0", "size": 27316 }
[ "org.thunder.jmdns.impl.ServiceInfoImpl" ]
import org.thunder.jmdns.impl.ServiceInfoImpl;
import org.thunder.jmdns.impl.*;
[ "org.thunder.jmdns" ]
org.thunder.jmdns;
446,514
public Mesh3D loadBinary(String fileName, int bufSize, Class<? extends Mesh3D> meshClass) { Mesh3D mesh = null; try { mesh = loadBinary(FileUtils.createInputStream(new File(fileName)), fileName.substring(fileName.lastIndexOf('/') + 1), bufSize, ...
Mesh3D function(String fileName, int bufSize, Class<? extends Mesh3D> meshClass) { Mesh3D mesh = null; try { mesh = loadBinary(FileUtils.createInputStream(new File(fileName)), fileName.substring(fileName.lastIndexOf('/') + 1), bufSize, meshClass); } catch (IOException e) { e.printStackTrace(); } return mesh; }
/** * Attempts to load an STL model from the given file path. Currently no * exceptions are being thrown and the method will return null if anything * goes wrong during parsing the mesh data. * * @param fileName * file path to read model from * @return mesh instance or nul...
Attempts to load an STL model from the given file path. Currently no exceptions are being thrown and the method will return null if anything goes wrong during parsing the mesh data
loadBinary
{ "repo_name": "pauldimarco/toxiclibs", "path": "src.core/toxi/geom/mesh/STLReader.java", "license": "lgpl-2.1", "size": 5824 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,570,512
private void serviceInfoFromProperties(Provider.Service s) { super.remove(s.type + "." + s.algorithm); if (s.aliases != null) { for (Iterator<String> i = s.aliases.iterator(); i.hasNext();) { super.remove("Alg.Alias." + s.type + "." + i.next()); } } ...
void function(Provider.Service s) { super.remove(s.type + "." + s.algorithm); if (s.aliases != null) { for (Iterator<String> i = s.aliases.iterator(); i.hasNext();) { super.remove(STR + s.type + "." + i.next()); } } if (s.attributes != null) { for (Map.Entry<String, String> entry : s.attributes.entrySet()) { super.remo...
/** * Remove Service information from the provider's properties. */
Remove Service information from the provider's properties
serviceInfoFromProperties
{ "repo_name": "xdajog/samsung_sources_i927", "path": "libcore/luni/src/main/java/java/security/Provider.java", "license": "gpl-2.0", "size": 37502 }
[ "java.util.Iterator", "java.util.Map", "org.apache.harmony.security.fortress.Services" ]
import java.util.Iterator; import java.util.Map; import org.apache.harmony.security.fortress.Services;
import java.util.*; import org.apache.harmony.security.fortress.*;
[ "java.util", "org.apache.harmony" ]
java.util; org.apache.harmony;
2,723,673
public static void bind(Activity target) { bind(target, target, Finder.ACTIVITY); }
static void function(Activity target) { bind(target, target, Finder.ACTIVITY); }
/** * Bind annotated fields and methods in the specified {@link Activity}. The current content * view is used as the view root. * * @param target Target activity for view binding. */
Bind annotated fields and methods in the specified <code>Activity</code>. The current content view is used as the view root
bind
{ "repo_name": "suzukaze/butterknife", "path": "butterknife/src/main/java/butterknife/ButterKnife.java", "license": "apache-2.0", "size": 14205 }
[ "android.app.Activity" ]
import android.app.Activity;
import android.app.*;
[ "android.app" ]
android.app;
2,366,031
char getArrayDelimiter(int oid) throws SQLException;
char getArrayDelimiter(int oid) throws SQLException;
/** * Determine the delimiter for the elements of the given array type oid. * * @param oid the array type's OID * @return the base type's array type delimiter * @throws SQLException if an error occurs when retrieving array delimiter */
Determine the delimiter for the elements of the given array type oid
getArrayDelimiter
{ "repo_name": "pgjdbc/pgjdbc", "path": "pgjdbc/src/main/java/org/postgresql/core/TypeInfo.java", "license": "bsd-2-clause", "size": 5070 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
442,775
public Plugin loadPlugin(String id) throws DotDataException { return pAPI.loadPlugin(id); }
Plugin function(String id) throws DotDataException { return pAPI.loadPlugin(id); }
/** * Load a plugin by its primary key(ID). The primary key of a Plugin * is it's fully qualified name in the plugin directory. * @param id * @return * @throws DotDataException */
Load a plugin by its primary key(ID). The primary key of a Plugin is it's fully qualified name in the plugin directory
loadPlugin
{ "repo_name": "wisdom-garden/dotcms", "path": "src/com/dotmarketing/viewtools/PluginWebAPI.java", "license": "gpl-3.0", "size": 1878 }
[ "com.dotmarketing.exception.DotDataException", "com.dotmarketing.plugin.model.Plugin" ]
import com.dotmarketing.exception.DotDataException; import com.dotmarketing.plugin.model.Plugin;
import com.dotmarketing.exception.*; import com.dotmarketing.plugin.model.*;
[ "com.dotmarketing.exception", "com.dotmarketing.plugin" ]
com.dotmarketing.exception; com.dotmarketing.plugin;
1,884,878
default TriConsumer<T, U, V> andThen( final TriConsumer<? super T, ? super U, ? super V> after) { Objects.requireNonNull(after); return (t, u, v) -> { accept(t, u, v); after.accept(t, u, v); }; } }
default TriConsumer<T, U, V> andThen( final TriConsumer<? super T, ? super U, ? super V> after) { Objects.requireNonNull(after); return (t, u, v) -> { accept(t, u, v); after.accept(t, u, v); }; } }
/** * Returns a composed {@code TriConsumer} that performs, in sequence, * this * operation followed by the {@code after} operation. If performing * either * operation throws an exception, it is relayed to the caller of the * composed operation. If performing this o...
Returns a composed TriConsumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed
andThen
{ "repo_name": "125m125/ktapi-java", "path": "ktapi-core/src/main/java/de/_125m125/kt/ktapi/core/results/Callback.java", "license": "mit", "size": 6256 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
2,733,422
private String getTableHeadTagWithStyle(String styleClassName) { String tableWithAttr = Constants.HTML_TABLE_TH_START_WITH_ATTRS; return tableWithAttr.replaceAll("\\{#\\}", "class=\"" + styleClassName + "\""); }
String function(String styleClassName) { String tableWithAttr = Constants.HTML_TABLE_TH_START_WITH_ATTRS; return tableWithAttr.replaceAll(STR, STRSTR\""); }
/** * Gets the table head tag with style. * * @param styleClassName * the style class name * @return the table head tag with style */
Gets the table head tag with style
getTableHeadTagWithStyle
{ "repo_name": "kingargyle/turmeric-wsdldoctool", "path": "wsdl-doc-tool/src/main/java/org/ebayopensource/turmeric/tools/annoparser/outputgenerator/impl/JavaDocOutputGenerator.java", "license": "apache-2.0", "size": 93958 }
[ "org.ebayopensource.turmeric.tools.annoparser.commons.Constants" ]
import org.ebayopensource.turmeric.tools.annoparser.commons.Constants;
import org.ebayopensource.turmeric.tools.annoparser.commons.*;
[ "org.ebayopensource.turmeric" ]
org.ebayopensource.turmeric;
1,499,141
void massUpdateWithSession(@Param("record") BugWithBLOBs record, @Param("primaryKeys") List primaryKeys);
void massUpdateWithSession(@Param(STR) BugWithBLOBs record, @Param(STR) List primaryKeys);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table m_tracker_bug * * @mbggenerated Mon Sep 21 13:52:03 ICT 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table m_tracker_bug
massUpdateWithSession
{ "repo_name": "maduhu/mycollab", "path": "mycollab-services/src/main/java/com/esofthead/mycollab/module/tracker/dao/BugMapper.java", "license": "agpl-3.0", "size": 4745 }
[ "com.esofthead.mycollab.module.tracker.domain.BugWithBLOBs", "java.util.List", "org.apache.ibatis.annotations.Param" ]
import com.esofthead.mycollab.module.tracker.domain.BugWithBLOBs; import java.util.List; import org.apache.ibatis.annotations.Param;
import com.esofthead.mycollab.module.tracker.domain.*; import java.util.*; import org.apache.ibatis.annotations.*;
[ "com.esofthead.mycollab", "java.util", "org.apache.ibatis" ]
com.esofthead.mycollab; java.util; org.apache.ibatis;
1,046,950
@Override public IQueryBuilder<M, F, P> addSortInfo( List<? extends ISortToken> sortTokens) { if (sortTokens != null) { int len = sortTokens.size(); int i = 0; this.sortColumnNames = new String[len]; this.sortColumnSense = new String[len]; for (ISortToken token : sortTokens) { this.sortColu...
IQueryBuilder<M, F, P> function( List<? extends ISortToken> sortTokens) { if (sortTokens != null) { int len = sortTokens.size(); int i = 0; this.sortColumnNames = new String[len]; this.sortColumnSense = new String[len]; for (ISortToken token : sortTokens) { this.sortColumnNames[i] = token.getProperty(); this.sortColumn...
/** * Add order by information. */
Add order by information
addSortInfo
{ "repo_name": "seava/seava.lib.j4e", "path": "seava.j4e.presenter/src/main/java/seava/j4e/presenter/action/query/AbstractQueryBuilder.java", "license": "apache-2.0", "size": 8309 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
992,348
public Set<NodeId> checkForDecommissioningNodes() { Set<NodeId> decommissioningNodes = new HashSet<NodeId>(); for (Entry<NodeId, RMNode> entry : rmContext.getRMNodes().entrySet()) { if (entry.getValue().getState() == NodeState.DECOMMISSIONING) { decommissioningNodes.add(entry.getKey()); } ...
Set<NodeId> function() { Set<NodeId> decommissioningNodes = new HashSet<NodeId>(); for (Entry<NodeId, RMNode> entry : rmContext.getRMNodes().entrySet()) { if (entry.getValue().getState() == NodeState.DECOMMISSIONING) { decommissioningNodes.add(entry.getKey()); } } return decommissioningNodes; }
/** * It checks for any nodes in decommissioning state * * @return decommissioning nodes */
It checks for any nodes in decommissioning state
checkForDecommissioningNodes
{ "repo_name": "gilv/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/NodesListManager.java", "license": "apache-2.0", "size": 11167 }
[ "java.util.HashSet", "java.util.Map", "java.util.Set", "org.apache.hadoop.yarn.api.records.NodeId", "org.apache.hadoop.yarn.api.records.NodeState", "org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNode" ]
import java.util.HashSet; import java.util.Map; import java.util.Set; import org.apache.hadoop.yarn.api.records.NodeId; import org.apache.hadoop.yarn.api.records.NodeState; import org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNode;
import java.util.*; import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.server.resourcemanager.rmnode.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
128,003
public void setAlbumSongSortOrder(final String value) { setSortOrder(ALBUM_SONG_SORT_ORDER, value); } /** * @return The sort order used for the album song in * {@link AlbumSongFragment}
void function(final String value) { setSortOrder(ALBUM_SONG_SORT_ORDER, value); } /** * @return The sort order used for the album song in * {@link AlbumSongFragment}
/** * Sets the sort order for the album song list. * * @param value The new sort order */
Sets the sort order for the album song list
setAlbumSongSortOrder
{ "repo_name": "olokos/Apollo", "path": "src/com/andrew/apollo/utils/PreferenceUtils.java", "license": "apache-2.0", "size": 12735 }
[ "com.andrew.apollo.ui.fragments.profile.AlbumSongFragment" ]
import com.andrew.apollo.ui.fragments.profile.AlbumSongFragment;
import com.andrew.apollo.ui.fragments.profile.*;
[ "com.andrew.apollo" ]
com.andrew.apollo;
1,763,172
public boolean trySettingInputEnabled(boolean inputEnabled) { if (mDoingTouch && !inputEnabled) { // If we're trying to disable input, but we're in the middle of a touch event, // we'll allow the touch event to continue before disabling input. return false; } ...
boolean function(boolean inputEnabled) { if (mDoingTouch && !inputEnabled) { return false; } mInputEnabled = inputEnabled; mGrayBox.setVisibility(inputEnabled? View.INVISIBLE : View.VISIBLE); return true; }
/** * Set touch input as enabled or disabled, for use with keyboard mode. */
Set touch input as enabled or disabled, for use with keyboard mode
trySettingInputEnabled
{ "repo_name": "kenmeidearu/MaterialDateTimePicker", "path": "library/src/main/java/com/kenmeidearu/materialdatetimepicker/time/RadialPickerLayout.java", "license": "apache-2.0", "size": 45154 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,468,339
List<Map.Entry<String, String>> getHeaders();
List<Map.Entry<String, String>> getHeaders();
/** * Returns the all header names and values that this trailer contains. * * @return the {@link List} of the header name-value pairs. An empty list * if there is no header in this trailer. */
Returns the all header names and values that this trailer contains
getHeaders
{ "repo_name": "scalatra/netty-extension", "path": "src/main/java/org/jboss/netty/handler/codec/http2/HttpChunkTrailer.java", "license": "lgpl-3.0", "size": 3097 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
888,295
public FSDataInputStream fallbackToFsChecksum(int offCount) throws IOException { // checksumOffCount is speculative, but let's try to reset it less. boolean partOfConvoy = false; if (this.stream == null) { synchronized (streamNoFsChecksumFirstCreateLock) { partOfConvoy = (this.stream != null...
FSDataInputStream function(int offCount) throws IOException { boolean partOfConvoy = false; if (this.stream == null) { synchronized (streamNoFsChecksumFirstCreateLock) { partOfConvoy = (this.stream != null); if (!partOfConvoy) { this.stream = (link != null) ? link.open(hfs) : hfs.open(path); } } } if (!partOfConvoy) { ...
/** * Read from non-checksum stream failed, fall back to FS checksum. Thread-safe. * @param offCount For how many checksumOk calls to turn off the HBase checksum. */
Read from non-checksum stream failed, fall back to FS checksum. Thread-safe
fallbackToFsChecksum
{ "repo_name": "Eshcar/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/FSDataInputStreamWrapper.java", "license": "apache-2.0", "size": 13166 }
[ "java.io.IOException", "org.apache.hadoop.fs.FSDataInputStream" ]
import java.io.IOException; import org.apache.hadoop.fs.FSDataInputStream;
import java.io.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,022,298
public Slider setSlideEvent(JsScopeUiEvent slide) { this.options.put("slide", slide); return this; }
Slider function(JsScopeUiEvent slide) { this.options.put("slide", slide); return this; }
/** * This event is triggered on every mouse move during slide. Use ui.value * (single-handled sliders) to obtain the value of the current handle, * $(..).slider('value', index) to get another handles' value. * * @param slide * @return instance of the current component */
This event is triggered on every mouse move during slide. Use ui.value (single-handled sliders) to obtain the value of the current handle, $(..).slider('value', index) to get another handles' value
setSlideEvent
{ "repo_name": "WiQuery/wiquery", "path": "wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/slider/Slider.java", "license": "mit", "size": 16007 }
[ "org.odlabs.wiquery.ui.core.JsScopeUiEvent" ]
import org.odlabs.wiquery.ui.core.JsScopeUiEvent;
import org.odlabs.wiquery.ui.core.*;
[ "org.odlabs.wiquery" ]
org.odlabs.wiquery;
194,822
definitionRevision.fromRequestParameters(requestParameters); if(requestParameters.hasParameter(VcmsGuiPathParams.RESOURCE_NAME)) { String resourceName = requestParameters.getParameter(VcmsGuiPathParams.RESOURCE_NAME); builder.selectForAssociation(findResourceByName(resourceName)...
definitionRevision.fromRequestParameters(requestParameters); if(requestParameters.hasParameter(VcmsGuiPathParams.RESOURCE_NAME)) { String resourceName = requestParameters.getParameter(VcmsGuiPathParams.RESOURCE_NAME); builder.selectForAssociation(findResourceByName(resourceName)); } refAutocomplete.initialize(definitio...
/** * It downloads definition identified by definition id from request parameters. * If request parameters contain resource name parameter, the requested resource is selected for association. * * @throws VcmsForbiddenException - it user is not allowed to edit requested definition * @throws Vcm...
It downloads definition identified by definition id from request parameters. If request parameters contain resource name parameter, the requested resource is selected for association
initialize
{ "repo_name": "ow2-xlcloud/vcms", "path": "vcms-gui/modules/virtualClusterDefinitions/src/main/java/org/xlcloud/console/virtualClusterDefinitions/controllers/editor/EipAssociationCreateBean.java", "license": "apache-2.0", "size": 5005 }
[ "org.xlcloud.console.controllers.request.path.VcmsGuiPathParams", "org.xlcloud.console.controllers.request.path.VcmsGuiPaths" ]
import org.xlcloud.console.controllers.request.path.VcmsGuiPathParams; import org.xlcloud.console.controllers.request.path.VcmsGuiPaths;
import org.xlcloud.console.controllers.request.path.*;
[ "org.xlcloud.console" ]
org.xlcloud.console;
2,602,985
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."> @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { this.processRequest(r...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { this.processRequest(request, response); } catch (CerberusException ex) { LOG.warn(ex); } catch (JSONException ex) { LOG.warn(ex); } }
/** * Handles the HTTP <code>GET</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */
Handles the HTTP <code>GET</code> method
doGet
{ "repo_name": "vertigo17/Cerberus", "path": "source/src/main/java/org/cerberus/servlet/crud/countryenvironment/CreateAppService.java", "license": "gpl-3.0", "size": 15209 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.cerberus.exception.CerberusException", "org.json.JSONException" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.cerberus.exception.CerberusException; import org.json.JSONException;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.cerberus.exception.*; import org.json.*;
[ "java.io", "javax.servlet", "org.cerberus.exception", "org.json" ]
java.io; javax.servlet; org.cerberus.exception; org.json;
13,973
List<String> getValue();
List<String> getValue();
/** * Returns the value of the '<em><b>Value</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Value</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Value</em>' attribute. ...
Returns the value of the 'Value' attribute. If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here...
getValue
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore/src/net/opengis/gml/CodeListType.java", "license": "apache-2.0", "size": 2884 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,607,730
public RocketInfo getExtraText() { return extraText; }
RocketInfo function() { return extraText; }
/** * Get the extra text figure element. * * @return extra text that contains info about the rocket design */
Get the extra text figure element
getExtraText
{ "repo_name": "bkuker/motorsim", "path": "gpl/com/billkuker/rocketry/motorsim/visual/openRocket/RocketPanel.java", "license": "gpl-3.0", "size": 15961 }
[ "net.sf.openrocket.gui.figureelements.RocketInfo" ]
import net.sf.openrocket.gui.figureelements.RocketInfo;
import net.sf.openrocket.gui.figureelements.*;
[ "net.sf.openrocket" ]
net.sf.openrocket;
210,796
private Credentials createCredentials(CredentialsInfo credentials) { Credentials ret = new Credentials(); try { for (Map.Entry<String, String> entry : credentials.getTokens().entrySet()) { Text alias = new Text(entry.getKey()); Token<TokenIdentifier> token = new Token<TokenIdentifier>();...
Credentials function(CredentialsInfo credentials) { Credentials ret = new Credentials(); try { for (Map.Entry<String, String> entry : credentials.getTokens().entrySet()) { Text alias = new Text(entry.getKey()); Token<TokenIdentifier> token = new Token<TokenIdentifier>(); token.decodeFromUrlString(entry.getValue()); ret...
/** * Generate a Credentials object from the information in the CredentialsInfo * object. * * @param credentials * the CredentialsInfo provided by the user. * @return */
Generate a Credentials object from the information in the CredentialsInfo object
createCredentials
{ "repo_name": "zrccxyb62/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebServices.java", "license": "apache-2.0", "size": 86591 }
[ "java.io.IOException", "java.util.Map", "org.apache.commons.codec.binary.Base64", "org.apache.hadoop.io.Text", "org.apache.hadoop.security.Credentials", "org.apache.hadoop.security.token.Token", "org.apache.hadoop.security.token.TokenIdentifier", "org.apache.hadoop.yarn.server.resourcemanager.webapp.d...
import java.io.IOException; import java.util.Map; import org.apache.commons.codec.binary.Base64; import org.apache.hadoop.io.Text; import org.apache.hadoop.security.Credentials; import org.apache.hadoop.security.token.Token; import org.apache.hadoop.security.token.TokenIdentifier; import org.apache.hadoop.yarn.server.r...
import java.io.*; import java.util.*; import org.apache.commons.codec.binary.*; import org.apache.hadoop.io.*; import org.apache.hadoop.security.*; import org.apache.hadoop.security.token.*; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.*; import org.apache.hadoop.yarn.webapp.*;
[ "java.io", "java.util", "org.apache.commons", "org.apache.hadoop" ]
java.io; java.util; org.apache.commons; org.apache.hadoop;
1,541,142
private void sendProcessDisconnectionRequest() { // Expectations. EasyMock.expect(this.configurationControllerMock.getProcessConfiguration()).andReturn(this.processConfigurationMock).times(1); EasyMock.expect(this.processConfigurationMock.getProcessID()).andReturn(-1L).times(1, 2); EasyMock.expect(th...
void function() { EasyMock.expect(this.configurationControllerMock.getProcessConfiguration()).andReturn(this.processConfigurationMock).times(1); EasyMock.expect(this.processConfigurationMock.getProcessID()).andReturn(-1L).times(1, 2); EasyMock.expect(this.processConfigurationMock.getProcessName()).andReturn(PROCESS_NAM...
/** * This method do all the mocking work before and after calling the sendProcessDisonnectionRequest() * function. It is common for all tests cause the differences are in the reply messages * */
This method do all the mocking work before and after calling the sendProcessDisonnectionRequest() function. It is common for all tests cause the differences are in the reply messages
sendProcessDisconnectionRequest
{ "repo_name": "c2mon/c2mon", "path": "c2mon-daq/c2mon-daq-core/src/test/java/cern/c2mon/daq/common/messaging/impl/ActiveRequestSenderTest.java", "license": "lgpl-3.0", "size": 19416 }
[ "org.easymock.EasyMock" ]
import org.easymock.EasyMock;
import org.easymock.*;
[ "org.easymock" ]
org.easymock;
2,602,746
protected Collection<String> getInitialObjectNames() { if (initialObjectNames == null) { initialObjectNames = new ArrayList<String>(); for (EClassifier eClassifier : tomPackage.getEClassifiers()) { if (eClassifier instanceof EClass) { EClass eClass = (EClass)eClassifier; if (!eClass.isAbstract(...
Collection<String> function() { if (initialObjectNames == null) { initialObjectNames = new ArrayList<String>(); for (EClassifier eClassifier : tomPackage.getEClassifiers()) { if (eClassifier instanceof EClass) { EClass eClass = (EClass)eClassifier; if (!eClass.isAbstract()) { initialObjectNames.add(eClass.getName()); }...
/** * Returns the names of the types that can be created as the root object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Returns the names of the types that can be created as the root object.
getInitialObjectNames
{ "repo_name": "awltech/eclipse-optimus", "path": "net.atos.optimus.m2m.engine.sdk.parent/net.atos.optimus.m2m.engine.sdk.tom.editor/src/main/java/net/atos/optimus/m2m/engine/sdk/tom/presentation/TomModelWizard.java", "license": "lgpl-3.0", "size": 17999 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Collections", "org.eclipse.emf.common.CommonPlugin", "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EClassifier" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import org.eclipse.emf.common.CommonPlugin; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EClassifier;
import java.util.*; import org.eclipse.emf.common.*; import org.eclipse.emf.ecore.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
673,361
EReference getControl_RegulatingCondEq();
EReference getControl_RegulatingCondEq();
/** * Returns the meta object for the reference '{@link CIM.IEC61970.Meas.Control#getRegulatingCondEq <em>Regulating Cond Eq</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference '<em>Regulating Cond Eq</em>'. * @see CIM.IEC61970.Meas.Control#getRegulatingCondEq...
Returns the meta object for the reference '<code>CIM.IEC61970.Meas.Control#getRegulatingCondEq Regulating Cond Eq</code>'.
getControl_RegulatingCondEq
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Meas/MeasPackage.java", "license": "mit", "size": 215537 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,164,654
public void connectToServer(View view) { Intent intent = new Intent(this, SysinfoGraphActivity.class); //Add info to intent and start activity. EditText ipBox = (EditText) findViewById(R.id.ip_input); String ip = ipBox.getText().toString(); EditText portBox = (EditText) findViewById(R.id.port_input); ...
void function(View view) { Intent intent = new Intent(this, SysinfoGraphActivity.class); EditText ipBox = (EditText) findViewById(R.id.ip_input); String ip = ipBox.getText().toString(); EditText portBox = (EditText) findViewById(R.id.port_input); String port = portBox.getText().toString(); intent.putExtra(IP, ip); inte...
/** * Connects to server, */
Connects to server
connectToServer
{ "repo_name": "talsemgeest/desktopsysinfodisplay", "path": "Client/DesktopSysinfoDisplay/src/info/talsemgeest/desktopsysinfodisplay/MainActivity.java", "license": "apache-2.0", "size": 4664 }
[ "android.content.Intent", "android.view.View", "android.widget.EditText" ]
import android.content.Intent; import android.view.View; import android.widget.EditText;
import android.content.*; import android.view.*; import android.widget.*;
[ "android.content", "android.view", "android.widget" ]
android.content; android.view; android.widget;
2,526,062
public List<TeamMember> getNewTeamMembersByProjectTeam(Integer projectTeamId) throws BusinessException { logger.debug("getTeamMembersByProjectTeam - START"); List<TeamMember> members = null; try{ members = teamMemberDao.getNewTeamMembersByProjectTeam(projectTeamId); } catch (Exception e) { ...
List<TeamMember> function(Integer projectTeamId) throws BusinessException { logger.debug(STR); List<TeamMember> members = null; try{ members = teamMemberDao.getNewTeamMembersByProjectTeam(projectTeamId); } catch (Exception e) { throw new BusinessException(ICodeException.TEAMMEMBER_GET_NEW_FOR_PROJECT_TEAM, e); } logger...
/** * Get the new external persons * * @author Adelina * * @return * @throws BusinessException */
Get the new external persons
getNewTeamMembersByProjectTeam
{ "repo_name": "CodeSphere/termitaria", "path": "TermitariaCM/src/ro/cs/cm/business/BLTeamMember.java", "license": "agpl-3.0", "size": 8587 }
[ "java.util.List", "ro.cs.cm.entity.TeamMember", "ro.cs.cm.exception.BusinessException", "ro.cs.cm.exception.ICodeException" ]
import java.util.List; import ro.cs.cm.entity.TeamMember; import ro.cs.cm.exception.BusinessException; import ro.cs.cm.exception.ICodeException;
import java.util.*; import ro.cs.cm.entity.*; import ro.cs.cm.exception.*;
[ "java.util", "ro.cs.cm" ]
java.util; ro.cs.cm;
270,586
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<PrivateEndpointConnectionInner> createOrUpdateAsync( String resourceGroupName, String serverName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters) { return beginCreateOrUpdateAsync(res...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PrivateEndpointConnectionInner> function( String resourceGroupName, String serverName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, serverName, privateEndpointConnectionName, paramet...
/** * Approve or reject a private endpoint connection with a given name. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * ...
Approve or reject a private endpoint connection with a given name
createOrUpdateAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/PrivateEndpointConnectionsClientImpl.java", "license": "mit", "size": 58937 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.sql.fluent.models.PrivateEndpointConnectionInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.sql.fluent.models.PrivateEndpointConnectionInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.sql.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
217,714
public Closeable watch(final long timeout, final TimeUnit unit, final ThreadTimeoutAction timeoutAction) { return watch(Thread.currentThread(), timeout, unit, timeoutAction); }
Closeable function(final long timeout, final TimeUnit unit, final ThreadTimeoutAction timeoutAction) { return watch(Thread.currentThread(), timeout, unit, timeoutAction); }
/** * Schedules a timeout action on the calling thread. * If the returned Closeable is not closed by the time the timeout expires, * the timeout action will be fired. * @param timeout The timeout period * @param unit The timeout unit. Defaults to {@link TimeUnit#MILLISECONDS} if null. * @param timeoutActio...
Schedules a timeout action on the calling thread. If the returned Closeable is not closed by the time the timeout expires, the timeout action will be fired
watch
{ "repo_name": "nickman/MetricsWebSock", "path": "metricws-server/src/main/java/com/heliosapm/jmx/util/helpers/ThreadWatcher.java", "license": "apache-2.0", "size": 8458 }
[ "java.io.Closeable", "java.util.concurrent.TimeUnit" ]
import java.io.Closeable; import java.util.concurrent.TimeUnit;
import java.io.*; import java.util.concurrent.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,850,405
public boolean isWarningsInstalled() { return AnalysisDescriptor.isWarningsInstalled(); }
boolean function() { return AnalysisDescriptor.isWarningsInstalled(); }
/** * Returns whether the Warnings plug-in is installed. * * @return <code>true</code> if the Warnings plug-in is installed, * <code>false</code> if not. */
Returns whether the Warnings plug-in is installed
isWarningsInstalled
{ "repo_name": "jenkinsci/analysis-collector-plugin", "path": "src/main/java/hudson/plugins/analysis/collector/dashboard/WarningsOriginGraphPortlet.java", "license": "mit", "size": 8112 }
[ "hudson.plugins.analysis.collector.AnalysisDescriptor" ]
import hudson.plugins.analysis.collector.AnalysisDescriptor;
import hudson.plugins.analysis.collector.*;
[ "hudson.plugins.analysis" ]
hudson.plugins.analysis;
2,792,642
public static String toString(Object val) { if (val instanceof String) { return trimLeadingSlash((String) val); } else if (val instanceof InetAddress) { return ((InetAddress) val).getHostAddress(); } else { return trimLeadingSlash(val.toString()); } }
static String function(Object val) { if (val instanceof String) { return trimLeadingSlash((String) val); } else if (val instanceof InetAddress) { return ((InetAddress) val).getHostAddress(); } else { return trimLeadingSlash(val.toString()); } }
/** * Returns a string version of InetAddress which can be converted back to an InetAddress later. * Essentially any leading slash is trimmed. * * @param val the InetAddress or String to return a formatted string of * @return string version the InetAddress minus any leading slash */
Returns a string version of InetAddress which can be converted back to an InetAddress later. Essentially any leading slash is trimmed
toString
{ "repo_name": "PurelyApplied/geode", "path": "geode-core/src/main/java/org/apache/geode/admin/internal/InetAddressUtil.java", "license": "apache-2.0", "size": 6705 }
[ "java.net.InetAddress" ]
import java.net.InetAddress;
import java.net.*;
[ "java.net" ]
java.net;
965,438
@Pure protected XExpression fromString(String expression) { if (!Strings.isEmpty(expression)) { ResourceSet resourceSet = this.context.eResource().getResourceSet(); URI uri = computeUnusedUri(resourceSet); Resource resource = getResourceFactory().createResource(uri); resourceSet.getResources().add(res...
XExpression function(String expression) { if (!Strings.isEmpty(expression)) { ResourceSet resourceSet = this.context.eResource().getResourceSet(); URI uri = computeUnusedUri(resourceSet); Resource resource = getResourceFactory().createResource(uri); resourceSet.getResources().add(resource); try (StringInputStream is = ...
/** Create an expression but does not change the container. * * @param expression - the textual representation of the expression. * @return the expression. */
Create an expression but does not change the container
fromString
{ "repo_name": "gallandarakhneorg/sarl", "path": "eclipse-sarl/plugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java", "license": "apache-2.0", "size": 7183 }
[ "io.sarl.lang.sarl.SarlEvent", "io.sarl.lang.sarl.SarlField", "io.sarl.lang.sarl.SarlScript", "org.eclipse.emf.ecore.resource.Resource", "org.eclipse.emf.ecore.resource.ResourceSet", "org.eclipse.xtext.util.StringInputStream", "org.eclipse.xtext.util.Strings", "org.eclipse.xtext.xbase.XExpression" ]
import io.sarl.lang.sarl.SarlEvent; import io.sarl.lang.sarl.SarlField; import io.sarl.lang.sarl.SarlScript; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.xtext.util.StringInputStream; import org.eclipse.xtext.util.Strings; import org.eclipse.xtext...
import io.sarl.lang.sarl.*; import org.eclipse.emf.ecore.resource.*; import org.eclipse.xtext.util.*; import org.eclipse.xtext.xbase.*;
[ "io.sarl.lang", "org.eclipse.emf", "org.eclipse.xtext" ]
io.sarl.lang; org.eclipse.emf; org.eclipse.xtext;
1,505,449
static <INVALID, VALID> ValidationShouldContain shouldContainInvalidSame(Validation<INVALID, VALID> validation, VALID expectedErrorValue) { return validation.isInvalid() ? new ValidationShouldContain(EXPECTING_TO_CONTAIN_SAME, validation, expectedErrorValue) : shouldContainBu...
static <INVALID, VALID> ValidationShouldContain shouldContainInvalidSame(Validation<INVALID, VALID> validation, VALID expectedErrorValue) { return validation.isInvalid() ? new ValidationShouldContain(EXPECTING_TO_CONTAIN_SAME, validation, expectedErrorValue) : shouldContainButIsValid(validation, expectedErrorValue); }
/** * Indicates that the provided {@link Validation} does not contain the provided argument (judging by reference * equality). * * @param validation the {@link Validation} which contains a value. * @param expectedErrorValue the value we expect to be in the provided invalid {@link Valida...
Indicates that the provided <code>Validation</code> does not contain the provided argument (judging by reference equality)
shouldContainInvalidSame
{ "repo_name": "assertj/assertj-vavr", "path": "src/main/java/org/assertj/vavr/api/ValidationShouldContain.java", "license": "apache-2.0", "size": 6517 }
[ "io.vavr.control.Validation" ]
import io.vavr.control.Validation;
import io.vavr.control.*;
[ "io.vavr.control" ]
io.vavr.control;
1,523,060
public static TypedValue ofJdbc(Object value, Calendar calendar) { if (value == null) { return NULL; } final ColumnMetaData.Rep rep = ColumnMetaData.Rep.of(value.getClass()); return new TypedValue(rep, jdbcToSerial(rep, value, calendar)); }
static TypedValue function(Object value, Calendar calendar) { if (value == null) { return NULL; } final ColumnMetaData.Rep rep = ColumnMetaData.Rep.of(value.getClass()); return new TypedValue(rep, jdbcToSerial(rep, value, calendar)); }
/** Creates a TypedValue from a value in JDBC representation, * deducing its type. */
Creates a TypedValue from a value in JDBC representation
ofJdbc
{ "repo_name": "joshelser/incubator-calcite", "path": "avatica/src/main/java/org/apache/calcite/avatica/remote/TypedValue.java", "license": "apache-2.0", "size": 16797 }
[ "java.util.Calendar", "org.apache.calcite.avatica.ColumnMetaData" ]
import java.util.Calendar; import org.apache.calcite.avatica.ColumnMetaData;
import java.util.*; import org.apache.calcite.avatica.*;
[ "java.util", "org.apache.calcite" ]
java.util; org.apache.calcite;
2,798,592
public V put(IValue key, V value){ ensureCapacity(); int hash = key.hashCode(); int position = hash & hashMask; Entry<V> currentStartEntry = data[position]; // Check if the key is already in here. if(currentStartEntry != null){ Entry<V> entry = currentStartEntry; do{ if(hash == entry.hash...
V function(IValue key, V value){ ensureCapacity(); int hash = key.hashCode(); int position = hash & hashMask; Entry<V> currentStartEntry = data[position]; if(currentStartEntry != null){ Entry<V> entry = currentStartEntry; do{ if(hash == entry.hash && entry.key.isEqual(key)){ replaceValue(position, entry, value); return...
/** * Inserts the given key-value pair into this map. In case there already is a value associated * with the given key, the value will be updated and the previous value returned. * * @param key * The key * @param value * The value * @return The previous value that was associated w...
Inserts the given key-value pair into this map. In case there already is a value associated with the given key, the value will be updated and the previous value returned
put
{ "repo_name": "cwi-swat/pdb.values", "path": "src/org/eclipse/imp/pdb/facts/util/ValueIndexedHashMap.java", "license": "epl-1.0", "size": 18738 }
[ "org.eclipse.imp.pdb.facts.IValue" ]
import org.eclipse.imp.pdb.facts.IValue;
import org.eclipse.imp.pdb.facts.*;
[ "org.eclipse.imp" ]
org.eclipse.imp;
1,574,628
@JsonGetter("description") public String getDescription ( ) { return this.description; }
@JsonGetter(STR) String function ( ) { return this.description; }
/** GETTER * A human readable description of the capacity group */
GETTER A human readable description of the capacity group
getDescription
{ "repo_name": "voxbone/voxapi-client-java", "path": "APIv3SandboxLib/src/com/voxbone/sandbox/models/CapacityGroupSaveModel.java", "license": "mit", "size": 1685 }
[ "com.fasterxml.jackson.annotation.JsonGetter" ]
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
1,138,672
MigrationVersion getBaselineVersion();
MigrationVersion getBaselineVersion();
/** * Retrieves the version to tag an existing schema with when executing baseline. * * @return The version to tag an existing schema with when executing baseline. (default: 1) */
Retrieves the version to tag an existing schema with when executing baseline
getBaselineVersion
{ "repo_name": "cdedie/flyway", "path": "flyway-core/src/main/java/org/flywaydb/core/api/configuration/FlywayConfiguration.java", "license": "apache-2.0", "size": 12688 }
[ "org.flywaydb.core.api.MigrationVersion" ]
import org.flywaydb.core.api.MigrationVersion;
import org.flywaydb.core.api.*;
[ "org.flywaydb.core" ]
org.flywaydb.core;
1,657,497
private void removeRecordOnServer(OModel model) { List<ODataRow> records = model.select(new String[]{}, "id != ? and _is_active = ?", new String[]{"0", "false"}); List<Integer> serverIds = new ArrayList<>(); for (ODataRow record : records) { serverIds.add(record.g...
void function(OModel model) { List<ODataRow> records = model.select(new String[]{}, STR, new String[]{"0", "false"}); List<Integer> serverIds = new ArrayList<>(); for (ODataRow record : records) { serverIds.add(record.getInt("id")); } if (serverIds.size() > 0) { if (removeRecordsFromServer(model, serverIds)) { int coun...
/** * Removes record on server if local record is not active * * @param model */
Removes record on server if local record is not active
removeRecordOnServer
{ "repo_name": "YPerezM/AppOdoo", "path": "app/src/main/java/com/odoo/core/service/OSyncAdapter.java", "license": "agpl-3.0", "size": 23158 }
[ "android.util.Log", "com.odoo.core.orm.ODataRow", "com.odoo.core.orm.OModel", "java.util.ArrayList", "java.util.List" ]
import android.util.Log; import com.odoo.core.orm.ODataRow; import com.odoo.core.orm.OModel; import java.util.ArrayList; import java.util.List;
import android.util.*; import com.odoo.core.orm.*; import java.util.*;
[ "android.util", "com.odoo.core", "java.util" ]
android.util; com.odoo.core; java.util;
2,473,006
//----------------------------------------------------------------------- public final MetaProperty<Boolean> useSectorName() { return _useSectorName; }
final MetaProperty<Boolean> function() { return _useSectorName; }
/** * The meta-property for the {@code useSectorName} property. * @return the meta-property, not null */
The meta-property for the useSectorName property
useSectorName
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/legalentity/LegalEntitySector.java", "license": "apache-2.0", "size": 16255 }
[ "org.joda.beans.MetaProperty" ]
import org.joda.beans.MetaProperty;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
1,740,238
private Element chat(Element element) { final ChatMessage chatMessage = new ChatMessage(getGame(), element);
Element function(Element element) { final ChatMessage chatMessage = new ChatMessage(getGame(), element);
/** * Handles a "chat"-message. * * @param element The element (root element in a DOM-parsed XML tree) that * holds all the information. */
Handles a "chat"-message
chat
{ "repo_name": "tectronics/reformationofeurope", "path": "src/net/sf/freecol/client/control/InGameInputHandler.java", "license": "gpl-2.0", "size": 80987 }
[ "net.sf.freecol.common.networking.ChatMessage", "org.w3c.dom.Element" ]
import net.sf.freecol.common.networking.ChatMessage; import org.w3c.dom.Element;
import net.sf.freecol.common.networking.*; import org.w3c.dom.*;
[ "net.sf.freecol", "org.w3c.dom" ]
net.sf.freecol; org.w3c.dom;
1,785,104
public Store.MetadataSnapshot snapshotStoreMetadata() throws IOException { Engine.IndexCommitRef indexCommit = null; store.incRef(); try { Engine engine; synchronized (mutex) { // if the engine is not running, we can access the store directly, but we n...
Store.MetadataSnapshot function() throws IOException { Engine.IndexCommitRef indexCommit = null; store.incRef(); try { Engine engine; synchronized (mutex) { engine = getEngineOrNull(); if (engine == null) { return store.getMetadata(null, true); } } indexCommit = engine.acquireIndexCommit(false); return store.getMetadat...
/** * gets a {@link Store.MetadataSnapshot} for the current directory. This method is safe to call in all lifecycle of the index shard, * without having to worry about the current state of the engine and concurrent flushes. * * @throws org.apache.lucene.index.IndexNotFoundException if no index i...
gets a <code>Store.MetadataSnapshot</code> for the current directory. This method is safe to call in all lifecycle of the index shard, without having to worry about the current state of the engine and concurrent flushes
snapshotStoreMetadata
{ "repo_name": "mohit/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "license": "apache-2.0", "size": 118888 }
[ "java.io.IOException", "org.apache.lucene.util.IOUtils", "org.elasticsearch.index.engine.Engine", "org.elasticsearch.index.store.Store" ]
import java.io.IOException; import org.apache.lucene.util.IOUtils; import org.elasticsearch.index.engine.Engine; import org.elasticsearch.index.store.Store;
import java.io.*; import org.apache.lucene.util.*; import org.elasticsearch.index.engine.*; import org.elasticsearch.index.store.*;
[ "java.io", "org.apache.lucene", "org.elasticsearch.index" ]
java.io; org.apache.lucene; org.elasticsearch.index;
649,836
private void sendEpilogue(final PrintWriter pw) { pw.println("<hr>"); pw.print("<address>"); pw.print(ResponseUtil.escapeXml(getServletContext().getServerInfo())); pw.println("</address>"); pw.println("</body>"); pw.println("</html>"); }
void function(final PrintWriter pw) { pw.println("<hr>"); pw.print(STR); pw.print(ResponseUtil.escapeXml(getServletContext().getServerInfo())); pw.println(STR); pw.println(STR); pw.println(STR); }
/** * Ends the response sending with an apache-style server line and closes the * body and html tags of the HTML response text. */
Ends the response sending with an apache-style server line and closes the body and html tags of the HTML response text
sendEpilogue
{ "repo_name": "nleite/sling", "path": "bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/defaults/DefaultErrorHandlerServlet.java", "license": "apache-2.0", "size": 10818 }
[ "java.io.PrintWriter", "org.apache.sling.api.request.ResponseUtil" ]
import java.io.PrintWriter; import org.apache.sling.api.request.ResponseUtil;
import java.io.*; import org.apache.sling.api.request.*;
[ "java.io", "org.apache.sling" ]
java.io; org.apache.sling;
763,416
public static FormComponent< ? > setSize(final FormComponent< ? > component, final int size, final boolean important) { if (component instanceof TextField) { component.add(AttributeModifier.replace("size", String.valueOf(size))); } final StringBuffer buf = new StringBuffer(20); buf.append("wid...
static FormComponent< ? > function(final FormComponent< ? > component, final int size, final boolean important) { if (component instanceof TextField) { component.add(AttributeModifier.replace("size", String.valueOf(size))); } final StringBuffer buf = new StringBuffer(20); buf.append(STR); if (component instanceof DropD...
/** * Sets attribute size (only for TextFields) and style="length: width"; The width value is size + 0.5 em and for drop down choices size + * 2em; * @param component * @param size * @param important If true then "!important" is appended to the width style (true is default). * @return This for chainin...
Sets attribute size (only for TextFields) and style="length: width"; The width value is size + 0.5 em and for drop down choices size + 2em
setSize
{ "repo_name": "developerleo/ProjectForge-2nd", "path": "src/main/java/org/projectforge/web/wicket/WicketUtils.java", "license": "gpl-3.0", "size": 38808 }
[ "org.apache.wicket.AttributeModifier", "org.apache.wicket.markup.html.form.DropDownChoice", "org.apache.wicket.markup.html.form.FormComponent", "org.apache.wicket.markup.html.form.TextField" ]
import org.apache.wicket.AttributeModifier; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.FormComponent; import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.*; import org.apache.wicket.markup.html.form.*;
[ "org.apache.wicket" ]
org.apache.wicket;
225,344
@Override public void visitClassContext(ClassContext classContext) { try { if ((jcomponentClass != null) && (accessibleClass != null)) { JavaClass cls = classContext.getJavaClass(); if (cls.instanceOf(jcomponentClass) && !cls.implementationOf(accessibleClass))...
void function(ClassContext classContext) { try { if ((jcomponentClass != null) && (accessibleClass != null)) { JavaClass cls = classContext.getJavaClass(); if (cls.instanceOf(jcomponentClass) && !cls.implementationOf(accessibleClass)) { bugReporter.reportBug(new BugInstance(this, BugType.S508C_NON_ACCESSIBLE_JCOMPONENT...
/** * implements the visitor to create and clear the stack * * @param classContext * the context object of the currently visited class */
implements the visitor to create and clear the stack
visitClassContext
{ "repo_name": "mebigfatguy/fb-contrib", "path": "src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java", "license": "lgpl-2.1", "size": 18472 }
[ "com.mebigfatguy.fbcontrib.utils.BugType", "edu.umd.cs.findbugs.BugInstance", "edu.umd.cs.findbugs.OpcodeStack", "edu.umd.cs.findbugs.SourceLineAnnotation", "edu.umd.cs.findbugs.ba.ClassContext", "edu.umd.cs.findbugs.ba.XField", "java.util.HashMap", "java.util.HashSet", "org.apache.bcel.classfile.Ja...
import com.mebigfatguy.fbcontrib.utils.BugType; import edu.umd.cs.findbugs.BugInstance; import edu.umd.cs.findbugs.OpcodeStack; import edu.umd.cs.findbugs.SourceLineAnnotation; import edu.umd.cs.findbugs.ba.ClassContext; import edu.umd.cs.findbugs.ba.XField; import java.util.HashMap; import java.util.HashSet; import or...
import com.mebigfatguy.fbcontrib.utils.*; import edu.umd.cs.findbugs.*; import edu.umd.cs.findbugs.ba.*; import java.util.*; import org.apache.bcel.classfile.*;
[ "com.mebigfatguy.fbcontrib", "edu.umd.cs", "java.util", "org.apache.bcel" ]
com.mebigfatguy.fbcontrib; edu.umd.cs; java.util; org.apache.bcel;
551,824
public static void abort (String s) throws IOException { abort(s, null); }
static void function (String s) throws IOException { abort(s, null); }
/** * Aborts program abnormally. */
Aborts program abnormally
abort
{ "repo_name": "AcademicTorrents/AcademicTorrents-Downloader", "path": "p2pproject/org/klomp/snark/Snark.java", "license": "gpl-2.0", "size": 13164 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,841,768
public void updateSecurityRules(long id, List<SecurityRule> rules) throws BadRequestServiceEx, InternalErrorServiceEx, NotFoundServiceEx;
void function(long id, List<SecurityRule> rules) throws BadRequestServiceEx, InternalErrorServiceEx, NotFoundServiceEx;
/** * Replaces the list of security rules for the given resource. * * @param id * @param rules * @throws BadRequestServiceEx * @throws InternalErrorServiceEx * @throws NotFoundServiceEx */
Replaces the list of security rules for the given resource
updateSecurityRules
{ "repo_name": "mbarto/geostore", "path": "src/server/core/services-api/src/main/java/it/geosolutions/geostore/services/ResourceService.java", "license": "gpl-3.0", "size": 7820 }
[ "it.geosolutions.geostore.core.model.SecurityRule", "it.geosolutions.geostore.services.exception.BadRequestServiceEx", "it.geosolutions.geostore.services.exception.InternalErrorServiceEx", "it.geosolutions.geostore.services.exception.NotFoundServiceEx", "java.util.List" ]
import it.geosolutions.geostore.core.model.SecurityRule; import it.geosolutions.geostore.services.exception.BadRequestServiceEx; import it.geosolutions.geostore.services.exception.InternalErrorServiceEx; import it.geosolutions.geostore.services.exception.NotFoundServiceEx; import java.util.List;
import it.geosolutions.geostore.core.model.*; import it.geosolutions.geostore.services.exception.*; import java.util.*;
[ "it.geosolutions.geostore", "java.util" ]
it.geosolutions.geostore; java.util;
1,754,753
protected HadoopConfiguration createHadoopConfiguration() { return null; }
HadoopConfiguration function() { return null; }
/** * Creates custom Hadoop configuration. * * @return The Hadoop configuration. */
Creates custom Hadoop configuration
createHadoopConfiguration
{ "repo_name": "leveyj/ignite", "path": "modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopAbstractMapReduceTest.java", "license": "apache-2.0", "size": 15834 }
[ "org.apache.ignite.configuration.HadoopConfiguration" ]
import org.apache.ignite.configuration.HadoopConfiguration;
import org.apache.ignite.configuration.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,031,720
public static Test suite() { return new TestSuite(SpreadSheetQuery2Test.class); }
static Test function() { return new TestSuite(SpreadSheetQuery2Test.class); }
/** * * Returns a test suite. * * @return the test suite */
Returns a test suite
suite
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-spreadsheet/src/test/java/adams/flow/transformer/SpreadSheetQuery2Test.java", "license": "gpl-3.0", "size": 23447 }
[ "junit.framework.Test", "junit.framework.TestSuite" ]
import junit.framework.Test; import junit.framework.TestSuite;
import junit.framework.*;
[ "junit.framework" ]
junit.framework;
1,677,466
public CloudOrgsAndSpaces getCloudSpaces(IProgressMonitor monitor) throws CoreException { return new BehaviourRequest<CloudOrgsAndSpaces>("Getting orgs and spaces", this) { //$NON-NLS-1$
CloudOrgsAndSpaces function(IProgressMonitor monitor) throws CoreException { return new BehaviourRequest<CloudOrgsAndSpaces>(STR, this) {
/** * Retrieves the orgs and spaces for the current server instance. * @param monitor * @return * @throws CoreException if it failed to retrieve the orgs and spaces. */
Retrieves the orgs and spaces for the current server instance
getCloudSpaces
{ "repo_name": "pradeep-b/cft", "path": "org.eclipse.cft.server.core/src/org/eclipse/cft/server/core/internal/client/CloudFoundryServerBehaviour.java", "license": "apache-2.0", "size": 64299 }
[ "org.eclipse.cft.server.core.internal.spaces.CloudOrgsAndSpaces", "org.eclipse.core.runtime.CoreException", "org.eclipse.core.runtime.IProgressMonitor" ]
import org.eclipse.cft.server.core.internal.spaces.CloudOrgsAndSpaces; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.cft.server.core.internal.spaces.*; import org.eclipse.core.runtime.*;
[ "org.eclipse.cft", "org.eclipse.core" ]
org.eclipse.cft; org.eclipse.core;
1,393,166
public Builder ingressPoints(Set<ConnectPoint> ingressPoints) { this.ingressPoints = ImmutableSet.copyOf(ingressPoints); return this; }
Builder function(Set<ConnectPoint> ingressPoints) { this.ingressPoints = ImmutableSet.copyOf(ingressPoints); return this; }
/** * Sets the ingress point of the single point to multi point intent * that will be built. * * @param ingressPoints ingress connect points * @return this builder */
Sets the ingress point of the single point to multi point intent that will be built
ingressPoints
{ "repo_name": "ravikumaran2015/ravikumaran201504", "path": "core/api/src/main/java/org/onosproject/net/intent/LinkCollectionIntent.java", "license": "apache-2.0", "size": 7383 }
[ "com.google.common.collect.ImmutableSet", "java.util.Set", "org.onosproject.net.ConnectPoint" ]
import com.google.common.collect.ImmutableSet; import java.util.Set; import org.onosproject.net.ConnectPoint;
import com.google.common.collect.*; import java.util.*; import org.onosproject.net.*;
[ "com.google.common", "java.util", "org.onosproject.net" ]
com.google.common; java.util; org.onosproject.net;
2,642,116
EList<IfcVertexBasedTextureMap> getTextureMaps();
EList<IfcVertexBasedTextureMap> getTextureMaps();
/** * Returns the value of the '<em><b>Texture Maps</b></em>' reference list. * The list contents are of type {@link cn.dlb.bim.models.ifc2x3tc1.IfcVertexBasedTextureMap}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Texture Maps</em>' reference list isn't clear, * there really should be mor...
Returns the value of the 'Texture Maps' reference list. The list contents are of type <code>cn.dlb.bim.models.ifc2x3tc1.IfcVertexBasedTextureMap</code>. If the meaning of the 'Texture Maps' reference list isn't clear, there really should be more of a description here...
getTextureMaps
{ "repo_name": "shenan4321/BIMplatform", "path": "generated/cn/dlb/bim/models/ifc2x3tc1/IfcTextureMap.java", "license": "agpl-3.0", "size": 1915 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
277,705
private void removeNodesAtIndex(int index, List<TreeNode> removedNodes) { if (index < 0 || index > expandedNodeList.size() - 1 || removedNodes == null) { return; } expandedNodeList.removeAll(removedNodes); notifyItemRangeRemoved(index + 1, removedNodes.size()); }
void function(int index, List<TreeNode> removedNodes) { if (index < 0 index > expandedNodeList.size() - 1 removedNodes == null) { return; } expandedNodeList.removeAll(removedNodes); notifyItemRangeRemoved(index + 1, removedNodes.size()); }
/** * Remove a node list after index. * * @param index the index before the removedNodes nodes's first position * @param removedNodes nodes to remove */
Remove a node list after index
removeNodesAtIndex
{ "repo_name": "jhmgbl/Repetit", "path": "repetit/src/main/java/me/texy/treeview/TreeViewAdapter.java", "license": "gpl-3.0", "size": 12541 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,447,139
public T caseEDROOMDCLASSPackageFile(EDROOMDCLASSPackageFile object) { return null; }
T function(EDROOMDCLASSPackageFile object) { return null; }
/** * Returns the result of interpreting the object as an instance of '<em>EDROOMDCLASSPackageFile</em>'. * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>EDROOMDCLASSPackageFile</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObje...
Returns the result of interpreting the object as an instance of 'EDROOMDCLASSPackageFile'
caseEDROOMDCLASSPackageFile
{ "repo_name": "parraman/micobs", "path": "mclev/domains/edroom/es.uah.aut.srg.micobs.mclev.domain.edroom/src/es/uah/aut/srg/micobs/mclev/domain/edroom/edroomdclass/util/edroomdclassSwitch.java", "license": "epl-1.0", "size": 28861 }
[ "es.uah.aut.srg.micobs.mclev.domain.edroom.edroomdclass.EDROOMDCLASSPackageFile" ]
import es.uah.aut.srg.micobs.mclev.domain.edroom.edroomdclass.EDROOMDCLASSPackageFile;
import es.uah.aut.srg.micobs.mclev.domain.edroom.edroomdclass.*;
[ "es.uah.aut" ]
es.uah.aut;
1,478,993
public InterceptorBindingType<T> removeExcludeDefaultInterceptors() { childNode.removeChildren("exclude-default-interceptors"); return this; } // --------------------------------------------------------------------------------------------------------|| // ClassName: InterceptorBindingType ...
InterceptorBindingType<T> function() { childNode.removeChildren(STR); return this; }
/** * Removes the <code>exclude-default-interceptors</code> element * @return the current instance of <code>InterceptorBindingType<T></code> */
Removes the <code>exclude-default-interceptors</code> element
removeExcludeDefaultInterceptors
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/ejbjar30/InterceptorBindingTypeImpl.java", "license": "epl-1.0", "size": 13140 }
[ "org.jboss.shrinkwrap.descriptor.api.ejbjar30.InterceptorBindingType" ]
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.InterceptorBindingType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
937,638
@Override protected boolean readElement(IConfigurationElement element) { if (element.getName().equals(TAG_HELP)) { readHelpElement(element); return true; } if (element.getName().equals(TAG_RESOLUTION_GENERATOR)) { readResolutionElement(element); ...
boolean function(IConfigurationElement element) { if (element.getName().equals(TAG_HELP)) { readHelpElement(element); return true; } if (element.getName().equals(TAG_RESOLUTION_GENERATOR)) { readResolutionElement(element); return true; } if (element.getName().equals(TAG_ATTRIBUTE)) { readAttributeElement(element); retu...
/** * Processes one configuration element or child element. */
Processes one configuration element or child element
readElement
{ "repo_name": "elucash/eclipse-oxygen", "path": "org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistryReader.java", "license": "epl-1.0", "size": 5237 }
[ "org.eclipse.core.runtime.IConfigurationElement" ]
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.*;
[ "org.eclipse.core" ]
org.eclipse.core;
2,217,401
public CallbackLog getCallbackLog (String callbackUrl) throws APIException, IOException { Map<String, String> params = new HashMap<String, String>(); params.put("callback", callbackUrl); params.put("key", apiCode); String response = HttpClient.getInstance().get("https://api.blockcha...
CallbackLog function (String callbackUrl) throws APIException, IOException { Map<String, String> params = new HashMap<String, String>(); params.put(STR, callbackUrl); params.put("key", apiCode); String response = HttpClient.getInstance().get("https: JsonObject obj = new JsonParser().parse(response).getAsJsonObject(); r...
/** * Calls the receive-payments-api v2 and returns the callback log based on url. * * @param callbackUrl Callback URI that will be called upon payment * @return An instance of the ReceiveV2Response class * @throws APIException If the server returns an error */
Calls the receive-payments-api v2 and returns the callback log based on url
getCallbackLog
{ "repo_name": "blockchain/api-v1-client-java", "path": "src/main/java/info/blockchain/api/receive/Receive.java", "license": "mit", "size": 3396 }
[ "com.google.gson.JsonObject", "com.google.gson.JsonParser", "info.blockchain.api.APIException", "info.blockchain.api.HttpClient", "java.io.IOException", "java.util.HashMap", "java.util.Map" ]
import com.google.gson.JsonObject; import com.google.gson.JsonParser; import info.blockchain.api.APIException; import info.blockchain.api.HttpClient; import java.io.IOException; import java.util.HashMap; import java.util.Map;
import com.google.gson.*; import info.blockchain.api.*; import java.io.*; import java.util.*;
[ "com.google.gson", "info.blockchain.api", "java.io", "java.util" ]
com.google.gson; info.blockchain.api; java.io; java.util;
1,985,271
public void setListAdapter(CarItemAdapter adapter) { mListView.setAdapter(adapter); }
void function(CarItemAdapter adapter) { mListView.setAdapter(adapter); }
/** * Sets the list adapter. * * @param adapter the new list adapter */
Sets the list adapter
setListAdapter
{ "repo_name": "sujianping/Office-365-SDK-for-Android", "path": "samples/asset-management/src/com/microsoft/assetmanagement/CarListActivity.java", "license": "apache-2.0", "size": 3805 }
[ "com.microsoft.assetmanagement.adapters.CarItemAdapter" ]
import com.microsoft.assetmanagement.adapters.CarItemAdapter;
import com.microsoft.assetmanagement.adapters.*;
[ "com.microsoft.assetmanagement" ]
com.microsoft.assetmanagement;
783,120
public static void checkNeedForArgumentCasts(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding binding, Expression[] arguments, TypeBinding[] argumentTypes, final InvocationSite invocationSite) { if (scope.compilerOptions().getSeverity(CompilerOptions.UnnecessaryTypeCheck) == ProblemSeveri...
static void function(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding binding, Expression[] arguments, TypeBinding[] argumentTypes, final InvocationSite invocationSite) { if (scope.compilerOptions().getSeverity(CompilerOptions.UnnecessaryTypeCheck) == ProblemSeverities.Ignore) return; int ...
/** * Cast expressions will considered as useful if removing them all would actually bind to a different method * (no fine grain analysis on per casted argument basis, simply separate widening cast from narrowing ones) */
Cast expressions will considered as useful if removing them all would actually bind to a different method (no fine grain analysis on per casted argument basis, simply separate widening cast from narrowing ones)
checkNeedForArgumentCasts
{ "repo_name": "Niky4000/UsefulUtils", "path": "projects/others/eclipse-platform-parent/eclipse.jdt.core-master/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java", "license": "gpl-3.0", "size": 31707 }
[ "org.eclipse.jdt.internal.compiler.impl.CompilerOptions", "org.eclipse.jdt.internal.compiler.lookup.BlockScope", "org.eclipse.jdt.internal.compiler.lookup.InvocationSite", "org.eclipse.jdt.internal.compiler.lookup.MethodBinding", "org.eclipse.jdt.internal.compiler.lookup.TypeBinding", "org.eclipse.jdt.int...
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; import org.eclipse.jdt.internal.compiler.lookup.BlockScope; import org.eclipse.jdt.internal.compiler.lookup.InvocationSite; import org.eclipse.jdt.internal.compiler.lookup.MethodBinding; import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; import or...
import org.eclipse.jdt.internal.compiler.impl.*; import org.eclipse.jdt.internal.compiler.lookup.*; import org.eclipse.jdt.internal.compiler.problem.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
2,797,816
@Override public boolean equals(Object other) { if (this == other) { return true; } if (other instanceof OverallBucket == false) { return false; } OverallBucket that = (OverallBucket) other; return Objects.equals(this.timestamp, that.tim...
boolean function(Object other) { if (this == other) { return true; } if (other instanceof OverallBucket == false) { return false; } OverallBucket that = (OverallBucket) other; return Objects.equals(this.timestamp, that.timestamp) && this.bucketSpan == that.bucketSpan && this.overallScore == that.overallScore && Objects...
/** * Compare all the fields and embedded anomaly records (if any) */
Compare all the fields and embedded anomaly records (if any)
equals
{ "repo_name": "GlenRSmith/elasticsearch", "path": "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results/OverallBucket.java", "license": "apache-2.0", "size": 6469 }
[ "java.io.IOException", "java.util.Objects", "org.elasticsearch.common.io.stream.StreamInput", "org.elasticsearch.common.io.stream.Writeable", "org.elasticsearch.xcontent.ParseField", "org.elasticsearch.xcontent.ToXContentObject" ]
import java.io.IOException; import java.util.Objects; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.xcontent.ParseField; import org.elasticsearch.xcontent.ToXContentObject;
import java.io.*; import java.util.*; import org.elasticsearch.common.io.stream.*; import org.elasticsearch.xcontent.*;
[ "java.io", "java.util", "org.elasticsearch.common", "org.elasticsearch.xcontent" ]
java.io; java.util; org.elasticsearch.common; org.elasticsearch.xcontent;
2,866,607
@Override public void onOpen() { Log.i(TAG, "YA estamos conectados!!"); uuid = UUID.randomUUID().toString(); mClient.subscribeControl(); setupAsyncTask = new SetupAsyncTask(); setupAsyncTask.execute(mClient); }
void function() { Log.i(TAG, STR); uuid = UUID.randomUUID().toString(); mClient.subscribeControl(); setupAsyncTask = new SetupAsyncTask(); setupAsyncTask.execute(mClient); }
/** * Handle WAMP onOpen event */
Handle WAMP onOpen event
onOpen
{ "repo_name": "AplicacionesUbicuas/MiddlewareMobile", "path": "app/src/main/java/org/unicauca/middlewaremobile/TouchActivity.java", "license": "apache-2.0", "size": 13562 }
[ "android.util.Log", "java.util.UUID" ]
import android.util.Log; import java.util.UUID;
import android.util.*; import java.util.*;
[ "android.util", "java.util" ]
android.util; java.util;
606,801
public BasicDeviceConfig driver(String driverName) { checkArgument(driverName.length() <= DRIVER_MAX_LENGTH, "driver exceeds maximum length " + DRIVER_MAX_LENGTH); return (BasicDeviceConfig) setOrClear(DRIVER, driverName); }
BasicDeviceConfig function(String driverName) { checkArgument(driverName.length() <= DRIVER_MAX_LENGTH, STR + DRIVER_MAX_LENGTH); return (BasicDeviceConfig) setOrClear(DRIVER, driverName); }
/** * Sets the driver name. * * @param driverName new driver name; null to clear * @return self */
Sets the driver name
driver
{ "repo_name": "opennetworkinglab/onos", "path": "core/api/src/main/java/org/onosproject/net/config/basics/BasicDeviceConfig.java", "license": "apache-2.0", "size": 9431 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
636,937
@Exported(visibility=3) public String getFileName() { return name; }
@Exported(visibility=3) String function() { return name; }
/** * Returns just the file name portion, without the path. */
Returns just the file name portion, without the path
getFileName
{ "repo_name": "cnopens/hudson", "path": "hudson-core/src/main/java/hudson/model/Run.java", "license": "mit", "size": 67851 }
[ "org.kohsuke.stapler.export.Exported" ]
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.*;
[ "org.kohsuke.stapler" ]
org.kohsuke.stapler;
1,603,078
public void testConnectionParams() throws Exception { check(new OdbcConfiguration().setEndpointAddress("127.0.0.1:9998..10000") .setSocketSendBufferSize(4 * 1024), true); check(new OdbcConfiguration().setEndpointAddress("127.0.0.1:9998..10000") .setSocketReceiveBufferSize(4 ...
void function() throws Exception { check(new OdbcConfiguration().setEndpointAddress(STR) .setSocketSendBufferSize(4 * 1024), true); check(new OdbcConfiguration().setEndpointAddress(STR) .setSocketReceiveBufferSize(4 * 1024), true); check(new OdbcConfiguration().setEndpointAddress(STR) .setSocketSendBufferSize(-64 * 102...
/** * Test connection parameters: sendBufferSize, receiveBufferSize, connectionTimeout. * * @throws Exception If failed. */
Test connection parameters: sendBufferSize, receiveBufferSize, connectionTimeout
testConnectionParams
{ "repo_name": "nivanov/ignite", "path": "modules/core/src/test/java/org/apache/ignite/internal/processors/odbc/OdbcProcessorValidationSelfTest.java", "license": "apache-2.0", "size": 6362 }
[ "org.apache.ignite.configuration.OdbcConfiguration" ]
import org.apache.ignite.configuration.OdbcConfiguration;
import org.apache.ignite.configuration.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,697,694
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Property.class)) { case ComponentPackage.PROPERTY__KEY: case ComponentPackage.PROPERTY__VALUE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifi...
void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Property.class)) { case ComponentPackage.PROPERTY__KEY: case ComponentPackage.PROPERTY__VALUE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.noti...
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "BaSys-PC1/models", "path": "de.dfki.iui.basys.model.runtime.edit/src/de/dfki/iui/basys/model/runtime/component/provider/PropertyItemProvider.java", "license": "epl-1.0", "size": 5437 }
[ "de.dfki.iui.basys.model.runtime.component.ComponentPackage", "de.dfki.iui.basys.model.runtime.component.Property", "org.eclipse.emf.common.notify.Notification", "org.eclipse.emf.edit.provider.ViewerNotification" ]
import de.dfki.iui.basys.model.runtime.component.ComponentPackage; import de.dfki.iui.basys.model.runtime.component.Property; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ViewerNotification;
import de.dfki.iui.basys.model.runtime.component.*; import org.eclipse.emf.common.notify.*; import org.eclipse.emf.edit.provider.*;
[ "de.dfki.iui", "org.eclipse.emf" ]
de.dfki.iui; org.eclipse.emf;
301,635
public boolean setDisplayColorCalibration(int[] rgb) { try { if (checkService()) { return sService.setDisplayColorCalibration(rgb); } } catch (RemoteException e) { } return false; }
boolean function(int[] rgb) { try { if (checkService()) { return sService.setDisplayColorCalibration(rgb); } } catch (RemoteException e) { } return false; }
/** * Set the display color calibration to the given rgb triplet * * @param rgb RGB color calibration. Each value must be between * {@link getDisplayColorCalibrationMin()} and {@link getDisplayColorCalibrationMax()}, * inclusive. * * @return true on success, false otherwise. */
Set the display color calibration to the given rgb triplet
setDisplayColorCalibration
{ "repo_name": "Ant-OS/android_vendor_cmsdk", "path": "src/java/cyanogenmod/hardware/CMHardwareManager.java", "license": "apache-2.0", "size": 22637 }
[ "android.os.RemoteException" ]
import android.os.RemoteException;
import android.os.*;
[ "android.os" ]
android.os;
1,452,549
@ApiModelProperty(example = "null", value = "Forbidden message") public String getError() { return error; }
@ApiModelProperty(example = "null", value = STR) String function() { return error; }
/** * Forbidden message * @return error **/
Forbidden message
getError
{ "repo_name": "Tmin10/EVE-Security-Service", "path": "server-api/src/main/java/ru/tmin10/EVESecurityService/serverApi/model/GetCharactersCharacterIdAgentsResearchForbidden.java", "license": "gpl-3.0", "size": 2254 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
753,020
private void createRequiredComponents() { distNameTextField = createTextField("textfield.name", UIComponentIdProvider.DIST_ADD_NAME); distVersionTextField = createTextField("textfield.version", UIComponentIdProvider.DIST_ADD_VERSION); distsetTypeNameComboBox = SPUIComponentProvider.getCombo...
void function() { distNameTextField = createTextField(STR, UIComponentIdProvider.DIST_ADD_NAME); distVersionTextField = createTextField(STR, UIComponentIdProvider.DIST_ADD_VERSION); distsetTypeNameComboBox = SPUIComponentProvider.getComboBox(i18n.get(STR), STRSTR", i18n.get(STR)); distsetTypeNameComboBox.setImmediate(t...
/** * Create required UI components. */
Create required UI components
createRequiredComponents
{ "repo_name": "StBurcher/hawkbit", "path": "hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java", "license": "epl-1.0", "size": 14692 }
[ "com.vaadin.ui.themes.ValoTheme", "org.eclipse.hawkbit.ui.common.builder.TextAreaBuilder", "org.eclipse.hawkbit.ui.components.SPUIComponentProvider", "org.eclipse.hawkbit.ui.utils.UIComponentIdProvider" ]
import com.vaadin.ui.themes.ValoTheme; import org.eclipse.hawkbit.ui.common.builder.TextAreaBuilder; import org.eclipse.hawkbit.ui.components.SPUIComponentProvider; import org.eclipse.hawkbit.ui.utils.UIComponentIdProvider;
import com.vaadin.ui.themes.*; import org.eclipse.hawkbit.ui.common.builder.*; import org.eclipse.hawkbit.ui.components.*; import org.eclipse.hawkbit.ui.utils.*;
[ "com.vaadin.ui", "org.eclipse.hawkbit" ]
com.vaadin.ui; org.eclipse.hawkbit;
2,557,054
@Delete(Constants.RequestParameters.UNAVAILABLE_ID) public CompletableFuture<Void> deleteSection(@RequestParam(value=Constants.RequestParameters.UNAVAILABLE_ID, required=true) int id) { try { unavailabilityService.deleteUnavailability(id); } catch(EntityNotFoundException e) { return Compl...
@Delete(Constants.RequestParameters.UNAVAILABLE_ID) CompletableFuture<Void> function(@RequestParam(value=Constants.RequestParameters.UNAVAILABLE_ID, required=true) int id) { try { unavailabilityService.deleteUnavailability(id); } catch(EntityNotFoundException e) { return CompletableFuture.failedFuture(e); } catch(Inval...
/** * Deletes an existing {@link Unavailability} object. * * @param id of the {@link Unavailability} object to be deleted * * @throws InvalidParameterException if id is null * @throws EntityNotFoundException if id has no coresponding entity */
Deletes an existing <code>Unavailability</code> object
deleteSection
{ "repo_name": "googleinterns/role-call", "path": "backend/src/main/java/com/google/rolecall/restcontrollers/UnavailabilityManagement.java", "license": "apache-2.0", "size": 5383 }
[ "com.google.rolecall.Constants", "com.google.rolecall.restcontrollers.Annotations", "com.google.rolecall.restcontrollers.exceptionhandling.RequestExceptions", "com.google.rolecall.services.UnavailabilityServices", "java.util.concurrent.CompletableFuture", "org.springframework.web.bind.annotation.RequestPa...
import com.google.rolecall.Constants; import com.google.rolecall.restcontrollers.Annotations; import com.google.rolecall.restcontrollers.exceptionhandling.RequestExceptions; import com.google.rolecall.services.UnavailabilityServices; import java.util.concurrent.CompletableFuture; import org.springframework.web.bind.ann...
import com.google.rolecall.*; import com.google.rolecall.restcontrollers.*; import com.google.rolecall.restcontrollers.exceptionhandling.*; import com.google.rolecall.services.*; import java.util.concurrent.*; import org.springframework.web.bind.annotation.*;
[ "com.google.rolecall", "java.util", "org.springframework.web" ]
com.google.rolecall; java.util; org.springframework.web;
659,541
private static List<File> findPythonLibDirectories(File parentDirectory) { List<File> foundDirectories = new ArrayList<>(); if (parentDirectory != null && parentDirectory.exists()) { for (File dir : parentDirectory.listFiles(DIRECTORY_FILE_FILTER)) { if (dir.getName().equ...
static List<File> function(File parentDirectory) { List<File> foundDirectories = new ArrayList<>(); if (parentDirectory != null && parentDirectory.exists()) { for (File dir : parentDirectory.listFiles(DIRECTORY_FILE_FILTER)) { if (dir.getName().equals(STR)) { foundDirectories.add(dir); } else { foundDirectories.addAll(...
/** * Searches (recursively) all directories named "pythonlib" contained in the directory. * * @param parentDirectory The directory to scan * @return A list containing all directories named pythonlib. */
Searches (recursively) all directories named "pythonlib" contained in the directory
findPythonLibDirectories
{ "repo_name": "qspin/qtaste", "path": "kernel/src/main/java/com/qspin/qtaste/util/GeneratePythonlibDoc.java", "license": "lgpl-3.0", "size": 6153 }
[ "java.io.File", "java.util.ArrayList", "java.util.List" ]
import java.io.File; import java.util.ArrayList; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,575,234
protected static void validateAddress(final String email, final String name, final ActionErrors errors) { boolean errorFound = false; if (name == null || name.trim().equals("")) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.address.name.required")); errorFoun...
static void function(final String email, final String name, final ActionErrors errors) { boolean errorFound = false; if (name == null name.trim().equals(STRerror.address.name.requiredSTRerror.address.name.toolong", String.valueOf(Constants.MAXSIZE_NAME))); errorFound = true; } if (email == null email.trim().equals(STRe...
/** * Validates a name and email address. */
Validates a name and email address
validateAddress
{ "repo_name": "ankon/gatormail", "path": "src/main/java/edu/ufl/osg/webmail/forms/FormsUtil.java", "license": "gpl-2.0", "size": 4998 }
[ "edu.ufl.osg.webmail.Constants", "org.apache.struts.action.ActionErrors" ]
import edu.ufl.osg.webmail.Constants; import org.apache.struts.action.ActionErrors;
import edu.ufl.osg.webmail.*; import org.apache.struts.action.*;
[ "edu.ufl.osg", "org.apache.struts" ]
edu.ufl.osg; org.apache.struts;
785,951
public static String computeInputLabelOfDirectEditLabel(DDiagramElement diagramElement, DDiagram diagram, DirectEditLabel labelDirectEdit, final IInterpreter interpreter) { String result = null; interpreter.setVariable(IInterpreterSiriusVariables.DIAGRAM, diagram); interpreter.setVariable(I...
static String function(DDiagramElement diagramElement, DDiagram diagram, DirectEditLabel labelDirectEdit, final IInterpreter interpreter) { String result = null; interpreter.setVariable(IInterpreterSiriusVariables.DIAGRAM, diagram); interpreter.setVariable(IInterpreterSiriusVariables.VIEW, diagramElement); try { result...
/** * Compute input label. * * @param diagramElement * the diagram element. * @param diagram * the parent diagram. * @param labelDirectEdit * the labelDirectEdit. * @param interpreter * the interpreter. * @return the lab...
Compute input label
computeInputLabelOfDirectEditLabel
{ "repo_name": "FTSRG/iq-sirius-integration", "path": "host/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/metamodel/helper/DiagramElementMappingHelper.java", "license": "epl-1.0", "size": 13324 }
[ "org.eclipse.sirius.business.api.logger.RuntimeLoggerManager", "org.eclipse.sirius.common.tools.api.interpreter.EvaluationException", "org.eclipse.sirius.common.tools.api.interpreter.IInterpreter", "org.eclipse.sirius.common.tools.api.interpreter.IInterpreterSiriusVariables", "org.eclipse.sirius.diagram.DDi...
import org.eclipse.sirius.business.api.logger.RuntimeLoggerManager; import org.eclipse.sirius.common.tools.api.interpreter.EvaluationException; import org.eclipse.sirius.common.tools.api.interpreter.IInterpreter; import org.eclipse.sirius.common.tools.api.interpreter.IInterpreterSiriusVariables; import org.eclipse.siri...
import org.eclipse.sirius.business.api.logger.*; import org.eclipse.sirius.common.tools.api.interpreter.*; import org.eclipse.sirius.diagram.*; import org.eclipse.sirius.diagram.description.tool.*; import org.eclipse.sirius.tools.api.interpreter.*;
[ "org.eclipse.sirius" ]
org.eclipse.sirius;
1,668,007
public Observable<ServiceResponse<ProfileInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String profileName, ProfileInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); ...
Observable<ServiceResponse<ProfileInner>> function(String resourceGroupName, String profileName, ProfileInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (profileName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw ...
/** * Create or update a Traffic Manager profile. * * @param resourceGroupName The name of the resource group containing the Traffic Manager profile. * @param profileName The name of the Traffic Manager profile. * @param parameters The Traffic Manager profile parameters supplied to the CreateOr...
Create or update a Traffic Manager profile
createOrUpdateWithServiceResponseAsync
{ "repo_name": "pomortaz/azure-sdk-for-java", "path": "azure-mgmt-trafficmanager/src/main/java/com/microsoft/azure/management/trafficmanager/implementation/ProfilesInner.java", "license": "mit", "size": 36826 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
712,864
public void setMarcSubFieldDAO(MarcSubFieldDAO marcSubFieldDAO) { this.marcSubFieldDAO = marcSubFieldDAO; }
void function(MarcSubFieldDAO marcSubFieldDAO) { this.marcSubFieldDAO = marcSubFieldDAO; }
/** * Set the marc sub field data access object. * * @param marcSubFieldDAO */
Set the marc sub field data access object
setMarcSubFieldDAO
{ "repo_name": "nate-rcl/irplus", "path": "metadata_service/src/edu/ur/metadata/marc/service/DefaultMarcSubFieldService.java", "license": "apache-2.0", "size": 2641 }
[ "edu.ur.metadata.marc.MarcSubFieldDAO" ]
import edu.ur.metadata.marc.MarcSubFieldDAO;
import edu.ur.metadata.marc.*;
[ "edu.ur.metadata" ]
edu.ur.metadata;
963,371
public static OcPresenceHandle subscribePresence( String host, String resourceType, EnumSet<OcConnectivityType> connectivityTypeSet, OnPresenceListener onPresenceListener) throws OcException { OcPlatform.initCheck(); int connTypeInt = 0; for (...
static OcPresenceHandle function( String host, String resourceType, EnumSet<OcConnectivityType> connectivityTypeSet, OnPresenceListener onPresenceListener) throws OcException { OcPlatform.initCheck(); int connTypeInt = 0; for (OcConnectivityType connType : OcConnectivityType.values()) { if (connectivityTypeSet.contains...
/** * Subscribes to a server's presence change events. By making this subscription, every time a * server adds/removes/alters a resource, starts or is intentionally stopped * * @param host The IP address/addressable name of the server to subscribe to * @param resourceType ...
Subscribes to a server's presence change events. By making this subscription, every time a server adds/removes/alters a resource, starts or is intentionally stopped
subscribePresence
{ "repo_name": "iotivity/iotivity", "path": "java/iotivity-android/src/main/java/org/iotivity/base/OcPlatform.java", "license": "apache-2.0", "size": 52352 }
[ "java.util.EnumSet" ]
import java.util.EnumSet;
import java.util.*;
[ "java.util" ]
java.util;
1,112,105
private void killProcess() { try { File runFile = new File(status.getDeploymentDirectory(), DeploymentArchiver.RUN_SCRIPT_NAME + ".sh"); if(runFile.exists()) { List<String> lines = org.apache.commons.io.FileUtils.readLines(runFile, "UTF-8"); String cmd = lines.get(0); String cl...
void function() { try { File runFile = new File(status.getDeploymentDirectory(), DeploymentArchiver.RUN_SCRIPT_NAME + ".sh"); if(runFile.exists()) { List<String> lines = org.apache.commons.io.FileUtils.readLines(runFile, "UTF-8"); String cmd = lines.get(0); String className = cmd.substring(cmd.lastIndexOf(".")+1, cmd.l...
/** * The quick and ugly solution, but works for me. */
The quick and ugly solution, but works for me
killProcess
{ "repo_name": "syd711/callete", "path": "callete-deployment/src/main/java/callete/deployment/server/Deployment.java", "license": "mit", "size": 8150 }
[ "java.io.File", "java.util.Arrays", "java.util.List" ]
import java.io.File; import java.util.Arrays; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
522,516
private Options createCliOptions() { // A helper option. Option help = Option.builder("h") .longOpt("help") .desc("Give this help list.") .build(); // The broker address option. Option broker = Option.builder("b") .longO...
Options function() { Option help = Option.builder("h") .longOpt("help") .desc(STR) .build(); Option broker = Option.builder("b") .longOpt(STR) .desc(STR) .hasArg() .argName(STR) .build(); Option port = Option.builder("p") .longOpt("port") .desc(STR) .hasArg() .argName("PORT") .build(); Option protocol = Option.builder(...
/** * Creates the command line options for the * program. * * @return An Options object containing all the command line options of the program. */
Creates the command line options for the program
createCliOptions
{ "repo_name": "mbredel/distributed-systems", "path": "mqtt/publisher/src/main/java/de/hda/fbi/ds/mbredel/configuration/CliProcessor.java", "license": "apache-2.0", "size": 6077 }
[ "org.apache.commons.cli.Option", "org.apache.commons.cli.Options" ]
import org.apache.commons.cli.Option; import org.apache.commons.cli.Options;
import org.apache.commons.cli.*;
[ "org.apache.commons" ]
org.apache.commons;
2,843,168
public String getDataSource() throws NamingException { return dsn; }
String function() throws NamingException { return dsn; }
/** * Events should implement this method to provide the name of the * data source that will be used to create connections for this event. * @return the name of the JDBC data source * @throws javax.naming.NamingException an error occurred providing * the name of the data source */
Events should implement this method to provide the name of the data source that will be used to create connections for this event
getDataSource
{ "repo_name": "Sylistron/dasein-persist", "path": "src/main/java/org/dasein/persist/Execution.java", "license": "apache-2.0", "size": 17694 }
[ "javax.naming.NamingException" ]
import javax.naming.NamingException;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
2,723,368
SpannableStringBuilder string = new SpannableStringBuilder(post.getText()); Entities entities = post.getEntities(); if(entities != null) { applyStylesToEntities(string, entities.getHashtags(), hashtagStyles); } return string; }
SpannableStringBuilder string = new SpannableStringBuilder(post.getText()); Entities entities = post.getEntities(); if(entities != null) { applyStylesToEntities(string, entities.getHashtags(), hashtagStyles); } return string; }
/** * Get styled hashtags. If none exist, then the returned CharSequence has no styled spans. * * @param post the post or Message whose hashtags should be styled * @param hashtagStyles the CharacterStyles to apply to the hashtags * @return A CharSequence with styled spans */
Get styled hashtags. If none exist, then the returned CharSequence has no styled spans
getStyledHashtags
{ "repo_name": "rrbrambley/MessageBeast-Android", "path": "src/main/java/com/alwaysallthetime/messagebeast/EntityStyler.java", "license": "mit", "size": 4099 }
[ "android.text.SpannableStringBuilder", "com.alwaysallthetime.adnlib.data.Entities" ]
import android.text.SpannableStringBuilder; import com.alwaysallthetime.adnlib.data.Entities;
import android.text.*; import com.alwaysallthetime.adnlib.data.*;
[ "android.text", "com.alwaysallthetime.adnlib" ]
android.text; com.alwaysallthetime.adnlib;
2,659,541
public static final boolean isRenameSampleLabel() { return !(TestPlan.getFunctionalMode() || DISABLE_SUBRESULTS_RENAMING); }
static final boolean function() { return !(TestPlan.getFunctionalMode() DISABLE_SUBRESULTS_RENAMING); }
/** * see https://bz.apache.org/bugzilla/show_bug.cgi?id=63055 * @return true if TestPlan is in functional mode or property subresults.disable_renaming is true */
see HREF
isRenameSampleLabel
{ "repo_name": "ubikloadpack/jmeter", "path": "src/core/org/apache/jmeter/samplers/SampleResult.java", "license": "apache-2.0", "size": 47636 }
[ "org.apache.jmeter.testelement.TestPlan" ]
import org.apache.jmeter.testelement.TestPlan;
import org.apache.jmeter.testelement.*;
[ "org.apache.jmeter" ]
org.apache.jmeter;
2,409,676
public static <T extends Collection<String>> T splitTo(T target, String s, char delimiter) { int index = 0; while(true) { int nextIndex = s.indexOf(delimiter, index); if(nextIndex != index && index < s.length()) { final String chunk; if(nextInd...
static <T extends Collection<String>> T function(T target, String s, char delimiter) { int index = 0; while(true) { int nextIndex = s.indexOf(delimiter, index); if(nextIndex != index && index < s.length()) { final String chunk; if(nextIndex < 0) { chunk = s.substring(index); } else { chunk = s.substring(index, nextInde...
/** * split string to target collection * @param target * @param s * @param <T> * @return */
split string to target collection
splitTo
{ "repo_name": "wayerr/talkeeg", "path": "common/src/main/java/talkeeg/common/util/StringUtils.java", "license": "gpl-3.0", "size": 4161 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,707,893
private HyConfiguration modifyConfiguration(HyConfiguration configuration, HashMap<String, HyFeature> features){ List<HyConfigurationElement> elementsToRemove = new ArrayList<>(); for(HyConfigurationElement element : configuration.getElements()) { if(element instanceof HyFeatureSelected){ HyFeatureSelect...
HyConfiguration function(HyConfiguration configuration, HashMap<String, HyFeature> features){ List<HyConfigurationElement> elementsToRemove = new ArrayList<>(); for(HyConfigurationElement element : configuration.getElements()) { if(element instanceof HyFeatureSelected){ HyFeatureSelected featureSelected = (HyFeatureSel...
/** * Modifies the actual resource by removing features according to the repair operation * @param configuration to be modified. Be aware that the file will be overridden * @param features List of all features that will kept */
Modifies the actual resource by removing features according to the repair operation
modifyConfiguration
{ "repo_name": "DarwinSPL/EvoRepair", "path": "plugins/de.evorepair.analysis.solver/src/de/evorepair/analysis/operator/EvoGuidanceConfigurationRepairOperator.java", "license": "apache-2.0", "size": 8342 }
[ "eu.hyvar.feature.HyFeature", "eu.hyvar.feature.configuration.HyConfiguration", "eu.hyvar.feature.configuration.HyConfigurationElement", "eu.hyvar.feature.configuration.HyConfigurationFactory", "eu.hyvar.feature.configuration.HyFeatureSelected", "java.util.ArrayList", "java.util.HashMap", "java.util.L...
import eu.hyvar.feature.HyFeature; import eu.hyvar.feature.configuration.HyConfiguration; import eu.hyvar.feature.configuration.HyConfigurationElement; import eu.hyvar.feature.configuration.HyConfigurationFactory; import eu.hyvar.feature.configuration.HyFeatureSelected; import java.util.ArrayList; import java.util.Hash...
import eu.hyvar.feature.*; import eu.hyvar.feature.configuration.*; import java.util.*;
[ "eu.hyvar.feature", "java.util" ]
eu.hyvar.feature; java.util;
1,545,419
if (this.alpha != alpha) { assert alpha >= 0 && alpha <= 1.0; float oldAlpha = this.alpha; this.alpha = alpha; if (alpha > 0f && alpha < 1f) { if (oldAlpha == 1) { //it used to be 1, but now is not. Save the oldOpaque ...
if (this.alpha != alpha) { assert alpha >= 0 && alpha <= 1.0; float oldAlpha = this.alpha; this.alpha = alpha; if (alpha > 0f && alpha < 1f) { if (oldAlpha == 1) { oldOpaque = isOpaque(); setOpaque(false); } if (!(RepaintManager.currentManager(this) instanceof TranslucentRepaintManager)) { RepaintManager.setCurrentMana...
/** * Set the alpha transparency level for this component. This automatically * causes a repaint of the component. * * <p>TODO add support for animated changes in translucency</p> * * @param alpha must be a value between 0 and 1 inclusive. */
Set the alpha transparency level for this component. This automatically causes a repaint of the component. TODO add support for animated changes in translucency
setAlpha
{ "repo_name": "charlycoste/TreeD", "path": "src/org/jdesktop/swingx/JXPanel.java", "license": "gpl-2.0", "size": 15160 }
[ "javax.swing.RepaintManager" ]
import javax.swing.RepaintManager;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,453,717
private synchronized void parseSource(Class clazz) { final String className= clazz.getName(); int innerSignPos= className.indexOf('$'); final String fileName = innerSignPos == -1 ? className.substring(className.lastIndexOf('.') + 1) : clazz.getName().substring(className.lastIndexOf('.')...
synchronized void function(Class clazz) { final String className= clazz.getName(); int innerSignPos= className.indexOf('$'); final String fileName = innerSignPos == -1 ? className.substring(className.lastIndexOf('.') + 1) : clazz.getName().substring(className.lastIndexOf('.') + 1, innerSignPos); List<File> sourcefiles=...
/** * Must be synch to be assured that a file is not parsed twice */
Must be synch to be assured that a file is not parsed twice
parseSource
{ "repo_name": "ludovicc/testng-debian", "path": "src/main/org/testng/internal/annotations/JDK14AnnotationFinder.java", "license": "apache-2.0", "size": 8349 }
[ "java.io.File", "java.util.List" ]
import java.io.File; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
633,742
public static long copyLarge(final InputStream input, final OutputStream output, final byte[] buffer) throws IOException { long count = 0; int n; while (EOF != (n = input.read(buffer))) { output.write(buffer, 0, n); count += n; } return count; }
static long function(final InputStream input, final OutputStream output, final byte[] buffer) throws IOException { long count = 0; int n; while (EOF != (n = input.read(buffer))) { output.write(buffer, 0, n); count += n; } return count; }
/** * Copies bytes from a large (over 2GB) <code>InputStream</code> to an * <code>OutputStream</code>. * <p> * This method uses the provided buffer, so there is no need to use a * <code>BufferedInputStream</code>. * <p> * * @param input the <code>InputStream</code> to read from * @param outp...
Copies bytes from a large (over 2GB) <code>InputStream</code> to an <code>OutputStream</code>. This method uses the provided buffer, so there is no need to use a <code>BufferedInputStream</code>.
copyLarge
{ "repo_name": "ecd-plugin/ecd", "path": "org.sf.feeling.decompiler/src/org/sf/feeling/decompiler/util/IOUtils.java", "license": "epl-1.0", "size": 55283 }
[ "java.io.IOException", "java.io.InputStream", "java.io.OutputStream" ]
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,838,100
private void insertKey(Locker locker, Cursor cursor, DatabaseEntry priKey, DatabaseEntry newSecKey) throws DatabaseException { Database foreignDb = secondaryConfig.getForeignKeyDatabase(); ...
void function(Locker locker, Cursor cursor, DatabaseEntry priKey, DatabaseEntry newSecKey) throws DatabaseException { Database foreignDb = secondaryConfig.getForeignKeyDatabase(); if (foreignDb != null) { Cursor foreignCursor = null; try { foreignCursor = new Cursor(foreignDb, locker, null); DatabaseEntry tmpData = new...
/** * Inserts a new secondary key. */
Inserts a new secondary key
insertKey
{ "repo_name": "ckaestne/LEADT", "path": "CIDE_Samples/cide_samples/Berkeley DB JE/src/com/sleepycat/je/SecondaryDatabase.java", "license": "gpl-3.0", "size": 31607 }
[ "com.sleepycat.je.dbi.CursorImpl", "com.sleepycat.je.dbi.PutMode", "com.sleepycat.je.txn.Locker" ]
import com.sleepycat.je.dbi.CursorImpl; import com.sleepycat.je.dbi.PutMode; import com.sleepycat.je.txn.Locker;
import com.sleepycat.je.dbi.*; import com.sleepycat.je.txn.*;
[ "com.sleepycat.je" ]
com.sleepycat.je;
882,282
public long getSyncFrequency(Context context){ long minutes = SyncUtils.SYNC_FREQUENCY; String minuteStr = PreferenceManager.getDefaultSharedPreferences(context) .getString(KEY_SYNC_FREQ, Constants.STRINGS.EMPTY); if(!minuteStr.isEmpty()){ try { mi...
long function(Context context){ long minutes = SyncUtils.SYNC_FREQUENCY; String minuteStr = PreferenceManager.getDefaultSharedPreferences(context) .getString(KEY_SYNC_FREQ, Constants.STRINGS.EMPTY); if(!minuteStr.isEmpty()){ try { minutes = Integer.valueOf(minuteStr) * 60; }catch (Exception ignored){ } } return minutes...
/** * Get minutes (in seconds) of Syncing frequency chosen by User * @param context Context * @return Minutes in seconds (e.g. for 3 minutes it returns 180 seconds) */
Get minutes (in seconds) of Syncing frequency chosen by User
getSyncFrequency
{ "repo_name": "ivangag/SMCheck", "path": "app/src/main/java/org/symptomcheck/capstone/preference/UserPreferencesManager.java", "license": "apache-2.0", "size": 9344 }
[ "android.content.Context", "android.preference.PreferenceManager", "org.symptomcheck.capstone.SyncUtils", "org.symptomcheck.capstone.utils.Constants" ]
import android.content.Context; import android.preference.PreferenceManager; import org.symptomcheck.capstone.SyncUtils; import org.symptomcheck.capstone.utils.Constants;
import android.content.*; import android.preference.*; import org.symptomcheck.capstone.*; import org.symptomcheck.capstone.utils.*;
[ "android.content", "android.preference", "org.symptomcheck.capstone" ]
android.content; android.preference; org.symptomcheck.capstone;
1,388,274
public Block getBlockForCallNode(CFANode node) { return callNodeToBlock.get(node); }
Block function(CFANode node) { return callNodeToBlock.get(node); }
/** * Requires <code>isCallNode(node)</code> to be <code>true</code>. * @param node call node of some cached subtree * @return Block for given call node */
Requires <code>isCallNode(node)</code> to be <code>true</code>
getBlockForCallNode
{ "repo_name": "TommesDee/cpachecker", "path": "src/org/sosy_lab/cpachecker/cfa/blocks/BlockPartitioning.java", "license": "apache-2.0", "size": 3056 }
[ "org.sosy_lab.cpachecker.cfa.model.CFANode" ]
import org.sosy_lab.cpachecker.cfa.model.CFANode;
import org.sosy_lab.cpachecker.cfa.model.*;
[ "org.sosy_lab.cpachecker" ]
org.sosy_lab.cpachecker;
2,578,739
public static void dropKeyspace(String keyspace) { String cqlKeyspace = CQLService.storeToCQLName(keyspace); m_logger.info("Dropping keyspace: {}", cqlKeyspace); StringBuilder cql = new StringBuilder(); cql.append("DROP KEYSPACE "); cql.append(cqlKeyspace); cql.append...
static void function(String keyspace) { String cqlKeyspace = CQLService.storeToCQLName(keyspace); m_logger.info(STR, cqlKeyspace); StringBuilder cql = new StringBuilder(); cql.append(STR); cql.append(cqlKeyspace); cql.append(";"); executeCQL(cql.toString()); } /** * Create a CQL table with the given name. For backward ...
/** * Drop the keyspace with the given name. The keyspace is dropped with the following * CQL command: * <pre> * DROP KEYSPACE "<i>keyspace</i>"; * </pre> * * @param keyspace Name of keyspace to drop. */
Drop the keyspace with the given name. The keyspace is dropped with the following CQL command: <code> DROP KEYSPACE "keyspace"; </code>
dropKeyspace
{ "repo_name": "kod3r/Doradus", "path": "doradus-server/src/main/java/com/dell/doradus/service/db/cql/CQLSchemaManager.java", "license": "apache-2.0", "size": 11876 }
[ "com.dell.doradus.core.ServerConfig" ]
import com.dell.doradus.core.ServerConfig;
import com.dell.doradus.core.*;
[ "com.dell.doradus" ]
com.dell.doradus;
2,861,718
public void handleFailedWrite(Exchange exchange, Exception exception) throws Exception { loggedIn = false; if (isStopping() || isStopped()) { // if we are stopping then ignore any exception during a poll log.debug("Exception occurred during stopping: " + exception.getMessage(...
void function(Exchange exchange, Exception exception) throws Exception { loggedIn = false; if (isStopping() isStopped()) { log.debug(STR + exception.getMessage()); } else { log.warn(STR + exception.getMessage()); try { disconnect(); } catch (Exception e) { log.debug(STR + e.getMessage()); } throw exception; } }
/** * The file could not be written. We need to disconnect from the remote server. */
The file could not be written. We need to disconnect from the remote server
handleFailedWrite
{ "repo_name": "kingargyle/turmeric-bot", "path": "components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileProducer.java", "license": "apache-2.0", "size": 7322 }
[ "org.apache.camel.Exchange" ]
import org.apache.camel.Exchange;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
388,665
public List<PDNameTreeNode<T>> getKids() { List<PDNameTreeNode<T>> retval = null; COSArray kids = node.getCOSArray(COSName.KIDS); if( kids != null ) { List<PDNameTreeNode<T>> pdObjects = new ArrayList<>(kids.size()); for( int i=0; i<kids.size(); i++ ) ...
List<PDNameTreeNode<T>> function() { List<PDNameTreeNode<T>> retval = null; COSArray kids = node.getCOSArray(COSName.KIDS); if( kids != null ) { List<PDNameTreeNode<T>> pdObjects = new ArrayList<>(kids.size()); for( int i=0; i<kids.size(); i++ ) { pdObjects.add( createChildNode( (COSDictionary)kids.getObject(i) ) ); } ...
/** * Return the children of this node. This list will contain PDNameTreeNode objects. * * @return The list of children or null if there are no children. */
Return the children of this node. This list will contain PDNameTreeNode objects
getKids
{ "repo_name": "apache/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java", "license": "apache-2.0", "size": 12130 }
[ "java.util.ArrayList", "java.util.List", "org.apache.pdfbox.cos.COSArray", "org.apache.pdfbox.cos.COSDictionary", "org.apache.pdfbox.cos.COSName" ]
import java.util.ArrayList; import java.util.List; import org.apache.pdfbox.cos.COSArray; import org.apache.pdfbox.cos.COSDictionary; import org.apache.pdfbox.cos.COSName;
import java.util.*; import org.apache.pdfbox.cos.*;
[ "java.util", "org.apache.pdfbox" ]
java.util; org.apache.pdfbox;
799,387
public final HashMap<StringValue, Value> getConstantMap(Env env) { HashMap<StringValue, Value> map = new HashMap<StringValue, Value>(); for (Map.Entry<StringValue, Expr> entry : _constMap.entrySet()) { map.put(entry.getKey(), entry.getValue().eval(env)); } for (Map.Entry<StringValue, Object>...
final HashMap<StringValue, Value> function(Env env) { HashMap<StringValue, Value> map = new HashMap<StringValue, Value>(); for (Map.Entry<StringValue, Expr> entry : _constMap.entrySet()) { map.put(entry.getKey(), entry.getValue().eval(env)); } for (Map.Entry<StringValue, Object> entry : _constJavaMap.entrySet()) { map....
/** * Returns the constants defined in this class. */
Returns the constants defined in this class
getConstantMap
{ "repo_name": "TheApacheCats/quercus", "path": "com/caucho/quercus/env/QuercusClass.java", "license": "gpl-2.0", "size": 68876 }
[ "com.caucho.quercus.expr.Expr", "java.util.HashMap", "java.util.Map" ]
import com.caucho.quercus.expr.Expr; import java.util.HashMap; import java.util.Map;
import com.caucho.quercus.expr.*; import java.util.*;
[ "com.caucho.quercus", "java.util" ]
com.caucho.quercus; java.util;
2,259,056