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 LinkedList<Patch> patch_make(String text1, LinkedList<Diff> diffs) { if (text1 == null || diffs == null) { throw new IllegalArgumentException("Null inputs. (patch_make)"); } LinkedList<Patch> patches = new LinkedList<Patch>(); if (diffs.isEmpty()) { return patches; // Get rid of t...
LinkedList<Patch> function(String text1, LinkedList<Diff> diffs) { if (text1 == null diffs == null) { throw new IllegalArgumentException(STR); } LinkedList<Patch> patches = new LinkedList<Patch>(); if (diffs.isEmpty()) { return patches; } Patch patch = new Patch(); int char_count1 = 0; int char_count2 = 0; String prepa...
/** * Compute a list of patches to turn text1 into text2. * text2 is not provided, diffs are the delta between text1 and text2. * @param text1 Old text. * @param diffs Array of Diff objects for text1 to text2. * @return LinkedList of Patch objects. */
Compute a list of patches to turn text1 into text2. text2 is not provided, diffs are the delta between text1 and text2
patch_make
{ "repo_name": "Floobits/eclipse", "path": "src/floobits/common/dmp/diff_match_patch.java", "license": "apache-2.0", "size": 89016 }
[ "java.util.LinkedList" ]
import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
1,616,766
public static void renderBubbleTop(Writer out, String contextPath, String colour, String titleBgColour) throws IOException { out.write("<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>"); out.write("<td style='background: url("); out.write(contextPa...
static void function(Writer out, String contextPath, String colour, String titleBgColour) throws IOException { out.write(STR); out.write(STR); out.write(contextPath); out.write(STR); out.write(colour); out.write(STR); out.write(STR); out.write(contextPath); out.write(STR); out.write(colour); out.write(STR); out.write(t...
/** * Renders the top part of the bubble i.e. before the header * * @param out The writer to output to * @param contextPath Context path of the application * @param colour The colour of the bubble * @param titleBgColour Background colour of the header area */
Renders the top part of the bubble i.e. before the header
renderBubbleTop
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/web-client/source/java/org/alfresco/web/bean/forums/ForumsBean.java", "license": "lgpl-3.0", "size": 47022 }
[ "java.io.IOException", "java.io.Writer" ]
import java.io.IOException; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
1,442,067
this.player = new Player(getUniqueName()); PlayerHolder.PLAYERS.add(this.player); }
this.player = new Player(getUniqueName()); PlayerHolder.PLAYERS.add(this.player); }
/** * Init bean. */
Init bean
initDefaultPlayer
{ "repo_name": "TeeFun/TeeFun", "path": "src/main/java/com/teefun/bean/usercontext/impl/UserContextImpl.java", "license": "gpl-2.0", "size": 1782 }
[ "com.teefun.model.Player", "com.teefun.util.PlayerHolder" ]
import com.teefun.model.Player; import com.teefun.util.PlayerHolder;
import com.teefun.model.*; import com.teefun.util.*;
[ "com.teefun.model", "com.teefun.util" ]
com.teefun.model; com.teefun.util;
563,573
List<User> getUsersByIds(PerunSession perunSession, List<Integer> ids) throws PrivilegeException;
List<User> getUsersByIds(PerunSession perunSession, List<Integer> ids) throws PrivilegeException;
/** * Returns existing users by their ids. * * @param perunSession * @param ids * @return list of users with specified ids * @throws InternalErrorException * @throws PrivilegeException */
Returns existing users by their ids
getUsersByIds
{ "repo_name": "balcirakpeter/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/UsersManager.java", "license": "bsd-2-clause", "size": 50685 }
[ "cz.metacentrum.perun.core.api.exceptions.PrivilegeException", "java.util.List" ]
import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import java.util.List;
import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
257,879
public static LuceneSubIndexInfo getIndexInfo(final String subIndex, final CompassSession session) throws IOException { LuceneSearchEngine searchEngine = (LuceneSearchEngine) ((InternalCompassSession) session).getSearchEngine(); final LuceneSearchEngineIndexManager indexManager = (LuceneSearchEngine...
static LuceneSubIndexInfo function(final String subIndex, final CompassSession session) throws IOException { LuceneSearchEngine searchEngine = (LuceneSearchEngine) ((InternalCompassSession) session).getSearchEngine(); final LuceneSearchEngineIndexManager indexManager = (LuceneSearchEngineIndexManager) searchEngine.getS...
/** * Returns low level Lucene index sub index information. Note, this method * can be called outside of a transactional context. * * @param subIndex The sub index to get the info for * @param session The compass session that will be used for transactional support * @return The sub index ...
Returns low level Lucene index sub index information. Note, this method can be called outside of a transactional context
getIndexInfo
{ "repo_name": "vthriller/opensymphony-compass-backup", "path": "src/main/src/org/apache/lucene/index/LuceneSubIndexInfo.java", "license": "apache-2.0", "size": 6020 }
[ "java.io.IOException", "org.compass.core.CompassSession", "org.compass.core.CompassTransaction", "org.compass.core.lucene.engine.LuceneSearchEngine", "org.compass.core.lucene.engine.manager.LuceneSearchEngineIndexManager", "org.compass.core.spi.InternalCompassSession" ]
import java.io.IOException; import org.compass.core.CompassSession; import org.compass.core.CompassTransaction; import org.compass.core.lucene.engine.LuceneSearchEngine; import org.compass.core.lucene.engine.manager.LuceneSearchEngineIndexManager; import org.compass.core.spi.InternalCompassSession;
import java.io.*; import org.compass.core.*; import org.compass.core.lucene.engine.*; import org.compass.core.lucene.engine.manager.*; import org.compass.core.spi.*;
[ "java.io", "org.compass.core" ]
java.io; org.compass.core;
1,894,988
public final static Function<Double, Double> multiplyBy(double multiplicand) { return multiplyBy(Double.valueOf(multiplicand)); } /** * <p> * It multiplies target by multiplicand and returns its value. The result precision * and {@link RoundingMode} is specified by the given {@link MathCon...
final static Function<Double, Double> function(double multiplicand) { return multiplyBy(Double.valueOf(multiplicand)); } /** * <p> * It multiplies target by multiplicand and returns its value. The result precision * and {@link RoundingMode} is specified by the given {@link MathContext}
/** * <p> * It multiplies target by multiplicand and returns its value * </p> * * @param multiplicand the multiplicand * @return the result of target * multiplicand */
It multiplies target by multiplicand and returns its value
multiplyBy
{ "repo_name": "op4j/op4j", "path": "src/main/java/org/op4j/functions/FnDouble.java", "license": "apache-2.0", "size": 111187 }
[ "java.math.MathContext", "java.math.RoundingMode" ]
import java.math.MathContext; import java.math.RoundingMode;
import java.math.*;
[ "java.math" ]
java.math;
200,286
@Override public void setRootGroup(Group rootGroup) { }
void function(Group rootGroup) { }
/** * Not used * @param rootGroup The rootGroup to set */
Not used
setRootGroup
{ "repo_name": "idega/se.idega.idegaweb.commune.childcare", "path": "src/java/se/idega/idegaweb/commune/childcare/importer/NackaCohabitantImportFileHandlerBean.java", "license": "gpl-3.0", "size": 12389 }
[ "com.idega.user.data.Group" ]
import com.idega.user.data.Group;
import com.idega.user.data.*;
[ "com.idega.user" ]
com.idega.user;
2,645,768
@Override public void addProtocolHandlerCustomizers(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers) { Assert.notNull(tomcatProtocolHandlerCustomizers, "TomcatProtocolHandlerCustomizers must not be null"); this.tomcatProtocolHandlerCustomizers.addAll(Arrays.asList(tomcatProtocolHandlerCus...
void function(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers) { Assert.notNull(tomcatProtocolHandlerCustomizers, STR); this.tomcatProtocolHandlerCustomizers.addAll(Arrays.asList(tomcatProtocolHandlerCustomizers)); }
/** * Add {@link TomcatProtocolHandlerCustomizer}s that should be added to the Tomcat * {@link Connector}. * @param tomcatProtocolHandlerCustomizers the customizers to add * @since 2.2.0 */
Add <code>TomcatProtocolHandlerCustomizer</code>s that should be added to the Tomcat <code>Connector</code>
addProtocolHandlerCustomizers
{ "repo_name": "jxblum/spring-boot", "path": "spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatReactiveWebServerFactory.java", "license": "apache-2.0", "size": 16257 }
[ "java.util.Arrays", "org.springframework.util.Assert" ]
import java.util.Arrays; import org.springframework.util.Assert;
import java.util.*; import org.springframework.util.*;
[ "java.util", "org.springframework.util" ]
java.util; org.springframework.util;
2,082,710
@SuppressWarnings("unchecked") public <K1 extends K, V1 extends V> ConcurrentMap<K1, V1> build(CacheLoader<? super K1, V1> loader) { Object cache = null; if (BUILD_METHOD == null) { try { BUILD_METHOD = builder.getClass().getDeclaredMethod("build", CacheLoader.class)...
@SuppressWarnings(STR) <K1 extends K, V1 extends V> ConcurrentMap<K1, V1> function(CacheLoader<? super K1, V1> loader) { Object cache = null; if (BUILD_METHOD == null) { try { BUILD_METHOD = builder.getClass().getDeclaredMethod("build", CacheLoader.class); BUILD_METHOD.setAccessible(true); } catch (Exception e) { throw...
/** * Returns the cache wrapped as a ConcurrentMap. * <p> * We can't return the direct Cache instance as it changed in Guava 13. * * @param <K1> Key type * @param <V1> Value type * @param loader - cache loader * @return The cache as a a map. */
Returns the cache wrapped as a ConcurrentMap. We can't return the direct Cache instance as it changed in Guava 13
build
{ "repo_name": "aloata/fl1", "path": "core/src/main/java/com/github/games647/fastlogin/core/CompatibleCacheBuilder.java", "license": "mit", "size": 14552 }
[ "com.google.common.cache.CacheLoader", "java.util.concurrent.ConcurrentMap" ]
import com.google.common.cache.CacheLoader; import java.util.concurrent.ConcurrentMap;
import com.google.common.cache.*; import java.util.concurrent.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,449,072
public static String getBuildInformation() { String retVal = getBuildInformation_0(); return retVal; } // // C++: int64 getCPUTickCount() //
static String function() { String retVal = getBuildInformation_0(); return retVal; } //
/** * <p>Returns full configuration time cmake output.</p> * * <p>Returned value is raw cmake output including version control system revision, * compiler version, compiler flags, enabled modules and third party libraries, * etc. Output format depends on target architecture.</p> * * @see <a href="http://docs.ope...
Returns full configuration time cmake output. Returned value is raw cmake output including version control system revision, compiler version, compiler flags, enabled modules and third party libraries, etc. Output format depends on target architecture
getBuildInformation
{ "repo_name": "nloewen/ORB_SLAM2_Android", "path": "openCVLibrary24132/src/main/java/org/opencv/core/Core.java", "license": "gpl-3.0", "size": 337963 }
[ "java.lang.String" ]
import java.lang.String;
import java.lang.*;
[ "java.lang" ]
java.lang;
4,345
public static Revision buildRevision(PathNode path, final Object[] orig, final Object[] rev) { if (path == null) { throw new IllegalArgumentException("path is null"); } if (orig == null) { throw new IllegalArgumentException("original sequence is null"); } if (rev == null) { throw new Illega...
static Revision function(PathNode path, final Object[] orig, final Object[] rev) { if (path == null) { throw new IllegalArgumentException(STR); } if (orig == null) { throw new IllegalArgumentException(STR); } if (rev == null) { throw new IllegalArgumentException(STR); } Revision revision = new Revision(); if (path.isSn...
/** * Constructs a {@link Revision} from a difference path. * * @param path * The path. * @param orig * The original sequence. * @param rev * The revised sequence. * @return A {@link Revision} script corresponding to the path. * @throws DifferentiationFailedExceptio...
Constructs a <code>Revision</code> from a difference path
buildRevision
{ "repo_name": "martin-g/wicket-osgi", "path": "wicket-util/src/main/java/org/apache/wicket/util/diff/myers/MyersDiff.java", "license": "apache-2.0", "size": 7414 }
[ "org.apache.wicket.util.diff.Chunk", "org.apache.wicket.util.diff.Delta", "org.apache.wicket.util.diff.Revision" ]
import org.apache.wicket.util.diff.Chunk; import org.apache.wicket.util.diff.Delta; import org.apache.wicket.util.diff.Revision;
import org.apache.wicket.util.diff.*;
[ "org.apache.wicket" ]
org.apache.wicket;
652,893
protected void publishReadEvent(final NodeRef nodeRef, final String name, final String mimeType, final long contentSize, final String encoding, final String range) { final QName nodeType = nodeRef==null?null:nodeService.getType(nodeRef);
void function(final NodeRef nodeRef, final String name, final String mimeType, final long contentSize, final String encoding, final String range) { final QName nodeType = nodeRef==null?null:nodeService.getType(nodeRef);
/** * Notifies listeners that a read has taken place. * * @param nodeRef NodeRef * @param name String * @param mimeType String * @param contentSize long * @param encoding String * @param range String */
Notifies listeners that a read has taken place
publishReadEvent
{ "repo_name": "loftuxab/alfresco-community-loftux", "path": "projects/repository/source/java/org/alfresco/opencmis/CMISConnector.java", "license": "lgpl-3.0", "size": 153672 }
[ "org.alfresco.service.cmr.repository.NodeRef", "org.alfresco.service.namespace.QName" ]
import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.namespace.QName;
import org.alfresco.service.cmr.repository.*; import org.alfresco.service.namespace.*;
[ "org.alfresco.service" ]
org.alfresco.service;
599,259
public TransportOutDescription getTransportOut() { checkActivateWarning("getTransportOut"); if (transportOut == null && parent != null) { return parent.getTransportOut(); } return transportOut; }
TransportOutDescription function() { checkActivateWarning(STR); if (transportOut == null && parent != null) { return parent.getTransportOut(); } return transportOut; }
/** * Get outbound transport description. * * @return description */
Get outbound transport description
getTransportOut
{ "repo_name": "apache/axis2-java", "path": "modules/kernel/src/org/apache/axis2/client/Options.java", "license": "apache-2.0", "size": 58584 }
[ "org.apache.axis2.description.TransportOutDescription" ]
import org.apache.axis2.description.TransportOutDescription;
import org.apache.axis2.description.*;
[ "org.apache.axis2" ]
org.apache.axis2;
1,224,512
protected void refreshPlot() { plot.removeDrawables(Dataset.class); String s = ""; //$NON-NLS-1$ for (int i=0; i<buttons.length; i++) { if (buttons[i].isSelected()) { Dataset data = fourierManager.getDataset(i); plot.addDrawable(data); plot.setXLabel(data.getXColumnName()); if (s.l...
void function() { plot.removeDrawables(Dataset.class); String s = STR, "; s += data.getYColumnName(); } } plot.setYLabel(s); plot.repaint(); }
/** * Refreshes the plot to show currrently selected variables. */
Refreshes the plot to show currrently selected variables
refreshPlot
{ "repo_name": "fschuett/osp", "path": "src/org/opensourcephysics/tools/FourierPanel.java", "license": "gpl-3.0", "size": 5858 }
[ "org.opensourcephysics.display.Dataset" ]
import org.opensourcephysics.display.Dataset;
import org.opensourcephysics.display.*;
[ "org.opensourcephysics.display" ]
org.opensourcephysics.display;
2,500,372
protected final void InitTextureMapping() { int i, x, t; int focallength; // fixed_t int fov = FIELDOFVIEW; // For widescreen displays, increase the FOV so that the middle part of // the // screen that would be visible on a 4:3 display has the requested FOV. ...
final void function() { int i, x, t; int focallength; int fov = FIELDOFVIEW; focallength = FixedDiv(view.centerxfrac, finetangent[QUARTERMARK + FIELDOFVIEW / 2]); for (i = 0; i < FINEANGLES / 2; i++) { if (finetangent[i] > FRACUNIT * 2) t = -1; else if (finetangent[i] < -FRACUNIT * 2) t = view.width + 1; else { t = Fix...
/** * R_InitTextureMapping Not moved into the TextureManager because it's * tighly coupled to the visuals, rather than textures. Perhaps the name is * not the most appropriate. */
R_InitTextureMapping Not moved into the TextureManager because it's tighly coupled to the visuals, rather than textures. Perhaps the name is not the most appropriate
InitTextureMapping
{ "repo_name": "jendave/mochadoom", "path": "src/main/java/net/sourceforge/mochadoom/rendering/RendererState.java", "license": "gpl-3.0", "size": 114022 }
[ "net.sourceforge.mochadoom.data.Tables", "net.sourceforge.mochadoom.menu.fixed_t.FixedDiv", "net.sourceforge.mochadoom.menu.fixed_t.FixedMul" ]
import net.sourceforge.mochadoom.data.Tables; import net.sourceforge.mochadoom.menu.fixed_t.FixedDiv; import net.sourceforge.mochadoom.menu.fixed_t.FixedMul;
import net.sourceforge.mochadoom.data.*; import net.sourceforge.mochadoom.menu.fixed_t.*;
[ "net.sourceforge.mochadoom" ]
net.sourceforge.mochadoom;
2,366,473
public void onStruckByLightning(EntityLightningBolt lightningBolt) { if (!this.worldObj.isRemote && !this.isDead) { EntityPigZombie entitypigzombie = new EntityPigZombie(this.worldObj); entitypigzombie.setCurrentItemOrArmor(0, new ItemStack(Items.golden_sword)); ...
void function(EntityLightningBolt lightningBolt) { if (!this.worldObj.isRemote && !this.isDead) { EntityPigZombie entitypigzombie = new EntityPigZombie(this.worldObj); entitypigzombie.setCurrentItemOrArmor(0, new ItemStack(Items.golden_sword)); entitypigzombie.setLocationAndAngles(this.posX, this.posY, this.posZ, this....
/** * Called when a lightning bolt hits the entity. */
Called when a lightning bolt hits the entity
onStruckByLightning
{ "repo_name": "TorchPowered/CraftBloom", "path": "src/net/minecraft/entity/passive/EntityPig.java", "license": "mit", "size": 7659 }
[ "net.minecraft.entity.effect.EntityLightningBolt", "net.minecraft.entity.monster.EntityPigZombie", "net.minecraft.init.Items", "net.minecraft.item.ItemStack" ]
import net.minecraft.entity.effect.EntityLightningBolt; import net.minecraft.entity.monster.EntityPigZombie; import net.minecraft.init.Items; import net.minecraft.item.ItemStack;
import net.minecraft.entity.effect.*; import net.minecraft.entity.monster.*; import net.minecraft.init.*; import net.minecraft.item.*;
[ "net.minecraft.entity", "net.minecraft.init", "net.minecraft.item" ]
net.minecraft.entity; net.minecraft.init; net.minecraft.item;
2,841,690
private void assertMethod(Map map, String name, String value, boolean flag) { if (flag) { assertTrue("Cannot find property with Name [" + name + "]" , map.containsKey(StringUtil.debeanify(name))); assertEquals(value, map.get(StringUtil.debeanify(na...
void function(Map map, String name, String value, boolean flag) { if (flag) { assertTrue(STR + name + "]" , map.containsKey(StringUtil.debeanify(name))); assertEquals(value, map.get(StringUtil.debeanify(name))); } else { assertFalse(STR + name + "]" , map.containsKey(StringUtil.debeanify(name))); } }
/** * Quick method to assert a property in a mapified bean * @param map the map obtained by mapifying a bean * @param name the beanfied key name * @param value beanified value. * @param flag true if a properties existence is to be assert * false orhterwise. ...
Quick method to assert a property in a mapified bean
assertMethod
{ "repo_name": "shastah/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/util/test/MapBuilderTest.java", "license": "gpl-2.0", "size": 3732 }
[ "com.redhat.rhn.common.util.StringUtil", "java.util.Map" ]
import com.redhat.rhn.common.util.StringUtil; import java.util.Map;
import com.redhat.rhn.common.util.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
1,265,995
// make a "deep" copy of list of empty elements so we can // add "all props" list to a propstat with impunity.. private static List<Element> copyElementList(List<Element> el) { List<Element> result = new ArrayList<Element>(el.size()); for (Element e : el) { result.ad...
static List<Element> function(List<Element> el) { List<Element> result = new ArrayList<Element>(el.size()); for (Element e : el) { result.add((Element)e.clone()); } return result; }
/** * Copy element list. * * @param el the el * * @return the list */
Copy element list
copyElementList
{ "repo_name": "mdiggory/dryad-repo", "path": "dspace-lni/dspace-lni-core/src/main/java/org/dspace/app/dav/DAVResource.java", "license": "bsd-3-clause", "size": 64696 }
[ "java.util.ArrayList", "java.util.List", "org.jdom.Element" ]
import java.util.ArrayList; import java.util.List; import org.jdom.Element;
import java.util.*; import org.jdom.*;
[ "java.util", "org.jdom" ]
java.util; org.jdom;
103,999
private void rotateArrow() { Drawable drawable = mArrow.getDrawable(); Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); canvas.save(); canvas.rotate(180.0f, canvas.getWidth() / 2.0f, canvas.getHei...
void function() { Drawable drawable = mArrow.getDrawable(); Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); canvas.save(); canvas.rotate(180.0f, canvas.getWidth() / 2.0f, canvas.getHeight() / 2.0f); drawable.setBound...
/** * Rotate arrow. */
Rotate arrow
rotateArrow
{ "repo_name": "gizwits/Gizwits-SmartSocket_Android", "path": "src/com/gizwits/framework/widget/RefreshableListView.java", "license": "mit", "size": 12347 }
[ "android.graphics.Bitmap", "android.graphics.Canvas", "android.graphics.drawable.Drawable" ]
import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.drawable.Drawable;
import android.graphics.*; import android.graphics.drawable.*;
[ "android.graphics" ]
android.graphics;
2,132,829
public static void createSchemaFiles(FileSystem fs, boolean hdfs, String filter) throws Exception { // Create and load the data schema if (!hdfs) { createDataSchema(false); } else { createDataSchema(fs, true); } DataSchemaLoader.initialize(); // Create and load the q...
static void function(FileSystem fs, boolean hdfs, String filter) throws Exception { if (!hdfs) { createDataSchema(false); } else { createDataSchema(fs, true); } DataSchemaLoader.initialize(); List<String> dnsHostnameQueryElements = Arrays.asList(DATE, SRCIP, DSTIP, QTYPE, RCODE, IPS); List<String> dnsHostnameQueryFilte...
/** * Create and load the data and query schema files used for testing * <p> * Writes both local and hdfs schema files if hdfs=true -- only updates the corresponding properties for the local files */
Create and load the data and query schema files used for testing Writes both local and hdfs schema files if hdfs=true -- only updates the corresponding properties for the local files
createSchemaFiles
{ "repo_name": "jacobwil/incubator-pirk", "path": "src/main/java/org/apache/pirk/test/utils/Inputs.java", "license": "apache-2.0", "size": 25185 }
[ "java.util.Arrays", "java.util.Collections", "java.util.List", "org.apache.hadoop.fs.FileSystem", "org.apache.pirk.schema.data.DataSchemaLoader", "org.apache.pirk.schema.query.QuerySchemaLoader" ]
import java.util.Arrays; import java.util.Collections; import java.util.List; import org.apache.hadoop.fs.FileSystem; import org.apache.pirk.schema.data.DataSchemaLoader; import org.apache.pirk.schema.query.QuerySchemaLoader;
import java.util.*; import org.apache.hadoop.fs.*; import org.apache.pirk.schema.data.*; import org.apache.pirk.schema.query.*;
[ "java.util", "org.apache.hadoop", "org.apache.pirk" ]
java.util; org.apache.hadoop; org.apache.pirk;
508,565
public void testCharObjectArray() { Character[] elements = new Character[] {new Character('A'), new Character('B'), new Character('C')}; CharObjectArray holder = new CharObjectArray(elements, elements); performArrayTest(holder, Character[].class, elements, elements, 0.0); ...
void function() { Character[] elements = new Character[] {new Character('A'), new Character('B'), new Character('C')}; CharObjectArray holder = new CharObjectArray(elements, elements); performArrayTest(holder, Character[].class, elements, elements, 0.0); holder = new CharObjectArray(null, null); performArrayTest(holder...
/** * Test for Character[] array, stored serialised or in a join table. */
Test for Character[] array, stored serialised or in a join table
testCharObjectArray
{ "repo_name": "hopecee/texsts", "path": "jdo/general/src/test/org/datanucleus/tests/types/ArrayTest.java", "license": "apache-2.0", "size": 35612 }
[ "org.jpox.samples.array.CharObjectArray" ]
import org.jpox.samples.array.CharObjectArray;
import org.jpox.samples.array.*;
[ "org.jpox.samples" ]
org.jpox.samples;
1,212,344
public String getArgString() { StringBuffer sb=new StringBuffer(); Enumeration flags=hash.keys(); while (flags.hasMoreElements()) { Character flag=(Character)flags.nextElement(); sb.append('-').append(flag.charValue()).append(' ');; String option=(String)hash.get(flag); if (!option.equals("")) { ...
String function() { StringBuffer sb=new StringBuffer(); Enumeration flags=hash.keys(); while (flags.hasMoreElements()) { Character flag=(Character)flags.nextElement(); sb.append('-').append(flag.charValue()).append(' ');; String option=(String)hash.get(flag); if (!option.equals("")) { sb.append(option).append(' ');; } ...
/** * return argument list as space-delimited string * @return string with arg list */
return argument list as space-delimited string
getArgString
{ "repo_name": "cycronix/cloudturbine", "path": "JavaCode/CTlib/src/main/java/cycronix/ctlib/ArgHandler.java", "license": "apache-2.0", "size": 6867 }
[ "java.util.Enumeration" ]
import java.util.Enumeration;
import java.util.*;
[ "java.util" ]
java.util;
2,794,122
JCExpression makeQualIdent(JCExpression expr, String name) { Assert.that(expr != null || name != null); if (expr == null) { return makeUnquotedIdent(name); } else if (name == null) { return expr; } else { return makeSelect(expr, name); } ...
JCExpression makeQualIdent(JCExpression expr, String name) { Assert.that(expr != null name != null); if (expr == null) { return makeUnquotedIdent(name); } else if (name == null) { return expr; } else { return makeSelect(expr, name); } }
/** * A select <i>expr.name</i> if both arguments are non-null, * an unquoted ident for 'name' if the given expression is null, * or the given expression if the given name is null. * * It is an error to call this method with two null arguments. * @see #makeQualIdent(JCExpression, String.....
A select expr.name if both arguments are non-null, an unquoted ident for 'name' if the given expression is null, or the given expression if the given name is null. It is an error to call this method with two null arguments
makeQualIdent
{ "repo_name": "lucaswerkmeister/ceylon-compiler", "path": "src/com/redhat/ceylon/compiler/java/codegen/Naming.java", "license": "gpl-2.0", "size": 76714 }
[ "com.sun.tools.javac.tree.JCTree" ]
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.tree.*;
[ "com.sun.tools" ]
com.sun.tools;
2,629,013
public void getData() { if ( input.getServerName() != null ) { wServerName.setText( input.getServerName() ); } if ( input.getUserName() != null ) { wUserName.setText( input.getUserName() ); } if ( input.getPassword() != null ) { wPassword.setText( input.getPassword() ); } ...
void function() { if ( input.getServerName() != null ) { wServerName.setText( input.getServerName() ); } if ( input.getUserName() != null ) { wUserName.setText( input.getUserName() ); } if ( input.getPassword() != null ) { wPassword.setText( input.getPassword() ); } wUseSSL.setSelection( input.isUseSSL() ); if ( input....
/** * Copy information from the meta-data input to the dialog fields. */
Copy information from the meta-data input to the dialog fields
getData
{ "repo_name": "nicoben/pentaho-kettle", "path": "ui/src/org/pentaho/di/ui/trans/steps/mailinput/MailInputDialog.java", "license": "apache-2.0", "size": 77496 }
[ "org.apache.commons.lang.StringUtils", "org.eclipse.swt.widgets.TableItem", "org.pentaho.di.core.Const", "org.pentaho.di.job.entries.getpop.MailConnectionMeta", "org.pentaho.di.trans.steps.mailinput.MailInputField", "org.pentaho.di.trans.steps.mailinput.MailInputMeta" ]
import org.apache.commons.lang.StringUtils; import org.eclipse.swt.widgets.TableItem; import org.pentaho.di.core.Const; import org.pentaho.di.job.entries.getpop.MailConnectionMeta; import org.pentaho.di.trans.steps.mailinput.MailInputField; import org.pentaho.di.trans.steps.mailinput.MailInputMeta;
import org.apache.commons.lang.*; import org.eclipse.swt.widgets.*; import org.pentaho.di.core.*; import org.pentaho.di.job.entries.getpop.*; import org.pentaho.di.trans.steps.mailinput.*;
[ "org.apache.commons", "org.eclipse.swt", "org.pentaho.di" ]
org.apache.commons; org.eclipse.swt; org.pentaho.di;
1,835,678
public void setIcon(ImageIcon icon) { calendarButton.setIcon(icon); }
void function(ImageIcon icon) { calendarButton.setIcon(icon); }
/** * Sets the icon of the buuton. * * @param icon * The new icon */
Sets the icon of the buuton
setIcon
{ "repo_name": "aitortarazaga/Programacion", "path": "t8p1p123/jcalendar-1.4/src/com/toedter/calendar/JDateChooser.java", "license": "apache-2.0", "size": 16134 }
[ "javax.swing.ImageIcon" ]
import javax.swing.ImageIcon;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,041,529
List<ReportEntry> reportEntries = Lists.newArrayList(); for (String counterName : counters.counterNames()) { ReportEntry reportEntry = ReportEntryFactory.createCounterReportEntry(mapToReportEntryKey(counterName), counters.currentValue(counterName)); ...
List<ReportEntry> reportEntries = Lists.newArrayList(); for (String counterName : counters.counterNames()) { ReportEntry reportEntry = ReportEntryFactory.createCounterReportEntry(mapToReportEntryKey(counterName), counters.currentValue(counterName)); reportEntries.add(reportEntry); } return reportEntries; }
/** * Converts passed {@link NamedCounters} into {@link ReportEntry}. */
Converts passed <code>NamedCounters</code> into <code>ReportEntry</code>
convertToReportEntries
{ "repo_name": "openaire/iis", "path": "iis-common/src/main/java/eu/dnetlib/iis/common/report/CountersToReportEntriesConverter.java", "license": "apache-2.0", "size": 1869 }
[ "com.google.common.collect.Lists", "eu.dnetlib.iis.common.schemas.ReportEntry", "java.util.List" ]
import com.google.common.collect.Lists; import eu.dnetlib.iis.common.schemas.ReportEntry; import java.util.List;
import com.google.common.collect.*; import eu.dnetlib.iis.common.schemas.*; import java.util.*;
[ "com.google.common", "eu.dnetlib.iis", "java.util" ]
com.google.common; eu.dnetlib.iis; java.util;
1,730,096
private static void serializeList(final List list, final ContentHandler handler) throws SAXException { AttributesImpl attributes = new AttributesImpl(); handler.startElement(null, "array", "array", attributes); for(Iterator iter = list.iter...
static void function(final List list, final ContentHandler handler) throws SAXException { AttributesImpl attributes = new AttributesImpl(); handler.startElement(null, "array", "array", attributes); for(Iterator iter = list.iterator();iter.hasNext();) { serializeObject(iter.next(), handler); } handler.endElement(null, "...
/** * Serialize a list as an array element. * @param list list to serialize. * @param handler destination of serialization events. * @throws SAXException if exception during serialization. */
Serialize a list as an array element
serializeList
{ "repo_name": "cniweb/ant-contrib", "path": "cpptasks/src/main/java/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.java", "license": "apache-2.0", "size": 9080 }
[ "java.util.Iterator", "java.util.List", "org.xml.sax.ContentHandler", "org.xml.sax.SAXException", "org.xml.sax.helpers.AttributesImpl" ]
import java.util.Iterator; import java.util.List; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; import org.xml.sax.helpers.AttributesImpl;
import java.util.*; import org.xml.sax.*; import org.xml.sax.helpers.*;
[ "java.util", "org.xml.sax" ]
java.util; org.xml.sax;
264,615
public WeatherLocation getWeatherLocationById(Long id) { return this.weatherLocationRepository.findById(id); }
WeatherLocation function(Long id) { return this.weatherLocationRepository.findById(id); }
/** * Gets weather location by id * @param id the id to find by * @return the weather location */
Gets weather location by id
getWeatherLocationById
{ "repo_name": "jackcmeyer/SmartSync", "path": "smartsync-weather-service/src/main/java/com/smartsync/service/WeatherService.java", "license": "mit", "size": 3538 }
[ "com.smartsync.model.WeatherLocation" ]
import com.smartsync.model.WeatherLocation;
import com.smartsync.model.*;
[ "com.smartsync.model" ]
com.smartsync.model;
397,706
public Builder withNullableSourceInfo(final String sourceInfo) { if (Utils.isNullOrEmpty(sourceInfo)) { this.sourceInfo = Optional.absent(); } else { this.sourceInfo = Optional.of(sourceInfo); } return this; }
Builder function(final String sourceInfo) { if (Utils.isNullOrEmpty(sourceInfo)) { this.sourceInfo = Optional.absent(); } else { this.sourceInfo = Optional.of(sourceInfo); } return this; }
/** Specify information about the source of this type mapping. This is often a filename. * Null or whitespace only entries will be ignored. * @param sourceInfo the source information. * @return this builder. */
Specify information about the source of this type mapping. This is often a filename. Null or whitespace only entries will be ignored
withNullableSourceInfo
{ "repo_name": "kbase/KBaseSearchEngine", "path": "lib/src/kbasesearchengine/system/TypeMapping.java", "license": "mit", "size": 10149 }
[ "com.google.common.base.Optional" ]
import com.google.common.base.Optional;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
171,369
@RequestMapping(UiConstants.DISPLAY_BUILD_INFO_URL) public ModelAndView displayBuildInfo() { // Create the model and view with the necessary model objects populated for the screen. ModelAndView modelAndView = new ModelAndView(UiConstants.DISPLAY_BUILD_INFO_PAGE); modelAndView.addObje...
@RequestMapping(UiConstants.DISPLAY_BUILD_INFO_URL) ModelAndView function() { ModelAndView modelAndView = new ModelAndView(UiConstants.DISPLAY_BUILD_INFO_PAGE); modelAndView.addObject(UiConstants.MODEL_KEY_BUILD_INFORMATION, buildInformation); return modelAndView; }
/** * Displays the build information. * * @return the model and view. */
Displays the build information
displayBuildInfo
{ "repo_name": "FINRAOS/herd", "path": "herd-code/herd-ui/src/main/java/org/finra/herd/ui/controller/HerdController.java", "license": "apache-2.0", "size": 3047 }
[ "org.finra.herd.ui.constants.UiConstants", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.servlet.ModelAndView" ]
import org.finra.herd.ui.constants.UiConstants; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView;
import org.finra.herd.ui.constants.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.*;
[ "org.finra.herd", "org.springframework.web" ]
org.finra.herd; org.springframework.web;
1,010,427
public List<MetadataItem> metadata() { return this.metadata; }
List<MetadataItem> function() { return this.metadata; }
/** * Get the metadata value. * * @return the metadata value */
Get the metadata value
metadata
{ "repo_name": "pomortaz/azure-sdk-for-java", "path": "azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobUpdateParameter.java", "license": "mit", "size": 4312 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,551,547
private void assignCompletelyLostPartitions() { if (!node.getClusterService().getClusterState().isPartitionPromotionAllowed()) { // Migrations and partition promotions are not allowed. We cannot modify partition table. return; } logger.fine("C...
void function() { if (!node.getClusterService().getClusterState().isPartitionPromotionAllowed()) { return; } logger.fine(STR); InternalPartition[] partitions = partitionStateManager.getPartitions(); PartitionIdSet partitionIds = Arrays.stream(partitions) .filter(p -> InternalPartition.replicaIndices().allMatch(i -> p.g...
/** * Assigns new owners to completely lost partitions (which do not have owners for any replica) * when cluster state does not allow migrations/repartitioning but allows promotions. */
Assigns new owners to completely lost partitions (which do not have owners for any replica) when cluster state does not allow migrations/repartitioning but allows promotions
assignCompletelyLostPartitions
{ "repo_name": "mesutcelik/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/internal/partition/impl/MigrationManager.java", "license": "apache-2.0", "size": 76145 }
[ "com.hazelcast.internal.partition.InternalPartition", "com.hazelcast.internal.partition.MigrationInfo", "com.hazelcast.internal.partition.MigrationStateImpl", "com.hazelcast.internal.partition.PartitionReplica", "com.hazelcast.internal.util.Clock", "com.hazelcast.internal.util.collection.PartitionIdSet", ...
import com.hazelcast.internal.partition.InternalPartition; import com.hazelcast.internal.partition.MigrationInfo; import com.hazelcast.internal.partition.MigrationStateImpl; import com.hazelcast.internal.partition.PartitionReplica; import com.hazelcast.internal.util.Clock; import com.hazelcast.internal.util.collection....
import com.hazelcast.internal.partition.*; import com.hazelcast.internal.util.*; import com.hazelcast.internal.util.collection.*; import java.util.*; import java.util.function.*; import java.util.stream.*;
[ "com.hazelcast.internal", "java.util" ]
com.hazelcast.internal; java.util;
127,177
public boolean addResourceProvider(String prefix, ResourceProvider provider) { if (prefix.equals(this.path)) { throw new ResourceProviderEntryException( "ResourceProviderEntry for prefix already exists", this); } else if (prefix.startsWith(this.prefix)) { ...
boolean function(String prefix, ResourceProvider provider) { if (prefix.equals(this.path)) { throw new ResourceProviderEntryException( STR, this); } else if (prefix.startsWith(this.prefix)) { prefix = prefix.substring(this.prefix.length()); if (entries != null) { for (int i = 0; i < entries.length; i++) { ResourceProvi...
/** * Adds the given resource provider into the tree for the given prefix. * * @return <code>true</code> if the provider could be entered into the * subtree below this entry. Otherwise <code>false</code> is * returned. * @throws ResourceProviderEntryException if a resource...
Adds the given resource provider into the tree for the given prefix
addResourceProvider
{ "repo_name": "codders/k2-sling-fork", "path": "bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/ResourceProviderEntry.java", "license": "apache-2.0", "size": 17159 }
[ "java.util.Arrays", "java.util.SortedSet", "java.util.TreeSet", "org.apache.sling.api.resource.ResourceProvider" ]
import java.util.Arrays; import java.util.SortedSet; import java.util.TreeSet; import org.apache.sling.api.resource.ResourceProvider;
import java.util.*; import org.apache.sling.api.resource.*;
[ "java.util", "org.apache.sling" ]
java.util; org.apache.sling;
972,505
@Test public void test_changeDatatype_Settings() { // reset datatype yText.setDatatype(null); // set the datatype yTextDatatype.setMinLength(10); yTextDatatype.setMaxLength(100); yTextDatatype.setRegExpression("Huhu"); yText.setDatatype(yTextDatatype); assertEquals(0, textEditpart.getValidators()....
void function() { yText.setDatatype(null); yTextDatatype.setMinLength(10); yTextDatatype.setMaxLength(100); yTextDatatype.setRegExpression("Huhu"); yText.setDatatype(yTextDatatype); assertEquals(0, textEditpart.getValidators().size()); assertEquals(0, yText.getValidators().size()); assertEquals(3, textEditpart.getDatat...
/** * Changing the settings does not change the amount of registered * validators. Updated internally. */
Changing the settings does not change the amount of registered validators. Updated internally
test_changeDatatype_Settings
{ "repo_name": "lunifera/lunifera-ecview", "path": "org.lunifera.ecview.core.extension.tests/src/org/lunifera/ecview/core/extension/tests/datatypes/DatatypeEditpartTest_BasedOnText.java", "license": "epl-1.0", "size": 21717 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
708,713
public static void readFileAsStream(final File file, final OutputStream os) throws IOException { // $JUnit$ if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(file, os)); if (null == file) { throw new RuntimeExceptionIsNull("file"); //$NON-NLS-1$ } // if (!file.isFile()) { // throw new IllegalA...
static void function(final File file, final OutputStream os) throws IOException { if (log.isDebugEnabled()) log.debug(HelperLog.methodStart(file, os)); if (null == file) { throw new RuntimeExceptionIsNull("file"); } if (null == os) { throw new RuntimeExceptionIsNull("os"); } writeStream(os, readFile(file)); if (log.isD...
/** * Reads a {@link File} into an {@link OutputStream}. * * @param file * for reading * @param os * {@link OutputStream} for the {@link File} content * @throws IOException * @see File * @see OutputStream * @since 0.0.1 */
Reads a <code>File</code> into an <code>OutputStream</code>
readFileAsStream
{ "repo_name": "slaubenberger/wichtel", "path": "src/main/java/net/laubenberger/wichtel/helper/HelperIO.java", "license": "lgpl-3.0", "size": 41627 }
[ "java.io.File", "java.io.IOException", "java.io.OutputStream", "net.laubenberger.wichtel.misc.exception.RuntimeExceptionIsNull" ]
import java.io.File; import java.io.IOException; import java.io.OutputStream; import net.laubenberger.wichtel.misc.exception.RuntimeExceptionIsNull;
import java.io.*; import net.laubenberger.wichtel.misc.exception.*;
[ "java.io", "net.laubenberger.wichtel" ]
java.io; net.laubenberger.wichtel;
1,221,016
public void surfaceDestroyed(SurfaceHolder holder) { boolean retry = true; _mapThread._run = false; while (retry) { try { _mapThread.join(); retry = false; } catch (InterruptedException e) { } } }
void function(SurfaceHolder holder) { boolean retry = true; _mapThread._run = false; while (retry) { try { _mapThread.join(); retry = false; } catch (InterruptedException e) { } } }
/** * Called when surface destroyed * Stops the thread. */
Called when surface destroyed Stops the thread
surfaceDestroyed
{ "repo_name": "Minikutty/Scrollmap", "path": "src/com/droidnova/android/games/CellMap.java", "license": "mit", "size": 11490 }
[ "android.view.SurfaceHolder" ]
import android.view.SurfaceHolder;
import android.view.*;
[ "android.view" ]
android.view;
724,069
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = "True") @SimpleProperty public void Rotates(boolean rotates) { this.rotates = rotates; registerChange(); }
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = "True") void function(boolean rotates) { this.rotates = rotates; registerChange(); }
/** * Rotates property setter method * * @param rotates {@code true} indicates that the image rotates to match the sprite's heading * {@code false} indicates that the sprite image doesn't rotate. */
Rotates property setter method
Rotates
{ "repo_name": "ajhalbleib/aicg", "path": "appinventor/components/src/com/google/appinventor/components/runtime/ImageSprite.java", "license": "mit", "size": 10172 }
[ "com.google.appinventor.components.annotations.DesignerProperty", "com.google.appinventor.components.common.PropertyTypeConstants" ]
import com.google.appinventor.components.annotations.DesignerProperty; import com.google.appinventor.components.common.PropertyTypeConstants;
import com.google.appinventor.components.annotations.*; import com.google.appinventor.components.common.*;
[ "com.google.appinventor" ]
com.google.appinventor;
1,556,359
public static final BigInteger decodeBigIntegerFromElement(Element element) throws Base64DecodingException { return new BigInteger(1, Base64.decode(element)); }
static final BigInteger function(Element element) throws Base64DecodingException { return new BigInteger(1, Base64.decode(element)); }
/** * Method decodeBigIntegerFromElement * * @param element * @return the biginter obtained from the node * @throws Base64DecodingException */
Method decodeBigIntegerFromElement
decodeBigIntegerFromElement
{ "repo_name": "TheTypoMaster/Scaper", "path": "openjdk/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/Base64.java", "license": "gpl-2.0", "size": 26374 }
[ "com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException", "java.math.BigInteger", "org.w3c.dom.Element" ]
import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException; import java.math.BigInteger; import org.w3c.dom.Element;
import com.sun.org.apache.xml.internal.security.exceptions.*; import java.math.*; import org.w3c.dom.*;
[ "com.sun.org", "java.math", "org.w3c.dom" ]
com.sun.org; java.math; org.w3c.dom;
1,429,581
public void addAdaptationSetProtection(ContentProtection contentProtection) { if (adaptationSetProtections == null) { adaptationSetProtections = new ArrayList<>(); } maybeAddContentProtection(adaptationSetProtections, contentProtection); }
void function(ContentProtection contentProtection) { if (adaptationSetProtections == null) { adaptationSetProtections = new ArrayList<>(); } maybeAddContentProtection(adaptationSetProtections, contentProtection); }
/** * Adds a {@link ContentProtection} found in the AdaptationSet element. * * @param contentProtection The {@link ContentProtection} to add. */
Adds a <code>ContentProtection</code> found in the AdaptationSet element
addAdaptationSetProtection
{ "repo_name": "Puja-Mishra/Android_FreeChat", "path": "Telegram-master/TMessagesProj/src/main/java/org/telegram/messenger/exoplayer/dash/mpd/MediaPresentationDescriptionParser.java", "license": "gpl-2.0", "size": 36173 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,469,589
public List<Map<String, Long>> loadProjectStats(Project proj) { List<Map<String, Long>> result = new ArrayList<>(); //Converting graph to Document like this is really dumb OrientGraph graph = database.getDatabase().getTx(); try { result.add(proj.getStatsTypes(graph)); ...
List<Map<String, Long>> function(Project proj) { List<Map<String, Long>> result = new ArrayList<>(); OrientGraph graph = database.getDatabase().getTx(); try { result.add(proj.getStatsTypes(graph)); result.add(proj.getStatsCodes(graph)); } finally { graph.shutdown(); } return result; }
/** * Load and return list of statistics used for GUI * * @param proj Project to load * @return List of Map statistics 0 - Types, 1 - Codes */
Load and return list of statistics used for GUI
loadProjectStats
{ "repo_name": "Zaraka/Reaper", "path": "src/reaper/model/Crawler.java", "license": "mit", "size": 24993 }
[ "com.tinkerpop.blueprints.impls.orient.OrientGraph", "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import com.tinkerpop.blueprints.impls.orient.OrientGraph; import java.util.ArrayList; import java.util.List; import java.util.Map;
import com.tinkerpop.blueprints.impls.orient.*; import java.util.*;
[ "com.tinkerpop.blueprints", "java.util" ]
com.tinkerpop.blueprints; java.util;
2,089,861
public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException ioe) { LOG.debug("An exception occurred while trying to close - ignoring", ioe);...
static void function(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException ioe) { LOG.debug(STR, ioe); } }
/** * Null safe close of the given {@link Closeable} suppressing any exception. * * @param closeable to be closed */
Null safe close of the given <code>Closeable</code> suppressing any exception
closeQuietly
{ "repo_name": "kalaspuffar/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/io/IOUtils.java", "license": "apache-2.0", "size": 11529 }
[ "java.io.Closeable", "java.io.IOException" ]
import java.io.Closeable; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,219,936
public String[] listUsers() throws UserStoreException { return remoteUserStoreManager.listUsers("*", -1); }
String[] function() throws UserStoreException { return remoteUserStoreManager.listUsers("*", -1); }
/** * Retrieve all the users in the system * * @throws Exception */
Retrieve all the users in the system
listUsers
{ "repo_name": "thariyarox/product-is", "path": "modules/samples/user-mgt/remote-user-mgt/src/main/java/org/wso2/remoteum/sample/RemoteUMClient.java", "license": "apache-2.0", "size": 10855 }
[ "org.wso2.carbon.user.core.UserStoreException" ]
import org.wso2.carbon.user.core.UserStoreException;
import org.wso2.carbon.user.core.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
106,839
@Nullable public Map<String, Object> getIngestStats() { return ingestStats; }
Map<String, Object> function() { return ingestStats; }
/** * Ingest level statistics. See {@link IngestStats#toXContent(XContentBuilder, Params)} for fields and format * If there are no ingest pipelines referencing the model, then the ingest statistics could be null. */
Ingest level statistics. See <code>IngestStats#toXContent(XContentBuilder, Params)</code> for fields and format If there are no ingest pipelines referencing the model, then the ingest statistics could be null
getIngestStats
{ "repo_name": "ern/elasticsearch", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/ml/inference/TrainedModelStats.java", "license": "apache-2.0", "size": 4775 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,997,974
@Override public Principal authenticate(String username, String clientDigest, String nonce, String nc, String cnonce, String qop, String realmName, String md5a2) { Principal authenticatedUser = null; for (Realm realm : realms) { if (log.isDebugEnabled(...
Principal function(String username, String clientDigest, String nonce, String nc, String cnonce, String qop, String realmName, String md5a2) { Principal authenticatedUser = null; for (Realm realm : realms) { if (log.isDebugEnabled()) { log.debug(sm.getString(STR, username, realm.getClass().getName())); } authenticatedU...
/** * Return the Principal associated with the specified username, which * matches the digest calculated using the given parameters using the * method described in RFC 2069; otherwise return <code>null</code>. * * @param username Username of the Principal to look up * @param clientDi...
Return the Principal associated with the specified username, which matches the digest calculated using the given parameters using the method described in RFC 2069; otherwise return <code>null</code>
authenticate
{ "repo_name": "wenzhucjy/tomcat_source", "path": "tomcat-8.0.9-sourcecode/java/org/apache/catalina/realm/CombinedRealm.java", "license": "apache-2.0", "size": 13147 }
[ "java.security.Principal", "org.apache.catalina.Realm" ]
import java.security.Principal; import org.apache.catalina.Realm;
import java.security.*; import org.apache.catalina.*;
[ "java.security", "org.apache.catalina" ]
java.security; org.apache.catalina;
122,261
@POST @Restricted(NoExternalUse.class) public HttpResponse doCreateAdminUser(StaplerRequest req, StaplerResponse rsp) throws IOException { Jenkins j = Jenkins.get(); j.checkPermission(Jenkins.ADMINISTER); // This will be set up by default. if not, something changed, ok to fail ...
@Restricted(NoExternalUse.class) HttpResponse function(StaplerRequest req, StaplerResponse rsp) throws IOException { Jenkins j = Jenkins.get(); j.checkPermission(Jenkins.ADMINISTER); HudsonPrivateSecurityRealm securityRealm = (HudsonPrivateSecurityRealm) j.getSecurityRealm(); User admin = securityRealm.getUser(SetupWiz...
/** * Called during the initial setup to create an admin user */
Called during the initial setup to create an admin user
doCreateAdminUser
{ "repo_name": "rsandell/jenkins", "path": "core/src/main/java/jenkins/install/SetupWizard.java", "license": "mit", "size": 36084 }
[ "hudson.model.User", "hudson.security.AccountCreationFailedException", "hudson.security.HudsonPrivateSecurityRealm", "hudson.security.csrf.CrumbIssuer", "hudson.util.HttpResponses", "java.io.IOException", "javax.servlet.http.HttpSession", "net.sf.json.JSONObject", "org.kohsuke.accmod.Restricted", ...
import hudson.model.User; import hudson.security.AccountCreationFailedException; import hudson.security.HudsonPrivateSecurityRealm; import hudson.security.csrf.CrumbIssuer; import hudson.util.HttpResponses; import java.io.IOException; import javax.servlet.http.HttpSession; import net.sf.json.JSONObject; import org.kohs...
import hudson.model.*; import hudson.security.*; import hudson.security.csrf.*; import hudson.util.*; import java.io.*; import javax.servlet.http.*; import net.sf.json.*; import org.kohsuke.accmod.*; import org.kohsuke.accmod.restrictions.*; import org.kohsuke.stapler.*; import org.springframework.security.authenticati...
[ "hudson.model", "hudson.security", "hudson.security.csrf", "hudson.util", "java.io", "javax.servlet", "net.sf.json", "org.kohsuke.accmod", "org.kohsuke.stapler", "org.springframework.security" ]
hudson.model; hudson.security; hudson.security.csrf; hudson.util; java.io; javax.servlet; net.sf.json; org.kohsuke.accmod; org.kohsuke.stapler; org.springframework.security;
2,859,474
@Transactional public Set<Player> findPlayerByExternalId(Integer externalId) throws DataAccessException { return findPlayerByExternalId(externalId, -1, -1); }
Set<Player> function(Integer externalId) throws DataAccessException { return findPlayerByExternalId(externalId, -1, -1); }
/** * JPQL Query - findPlayerByExternalId * */
JPQL Query - findPlayerByExternalId
findPlayerByExternalId
{ "repo_name": "didoux/Spring-BowlingDB", "path": "generated/bowling/dao/PlayerDAOImpl.java", "license": "gpl-2.0", "size": 5830 }
[ "java.util.Set", "org.springframework.dao.DataAccessException" ]
import java.util.Set; import org.springframework.dao.DataAccessException;
import java.util.*; import org.springframework.dao.*;
[ "java.util", "org.springframework.dao" ]
java.util; org.springframework.dao;
2,493,740
WatchDataSource fetch(String id); /** * Set the ServiceBeanContext for the WatchRegistry * * @param context The {@link org.rioproject.core.jsb.ServiceBeanContext}
WatchDataSource fetch(String id); /** * Set the ServiceBeanContext for the WatchRegistry * * @param context The {@link org.rioproject.core.jsb.ServiceBeanContext}
/** * Returns a WatchDataSource that matches the input <pre>id</pre>, that * corresponds to a <pre>Watch</pre> identifier. * * @param id the watch id to match * @return The WatchDataSource that matches the id. * If there is no WatchDataSource, this method returns null */
Returns a WatchDataSource that matches the input <code>id</code>, that corresponds to a <code>Watch</code> identifier
fetch
{ "repo_name": "khartig/assimilator", "path": "rio-lib/src/main/java/org/rioproject/watch/WatchRegistry.java", "license": "apache-2.0", "size": 3438 }
[ "org.rioproject.core.jsb.ServiceBeanContext" ]
import org.rioproject.core.jsb.ServiceBeanContext;
import org.rioproject.core.jsb.*;
[ "org.rioproject.core" ]
org.rioproject.core;
250,966
public List<String> partitionIds() { return this.partitionIds; }
List<String> function() { return this.partitionIds; }
/** * Get the partitionIds value. * * @return the partitionIds value */
Get the partitionIds value
partitionIds
{ "repo_name": "martinsawicki/azure-sdk-for-java", "path": "azure-mgmt-eventhub/src/main/java/com/microsoft/azure/management/eventhub/implementation/EventHubResourceInner.java", "license": "mit", "size": 3952 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,586,676
@Override public void readDataInfo(String aFile) { String eStr = ""; try { readDataInfo(aFile, eStr); if (OPTIONS.big_endian || OPTIONS.byteswapped) { _byteOrder = ByteOrder.BIG_ENDIAN; } this.setTimes(TDEF.times); ...
void function(String aFile) { String eStr = ""; try { readDataInfo(aFile, eStr); if (OPTIONS.big_endian OPTIONS.byteswapped) { _byteOrder = ByteOrder.BIG_ENDIAN; } this.setTimes(TDEF.times); } catch (FileNotFoundException ex) { Logger.getLogger(GrADSDataInfo.class.getName()).log(Level.SEVERE, null, ex); } catch (IOExce...
/** * Read GrADS data info * * @param aFile The control file path */
Read GrADS data info
readDataInfo
{ "repo_name": "meteoinfo/meteoinfolib", "path": "src/org/meteoinfo/data/meteodata/grads/GrADSDataInfo.java", "license": "lgpl-3.0", "size": 115651 }
[ "java.io.FileNotFoundException", "java.io.IOException", "java.nio.ByteOrder", "java.util.logging.Level", "java.util.logging.Logger" ]
import java.io.FileNotFoundException; import java.io.IOException; import java.nio.ByteOrder; import java.util.logging.Level; import java.util.logging.Logger;
import java.io.*; import java.nio.*; import java.util.logging.*;
[ "java.io", "java.nio", "java.util" ]
java.io; java.nio; java.util;
561,799
@Override public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) { Sh...
void function(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) { Shape hotspot; EntityCollection entities = null; if (info != null) { entities ...
/** * Draws the block representing the specified item. * * @param g2 the graphics device. * @param state the state. * @param dataArea the data area. * @param info the plot rendering info. * @param plot the plot. * @param domainAxis the x-axis. * @param rangeAx...
Draws the block representing the specified item
drawItem
{ "repo_name": "simon04/jfreechart", "path": "src/main/java/org/jfree/chart/renderer/xy/XYShapeRenderer.java", "license": "lgpl-2.1", "size": 20956 }
[ "java.awt.Graphics2D", "java.awt.Shape", "java.awt.geom.Line2D", "java.awt.geom.Rectangle2D", "org.jfree.chart.axis.ValueAxis", "org.jfree.chart.entity.EntityCollection", "org.jfree.chart.plot.CrosshairState", "org.jfree.chart.plot.PlotOrientation", "org.jfree.chart.plot.PlotRenderingInfo", "org.j...
import java.awt.Graphics2D; import java.awt.Shape; import java.awt.geom.Line2D; import java.awt.geom.Rectangle2D; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.entity.EntityCollection; import org.jfree.chart.plot.CrosshairState; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.Pl...
import java.awt.*; import java.awt.geom.*; import org.jfree.chart.axis.*; import org.jfree.chart.entity.*; import org.jfree.chart.plot.*; import org.jfree.data.xy.*; import org.jfree.util.*;
[ "java.awt", "org.jfree.chart", "org.jfree.data", "org.jfree.util" ]
java.awt; org.jfree.chart; org.jfree.data; org.jfree.util;
2,341,098
@Generated @Selector("setGain:") public native void setGain(float value);
@Selector(STR) native void function(float value);
/** * [@property] gain * <p> * Gain in dB. * <p> * Range: -96 -> 24 * Default: 0 * Unit: dB */
[@property] gain Gain in dB. Range: -96 -> 24 Default: 0 Unit: dB
setGain
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/avfaudio/AVAudioUnitEQFilterParameters.java", "license": "apache-2.0", "size": 6892 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
1,808,465
public ArangoDBSimpleVertex createVertex(ArangoDBSimpleGraph graph, String id, Map<String, Object> properties) throws ArangoDBException { if (properties == null) { properties = new HashMap<String, Object>(); } if (id != null) { properties.put(ArangoDBSimpleVertex._KEY, id); } else if (properties.co...
ArangoDBSimpleVertex function(ArangoDBSimpleGraph graph, String id, Map<String, Object> properties) throws ArangoDBException { if (properties == null) { properties = new HashMap<String, Object>(); } if (id != null) { properties.put(ArangoDBSimpleVertex._KEY, id); } else if (properties.containsKey(ArangoDBSimpleVertex._...
/** * Creates a ArangoDBSimpleVertex object * * @param graph * the simple graph of the query * @param id * the id (key) of the vertex * @param properties * the vertex properties * @return ArangoDBSimpleVertex the created object * @throws ArangoDBException */
Creates a ArangoDBSimpleVertex object
createVertex
{ "repo_name": "Unni34/blueprints", "path": "src/main/java/com/arangodb/blueprints/client/ArangoDBSimpleGraphClient.java", "license": "apache-2.0", "size": 23089 }
[ "com.arangodb.ArangoException", "com.arangodb.entity.marker.VertexEntity", "java.util.HashMap", "java.util.Map" ]
import com.arangodb.ArangoException; import com.arangodb.entity.marker.VertexEntity; import java.util.HashMap; import java.util.Map;
import com.arangodb.*; import com.arangodb.entity.marker.*; import java.util.*;
[ "com.arangodb", "com.arangodb.entity", "java.util" ]
com.arangodb; com.arangodb.entity; java.util;
2,771,919
public void testMemoryMatchingWithRetiredJobs() throws IOException { // create a cluster with a single node. LOG.debug("Starting cluster with 1 tasktracker, 2 map and 2 reduce slots"); taskTrackerManager = new FakeTaskTrackerManager(1, 2, 2); // create scheduler ArrayList<FakeQueueInfo> queues = ...
void function() throws IOException { LOG.debug(STR); taskTrackerManager = new FakeTaskTrackerManager(1, 2, 2); ArrayList<FakeQueueInfo> queues = new ArrayList<FakeQueueInfo>(); queues.add(new FakeQueueInfo(STR, 100.0f, true, 100)); taskTrackerManager.addQueues(new String[] { STR }); resConf.setFakeQueues(queues); sched...
/** * Testcase to verify fix for a NPE (HADOOP-5641), when memory based * scheduling is enabled and jobs are retired from memory when tasks * are still active on some Tasktrackers. * * @throws IOException */
Testcase to verify fix for a NPE (HADOOP-5641), when memory based scheduling is enabled and jobs are retired from memory when tasks are still active on some Tasktrackers
testMemoryMatchingWithRetiredJobs
{ "repo_name": "leonhong/hadoop-common", "path": "src/contrib/capacity-scheduler/src/test/org/apache/hadoop/mapred/TestCapacityScheduler.java", "license": "apache-2.0", "size": 126711 }
[ "java.io.IOException", "java.util.ArrayList", "org.apache.hadoop.mapreduce.TaskType" ]
import java.io.IOException; import java.util.ArrayList; import org.apache.hadoop.mapreduce.TaskType;
import java.io.*; import java.util.*; import org.apache.hadoop.mapreduce.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
394,951
public CloneableIterator<byte[]> keys(final boolean up, final byte[] firstKey) throws IOException { assert (this.index != null) : "index == null; closeDate=" + this.closeDate + ", now=" + new Date(); if (this.index == null) { log.severe("this.index == null in keys(); closeDate=" + this.c...
CloneableIterator<byte[]> function(final boolean up, final byte[] firstKey) throws IOException { assert (this.index != null) : STR + this.closeDate + STR + new Date(); if (this.index == null) { log.severe(STR + this.closeDate + STR + new Date() + this.heapFile == null ? STR file = " + this.heapFile.toString())); return...
/** * iterate over all keys * @param up * @param firstKey * @return * @throws IOException */
iterate over all keys
keys
{ "repo_name": "automenta/kelondro", "path": "src/main/java/yacy/kelondro/blob/HeapReader.java", "license": "lgpl-2.1", "size": 36984 }
[ "java.io.IOException", "java.util.Date", "net.yacy.cora.order.CloneableIterator" ]
import java.io.IOException; import java.util.Date; import net.yacy.cora.order.CloneableIterator;
import java.io.*; import java.util.*; import net.yacy.cora.order.*;
[ "java.io", "java.util", "net.yacy.cora" ]
java.io; java.util; net.yacy.cora;
2,138,867
public void teardownTest(JavaSamplerContext context) { }
void function(JavaSamplerContext context) { }
/** * Cleans up after the test. * * @param context the <code>JavaSamplerContext</code> which contains the arguments passed in. */
Cleans up after the test
teardownTest
{ "repo_name": "NCIP/caarray", "path": "software/load-test/src/java/gov/nih/nci/caarray/test/jmeter/file/FileDownloadClient.java", "license": "bsd-3-clause", "size": 8108 }
[ "org.apache.jmeter.protocol.java.sampler.JavaSamplerContext" ]
import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext;
import org.apache.jmeter.protocol.java.sampler.*;
[ "org.apache.jmeter" ]
org.apache.jmeter;
1,984,276
public ReferenceBuilder<T, F> objectFactoryRef(final ExtensionRef<ObjectFactory> objectFactoryRef) { this.objectFactory = objectFactoryRef; return this; }
ReferenceBuilder<T, F> function(final ExtensionRef<ObjectFactory> objectFactoryRef) { this.objectFactory = objectFactoryRef; return this; }
/** * Sets a new value for the objectFactoryRef field. * * @param objectFactoryRef * The new value for the objectFactoryRef field. * @return The context. */
Sets a new value for the objectFactoryRef field
objectFactoryRef
{ "repo_name": "lunarray-org/model-descriptor", "path": "src/main/java/org/lunarray/model/descriptor/accessor/reference/ReferenceBuilder.java", "license": "lgpl-3.0", "size": 8006 }
[ "org.lunarray.model.descriptor.model.extension.ExtensionRef", "org.lunarray.model.descriptor.objectfactory.ObjectFactory" ]
import org.lunarray.model.descriptor.model.extension.ExtensionRef; import org.lunarray.model.descriptor.objectfactory.ObjectFactory;
import org.lunarray.model.descriptor.model.extension.*; import org.lunarray.model.descriptor.objectfactory.*;
[ "org.lunarray.model" ]
org.lunarray.model;
2,349,750
@Override public void undo() { for (BlockMatcher blockMatcher : what) { BlockRegistry.instance.allowPlacement(blockMatcher.getStates()); } }
void function() { for (BlockMatcher blockMatcher : what) { BlockRegistry.instance.allowPlacement(blockMatcher.getStates()); } }
/** * Called to remove the set (if not player-specific) */
Called to remove the set (if not player-specific)
undo
{ "repo_name": "legendblade/CraftingHarmonics", "path": "src/main/java/org/winterblade/minecraft/harmony/blocks/operations/PreventBlockOperation.java", "license": "mit", "size": 1626 }
[ "org.winterblade.minecraft.harmony.blocks.BlockRegistry", "org.winterblade.minecraft.harmony.common.blocks.BlockMatcher" ]
import org.winterblade.minecraft.harmony.blocks.BlockRegistry; import org.winterblade.minecraft.harmony.common.blocks.BlockMatcher;
import org.winterblade.minecraft.harmony.blocks.*; import org.winterblade.minecraft.harmony.common.blocks.*;
[ "org.winterblade.minecraft" ]
org.winterblade.minecraft;
2,824,065
protected void fillMessageQueueIfNecessary(ProcessContext context) throws ProcessException { if (this.messageQueue.isEmpty()) { ExchangeService service = this.initializeIfNecessary(context); boolean deleteOnRead = context.getProperty(SHOULD_DELETE_MESSAGES).getValue().equals("true");...
void function(ProcessContext context) throws ProcessException { if (this.messageQueue.isEmpty()) { ExchangeService service = this.initializeIfNecessary(context); boolean deleteOnRead = context.getProperty(SHOULD_DELETE_MESSAGES).getValue().equals("true"); boolean markAsRead = context.getProperty(SHOULD_MARK_READ).getVa...
/** * Fills the internal message queue if such queue is empty. This is due to * the fact that per single session there may be multiple messages retrieved * from the email server (see FETCH_SIZE). */
Fills the internal message queue if such queue is empty. This is due to the fact that per single session there may be multiple messages retrieved from the email server (see FETCH_SIZE)
fillMessageQueueIfNecessary
{ "repo_name": "qfdk/nifi", "path": "nifi-nar-bundles/nifi-email-bundle/nifi-email-processors/src/main/java/org/apache/nifi/processors/email/ConsumeEWS.java", "license": "apache-2.0", "size": 22382 }
[ "org.apache.nifi.processor.ProcessContext", "org.apache.nifi.processor.exception.ProcessException" ]
import org.apache.nifi.processor.ProcessContext; import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.*; import org.apache.nifi.processor.exception.*;
[ "org.apache.nifi" ]
org.apache.nifi;
717,156
@Metadata(defaultValue = "-1", label = "transaction,advanced", description = "The timeout value of the transaction (in seconds), if using transacted mode.") public void setTransactionTimeout(int transactionTimeout) { getConfiguration().setTransactionTimeout(transactionTimeout); }
@Metadata(defaultValue = "-1", label = STR, description = STR) void function(int transactionTimeout) { getConfiguration().setTransactionTimeout(transactionTimeout); }
/** * The timeout value of the transaction (in seconds), if using transacted mode. */
The timeout value of the transaction (in seconds), if using transacted mode
setTransactionTimeout
{ "repo_name": "lburgazzoli/apache-camel", "path": "components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java", "license": "apache-2.0", "size": 74918 }
[ "org.apache.camel.spi.Metadata" ]
import org.apache.camel.spi.Metadata;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
267,800
public Map<String, List<String>> getQueryString() { if (querystring == null) { try { querystring = new QueryStringDecoder(getUri()).getParameters(); } catch (IllegalArgumentException e) { throw new BadRequestException("Bad query string: " + e.getMessage()); } } return que...
Map<String, List<String>> function() { if (querystring == null) { try { querystring = new QueryStringDecoder(getUri()).getParameters(); } catch (IllegalArgumentException e) { throw new BadRequestException(STR + e.getMessage()); } } return querystring; }
/** * Returns the query string parameters passed in the URI. */
Returns the query string parameters passed in the URI
getQueryString
{ "repo_name": "scalextremeinc/tsdb", "path": "src/tsd/HttpQuery.java", "license": "gpl-3.0", "size": 27737 }
[ "java.util.List", "java.util.Map", "org.jboss.netty.handler.codec.http.QueryStringDecoder" ]
import java.util.List; import java.util.Map; import org.jboss.netty.handler.codec.http.QueryStringDecoder;
import java.util.*; import org.jboss.netty.handler.codec.http.*;
[ "java.util", "org.jboss.netty" ]
java.util; org.jboss.netty;
1,184,214
public void putDerValue(DerValue val) throws IOException { val.encode(this); }
void function(DerValue val) throws IOException { val.encode(this); }
/** * Marshals pre-encoded DER value onto the output stream. */
Marshals pre-encoded DER value onto the output stream
putDerValue
{ "repo_name": "andreagenso/java2scala", "path": "test/J2s/java/openjdk-6-src-b27/jdk/src/share/classes/sun/security/util/DerOutputStream.java", "license": "apache-2.0", "size": 17983 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,365,859
@Override public void doGet( HttpRequest req, HttpResponse res) { //Make sure the user is authorized to do this. if (!req.userHasRole("admin")) { res.setResponseCode(HttpResponse.forbidden); res.send(); return; } if (req.hasParameter("suppress")) home = ""; //Now make either the page li...
void function( HttpRequest req, HttpResponse res) { if (!req.userHasRole("admin")) { res.setResponseCode(HttpResponse.forbidden); res.send(); return; } if (req.hasParameter(STR)) home = STRpSTRsSTRformatSTRhtmlSTRcsvSTRcsvSTR.csvSTRhtmlSTRhtmlSTRhtml"); } res.disableCaching(); res.send(); }
/** * The servlet method that responds to an HTTP GET. * This method returns an HTML page containing a form for * changing the contents of the lookup table. * The contents of the form are constructed from the text of the file. * @param req The HttpServletRequest provided by the servlet container. * @param r...
The servlet method that responds to an HTTP GET. This method returns an HTML page containing a form for changing the contents of the lookup table. The contents of the form are constructed from the text of the file
doGet
{ "repo_name": "blezek/Notion", "path": "src/main/java/org/rsna/ctp/servlets/LookupServlet.java", "license": "bsd-3-clause", "size": 15815 }
[ "org.rsna.server.HttpRequest", "org.rsna.server.HttpResponse" ]
import org.rsna.server.HttpRequest; import org.rsna.server.HttpResponse;
import org.rsna.server.*;
[ "org.rsna.server" ]
org.rsna.server;
634,460
public static void addQueryParameters(StringBuilder sb, Map<?, ?> vars) { for (Entry e : vars.entrySet()) { try { Object key = e.getKey(); String k = key.toString(); Object val = e.getValue(); if (val==null) { addQueryParameter(sb, k, ""); continue; } // Is it an AField, whic...
static void function(StringBuilder sb, Map<?, ?> vars) { for (Entry e : vars.entrySet()) { try { Object key = e.getKey(); String k = key.toString(); Object val = e.getValue(); if (val==null) { addQueryParameter(sb, k, ""); continue; } String v; if (key instanceof ISerialize) { v = ((ISerialize)key).toString(val); } els...
/** * Append a query parameter map to a StringBuilder * @param sb * @param vars */
Append a query parameter map to a StringBuilder
addQueryParameters
{ "repo_name": "sodash/open-code", "path": "winterwell.utils/src/com/winterwell/utils/web/WebUtils.java", "license": "mit", "size": 57030 }
[ "com.winterwell.utils.Utils", "com.winterwell.utils.io.ISerialize", "java.util.Map" ]
import com.winterwell.utils.Utils; import com.winterwell.utils.io.ISerialize; import java.util.Map;
import com.winterwell.utils.*; import com.winterwell.utils.io.*; import java.util.*;
[ "com.winterwell.utils", "java.util" ]
com.winterwell.utils; java.util;
2,871,305
public void init(ExtendedProperties configuration) { rsvc.debug("WebappLoader : initialization starting."); paths = configuration.getStringArray("path"); if (paths == null || paths.length == 0) { paths = new String[1]; paths[0] = "/"; } ...
void function(ExtendedProperties configuration) { rsvc.debug(STR); paths = configuration.getStringArray("path"); if (paths == null paths.length == 0) { paths = new String[1]; paths[0] = "/"; } else { for (int i=0; i < paths.length; i++) { if (!paths[i].endsWith("/")) { paths[i] += '/'; } if ( paths[i].startsWith("./") ...
/** * This is abstract in the base class, so we need it. * <br> * NOTE: this expects that the ServletContext has already * been placed in the runtime's application attributes * under its full class name (i.e. "javax.servlet.ServletContext"). * * @param configuration t...
This is abstract in the base class, so we need it. been placed in the runtime's application attributes under its full class name (i.e. "javax.servlet.ServletContext")
init
{ "repo_name": "harfalm/Sakai-10.1", "path": "rwiki/rwiki-tool/tool/src/java/uk/ac/cam/caret/sakai/rwiki/tool/WebappLoader.java", "license": "apache-2.0", "size": 9386 }
[ "java.util.HashMap", "javax.servlet.ServletContext", "org.apache.commons.collections.ExtendedProperties" ]
import java.util.HashMap; import javax.servlet.ServletContext; import org.apache.commons.collections.ExtendedProperties;
import java.util.*; import javax.servlet.*; import org.apache.commons.collections.*;
[ "java.util", "javax.servlet", "org.apache.commons" ]
java.util; javax.servlet; org.apache.commons;
1,333,485
private void writeCustomDataResources(List<CustomData> customData) throws IOException { for (CustomData data : customData) { if (data.contents != null) { for (String content : data.contents) { writeResource(content); ...
void function(List<CustomData> customData) throws IOException { for (CustomData data : customData) { if (data.contents != null) { for (String content : data.contents) { writeResource(content); } } } }
/** * Writes the resources referenced by {@link CustomData#contents}. * * @param customData the custom data to write * @throws IOException for any I/O error */
Writes the resources referenced by <code>CustomData#contents</code>
writeCustomDataResources
{ "repo_name": "codehaus/izpack", "path": "izpack-installer/src/main/java/com/izforge/izpack/installer/data/UninstallDataWriter.java", "license": "apache-2.0", "size": 17388 }
[ "com.izforge.izpack.data.CustomData", "java.io.IOException", "java.util.List" ]
import com.izforge.izpack.data.CustomData; import java.io.IOException; import java.util.List;
import com.izforge.izpack.data.*; import java.io.*; import java.util.*;
[ "com.izforge.izpack", "java.io", "java.util" ]
com.izforge.izpack; java.io; java.util;
2,322,314
public void assertMessagesAscending(Expression expression) { assertMessagesSorted(expression, true); }
void function(Expression expression) { assertMessagesSorted(expression, true); }
/** * Asserts that the messages have ascending values of the given expression */
Asserts that the messages have ascending values of the given expression
assertMessagesAscending
{ "repo_name": "brreitme/camel", "path": "camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java", "license": "apache-2.0", "size": 58954 }
[ "org.apache.camel.Expression" ]
import org.apache.camel.Expression;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,206,959
private List<RichAttribute> getUserExtSourceAttributes(PerunSession sess, Host host, AttributeDefinition attrDef) throws AttributeNotExistsException, WrongAttributeAssignmentException { Facility facility = getPerunBl().getFacilitiesManagerBl().getFacilityForHost(sess, host); List<RichAttribute> listOfRichAttribu...
List<RichAttribute> function(PerunSession sess, Host host, AttributeDefinition attrDef) throws AttributeNotExistsException, WrongAttributeAssignmentException { Facility facility = getPerunBl().getFacilitiesManagerBl().getFacilityForHost(sess, host); List<RichAttribute> listOfRichAttributes = new ArrayList<>(getUserExtS...
/** * Returns all relevant UserExtSource RichAttributes for given host. * Finds allowed members for the given host's facility. * Finds theirs user's userExtSources and returns theirs rich attributes. * Each rich attribute is returned only once. * * @param sess session * @param host host * @param a...
Returns all relevant UserExtSource RichAttributes for given host. Finds allowed members for the given host's facility. Finds theirs user's userExtSources and returns theirs rich attributes. Each rich attribute is returned only once
getUserExtSourceAttributes
{ "repo_name": "CESNET/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/blImpl/AttributesManagerBlImpl.java", "license": "bsd-2-clause", "size": 587965 }
[ "cz.metacentrum.perun.core.api.AttributeDefinition", "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.api.Host", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.RichAttribute", "cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException", "cz.me...
import cz.metacentrum.perun.core.api.AttributeDefinition; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.Host; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.RichAttribute; import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsExc...
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,076,280
void internalCommit(OTransactionInternal transaction);
void internalCommit(OTransactionInternal transaction);
/** * Executed the commit on the storage hiding away storage concepts from the transaction * * @param transaction */
Executed the commit on the storage hiding away storage concepts from the transaction
internalCommit
{ "repo_name": "orientechnologies/orientdb", "path": "core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseDocumentInternal.java", "license": "apache-2.0", "size": 9700 }
[ "com.orientechnologies.orient.core.tx.OTransactionInternal" ]
import com.orientechnologies.orient.core.tx.OTransactionInternal;
import com.orientechnologies.orient.core.tx.*;
[ "com.orientechnologies.orient" ]
com.orientechnologies.orient;
535,515
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { mCallback = (DayChangedListener) getTargetFragment(); } catch (ClassCastException e) { throw new ClassCastException("Calling fragment...
void function(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { mCallback = (DayChangedListener) getTargetFragment(); } catch (ClassCastException e) { throw new ClassCastException(STR + STR); } }
/** * Cast the reference to {@link SlideDayTimeDialogFragment} to a * {@link DayChangedListener}. */
Cast the reference to <code>SlideDayTimeDialogFragment</code> to a <code>DayChangedListener</code>
onCreate
{ "repo_name": "akhilesh0707/SlideDayTimePicker", "path": "slideDayTimePicker/src/main/java/com/github/jjobes/slidedaytimepicker/DayFragment.java", "license": "apache-2.0", "size": 5375 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
931,665
@Generated @CVariable() @MappedReturn(ObjCStringMapper.class) public static native String NEHotspotConfigurationErrorDomain();
@CVariable() @MappedReturn(ObjCStringMapper.class) static native String function();
/** * [@const] NEHotspotConfigurationErrorDomain The Hotspot Configuration error domain */
[@const] NEHotspotConfigurationErrorDomain The Hotspot Configuration error domain
NEHotspotConfigurationErrorDomain
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/networkextension/c/NetworkExtension.java", "license": "apache-2.0", "size": 6274 }
[ "org.moe.natj.c.ann.CVariable", "org.moe.natj.general.ann.MappedReturn", "org.moe.natj.objc.map.ObjCStringMapper" ]
import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper;
import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*;
[ "org.moe.natj" ]
org.moe.natj;
1,878,833
public TOutlineCode copy(boolean deepcopy, Connection con) throws TorqueException { return copyInto(new TOutlineCode(), deepcopy, con); }
TOutlineCode function(boolean deepcopy, Connection con) throws TorqueException { return copyInto(new TOutlineCode(), deepcopy, con); }
/** * Makes a copy of this object using connection. * It creates a new object filling in the simple attributes. * If the parameter deepcopy is true, it then fills all the * association collections and sets the related objects to * isNew=true. * * @param deepcopy whether to copy the as...
Makes a copy of this object using connection. It creates a new object filling in the simple attributes. If the parameter deepcopy is true, it then fills all the association collections and sets the related objects to isNew=true
copy
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTOutlineCode.java", "license": "gpl-3.0", "size": 31613 }
[ "java.sql.Connection", "org.apache.torque.TorqueException" ]
import java.sql.Connection; import org.apache.torque.TorqueException;
import java.sql.*; import org.apache.torque.*;
[ "java.sql", "org.apache.torque" ]
java.sql; org.apache.torque;
1,191,294
public boolean readBoolean() throws IOException;
boolean function() throws IOException;
/** * Reads a boolean value. * @return The boolean read. */
Reads a boolean value
readBoolean
{ "repo_name": "interdroid/ibis-ipl", "path": "io/src/ibis/io/DataInput.java", "license": "bsd-3-clause", "size": 6137 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,082,409
public static long insert(Author author){ Connection con = db.getConnection(); PreparedStatement stmt = null; long result = 0; try { con.setAutoCommit(false); final String insert = "INSERT INTO Author (AuthorName, AuthorSurname, AuthorPhoto, AuthorBornDate, AuthorBiography)" + " VALUES (?...
static long function(Author author){ Connection con = db.getConnection(); PreparedStatement stmt = null; long result = 0; try { con.setAutoCommit(false); final String insert = STR + STR; stmt = con.prepareStatement(insert, Statement.RETURN_GENERATED_KEYS); stmt.setString(1, author.getName()); stmt.setString(2, author.g...
/** * Insert a new author. * @param author the author to insert. * @return Returns the id of the inserted author. */
Insert a new author
insert
{ "repo_name": "JCPP/JAthenaeum", "path": "src/com/github/jcpp/jathenaeum/db/dao/AuthorDAO.java", "license": "apache-2.0", "size": 10975 }
[ "com.github.jcpp.jathenaeum.Author", "com.github.jcpp.jathenaeum.utils.Converter", "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Statement", "java.sql.Types" ]
import com.github.jcpp.jathenaeum.Author; import com.github.jcpp.jathenaeum.utils.Converter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Types;
import com.github.jcpp.jathenaeum.*; import com.github.jcpp.jathenaeum.utils.*; import java.sql.*;
[ "com.github.jcpp", "java.sql" ]
com.github.jcpp; java.sql;
716,042
private boolean useLocalClaimDialectForClaimMappings() { return FileBasedConfigurationBuilder.getInstance().isCustomClaimMappingsForAuthenticatorsAllowed(); }
boolean function() { return FileBasedConfigurationBuilder.getInstance().isCustomClaimMappingsForAuthenticatorsAllowed(); }
/** * Checks if a configuration is available indicating to use the local claim * dialect instead of the federated authenticator's dialect when a custom dialect * claim mapping is used. * * @return True if local claim dialect should be used. */
Checks if a configuration is available indicating to use the local claim dialect instead of the federated authenticator's dialect when a custom dialect claim mapping is used
useLocalClaimDialectForClaimMappings
{ "repo_name": "omindu/carbon-identity-framework", "path": "components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/handler/claims/impl/DefaultClaimHandler.java", "license": "apache-2.0", "size"...
[ "org.wso2.carbon.identity.application.authentication.framework.config.builder.FileBasedConfigurationBuilder" ]
import org.wso2.carbon.identity.application.authentication.framework.config.builder.FileBasedConfigurationBuilder;
import org.wso2.carbon.identity.application.authentication.framework.config.builder.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,427,791
protected void doWrite(DOC doc, @Nullable CTX context, JsonWriter json) { doWrite(doc, context, json, null); }
void function(DOC doc, @Nullable CTX context, JsonWriter json) { doWrite(doc, context, json, null); }
/** * Write all document fields */
Write all document fields
doWrite
{ "repo_name": "teryk/sonarqube", "path": "server/sonar-server/src/main/java/org/sonar/server/search/ws/BaseMapping.java", "license": "lgpl-3.0", "size": 6461 }
[ "javax.annotation.Nullable", "org.sonar.api.utils.text.JsonWriter" ]
import javax.annotation.Nullable; import org.sonar.api.utils.text.JsonWriter;
import javax.annotation.*; import org.sonar.api.utils.text.*;
[ "javax.annotation", "org.sonar.api" ]
javax.annotation; org.sonar.api;
2,247,403
@ServiceMethod(returns = ReturnType.SINGLE) BlobContainersDeleteImmutabilityPolicyResponse deleteImmutabilityPolicyWithResponse( String resourceGroupName, String accountName, String containerName, String ifMatch, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) BlobContainersDeleteImmutabilityPolicyResponse deleteImmutabilityPolicyWithResponse( String resourceGroupName, String accountName, String containerName, String ifMatch, Context context);
/** * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to * 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, the * only way is to delete the container after deleting all expired blobs insi...
Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, the only way is to delete the container after deleting all expired blobs inside the policy locked cont...
deleteImmutabilityPolicyWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/BlobContainersClient.java", "license": "mit", "size": 91624 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.Context", "com.azure.resourcemanager.storage.models.BlobContainersDeleteImmutabilityPolicyResponse" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.resourcemanager.storage.models.BlobContainersDeleteImmutabilityPolicyResponse;
import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.resourcemanager.storage.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,855,196
public void setOverlaysEnabled(boolean transitOverlayEnabled, boolean bikeOverlayEnabled, boolean pathOverlayEnabled) { mapStateManager.setTransitOverlayEnabled(transitOverlayEnabled); mapStateManager.setBikeOverlayEnabled(bikeOverlayEnabled); mapStateManager.setPathOverlayEnabled(pathOverlayEnabled...
void function(boolean transitOverlayEnabled, boolean bikeOverlayEnabled, boolean pathOverlayEnabled) { mapStateManager.setTransitOverlayEnabled(transitOverlayEnabled); mapStateManager.setBikeOverlayEnabled(bikeOverlayEnabled); mapStateManager.setPathOverlayEnabled(pathOverlayEnabled); List<SceneUpdate> updates = new Ar...
/** * Method to facilitate enabling/disabling multiple overlays at once. * @param transitOverlayEnabled whether or not the transit overlay should be enabled. * @param bikeOverlayEnabled whether or not the bike overlay should be enabled. * @param pathOverlayEnabled whether or not the path overlay should be e...
Method to facilitate enabling/disabling multiple overlays at once
setOverlaysEnabled
{ "repo_name": "mapzen/android", "path": "core/src/main/java/com/mapzen/android/graphics/MapzenMap.java", "license": "apache-2.0", "size": 43752 }
[ "com.mapzen.tangram.SceneUpdate", "java.util.ArrayList", "java.util.List" ]
import com.mapzen.tangram.SceneUpdate; import java.util.ArrayList; import java.util.List;
import com.mapzen.tangram.*; import java.util.*;
[ "com.mapzen.tangram", "java.util" ]
com.mapzen.tangram; java.util;
2,744,511
public static boolean isSupported() { ContextCapabilities c = GLContext.getCapabilities(); return c.GL_ARB_shader_objects && c.GL_ARB_vertex_shader && c.GL_ARB_fragment_shader; }
static boolean function() { ContextCapabilities c = GLContext.getCapabilities(); return c.GL_ARB_shader_objects && c.GL_ARB_vertex_shader && c.GL_ARB_fragment_shader; }
/** * Returns true if GLSL shaders are supported in hardware on this system. This checks for * the following OpenGL extensions: GL_ARB_shader_objects, GL_ARB_vertex_shader, * GL_ARB_fragment_shader * * @return true if shaders are supported */
Returns true if GLSL shaders are supported in hardware on this system. This checks for the following OpenGL extensions: GL_ARB_shader_objects, GL_ARB_vertex_shader, GL_ARB_fragment_shader
isSupported
{ "repo_name": "dxiao/PPBunnies", "path": "slick/trunk/Slick/src/org/newdawn/slick/opengl/shader/ShaderProgram.java", "license": "mit", "size": 29047 }
[ "org.lwjgl.opengl.ContextCapabilities", "org.lwjgl.opengl.GLContext" ]
import org.lwjgl.opengl.ContextCapabilities; import org.lwjgl.opengl.GLContext;
import org.lwjgl.opengl.*;
[ "org.lwjgl.opengl" ]
org.lwjgl.opengl;
1,081,478
@ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable<AppServiceEnvironmentResourceInner> listByResourceGroup(String resourceGroupName) { return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); }
@ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<AppServiceEnvironmentResourceInner> function(String resourceGroupName) { return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); }
/** * Get all App Service Environments in a resource group. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is r...
Get all App Service Environments in a resource group
listByResourceGroup
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceEnvironmentsClientImpl.java", "license": "mit", "size": 563770 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedIterable", "com.azure.resourcemanager.appservice.fluent.models.AppServiceEnvironmentResourceInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.resourcemanager.appservice.fluent.models.AppServiceEnvironmentResourceInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.appservice.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,642,819
public static <X> X consumeArgumentNoDefault(String function, TupleObject to, KwArgs kw, int ord, String arg, Class<X> clazz) { if (to.len() > ord) { X value = Coerce.argument(to, ord, function, clazz); if (kw != null) if (kw.contains(arg)) throw new TypeError(function + "(): duplicate argument '...
static <X> X function(String function, TupleObject to, KwArgs kw, int ord, String arg, Class<X> clazz) { if (to.len() > ord) { X value = Coerce.argument(to, ord, function, clazz); if (kw != null) if (kw.contains(arg)) throw new TypeError(function + STR + arg + "'"); return value; } else { if (kw != null) { if (kw.conta...
/** * Consumes the argument, either from tuple or from kwargs, if either are * provided, or raise python exception * * @param function * name of the function calling this, for exception purposes * @param to * tuple object, must be not null * @param kw * kwargs, can be...
Consumes the argument, either from tuple or from kwargs, if either are provided, or raise python exception
consumeArgumentNoDefault
{ "repo_name": "Enerccio/SimplePython", "path": "src/me/enerccio/sp/utils/ArgumentConsumer.java", "license": "lgpl-3.0", "size": 3075 }
[ "me.enerccio.sp.errors.TypeError", "me.enerccio.sp.interpret.KwArgs", "me.enerccio.sp.types.sequences.TupleObject" ]
import me.enerccio.sp.errors.TypeError; import me.enerccio.sp.interpret.KwArgs; import me.enerccio.sp.types.sequences.TupleObject;
import me.enerccio.sp.errors.*; import me.enerccio.sp.interpret.*; import me.enerccio.sp.types.sequences.*;
[ "me.enerccio.sp" ]
me.enerccio.sp;
2,097,150
private static IndexItem readRow(final long pageAddr, int off) { // Index name length. final int len = PageUtils.getUnsignedByte(pageAddr, off) & 0xFF; off++; // Index name. final byte[] idxName = PageUtils.getBytes(pageAddr, off, len); off += len; // Page I...
static IndexItem function(final long pageAddr, int off) { final int len = PageUtils.getUnsignedByte(pageAddr, off) & 0xFF; off++; final byte[] idxName = PageUtils.getBytes(pageAddr, off, len); off += len; final long pageId = PageUtils.getLong(pageAddr, off); return new IndexItem(idxName, pageId); }
/** * Read row from buffer. * * @param pageAddr Page address. * @param off Offset. * @return Read row. */
Read row from buffer
readRow
{ "repo_name": "WilliamDo/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/MetadataStorage.java", "license": "apache-2.0", "size": 13869 }
[ "org.apache.ignite.internal.pagemem.PageUtils" ]
import org.apache.ignite.internal.pagemem.PageUtils;
import org.apache.ignite.internal.pagemem.*;
[ "org.apache.ignite" ]
org.apache.ignite;
821,341
public String removeValue(Field field) { return removeValue(field.getName()); }
String function(Field field) { return removeValue(field.getName()); }
/** * Removes (undefines) the value of the given field returning its previous * value. If the field value was not defined, this function has no effect, * and null is returned. * * @param field * The field whose value should be removed. * * @return * The previous valu...
Removes (undefines) the value of the given field returning its previous value. If the field value was not defined, this function has no effect, and null is returned
removeValue
{ "repo_name": "hguehl/incubator-guacamole-client", "path": "guacamole-ext/src/main/java/org/apache/guacamole/net/auth/credentials/UserCredentials.java", "license": "apache-2.0", "size": 7023 }
[ "org.apache.guacamole.form.Field" ]
import org.apache.guacamole.form.Field;
import org.apache.guacamole.form.*;
[ "org.apache.guacamole" ]
org.apache.guacamole;
882,338
public void end(InterpretationContext ec, String name) { if (inError) { return; } Object o = ec.peekObject(); if (o != definer) { addWarn("The object at the of the stack is not the property definer for property named [" + propertyName + "] pushed earlier."); } els...
void function(InterpretationContext ec, String name) { if (inError) { return; } Object o = ec.peekObject(); if (o != definer) { addWarn(STR + propertyName + STR); } else { addInfo(STR + propertyName + STR); ec.popObject(); String propertyValue = definer.getPropertyValue(); if(propertyValue != null) { ActionUtil.setProp...
/** * Now property definer is initialized by all properties and we can put * property value to context */
Now property definer is initialized by all properties and we can put property value to context
end
{ "repo_name": "cscfa/bartleby", "path": "library/logBack/logback-1.1.3/logback-core/src/main/java/ch/qos/logback/core/joran/action/DefinePropertyAction.java", "license": "mit", "size": 3819 }
[ "ch.qos.logback.core.joran.spi.InterpretationContext" ]
import ch.qos.logback.core.joran.spi.InterpretationContext;
import ch.qos.logback.core.joran.spi.*;
[ "ch.qos.logback" ]
ch.qos.logback;
2,902,269
private LongRange getIdsToRead() throws SQLException { String queryFormatString = "SELECT MIN(id) min_id, MAX(id) max_id " + "FROM (SELECT id FROM %s WHERE id > %s " + "AND (command_type IS NULL OR command_type NOT IN('SHOWTABLES', 'SHOWPARTITIONS', " + "'SWITCHDATABASE')) " + "ORD...
LongRange function() throws SQLException { String queryFormatString = STR + STR + STR + STR + STR + STR + STR + STR; String query = String.format(queryFormatString, auditLogTableName, lastReadId, ROW_FETCH_SIZE); Connection connection = dbConnectionFactory.getConnection(); PreparedStatement ps = connection.prepareState...
/** * Given that we start reading after lastReadId and need to get * ROW_FETCH_SIZE rows from the audit log, figure out the min and max row * IDs to read. * * @returns a range of ID's to read from the audit log table based on the fetch size * @throws SQLException if there is an error reading from the ...
Given that we start reading after lastReadId and need to get ROW_FETCH_SIZE rows from the audit log, figure out the min and max row IDs to read
getIdsToRead
{ "repo_name": "airbnb/reair", "path": "main/src/main/java/com/airbnb/reair/incremental/auditlog/AuditLogReader.java", "license": "apache-2.0", "size": 16405 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "org.apache.commons.lang.math.LongRange" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.apache.commons.lang.math.LongRange;
import java.sql.*; import org.apache.commons.lang.math.*;
[ "java.sql", "org.apache.commons" ]
java.sql; org.apache.commons;
282,152
public static Rectangle cropBoundingBox(Rectangle r, int width, int height) { if (r.x < 0) r.x = 0; if (r.y < 0) r.y = 0; if ((r.x + r.width) > width) r.width = width - r.x; if ((r.y + r.height) > height) r.height = height - r.y; return r; }
static Rectangle function(Rectangle r, int width, int height) { if (r.x < 0) r.x = 0; if (r.y < 0) r.y = 0; if ((r.x + r.width) > width) r.width = width - r.x; if ((r.y + r.height) > height) r.height = height - r.y; return r; }
/** * crops a bounding box to be within an image of size width-by-height * @param r * @param width * @param height * @return */
crops a bounding box to be within an image of size width-by-height
cropBoundingBox
{ "repo_name": "ruofeidu/CMSC722_AngryBirds", "path": "src/ab/vision/VisionUtils.java", "license": "gpl-2.0", "size": 20526 }
[ "java.awt.Rectangle" ]
import java.awt.Rectangle;
import java.awt.*;
[ "java.awt" ]
java.awt;
612,989
public BulkRequest add(BytesReference data, boolean contentUnsafe, @Nullable String defaultIndex, @Nullable String defaultType) throws Exception { return add(data, contentUnsafe, defaultIndex, defaultType, null, null, true); }
BulkRequest function(BytesReference data, boolean contentUnsafe, @Nullable String defaultIndex, @Nullable String defaultType) throws Exception { return add(data, contentUnsafe, defaultIndex, defaultType, null, null, true); }
/** * Adds a framed data in binary format */
Adds a framed data in binary format
add
{ "repo_name": "andrewvc/elasticsearch", "path": "src/main/java/org/elasticsearch/action/bulk/BulkRequest.java", "license": "apache-2.0", "size": 21022 }
[ "org.elasticsearch.common.Nullable", "org.elasticsearch.common.bytes.BytesReference" ]
import org.elasticsearch.common.Nullable; import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.*; import org.elasticsearch.common.bytes.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
2,075,051
@CalledByNative private synchronized boolean getPluginsDisabled() { return mPluginState == PluginState.OFF; }
synchronized boolean function() { return mPluginState == PluginState.OFF; }
/** * Return true if plugins are disabled. * @return True if plugins are disabled. * @hide */
Return true if plugins are disabled
getPluginsDisabled
{ "repo_name": "Crystalnix/BitPop", "path": "content/public/android/java/src/org/chromium/content/browser/ContentSettings.java", "license": "bsd-3-clause", "size": 24647 }
[ "android.webkit.WebSettings" ]
import android.webkit.WebSettings;
import android.webkit.*;
[ "android.webkit" ]
android.webkit;
485,821
public MamPrefsResult updateArchivingPreferences(List<Jid> alwaysJids, List<Jid> neverJids, DefaultBehavior defaultBehavior) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, NotLoggedInException { Objects.requireNonNull(defaultBehavior, "De...
MamPrefsResult function(List<Jid> alwaysJids, List<Jid> neverJids, DefaultBehavior defaultBehavior) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, NotLoggedInException { Objects.requireNonNull(defaultBehavior, STR); MamPrefsIQ mamPrefIQ = new MamPrefsIQ(alwaysJids, neverJid...
/** * Update the preferences in the server. * * @param alwaysJids * is the list of JIDs that should always have messages to/from * archived in the user's store * @param neverJids * is the list of JIDs that should never have messages to/from * ...
Update the preferences in the server
updateArchivingPreferences
{ "repo_name": "esl/Smack", "path": "smack-experimental/src/main/java/org/jivesoftware/smackx/mam/MamManager.java", "license": "apache-2.0", "size": 26054 }
[ "java.util.List", "org.jivesoftware.smack.SmackException", "org.jivesoftware.smack.XMPPException", "org.jivesoftware.smack.util.Objects", "org.jivesoftware.smackx.mam.element.MamPrefsIQ", "org.jivesoftware.smackx.xdata.packet.DataForm", "org.jxmpp.jid.Jid" ]
import java.util.List; import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smack.util.Objects; import org.jivesoftware.smackx.mam.element.MamPrefsIQ; import org.jivesoftware.smackx.xdata.packet.DataForm; import org.jxmpp.jid.Jid;
import java.util.*; import org.jivesoftware.smack.*; import org.jivesoftware.smack.util.*; import org.jivesoftware.smackx.mam.element.*; import org.jivesoftware.smackx.xdata.packet.*; import org.jxmpp.jid.*;
[ "java.util", "org.jivesoftware.smack", "org.jivesoftware.smackx", "org.jxmpp.jid" ]
java.util; org.jivesoftware.smack; org.jivesoftware.smackx; org.jxmpp.jid;
618,491
boolean proceedWithSourceTranscoding(SVGConverterSource source, File dest);
boolean proceedWithSourceTranscoding(SVGConverterSource source, File dest);
/** * Invoked when the rasterizer is about to start transcoding * of a given source. * The controller should return true if the source should be * transcoded and false otherwise. */
Invoked when the rasterizer is about to start transcoding of a given source. The controller should return true if the source should be transcoded and false otherwise
proceedWithSourceTranscoding
{ "repo_name": "iconfinder/batik", "path": "sources/org/apache/batik/apps/rasterizer/SVGConverterController.java", "license": "apache-2.0", "size": 3062 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,063,152
private void sendMessage(String message) { // Check that we're actually connected before trying anything if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) { Toast.makeText(getActivity(), R.string.not_connected, Toast.LENGTH_SHORT).show(); return; } ...
void function(String message) { if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) { Toast.makeText(getActivity(), R.string.not_connected, Toast.LENGTH_SHORT).show(); return; } if (message.length() > 0) { byte[] send = message.getBytes(); mChatService.write(send); mOutStringBuffer.setLength(0); mOutEd...
/** * Sends a message. * * @param message A string of text to send. */
Sends a message
sendMessage
{ "repo_name": "NeilSoul/FlowNet", "path": "tryouts/app/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/BluetoothChatFragment.java", "license": "unlicense", "size": 14935 }
[ "android.widget.Toast" ]
import android.widget.Toast;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,329,609
@Test(expected = IllegalArgumentException.class) public void testCreatePortWithNullId() { final Port testPort = NeutronPort.builder() .networkId(NETWORK_ID) .build(); target.createPort(testPort); }
@Test(expected = IllegalArgumentException.class) void function() { final Port testPort = NeutronPort.builder() .networkId(NETWORK_ID) .build(); target.createPort(testPort); }
/** * Tests if creating a port with null ID fails with an exception. */
Tests if creating a port with null ID fails with an exception
testCreatePortWithNullId
{ "repo_name": "oplinkoms/onos", "path": "apps/openstacknetworking/app/src/test/java/org/onosproject/openstacknetworking/impl/OpenstackNetworkManagerTest.java", "license": "apache-2.0", "size": 25526 }
[ "org.junit.Test", "org.openstack4j.model.network.Port", "org.openstack4j.openstack.networking.domain.NeutronPort" ]
import org.junit.Test; import org.openstack4j.model.network.Port; import org.openstack4j.openstack.networking.domain.NeutronPort;
import org.junit.*; import org.openstack4j.model.network.*; import org.openstack4j.openstack.networking.domain.*;
[ "org.junit", "org.openstack4j.model", "org.openstack4j.openstack" ]
org.junit; org.openstack4j.model; org.openstack4j.openstack;
834,661
@VisibleForTesting Parser.ParseResult parseFileWithComments(String... inputLines) { ParserInputSource input = ParserInputSource.create(Joiner.on("\n").join(inputLines), null); return isSkylark ? Parser.parseFileForSkylark(input, eventHandler, new ValidationEnvironment(this)) : Parser.parseFi...
Parser.ParseResult parseFileWithComments(String... inputLines) { ParserInputSource input = ParserInputSource.create(Joiner.on("\n").join(inputLines), null); return isSkylark ? Parser.parseFileForSkylark(input, eventHandler, new ValidationEnvironment(this)) : Parser.parseFile(input, eventHandler, false); }
/** * Parses some String input without a supporting file, returning statements and comments. * @param input a list of lines of code */
Parses some String input without a supporting file, returning statements and comments
parseFileWithComments
{ "repo_name": "xindaya/bazel", "path": "src/main/java/com/google/devtools/build/lib/syntax/Environment.java", "license": "apache-2.0", "size": 35580 }
[ "com.google.common.base.Joiner" ]
import com.google.common.base.Joiner;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,696,558
SceneNode createPrefabFromSceneNode(long id) throws EntityNotFoundException;
SceneNode createPrefabFromSceneNode(long id) throws EntityNotFoundException;
/** * Creates a new prefab from the given scene node but does not add it to a prefab set. This method modifies the database. * * @param id id of the scene node that should be used to create the prefab * @return the new prefab * @throws EntityNotFoundException */
Creates a new prefab from the given scene node but does not add it to a prefab set. This method modifies the database
createPrefabFromSceneNode
{ "repo_name": "dfki-asr-fitman/c3dwv", "path": "compass-business-impl/src/main/java/de/dfki/asr/compass/business/api/PrefabManager.java", "license": "apache-2.0", "size": 1952 }
[ "de.dfki.asr.compass.business.exception.EntityNotFoundException", "de.dfki.asr.compass.model.SceneNode" ]
import de.dfki.asr.compass.business.exception.EntityNotFoundException; import de.dfki.asr.compass.model.SceneNode;
import de.dfki.asr.compass.business.exception.*; import de.dfki.asr.compass.model.*;
[ "de.dfki.asr" ]
de.dfki.asr;
2,183,771
public static String getCurrentLogin() { SecurityContext securityContext = SecurityContextHolder.getContext(); UserDetails springSecurityUser = (UserDetails) securityContext .getAuthentication().getPrincipal(); return springSecurityUser.getUsername();...
static String function() { SecurityContext securityContext = SecurityContextHolder.getContext(); UserDetails springSecurityUser = (UserDetails) securityContext .getAuthentication().getPrincipal(); return springSecurityUser.getUsername(); }
/** * Get the login of the current user. */
Get the login of the current user
getCurrentLogin
{ "repo_name": "ravikiran438/cevent-app", "path": "src/main/java/com/mycompany/cevent/security/SecurityUtils.java", "license": "apache-2.0", "size": 1505 }
[ "org.springframework.security.core.context.SecurityContext", "org.springframework.security.core.context.SecurityContextHolder", "org.springframework.security.core.userdetails.UserDetails" ]
import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.context.*; import org.springframework.security.core.userdetails.*;
[ "org.springframework.security" ]
org.springframework.security;
2,015,740
public boolean removeByName(String name) { boolean found = false; Iterator<CompilerInput> iter = inputs.iterator(); while (iter.hasNext()) { CompilerInput file = iter.next(); if (name.equals(file.getName())) { iter.remove(); file.setModule(null); found = true; } ...
boolean function(String name) { boolean found = false; Iterator<CompilerInput> iter = inputs.iterator(); while (iter.hasNext()) { CompilerInput file = iter.next(); if (name.equals(file.getName())) { iter.remove(); file.setModule(null); found = true; } } return found; }
/** * Removes any input with the given name. Returns whether any were removed. */
Removes any input with the given name. Returns whether any were removed
removeByName
{ "repo_name": "brad4d/closure-compiler", "path": "src/com/google/javascript/jscomp/JSModule.java", "license": "apache-2.0", "size": 8084 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,248,135
public static String processStringObject(String valueStr, ConditionTypeEnum condition, ConditionApplicationEnum applyCondition, String fieldName) throws TskCoreException { String fullClause = ""; String lowerFieldName = "lower(" + fieldName + ")"; //NON-NLS if (valu...
static String function(String valueStr, ConditionTypeEnum condition, ConditionApplicationEnum applyCondition, String fieldName) throws TskCoreException { String fullClause = STRlower(STR)STREmpty value fieldSTR##comma##STR=\'STR\'STR !=\'%STR%\'STR LIKE \'%STR%\'STR NOT LIKE \'%STR%\'STR LIKE \'STR%\'STR LIKE \'%STR\'S...
/** * Return the SQL clause for a String object * * @param valueStr Value as a string * @param condition Cybox condition * @param applyCondition Cybox apply_condition * @param fieldName Name of the field we're testing against * * @return SQL clause * * @throws TskCoreEx...
Return the SQL clause for a String object
processStringObject
{ "repo_name": "karlmortensen/autopsy", "path": "Core/src/org/sleuthkit/autopsy/modules/stix/EvalFileObj.java", "license": "apache-2.0", "size": 28741 }
[ "org.mitre.cybox.common_2.ConditionApplicationEnum", "org.mitre.cybox.common_2.ConditionTypeEnum", "org.sleuthkit.datamodel.TskCoreException" ]
import org.mitre.cybox.common_2.ConditionApplicationEnum; import org.mitre.cybox.common_2.ConditionTypeEnum; import org.sleuthkit.datamodel.TskCoreException;
import org.mitre.cybox.common_2.*; import org.sleuthkit.datamodel.*;
[ "org.mitre.cybox", "org.sleuthkit.datamodel" ]
org.mitre.cybox; org.sleuthkit.datamodel;
2,141,281
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.RegistRefID, required=true) public void setRegistRefID(String registRefID) { this.registRefID = registRefID; }
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.RegistRefID, required=true) void function(String registRefID) { this.registRefID = registRefID; }
/** * Message field setter. * @param registRefID field value */
Message field setter
setRegistRefID
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/RegistrationInstructionsMsg.java", "license": "gpl-3.0", "size": 25885 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
336,366
private Boolean configure() { _log.debug("Venice Configuration File:" + _configFile); try { XMLConfiguration config = new XMLConfiguration(_configFile); @SuppressWarnings({ "rawtypes" }) List callbacks = config .getList("sessionBeanConfig.callback.[@name]"); Integer beanConfigIndex = new In...
Boolean function() { _log.debug(STR + _configFile); try { XMLConfiguration config = new XMLConfiguration(_configFile); @SuppressWarnings({ STR }) List callbacks = config .getList(STR); Integer beanConfigIndex = new Integer(Integer.MAX_VALUE); @SuppressWarnings(STR) Iterator i = callbacks.iterator(); while (i.hasNext())...
/** * Reads the venice configuration file and configures the EJB's * triggerCallbackClassName */
Reads the venice configuration file and configures the EJB's triggerCallbackClassName
configure
{ "repo_name": "yauritux/venice-legacy", "path": "Venice/Venice-Service/src/main/java/com/gdn/venice/facade/FinArFundsInAllocatePaymentSessionEJBBean.java", "license": "apache-2.0", "size": 20171 }
[ "java.util.Iterator", "java.util.List", "org.apache.commons.configuration.ConfigurationException", "org.apache.commons.configuration.XMLConfiguration" ]
import java.util.Iterator; import java.util.List; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.XMLConfiguration;
import java.util.*; import org.apache.commons.configuration.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
1,082,556
public void validatePropertyHeaderUpdate(String propertyHeaderCellValue, int columnIndex, boolean isPropertyType) { List<String> propertyNameElements = Collections.unmodifiableList(Arrays.asList(propertyHeaderCellValue.split("\\."))); if (isPropertyType) { checkSamePropertyHeader(columnI...
void function(String propertyHeaderCellValue, int columnIndex, boolean isPropertyType) { List<String> propertyNameElements = Collections.unmodifiableList(Arrays.asList(propertyHeaderCellValue.split("\\."))); if (isPropertyType) { checkSamePropertyHeader(columnIndex, propertyNameElements); checkUniquePropertyHeaderTitle...
/** * Check validity of given <b>propertyHeaderCellValue</b> * @param propertyHeaderCellValue * @param columnIndex * @param isPropertyType * @throws Exception with message specific to failed check */
Check validity of given propertyHeaderCellValue
validatePropertyHeaderUpdate
{ "repo_name": "droolsjbpm/drools-wb", "path": "drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-client/src/main/java/org/drools/workbench/screens/scenariosimulation/client/models/AbstractScesimGridModel.java", "license": "apache-2.0", "size": 56256 }
[ "java.util.Arrays", "java.util.Collections", "java.util.List" ]
import java.util.Arrays; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
963,258
public void startup() throws IOException { }
void function() throws IOException { }
/** * Do not send any notifications at startup. We do not know, * whether the remote client understands telnet protocol handling, * so we are silent. * (This used to send IAC WILL SGA, but this is false for a compliant * client.) */
Do not send any notifications at startup. We do not know, whether the remote client understands telnet protocol handling, so we are silent. (This used to send IAC WILL SGA, but this is false for a compliant client.)
startup
{ "repo_name": "DAMWID/rterm", "path": "src/de/mud/telnet/TelnetProtocolHandler.java", "license": "gpl-3.0", "size": 19771 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,120,211