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
@Override protected void visitForNode(ForNode forNode) { // Strictly speaking, if a for loop is guaranteed to execute once, then the result of // rewrite(loopBody, context) must be the same as rewrite(loopBody, result). // But where we cannot prove that the loop is executed at least once, the ...
void function(ForNode forNode) { try { Context afterBody = context; for (SoyNode child : forNode.getChildren()) { afterBody = infer(child, afterBody); } Optional<Context> combined = Context.union(context, afterBody); if (!combined.isPresent()) { throw SoyAutoescapeException.createWithNode( STR + forNode.toSourceString(...
/** * Do multiple inferences so we can make sure we get to a consistent context regardless of how * many times the loop is entered. */
Do multiple inferences so we can make sure we get to a consistent context regardless of how many times the loop is entered
visitForNode
{ "repo_name": "rpatil26/closure-templates", "path": "java/src/com/google/template/soy/parsepasses/contextautoesc/InferenceEngine.java", "license": "apache-2.0", "size": 44513 }
[ "com.google.common.base.Optional", "com.google.template.soy.soytree.ForNode", "com.google.template.soy.soytree.SoyNode" ]
import com.google.common.base.Optional; import com.google.template.soy.soytree.ForNode; import com.google.template.soy.soytree.SoyNode;
import com.google.common.base.*; import com.google.template.soy.soytree.*;
[ "com.google.common", "com.google.template" ]
com.google.common; com.google.template;
741,076
public void testUpdateXmlPageLink() throws Exception { // create a XML entity resolver CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; CmsLink link; String content; // validate xmlpage 4 content = CmsFileUtil.readFile("org/o...
void function() throws Exception { CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; CmsLink link; String content; content = CmsFileUtil.readFile(STR, UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); ass...
/** * Tests reading and updating link elements from the XML page.<p> * * @throws Exception in case something goes wrong */
Tests reading and updating link elements from the XML page
testUpdateXmlPageLink
{ "repo_name": "serrapos/opencms-core", "path": "test/org/opencms/xml/page/TestCmsXmlPage.java", "license": "lgpl-2.1", "size": 21689 }
[ "java.util.Locale", "org.opencms.relations.CmsLink", "org.opencms.util.CmsFileUtil", "org.opencms.xml.CmsXmlEntityResolver" ]
import java.util.Locale; import org.opencms.relations.CmsLink; import org.opencms.util.CmsFileUtil; import org.opencms.xml.CmsXmlEntityResolver;
import java.util.*; import org.opencms.relations.*; import org.opencms.util.*; import org.opencms.xml.*;
[ "java.util", "org.opencms.relations", "org.opencms.util", "org.opencms.xml" ]
java.util; org.opencms.relations; org.opencms.util; org.opencms.xml;
2,072,824
private static void updateLocation(Connection connection, RegionInfo regionInfo, ServerName sn, long openSeqNum, long masterSystemTime) throws IOException { // region replicas are kept in the primary region's row Put put = new Put(getMetaKeyForRegion(regionInfo), masterSystemTime); addRegionInfo(put...
static void function(Connection connection, RegionInfo regionInfo, ServerName sn, long openSeqNum, long masterSystemTime) throws IOException { Put put = new Put(getMetaKeyForRegion(regionInfo), masterSystemTime); addRegionInfo(put, regionInfo); addLocation(put, sn, openSeqNum, regionInfo.getReplicaId()); putToMetaTable...
/** * Updates the location of the specified region to be the specified server. * <p> * Connects to the specified server which should be hosting the specified catalog region name to * perform the edit. * @param connection connection we're using * @param regionInfo region to update location of * @par...
Updates the location of the specified region to be the specified server. Connects to the specified server which should be hosting the specified catalog region name to perform the edit
updateLocation
{ "repo_name": "ultratendency/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java", "license": "apache-2.0", "size": 85768 }
[ "java.io.IOException", "org.apache.hadoop.hbase.client.Connection", "org.apache.hadoop.hbase.client.Put", "org.apache.hadoop.hbase.client.RegionInfo" ]
import java.io.IOException; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.client.RegionInfo;
import java.io.*; import org.apache.hadoop.hbase.client.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
657,156
private void viewDictionaryResult(DictionaryResult dictionaryResult) { if (translationOptionsView.getAdapter() == null) return; List<TranslationOption> translationOptions = YandexDictionaryService.convert(dictionaryResult); TranslationListAdapter adapter = (TranslationListAdapter...
void function(DictionaryResult dictionaryResult) { if (translationOptionsView.getAdapter() == null) return; List<TranslationOption> translationOptions = YandexDictionaryService.convert(dictionaryResult); TranslationListAdapter adapter = (TranslationListAdapter) translationOptionsView.getAdapter(); adapter.setTranslatio...
/** * Converts DictionaryResult from YandexDictionary service to list of TranslationOptions and * set this list as translation list adapter's list. * @param dictionaryResult */
Converts DictionaryResult from YandexDictionary service to list of TranslationOptions and set this list as translation list adapter's list
viewDictionaryResult
{ "repo_name": "sda97ghb/LearnWords", "path": "app/src/main/java/com/divanoapps/learnwords/activities/CardAddActivity.java", "license": "mit", "size": 8068 }
[ "com.divanoapps.learnwords.YandexDictionary", "com.divanoapps.learnwords.adapters.TranslationListAdapter", "com.divanoapps.learnwords.entities.TranslationOption", "java.util.List" ]
import com.divanoapps.learnwords.YandexDictionary; import com.divanoapps.learnwords.adapters.TranslationListAdapter; import com.divanoapps.learnwords.entities.TranslationOption; import java.util.List;
import com.divanoapps.learnwords.*; import com.divanoapps.learnwords.adapters.*; import com.divanoapps.learnwords.entities.*; import java.util.*;
[ "com.divanoapps.learnwords", "java.util" ]
com.divanoapps.learnwords; java.util;
1,994,085
EAttribute getbWrFHHTP_Value();
EAttribute getbWrFHHTP_Value();
/** * Returns the meta object for the attribute '{@link sc.ndt.editor.turbsimtbs.bWrFHHTP#isValue <em>Value</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Value</em>'. * @see sc.ndt.editor.turbsimtbs.bWrFHHTP#isValue() * @see #getbWrFHHTP() ...
Returns the meta object for the attribute '<code>sc.ndt.editor.turbsimtbs.bWrFHHTP#isValue Value</code>'.
getbWrFHHTP_Value
{ "repo_name": "cooked/NDT", "path": "sc.ndt.editor.turbsim.tbs/src-gen/sc/ndt/editor/turbsimtbs/TurbsimtbsPackage.java", "license": "gpl-3.0", "size": 204585 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
786,121
public void testClone() { SemanticLabel a = new DefaultSemanticLabel("a"); SemanticLabel b = new DefaultSemanticLabel("b"); SemanticLabel c = new DefaultSemanticLabel("c"); SemanticLabel d = new DefaultSemanticLabel("d"); SemanticLabel e = new DefaultSemanticLabel("e"); ...
void function() { SemanticLabel a = new DefaultSemanticLabel("a"); SemanticLabel b = new DefaultSemanticLabel("b"); SemanticLabel c = new DefaultSemanticLabel("c"); SemanticLabel d = new DefaultSemanticLabel("d"); SemanticLabel e = new DefaultSemanticLabel("e"); SemanticIdentifierMap map = new DefaultSemanticIdentifier...
/** * Test of clone method, of class gov.sandia.cognition.framework.learning.InputOutputPairCogxelConverter. */
Test of clone method, of class gov.sandia.cognition.framework.learning.InputOutputPairCogxelConverter
testClone
{ "repo_name": "codeaudit/Foundry", "path": "Components/FrameworkLearning/Test/gov/sandia/cognition/framework/learning/converter/CogxelInputOutputPairConverterTest.java", "license": "bsd-3-clause", "size": 14606 }
[ "gov.sandia.cognition.framework.DefaultSemanticIdentifierMap", "gov.sandia.cognition.framework.DefaultSemanticLabel", "gov.sandia.cognition.framework.SemanticIdentifierMap", "gov.sandia.cognition.framework.SemanticLabel", "gov.sandia.cognition.math.matrix.Vector" ]
import gov.sandia.cognition.framework.DefaultSemanticIdentifierMap; import gov.sandia.cognition.framework.DefaultSemanticLabel; import gov.sandia.cognition.framework.SemanticIdentifierMap; import gov.sandia.cognition.framework.SemanticLabel; import gov.sandia.cognition.math.matrix.Vector;
import gov.sandia.cognition.framework.*; import gov.sandia.cognition.math.matrix.*;
[ "gov.sandia.cognition" ]
gov.sandia.cognition;
251,657
protected final void putAllIntoModel(final Map<String, Object> model, final Map<String, Object> values){ model.putAll(values); }
final void function(final Map<String, Object> model, final Map<String, Object> values){ model.putAll(values); }
/** * Put all into model. * * @param model the model * @param values the values */
Put all into model
putAllIntoModel
{ "repo_name": "joansmith/cas", "path": "cas-server-core-web/src/main/java/org/jasig/cas/services/web/view/AbstractCasView.java", "license": "apache-2.0", "size": 15615 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
204,741
public boolean hasAttributeValue(String name, final Object value) { if (name == null) { return false; } name = name.toLowerCase().trim(); if (!this.attributes.containsKey(name)) { return false; } if (this.attributes.get(name) == null) { ...
boolean function(String name, final Object value) { if (name == null) { return false; } name = name.toLowerCase().trim(); if (!this.attributes.containsKey(name)) { return false; } if (this.attributes.get(name) == null) { return false; } final List<Object> values = Arrays.asList(this.attributes.get(name)); if (values.co...
/** * Lets you know if the actual entry instance contains an specific attribute with an specific * value * * @param name * Name of the attribute * @param value * The value of the attribute * @return boolean */
Lets you know if the actual entry instance contains an specific attribute with an specific value
hasAttributeValue
{ "repo_name": "RicardoLorenzo/VirtualIdentityManagementAPI", "path": "src/main/java/com/ricardolorenzo/identity/Identity.java", "license": "gpl-3.0", "size": 8408 }
[ "java.util.Arrays", "java.util.List" ]
import java.util.Arrays; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
919,489
public Rectangle listOffsetToView(RSyntaxTextArea textArea, TabExpander e, int pos, int x0, Rectangle rect);
Rectangle function(RSyntaxTextArea textArea, TabExpander e, int pos, int x0, Rectangle rect);
/** * Returns the bounding box for the specified document location. The * location must be in the specified token list; if it isn't, * <code>null</code> is returned. * * @param textArea The text area from which the token list was derived. * @param e How to expand tabs. * @param pos The position in the do...
Returns the bounding box for the specified document location. The location must be in the specified token list; if it isn't, <code>null</code> is returned
listOffsetToView
{ "repo_name": "reqT/reqT-syntax", "path": "src/org/fife/ui/rsyntaxtextarea/Token.java", "license": "bsd-3-clause", "size": 17937 }
[ "java.awt.Rectangle", "javax.swing.text.TabExpander" ]
import java.awt.Rectangle; import javax.swing.text.TabExpander;
import java.awt.*; import javax.swing.text.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,025,293
public static boolean validateJSON(final String jsonDoc, final String schemaIn) { try { final JsonNode fstabSchema = JsonLoader.fromResource(schemaIn); final JsonSchemaFactory factory = JsonSchemaFactory.byDefault(); final JsonSchema schema = factory.getJsonSche...
static boolean function(final String jsonDoc, final String schemaIn) { try { final JsonNode fstabSchema = JsonLoader.fromResource(schemaIn); final JsonSchemaFactory factory = JsonSchemaFactory.byDefault(); final JsonSchema schema = factory.getJsonSchema(fstabSchema); schema.validate(fstabSchema); return true; } catch (...
/** * Validate a JSON document against a schema. * @param jsonDoc The full json document content as a string. * @param schemaIn The full json schema as a string. * @return true if the document validates. */
Validate a JSON document against a schema
validateJSON
{ "repo_name": "pjgrace/connect-iot", "path": "src/main/java/uk/ac/soton/itinnovation/xifiinteroperability/modelframework/data/JSON.java", "license": "lgpl-3.0", "size": 5480 }
[ "com.fasterxml.jackson.databind.JsonNode", "com.github.fge.jackson.JsonLoader", "com.github.fge.jsonschema.core.exceptions.ProcessingException", "com.github.fge.jsonschema.main.JsonSchema", "com.github.fge.jsonschema.main.JsonSchemaFactory", "java.io.IOException", "uk.ac.soton.itinnovation.xifiinteroper...
import com.fasterxml.jackson.databind.JsonNode; import com.github.fge.jackson.JsonLoader; import com.github.fge.jsonschema.core.exceptions.ProcessingException; import com.github.fge.jsonschema.main.JsonSchema; import com.github.fge.jsonschema.main.JsonSchemaFactory; import java.io.IOException; import uk.ac.soton.itinno...
import com.fasterxml.jackson.databind.*; import com.github.fge.jackson.*; import com.github.fge.jsonschema.core.exceptions.*; import com.github.fge.jsonschema.main.*; import java.io.*; import uk.ac.soton.itinnovation.xifiinteroperability.*;
[ "com.fasterxml.jackson", "com.github.fge", "java.io", "uk.ac.soton" ]
com.fasterxml.jackson; com.github.fge; java.io; uk.ac.soton;
1,406,599
public void setLinesSeparator(String linesSeparator) { App.getSettings().setLinesSeparator(linesSeparator.length() == 0 ? Constants.LINES_SEPARATOR : linesSeparator); }
void function(String linesSeparator) { App.getSettings().setLinesSeparator(linesSeparator.length() == 0 ? Constants.LINES_SEPARATOR : linesSeparator); }
/** * Set the string to be used to split initial text into checklist items. Default System line separator (carriage * return). * * @param linesSeparator * String separator */
Set the string to be used to split initial text into checklist items. Default System line separator (carriage return)
setLinesSeparator
{ "repo_name": "0359xiaodong/CheckListView", "path": "checklistview/src/main/java/it/feio/android/checklistview/ChecklistManager.java", "license": "apache-2.0", "size": 11584 }
[ "it.feio.android.checklistview.interfaces.Constants" ]
import it.feio.android.checklistview.interfaces.Constants;
import it.feio.android.checklistview.interfaces.*;
[ "it.feio.android" ]
it.feio.android;
284,278
public ArrayList<Integer> portServicios(String ip) { final ExecutorService es = Executors.newFixedThreadPool(1000); final int timeout = 400; final List<Future<Boolean>> tareas = new ArrayList<>(); for (int port = 1; port <= 65535; port++) { tareas.add(portIsOpenServicios(es, ip, port, timeout)); }...
ArrayList<Integer> function(String ip) { final ExecutorService es = Executors.newFixedThreadPool(1000); final int timeout = 400; final List<Future<Boolean>> tareas = new ArrayList<>(); for (int port = 1; port <= 65535; port++) { tareas.add(portIsOpenServicios(es, ip, port, timeout)); } es.shutdown(); int auxPuerto = 1;...
/** * Metodo que verfica los puertos disponibles de un host * * @param ip, * la ip del host a que se har� ping */
Metodo que verfica los puertos disponibles de un host
portServicios
{ "repo_name": "JuanDavidSanchezAroca/Redes", "path": "ProyectoRedesNmap/src/co/edu/uniquindio/logica/JNetMap.java", "license": "mit", "size": 13584 }
[ "java.util.ArrayList", "java.util.List", "java.util.concurrent.ExecutorService", "java.util.concurrent.Executors", "java.util.concurrent.Future" ]
import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
837,965
public SecurityRuleInner withAccess(SecurityRuleAccess access) { this.access = access; return this; }
SecurityRuleInner function(SecurityRuleAccess access) { this.access = access; return this; }
/** * Set the network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'. * * @param access the access value to set * @return the SecurityRuleInner object itself. */
Set the network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'
withAccess
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/network/v2020_03_01/implementation/SecurityRuleInner.java", "license": "mit", "size": 16948 }
[ "com.microsoft.azure.management.network.v2020_03_01.SecurityRuleAccess" ]
import com.microsoft.azure.management.network.v2020_03_01.SecurityRuleAccess;
import com.microsoft.azure.management.network.v2020_03_01.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
863,609
public Adapter createAdditionAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link fr.lip6.move.pnml.symmetricnet.integers.Addition <em>Addition</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anywa...
Creates a new adapter for an object of class '<code>fr.lip6.move.pnml.symmetricnet.integers.Addition Addition</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
createAdditionAdapter
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/integers/util/IntegersAdapterFactory.java", "license": "epl-1.0", "size": 18380 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
835,636
public RegionEntry getUnderlyingRegionEntry();
RegionEntry function();
/** * Return the underlying {@link RegionEntry} for current RowLocation in the * Region that will allow reading key or value. The difference from * {@link #getRegionEntry()} is that for transactional entries this will still * return the region's RegionEntry while former can return the transactional * ent...
Return the underlying <code>RegionEntry</code> for current RowLocation in the Region that will allow reading key or value. The difference from <code>#getRegionEntry()</code> is that for transactional entries this will still return the region's RegionEntry while former can return the transactional entry itself if part o...
getUnderlyingRegionEntry
{ "repo_name": "SnappyDataInc/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/iapi/types/RowLocation.java", "license": "apache-2.0", "size": 7175 }
[ "com.gemstone.gemfire.internal.cache.RegionEntry" ]
import com.gemstone.gemfire.internal.cache.RegionEntry;
import com.gemstone.gemfire.internal.cache.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
2,370,311
public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()); }
IBlockState function(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()); }
/** * Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the * IBlockstate */
Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate
getStateForPlacement
{ "repo_name": "SparkyTheFox/Sparkys-Mod-1.11.2-1.4.0-Alpha-SourceCode", "path": "common/mod/sparkyfox/servermod/props/adventure/PropMTable.java", "license": "lgpl-3.0", "size": 5717 }
[ "net.minecraft.block.state.IBlockState", "net.minecraft.entity.EntityLivingBase", "net.minecraft.util.EnumFacing", "net.minecraft.util.math.BlockPos", "net.minecraft.world.World" ]
import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World;
import net.minecraft.block.state.*; import net.minecraft.entity.*; import net.minecraft.util.*; import net.minecraft.util.math.*; import net.minecraft.world.*;
[ "net.minecraft.block", "net.minecraft.entity", "net.minecraft.util", "net.minecraft.world" ]
net.minecraft.block; net.minecraft.entity; net.minecraft.util; net.minecraft.world;
1,916,423
public static void assertGlobEquals(File dir, String pattern, String ... expectedMatches) throws IOException { Set<String> found = Sets.newTreeSet(); for (File f : FileUtil.listFiles(dir)) { if (f.getName().matches(pattern)) { found.add(f.getName()); } } Set<String> expe...
static void function(File dir, String pattern, String ... expectedMatches) throws IOException { Set<String> found = Sets.newTreeSet(); for (File f : FileUtil.listFiles(dir)) { if (f.getName().matches(pattern)) { found.add(f.getName()); } } Set<String> expectedSet = Sets.newTreeSet( Arrays.asList(expectedMatches)); Asse...
/** * List all of the files in 'dir' that match the regex 'pattern'. * Then check that this list is identical to 'expectedMatches'. * @throws IOException if the dir is inaccessible */
List all of the files in 'dir' that match the regex 'pattern'. Then check that this list is identical to 'expectedMatches'
assertGlobEquals
{ "repo_name": "tianshouzhi/hadoop", "path": "hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/GenericTestUtils.java", "license": "apache-2.0", "size": 13221 }
[ "com.google.common.base.Joiner", "com.google.common.collect.Sets", "java.io.File", "java.io.IOException", "java.util.Arrays", "java.util.Set", "org.apache.hadoop.fs.FileUtil", "org.junit.Assert" ]
import com.google.common.base.Joiner; import com.google.common.collect.Sets; import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.Set; import org.apache.hadoop.fs.FileUtil; import org.junit.Assert;
import com.google.common.base.*; import com.google.common.collect.*; import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; import org.junit.*;
[ "com.google.common", "java.io", "java.util", "org.apache.hadoop", "org.junit" ]
com.google.common; java.io; java.util; org.apache.hadoop; org.junit;
1,266,019
public static Object extractReadArray(final DeviceAttribute da, final AttrDataFormat format) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return InsertExtractFactory.getAttributeExtractor(da.getType()).extractReadArray(da, format); }
static Object function(final DeviceAttribute da, final AttrDataFormat format) throws DevFailed { if (da == null) { throw DevFailedUtils.newDevFailed(ERROR_MSG_DA); } return InsertExtractFactory.getAttributeExtractor(da.getType()).extractReadArray(da, format); }
/** * Extract read values to an object for SCALAR, SPECTRUM and IMAGE * * @param da * @return single value for SCALAR, array of primitives for SPECTRUM and IMAGE * @throws DevFailed */
Extract read values to an object for SCALAR, SPECTRUM and IMAGE
extractReadArray
{ "repo_name": "tango-controls/JTango", "path": "client/src/main/java/fr/soleil/tango/clientapi/InsertExtractUtils.java", "license": "lgpl-3.0", "size": 8344 }
[ "fr.esrf.Tango", "fr.esrf.TangoApi", "fr.soleil.tango.clientapi.factory.InsertExtractFactory", "org.tango.utils.DevFailedUtils" ]
import fr.esrf.Tango; import fr.esrf.TangoApi; import fr.soleil.tango.clientapi.factory.InsertExtractFactory; import org.tango.utils.DevFailedUtils;
import fr.esrf.*; import fr.soleil.tango.clientapi.factory.*; import org.tango.utils.*;
[ "fr.esrf", "fr.soleil.tango", "org.tango.utils" ]
fr.esrf; fr.soleil.tango; org.tango.utils;
1,942,345
CompletableFuture<Integer> mapSize(String mapName);
CompletableFuture<Integer> mapSize(String mapName);
/** * Returns the number of entries in map. * * @param mapName map name * @return A completable future to be completed with the result once complete. */
Returns the number of entries in map
mapSize
{ "repo_name": "kkkane/ONOS", "path": "core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseProxy.java", "license": "apache-2.0", "size": 8303 }
[ "java.util.concurrent.CompletableFuture" ]
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,382,874
public void begin() { if (getFocus()) { mediaPlayer.stop(); mediaPlayer.reset(); art = Fetch.fetchFullArt(getNowPlaying()); try { mediaPlayer.setDataSource((getNowPlaying()).location); } catch (Exception e) { Crash...
void function() { if (getFocus()) { mediaPlayer.stop(); mediaPlayer.reset(); art = Fetch.fetchFullArt(getNowPlaying()); try { mediaPlayer.setDataSource((getNowPlaying()).location); } catch (Exception e) { Crashlytics.logException(e); Log.e(STR, STR, e); Toast.makeText(context, STR, Toast.LENGTH_SHORT).show(); return; }...
/** * Begin playback of a new song. Call this method after changing the queue or now playing track */
Begin playback of a new song. Call this method after changing the queue or now playing track
begin
{ "repo_name": "jaohoang/Jockey", "path": "app/src/main/java/com/marverenic/music/Player.java", "license": "apache-2.0", "size": 37988 }
[ "android.util.Log", "android.widget.Toast", "com.crashlytics.android.Crashlytics", "com.marverenic.music.utils.Fetch" ]
import android.util.Log; import android.widget.Toast; import com.crashlytics.android.Crashlytics; import com.marverenic.music.utils.Fetch;
import android.util.*; import android.widget.*; import com.crashlytics.android.*; import com.marverenic.music.utils.*;
[ "android.util", "android.widget", "com.crashlytics.android", "com.marverenic.music" ]
android.util; android.widget; com.crashlytics.android; com.marverenic.music;
551,963
LogUtil.logDebug = logDebug; final LoggerContext context = (LoggerContext) LogManager.getContext(false); final LoggerConfig rootLogger = context.getConfiguration().getRootLogger(); // remove existing appenders rootLogger.getAppenders().forEach((appenderName, appender) -> rootLogger.rem...
LogUtil.logDebug = logDebug; final LoggerContext context = (LoggerContext) LogManager.getContext(false); final LoggerConfig rootLogger = context.getConfiguration().getRootLogger(); rootLogger.getAppenders().forEach((appenderName, appender) -> rootLogger.removeAppender(appenderName)); final Appender appender; if (logDeb...
/** * Configure the logging subsystem. * * @param logDebug whether debug logging is enabled */
Configure the logging subsystem
configureLogging
{ "repo_name": "apiman/apiman-cli", "path": "src/main/java/io/apiman/cli/util/LogUtil.java", "license": "apache-2.0", "size": 2462 }
[ "org.apache.logging.log4j.Level", "org.apache.logging.log4j.LogManager", "org.apache.logging.log4j.core.Appender", "org.apache.logging.log4j.core.LoggerContext", "org.apache.logging.log4j.core.config.LoggerConfig" ]
import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.Appender; import org.apache.logging.log4j.core.LoggerContext; import org.apache.logging.log4j.core.config.LoggerConfig;
import org.apache.logging.log4j.*; import org.apache.logging.log4j.core.*; import org.apache.logging.log4j.core.config.*;
[ "org.apache.logging" ]
org.apache.logging;
1,172,957
static Dhcp6ClientIdOption extractClientId(Boolean directConnFlag, DHCP6 dhcp6Payload) { Dhcp6ClientIdOption clientIdOption; if (directConnFlag) { clientIdOption = dhcp6Payload.getOptions() .stream() .filter(opt -> opt instanceof Dhcp6ClientIdOpti...
static Dhcp6ClientIdOption extractClientId(Boolean directConnFlag, DHCP6 dhcp6Payload) { Dhcp6ClientIdOption clientIdOption; if (directConnFlag) { clientIdOption = dhcp6Payload.getOptions() .stream() .filter(opt -> opt instanceof Dhcp6ClientIdOption) .map(opt -> (Dhcp6ClientIdOption) opt) .findFirst() .orElse(null); } ...
/** * extract from dhcp6 packet ClientIdOption. * * @param directConnFlag directly connected host * @param dhcp6Payload the dhcp6 payload * @return Dhcp6ClientIdOption clientIdOption, or null if not exists. */
extract from dhcp6 packet ClientIdOption
extractClientId
{ "repo_name": "gkatsikas/onos", "path": "apps/dhcprelay/app/src/main/java/org/onosproject/dhcprelay/Dhcp6HandlerUtil.java", "license": "apache-2.0", "size": 27646 }
[ "org.onlab.packet.dhcp.Dhcp6ClientIdOption" ]
import org.onlab.packet.dhcp.Dhcp6ClientIdOption;
import org.onlab.packet.dhcp.*;
[ "org.onlab.packet" ]
org.onlab.packet;
2,222,594
public final native void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) ; protected BiquadFilterNode() {}
final native void function(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) ; protected BiquadFilterNode() {}
/** * void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse); * @param frequencyHz * @param magResponse * @param phaseResponse */
void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse)
getFrequencyResponse
{ "repo_name": "npedotnet/GwtAudio", "path": "src/net/npe/webaudio/BiquadFilterNode.java", "license": "mit", "size": 2149 }
[ "com.google.gwt.typedarrays.shared.Float32Array" ]
import com.google.gwt.typedarrays.shared.Float32Array;
import com.google.gwt.typedarrays.shared.*;
[ "com.google.gwt" ]
com.google.gwt;
1,032,216
public static <E extends Comparable<? super E>> RulexMatchersBuilder<Model> modelVerb( final E arg) { return verb(Model.class, arg); }
static <E extends Comparable<? super E>> RulexMatchersBuilder<Model> function( final E arg) { return verb(Model.class, arg); }
/** * Method for creation custom builder with specific type parameter * * @param arg * @return */
Method for creation custom builder with specific type parameter
modelVerb
{ "repo_name": "haghard/Rulex", "path": "src/test/java/ru/rulex/matchers/RulexMatchersTest.java", "license": "apache-2.0", "size": 4161 }
[ "ru.rulex.conclusion.Model", "ru.rulex.matchers.Rulex" ]
import ru.rulex.conclusion.Model; import ru.rulex.matchers.Rulex;
import ru.rulex.conclusion.*; import ru.rulex.matchers.*;
[ "ru.rulex.conclusion", "ru.rulex.matchers" ]
ru.rulex.conclusion; ru.rulex.matchers;
1,806,859
public static void showDialog(final Activity activity, String title, String message, boolean isInfo) { // custom dialog
static void function(final Activity activity, String title, String message, boolean isInfo) {
/** * shows a dialog, provides callback for two buttons * * @param activity activity which can have the callback implemented for two buttons * @param title title of dialog * @param message message to be shown in dialog * @param isInfo if dialog is info dialog */
shows a dialog, provides callback for two buttons
showDialog
{ "repo_name": "ir2pid/MarvelCharacterLibrary", "path": "app/src/main/java/noisyninja/com/marvelcharacterlibrary/utils/NoisyUtils.java", "license": "apache-2.0", "size": 16508 }
[ "android.app.Activity" ]
import android.app.Activity;
import android.app.*;
[ "android.app" ]
android.app;
2,386,330
public byte getKeyReference(final int index) { return ((PrivateKeyObject) getElementAt(index)).getKeyReference(); }
byte function(final int index) { return ((PrivateKeyObject) getElementAt(index)).getKeyReference(); }
/** Obtiene la referencia de la clave indicada. * @param index &Iacute;ndice de la clave. * @return Referencia de la clave indicada. */
Obtiene la referencia de la clave indicada
getKeyReference
{ "repo_name": "venanciolm/afirma-ui-miniapplet_x_x", "path": "afirma_ui_miniapplet/src/main/java/es/gob/jmulticard/card/fnmt/ceres/asn1/CeresPrKdf.java", "license": "mit", "size": 6082 }
[ "es.gob.jmulticard.asn1.der.pkcs15.PrivateKeyObject" ]
import es.gob.jmulticard.asn1.der.pkcs15.PrivateKeyObject;
import es.gob.jmulticard.asn1.der.pkcs15.*;
[ "es.gob.jmulticard" ]
es.gob.jmulticard;
2,370,712
@ServiceMethod(returns = ReturnType.SINGLE) Response<Boolean> checkExistenceAtTenantScopeWithResponse(String deploymentName, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<Boolean> checkExistenceAtTenantScopeWithResponse(String deploymentName, Context context);
/** * Checks whether the deployment exists. * * @param deploymentName The name of the deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.Manage...
Checks whether the deployment exists
checkExistenceAtTenantScopeWithResponse
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/DeploymentsClient.java", "license": "mit", "size": 209954 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
2,429,546
public void testSequentialRuns() { ChecksumJob jobTest = new ChecksumJob(); BatchStatus batchStatus = arClient.batch(jobTest, Settings.get( CommonSettings.USE_REPLICA_ID)); assertEquals("First batch should work", testFiles.length, batch...
void function() { ChecksumJob jobTest = new ChecksumJob(); BatchStatus batchStatus = arClient.batch(jobTest, Settings.get( CommonSettings.USE_REPLICA_ID)); assertEquals(STR, testFiles.length, batchStatus.getNoOfFilesProcessed()); batchStatus = arClient.batch(jobTest, Settings.get( CommonSettings.USE_REPLICA_ID)); asser...
/** * Check that a batch job can be executed twice sequentially. */
Check that a batch job can be executed twice sequentially
testSequentialRuns
{ "repo_name": "netarchivesuite/netarchivesuite-svngit-migration", "path": "tests/dk/netarkivet/archive/arcrepository/ArcRepositoryDatabaseTester.java", "license": "lgpl-2.1", "size": 31499 }
[ "dk.netarkivet.common.CommonSettings", "dk.netarkivet.common.distribute.arcrepository.BatchStatus", "dk.netarkivet.common.utils.Settings", "dk.netarkivet.common.utils.batch.ChecksumJob" ]
import dk.netarkivet.common.CommonSettings; import dk.netarkivet.common.distribute.arcrepository.BatchStatus; import dk.netarkivet.common.utils.Settings; import dk.netarkivet.common.utils.batch.ChecksumJob;
import dk.netarkivet.common.*; import dk.netarkivet.common.distribute.arcrepository.*; import dk.netarkivet.common.utils.*; import dk.netarkivet.common.utils.batch.*;
[ "dk.netarkivet.common" ]
dk.netarkivet.common;
1,332,483
final public static LengthUnit getUnits() { return LengthUnit.Millimeters; } public AxesLocation() { // Empty. location = new LinkedHashMap<>(0); } public AxesLocation(Axis axis, double coordinate) { location = new LinkedHashMap<>(1); if (axis != nu...
final static LengthUnit function() { return LengthUnit.Millimeters; } public AxesLocation() { location = new LinkedHashMap<>(0); } public AxesLocation(Axis axis, double coordinate) { location = new LinkedHashMap<>(1); if (axis != null) { location.put(axis, coordinate); } } public AxesLocation(Axis axis, Length coordina...
/** * All coordinates of AxesLoactions are handled as Millimeters to speed up calculations and allow for * multi-axis transforms across drivers with different units and other universal vector math. This unit-less * handling also avoids problems with rotational axis coordinates that should obviously nev...
All coordinates of AxesLoactions are handled as Millimeters to speed up calculations and allow for multi-axis transforms across drivers with different units and other universal vector math. This unit-less handling also avoids problems with rotational axis coordinates that should obviously never be length unit converted
getUnits
{ "repo_name": "openpnp/openpnp", "path": "src/main/java/org/openpnp/model/AxesLocation.java", "license": "gpl-3.0", "size": 23830 }
[ "java.util.LinkedHashMap", "java.util.List", "java.util.function.BiFunction", "java.util.function.Function", "org.openpnp.spi.Axis", "org.openpnp.spi.ControllerAxis", "org.openpnp.spi.CoordinateAxis", "org.openpnp.spi.Driver", "org.openpnp.spi.Machine" ]
import java.util.LinkedHashMap; import java.util.List; import java.util.function.BiFunction; import java.util.function.Function; import org.openpnp.spi.Axis; import org.openpnp.spi.ControllerAxis; import org.openpnp.spi.CoordinateAxis; import org.openpnp.spi.Driver; import org.openpnp.spi.Machine;
import java.util.*; import java.util.function.*; import org.openpnp.spi.*;
[ "java.util", "org.openpnp.spi" ]
java.util; org.openpnp.spi;
2,094,867
@Test public void whenTakeSubAndExit(){ MockIO mockIO = new MockIO(new String[]{"2", "10", "5", "7"}); Calculator calculator = new Calculator(); new InteractCalc(calculator, mockIO).start(); Assert.assertThat(calculator.getResult(), is(5.0)); }
void function(){ MockIO mockIO = new MockIO(new String[]{"2", "10", "5", "7"}); Calculator calculator = new Calculator(); new InteractCalc(calculator, mockIO).start(); Assert.assertThat(calculator.getResult(), is(5.0)); }
/** * Test subtraction. */
Test subtraction
whenTakeSubAndExit
{ "repo_name": "revdaalex/learn_java", "path": "chapter3/Calculator/InteractCalc/src/test/java/ru/revdaalex/calculator/InteractCalcTest.java", "license": "apache-2.0", "size": 2283 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
1,432,108
@Test public void testCheckAttributeSemantics() throws Exception { System.out.println("testCheckAttributeSemantics()"); Attribute attributeToCheck = new Attribute(); attributeToCheck.setValue("/mnt/mnt1"); when(session.getPerunBl().getUsersManagerBl().getAllowedResources(any(PerunSession.class), any(Facil...
void function() throws Exception { System.out.println(STR); Attribute attributeToCheck = new Attribute(); attributeToCheck.setValue(STR); when(session.getPerunBl().getUsersManagerBl().getAllowedResources(any(PerunSession.class), any(Facility.class), any(User.class))).thenReturn(new ArrayList<Resource>() { { add(resourc...
/** * Test of checkAttributeSemantics method, of class urn_perun_user_facility_attribute_def_def_homeMountPoint. * with all parameters properly set. */
Test of checkAttributeSemantics method, of class urn_perun_user_facility_attribute_def_def_homeMountPoint. with all parameters properly set
testCheckAttributeSemantics
{ "repo_name": "zlamalp/perun", "path": "perun-core/src/test/java/cz/metacentrum/perun/core/impl/modules/attributes/urn_perun_user_facility_attribute_def_def_homeMountPointTest.java", "license": "bsd-2-clause", "size": 10257 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.Resource", "cz.metacentrum.perun.core.api.User", "java.util.ArrayList", "org.mockito.ArgumentMatchers", "org.mockito.Mockito" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.Resource; import cz.metacentrum.perun.core.api.User; import java.util.ArrayList; import org.mockito.ArgumentMatchers; import org.mockito....
import cz.metacentrum.perun.core.api.*; import java.util.*; import org.mockito.*;
[ "cz.metacentrum.perun", "java.util", "org.mockito" ]
cz.metacentrum.perun; java.util; org.mockito;
73,721
private static Bitmap addBitmapToFace(Bitmap backgroundBitmap, Bitmap emojiBitmap, Face face) { // Initialize the results bitmap to be a mutable copy of the original image Bitmap resultBitmap = Bitmap.createBitmap(backgroundBitmap.getWidth(), backgroundBitmap.getHeight(), background...
static Bitmap function(Bitmap backgroundBitmap, Bitmap emojiBitmap, Face face) { Bitmap resultBitmap = Bitmap.createBitmap(backgroundBitmap.getWidth(), backgroundBitmap.getHeight(), backgroundBitmap.getConfig()); float scaleFactor = EMOJI_SCALE_FACTOR; int newEmojiWidth = (int) (face.getWidth() * scaleFactor); int newE...
/** * Combines the original picture with the emoji bitmaps * * @param backgroundBitmap The original picture * @param emojiBitmap The chosen emoji * @param face The detected face * @return The final bitmap, including the emojis over the faces */
Combines the original picture with the emoji bitmaps
addBitmapToFace
{ "repo_name": "ketanp01/MyStuff", "path": "Emojify/app/src/main/java/com/example/android/emojify/Emojifier.java", "license": "gpl-3.0", "size": 8747 }
[ "android.graphics.Bitmap", "android.graphics.Canvas", "com.google.android.gms.vision.face.Face" ]
import android.graphics.Bitmap; import android.graphics.Canvas; import com.google.android.gms.vision.face.Face;
import android.graphics.*; import com.google.android.gms.vision.face.*;
[ "android.graphics", "com.google.android" ]
android.graphics; com.google.android;
351,236
@Test public void testJobWithNonNormalizedCapabilities() throws Exception { if (!(new File(MiniMRYarnCluster.APPJAR)).exists()) { LOG.info("MRAppJar " + MiniMRYarnCluster.APPJAR + " not found. Not running test."); return; } JobConf jobConf = new JobConf(mrCluster.getConfig()...
void function() throws Exception { if (!(new File(MiniMRYarnCluster.APPJAR)).exists()) { LOG.info(STR + MiniMRYarnCluster.APPJAR + STR); return; } JobConf jobConf = new JobConf(mrCluster.getConfig()); jobConf.setInt(STR, 700); jobConf.setInt(STR, 1500); SleepJob sleepJob = new SleepJob(); sleepJob.setConf(jobConf); Job...
/** * To ensure nothing broken after we removed normalization * from the MRAM side * @throws Exception */
To ensure nothing broken after we removed normalization from the MRAM side
testJobWithNonNormalizedCapabilities
{ "repo_name": "ZhangXFeng/hadoop", "path": "src/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/v2/TestMRAMWithNonNormalizedCapabilities.java", "license": "apache-2.0", "size": 4210 }
[ "java.io.File", "org.apache.hadoop.mapred.JobConf", "org.apache.hadoop.mapreduce.Job", "org.apache.hadoop.mapreduce.JobStatus", "org.apache.hadoop.mapreduce.SleepJob", "org.apache.hadoop.mapreduce.v2.MiniMRYarnCluster", "org.junit.Assert" ]
import java.io.File; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.JobStatus; import org.apache.hadoop.mapreduce.SleepJob; import org.apache.hadoop.mapreduce.v2.MiniMRYarnCluster; import org.junit.Assert;
import java.io.*; import org.apache.hadoop.mapred.*; import org.apache.hadoop.mapreduce.*; import org.apache.hadoop.mapreduce.v2.*; import org.junit.*;
[ "java.io", "org.apache.hadoop", "org.junit" ]
java.io; org.apache.hadoop; org.junit;
515,787
public FormValidation doCheckRepoUrl(@QueryParameter(fixEmpty = true) String value, @AncestorInPath AbstractProject project) throws IOException, ServletException { if (value == null) // nothing entered yet value = "origin"; if (!value.contain...
FormValidation function(@QueryParameter(fixEmpty = true) String value, @AncestorInPath AbstractProject project) throws IOException, ServletException { if (value == null) value = STR; if (!value.contains("/")) { GitSCM scm = (GitSCM) project.getScm(); RemoteConfig remote = scm.getRepositoryByName(value); if (remote == n...
/** * Performs on-the-fly validation of the URL. */
Performs on-the-fly validation of the URL
doCheckRepoUrl
{ "repo_name": "abaditsegay/git-plugin", "path": "src/main/java/hudson/plugins/git/browser/TFS2013GitRepositoryBrowser.java", "license": "mit", "size": 5628 }
[ "hudson.model.AbstractProject", "hudson.model.Hudson", "hudson.plugins.git.GitSCM", "hudson.util.FormValidation", "java.io.IOException", "javax.servlet.ServletException", "org.eclipse.jgit.transport.RemoteConfig", "org.kohsuke.stapler.AncestorInPath", "org.kohsuke.stapler.QueryParameter" ]
import hudson.model.AbstractProject; import hudson.model.Hudson; import hudson.plugins.git.GitSCM; import hudson.util.FormValidation; import java.io.IOException; import javax.servlet.ServletException; import org.eclipse.jgit.transport.RemoteConfig; import org.kohsuke.stapler.AncestorInPath; import org.kohsuke.stapler.Q...
import hudson.model.*; import hudson.plugins.git.*; import hudson.util.*; import java.io.*; import javax.servlet.*; import org.eclipse.jgit.transport.*; import org.kohsuke.stapler.*;
[ "hudson.model", "hudson.plugins.git", "hudson.util", "java.io", "javax.servlet", "org.eclipse.jgit", "org.kohsuke.stapler" ]
hudson.model; hudson.plugins.git; hudson.util; java.io; javax.servlet; org.eclipse.jgit; org.kohsuke.stapler;
1,034,356
public void setFileSystemMgtName(ObjectName fileSystemMgtName) { this.fileSystemMgtName = fileSystemMgtName; }
void function(ObjectName fileSystemMgtName) { this.fileSystemMgtName = fileSystemMgtName; }
/** * Set the name of the FileSystemMgtBean. * <p> * This bean is used to retrieve the DICOM object. * * @param fileSystemMgtName The fileSystemMgtName to set. */
Set the name of the FileSystemMgtBean. This bean is used to retrieve the DICOM object
setFileSystemMgtName
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4jboss-all/tags/DCM4CHEE_2_10_15/dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/RIDSupport.java", "license": "apache-2.0", "size": 38400 }
[ "javax.management.ObjectName" ]
import javax.management.ObjectName;
import javax.management.*;
[ "javax.management" ]
javax.management;
2,387,363
public Builder setClock(Clock clock) { this.clock = clock; return this; }
Builder function(Clock clock) { this.clock = clock; return this; }
/** * Sets the clock used to estimate bandwidth from data transfers. Should only be set for testing * purposes. * * @param clock The clock used to estimate bandwidth from data transfers. * @return This builder. */
Sets the clock used to estimate bandwidth from data transfers. Should only be set for testing purposes
setClock
{ "repo_name": "tkpb/Telegram", "path": "TMessagesProj/src/main/java/com/google/android/exoplayer2/upstream/DefaultBandwidthMeter.java", "license": "gpl-2.0", "size": 33738 }
[ "com.google.android.exoplayer2.util.Clock" ]
import com.google.android.exoplayer2.util.Clock;
import com.google.android.exoplayer2.util.*;
[ "com.google.android" ]
com.google.android;
808,861
public List<Blob> getBlobs() { return getBlobs(0); }
List<Blob> function() { return getBlobs(0); }
/** * Return the uploaded blobs in the order the user choose to upload them * * @return */
Return the uploaded blobs in the order the user choose to upload them
getBlobs
{ "repo_name": "deadcyclo/nuxeo-features", "path": "nuxeo-automation/nuxeo-automation-server/src/main/java/org/nuxeo/ecm/automation/server/jaxrs/batch/Batch.java", "license": "lgpl-2.1", "size": 4446 }
[ "java.util.List", "org.nuxeo.ecm.core.api.Blob" ]
import java.util.List; import org.nuxeo.ecm.core.api.Blob;
import java.util.*; import org.nuxeo.ecm.core.api.*;
[ "java.util", "org.nuxeo.ecm" ]
java.util; org.nuxeo.ecm;
2,661,006
abstract<P_IN> long exactOutputSizeIfKnown(Spliterator<P_IN> spliterator);
abstract<P_IN> long exactOutputSizeIfKnown(Spliterator<P_IN> spliterator);
/** * Returns the exact output size of the portion of the output resulting from * applying the pipeline stages described by this {@code PipelineHelper} to * the the portion of the input described by the provided * {@code Spliterator}, if known. If not known or known infinite, will * return {@c...
Returns the exact output size of the portion of the output resulting from applying the pipeline stages described by this PipelineHelper to the the portion of the input described by the provided Spliterator, if known. If not known or known infinite, will return -1
exactOutputSizeIfKnown
{ "repo_name": "flyzsd/java-code-snippets", "path": "ibm.jdk8/src/java/util/stream/PipelineHelper.java", "license": "mit", "size": 8544 }
[ "java.util.Spliterator" ]
import java.util.Spliterator;
import java.util.*;
[ "java.util" ]
java.util;
5,308
BitSet getRangeSelectedColumns (final int excludeViewColumn) { final BitSet viewColumnsWithActiveRanges = new BitSet (); final int columnCount = table.getColumnModel().getColumnCount(); final List<AbstractColumnInteractor> cInters = getAxisInteractors (); for (int viewColumnIndex = 0; view...
BitSet getRangeSelectedColumns (final int excludeViewColumn) { final BitSet viewColumnsWithActiveRanges = new BitSet (); final int columnCount = table.getColumnModel().getColumnCount(); final List<AbstractColumnInteractor> cInters = getAxisInteractors (); for (int viewColumnIndex = 0; viewColumnIndex < columnCount; vie...
/** * Returns a BitSet containing the view-indexed positions of columns that currently have * active ranges selected on them. The column indexed by the excludeViewColumn variable is disregarded. * @param sortedIndexRanges * @param excludeViewColumn * @return */
Returns a BitSet containing the view-indexed positions of columns that currently have active ranges selected on them. The column indexed by the excludeViewColumn variable is disregarded
getRangeSelectedColumns
{ "repo_name": "martingraham/JSwingPlus", "path": "src/ui/ParCoordMultiplexColumnUI.java", "license": "apache-2.0", "size": 36359 }
[ "java.util.BitSet", "java.util.List" ]
import java.util.BitSet; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
576,982
@Override protected boolean validatePage() { if (super.validatePage()) { String extension = new Path(getFileName()).getFileExtension(); if (extension == null || !FILE_EXTENSIONS.contains(extension)) { String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension"...
boolean function() { if (super.validatePage()) { String extension = new Path(getFileName()).getFileExtension(); if (extension == null !FILE_EXTENSIONS.contains(extension)) { String key = FILE_EXTENSIONS.size() > 1 ? STR : STR; setErrorMessage(OCCIEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTEN...
/** * The framework calls this to see if the file is correct. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
The framework calls this to see if the file is correct.
validatePage
{ "repo_name": "occiware/OCCI-Studio", "path": "plugins/org.eclipse.cmf.occi.core.editor/src-gen/org/eclipse/cmf/occi/core/presentation/OCCIModelWizard.java", "license": "epl-1.0", "size": 17927 }
[ "org.eclipse.core.runtime.Path" ]
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.*;
[ "org.eclipse.core" ]
org.eclipse.core;
1,288,158
static void configurePartitioner(Job job, List<ImmutableBytesWritable> splitPoints) throws IOException { // create the partitions file FileSystem fs = FileSystem.get(job.getConfiguration()); Path partitionsPath = new Path("/tmp", "partitions_" + UUID.randomUUID()); fs.makeQualified(partitionsPa...
static void configurePartitioner(Job job, List<ImmutableBytesWritable> splitPoints) throws IOException { FileSystem fs = FileSystem.get(job.getConfiguration()); Path partitionsPath = new Path("/tmp", STR + UUID.randomUUID()); fs.makeQualified(partitionsPath); fs.deleteOnExit(partitionsPath); writePartitions(job.getConf...
/** * Configure <code>job</code> with a TotalOrderPartitioner, partitioning against * <code>splitPoints</code>. Cleans up the partitions file after job exists. */
Configure <code>job</code> with a TotalOrderPartitioner, partitioning against <code>splitPoints</code>. Cleans up the partitions file after job exists
configurePartitioner
{ "repo_name": "cloud-software-foundation/c5", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java", "license": "apache-2.0", "size": 21289 }
[ "java.io.IOException", "java.util.List", "java.util.UUID", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hbase.io.ImmutableBytesWritable", "org.apache.hadoop.mapreduce.Job", "org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner" ]
import java.io.IOException; import java.util.List; import java.util.UUID; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner;
import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.io.*; import org.apache.hadoop.mapreduce.*; import org.apache.hadoop.mapreduce.lib.partition.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
507,859
public static void example7() throws Exception { AGGraphMaker maker = example6(); AGModel model = new AGModel(maker.getGraph()); AGModel model_vcards = new AGModel(maker.openGraph("http://example.org#vcards")); println("\nMatch all and print subjects and graph (model)"); String graphName = model.getGraph()...
static void function() throws Exception { AGGraphMaker maker = example6(); AGModel model = new AGModel(maker.getGraph()); AGModel model_vcards = new AGModel(maker.openGraph(STR\nMatch all and print subjects and graph (model)STR STR\nMatch all and print subjects and graph (model_vcards)STR STR\nSPARQL query over the def...
/** * Importing Triples, query */
Importing Triples, query
example7
{ "repo_name": "mohanever4u/ag-java-client", "path": "target/test-ws/acjproject/src/tutorial/JenaTutorialExamples.java", "license": "epl-1.0", "size": 41783 }
[ "com.franz.agraph.jena.AGGraphMaker", "com.franz.agraph.jena.AGModel" ]
import com.franz.agraph.jena.AGGraphMaker; import com.franz.agraph.jena.AGModel;
import com.franz.agraph.jena.*;
[ "com.franz.agraph" ]
com.franz.agraph;
1,861,298
@Override public void closeNonDurableClientCqs(ClientProxyMembershipID clientProxyId) throws CqException { final boolean isDebugEnabled = logger.isDebugEnabled(); if (isDebugEnabled) { logger.debug("Closing Client CQs for the client: {}", clientProxyId); } List<ServerCQ> cqs = getAllClientCqs(...
void function(ClientProxyMembershipID clientProxyId) throws CqException { final boolean isDebugEnabled = logger.isDebugEnabled(); if (isDebugEnabled) { logger.debug(STR, clientProxyId); } List<ServerCQ> cqs = getAllClientCqs(clientProxyId); for (ServerCQ cq : cqs) { ServerCQImpl cQuery = (ServerCQImpl) cq; try { if (!c...
/** * Server side method. Closes non-durable CQs for the given client proxy id. */
Server side method. Closes non-durable CQs for the given client proxy id
closeNonDurableClientCqs
{ "repo_name": "pdxrunner/geode", "path": "geode-cq/src/main/java/org/apache/geode/cache/query/internal/cq/CqServiceImpl.java", "license": "apache-2.0", "size": 59842 }
[ "java.util.List", "org.apache.geode.cache.query.CqClosedException", "org.apache.geode.cache.query.CqException", "org.apache.geode.cache.query.QueryException", "org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID" ]
import java.util.List; import org.apache.geode.cache.query.CqClosedException; import org.apache.geode.cache.query.CqException; import org.apache.geode.cache.query.QueryException; import org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID;
import java.util.*; import org.apache.geode.cache.query.*; import org.apache.geode.internal.cache.tier.sockets.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
2,776,861
protected void afterPropertiesSet() throws Exception { RemoteFileConfiguration config = getConfiguration(); ObjectHelper.notEmpty(config.getHost(), "host"); ObjectHelper.notEmpty(config.getProtocol(), "protocol"); }
void function() throws Exception { RemoteFileConfiguration config = getConfiguration(); ObjectHelper.notEmpty(config.getHost(), "host"); ObjectHelper.notEmpty(config.getProtocol(), STR); }
/** * Validates this endpoint if its configured properly. * * @throws Exception is thrown if endpoint is invalid configured for its mandatory options */
Validates this endpoint if its configured properly
afterPropertiesSet
{ "repo_name": "engagepoint/camel", "path": "components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java", "license": "apache-2.0", "size": 7182 }
[ "org.apache.camel.util.ObjectHelper" ]
import org.apache.camel.util.ObjectHelper;
import org.apache.camel.util.*;
[ "org.apache.camel" ]
org.apache.camel;
1,659,393
public E coordinates(Coordinate...coordinates) { return this.coordinates(Arrays.asList(coordinates)); }
E function(Coordinate...coordinates) { return this.coordinates(Arrays.asList(coordinates)); }
/** * Add a array of coordinates to the collection * * @param coordinates array of {@link Coordinate}s to add * @return this */
Add a array of coordinates to the collection
coordinates
{ "repo_name": "ern/elasticsearch", "path": "server/src/main/java/org/elasticsearch/common/geo/builders/ShapeBuilder.java", "license": "apache-2.0", "size": 17717 }
[ "java.util.Arrays", "org.locationtech.jts.geom.Coordinate" ]
import java.util.Arrays; import org.locationtech.jts.geom.Coordinate;
import java.util.*; import org.locationtech.jts.geom.*;
[ "java.util", "org.locationtech.jts" ]
java.util; org.locationtech.jts;
1,076,173
public Object determineDefinition(QName defName) { Object def = determineAspect(defName); if (def == null) { def = determineProperty(defName); if (def == null) { def = determineAssociation(defName); } } ...
Object function(QName defName) { Object def = determineAspect(defName); if (def == null) { def = determineProperty(defName); if (def == null) { def = determineAssociation(defName); } } return def; }
/** * Determine the type of definition (aspect, property, association) from the * specified name * * @param defName * @return the dictionary definition */
Determine the type of definition (aspect, property, association) from the specified name
determineDefinition
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/repo/importer/view/NodeContext.java", "license": "lgpl-3.0", "size": 16325 }
[ "org.alfresco.service.namespace.QName" ]
import org.alfresco.service.namespace.QName;
import org.alfresco.service.namespace.*;
[ "org.alfresco.service" ]
org.alfresco.service;
1,648,559
protected List<String> getUserDns(String username) { if (userDnFormat == null) { return Collections.emptyList(); } List<String> userDns = new ArrayList<String>(userDnFormat.length); String[] args = new String[] { LdapEncoder.nameEncode(username) }; synchronized (userDnFormat) { for (MessageFormat f...
List<String> function(String username) { if (userDnFormat == null) { return Collections.emptyList(); } List<String> userDns = new ArrayList<String>(userDnFormat.length); String[] args = new String[] { LdapEncoder.nameEncode(username) }; synchronized (userDnFormat) { for (MessageFormat formatter : userDnFormat) { userDn...
/** * Builds list of possible DNs for the user, worked out from the * <tt>userDnPatterns</tt> property. * * @param username the user's login name * * @return the list of possible DN matches, empty if <tt>userDnPatterns</tt> wasn't * set. */
Builds list of possible DNs for the user, worked out from the userDnPatterns property
getUserDns
{ "repo_name": "ollie314/spring-security", "path": "ldap/src/main/java/org/springframework/security/ldap/authentication/AbstractLdapAuthenticator.java", "license": "apache-2.0", "size": 5116 }
[ "java.text.MessageFormat", "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.text.MessageFormat; import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.text.*; import java.util.*;
[ "java.text", "java.util" ]
java.text; java.util;
2,571,941
private long setFeedItem(FeedItem item, boolean saveFeed) { ContentValues values = new ContentValues(); values.put(KEY_TITLE, item.getTitle()); values.put(KEY_LINK, item.getLink()); if (item.getDescription() != null) { values.put(KEY_DESCRIPTION, item.getDescription()); ...
long function(FeedItem item, boolean saveFeed) { ContentValues values = new ContentValues(); values.put(KEY_TITLE, item.getTitle()); values.put(KEY_LINK, item.getLink()); if (item.getDescription() != null) { values.put(KEY_DESCRIPTION, item.getDescription()); } if (item.getContentEncoded() != null) { values.put(KEY_CON...
/** * Inserts or updates a feeditem entry * * @param item The FeedItem * @param saveFeed true if the Feed of the item should also be saved. This should be set to * false if the method is executed on a list of FeedItems of the same Feed. * @return the id of the entry ...
Inserts or updates a feeditem entry
setFeedItem
{ "repo_name": "wskplho/AntennaPod", "path": "core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java", "license": "mit", "size": 74659 }
[ "android.content.ContentValues", "de.danoeh.antennapod.core.feed.FeedItem" ]
import android.content.ContentValues; import de.danoeh.antennapod.core.feed.FeedItem;
import android.content.*; import de.danoeh.antennapod.core.feed.*;
[ "android.content", "de.danoeh.antennapod" ]
android.content; de.danoeh.antennapod;
1,451,310
public void deleteOldPlayers(int days) { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -days); String sql = "delete from player where name is null and client_id is null and (last_seen is null or last_seen < ?)"; int n = update(sql, cal.getTime()); if (n > 0) {...
void function(int days) { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -days); String sql = STR; int n = update(sql, cal.getTime()); if (n > 0) { LOG.info(STR + n + STR + cal.getTime()); } }
/** * Delete players that haven't been used for the given number of days, and which is not given a name * or is used by a REST client. * * @param days Number of days. */
Delete players that haven't been used for the given number of days, and which is not given a name or is used by a REST client
deleteOldPlayers
{ "repo_name": "MadMarty/madsonic-server-5.1", "path": "madsonic-main/src/main/java/org/madsonic/dao/PlayerDao.java", "license": "gpl-3.0", "size": 8210 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
2,378,396
void sendSymbols(@NotNull Morse.Symbol[] symbols);
void sendSymbols(@NotNull Morse.Symbol[] symbols);
/** * Sends an array of {@link Morse.Symbol Morse symbols} to this receiver, which are used to generate MIDI commands. * @param symbols an array of Morse symbols */
Sends an array of <code>Morse.Symbol Morse symbols</code> to this receiver, which are used to generate MIDI commands
sendSymbols
{ "repo_name": "paxromana96/morse-beeper", "path": "src/com/brownian/morse/receivers/MorseReceiver.java", "license": "mit", "size": 956 }
[ "com.brownian.morse.Morse", "com.sun.istack.internal.NotNull" ]
import com.brownian.morse.Morse; import com.sun.istack.internal.NotNull;
import com.brownian.morse.*; import com.sun.istack.internal.*;
[ "com.brownian.morse", "com.sun.istack" ]
com.brownian.morse; com.sun.istack;
312,882
//@Test public void testNoBody() throws RecognitionException { datalog = parser.parse(CQ_STRINGS[6]); EXPECTED_RULE_SIZE = 1; List<CQIE> rules = datalog.getRules(); assertTrue("Mismatch rule size!", rules.size() == EXPECTED_RULE_SIZE); // Rule #1 //-- The Head Function head = rules.get(0).getHe...
datalog = parser.parse(CQ_STRINGS[6]); EXPECTED_RULE_SIZE = 1; List<CQIE> rules = datalog.getRules(); assertTrue(STR, rules.size() == EXPECTED_RULE_SIZE); Function head = rules.get(0).getHead(); assertNotNull(STR, head); uri = head.getFunctionSymbol().getName(); assertEquals(STR, uri, STRMismatch term size!STRMismatch ...
/** * Testing Scenario #7 * * @throws RecognitionException */
Testing Scenario #7
testNoBody
{ "repo_name": "srapisarda/ontop", "path": "obdalib-core/src/test/java/it/unibz/inf/ontop/parser/DatalogParserTest.java", "license": "apache-2.0", "size": 34146 }
[ "it.unibz.inf.ontop.model.Function", "java.util.List" ]
import it.unibz.inf.ontop.model.Function; import java.util.List;
import it.unibz.inf.ontop.model.*; import java.util.*;
[ "it.unibz.inf", "java.util" ]
it.unibz.inf; java.util;
497,115
private void setThisBundleHomeProperty(Bundle bundle, HashMap<String, Object> properties, String overrideBundleInstallLocation) { try { File location = overrideBundleInstallLocation != null ? new File(overrideBundleInstallLocation) : BUNDLE_FILE_LOCATOR_HELPER.getBundleInstallLocatio...
void function(Bundle bundle, HashMap<String, Object> properties, String overrideBundleInstallLocation) { try { File location = overrideBundleInstallLocation != null ? new File(overrideBundleInstallLocation) : BUNDLE_FILE_LOCATOR_HELPER.getBundleInstallLocation(bundle); properties.put(STR, location.getCanonicalPath()); ...
/** * Set the property &quot;this.bundle.install&quot; to point to the location * of the bundle. Useful when <SystemProperty name="this.bundle.home"/> is * used. */
Set the property &quot;this.bundle.install&quot; to point to the location of the bundle. Useful when is used
setThisBundleHomeProperty
{ "repo_name": "jamiepg1/jetty.project", "path": "jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/internal/webapp/WebBundleDeployerHelper.java", "license": "apache-2.0", "size": 41174 }
[ "java.io.File", "java.util.HashMap", "org.osgi.framework.Bundle" ]
import java.io.File; import java.util.HashMap; import org.osgi.framework.Bundle;
import java.io.*; import java.util.*; import org.osgi.framework.*;
[ "java.io", "java.util", "org.osgi.framework" ]
java.io; java.util; org.osgi.framework;
1,255,083
public void shutdown(JobStatus jobStatus) throws Exception { synchronized (lock) { if (!shutdown) { shutdown = true; LOG.info("Stopping checkpoint coordinator for job {}.", job); periodicScheduling = false; triggerRequestQueued = false; // shut down the hooks MasterHooks.close(masterHo...
void function(JobStatus jobStatus) throws Exception { synchronized (lock) { if (!shutdown) { shutdown = true; LOG.info(STR, job); periodicScheduling = false; triggerRequestQueued = false; MasterHooks.close(masterHooks.values(), LOG); masterHooks.clear(); timer.shutdownNow(); for (PendingCheckpoint pending : pendingChec...
/** * Shuts down the checkpoint coordinator. * * <p>After this method has been called, the coordinator does not accept * and further messages and cannot trigger any further checkpoints. */
Shuts down the checkpoint coordinator. After this method has been called, the coordinator does not accept and further messages and cannot trigger any further checkpoints
shutdown
{ "repo_name": "ueshin/apache-flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java", "license": "apache-2.0", "size": 49443 }
[ "org.apache.flink.runtime.checkpoint.hooks.MasterHooks", "org.apache.flink.runtime.jobgraph.JobStatus" ]
import org.apache.flink.runtime.checkpoint.hooks.MasterHooks; import org.apache.flink.runtime.jobgraph.JobStatus;
import org.apache.flink.runtime.checkpoint.hooks.*; import org.apache.flink.runtime.jobgraph.*;
[ "org.apache.flink" ]
org.apache.flink;
2,392,997
private void applySslSettings() { try { KeyManager[] keyManagers = null; TrustManager[] trustManagers = null; HostnameVerifier hostnameVerifier = null; if (!verifyingSsl) { TrustManager trustAll = new X509TrustManager() { @O...
void function() { try { KeyManager[] keyManagers = null; TrustManager[] trustManagers = null; HostnameVerifier hostnameVerifier = null; if (!verifyingSsl) { TrustManager trustAll = new X509TrustManager() { public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {}
/** * Apply SSL related settings to httpClient according to the current values of * verifyingSsl and sslCaCert. */
Apply SSL related settings to httpClient according to the current values of verifyingSsl and sslCaCert
applySslSettings
{ "repo_name": "fbmattos/temp", "path": "java/src/main/java/io/swagger/client/ApiClient.java", "license": "apache-2.0", "size": 46499 }
[ "java.security.cert.CertificateException", "java.security.cert.X509Certificate", "javax.net.ssl.HostnameVerifier", "javax.net.ssl.KeyManager", "javax.net.ssl.TrustManager", "javax.net.ssl.X509TrustManager" ]
import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.KeyManager; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager;
import java.security.cert.*; import javax.net.ssl.*;
[ "java.security", "javax.net" ]
java.security; javax.net;
42,562
private void writeProperties(String fileName) { File file = new File(fileName); try { FileWriter fw = new FileWriter(file); fw.write("# Properties file generated by the Osm2GpsMid Wizard\r\n"); fw.write("\r\n"); fw.write("# Name of the Midlet on the phone\r\n"); fw.write("midlet.name = " + ...
void function(String fileName) { File file = new File(fileName); try { FileWriter fw = new FileWriter(file); fw.write(STR); fw.write("\r\n"); fw.write(STR); fw.write(STR + config.getMidletName() + "\r\nSTR\r\n"); if (config.getPlanetName() != null && !STRmapSource = STR\\STR\\\\STR\r\nSTR# To choose a different device ...
/** * Writes the current properties to a .properties file * TODO: Shouldn't useCellID be written too? * TODO: Add useHouseNumbers and useWordSearch * And what about the cellSource variable from Configuration.java? * @param fileName Path name of file to write */
Writes the current properties to a .properties file And what about the cellSource variable from Configuration.java
writeProperties
{ "repo_name": "sharenav/gpsmid", "path": "Osm2GpsMid/src/de/ueller/osmToGpsMid/GuiConfigWizard.java", "license": "gpl-2.0", "size": 58949 }
[ "de.ueller.osmToGpsMid.route.Route", "java.io.File", "java.io.FileWriter", "java.io.IOException" ]
import de.ueller.osmToGpsMid.route.Route; import java.io.File; import java.io.FileWriter; import java.io.IOException;
import de.ueller.*; import java.io.*;
[ "de.ueller", "java.io" ]
de.ueller; java.io;
1,037,054
@ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<ServiceResourceInner>, ServiceResourceInner> beginCreateOrUpdate( String resourceGroupName, String serviceName, ServiceResourceInner resource, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<ServiceResourceInner>, ServiceResourceInner> beginCreateOrUpdate( String resourceGroupName, String serviceName, ServiceResourceInner resource, Context context);
/** * Create a new Service or update an exiting Service. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param serviceName The name of the Service resource. * @para...
Create a new Service or update an exiting Service
beginCreateOrUpdate
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ServicesClient.java", "license": "mit", "size": 43565 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.management.polling.PollResult", "com.azure.core.util.Context", "com.azure.core.util.polling.SyncPoller", "com.azure.resourcemanager.appplatform.fluent.models.ServiceResourceInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.appplatform.fluent.models.ServiceResourceInner;
import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.appplatform.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,166,999
TableMetaData getTableMetaData(String tableName);
TableMetaData getTableMetaData(String tableName);
/** * Gets the metadata (column names, column types, etc.) of a certain table. Returns null when no table exists with the given name. */
Gets the metadata (column names, column types, etc.) of a certain table. Returns null when no table exists with the given name
getTableMetaData
{ "repo_name": "zwets/flowable-engine", "path": "modules/flowable-engine/src/main/java/org/flowable/engine/ManagementService.java", "license": "apache-2.0", "size": 14276 }
[ "org.flowable.engine.common.api.management.TableMetaData" ]
import org.flowable.engine.common.api.management.TableMetaData;
import org.flowable.engine.common.api.management.*;
[ "org.flowable.engine" ]
org.flowable.engine;
1,501,870
IEnvironmentalReverb createEnvironmentalReverb() throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException;
IEnvironmentalReverb createEnvironmentalReverb() throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException;
/** * Create EnvironmentalReverb object * * @return EnvironmentalReverb object */
Create EnvironmentalReverb object
createEnvironmentalReverb
{ "repo_name": "h6ah4i/android-openslmediaplayer", "path": "library/src/main/java/com/h6ah4i/android/media/IMediaPlayerFactory.java", "license": "apache-2.0", "size": 6139 }
[ "com.h6ah4i.android.media.audiofx.IEnvironmentalReverb" ]
import com.h6ah4i.android.media.audiofx.IEnvironmentalReverb;
import com.h6ah4i.android.media.audiofx.*;
[ "com.h6ah4i.android" ]
com.h6ah4i.android;
1,017,583
public UniversalFile getData() { maybeLoadDelayedData(); if (data == null) { return null; } return data; }
UniversalFile function() { maybeLoadDelayedData(); if (data == null) { return null; } return data; }
/** * Returns the contents of this file. */
Returns the contents of this file
getData
{ "repo_name": "skyHALud/codenameone", "path": "Ports/iOSPort/xmlvm/src/xmlvm/org/xmlvm/proc/out/OutputFile.java", "license": "gpl-2.0", "size": 11510 }
[ "org.xmlvm.util.universalfile.UniversalFile" ]
import org.xmlvm.util.universalfile.UniversalFile;
import org.xmlvm.util.universalfile.*;
[ "org.xmlvm.util" ]
org.xmlvm.util;
1,448,341
@Override public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { this.checkFlowerChange(par1World, par2, par3, par4); }
void function(World par1World, int par2, int par3, int par4, Random par5Random) { this.checkFlowerChange(par1World, par2, par3, par4); }
/** * Ticks the block if it's been scheduled */
Ticks the block if it's been scheduled
updateTick
{ "repo_name": "DirectCodeGraveyard/Minetweak", "path": "src/main/java/net/minecraft/block/BlockFlower.java", "license": "lgpl-3.0", "size": 3840 }
[ "java.util.Random", "net.minecraft.world.World" ]
import java.util.Random; import net.minecraft.world.World;
import java.util.*; import net.minecraft.world.*;
[ "java.util", "net.minecraft.world" ]
java.util; net.minecraft.world;
2,411,959
void forgetAllOpeners() { TabModel currentModel = mTabModelSelector.getCurrentModel(); int count = currentModel.getCount(); for (int i = 0; i < count; i++) { TabAttributes.from(currentModel.getTabAt(i)) .set(TabAttributeKeys.GROUPED_WITH_PARENT, false); ...
void forgetAllOpeners() { TabModel currentModel = mTabModelSelector.getCurrentModel(); int count = currentModel.getCount(); for (int i = 0; i < count; i++) { TabAttributes.from(currentModel.getTabAt(i)) .set(TabAttributeKeys.GROUPED_WITH_PARENT, false); } }
/** * Clear the opener attribute on all tabs in the model. */
Clear the opener attribute on all tabs in the model
forgetAllOpeners
{ "repo_name": "ric2b/Vivaldi-browser", "path": "chromium/chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelOrderControllerImpl.java", "license": "bsd-3-clause", "size": 6477 }
[ "org.chromium.chrome.browser.tab.TabAttributeKeys", "org.chromium.chrome.browser.tab.TabAttributes" ]
import org.chromium.chrome.browser.tab.TabAttributeKeys; import org.chromium.chrome.browser.tab.TabAttributes;
import org.chromium.chrome.browser.tab.*;
[ "org.chromium.chrome" ]
org.chromium.chrome;
2,113,872
public void setConnectivity(SimpleMatrix connectivity){ this.connectivity = connectivity; this.HAS_CONNECTIVITY = true; }
void function(SimpleMatrix connectivity){ this.connectivity = connectivity; this.HAS_CONNECTIVITY = true; }
/** * Sets the connectivity information for the meshes stored in the SimpleMatrix structure. * @param connectivity The indices of the vertices making up the connectivity information. */
Sets the connectivity information for the meshes stored in the SimpleMatrix structure
setConnectivity
{ "repo_name": "bergerma/CONRAD", "path": "src/edu/stanford/rsl/conrad/geometry/shapes/mesh/DataMatrix.java", "license": "gpl-3.0", "size": 10998 }
[ "edu.stanford.rsl.conrad.numerics.SimpleMatrix" ]
import edu.stanford.rsl.conrad.numerics.SimpleMatrix;
import edu.stanford.rsl.conrad.numerics.*;
[ "edu.stanford.rsl" ]
edu.stanford.rsl;
673,134
void generateMain( PrintWriter pw, Service intf, MessageDirection mc, boolean hasBaseClass ) throws Exception { VelocityContext context = new VelocityContext(); context.put( "now", new Date() ); context.put( "version", VERSION ); context.put( "helper", this ); context.put( "intf", intf ); context.put(...
void generateMain( PrintWriter pw, Service intf, MessageDirection mc, boolean hasBaseClass ) throws Exception { VelocityContext context = new VelocityContext(); context.put( "now", new Date() ); context.put( STR, VERSION ); context.put( STR, this ); context.put( "intf", intf ); context.put( "mc", mc ); context.put( STR...
/** * Generate the example main program. * * @param pw * @param intf * @param mc * @param hasBaseClass * @throws Exception */
Generate the example main program
generateMain
{ "repo_name": "OBIGOGIT/etch", "path": "binding-python/compiler/src/main/java/org/apache/etch/bindings/python/compiler/Compiler.java", "license": "apache-2.0", "size": 30608 }
[ "java.io.PrintWriter", "java.util.Date", "org.apache.etch.compiler.ast.MessageDirection", "org.apache.etch.compiler.ast.MsgDirHelper", "org.apache.etch.compiler.ast.Service", "org.apache.velocity.VelocityContext" ]
import java.io.PrintWriter; import java.util.Date; import org.apache.etch.compiler.ast.MessageDirection; import org.apache.etch.compiler.ast.MsgDirHelper; import org.apache.etch.compiler.ast.Service; import org.apache.velocity.VelocityContext;
import java.io.*; import java.util.*; import org.apache.etch.compiler.ast.*; import org.apache.velocity.*;
[ "java.io", "java.util", "org.apache.etch", "org.apache.velocity" ]
java.io; java.util; org.apache.etch; org.apache.velocity;
1,678,764
protected void addCloneIDPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CloneMediator_cloneID_feature"), getString("_UI_PropertyDescriptor_...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.CLONE_MEDIATOR__CLONE_ID, true, false, false, ItemPropertyDescriptor.GENERIC_...
/** * This adds a property descriptor for the Clone ID feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Clone ID feature.
addCloneIDPropertyDescriptor
{ "repo_name": "chanakaudaya/developer-studio", "path": "esb/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/CloneMediatorItemProvider.java", "license": "apache-2.0", "size": 9524 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage;
import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.gmf.esb.*;
[ "org.eclipse.emf", "org.wso2.developerstudio" ]
org.eclipse.emf; org.wso2.developerstudio;
1,192,570
public MultiMapConfig setAsyncBackupCount(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
MultiMapConfig function(int asyncBackupCount) { this.asyncBackupCount = checkAsyncBackupCount(backupCount, asyncBackupCount); return this; }
/** * Sets the number of asynchronous backups. 0 means no backups * * @param asyncBackupCount the number of asynchronous synchronous backups to set * @return the updated MultiMapConfig * @throws IllegalArgumentException if asyncBackupCount smaller than 0, * ...
Sets the number of asynchronous backups. 0 means no backups
setAsyncBackupCount
{ "repo_name": "dbrimley/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/config/MultiMapConfig.java", "license": "apache-2.0", "size": 13337 }
[ "com.hazelcast.util.Preconditions" ]
import com.hazelcast.util.Preconditions;
import com.hazelcast.util.*;
[ "com.hazelcast.util" ]
com.hazelcast.util;
1,572,077
public void connectionClosed(ConnectionEvent event) { PooledConnection pce = (PooledConnection) event.getSource(); assertSame(pc, pce); count1[0]++; pce.removeConnectionEventListener(this); }
void function(ConnectionEvent event) { PooledConnection pce = (PooledConnection) event.getSource(); assertSame(pc, pce); count1[0]++; pce.removeConnectionEventListener(this); }
/** * Mimic a pool handler that removes the listener during * a logical close. */
Mimic a pool handler that removes the listener during a logical close
connectionClosed
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java", "license": "apache-2.0", "size": 186489 }
[ "javax.sql.ConnectionEvent", "javax.sql.PooledConnection" ]
import javax.sql.ConnectionEvent; import javax.sql.PooledConnection;
import javax.sql.*;
[ "javax.sql" ]
javax.sql;
661,644
public void resetPositionToBB() { AxisAlignedBB axisalignedbb = this.getEntityBoundingBox(); this.posX = (axisalignedbb.minX + axisalignedbb.maxX) / 2.0D; this.posY = axisalignedbb.minY; this.posZ = (axisalignedbb.minZ + axisalignedbb.maxZ) / 2.0D; }
void function() { AxisAlignedBB axisalignedbb = this.getEntityBoundingBox(); this.posX = (axisalignedbb.minX + axisalignedbb.maxX) / 2.0D; this.posY = axisalignedbb.minY; this.posZ = (axisalignedbb.minZ + axisalignedbb.maxZ) / 2.0D; }
/** * Resets the entity's position to the center (planar) and bottom (vertical) points of its bounding box. */
Resets the entity's position to the center (planar) and bottom (vertical) points of its bounding box
resetPositionToBB
{ "repo_name": "dafuq360/essenceplusnew", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/Entity.java", "license": "lgpl-2.1", "size": 118537 }
[ "net.minecraft.util.math.AxisAlignedBB" ]
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.*;
[ "net.minecraft.util" ]
net.minecraft.util;
1,145,993
private static boolean checkForTaskQueue(HttpServletRequest request, HttpServletResponse response) throws IOException { if (request.getHeader("X-AppEngine-QueueName") == null) { log.log(Level.SEVERE, "Received unexpected non-task queue request. Possible CSRF attack."); response.sendError( ...
static boolean function(HttpServletRequest request, HttpServletResponse response) throws IOException { if (request.getHeader(STR) == null) { log.log(Level.SEVERE, STR); response.sendError( HttpServletResponse.SC_FORBIDDEN, STR); return false; } return true; }
/** * Checks to ensure that the current request was sent via the task queue. * * If the request is not in the task queue, returns false, and sets the * response status code to 403. This protects against CSRF attacks against * task queue-only handlers. * * @return true if the request is a task queue...
Checks to ensure that the current request was sent via the task queue. If the request is not in the task queue, returns false, and sets the response status code to 403. This protects against CSRF attacks against task queue-only handlers
checkForTaskQueue
{ "repo_name": "rolepoint/appengine-mapreduce", "path": "java/src/main/java/com/google/appengine/tools/mapreduce/impl/handlers/MapReduceServletImpl.java", "license": "apache-2.0", "size": 9346 }
[ "java.io.IOException", "java.util.logging.Level", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import java.util.logging.Level; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import java.util.logging.*; import javax.servlet.http.*;
[ "java.io", "java.util", "javax.servlet" ]
java.io; java.util; javax.servlet;
1,321,338
@CustomMethod void setGreetingMessageListener(@NonNull GreetingMessageListener listener);
void setGreetingMessageListener(@NonNull GreetingMessageListener listener);
/** * Sets listener for greeting message * @param listener {@link GreetingMessageListener} object */
Sets listener for greeting message
setGreetingMessageListener
{ "repo_name": "webim/webim-android-sdk-demo", "path": "sdk/src/main/java/ru/webim/android/sdk/MessageStream.java", "license": "mit", "size": 61066 }
[ "androidx.annotation.NonNull" ]
import androidx.annotation.NonNull;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
37,184
@Override public final @Nonnull JPopupMenuFixture showPopupMenu() { return new JPopupMenuFixture(robot(), driver().invokePopupMenu(target())); }
final @Nonnull JPopupMenuFixture function() { return new JPopupMenuFixture(robot(), driver().invokePopupMenu(target())); }
/** * Shows a pop-up menu using this fixture's {@code JScrollPane} as the invoker of the pop-up menu. * * @return a fixture that manages the displayed pop-up menu. * @throws IllegalStateException if this fixture's {@code JScrollPane} is disabled. * @throws IllegalStateException if this fixture's {@code J...
Shows a pop-up menu using this fixture's JScrollPane as the invoker of the pop-up menu
showPopupMenu
{ "repo_name": "google/fest", "path": "third_party/fest-swing/src/main/java/org/fest/swing/fixture/AbstractSwingContainerFixture.java", "license": "apache-2.0", "size": 6956 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,584,671
// The precondition ensures generic type safety @SuppressWarnings("unchecked") public <T> NestedSet<T> getSet(Class<T> type) { // Empty sets don't need have to have a type since they don't have items if (set.isEmpty()) { return (NestedSet<T>) set; } Preconditions.checkArgument(contentType.ca...
@SuppressWarnings(STR) <T> NestedSet<T> function(Class<T> type) { if (set.isEmpty()) { return (NestedSet<T>) set; } Preconditions.checkArgument(contentType.canBeCastTo(type), String.format(STR, EvalUtils.getDataTypeNameFromClass(type), contentType)); return (NestedSet<T>) set; }
/** * Returns the NestedSet embedded in this SkylarkNestedSet if it is of the parameter type. */
Returns the NestedSet embedded in this SkylarkNestedSet if it is of the parameter type
getSet
{ "repo_name": "sicipio/bazel", "path": "src/main/java/com/google/devtools/build/lib/syntax/SkylarkNestedSet.java", "license": "apache-2.0", "size": 11102 }
[ "com.google.common.base.Preconditions", "com.google.devtools.build.lib.collect.nestedset.NestedSet" ]
import com.google.common.base.Preconditions; import com.google.devtools.build.lib.collect.nestedset.NestedSet;
import com.google.common.base.*; import com.google.devtools.build.lib.collect.nestedset.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
2,044,604
EClass getGooglecalPUT();
EClass getGooglecalPUT();
/** * Returns the meta object for class '{@link org.etl.sparrow.GooglecalPUT <em>Googlecal PUT</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Googlecal PUT</em>'. * @see org.etl.sparrow.GooglecalPUT * @generated */
Returns the meta object for class '<code>org.etl.sparrow.GooglecalPUT Googlecal PUT</code>'.
getGooglecalPUT
{ "repo_name": "jpvelsamy/sparrow", "path": "org.etl.dsl.etl.Sparrow/src-gen/org/etl/sparrow/SparrowPackage.java", "license": "apache-2.0", "size": 104623 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,143,364
URL resource = Resources.getResource(FirefoxProfile.class, defaultPrefs); try { return new InputStreamReader(resource.openStream()); } catch (IOException e) { throw new WebDriverException(e); } }
URL resource = Resources.getResource(FirefoxProfile.class, defaultPrefs); try { return new InputStreamReader(resource.openStream()); } catch (IOException e) { throw new WebDriverException(e); } }
/** * <strong>Internal method. This is liable to change at a moment's notice.</strong> * * @return InputStreamReader of the default firefox profile preferences */
Internal method. This is liable to change at a moment's notice
onlyOverrideThisIfYouKnowWhatYouAreDoing
{ "repo_name": "gurayinan/selenium", "path": "java/client/src/org/openqa/selenium/firefox/FirefoxProfile.java", "license": "apache-2.0", "size": 14503 }
[ "com.google.common.io.Resources", "java.io.IOException", "java.io.InputStreamReader", "org.openqa.selenium.WebDriverException" ]
import com.google.common.io.Resources; import java.io.IOException; import java.io.InputStreamReader; import org.openqa.selenium.WebDriverException;
import com.google.common.io.*; import java.io.*; import org.openqa.selenium.*;
[ "com.google.common", "java.io", "org.openqa.selenium" ]
com.google.common; java.io; org.openqa.selenium;
2,587,966
public Level getLogLevel() { if (logLevel == null) { setLogLevel(pullParam("-loglevel")); } return logLevel; }
Level function() { if (logLevel == null) { setLogLevel(pullParam(STR)); } return logLevel; }
/** * Returns the level of logging to perform. * See {@link #setLogLevel(String)}. * * @return */
Returns the level of logging to perform. See <code>#setLogLevel(String)</code>
getLogLevel
{ "repo_name": "pellcorp/schemaspy", "path": "src/main/java/net/sourceforge/schemaspy/Config.java", "license": "lgpl-2.1", "size": 59615 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
2,263,872
public ArrayList getItems( ) { return this.items; }
ArrayList function( ) { return this.items; }
/** * get items in this container. * * @return items in this container. */
get items in this container
getItems
{ "repo_name": "sguan-actuate/birt", "path": "engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/ir/FreeFormItemDesign.java", "license": "epl-1.0", "size": 1730 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,041,219
public static String response(Object id, String label, Object value) { Map<String, Object> resp = new HashMap<String, Object>(); resp.put("version", ServiceDescription.JSON_RPC_VERSION); if (id != null) { resp.put("id", id); } resp.put(label, value); //String respStr = new JSONWriter().write(resp); ...
static String function(Object id, String label, Object value) { Map<String, Object> resp = new HashMap<String, Object>(); resp.put(STR, ServiceDescription.JSON_RPC_VERSION); if (id != null) { resp.put("id", id); } resp.put(label, value); String respStr = STRJSON deserialze errorSTRResult-Server: "+ respStr); return res...
/** * Private API - used by errorResponse and resultResponse. */
Private API - used by errorResponse and resultResponse
response
{ "repo_name": "B2M-Software/project-drahtlos-smg20", "path": "remoteframework.lib/src/main/java/org/fortiss/smg/remoteframework/lib/jsonrpc/JsonRpcServer.java", "license": "apache-2.0", "size": 11034 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,102,046
@InterfaceAudience.Private private void addPending(RevisionInternal revisionInternal) { long seq = revisionInternal.getSequence(); pendingSequences.add(seq); if (seq > maxPendingSequence) { maxPendingSequence = seq; } }
@InterfaceAudience.Private void function(RevisionInternal revisionInternal) { long seq = revisionInternal.getSequence(); pendingSequences.add(seq); if (seq > maxPendingSequence) { maxPendingSequence = seq; } }
/** * Adds a local revision to the "pending" set that are awaiting upload: * - (void) addPending: (CBL_Revision*)rev in CBLRestPusher.m */
Adds a local revision to the "pending" set that are awaiting upload: - (void) addPending: (CBL_Revision*)rev in CBLRestPusher.m
addPending
{ "repo_name": "mariosotil/couchbase-lite-java-core", "path": "src/main/java/com/couchbase/lite/replicator/PusherInternal.java", "license": "apache-2.0", "size": 34120 }
[ "com.couchbase.lite.internal.InterfaceAudience", "com.couchbase.lite.internal.RevisionInternal" ]
import com.couchbase.lite.internal.InterfaceAudience; import com.couchbase.lite.internal.RevisionInternal;
import com.couchbase.lite.internal.*;
[ "com.couchbase.lite" ]
com.couchbase.lite;
174,470
InputStream open(String storageId) throws IOException;
InputStream open(String storageId) throws IOException;
/** * Opens the file of the given id. * * @param storageId * The unique storage id for this version of the file. * @return and input stream from which the contents can be read. * @throws IOException * If the given {@code storageId} does not exist or cannot be opened. */
Opens the file of the given id
open
{ "repo_name": "Raphcal/sigmah", "path": "src/main/java/org/sigmah/server/file/FileStorageProvider.java", "license": "gpl-3.0", "size": 2895 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
151,267
public Map<Integer, Double> getNodeAvailability(Set<Integer> nodeIds, Date start, Date end) throws SQLException { if(nodeIds==null || nodeIds.size()==0){ throw new IllegalArgumentException("Cannot take nodeIds null or with length 0."); } if (start == null || end == null) { throw ...
Map<Integer, Double> function(Set<Integer> nodeIds, Date start, Date end) throws SQLException { if(nodeIds==null nodeIds.size()==0){ throw new IllegalArgumentException(STR); } if (start == null end == null) { throw new IllegalArgumentException(STR); } if (end.before(start)) { throw new IllegalArgumentException(STR); } ...
/** * Return the availability percentage for all managed services on the given * nodes from the given start time until the given end time. If there are no * managed services on these nodes, then a value of -1 is returned. * * @param nodeIds a {@link java.util.Set} object. * @param start a ...
Return the availability percentage for all managed services on the given nodes from the given start time until the given end time. If there are no managed services on these nodes, then a value of -1 is returned
getNodeAvailability
{ "repo_name": "tharindum/opennms_dashboard", "path": "opennms-web-api/src/main/java/org/opennms/web/category/CategoryModel.java", "license": "gpl-2.0", "size": 19453 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Timestamp", "java.util.Collections", "java.util.Date", "java.util.Iterator", "java.util.Map", "java.util.Set", "java.util.TreeMap", "org.opennms.core.resource.Vault", "org.opennms.co...
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Timestamp; import java.util.Collections; import java.util.Date; import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.TreeMap; import org.opennms.core...
import java.sql.*; import java.util.*; import org.opennms.core.resource.*; import org.opennms.core.utils.*;
[ "java.sql", "java.util", "org.opennms.core" ]
java.sql; java.util; org.opennms.core;
2,907,302
//----------------------------------------------------------------------- public static List localeLookupList(Locale locale) { return localeLookupList(locale, locale); }
static List function(Locale locale) { return localeLookupList(locale, locale); }
/** * <p>Obtains the list of locales to search through when performing * a locale search.</p> * * <pre> * localeLookupList(Locale("fr","CA","xxx")) * = [Locale("fr","CA","xxx"), Locale("fr","CA"), Locale("fr")] * </pre> * * @param locale the locale to start from * @r...
Obtains the list of locales to search through when performing a locale search. <code> localeLookupList(Locale("fr","CA","xxx")) = [Locale("fr","CA","xxx"), Locale("fr","CA"), Locale("fr")] </code>
localeLookupList
{ "repo_name": "SpoonLabs/gumtree-spoon-ast-diff", "path": "src/test/resources/examples/d4j/Lang_57/LocaleUtils/Lang_57_LocaleUtils_s.java", "license": "apache-2.0", "size": 11552 }
[ "java.util.List", "java.util.Locale" ]
import java.util.List; import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,567,432
@Test public void testToRestconfErrorJson() { IllegalArgumentException ie = new IllegalArgumentException("This is a test"); RestconfException e = new RestconfException("Error in system", ie, RestconfError.ErrorTag.DATA_EXISTS, Response.Status.BAD_REQUEST, Optional...
void function() { IllegalArgumentException ie = new IllegalArgumentException(STR); RestconfException e = new RestconfException(STR, ie, RestconfError.ErrorTag.DATA_EXISTS, Response.Status.BAD_REQUEST, Optional.of(STR)); e.addToErrors(error1); e.addToErrors(error2); e.addToErrors(error3); assertEquals("{\"ietf-restconf:...
/** * Test a Restconf Exception with many RestconfErrors converted to Json. */
Test a Restconf Exception with many RestconfErrors converted to Json
testToRestconfErrorJson
{ "repo_name": "oplinkoms/onos", "path": "apps/restconf/api/src/test/java/org/onosproject/restconf/api/RestconfExceptionTest.java", "license": "apache-2.0", "size": 4598 }
[ "java.util.Optional", "javax.ws.rs.core.Response", "org.junit.Assert" ]
import java.util.Optional; import javax.ws.rs.core.Response; import org.junit.Assert;
import java.util.*; import javax.ws.rs.core.*; import org.junit.*;
[ "java.util", "javax.ws", "org.junit" ]
java.util; javax.ws; org.junit;
269,712
public void finishCurrentUnitLoadsEnd(LOSPickRequest pick) throws InventoryException;
void function(LOSPickRequest pick) throws InventoryException;
/** * UserExit * This method is called at the end of finishing the UnitLoads * * @param LOSPickRequest * @throws InventoryException */
UserExit This method is called at the end of finishing the UnitLoads
finishCurrentUnitLoadsEnd
{ "repo_name": "tedvals/mywms", "path": "server.app/los.inventory-ejb/src/de/linogistix/los/inventory/customization/ManagePickService.java", "license": "gpl-3.0", "size": 1717 }
[ "de.linogistix.los.inventory.exception.InventoryException", "de.linogistix.los.inventory.pick.model.LOSPickRequest" ]
import de.linogistix.los.inventory.exception.InventoryException; import de.linogistix.los.inventory.pick.model.LOSPickRequest;
import de.linogistix.los.inventory.exception.*; import de.linogistix.los.inventory.pick.model.*;
[ "de.linogistix.los" ]
de.linogistix.los;
2,742,026
private ExplanationHandler installExplanationHandler(PathFragment explanationPath, String allOptions) { if (explanationPath == null) { return null; } ExplanationHandler handler; try { handler = new ExplanationHandler( getWork...
ExplanationHandler function(PathFragment explanationPath, String allOptions) { if (explanationPath == null) { return null; } ExplanationHandler handler; try { handler = new ExplanationHandler( getWorkspace().getRelative(explanationPath).getOutputStream(), allOptions); } catch (IOException e) { getReporter().handle(Even...
/** * If a path is supplied, creates and installs an ExplanationHandler. Returns * an instance on success. Reports an error and returns null otherwise. */
If a path is supplied, creates and installs an ExplanationHandler. Returns an instance on success. Reports an error and returns null otherwise
installExplanationHandler
{ "repo_name": "dropbox/bazel", "path": "src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java", "license": "apache-2.0", "size": 28263 }
[ "com.google.devtools.build.lib.events.Event", "com.google.devtools.build.lib.vfs.PathFragment", "java.io.IOException" ]
import com.google.devtools.build.lib.events.Event; import com.google.devtools.build.lib.vfs.PathFragment; import java.io.IOException;
import com.google.devtools.build.lib.events.*; import com.google.devtools.build.lib.vfs.*; import java.io.*;
[ "com.google.devtools", "java.io" ]
com.google.devtools; java.io;
2,407,940
public void saveVolume() { Log.d("@M_" + TAG, "" + mStreamType + " Save Last Volume " + mLastProgress); mProfileManager.setStreamVolume(mKey, mStreamType, mLastProgress); if (mStreamType == AudioProfileManager.STREAM_RING) { mProfileManager.setStreamVolume(mKey, ...
void function() { Log.d("@M_" + TAG, STR Save Last Volume STR@M_" + TAG, STR Active, save system Volume STR@M_STRsaveVolume: STR not Active, Revert system Volume " + mSystemVolume); } } }
/** * When click the "Ok" button, set the volume to system. */
When click the "Ok" button, set the volume to system
saveVolume
{ "repo_name": "miswenwen/My_bird_work", "path": "Bird_work/我的项目/Settings/src/com/mediatek/audioprofile/SeekBarVolumizer.java", "license": "apache-2.0", "size": 18503 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
782,079
try { node.getNode("format").setValue(TypeToken.of(TextTemplate.class), template); ConfigurationNode args = node.getNode("args"); for (Arg a : clicks.keySet()) { args.getNode(a.getName(), "click").setValue(clicks.get(a)); } for (Arg a : hovers.keySet()) { args.getNode(a.getName(), "hover").setV...
try { node.getNode(STR).setValue(TypeToken.of(TextTemplate.class), template); ConfigurationNode args = node.getNode("args"); for (Arg a : clicks.keySet()) { args.getNode(a.getName(), "click").setValue(clicks.get(a)); } for (Arg a : hovers.keySet()) { args.getNode(a.getName(), "hover").setValue(hovers.get(a)); } type.if...
/** * Build the format. */
Build the format
build
{ "repo_name": "Wundero/Ray", "path": "src/main/java/me/Wundero/Ray/framework/format/FormatBuilder.java", "license": "mit", "size": 4266 }
[ "com.google.common.reflect.TypeToken", "ninja.leaping.configurate.ConfigurationNode", "ninja.leaping.configurate.objectmapping.ObjectMappingException", "org.spongepowered.api.text.TextTemplate" ]
import com.google.common.reflect.TypeToken; import ninja.leaping.configurate.ConfigurationNode; import ninja.leaping.configurate.objectmapping.ObjectMappingException; import org.spongepowered.api.text.TextTemplate;
import com.google.common.reflect.*; import ninja.leaping.configurate.*; import ninja.leaping.configurate.objectmapping.*; import org.spongepowered.api.text.*;
[ "com.google.common", "ninja.leaping.configurate", "org.spongepowered.api" ]
com.google.common; ninja.leaping.configurate; org.spongepowered.api;
579,404
// ------------------------------------------------------------------------ public void configureMob(LivingEntity mob) { EntityMeta.api().set(mob, BeastMaster.PLUGIN, "mob-type", getId()); for (String propertyId : getAllPropertyIds()) { getDerivedProperty(propertyId).configureMob(m...
void function(LivingEntity mob) { EntityMeta.api().set(mob, BeastMaster.PLUGIN, STR, getId()); for (String propertyId : getAllPropertyIds()) { getDerivedProperty(propertyId).configureMob(mob, BeastMaster.PLUGIN.getLogger()); } }
/** * Configure a mob according to this mob type. * * @param mob the mob. */
Configure a mob according to this mob type
configureMob
{ "repo_name": "NerdNu/BeastMaster", "path": "src/nu/nerd/beastmaster/mobs/MobType.java", "license": "mit", "size": 32662 }
[ "nu.nerd.beastmaster.BeastMaster", "nu.nerd.entitymeta.EntityMeta", "org.bukkit.entity.LivingEntity" ]
import nu.nerd.beastmaster.BeastMaster; import nu.nerd.entitymeta.EntityMeta; import org.bukkit.entity.LivingEntity;
import nu.nerd.beastmaster.*; import nu.nerd.entitymeta.*; import org.bukkit.entity.*;
[ "nu.nerd.beastmaster", "nu.nerd.entitymeta", "org.bukkit.entity" ]
nu.nerd.beastmaster; nu.nerd.entitymeta; org.bukkit.entity;
1,582,593
public final void addInterceptor(final HttpRequestInterceptor interceptor) { addRequestInterceptor(interceptor); }
final void function(final HttpRequestInterceptor interceptor) { addRequestInterceptor(interceptor); }
/** * Same as {@link #addRequestInterceptor(HttpRequestInterceptor) addRequestInterceptor}. * * @param interceptor the interceptor to add */
Same as <code>#addRequestInterceptor(HttpRequestInterceptor) addRequestInterceptor</code>
addInterceptor
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "external/apache-http/src/org/apache/http/protocol/BasicHttpProcessor.java", "license": "gpl-3.0", "size": 11654 }
[ "org.apache.http.HttpRequestInterceptor" ]
import org.apache.http.HttpRequestInterceptor;
import org.apache.http.*;
[ "org.apache.http" ]
org.apache.http;
1,041,221
List<GovernmentOperationPeriodOutcome> getReport() throws IOException;
List<GovernmentOperationPeriodOutcome> getReport() throws IOException;
/** * Gets the report. * * @return the report * @throws IOException Signals that an I/O exception has occurred. */
Gets the report
getReport
{ "repo_name": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvGovernmentOperationsExcelReader.java", "license": "apache-2.0", "size": 1134 }
[ "com.hack23.cia.service.external.esv.api.GovernmentOperationPeriodOutcome", "java.io.IOException", "java.util.List" ]
import com.hack23.cia.service.external.esv.api.GovernmentOperationPeriodOutcome; import java.io.IOException; import java.util.List;
import com.hack23.cia.service.external.esv.api.*; import java.io.*; import java.util.*;
[ "com.hack23.cia", "java.io", "java.util" ]
com.hack23.cia; java.io; java.util;
1,326,332
public static GeneratorConfigAdapter removeFromEmfObject(final Notifier emfObject) { final List<Adapter> adapters = emfObject.eAdapters(); final Iterator<Adapter> iterator = adapters.iterator(); while (iterator.hasNext()) { final Adapter adapter = iterator.next(); if (adapter instanceof GeneratorC...
static GeneratorConfigAdapter function(final Notifier emfObject) { final List<Adapter> adapters = emfObject.eAdapters(); final Iterator<Adapter> iterator = adapters.iterator(); while (iterator.hasNext()) { final Adapter adapter = iterator.next(); if (adapter instanceof GeneratorConfigAdapter.GeneratorConfigAdapterAdapt...
/** Remove the adapter from the given EMF object. * * @param emfObject the EMF object. * @return the removed adapter. */
Remove the adapter from the given EMF object
removeFromEmfObject
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/GeneratorConfigProvider2.java", "license": "apache-2.0", "size": 5906 }
[ "java.util.Iterator", "java.util.List", "org.eclipse.emf.common.notify.Adapter", "org.eclipse.emf.common.notify.Notifier" ]
import java.util.Iterator; import java.util.List; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier;
import java.util.*; import org.eclipse.emf.common.notify.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
2,412,507
public static void doWithFields(Class<?> targetClass, FieldCallback fc, FieldFilter ff) throws IllegalArgumentException { // Keep backing up the inheritance hierarchy. do { // Copy each field declared on this class unless it's static or file. Field[] fields = targetClass.getDeclaredFields(); for (in...
static void function(Class<?> targetClass, FieldCallback fc, FieldFilter ff) throws IllegalArgumentException { do { Field[] fields = targetClass.getDeclaredFields(); for (int i = 0; i < fields.length; i++) { if (ff != null && !ff.matches(fields[i])) { continue; } try { fc.doWith(fields[i]); } catch (IllegalAccessExcept...
/** * Invoke the given callback on all fields in the target class, * going up the class hierarchy to get all declared fields. * @param targetClass the target class to analyze * @param fc the callback to invoke for each field * @param ff the filter that determines the fields to apply the callback to */
Invoke the given callback on all fields in the target class, going up the class hierarchy to get all declared fields
doWithFields
{ "repo_name": "qiuhd2015/Hpgsc-RPC", "path": "hpgsc-rpc/src/main/java/org/hdl/hggsc/rpc/utils/ReflectionUtils.java", "license": "mit", "size": 22350 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
107,002
public Tlv getOptionalParameter(short tag) { if (this.optionalParameters == null) { return null; } // try to find this parameter's index int i = this.findOptionalParameter(tag); if (i < 0) { return null; } return this.optionalParameters...
Tlv function(short tag) { if (this.optionalParameters == null) { return null; } int i = this.findOptionalParameter(tag); if (i < 0) { return null; } return this.optionalParameters.get(i); } //
/** * Gets a TLV by tag. * @param tag The TLV tag to search for * @return The first matching TLV by tag */
Gets a TLV by tag
getOptionalParameter
{ "repo_name": "aspan/cloudhopper-smpp", "path": "src/main/java/com/cloudhopper/smpp/pdu/Pdu.java", "license": "apache-2.0", "size": 11094 }
[ "com.cloudhopper.smpp.tlv.Tlv" ]
import com.cloudhopper.smpp.tlv.Tlv;
import com.cloudhopper.smpp.tlv.*;
[ "com.cloudhopper.smpp" ]
com.cloudhopper.smpp;
2,028,930
protected NodeFigure createNodeFigure() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new StackLayout()); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); figure_ = figure; return figure; }
NodeFigure function() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new StackLayout()); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); figure_ = figure; return figure; }
/** * Creates figure for this edit part. * * Body of this method does not depend on settings in generation model * so you may safely remove <i>generated</i> tag and modify it. * * @generated NOT */
Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may safely remove generated tag and modify it
createNodeFigure
{ "repo_name": "nwnpallewela/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/APIResourceInSequenceInputConnectorEditPart.java", "license": "apache-2.0", "size": 15486 }
[ "org.eclipse.draw2d.IFigure", "org.eclipse.draw2d.StackLayout", "org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure" ]
import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.StackLayout; import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.draw2d.*; import org.eclipse.gmf.runtime.gef.ui.figures.*;
[ "org.eclipse.draw2d", "org.eclipse.gmf" ]
org.eclipse.draw2d; org.eclipse.gmf;
2,470,062
public static void registerItem(Item item, Identifier name) { Registry.register(Registry.ITEM, name, item); } /** * <p>Register {@link Item} in vanilla registries</p> * <p> * {@link Item} should have registered identifier in {@link RebornRegistry}
static void function(Item item, Identifier name) { Registry.register(Registry.ITEM, name, item); } /** * <p>Register {@link Item} in vanilla registries</p> * <p> * {@link Item} should have registered identifier in {@link RebornRegistry}
/** * Register {@link Item} in vanilla registries * * @param item {@link Item} Item to register * @param name {@link Identifier} Registry name for item */
Register <code>Item</code> in vanilla registries
registerItem
{ "repo_name": "TechReborn/TechReborn", "path": "RebornCore/src/main/java/reborncore/RebornRegistry.java", "license": "mit", "size": 4713 }
[ "net.minecraft.item.Item", "net.minecraft.util.Identifier", "net.minecraft.util.registry.Registry" ]
import net.minecraft.item.Item; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry;
import net.minecraft.item.*; import net.minecraft.util.*; import net.minecraft.util.registry.*;
[ "net.minecraft.item", "net.minecraft.util" ]
net.minecraft.item; net.minecraft.util;
2,482,341
File getPagingLocation(); // Large Messages Properties ------------------------------------------------------------
File getPagingLocation();
/** * The paging location related to artemis.instance */
The paging location related to artemis.instance
getPagingLocation
{ "repo_name": "rgodfrey/activemq-artemis", "path": "artemis-server/src/main/java/org/apache/activemq/artemis/core/config/Configuration.java", "license": "apache-2.0", "size": 41047 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
772,046
public ServiceResponse<Void> postOptional(ParameterGroupingPostOptionalParameters parameterGroupingPostOptionalParameters) throws ErrorException, IOException { String customHeader = parameterGroupingPostOptionalParameters.getCustomHeader(); int query = parameterGroupingPostOptionalParameters.getQuer...
ServiceResponse<Void> function(ParameterGroupingPostOptionalParameters parameterGroupingPostOptionalParameters) throws ErrorException, IOException { String customHeader = parameterGroupingPostOptionalParameters.getCustomHeader(); int query = parameterGroupingPostOptionalParameters.getQuery(); Call<ResponseBody> call = ...
/** * Post a bunch of optional parameters grouped. * * @param parameterGroupingPostOptionalParameters Additional parameters for the operation * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the {@l...
Post a bunch of optional parameters grouped
postOptional
{ "repo_name": "matt-gibbs/AutoRest", "path": "AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/ParameterGroupingOperationsImpl.java", "license": "mit", "size": 14170 }
[ "com.microsoft.rest.ServiceResponse", "com.squareup.okhttp.ResponseBody", "java.io.IOException" ]
import com.microsoft.rest.ServiceResponse; import com.squareup.okhttp.ResponseBody; import java.io.IOException;
import com.microsoft.rest.*; import com.squareup.okhttp.*; import java.io.*;
[ "com.microsoft.rest", "com.squareup.okhttp", "java.io" ]
com.microsoft.rest; com.squareup.okhttp; java.io;
2,545,401
void put(Collection<PathMetadata> metas) throws IOException;
void put(Collection<PathMetadata> metas) throws IOException;
/** * Saves metadata for any number of paths. * * Semantics are otherwise the same as single-path puts. * * @param metas the metadata to save * @throws IOException if there is an error */
Saves metadata for any number of paths. Semantics are otherwise the same as single-path puts
put
{ "repo_name": "soumabrata-chakraborty/hadoop", "path": "hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/MetadataStore.java", "license": "apache-2.0", "size": 9245 }
[ "java.io.IOException", "java.util.Collection" ]
import java.io.IOException; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,654,920
@RequestMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SLO_PROFILE_POST, method = RequestMethod.POST) protected void handleSaml2ProfileSLOPostRequest(final HttpServletResponse response, final HttpServletRequest request) throws Exception { handleSloPost...
@RequestMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SLO_PROFILE_POST, method = RequestMethod.POST) void function(final HttpServletResponse response, final HttpServletRequest request) throws Exception { handleSloPostProfileRequest(response, request, new HTTPPostDecoder()); }
/** * Handle SLO POST profile request. * * @param response the response * @param request the request * @throws Exception the exception */
Handle SLO POST profile request
handleSaml2ProfileSLOPostRequest
{ "repo_name": "yisiqi/cas", "path": "cas-server-support-saml-idp/src/main/java/org/apereo/cas/support/saml/web/idp/profile/SLOPostProfileHandlerController.java", "license": "apache-2.0", "size": 3107 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apereo.cas.support.saml.SamlIdPConstants", "org.opensaml.saml.saml2.binding.decoding.impl.HTTPPostDecoder", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestMeth...
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apereo.cas.support.saml.SamlIdPConstants; import org.opensaml.saml.saml2.binding.decoding.impl.HTTPPostDecoder; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annot...
import javax.servlet.http.*; import org.apereo.cas.support.saml.*; import org.opensaml.saml.saml2.binding.decoding.impl.*; import org.springframework.web.bind.annotation.*;
[ "javax.servlet", "org.apereo.cas", "org.opensaml.saml", "org.springframework.web" ]
javax.servlet; org.apereo.cas; org.opensaml.saml; org.springframework.web;
765,109
@DoesServiceRequest public void create() throws StorageException { this.create(null , null ); }
void function() throws StorageException { this.create(null , null ); }
/** * Creates the table in the storage service with default request options. * <p> * This method invokes the <a href="http://msdn.microsoft.com/en-us/library/azure/dd135729.aspx">Create Table</a> * REST API to create the specified table, using the Table service endpoint and storage account credentia...
Creates the table in the storage service with default request options. This method invokes the Create Table REST API to create the specified table, using the Table service endpoint and storage account credentials of this instance
create
{ "repo_name": "risezhang/azure-storage-cli", "path": "src/main/java/com/microsoft/azure/storage/table/CloudTable.java", "license": "mit", "size": 60761 }
[ "com.microsoft.azure.storage.StorageException" ]
import com.microsoft.azure.storage.StorageException;
import com.microsoft.azure.storage.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
2,034,683
public int doStartTag() throws JspException { Tag parentTag = getParent(); if (!(parentTag instanceof AttributeSupport)) { throw new TlvLeakageException("Invalid use of tag outside " + "legitimate parent tag: " + parentTag.getClass().getName()); } AttributeSupport attributeSupport = (A...
int function() throws JspException { Tag parentTag = getParent(); if (!(parentTag instanceof AttributeSupport)) { throw new TlvLeakageException(STR + STR + parentTag.getClass().getName()); } AttributeSupport attributeSupport = (AttributeSupport) parentTag; attributeSupport.addAttribute(this.name, this.value); return SK...
/** * Invokes the {@link AttributeSupport#addAttribute(String, String)} of * the enclosing tag. * * @see javax.servlet.jsp.tagext.Tag#doStartTag() * @return <code>SKIP_BODY</code> * @throws JspException to communicate error */
Invokes the <code>AttributeSupport#addAttribute(String, String)</code> of the enclosing tag
doStartTag
{ "repo_name": "UCSFMemoryAndAging/lava", "path": "uitags/uitags-main/src/main/java/net/sf/uitags/tag/AttributeTag.java", "license": "bsd-2-clause", "size": 2720 }
[ "javax.servlet.jsp.JspException", "javax.servlet.jsp.tagext.Tag", "net.sf.uitags.tagutil.AttributeSupport", "net.sf.uitags.tagutil.validation.TlvLeakageException" ]
import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.Tag; import net.sf.uitags.tagutil.AttributeSupport; import net.sf.uitags.tagutil.validation.TlvLeakageException;
import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; import net.sf.uitags.tagutil.*; import net.sf.uitags.tagutil.validation.*;
[ "javax.servlet", "net.sf.uitags" ]
javax.servlet; net.sf.uitags;
1,092,167
private void writeEOFRecord() throws IOException { for (int i = 0; i < recordBuf.length; ++i) { recordBuf[i] = 0; } buffer.writeRecord(recordBuf); }
void function() throws IOException { for (int i = 0; i < recordBuf.length; ++i) { recordBuf[i] = 0; } buffer.writeRecord(recordBuf); }
/** * Write an EOF (end of archive) record to the tar archive. * An EOF record consists of a record of all zeros. */
Write an EOF (end of archive) record to the tar archive. An EOF record consists of a record of all zeros
writeEOFRecord
{ "repo_name": "puppetlabs/commons-compress", "path": "src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java", "license": "apache-2.0", "size": 21852 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,115,478