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
Optional<String> getRequestApiClientUserAgent(); /** * Get the number of attachments. * * @return The number of attachments as an {@link Optional}
Optional<String> getRequestApiClientUserAgent(); /** * Get the number of attachments. * * @return The number of attachments as an {@link Optional}
/** * Get the user agent. * * @return {@link Optional} of the user agent */
Get the user agent
getRequestApiClientUserAgent
{ "repo_name": "Netflix/genie", "path": "genie-web/src/main/java/com/netflix/genie/web/data/services/impl/jpa/queries/projections/v4/FinishedJobProjection.java", "license": "apache-2.0", "size": 5296 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
1,577,542
public synchronized List<Integer> getPartitionIds(String storeName) { return this.storeToPartitionIds.get(storeName); }
synchronized List<Integer> function(String storeName) { return this.storeToPartitionIds.get(storeName); }
/** * Returns the list of partitions ids corresponding to a store. * * @param storeName name of the store * @return list of partitions ids for the store. */
Returns the list of partitions ids corresponding to a store
getPartitionIds
{ "repo_name": "bitti/voldemort", "path": "src/java/voldemort/client/rebalance/RebalanceTaskInfo.java", "license": "apache-2.0", "size": 10016 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,171,493
void channelInputClosed(ChannelHandlerContext ctx, List<Object> out) throws Exception { if (cumulation != null) { callDecode(ctx, cumulation, out); decodeLast(ctx, cumulation, out); } else { decodeLast(ctx, Unpooled.EMPTY_BUFFER, out); } }
void channelInputClosed(ChannelHandlerContext ctx, List<Object> out) throws Exception { if (cumulation != null) { callDecode(ctx, cumulation, out); decodeLast(ctx, cumulation, out); } else { decodeLast(ctx, Unpooled.EMPTY_BUFFER, out); } }
/** * Called when the input of the channel was closed which may be because it changed to inactive or because of * {@link ChannelInputShutdownEvent}. */
Called when the input of the channel was closed which may be because it changed to inactive or because of <code>ChannelInputShutdownEvent</code>
channelInputClosed
{ "repo_name": "Apache9/netty", "path": "codec/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java", "license": "apache-2.0", "size": 21441 }
[ "io.netty.buffer.Unpooled", "io.netty.channel.ChannelHandlerContext", "java.util.List" ]
import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import java.util.List;
import io.netty.buffer.*; import io.netty.channel.*; import java.util.*;
[ "io.netty.buffer", "io.netty.channel", "java.util" ]
io.netty.buffer; io.netty.channel; java.util;
2,346,649
EReference getEvolutionaryStrategyBuilder_Mutations();
EReference getEvolutionaryStrategyBuilder_Mutations();
/** * Returns the meta object for the reference list '{@link org.eclipse.viatra.dse.dsl.model.EvolutionaryStrategyBuilder#getMutations <em>Mutations</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference list '<em>Mutations</em>'. * @see org.eclipse.viatra.dse.ds...
Returns the meta object for the reference list '<code>org.eclipse.viatra.dse.dsl.model.EvolutionaryStrategyBuilder#getMutations Mutations</code>'.
getEvolutionaryStrategyBuilder_Mutations
{ "repo_name": "viatra/viatra-dse-dsl", "path": "org.eclipse.viatra.dse.dsl.model/src/org/eclipse/viatra/dse/dsl/model/DseexecutionmodelPackage.java", "license": "epl-1.0", "size": 90122 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
156,927
public Widget setHidden(boolean hidden) { this.hidden = hidden; if (content != null && content instanceof Form) { // Recurse to change visibility to nested Forms ((Form) content).setHidden(hidden); } else if (content != null && content instanceof Property) { ...
Widget function(boolean hidden) { this.hidden = hidden; if (content != null && content instanceof Form) { ((Form) content).setHidden(hidden); } else if (content != null && content instanceof Property) { Property prop = (Property) content; if (hidden) { prop.addFlag(Property.Flags.HIDDEN); } else { prop.removeFlag(Prope...
/** * Set or reset this as hidden and mark the underlying {@link Property} or {@link Form} as hidden or not. */
Set or reset this as hidden and mark the underlying <code>Property</code> or <code>Form</code> as hidden or not
setHidden
{ "repo_name": "pbailly/daikon", "path": "daikon/src/main/java/org/talend/daikon/properties/presentation/Widget.java", "license": "apache-2.0", "size": 14461 }
[ "org.talend.daikon.properties.property.Property" ]
import org.talend.daikon.properties.property.Property;
import org.talend.daikon.properties.property.*;
[ "org.talend.daikon" ]
org.talend.daikon;
1,470,671
protected final boolean hasPermission(String userId, ProtocolOnlineReviewBase protocolOnlineReview, String permissionName) { return kraAuthorizationService.hasPermission(userId, protocolOnlineReview, permissionName); }
final boolean function(String userId, ProtocolOnlineReviewBase protocolOnlineReview, String permissionName) { return kraAuthorizationService.hasPermission(userId, protocolOnlineReview, permissionName); }
/** * Does the given user have the permission for this protocol? * @param userId the unique username of the user * @param protocolOnlineReview the protocol * @param permissionName the name of the permission * @return true if the person has the permission; otherwise false */
Does the given user have the permission for this protocol
hasPermission
{ "repo_name": "blackcathacker/kc.preclean", "path": "coeus-code/src/main/java/org/kuali/kra/iacuc/onlinereview/authorization/IacucProtocolOnlineReviewAuthorizer.java", "license": "apache-2.0", "size": 2444 }
[ "org.kuali.kra.protocol.onlinereview.ProtocolOnlineReviewBase" ]
import org.kuali.kra.protocol.onlinereview.ProtocolOnlineReviewBase;
import org.kuali.kra.protocol.onlinereview.*;
[ "org.kuali.kra" ]
org.kuali.kra;
1,490,646
public void sendLineForValidation(String line) throws CommandLineException { consoleOut.reset(); ctx.handle(line); }
void function(String line) throws CommandLineException { consoleOut.reset(); ctx.handle(line); }
/** * Sends command line to CLI. * * @param line specifies the command line. * @throws org.jboss.as.cli.CommandLineException */
Sends command line to CLI
sendLineForValidation
{ "repo_name": "yersan/wildfly-core", "path": "testsuite/shared/src/main/java/org/jboss/as/test/integration/management/util/CLIWrapper.java", "license": "lgpl-2.1", "size": 11404 }
[ "org.jboss.as.cli.CommandLineException" ]
import org.jboss.as.cli.CommandLineException;
import org.jboss.as.cli.*;
[ "org.jboss.as" ]
org.jboss.as;
357,016
Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
/** * Start a sign updater. Will updated the signs 2 times every second. */
Start a sign updater. Will updated the signs 2 times every second
startSignUpdater
{ "repo_name": "SugarCaney/CrystalQuest", "path": "src/nl/sugcube/crystalquest/SignHandler.java", "license": "gpl-3.0", "size": 3777 }
[ "org.bukkit.Bukkit" ]
import org.bukkit.Bukkit;
import org.bukkit.*;
[ "org.bukkit" ]
org.bukkit;
2,116,493
//////////////////////////////////////////////////////////////////////////// private static Map<RGB, Color> m_colorMap = new HashMap<RGB, Color>(); public static Color getColor(int systemColorID) { Display display = Display.getCurrent(); return display.getSystemColor(systemColorID); }
static Map<RGB, Color> m_colorMap = new HashMap<RGB, Color>(); public static Color function(int systemColorID) { Display display = Display.getCurrent(); return display.getSystemColor(systemColorID); }
/** * Returns the system {@link Color} matching the specific ID. * * @param systemColorID * the ID value for the color * @return the system {@link Color} matching the specific ID */
Returns the system <code>Color</code> matching the specific ID
getColor
{ "repo_name": "7xMatthx2/E4Training", "path": "com.sii.rental.ui/src/org/eclipse/wb/swt/SWTResourceManager.java", "license": "epl-1.0", "size": 14556 }
[ "java.util.HashMap", "java.util.Map", "org.eclipse.swt.graphics.Color", "org.eclipse.swt.widgets.Display" ]
import java.util.HashMap; import java.util.Map; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.widgets.Display;
import java.util.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*;
[ "java.util", "org.eclipse.swt" ]
java.util; org.eclipse.swt;
2,692,236
public static Visibility effectiveVisibilityOfElement(Element element) { checkNotNull(element); Visibility effectiveVisibility = PUBLIC; Element currentElement = element; while (currentElement != null) { effectiveVisibility = Ordering.natural().min(eff...
static Visibility function(Element element) { checkNotNull(element); Visibility effectiveVisibility = PUBLIC; Element currentElement = element; while (currentElement != null) { effectiveVisibility = Ordering.natural().min(effectiveVisibility, ofElement(currentElement)); currentElement = currentElement.getEnclosingEleme...
/** * Returns effective visibility of the given element meaning that it takes into account the * visibility of its enclosing elements. */
Returns effective visibility of the given element meaning that it takes into account the visibility of its enclosing elements
effectiveVisibilityOfElement
{ "repo_name": "ssdd1886/PooledObject", "path": "pooled-object/src/main/java/com/saharw/objectpool/common/Visibility.java", "license": "apache-2.0", "size": 2815 }
[ "com.google.common.base.Preconditions", "com.google.common.collect.Ordering", "javax.lang.model.element.Element" ]
import com.google.common.base.Preconditions; import com.google.common.collect.Ordering; import javax.lang.model.element.Element;
import com.google.common.base.*; import com.google.common.collect.*; import javax.lang.model.element.*;
[ "com.google.common", "javax.lang" ]
com.google.common; javax.lang;
2,711,184
public Projectile shoot(Location begin, Bullet bulletType, ProjectileSource shooter, Vector velocity, boolean overrideVelocity) { World world = begin.getWorld(); begin = begin.clone(); begin.setDirection(velocity); Projectile newBullet = world.spawn(begin, bulletType.getProjectileType() ); newBullet.s...
Projectile function(Location begin, Bullet bulletType, ProjectileSource shooter, Vector velocity, boolean overrideVelocity) { World world = begin.getWorld(); begin = begin.clone(); begin.setDirection(velocity); Projectile newBullet = world.spawn(begin, bulletType.getProjectileType() ); newBullet.setCustomName(this.bull...
/** * A basic shoot method, it _can_ be overridden but take care. * Handles passing the bullet to its BulletType for configuration, sets shooter, velocity, etc. * * @param begin The location to shoot from * @param bulletType the Bullet type of this bullet * @param shooter the entity shooting * @param vel...
A basic shoot method, it _can_ be overridden but take care. Handles passing the bullet to its BulletType for configuration, sets shooter, velocity, etc
shoot
{ "repo_name": "ProgrammerDan/AddGun", "path": "src/main/java/com/programmerdan/minecraft/addgun/guns/StandardGun.java", "license": "bsd-3-clause", "size": 63913 }
[ "com.programmerdan.minecraft.addgun.ammo.Bullet", "org.bukkit.Location", "org.bukkit.World", "org.bukkit.entity.Projectile", "org.bukkit.projectiles.ProjectileSource", "org.bukkit.util.Vector" ]
import com.programmerdan.minecraft.addgun.ammo.Bullet; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.entity.Projectile; import org.bukkit.projectiles.ProjectileSource; import org.bukkit.util.Vector;
import com.programmerdan.minecraft.addgun.ammo.*; import org.bukkit.*; import org.bukkit.entity.*; import org.bukkit.projectiles.*; import org.bukkit.util.*;
[ "com.programmerdan.minecraft", "org.bukkit", "org.bukkit.entity", "org.bukkit.projectiles", "org.bukkit.util" ]
com.programmerdan.minecraft; org.bukkit; org.bukkit.entity; org.bukkit.projectiles; org.bukkit.util;
2,064,899
public ExperimentRemoteInterface create() throws RemoteException, CreateException;
ExperimentRemoteInterface function() throws RemoteException, CreateException;
/** * This method creates the EJB Object. * @return The newly created EJB Object. */
This method creates the EJB Object
create
{ "repo_name": "NCIP/cab2b", "path": "software/cab2b/src/java/common/edu/wustl/cab2b/common/experiment/ExperimentHome.java", "license": "bsd-3-clause", "size": 594 }
[ "java.rmi.RemoteException", "javax.ejb.CreateException" ]
import java.rmi.RemoteException; import javax.ejb.CreateException;
import java.rmi.*; import javax.ejb.*;
[ "java.rmi", "javax.ejb" ]
java.rmi; javax.ejb;
164,531
public void setLoggersLevel(Map<String, String> changedLoggers) { LOG.debug("change logger request"); StramToNodeChangeLoggersRequest request = new StramToNodeChangeLoggersRequest(); request.setTargetChanges(changedLoggers); for (StreamingContainerAgent stramChildAgent : containers.values()) { ...
void function(Map<String, String> changedLoggers) { LOG.debug(STR); StramToNodeChangeLoggersRequest request = new StramToNodeChangeLoggersRequest(); request.setTargetChanges(changedLoggers); for (StreamingContainerAgent stramChildAgent : containers.values()) { stramChildAgent.addOperatorRequest(request); } }
/** * Send requests to change logger levels to all containers * * @param changedLoggers loggers that were changed. */
Send requests to change logger levels to all containers
setLoggersLevel
{ "repo_name": "mattqzhang/apex-core", "path": "engine/src/main/java/com/datatorrent/stram/StreamingContainerManager.java", "license": "apache-2.0", "size": 136954 }
[ "com.datatorrent.stram.api.StramToNodeChangeLoggersRequest", "java.util.Map" ]
import com.datatorrent.stram.api.StramToNodeChangeLoggersRequest; import java.util.Map;
import com.datatorrent.stram.api.*; import java.util.*;
[ "com.datatorrent.stram", "java.util" ]
com.datatorrent.stram; java.util;
487,635
public void loadSettings() { String path = null; try { String folder = AndroidLocation.getFolder(); File f = new File(folder, SETTINGS_FILENAME); path = f.getPath(); Properties props = mFileOp.loadProperties(f); mSettings.mProperties.clea...
void function() { String path = null; try { String folder = AndroidLocation.getFolder(); File f = new File(folder, SETTINGS_FILENAME); path = f.getPath(); Properties props = mFileOp.loadProperties(f); mSettings.mProperties.clear(); mSettings.mProperties.putAll(props); setShowUpdateOnly(mSettings.getShowUpdateOnly()); s...
/** * Load settings from the settings file. */
Load settings from the settings file
loadSettings
{ "repo_name": "consulo/consulo-android", "path": "tools-base/sdklib/src/main/java/com/android/sdklib/internal/repository/updater/SettingsController.java", "license": "apache-2.0", "size": 14141 }
[ "com.android.prefs.AndroidLocation", "java.io.File", "java.util.Properties" ]
import com.android.prefs.AndroidLocation; import java.io.File; import java.util.Properties;
import com.android.prefs.*; import java.io.*; import java.util.*;
[ "com.android.prefs", "java.io", "java.util" ]
com.android.prefs; java.io; java.util;
1,051,972
public static <E> Generator<E> from(E... array) { return array == null ? null : EachElement.from(Arrays.asList(array).iterator()); }
static <E> Generator<E> function(E... array) { return array == null ? null : EachElement.from(Arrays.asList(array).iterator()); }
/** * Get a Generator for each element of an Object[]. * @param <E> the type of elements held in the input array. * @param array to iterate * @return Generator */
Get a Generator for each element of an Object[]
from
{ "repo_name": "kinow/functor", "path": "core/src/main/java/org/apache/commons/functor/generator/util/EachElement.java", "license": "apache-2.0", "size": 2894 }
[ "java.util.Arrays", "org.apache.commons.functor.generator.Generator" ]
import java.util.Arrays; import org.apache.commons.functor.generator.Generator;
import java.util.*; import org.apache.commons.functor.generator.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
547,668
public void registerWorldChunkManager() { this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.hell, 0.0F); this.isSurfaceWorld(); this.hasNoSky = false; this.dimensionId = 2; }
void function() { this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.hell, 0.0F); this.isSurfaceWorld(); this.hasNoSky = false; this.dimensionId = 2; }
/** * creates a new world chunk manager for WorldProvider */
creates a new world chunk manager for WorldProvider
registerWorldChunkManager
{ "repo_name": "zeldanerd/Pikmmin_Mo-Stuff", "path": "main/java/com/zeldanerd123/pikminsmostuff/biome/featured/dimension/PmsProvider.java", "license": "artistic-2.0", "size": 2885 }
[ "net.minecraft.world.biome.BiomeGenBase", "net.minecraft.world.biome.WorldChunkManagerHell" ]
import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.biome.*;
[ "net.minecraft.world" ]
net.minecraft.world;
447,139
private void setViewVisibility(int id, boolean visible) { int flag; if (visible) { flag = View.VISIBLE; } else { flag = View.GONE; } this.findViewById(id).setVisibility(flag); }
void function(int id, boolean visible) { int flag; if (visible) { flag = View.VISIBLE; } else { flag = View.GONE; } this.findViewById(id).setVisibility(flag); }
/** * Set the visibility of the passed view. */
Set the visibility of the passed view
setViewVisibility
{ "repo_name": "Imkal/Book-Catalogue", "path": "src/com/eleybourn/bookcatalogue/goodreads/GoodreadsSearchCriteria.java", "license": "gpl-3.0", "size": 5164 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,303,297
public CloudJob getJob(String jobId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobGetOptions getJobOptions = new JobGetOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); ...
CloudJob function(String jobId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobGetOptions getJobOptions = new JobGetOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.appendDetailLevelToPerC...
/** * Gets the specified {@link CloudJob}. * * @param jobId The ID of the job to get. * @param detailLevel A {@link DetailLevel} used for controlling which properties are retrieved from the service. * @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are appl...
Gets the specified <code>CloudJob</code>
getJob
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/batch/microsoft-azure-batch/src/main/java/com/microsoft/azure/batch/JobOperations.java", "license": "mit", "size": 42742 }
[ "com.microsoft.azure.batch.protocol.models.BatchErrorException", "com.microsoft.azure.batch.protocol.models.CloudJob", "com.microsoft.azure.batch.protocol.models.JobGetOptions", "java.io.IOException" ]
import com.microsoft.azure.batch.protocol.models.BatchErrorException; import com.microsoft.azure.batch.protocol.models.CloudJob; import com.microsoft.azure.batch.protocol.models.JobGetOptions; import java.io.IOException;
import com.microsoft.azure.batch.protocol.models.*; import java.io.*;
[ "com.microsoft.azure", "java.io" ]
com.microsoft.azure; java.io;
436,545
protected HazelcastInstance getRandomInstance() { return instances[RANDOM.nextInt(instances.length)]; }
HazelcastInstance function() { return instances[RANDOM.nextInt(instances.length)]; }
/** * Returns a random hazelcast instance */
Returns a random hazelcast instance
getRandomInstance
{ "repo_name": "mdogan/hazelcast", "path": "hazelcast/src/test/java/com/hazelcast/journal/AbstractEventJournalBasicTest.java", "license": "apache-2.0", "size": 33786 }
[ "com.hazelcast.core.HazelcastInstance" ]
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.*;
[ "com.hazelcast.core" ]
com.hazelcast.core;
2,336,456
public void registerIcons(IIconRegister iconRegister) { Set<LocomotiveModelRenderer> set = new HashSet<LocomotiveModelRenderer>(renderers.values()); for (LocomotiveModelRenderer renderer : set) { renderer.registerItemIcons(iconRegister); } }
void function(IIconRegister iconRegister) { Set<LocomotiveModelRenderer> set = new HashSet<LocomotiveModelRenderer>(renderers.values()); for (LocomotiveModelRenderer renderer : set) { renderer.registerItemIcons(iconRegister); } }
/** * Railcraft calls this method, you don't need to worry about it. * * @param iconRegister */
Railcraft calls this method, you don't need to worry about it
registerIcons
{ "repo_name": "Dasug/rail-scanner", "path": "src/main/java/mods/railcraft/api/carts/locomotive/LocomotiveRenderType.java", "license": "mit", "size": 3218 }
[ "java.util.HashSet", "java.util.Set", "net.minecraft.client.renderer.texture.IIconRegister" ]
import java.util.HashSet; import java.util.Set; import net.minecraft.client.renderer.texture.IIconRegister;
import java.util.*; import net.minecraft.client.renderer.texture.*;
[ "java.util", "net.minecraft.client" ]
java.util; net.minecraft.client;
855,651
public synchronized void registerControlAdapterAsMBean() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "registerControlAdapterAsMBean" ); if( !messageHandlerControllable.isTemporary()) { xmitQueue.registerControlAdapterAsMBean(); } ...
synchronized void function() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, STR ); if( !messageHandlerControllable.isTemporary()) { xmitQueue.registerControlAdapterAsMBean(); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit( tc, STR ); }
/** * Registers this control adapter with the mbean interface. * <p> * Will not re-register if already registered. */
Registers this control adapter with the mbean interface. Will not re-register if already registered
registerControlAdapterAsMBean
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/XmitPointControl.java", "license": "epl-1.0", "size": 9154 }
[ "com.ibm.websphere.ras.TraceComponent", "com.ibm.ws.sib.utils.ras.SibTr" ]
import com.ibm.websphere.ras.TraceComponent; import com.ibm.ws.sib.utils.ras.SibTr;
import com.ibm.websphere.ras.*; import com.ibm.ws.sib.utils.ras.*;
[ "com.ibm.websphere", "com.ibm.ws" ]
com.ibm.websphere; com.ibm.ws;
2,730,204
static Map<Integer, Integer> analyzeFeatureFrequency(libsvm.svm_model model){ String errMsg = checkValidModel(model); if (errMsg != null) throw new IllegalArgumentException(errMsg); Map<Integer, Integer> svfreq = new HashMap<Integer, Integer>(); for(int l = 0; l < model....
static Map<Integer, Integer> analyzeFeatureFrequency(libsvm.svm_model model){ String errMsg = checkValidModel(model); if (errMsg != null) throw new IllegalArgumentException(errMsg); Map<Integer, Integer> svfreq = new HashMap<Integer, Integer>(); for(int l = 0; l < model.SV.length ; l++ ){ for(int i = 0 ; i < model.SV[l...
/** * Analyzes the frequency of SV features. * @param model the libsvm's model. throw IllegalArgumentException if {@link #checkValidModel(libsvm.svm_model)} is not null. * @return the map that converts the feature ID to it's frequency. */
Analyzes the frequency of SV features
analyzeFeatureFrequency
{ "repo_name": "dyamah/rink", "path": "src/main/java/jp/gr/java_conf/dyama/rink/ml/svm/LibSVMAnalyzer.java", "license": "bsd-3-clause", "size": 19046 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,517,330
private void updateYUVfromRGB() { float r = mRGB[0] / 255.0f; float g = mRGB[1] / 255.0f; float b = mRGB[2] / 255.0f; ColorMatrix cm = new ColorMatrix(); cm.setRGB2YUV(); final float[] a = cm.getArray(); mYUV[0] = a[0] * r + a[1] * g + a[2] * b; mYUV[0] = pinToUnit(mYUV[0]); mYUV[1] = ...
void function() { float r = mRGB[0] / 255.0f; float g = mRGB[1] / 255.0f; float b = mRGB[2] / 255.0f; ColorMatrix cm = new ColorMatrix(); cm.setRGB2YUV(); final float[] a = cm.getArray(); mYUV[0] = a[0] * r + a[1] * g + a[2] * b; mYUV[0] = pinToUnit(mYUV[0]); mYUV[1] = a[5] * r + a[6] * g + a[7] * b; mYUV[1] = pin(mYUV...
/** * Keep all colorspace representations in sync. */
Keep all colorspace representations in sync
updateYUVfromRGB
{ "repo_name": "getconsole/serialbot", "path": "src/nz/co/cloudstore/serialbot/util/UberColorPickerDialog.java", "license": "apache-2.0", "size": 32290 }
[ "android.graphics.ColorMatrix" ]
import android.graphics.ColorMatrix;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
273,328
int utf16Size = value.getUtf16Size(); // The +1 is for the '\0' termination byte. return Leb128Utils.unsignedLeb128Size(utf16Size) + value.getUtf8Size() + 1; }
int utf16Size = value.getUtf16Size(); return Leb128Utils.unsignedLeb128Size(utf16Size) + value.getUtf8Size() + 1; }
/** * Gets the write size for a given value. * * @param value {@code non-null;} the string value * @return {@code >= 2}; the write size, in bytes */
Gets the write size for a given value
writeSize
{ "repo_name": "tybor/MoSync", "path": "tools/android/dx/src/com/android/dx/dex/file/StringDataItem.java", "license": "gpl-2.0", "size": 2824 }
[ "com.android.dx.util.Leb128Utils" ]
import com.android.dx.util.Leb128Utils;
import com.android.dx.util.*;
[ "com.android.dx" ]
com.android.dx;
1,838,110
private static boolean _anyHooks(){ return _encodeHooks || _decodeHooks; } private static boolean _encodeHooks = false; private static boolean _decodeHooks = false; static ClassMap<List<Transformer>> _encodingHooks = new ClassMap<List<Transformer>>(); static ClassMap<List<Transformer>...
static boolean function(){ return _encodeHooks _decodeHooks; } private static boolean _encodeHooks = false; private static boolean _decodeHooks = false; static ClassMap<List<Transformer>> _encodingHooks = new ClassMap<List<Transformer>>(); static ClassMap<List<Transformer>> _decodingHooks = new ClassMap<List<Transforme...
/** * Returns true if any encoding or decoding hooks are loaded. */
Returns true if any encoding or decoding hooks are loaded
_anyHooks
{ "repo_name": "ezbake/ezmongo", "path": "ezmongo-java-driver/src/main/org/bson/BSON.java", "license": "apache-2.0", "size": 10985 }
[ "java.nio.charset.Charset", "java.util.List", "org.bson.util.ClassMap" ]
import java.nio.charset.Charset; import java.util.List; import org.bson.util.ClassMap;
import java.nio.charset.*; import java.util.*; import org.bson.util.*;
[ "java.nio", "java.util", "org.bson.util" ]
java.nio; java.util; org.bson.util;
1,666,020
public static String getResidentIdPEntityId() { String localEntityId = IdentityUtil.getProperty("SSOService.EntityId"); if (localEntityId == null || localEntityId.trim().isEmpty()) { localEntityId = "localhost"; } return localEntityId; }
static String function() { String localEntityId = IdentityUtil.getProperty(STR); if (localEntityId == null localEntityId.trim().isEmpty()) { localEntityId = STR; } return localEntityId; }
/** + * Get the resident entity id configured in identity.xml. + * + */
Get the resident entity id configured in identity.xml
getResidentIdPEntityId
{ "repo_name": "cdwijayarathna/carbon-identity", "path": "components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/util/IdPManagementUtil.java", "license": "apache-2.0", "size": 2319 }
[ "org.wso2.carbon.identity.core.util.IdentityUtil" ]
import org.wso2.carbon.identity.core.util.IdentityUtil;
import org.wso2.carbon.identity.core.util.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,138,370
public void cleanup() { handler.removePropertyChangeListener(propertyChangeListener); debugMode.removeItemListener(itemListener); messageLevel.removeActionListener(messageLevelActionListener); spinnerUpdateManager.cleanup(); for(CheckBoxModelUpdater cbmu : updaters) { engineSettings.removeSPListen...
void function() { handler.removePropertyChangeListener(propertyChangeListener); debugMode.removeItemListener(itemListener); messageLevel.removeActionListener(messageLevelActionListener); spinnerUpdateManager.cleanup(); for(CheckBoxModelUpdater cbmu : updaters) { engineSettings.removeSPListener(cbmu); } swingSession.get...
/** * Clean up all resources being held up by the EngineSettingsPanel. * including removing all event listeners. */
Clean up all resources being held up by the EngineSettingsPanel. including removing all event listeners
cleanup
{ "repo_name": "SQLPower/power-matchmaker", "path": "src/ca/sqlpower/matchmaker/swingui/engine/EngineSettingsPanel.java", "license": "gpl-3.0", "size": 35832 }
[ "ca.sqlpower.matchmaker.munge.MungeProcess" ]
import ca.sqlpower.matchmaker.munge.MungeProcess;
import ca.sqlpower.matchmaker.munge.*;
[ "ca.sqlpower.matchmaker" ]
ca.sqlpower.matchmaker;
1,711,121
public void sendBinaryAsync(Session session, InputStream inputStream, ExecutorService threadPool) { if (session == null) { return; } if (inputStream == null) { throw new IllegalArgumentException("inputStream must not be null"); } MsgLogger.LOG.infof(...
void function(Session session, InputStream inputStream, ExecutorService threadPool) { if (session == null) { return; } if (inputStream == null) { throw new IllegalArgumentException(STR); } MsgLogger.LOG.infof(STR, session.getId()); if (session.isOpen()) { if (this.asyncTimeout != null) { } CopyStreamRunnable runnable =...
/** * Sends binary data to a client asynchronously. * * @param session the client session where the message will be sent * @param inputStream the binary data to send * @param threadPool where the job will be submitted so it can execute asynchronously */
Sends binary data to a client asynchronously
sendBinaryAsync
{ "repo_name": "ppalaga/hawkular-command-gateway", "path": "hawkular-command-gateway-war/src/main/java/org/hawkular/feedcomm/ws/WebSocketHelper.java", "license": "apache-2.0", "size": 9157 }
[ "java.io.InputStream", "java.util.concurrent.ExecutorService", "javax.websocket.Session" ]
import java.io.InputStream; import java.util.concurrent.ExecutorService; import javax.websocket.Session;
import java.io.*; import java.util.concurrent.*; import javax.websocket.*;
[ "java.io", "java.util", "javax.websocket" ]
java.io; java.util; javax.websocket;
168,956
public void setKeywords(java.util.List<String> keywords); } public static interface IIFEventEnrichmentEnrichedEventsStreamOutput extends Serializable, eu.qualimaster.base.algorithm.IOutputItem<IIFEventEnrichmentEnrichedEventsStreamOutput>, IDirectGroupingInfo {
void function(java.util.List<String> keywords); } public static interface IIFEventEnrichmentEnrichedEventsStreamOutput extends Serializable, eu.qualimaster.base.algorithm.IOutputItem<IIFEventEnrichmentEnrichedEventsStreamOutput>, IDirectGroupingInfo {
/** * Changes the output value for tuple field "keywords". * @param keywords the field value */
Changes the output value for tuple field "keywords"
setKeywords
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/EASy-Producer/ScenariosTest/testdata/real/QualiMaster/sep17/expected/if-gen/eu/qualimaster/families/inf/IFEventEnrichment.java", "license": "apache-2.0", "size": 3582 }
[ "eu.qualimaster.base.algorithm.IDirectGroupingInfo", "java.io.Serializable" ]
import eu.qualimaster.base.algorithm.IDirectGroupingInfo; import java.io.Serializable;
import eu.qualimaster.base.algorithm.*; import java.io.*;
[ "eu.qualimaster.base", "java.io" ]
eu.qualimaster.base; java.io;
1,639,314
protected void addVmPropertyDescriptor(Object object) { itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_EclipseIniTask_vm_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Ecl...
void function(Object object) { itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), SetupPackage.Literals.ECLIPSE_INI_TASK__VM, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALU...
/** * This adds a property descriptor for the Vm feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Vm feature.
addVmPropertyDescriptor
{ "repo_name": "peterkir/org.eclipse.oomph", "path": "plugins/org.eclipse.oomph.setup.edit/src/org/eclipse/oomph/setup/provider/EclipseIniTaskItemProvider.java", "license": "epl-1.0", "size": 6069 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.eclipse.oomph.setup.SetupPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.oomph.setup.SetupPackage;
import org.eclipse.emf.edit.provider.*; import org.eclipse.oomph.setup.*;
[ "org.eclipse.emf", "org.eclipse.oomph" ]
org.eclipse.emf; org.eclipse.oomph;
1,202,011
private String getCompressedImage(final boolean isColoredImage, final String imageUrl, final String convertParameters) { String newImageUrl = imageUrl; if (null != imageUrl && imageUrl.length() > 0) { newImageUrl = imageUrl.substring(0, imageUrl.lastIndexOf(DOTS)) + NEW + TIF_EXTENSION; // Switch is provid...
String function(final boolean isColoredImage, final String imageUrl, final String convertParameters) { String newImageUrl = imageUrl; if (null != imageUrl && imageUrl.length() > 0) { newImageUrl = imageUrl.substring(0, imageUrl.lastIndexOf(DOTS)) + NEW + TIF_EXTENSION; String modifiedConvertParameters = convertParamete...
/** * The <code>getCompressedImage</code> method is used to compress passed image according to compression type LZW, quality 100 and * convert image to monochrome i.e., black and white w.r.t isColoredImage passed. * * @param isColoredImage true for colored image and false otherwise * @param imageUrl image to...
The <code>getCompressedImage</code> method is used to compress passed image according to compression type LZW, quality 100 and convert image to monochrome i.e., black and white w.r.t isColoredImage passed
getCompressedImage
{ "repo_name": "ungerik/ephesoft", "path": "Ephesoft_Community_Release_4.0.2.0/source/dcma-imagemagick/src/main/java/com/ephesoft/dcma/imagemagick/MultiPageExecutor.java", "license": "agpl-3.0", "size": 37095 }
[ "com.ephesoft.dcma.core.exception.DCMAApplicationException", "com.ephesoft.dcma.util.EphesoftStringUtil", "java.io.File" ]
import com.ephesoft.dcma.core.exception.DCMAApplicationException; import com.ephesoft.dcma.util.EphesoftStringUtil; import java.io.File;
import com.ephesoft.dcma.core.exception.*; import com.ephesoft.dcma.util.*; import java.io.*;
[ "com.ephesoft.dcma", "java.io" ]
com.ephesoft.dcma; java.io;
248,024
public static boolean isFilenameAllowedExtension(final String filename) { return isAllowedExtension(FileUtils.extFromFileName(filename)); }
static boolean function(final String filename) { return isAllowedExtension(FileUtils.extFromFileName(filename)); }
/** * Check if a filename has an allowed policy file extension * * @param filename * the filename to check * @return true if the filename has a recognised policy extension */
Check if a filename has an allowed policy file extension
isFilenameAllowedExtension
{ "repo_name": "carlwilson/veraPDF-library", "path": "core/src/main/java/org/verapdf/policy/PolicyChecker.java", "license": "mpl-2.0", "size": 8665 }
[ "org.verapdf.core.utils.FileUtils" ]
import org.verapdf.core.utils.FileUtils;
import org.verapdf.core.utils.*;
[ "org.verapdf.core" ]
org.verapdf.core;
2,790,644
public static Constructor<?> findConstructorBestMatch(final Class<?> clazz, final Class<?>[] parameterTypes, final Object[] args) { Class<?>[] argsClasses = null; for (int i = 0; i < parameterTypes.length; ++i) { if (parameterType...
static Constructor<?> function(final Class<?> clazz, final Class<?>[] parameterTypes, final Object[] args) { Class<?>[] argsClasses = null; for (int i = 0; i < parameterTypes.length; ++i) { if (parameterTypes[i] != null) continue; if (argsClasses == null) argsClasses = getParameterTypes(args); parameterTypes[i] = argsC...
/** * Look up a constructor in a class and set it to accessible. * <p> * <p>See {@link #findMethodBestMatch(Class, String, Class...)} for details. This variant * determines the parameter types from the classes of the given objects. For any item that is * {@code null}, the type is taken from {@c...
Look up a constructor in a class and set it to accessible. See <code>#findMethodBestMatch(Class, String, Class...)</code> for details. This variant determines the parameter types from the classes of the given objects. For any item that is null, the type is taken from parameterTypes instead
findConstructorBestMatch
{ "repo_name": "rrrfff/AndHook", "path": "lib/src/main/java/andhook/lib/xposed/XposedHelpers.java", "license": "mit", "size": 77038 }
[ "java.lang.reflect.Constructor" ]
import java.lang.reflect.Constructor;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,687,819
protected static File getSortedCrawlLog(File file) { try { File tmpCrawlLog = File.createTempFile("sorted", "crawllog", FileUtils.getTempDir()); // This throws IOFailure, if the sorting operation fails FileUtils.sortCrawlLog(file, tmpCrawlLog); ...
static File function(File file) { try { File tmpCrawlLog = File.createTempFile(STR, STR, FileUtils.getTempDir()); FileUtils.sortCrawlLog(file, tmpCrawlLog); tmpCrawlLog.deleteOnExit(); return tmpCrawlLog; } catch (IOException e) { throw new IOFailure(STR + file + "'", e); } }
/** Get a sorted, temporary crawl.log file from an unsorted one. * * @param file The file containing an unsorted crawl.log file. * @return A temporary file containing the entries sorted according to * URL. The file will be removed upon exit of the JVM, but should be * attempted removed when it...
Get a sorted, temporary crawl.log file from an unsorted one
getSortedCrawlLog
{ "repo_name": "netarchivesuite/netarchivesuite-svngit-migration", "path": "src/dk/netarkivet/harvester/indexserver/CrawlLogIndexCache.java", "license": "lgpl-2.1", "size": 20944 }
[ "dk.netarkivet.common.exceptions.IOFailure", "dk.netarkivet.common.utils.FileUtils", "java.io.File", "java.io.IOException" ]
import dk.netarkivet.common.exceptions.IOFailure; import dk.netarkivet.common.utils.FileUtils; import java.io.File; import java.io.IOException;
import dk.netarkivet.common.exceptions.*; import dk.netarkivet.common.utils.*; import java.io.*;
[ "dk.netarkivet.common", "java.io" ]
dk.netarkivet.common; java.io;
1,093,815
//getters public ROReportTriggerType getROReportTrigger() { return rOReportTrigger; }
ROReportTriggerType function() { return rOReportTrigger; }
/** * get rOReportTrigger of type ROReportTriggerType. * @return ROReportTriggerType */
get rOReportTrigger of type ROReportTriggerType
getROReportTrigger
{ "repo_name": "yalewkidane/Oliot-FC", "path": "fc-server/src/main/java/kr/ac/kaist/resl/ltk/generated/parameters/ROReportSpec.java", "license": "lgpl-2.1", "size": 17780 }
[ "kr.ac.kaist.resl.ltk.generated.enumerations.ROReportTriggerType" ]
import kr.ac.kaist.resl.ltk.generated.enumerations.ROReportTriggerType;
import kr.ac.kaist.resl.ltk.generated.enumerations.*;
[ "kr.ac.kaist" ]
kr.ac.kaist;
862,920
@Adjacency(label = DECOMPILED_SOURCE, direction = Direction.OUT) void setDecompiledSource(JavaSourceFileModel source);
@Adjacency(label = DECOMPILED_SOURCE, direction = Direction.OUT) void setDecompiledSource(JavaSourceFileModel source);
/** * Contains the {@link JavaSourceFileModel} of the decompiled version of this file (assuming that it originally was * decompiled from a .class file) */
Contains the <code>JavaSourceFileModel</code> of the decompiled version of this file (assuming that it originally was decompiled from a .class file)
setDecompiledSource
{ "repo_name": "d-s/windup", "path": "rules-java/api/src/main/java/org/jboss/windup/rules/apps/java/model/JavaClassModel.java", "license": "epl-1.0", "size": 8033 }
[ "com.tinkerpop.blueprints.Direction", "com.tinkerpop.frames.Adjacency" ]
import com.tinkerpop.blueprints.Direction; import com.tinkerpop.frames.Adjacency;
import com.tinkerpop.blueprints.*; import com.tinkerpop.frames.*;
[ "com.tinkerpop.blueprints", "com.tinkerpop.frames" ]
com.tinkerpop.blueprints; com.tinkerpop.frames;
2,731,301
public Object visit(SuperMethodCall node) { // Check the arguments List args = node.getArguments(); if (args != null) { visitList(args); } return null; }
Object function(SuperMethodCall node) { List args = node.getArguments(); if (args != null) { visitList(args); } return null; }
/** * Visits a SuperMethodCall * @param node the node to visit */
Visits a SuperMethodCall
visit
{ "repo_name": "moegyver/mJeliot", "path": "Jeliot/src/koala/dynamicjava/interpreter/NameVisitor.java", "license": "mit", "size": 39475 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
558,811
default AdvancedAtomixValueEndpointBuilder resourceOptions( Map<String, Properties> resourceOptions) { doSetProperty("resourceOptions", resourceOptions); return this; }
default AdvancedAtomixValueEndpointBuilder resourceOptions( Map<String, Properties> resourceOptions) { doSetProperty(STR, resourceOptions); return this; }
/** * Local resources configurations. * * The option is a: &lt;code&gt;java.util.Map&amp;lt;java.lang.String, * java.util.Properties&amp;gt;&lt;/code&gt; type. * * Group: advanced * * @param resourceOptions the value to set * @return th...
Local resources configurations. The option is a: &lt;code&gt;java.util.Map&amp;lt;java.lang.String, java.util.Properties&amp;gt;&lt;/code&gt; type. Group: advanced
resourceOptions
{ "repo_name": "nikhilvibhav/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtomixValueEndpointBuilderFactory.java", "license": "apache-2.0", "size": 50741 }
[ "java.util.Map", "java.util.Properties" ]
import java.util.Map; import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
482,157
public Base64URL getEncryptionPartyUInfo();
Base64URL function();
/** * Gets the encryption PartyUInfo ({@code epu}) parameter. * * @return The encryption PartyUInfo parameter, {@code null} if not * specified. */
Gets the encryption PartyUInfo (epu) parameter
getEncryptionPartyUInfo
{ "repo_name": "gesellix/Nimbus-JOSE-JWT", "path": "src/main/java/com/nimbusds/jose/ReadOnlyJWEHeader.java", "license": "apache-2.0", "size": 1876 }
[ "com.nimbusds.jose.util.Base64URL" ]
import com.nimbusds.jose.util.Base64URL;
import com.nimbusds.jose.util.*;
[ "com.nimbusds.jose" ]
com.nimbusds.jose;
14,505
public void resetFilter() { ((HBaseDataHandler) handler).resetFilter(); }
void function() { ((HBaseDataHandler) handler).resetFilter(); }
/** * Reset filter. */
Reset filter
resetFilter
{ "repo_name": "impetus-opensource/Kundera", "path": "src/kundera-hbase/kundera-hbase/src/main/java/com/impetus/client/hbase/HBaseClient.java", "license": "apache-2.0", "size": 36410 }
[ "com.impetus.client.hbase.admin.HBaseDataHandler" ]
import com.impetus.client.hbase.admin.HBaseDataHandler;
import com.impetus.client.hbase.admin.*;
[ "com.impetus.client" ]
com.impetus.client;
803,182
public PutObjectOptions withAcl(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
PutObjectOptions function(CannedAccessPolicy acl) { this.acl = checkNotNull(acl, "acl"); if (!acl.equals(CannedAccessPolicy.PRIVATE)) this.replaceHeader(CANNED_ACL, acl.toString()); return this; }
/** * Override the default ACL (private) with the specified one. * * @see CannedAccessPolicy */
Override the default ACL (private) with the specified one
withAcl
{ "repo_name": "yanzhijun/jclouds-aliyun", "path": "apis/s3/src/main/java/org/jclouds/s3/options/PutObjectOptions.java", "license": "apache-2.0", "size": 3685 }
[ "com.google.common.base.Preconditions", "org.jclouds.s3.domain.CannedAccessPolicy" ]
import com.google.common.base.Preconditions; import org.jclouds.s3.domain.CannedAccessPolicy;
import com.google.common.base.*; import org.jclouds.s3.domain.*;
[ "com.google.common", "org.jclouds.s3" ]
com.google.common; org.jclouds.s3;
1,639,274
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync( String resourceGroupName, String serverName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters, Context context) { i...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String resourceGroupName, String serverName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentExceptio...
/** * Approve or reject a private endpoint connection with a given name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName The privateEndpointConnectionName parameter. ...
Approve or reject a private endpoint connection with a given name
createOrUpdateWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/PrivateEndpointConnectionsClientImpl.java", "license": "mit", "size": 77661 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.postgresql.fluent.models.PrivateEndpointConnectionInner", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.postgresql.fluent.models.PrivateEndpointConnectionInner; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.postgresql.fluent.models.*; import java.nio.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.nio" ]
com.azure.core; com.azure.resourcemanager; java.nio;
2,869,041
public final void setGObject(GObject object) { final boolean orphan = isOrphan(); final boolean statusChanged; // Gaining owner if (orphan && object != null) { mOwnerId = object.getId(); mOwnerVersion = object.getVersion();...
final void function(GObject object) { final boolean orphan = isOrphan(); final boolean statusChanged; if (orphan && object != null) { mOwnerId = object.getId(); mOwnerVersion = object.getVersion(); statusChanged = true; } else if (!orphan && object == null) { mOwnerId = NULL; mOwnerVersion = NULL; statusChanged = true;...
/** * <p>Sets the owning {@link GObject}.</p> * * @param object owner. */
Sets the owning <code>GObject</code>
setGObject
{ "repo_name": "joltix/Cinnamon", "path": "com/cinnamon/system/ComponentFactory.java", "license": "mit", "size": 4033 }
[ "com.cinnamon.object.GObject" ]
import com.cinnamon.object.GObject;
import com.cinnamon.object.*;
[ "com.cinnamon.object" ]
com.cinnamon.object;
1,334,337
public static boolean loadStream(String soundName, URL url) { try { if (soundMap.containsKey(soundName)) return true; AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(url); return loadStream(soundName, audioInputStream); } ca...
static boolean function(String soundName, URL url) { try { if (soundMap.containsKey(soundName)) return true; AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(url); return loadStream(soundName, audioInputStream); } catch (Exception e) { e.printStackTrace(); return false; } }
/** * Loads an audio stream from a <code>{@link java.net.URL}</code> * and gives it the specified name. This name can be used when calling * the <code>{@link #play play}</code> and <code>{@link #stop stop}</code> methods. * * @param soundName the name to give this audio stream * @par...
Loads an audio stream from a <code><code>java.net.URL</code></code> and gives it the specified name. This name can be used when calling the <code><code>#play play</code></code> and <code><code>#stop stop</code></code> methods
loadStream
{ "repo_name": "premiummarkets/pm", "path": "premiumMarkets/pm-ui/src/main/java/com/finance/pms/AudioPlayer.java", "license": "lgpl-3.0", "size": 17884 }
[ "javax.sound.sampled.AudioInputStream", "javax.sound.sampled.AudioSystem" ]
import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.*;
[ "javax.sound" ]
javax.sound;
1,561,762
@Override public ShortCircuitReplicaInfo createShortCircuitReplicaInfo() { if (createShortCircuitReplicaInfoCallback != null) { ShortCircuitReplicaInfo info = createShortCircuitReplicaInfoCallback.createShortCircuitReplicaInfo(); if (info != null) return info; } LOG.trace("{}: tryi...
ShortCircuitReplicaInfo function() { if (createShortCircuitReplicaInfoCallback != null) { ShortCircuitReplicaInfo info = createShortCircuitReplicaInfoCallback.createShortCircuitReplicaInfo(); if (info != null) return info; } LOG.trace(STR, this); BlockReaderPeer curPeer; while (true) { curPeer = nextDomainPeer(); if (c...
/** * Fetch a pair of short-circuit block descriptors from a local DataNode. * * @return Null if we could not communicate with the datanode, * a new ShortCircuitReplicaInfo object otherwise. * ShortCircuitReplicaInfo objects may contain either an * InvalidToken exce...
Fetch a pair of short-circuit block descriptors from a local DataNode
createShortCircuitReplicaInfo
{ "repo_name": "steveloughran/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/BlockReaderFactory.java", "license": "apache-2.0", "size": 33015 }
[ "java.io.IOException", "org.apache.commons.lang3.mutable.MutableBoolean", "org.apache.hadoop.hdfs.ExtendedBlockId", "org.apache.hadoop.hdfs.net.DomainPeer", "org.apache.hadoop.hdfs.shortcircuit.ShortCircuitCache", "org.apache.hadoop.hdfs.shortcircuit.ShortCircuitReplicaInfo", "org.apache.hadoop.hdfs.sho...
import java.io.IOException; import org.apache.commons.lang3.mutable.MutableBoolean; import org.apache.hadoop.hdfs.ExtendedBlockId; import org.apache.hadoop.hdfs.net.DomainPeer; import org.apache.hadoop.hdfs.shortcircuit.ShortCircuitCache; import org.apache.hadoop.hdfs.shortcircuit.ShortCircuitReplicaInfo; import org.ap...
import java.io.*; import org.apache.commons.lang3.mutable.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.net.*; import org.apache.hadoop.hdfs.shortcircuit.*; import org.apache.hadoop.hdfs.util.*;
[ "java.io", "org.apache.commons", "org.apache.hadoop" ]
java.io; org.apache.commons; org.apache.hadoop;
380,274
T[] result = (T[]) Array.newInstance(aList.get(0).getClass(), 2); result = aList.toArray(result); return result; }
T[] result = (T[]) Array.newInstance(aList.get(0).getClass(), 2); result = aList.toArray(result); return result; }
/** * Returns an array of aList items in the same order than the {@link List}. * * @param aList * {@link List} to transform. * * @return {@link T[]} array of aList items in the same order than the {@link List}. * * @since 1 */
Returns an array of aList items in the same order than the <code>List</code>
toArray
{ "repo_name": "barriosnahuel/magic-annotator_android", "path": "src/main/java/com/nbempire/android/magicannotator/util/ArrayUtil.java", "license": "gpl-3.0", "size": 1652 }
[ "java.lang.reflect.Array" ]
import java.lang.reflect.Array;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
224,049
public Builder preProcessor(BitmapProcessor preProcessor) { this.preProcessor = preProcessor; return this; }
Builder function(BitmapProcessor preProcessor) { this.preProcessor = preProcessor; return this; }
/** * Sets bitmap processor which will be process bitmaps before they will be cached in memory. So memory cache * will contain bitmap processed by incoming preProcessor.<br /> * Image will be pre-processed even if caching in memory is disabled. */
Sets bitmap processor which will be process bitmaps before they will be cached in memory. So memory cache will contain bitmap processed by incoming preProcessor. Image will be pre-processed even if caching in memory is disabled
preProcessor
{ "repo_name": "cowthan/AyoWeibo", "path": "ayoimageloader/src/main/java/com/nostra13/universalimageloader/core/DisplayImageOptions.java", "license": "apache-2.0", "size": 17494 }
[ "com.nostra13.universalimageloader.core.process.BitmapProcessor" ]
import com.nostra13.universalimageloader.core.process.BitmapProcessor;
import com.nostra13.universalimageloader.core.process.*;
[ "com.nostra13.universalimageloader" ]
com.nostra13.universalimageloader;
167,533
private void drawGlyph(GeneralPath path, PDFont font, int code, Vector displacement, AffineTransform at) throws IOException { PDGraphicsState state = getGraphicsState(); RenderingMode renderingMode = state.getTextState().getRenderingMode(); if (path != null) { // stretch non-embedded glyph if ...
void function(GeneralPath path, PDFont font, int code, Vector displacement, AffineTransform at) throws IOException { PDGraphicsState state = getGraphicsState(); RenderingMode renderingMode = state.getTextState().getRenderingMode(); if (path != null) { if (!font.isEmbedded()) { float fontWidth = font.getWidthFromFont(co...
/** * Renders a glyph. * * @param path the GeneralPath for the glyph * @param font the font * @param code character code * @param displacement the glyph's displacement (advance) * @param at the transformation * @throws IOException if something went wrong...
Renders a glyph
drawGlyph
{ "repo_name": "gavanx/pdflearn", "path": "pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java", "license": "apache-2.0", "size": 50036 }
[ "java.awt.Shape", "java.awt.geom.AffineTransform", "java.awt.geom.Area", "java.awt.geom.GeneralPath", "java.io.IOException", "org.apache.pdfbox.pdmodel.font.PDFont", "org.apache.pdfbox.pdmodel.graphics.state.PDGraphicsState", "org.apache.pdfbox.pdmodel.graphics.state.RenderingMode", "org.apache.pdfb...
import java.awt.Shape; import java.awt.geom.AffineTransform; import java.awt.geom.Area; import java.awt.geom.GeneralPath; import java.io.IOException; import org.apache.pdfbox.pdmodel.font.PDFont; import org.apache.pdfbox.pdmodel.graphics.state.PDGraphicsState; import org.apache.pdfbox.pdmodel.graphics.state.RenderingMo...
import java.awt.*; import java.awt.geom.*; import java.io.*; import org.apache.pdfbox.pdmodel.font.*; import org.apache.pdfbox.pdmodel.graphics.state.*; import org.apache.pdfbox.util.*;
[ "java.awt", "java.io", "org.apache.pdfbox" ]
java.awt; java.io; org.apache.pdfbox;
44,710
ContentUtils.deleteDirectory(mLatestMessagesDirectory); mLatestMesssageByRoomId = null; }
ContentUtils.deleteDirectory(mLatestMessagesDirectory); mLatestMesssageByRoomId = null; }
/** * Clear the text caches. * @param context The application context to use. */
Clear the text caches
clearCache
{ "repo_name": "Nehasing/Nehachat", "path": "matrix-sdk/src/main/java/org/matrix/androidsdk/db/MXLatestChatMessageCache.java", "license": "apache-2.0", "size": 4869 }
[ "org.matrix.androidsdk.util.ContentUtils" ]
import org.matrix.androidsdk.util.ContentUtils;
import org.matrix.androidsdk.util.*;
[ "org.matrix.androidsdk" ]
org.matrix.androidsdk;
2,304,850
public static Object callConstructor(Class<?> c, Class<?>[] argTypes, Object[] args) { try { Constructor<?> cons = c.getConstructor(argTypes); return cons.newInstance(args); } catch(InvocationTargetException e) { throw getCause(e); } catch(IllegalAccessExc...
static Object function(Class<?> c, Class<?>[] argTypes, Object[] args) { try { Constructor<?> cons = c.getConstructor(argTypes); return cons.newInstance(args); } catch(InvocationTargetException e) { throw getCause(e); } catch(IllegalAccessException e) { throw new IllegalStateException(e); } catch(NoSuchMethodException ...
/** * Call the class constructor with the given arguments * * @param c The class * @param args The arguments * @return The constructed object */
Call the class constructor with the given arguments
callConstructor
{ "repo_name": "shixin198642/azkaban2", "path": "src/java/azkaban/utils/Utils.java", "license": "apache-2.0", "size": 10644 }
[ "java.lang.reflect.Constructor", "java.lang.reflect.InvocationTargetException" ]
import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,654,985
private Identity identity(final String tkn) throws IOException { return parse( this.user .uri() .set( URI.create( new Href(PsTwitter.VERIFY_URL) .with("access_token", tkn) ...
Identity function(final String tkn) throws IOException { return parse( this.user .uri() .set( URI.create( new Href(PsTwitter.VERIFY_URL) .with(STR, tkn) .toString() ) ) .back() .header(STR, STR) .fetch().as(RestResponse.class) .assertStatus(HttpURLConnection.HTTP_OK) .as(JsonResponse.class) .json() .readObject() ); }
/** * Get user name from Twitter, with the token provided. * @param tkn Twitter access token * @return The user found in Twitter * @throws IOException If fails */
Get user name from Twitter, with the token provided
identity
{ "repo_name": "bdragan/takes", "path": "src/main/java/org/takes/facets/auth/social/PsTwitter.java", "license": "mit", "size": 6241 }
[ "com.jcabi.http.response.JsonResponse", "com.jcabi.http.response.RestResponse", "java.io.IOException", "java.net.HttpURLConnection", "java.net.URI", "org.takes.facets.auth.Identity", "org.takes.misc.Href" ]
import com.jcabi.http.response.JsonResponse; import com.jcabi.http.response.RestResponse; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URI; import org.takes.facets.auth.Identity; import org.takes.misc.Href;
import com.jcabi.http.response.*; import java.io.*; import java.net.*; import org.takes.facets.auth.*; import org.takes.misc.*;
[ "com.jcabi.http", "java.io", "java.net", "org.takes.facets", "org.takes.misc" ]
com.jcabi.http; java.io; java.net; org.takes.facets; org.takes.misc;
582,383
protected void indexDoc(SolrInputDocument doc) throws IOException, SolrServerException { controlClient.add(doc); int which = (doc.getField(id).toString().hashCode() & 0x7fffffff) % clients.size(); SolrServer client = clients.get(which); client.add(doc); }
void function(SolrInputDocument doc) throws IOException, SolrServerException { controlClient.add(doc); int which = (doc.getField(id).toString().hashCode() & 0x7fffffff) % clients.size(); SolrServer client = clients.get(which); client.add(doc); }
/** * Indexes the document in both the control client, and a randomly selected client */
Indexes the document in both the control client, and a randomly selected client
indexDoc
{ "repo_name": "pengzong1111/solr4", "path": "solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java", "license": "apache-2.0", "size": 30764 }
[ "java.io.IOException", "org.apache.solr.client.solrj.SolrServer", "org.apache.solr.client.solrj.SolrServerException", "org.apache.solr.common.SolrInputDocument" ]
import java.io.IOException; import org.apache.solr.client.solrj.SolrServer; import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.common.SolrInputDocument;
import java.io.*; import org.apache.solr.client.solrj.*; import org.apache.solr.common.*;
[ "java.io", "org.apache.solr" ]
java.io; org.apache.solr;
2,695,396
public void seek(long pos) throws IOException { is.seek(pos - startingPos); }
void function(long pos) throws IOException { is.seek(pos - startingPos); }
/** * Sets position in bytes in the stream * * @param pos Number of bytes * @throws java.io.IOException */
Sets position in bytes in the stream
seek
{ "repo_name": "crimefire/jpexs-decompiler", "path": "libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java", "license": "gpl-3.0", "size": 128299 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,365,417
public static String getMimeType(String uriString, CordovaInterface cordova) { String mimeType = null; Uri uri = Uri.parse(uriString); if (uriString.startsWith("content://")) { mimeType = cordova.getActivity().getContentResolver().getType(uri); } else { mimeT...
static String function(String uriString, CordovaInterface cordova) { String mimeType = null; Uri uri = Uri.parse(uriString); if (uriString.startsWith("content: mimeType = cordova.getActivity().getContentResolver().getType(uri); } else { mimeType = getMimeTypeForExtension(uri.getPath()); } return mimeType; }
/** * Returns the mime type of the data specified by the given URI string. * * @param uriString the URI string of the data * @return the mime type of the specified data */
Returns the mime type of the data specified by the given URI string
getMimeType
{ "repo_name": "Hwimbloh/Yeh", "path": "www/plugins/cordova-plugin-camera/src/android/FileHelper.java", "license": "apache-2.0", "size": 11930 }
[ "android.net.Uri", "org.apache.cordova.CordovaInterface" ]
import android.net.Uri; import org.apache.cordova.CordovaInterface;
import android.net.*; import org.apache.cordova.*;
[ "android.net", "org.apache.cordova" ]
android.net; org.apache.cordova;
1,104,941
private int addValueMeta( RowMetaInterface rowMeta, String fieldName ) { ValueMetaInterface valueMeta = new ValueMeta( fieldName, ValueMetaInterface.TYPE_STRING ); valueMeta.setOrigin( getStepname() ); // add if doesn't exist int index = -1; if ( !rowMeta.exists( valueMeta ) ) { index = rowM...
int function( RowMetaInterface rowMeta, String fieldName ) { ValueMetaInterface valueMeta = new ValueMeta( fieldName, ValueMetaInterface.TYPE_STRING ); valueMeta.setOrigin( getStepname() ); int index = -1; if ( !rowMeta.exists( valueMeta ) ) { index = rowMeta.size(); rowMeta.addValueMeta( valueMeta ); } else { index = ...
/** * Adds <code>String</code> value meta with given name if not present and returns index * * @param rowMeta * @param fieldName * @return Index in row meta of value meta with <code>fieldName</code> */
Adds <code>String</code> value meta with given name if not present and returns index
addValueMeta
{ "repo_name": "matrix-stone/pentaho-kettle", "path": "engine/src/org/pentaho/di/trans/steps/textfileinput/TextFileInput.java", "license": "apache-2.0", "size": 61637 }
[ "org.pentaho.di.core.row.RowMetaInterface", "org.pentaho.di.core.row.ValueMeta", "org.pentaho.di.core.row.ValueMetaInterface" ]
import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.core.row.ValueMeta; import org.pentaho.di.core.row.ValueMetaInterface;
import org.pentaho.di.core.row.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,273,390
@Override public OutputStream openBinary(JPackage pkg, String fileName) { throw new NotImplementedException(); } protected StringWriter writer = new StringWriter();
OutputStream function(JPackage pkg, String fileName) { throw new NotImplementedException(); } protected StringWriter writer = new StringWriter();
/** * Called by CodeModel to store the specified file. */
Called by CodeModel to store the specified file
openBinary
{ "repo_name": "BrainTech/jsignalml", "path": "src/main/java/jsignalml/compiler/MemoryWriter.java", "license": "gpl-3.0", "size": 1046 }
[ "com.sun.codemodel.JPackage", "java.io.OutputStream", "java.io.StringWriter", "org.apache.commons.lang.NotImplementedException" ]
import com.sun.codemodel.JPackage; import java.io.OutputStream; import java.io.StringWriter; import org.apache.commons.lang.NotImplementedException;
import com.sun.codemodel.*; import java.io.*; import org.apache.commons.lang.*;
[ "com.sun.codemodel", "java.io", "org.apache.commons" ]
com.sun.codemodel; java.io; org.apache.commons;
948,592
public DiscoCache createDiscoCacheOnCacheChange( AffinityTopologyVersion topVer, DiscoCache discoCache ) { List<ClusterNode> allNodes = discoCache.allNodes(); Map<Integer, List<ClusterNode>> allCacheNodes = U.newHashMap(allNodes.size()); Map<Integer, List<ClusterNode>> ca...
DiscoCache function( AffinityTopologyVersion topVer, DiscoCache discoCache ) { List<ClusterNode> allNodes = discoCache.allNodes(); Map<Integer, List<ClusterNode>> allCacheNodes = U.newHashMap(allNodes.size()); Map<Integer, List<ClusterNode>> cacheGrpAffNodes = U.newHashMap(allNodes.size()); Set<ClusterNode> rmtNodesWit...
/** * Creates discovery cache after {@link DynamicCacheChangeBatch} received. * * @param topVer Topology version. * @param discoCache Current disco cache. * @return New discovery cache. */
Creates discovery cache after <code>DynamicCacheChangeBatch</code> received
createDiscoCacheOnCacheChange
{ "repo_name": "SomeFire/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java", "license": "apache-2.0", "size": 124677 }
[ "java.util.List", "java.util.Map", "java.util.Set", "java.util.TreeSet", "org.apache.ignite.cluster.ClusterNode", "org.apache.ignite.internal.cluster.NodeOrderComparator", "org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion", "org.apache.ignite.internal.util.typedef.internal.U" ]
import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; import org.apache.ignite.cluster.ClusterNode; import org.apache.ignite.internal.cluster.NodeOrderComparator; import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion; import org.apache.ignite.internal.util....
import java.util.*; import org.apache.ignite.cluster.*; import org.apache.ignite.internal.cluster.*; import org.apache.ignite.internal.processors.affinity.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
2,845,285
public static String description() { return "The " + BaseColorLayoutComponent.name() + " provides the color for nodes and edges."; } /** * Returns the capabilities (the set of * {@link edu.vt.arc.vis.osnap.visualization.VisualProperty VisualProperties}
static String function() { return STR + BaseColorLayoutComponent.name() + STR; } /** * Returns the capabilities (the set of * {@link edu.vt.arc.vis.osnap.visualization.VisualProperty VisualProperties}
/** * Returns the description of this {@link ILayoutComponent}. * * @return the description. */
Returns the description of this <code>ILayoutComponent</code>
description
{ "repo_name": "VT-Visionarium/osnap", "path": "src/main/java/edu/vt/arc/vis/osnap/layout/common/BaseColorLayoutComponent.java", "license": "apache-2.0", "size": 3622 }
[ "edu.vt.arc.vis.osnap.visualization.VisualProperty" ]
import edu.vt.arc.vis.osnap.visualization.VisualProperty;
import edu.vt.arc.vis.osnap.visualization.*;
[ "edu.vt.arc" ]
edu.vt.arc;
2,017,447
public void setProperties(final Map<String, String> conf) { this.props = conf; }
void function(final Map<String, String> conf) { this.props = conf; }
/** * Configuration properties. * * @param conf map pf config properties. */
Configuration properties
setProperties
{ "repo_name": "birkland/fcrepo-api-x", "path": "fcrepo-api-x-registry/src/main/java/org/fcrepo/apix/registry/HttpClientFactory.java", "license": "apache-2.0", "size": 6975 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,254,766
private JSDocInfo.Marker assertAnnotationMarker(JSDocInfo jsdoc, String annotationName, int startLineno, int startCharno) { return assertAnnotationMarker(jsdoc, ann...
JSDocInfo.Marker function(JSDocInfo jsdoc, String annotationName, int startLineno, int startCharno) { return assertAnnotationMarker(jsdoc, annotationName, startLineno, startCharno, 0); }
/** * Asserts that an annotation marker of a given annotation name * is found in the given JSDocInfo. * * @param jsdoc The JSDocInfo in which to search for the annotation marker. * @param annotationName The name/type of the annotation for which to * search. Example: "author" for an "@author" annotat...
Asserts that an annotation marker of a given annotation name is found in the given JSDocInfo
assertAnnotationMarker
{ "repo_name": "robbert/closure-compiler-copy", "path": "test/com/google/javascript/jscomp/parsing/JsDocInfoParserTest.java", "license": "apache-2.0", "size": 110604 }
[ "com.google.javascript.rhino.JSDocInfo" ]
import com.google.javascript.rhino.JSDocInfo;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,430,622
@RequestMapping(value="/{userId}", method=RequestMethod.POST) public User updateUser(HttpServletRequest request, HttpServletResponse response, @PathVariable(value="userId") long userId, @RequestBody User updates) { updates.setId(userId); User updated = (User) request.getSession().getAttribute("user"); if (...
@RequestMapping(value=STR, method=RequestMethod.POST) User function(HttpServletRequest request, HttpServletResponse response, @PathVariable(value=STR) long userId, @RequestBody User updates) { updates.setId(userId); User updated = (User) request.getSession().getAttribute("user"); if (updates.getEmail() != null) { updat...
/** * update account information for specified user * (does not affect ratings, business managed, orders, or role) */
update account information for specified user (does not affect ratings, business managed, orders, or role)
updateUser
{ "repo_name": "NullTerminus/Orderys", "path": "Orderys/src/main/java/com/revature/orderys/controller/CustomerController.java", "license": "mit", "size": 5513 }
[ "com.revature.orderys.bean.User", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.springframework.security.crypto.bcrypt.BCrypt", "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.RequestBody", "org.springframework.we...
import com.revature.orderys.bean.User; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.security.crypto.bcrypt.BCrypt; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import or...
import com.revature.orderys.bean.*; import javax.servlet.http.*; import org.springframework.security.crypto.bcrypt.*; import org.springframework.web.bind.annotation.*;
[ "com.revature.orderys", "javax.servlet", "org.springframework.security", "org.springframework.web" ]
com.revature.orderys; javax.servlet; org.springframework.security; org.springframework.web;
1,279,809
public OutColList getOutColFields() { OutColList outCols = new OutColList(); for (int r = 0; r < m_model.getRowCount(); r++) { if (!m_model.validateValues(r)) { // there are errors in this row continue; } Object fieldTypeValue = get...
OutColList function() { OutColList outCols = new OutColList(); for (int r = 0; r < m_model.getRowCount(); r++) { if (!m_model.validateValues(r)) { continue; } Object fieldTypeValue = getFieldType(r); if (null == fieldTypeValue) { continue; } boolean isColumn = fieldTypeValue.equals(FieldType.Column); if (isColumn) { Ou...
/** * Get the field definitions representing output columns. * * @return fields representing output columns. */
Get the field definitions representing output columns
getOutColFields
{ "repo_name": "pavloff-de/spark4knime", "path": "src/de/pavloff/spark4knime/jsnippet/ui/OutFieldsTable.java", "license": "gpl-3.0", "size": 45325 }
[ "de.pavloff.spark4knime.jsnippet.JavaField", "de.pavloff.spark4knime.jsnippet.JavaFieldList", "de.pavloff.spark4knime.jsnippet.ui.FieldsTableModel", "org.knime.core.data.DataColumnSpec", "org.knime.core.data.DataType", "org.knime.core.data.collection.ListCell" ]
import de.pavloff.spark4knime.jsnippet.JavaField; import de.pavloff.spark4knime.jsnippet.JavaFieldList; import de.pavloff.spark4knime.jsnippet.ui.FieldsTableModel; import org.knime.core.data.DataColumnSpec; import org.knime.core.data.DataType; import org.knime.core.data.collection.ListCell;
import de.pavloff.spark4knime.jsnippet.*; import de.pavloff.spark4knime.jsnippet.ui.*; import org.knime.core.data.*; import org.knime.core.data.collection.*;
[ "de.pavloff.spark4knime", "org.knime.core" ]
de.pavloff.spark4knime; org.knime.core;
1,647,599
public Value evalCopy(Env env) { return eval(env); }
Value function(Env env) { return eval(env); }
/** * Evaluates the expression as a copy. * <p/> * The default is not to copy because the absence of copying is more * testable. * * @param env the calling environment. * @return the expression value. */
Evaluates the expression as a copy. The default is not to copy because the absence of copying is more testable
evalCopy
{ "repo_name": "CleverCloud/Bianca", "path": "bianca/src/main/java/com/clevercloud/bianca/expr/Expr.java", "license": "gpl-2.0", "size": 14966 }
[ "com.clevercloud.bianca.env.Env", "com.clevercloud.bianca.env.Value" ]
import com.clevercloud.bianca.env.Env; import com.clevercloud.bianca.env.Value;
import com.clevercloud.bianca.env.*;
[ "com.clevercloud.bianca" ]
com.clevercloud.bianca;
1,308,621
public void setServlet(ActionServlet servlet) { this.servlet = servlet; }
void function(ActionServlet servlet) { this.servlet = servlet; }
/** * <p> Sets the servlet with which this handler is associated. </p> * * @param servlet The associated servlet. */
Sets the servlet with which this handler is associated.
setServlet
{ "repo_name": "davcamer/clients", "path": "projects-for-testing/struts/core/src/main/java/org/apache/struts/upload/CommonsMultipartRequestHandler.java", "license": "apache-2.0", "size": 23797 }
[ "org.apache.struts.action.ActionServlet" ]
import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.*;
[ "org.apache.struts" ]
org.apache.struts;
497,008
public View create(Element element) { if (log.isDebugEnabled()) { log.debug(element.getName()); } return new HighlightView(element); }
View function(Element element) { if (log.isDebugEnabled()) { log.debug(element.getName()); } return new HighlightView(element); }
/** * DOCUMENT ME! * * @param element DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
create
{ "repo_name": "tonivade/tedit", "path": "src/tk/tomby/tedit/editorkits/HighlightPlainContext.java", "license": "gpl-2.0", "size": 13325 }
[ "javax.swing.text.Element", "javax.swing.text.View" ]
import javax.swing.text.Element; import javax.swing.text.View;
import javax.swing.text.*;
[ "javax.swing" ]
javax.swing;
1,608,751
public Builder language(String language) { this.language = language; return this; }
Builder function(String language) { this.language = language; return this; }
/** * BCP-47 language code. Can be omitted if the language is unknown or if * no i18n is done at all for the feed. At most one translation is * allowed to have an unspecified language tag. */
BCP-47 language code. Can be omitted if the language is unknown or if no i18n is done at all for the feed. At most one translation is allowed to have an unspecified language tag
language
{ "repo_name": "sthistle/HfxTransit", "path": "app/src/main/java/com/google/transit/realtime/TranslatedString.java", "license": "gpl-3.0", "size": 10273 }
[ "java.lang.String" ]
import java.lang.String;
import java.lang.*;
[ "java.lang" ]
java.lang;
1,620,472
public static String convertDateForStatus(Date date) { //current time Calendar currentCal = Calendar.getInstance(); long currentTimeMillis = currentCal.getTimeInMillis(); //posting time long postingTimeMillis = date.getTime(); //difference int diff = (int)(currentTimeMillis - postingTimeMillis);...
static String function(Date date) { Calendar currentCal = Calendar.getInstance(); long currentTimeMillis = currentCal.getTimeInMillis(); long postingTimeMillis = date.getTime(); int diff = (int)(currentTimeMillis - postingTimeMillis); Locale locale = getUserPreferredLocale(); int MILLIS_IN_SECOND = 1000; int MILLIS_IN_...
/** * Convert a date into a field like "just then, 2 minutes ago, 4 hours ago, yesterday, on sunday, etc" * * @param date date to convert */
Convert a date into a field like "just then, 2 minutes ago, 4 hours ago, yesterday, on sunday, etc"
convertDateForStatus
{ "repo_name": "marktriggs/nyu-sakai-10.4", "path": "profile2/util/src/java/org/sakaiproject/profile2/util/ProfileUtils.java", "license": "apache-2.0", "size": 18929 }
[ "java.util.Calendar", "java.util.Date", "java.util.Locale" ]
import java.util.Calendar; import java.util.Date; import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,565,279
@Override public void enterYield_expr(@NotNull Python3Parser.Yield_exprContext ctx) { }
@Override public void enterYield_expr(@NotNull Python3Parser.Yield_exprContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitYield_arg
{ "repo_name": "IsThisThePayneResidence/intellidots", "path": "src/main/java/ua/edu/hneu/ast/parsers/Python3BaseListener.java", "license": "gpl-3.0", "size": 30027 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
985,853
@ServiceMethod(returns = ReturnType.SINGLE) public RouteFilterRuleInner createOrUpdate( String resourceGroupName, String routeFilterName, String ruleName, RouteFilterRuleInner routeFilterRuleParameters) { return createOrUpdateAsync(resourceGroupName, routeFilterName, rule...
@ServiceMethod(returns = ReturnType.SINGLE) RouteFilterRuleInner function( String resourceGroupName, String routeFilterName, String ruleName, RouteFilterRuleInner routeFilterRuleParameters) { return createOrUpdateAsync(resourceGroupName, routeFilterName, ruleName, routeFilterRuleParameters).block(); }
/** * Creates or updates a route in the specified route filter. * * @param resourceGroupName The name of the resource group. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to...
Creates or updates a route in the specified route filter
createOrUpdate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java", "license": "mit", "size": 56872 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.network.fluent.models.RouteFilterRuleInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.network.fluent.models.RouteFilterRuleInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,544,523
public boolean verify( String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException { return verify(this.getPublicKey(provider), provider); }
boolean function( String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException { return verify(this.getPublicKey(provider), provider); }
/** * verify the request using the passed in provider. */
verify the request using the passed in provider
verify
{ "repo_name": "Qingbao/PasswdManagerAndroid", "path": "src/noconflict/org/bouncycastle/jce/PKCS10CertificationRequest.java", "license": "lgpl-2.1", "size": 24540 }
[ "java.security.InvalidKeyException", "java.security.NoSuchAlgorithmException", "java.security.NoSuchProviderException", "java.security.SignatureException" ]
import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; import java.security.SignatureException;
import java.security.*;
[ "java.security" ]
java.security;
2,608,616
private SnmpPduRequest newErrorResponsePdu(SnmpPduPacket req,int s,int i) { SnmpPduRequest result = newValidResponsePdu(req, null) ; result.errorStatus = s ; result.errorIndex = i ; result.varBindList = req.varBindList ; ((SnmpAdaptorServer)adaptorServer). update...
SnmpPduRequest function(SnmpPduPacket req,int s,int i) { SnmpPduRequest result = newValidResponsePdu(req, null) ; result.errorStatus = s ; result.errorIndex = i ; result.varBindList = req.varBindList ; ((SnmpAdaptorServer)adaptorServer). updateErrorCounters(result.errorStatus) ; return result ; }
/** * Make a response pdu with the specified error status and index. * NOTE: the response pdu share its varBindList with the request pdu. */
Make a response pdu with the specified error status and index
newErrorResponsePdu
{ "repo_name": "shun634501730/java_source_cn", "path": "src_en/com/sun/jmx/snmp/daemon/SnmpRequestHandler.java", "license": "apache-2.0", "size": 43064 }
[ "com.sun.jmx.snmp.SnmpPduPacket", "com.sun.jmx.snmp.SnmpPduRequest" ]
import com.sun.jmx.snmp.SnmpPduPacket; import com.sun.jmx.snmp.SnmpPduRequest;
import com.sun.jmx.snmp.*;
[ "com.sun.jmx" ]
com.sun.jmx;
2,846,427
public void addLesson(InfoShowOccupation infoShowOccupation) { int dayIndex = getDayIndex(infoShowOccupation.getDiaSemana()); DayColumn dayColumn = (DayColumn) this.days.get(dayIndex); int startIndex = getHourIndex(infoShowOccupation.getBeginHourMinuteSecond(), this.minimu...
void function(InfoShowOccupation infoShowOccupation) { int dayIndex = getDayIndex(infoShowOccupation.getDiaSemana()); DayColumn dayColumn = (DayColumn) this.days.get(dayIndex); int startIndex = getHourIndex(infoShowOccupation.getBeginHourMinuteSecond(), this.minimumHourInMinutes, this.slotSize.intValue()); int endIndex...
/** * This method will break infoLesson in minute slots. * * @param infoLesson */
This method will break infoLesson in minute slots
addLesson
{ "repo_name": "kwangkim/fenixedu-academic", "path": "src/main/java/org/fenixedu/academic/servlet/taglib/sop/v3/TimeTable.java", "license": "lgpl-3.0", "size": 8269 }
[ "org.fenixedu.academic.dto.InfoShowOccupation" ]
import org.fenixedu.academic.dto.InfoShowOccupation;
import org.fenixedu.academic.dto.*;
[ "org.fenixedu.academic" ]
org.fenixedu.academic;
632,663
public Result activateUserProcess(@PathParam("id") Long userId, Context context) { // get the user who executes this action User executingUser = context.getAttribute("user", User.class); if (executingUser.getId() == userId) // the admin wants to disable his own account, this ...
Result function(@PathParam("id") Long userId, Context context) { User executingUser = context.getAttribute("user", User.class); if (executingUser.getId() == userId) return Results.redirect(context.getContextPath() + STR); boolean active = User.activate(userId); User user = User.getById(userId); String from = xcmConfigu...
/** * Activates or deactivates the user with the given ID. * * @param userId * ID of a user * @param context * the context of this request * @return users overview page */
Activates or deactivates the user with the given ID
activateUserProcess
{ "repo_name": "Xceptance/XCMailr", "path": "xcmailr-webapp/src/main/java/controllers/AdminHandler.java", "license": "apache-2.0", "size": 23975 }
[ "java.util.Optional", "ninja.params.PathParam" ]
import java.util.Optional; import ninja.params.PathParam;
import java.util.*; import ninja.params.*;
[ "java.util", "ninja.params" ]
java.util; ninja.params;
516,844
public void setLangPropsService(final LangPropsService langPropsService) { this.langPropsService = langPropsService; }
void function(final LangPropsService langPropsService) { this.langPropsService = langPropsService; }
/** * Sets the language service with the specified language service. * * @param langPropsService the specified language service */
Sets the language service with the specified language service
setLangPropsService
{ "repo_name": "446541492/solo", "path": "src/main/java/org/b3log/solo/service/StatisticMgmtService.java", "license": "apache-2.0", "size": 14248 }
[ "org.b3log.latke.service.LangPropsService" ]
import org.b3log.latke.service.LangPropsService;
import org.b3log.latke.service.*;
[ "org.b3log.latke" ]
org.b3log.latke;
280,345
protected BusinessObjectFormatEntity createBusinessObjectFormatEntity(boolean includeAttributeDefinition) { BusinessObjectFormatEntity businessObjectFormatEntity = new BusinessObjectFormatEntity(); businessObjectFormatEntity.setBusinessObjectDefinition(createBusinessObjectDefinition()); ...
BusinessObjectFormatEntity function(boolean includeAttributeDefinition) { BusinessObjectFormatEntity businessObjectFormatEntity = new BusinessObjectFormatEntity(); businessObjectFormatEntity.setBusinessObjectDefinition(createBusinessObjectDefinition()); businessObjectFormatEntity.setDescription("test"); businessObjectF...
/** * Creates and persists a new business object format entity. * * @return the newly created business object format entity. */
Creates and persists a new business object format entity
createBusinessObjectFormatEntity
{ "repo_name": "seoj/herd", "path": "herd-code/herd-dao/src/test/java/org/finra/herd/dao/AbstractDaoTest.java", "license": "apache-2.0", "size": 127305 }
[ "java.util.ArrayList", "java.util.List", "org.finra.herd.model.jpa.BusinessObjectDataAttributeDefinitionEntity", "org.finra.herd.model.jpa.BusinessObjectFormatEntity" ]
import java.util.ArrayList; import java.util.List; import org.finra.herd.model.jpa.BusinessObjectDataAttributeDefinitionEntity; import org.finra.herd.model.jpa.BusinessObjectFormatEntity;
import java.util.*; import org.finra.herd.model.jpa.*;
[ "java.util", "org.finra.herd" ]
java.util; org.finra.herd;
1,538,475
@Test public void defaultValues(){ assertEquals("default int value should be zero", 0, foo.getInt()); assertEquals("default long value should be zero", 0l, foo.getLong()); assertEquals("default float value should be zero", 0f, foo.getFloat(), 0.00001); assertFalse("default boolean value should be false", fo...
void function(){ assertEquals(STR, 0, foo.getInt()); assertEquals(STR, 0l, foo.getLong()); assertEquals(STR, 0f, foo.getFloat(), 0.00001); assertFalse(STR, foo.getBoolean()); assertNull(STR, foo.getObject()); }
/** * When not stubbed mocks will return these default values */
When not stubbed mocks will return these default values
defaultValues
{ "repo_name": "tiefenauer/MockitoExample", "path": "test/test/info/tiefenauer/mockitoExample/MockitoTest.java", "license": "gpl-2.0", "size": 9178 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,554,264
@SuppressWarnings({"unchecked", "deprecation", "rawtypes"}) @Override public Multimap getItemAttributeModifiers() { Multimap multimap = super.getItemAttributeModifiers(); multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e...
@SuppressWarnings({STR, STR, STR}) Multimap function() { Multimap multimap = super.getItemAttributeModifiers(); multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, STR, this.attackDamage, 0)); return multimap; }
/** * Gets a map of item attribute modifiers, used by ItemSword to increase hit damage. */
Gets a map of item attribute modifiers, used by ItemSword to increase hit damage
getItemAttributeModifiers
{ "repo_name": "CosmicDan-Minecraft/AncientWarfare2_CosmicDanFork", "path": "src/main/java/net/shadowmage/ancientwarfare/core/item/ItemQuill.java", "license": "gpl-3.0", "size": 4344 }
[ "com.google.common.collect.Multimap", "net.minecraft.entity.SharedMonsterAttributes", "net.minecraft.entity.ai.attributes.AttributeModifier" ]
import com.google.common.collect.Multimap; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.attributes.AttributeModifier;
import com.google.common.collect.*; import net.minecraft.entity.*; import net.minecraft.entity.ai.attributes.*;
[ "com.google.common", "net.minecraft.entity" ]
com.google.common; net.minecraft.entity;
1,085,848
void start(Collector collector) throws IOException;
void start(Collector collector) throws IOException;
/** * The start event is used to immediately consume bytes form the * underlying transport, it does not require a select to check * if the socket is read ready which improves performance. Also, * when a response has been delivered the next request from the * pipeline is consumed immediately. ...
The start event is used to immediately consume bytes form the underlying transport, it does not require a select to check if the socket is read ready which improves performance. Also, when a response has been delivered the next request from the pipeline is consumed immediately
start
{ "repo_name": "ggeorg/chillverse", "path": "simple-http/src/main/java/org/simpleframework/http/core/Controller.java", "license": "apache-2.0", "size": 3979 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,040,098
public static DomainService getDomainService(final DomainType type) { switch (type) { case EXTERNAL: if (getFactory().externalDomainService == null) { SilverTrace .error( "admin", getFactory().getClass().getSimpleName() ...
static DomainService function(final DomainType type) { switch (type) { case EXTERNAL: if (getFactory().externalDomainService == null) { SilverTrace .error( "admin", getFactory().getClass().getSimpleName() + STR, STR, STR); } return getFactory().externalDomainService; case SQL: if (getFactory().sqlDomainService == null)...
/** * Gets a DomainService instance. * @return a DomainService instance. */
Gets a DomainService instance
getDomainService
{ "repo_name": "CecileBONIN/Silverpeas-Core", "path": "lib-core/src/main/java/org/silverpeas/admin/domain/DomainServiceFactory.java", "license": "agpl-3.0", "size": 3769 }
[ "com.stratelia.silverpeas.silvertrace.SilverTrace" ]
import com.stratelia.silverpeas.silvertrace.SilverTrace;
import com.stratelia.silverpeas.silvertrace.*;
[ "com.stratelia.silverpeas" ]
com.stratelia.silverpeas;
266,355
@SuppressWarnings("unused") final void handlePath(ByteBuffer buffer, ParseState state, HttpServerExchange exchange) { StringBuilder stringBuilder = state.stringBuilder; int parseState = state.parseState; int canonicalPathStart = state.pos; boolean urlDecodeRequired = state.urlDec...
@SuppressWarnings(STR) final void handlePath(ByteBuffer buffer, ParseState state, HttpServerExchange exchange) { StringBuilder stringBuilder = state.stringBuilder; int parseState = state.parseState; int canonicalPathStart = state.pos; boolean urlDecodeRequired = state.urlDecodeRequired; while (buffer.hasRemaining()) { ...
/** * Parses a path value * * @param buffer The buffer * @param state The current state * @param exchange The exchange builder * @return The number of bytes remaining */
Parses a path value
handlePath
{ "repo_name": "jasonchaffee/undertow", "path": "core/src/main/java/io/undertow/server/protocol/http/HttpRequestParser.java", "license": "apache-2.0", "size": 36886 }
[ "io.undertow.UndertowMessages", "io.undertow.server.HttpServerExchange", "java.nio.ByteBuffer" ]
import io.undertow.UndertowMessages; import io.undertow.server.HttpServerExchange; import java.nio.ByteBuffer;
import io.undertow.*; import io.undertow.server.*; import java.nio.*;
[ "io.undertow", "io.undertow.server", "java.nio" ]
io.undertow; io.undertow.server; java.nio;
2,816,061
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } UserAccountManagementGranularInformation userAccountManagementGranularInformation = (UserAccountManagementGranularInformation) o; r...
boolean function(java.lang.Object o) { if (this == o) { return true; } if (o == null getClass() != o.getClass()) { return false; } UserAccountManagementGranularInformation userAccountManagementGranularInformation = (UserAccountManagementGranularInformation) o; return Objects.equals(this.canManageAccountSecuritySettings...
/** * Compares objects. * * @return true or false depending on comparison result. */
Compares objects
equals
{ "repo_name": "docusign/docusign-java-client", "path": "src/main/java/com/docusign/esign/model/UserAccountManagementGranularInformation.java", "license": "mit", "size": 26315 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
778,355
protected EventHandler<JobFinishEvent> createJobFinishEventHandler() { return new JobFinishEventHandler(); }
EventHandler<JobFinishEvent> function() { return new JobFinishEventHandler(); }
/** * create an event handler that handles the job finish event. * @return the job finish event handler. */
create an event handler that handles the job finish event
createJobFinishEventHandler
{ "repo_name": "jsrudani/HadoopHDFSProject", "path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/MRAppMaster.java", "license": "apache-2.0", "size": 55514 }
[ "org.apache.hadoop.mapreduce.v2.app.job.event.JobFinishEvent", "org.apache.hadoop.yarn.event.EventHandler" ]
import org.apache.hadoop.mapreduce.v2.app.job.event.JobFinishEvent; import org.apache.hadoop.yarn.event.EventHandler;
import org.apache.hadoop.mapreduce.v2.app.job.event.*; import org.apache.hadoop.yarn.event.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
787,962
void setQuota(String src, long namespaceQuota, long diskspaceQuota) throws IOException { // sanity check if ((namespaceQuota <= 0 && namespaceQuota != HdfsConstants.QUOTA_DONT_SET && namespaceQuota != HdfsConstants.QUOTA_RESET) || (diskspaceQuota <= 0 && diskspaceQuota != HdfsConstants...
void setQuota(String src, long namespaceQuota, long diskspaceQuota) throws IOException { if ((namespaceQuota <= 0 && namespaceQuota != HdfsConstants.QUOTA_DONT_SET && namespaceQuota != HdfsConstants.QUOTA_RESET) (diskspaceQuota <= 0 && diskspaceQuota != HdfsConstants.QUOTA_DONT_SET && diskspaceQuota != HdfsConstants.QU...
/** * Sets or resets quotas for a directory. * @see ClientProtocol#setQuota(String, long, long) */
Sets or resets quotas for a directory
setQuota
{ "repo_name": "jonathangizmo/HadoopDistJ", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java", "license": "mit", "size": 117695 }
[ "java.io.FileNotFoundException", "java.io.IOException", "org.apache.hadoop.hdfs.protocol.DSQuotaExceededException", "org.apache.hadoop.hdfs.protocol.HdfsConstants", "org.apache.hadoop.hdfs.protocol.NSQuotaExceededException", "org.apache.hadoop.hdfs.protocol.SnapshotAccessControlException", "org.apache.h...
import java.io.FileNotFoundException; import java.io.IOException; import org.apache.hadoop.hdfs.protocol.DSQuotaExceededException; import org.apache.hadoop.hdfs.protocol.HdfsConstants; import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException; import org.apache.hadoop.hdfs.protocol.SnapshotAccessControlException;...
import java.io.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.ipc.*; import org.apache.hadoop.security.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
586,855
@Override public void stop(BundleContext bc) throws Exception { context = null; logger.debug("XBMC binding has been stopped"); }
void function(BundleContext bc) throws Exception { context = null; logger.debug(STR); }
/** * Called whenever the OSGi framework stops our bundle */
Called whenever the OSGi framework stops our bundle
stop
{ "repo_name": "computergeek1507/openhab", "path": "bundles/binding/org.openhab.binding.xbmc/src/main/java/org/openhab/binding/xbmc/internal/XbmcActivator.java", "license": "epl-1.0", "size": 1512 }
[ "org.osgi.framework.BundleContext" ]
import org.osgi.framework.BundleContext;
import org.osgi.framework.*;
[ "org.osgi.framework" ]
org.osgi.framework;
1,674,164
@Test public void testGetBlockLocationMetric() throws Exception { Path file1_Path = new Path(TEST_ROOT_DIR_PATH, "file1.dat"); // When cluster starts first time there are no file (read,create,open) // operations so metric GetBlockLocations should be 0. assertCounter("GetBlockLocations", 0L, getMet...
void function() throws Exception { Path file1_Path = new Path(TEST_ROOT_DIR_PATH, STR); assertCounter(STR, 0L, getMetrics(NN_METRICS)); createFile(file1_Path,100,(short)2); updateMetrics(); assertCounter(STR, 0L, getMetrics(NN_METRICS)); readFile(fs, file1_Path); updateMetrics(); assertCounter(STR, 1L, getMetrics(NN_ME...
/** * Test numGetBlockLocations metric * * Test initiates and performs file operations (create,read,close,open file ) * which results in metrics changes. These metrics changes are updated and * tested for correctness. * * create file operation does not increment numGetBlockLocation * one...
Test numGetBlockLocations metric Test initiates and performs file operations (create,read,close,open file ) which results in metrics changes. These metrics changes are updated and tested for correctness. create file operation does not increment numGetBlockLocation one read file operation increments numGetBlockLocation ...
testGetBlockLocationMetric
{ "repo_name": "songweijia/fffs", "path": "sources/hadoop-2.4.1-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java", "license": "apache-2.0", "size": 18199 }
[ "org.apache.hadoop.fs.Path", "org.apache.hadoop.test.MetricsAsserts" ]
import org.apache.hadoop.fs.Path; import org.apache.hadoop.test.MetricsAsserts;
import org.apache.hadoop.fs.*; import org.apache.hadoop.test.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
387,644
@Override public void readFromNBT(NBTTagCompound nbtTagCompound) { super.readFromNBT(nbtTagCompound); this.readItems(nbtTagCompound, "dwItems", true); // Compatibility this.readItems(nbtTagCompound, "wmItems", true); // Compatibility this.burnTime = nbtTagCompound.getShort("burnTime"); this.slot0Ti...
void function(NBTTagCompound nbtTagCompound) { super.readFromNBT(nbtTagCompound); this.readItems(nbtTagCompound, STR, true); this.readItems(nbtTagCompound, STR, true); this.burnTime = nbtTagCompound.getShort(STR); this.slot0Time = nbtTagCompound.getShort(STR); this.slot1Time = nbtTagCompound.getShort(STR); this.slot2Ti...
/** * Reads a tile entity from NBT. */
Reads a tile entity from NBT
readFromNBT
{ "repo_name": "GollumTeam/JammyFurniture", "path": "src/main/java/com/gollum/jammyfurniture/common/tilesentities/iron/TileEntityIronBlocksTwo.java", "license": "gpl-2.0", "size": 10275 }
[ "net.minecraft.nbt.NBTTagCompound" ]
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.*;
[ "net.minecraft.nbt" ]
net.minecraft.nbt;
1,939,566
protected IOException copyRange(InputStream istream, ServletOutputStream ostream) { // first check if the istream is valid if (istream == null) { return new IOException("Incoming stream is null"); } // Copy the input stream to the output stream IOException exception = null; byte buffer[] = ...
IOException function(InputStream istream, ServletOutputStream ostream) { if (istream == null) { return new IOException(STR); } IOException exception = null; byte buffer[] = new byte[input]; int len = buffer.length; while (true) { try { len = istream.read(buffer); if (len == -1) { break; } ostream.write(buffer, 0, len);...
/** * Copy the contents of the specified input stream to the specified output * stream. * * @param istream The input stream to read from * @param ostream The output stream to write to * @return Exception which occurred during processing */
Copy the contents of the specified input stream to the specified output stream
copyRange
{ "repo_name": "stsiano/org.ops4j.pax.web", "path": "pax-web-tomcat/src/main/java/org/ops4j/pax/web/service/tomcat/internal/TomcatResourceServlet.java", "license": "apache-2.0", "size": 12408 }
[ "java.io.IOException", "java.io.InputStream", "javax.servlet.ServletOutputStream" ]
import java.io.IOException; import java.io.InputStream; import javax.servlet.ServletOutputStream;
import java.io.*; import javax.servlet.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
557,145
@XmlElement(name = "operationId") @XmlJavaTypeAdapter(KapuaIdAdapter.class) KapuaId getOperationId();
@XmlElement(name = STR) @XmlJavaTypeAdapter(KapuaIdAdapter.class) KapuaId getOperationId();
/** * Gets the {@link DeviceManagementOperation#getId()}. * * @return The {@link DeviceManagementOperation#getId()}. * @since 1.0.0 */
Gets the <code>DeviceManagementOperation#getId()</code>
getOperationId
{ "repo_name": "LeoNerdoG/kapua", "path": "service/device/management/registry/api/src/main/java/org/eclipse/kapua/service/device/management/registry/operation/notification/ManagementOperationNotification.java", "license": "epl-1.0", "size": 4608 }
[ "javax.xml.bind.annotation.XmlElement", "javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter", "org.eclipse.kapua.model.id.KapuaId", "org.eclipse.kapua.model.id.KapuaIdAdapter" ]
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.eclipse.kapua.model.id.KapuaId; import org.eclipse.kapua.model.id.KapuaIdAdapter;
import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.adapters.*; import org.eclipse.kapua.model.id.*;
[ "javax.xml", "org.eclipse.kapua" ]
javax.xml; org.eclipse.kapua;
2,059,180
public NettyServerBuilder channelType(Class<? extends ServerChannel> channelType) { this.channelType = Preconditions.checkNotNull(channelType); return this; }
NettyServerBuilder function(Class<? extends ServerChannel> channelType) { this.channelType = Preconditions.checkNotNull(channelType); return this; }
/** * Specify the channel type to use, by default we use {@link NioServerSocketChannel}. */
Specify the channel type to use, by default we use <code>NioServerSocketChannel</code>
channelType
{ "repo_name": "aglne/grpc-java", "path": "netty/src/main/java/io/grpc/netty/NettyServerBuilder.java", "license": "bsd-3-clause", "size": 8391 }
[ "com.google.common.base.Preconditions", "io.netty.channel.ServerChannel" ]
import com.google.common.base.Preconditions; import io.netty.channel.ServerChannel;
import com.google.common.base.*; import io.netty.channel.*;
[ "com.google.common", "io.netty.channel" ]
com.google.common; io.netty.channel;
2,224,804
public Matrix4f getLocalTransform() { return localTransform; }
Matrix4f function() { return localTransform; }
/** * Getter for property 'localTransform'. * * @return Value for property 'localTransform'. */
Getter for property 'localTransform'
getLocalTransform
{ "repo_name": "Ray1184/JRD3_Project", "path": "JRD3_Engine/src/main/java/org/jrd3/engine/core/items/SceneNode.java", "license": "apache-2.0", "size": 5991 }
[ "org.joml.Matrix4f" ]
import org.joml.Matrix4f;
import org.joml.*;
[ "org.joml" ]
org.joml;
2,722,526
private void applyEditorValue() { TreeItem treeItem = treeEditor.getItem(); // treeItem can be null when view is opened if ((treeItem == null) || treeItem.isDisposed()) { return; } IPropertySheetEntry entry = (IPropertySheetEntry) treeItem.getData(); entry.applyEditorValue()...
void function() { TreeItem treeItem = treeEditor.getItem(); if ((treeItem == null) treeItem.isDisposed()) { return; } IPropertySheetEntry entry = (IPropertySheetEntry) treeItem.getData(); entry.applyEditorValue(); }
/** * Asks the entry currently being edited to apply its current cell editor * value. */
Asks the entry currently being edited to apply its current cell editor value
applyEditorValue
{ "repo_name": "appnativa/rare", "path": "projects/eclipse/studio/src/com/appnativa/studio/properties/PropertySheetViewer.java", "license": "gpl-3.0", "size": 44362 }
[ "org.eclipse.swt.widgets.TreeItem", "org.eclipse.ui.views.properties.IPropertySheetEntry" ]
import org.eclipse.swt.widgets.TreeItem; import org.eclipse.ui.views.properties.IPropertySheetEntry;
import org.eclipse.swt.widgets.*; import org.eclipse.ui.views.properties.*;
[ "org.eclipse.swt", "org.eclipse.ui" ]
org.eclipse.swt; org.eclipse.ui;
1,479,231
private Response getContextsV2(String version, HttpHeaders headers, UriInfo uriInfo) { JPARSLogger.entering(CLASS_NAME, "getContextsV2", new Object[] { "GET", version, uriInfo.getRequestUri().toASCIIString() }); try { final ContextsCatalog result = new ContextsCatalog(); fin...
Response function(String version, HttpHeaders headers, UriInfo uriInfo) { JPARSLogger.entering(CLASS_NAME, STR, new Object[] { "GET", version, uriInfo.getRequestUri().toASCIIString() }); try { final ContextsCatalog result = new ContextsCatalog(); final Set<String> contexts = getPersistenceFactory().getPersistenceContex...
/** * Returns a response object containing the available contexts list. Used in JPARS 2.0 or above. * * @param version the version ("v2.0" or higher) * @param headers the HTTP headers * @param uriInfo the UTL info * @return Response object */
Returns a response object containing the available contexts list. Used in JPARS 2.0 or above
getContextsV2
{ "repo_name": "gameduell/eclipselink.runtime", "path": "dbws/org.eclipse.persistence.dbws/src/org/eclipse/persistence/jpa/rs/resources/common/AbstractPersistenceResource.java", "license": "epl-1.0", "size": 11232 }
[ "java.util.Set", "javax.ws.rs.core.HttpHeaders", "javax.ws.rs.core.Response", "javax.ws.rs.core.UriInfo", "javax.xml.bind.JAXBException", "org.eclipse.persistence.internal.jpa.rs.metadata.model.v2.ContextsCatalog", "org.eclipse.persistence.internal.jpa.rs.metadata.model.v2.Resource", "org.eclipse.pers...
import java.util.Set; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.Response; import javax.ws.rs.core.UriInfo; import javax.xml.bind.JAXBException; import org.eclipse.persistence.internal.jpa.rs.metadata.model.v2.ContextsCatalog; import org.eclipse.persistence.internal.jpa.rs.metadata.model.v2.Resource; ...
import java.util.*; import javax.ws.rs.core.*; import javax.xml.bind.*; import org.eclipse.persistence.internal.jpa.rs.metadata.model.v2.*; import org.eclipse.persistence.jpa.rs.exceptions.*; import org.eclipse.persistence.jpa.rs.features.*; import org.eclipse.persistence.jpa.rs.util.*;
[ "java.util", "javax.ws", "javax.xml", "org.eclipse.persistence" ]
java.util; javax.ws; javax.xml; org.eclipse.persistence;
2,563,523
void publish(StatsWrapper statsWrapper) throws IOException { File tempFile = new File(statsOutputFile.getAbsolutePath() + ".tmp"); if (tempFile.createNewFile()) { OutputStream outputStream = new BufferedOutputStream(new FileOutputStream(tempFile)); DatumWriter<StatsWrapper> statsWrapperDatumWriter...
void publish(StatsWrapper statsWrapper) throws IOException { File tempFile = new File(statsOutputFile.getAbsolutePath() + ".tmp"); if (tempFile.createNewFile()) { OutputStream outputStream = new BufferedOutputStream(new FileOutputStream(tempFile)); DatumWriter<StatsWrapper> statsWrapperDatumWriter = new SpecificDatumWr...
/** * Publishes stats to a local file in JSON format. * @param statsWrapper the {@link StatsWrapper} to be published * @throws IOException */
Publishes stats to a local file in JSON format
publish
{ "repo_name": "daniellitoc/ambry-Research", "path": "ambry-server/src/main/java/com.github.ambry.server/StatsManager.java", "license": "apache-2.0", "size": 8943 }
[ "com.github.ambry.store.Store", "java.io.BufferedOutputStream", "java.io.File", "java.io.FileOutputStream", "java.io.IOException", "java.io.OutputStream", "org.apache.avro.io.DatumWriter", "org.apache.avro.io.EncoderFactory", "org.apache.avro.io.JsonEncoder", "org.apache.avro.specific.SpecificDatu...
import com.github.ambry.store.Store; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import org.apache.avro.io.DatumWriter; import org.apache.avro.io.EncoderFactory; import org.apache.avro.io.JsonEncoder; import org.apac...
import com.github.ambry.store.*; import java.io.*; import org.apache.avro.io.*; import org.apache.avro.specific.*;
[ "com.github.ambry", "java.io", "org.apache.avro" ]
com.github.ambry; java.io; org.apache.avro;
776,764
protected void sequence_GraphPolicies(ISerializationContext context, GraphPolicies semanticObject) { genericSequencer.createSequence(context, semanticObject); }
void function(ISerializationContext context, GraphPolicies semanticObject) { genericSequencer.createSequence(context, semanticObject); }
/** * Contexts: * GraphPolicies returns GraphPolicies * * Constraint: * (graphModelPolicies=ModelName policies+=Policies+) */
Contexts: GraphPolicies returns GraphPolicies Constraint: (graphModelPolicies=ModelName policies+=Policies+)
sequence_GraphPolicies
{ "repo_name": "gw4e/gw4e.project", "path": "bundles/editor/gw4e.eclipse.dsl.policies/src-gen/gw4e/eclipse/dsl/serializer/DSLPoliciesSemanticSequencer.java", "license": "mit", "size": 23264 }
[ "org.eclipse.xtext.serializer.ISerializationContext" ]
import org.eclipse.xtext.serializer.ISerializationContext;
import org.eclipse.xtext.serializer.*;
[ "org.eclipse.xtext" ]
org.eclipse.xtext;
607,984
protected FilterConfig getFilterConfig() { return (this.filterConfig); }
FilterConfig function() { return (this.filterConfig); }
/** * Return the filter configuration object for this filter. */
Return the filter configuration object for this filter
getFilterConfig
{ "repo_name": "mike10004/shiro-stormpath-example", "path": "src/main/java/com/github/mike10004/examples/shirostormpath/UserInfoFilter.java", "license": "mit", "size": 5299 }
[ "javax.servlet.FilterConfig" ]
import javax.servlet.FilterConfig;
import javax.servlet.*;
[ "javax.servlet" ]
javax.servlet;
2,129,153
@Test public void testPowerPointMetadataEarly() throws Exception { String[] extensions = new String[]{ "pptx", "pptm", "ppsm", "ppsx", "potm" //"thmx", // TIKA-418: Will be supported in POI 3.7 beta 2 //"xps" // TIKA-418: Not yet supported by POI }...
void function() throws Exception { String[] extensions = new String[]{ "pptx", "pptm", "ppsm", "ppsx", "potm" }; final String[] mimeTypes = new String[]{ STR, STR, STR, STR, STR }; for (int i = 0; i < extensions.length; i++) { String extension = extensions[i]; final String filename = STR + extension; Parser parser = ne...
/** * Test that the metadata is already extracted when the body is processed. * See TIKA-1109 */
Test that the metadata is already extracted when the body is processed. See TIKA-1109
testPowerPointMetadataEarly
{ "repo_name": "zamattiac/tika", "path": "tika-parsers/src/test/java/org/apache/tika/parser/microsoft/ooxml/SXSLFExtractorTest.java", "license": "apache-2.0", "size": 23587 }
[ "org.apache.tika.metadata.Metadata", "org.apache.tika.parser.AutoDetectParser", "org.apache.tika.parser.Parser" ]
import org.apache.tika.metadata.Metadata; import org.apache.tika.parser.AutoDetectParser; import org.apache.tika.parser.Parser;
import org.apache.tika.metadata.*; import org.apache.tika.parser.*;
[ "org.apache.tika" ]
org.apache.tika;
598,080
Set<String> extractTokenNames(String expression, boolean followCrossReferences) throws QuickFixException;
Set<String> extractTokenNames(String expression, boolean followCrossReferences) throws QuickFixException;
/** * Extracts the set of token names referenced in the given string expression. * * @param expression The string containing references to token (and potentially other literals). * @param followCrossReferences If true, this will include any cross referenced token names. For example, with * ...
Extracts the set of token names referenced in the given string expression
extractTokenNames
{ "repo_name": "TribeMedia/aura", "path": "aura/src/main/java/org/auraframework/css/TokenValueProvider.java", "license": "apache-2.0", "size": 2697 }
[ "java.util.Set", "org.auraframework.throwable.quickfix.QuickFixException" ]
import java.util.Set; import org.auraframework.throwable.quickfix.QuickFixException;
import java.util.*; import org.auraframework.throwable.quickfix.*;
[ "java.util", "org.auraframework.throwable" ]
java.util; org.auraframework.throwable;
1,504,154
public static long copyWithTimeout(InputStream is, OutputStream os, long timeout) throws IOException, TimeoutException { byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; int n = 0; long startTime = System.currentTimeMillis(); long size = 0l; while (-1 != (n = is.read(buffer))) { if (System.c...
static long function(InputStream is, OutputStream os, long timeout) throws IOException, TimeoutException { byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; int n = 0; long startTime = System.currentTimeMillis(); long size = 0l; while (-1 != (n = is.read(buffer))) { if (System.currentTimeMillis() - startTime > timeout) { ...
/** * Copy from the input stream to the output stream and tries to exit if the copy exceeds the timeout. The timeout * is best effort. Specifically, `is.read` will not be interrupted. * * @param is The input stream to read bytes from. * @param os The output stream to write bytes to. * @param...
Copy from the input stream to the output stream and tries to exit if the copy exceeds the timeout. The timeout is best effort. Specifically, `is.read` will not be interrupted
copyWithTimeout
{ "repo_name": "jon-wei/java-util", "path": "src/main/java/com/metamx/common/StreamUtils.java", "license": "apache-2.0", "size": 6383 }
[ "java.io.IOException", "java.io.InputStream", "java.io.OutputStream", "java.util.concurrent.TimeoutException" ]
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.concurrent.TimeoutException;
import java.io.*; import java.util.concurrent.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,946,089
protected static <T extends Enum> void parseEnumValueList(Class<T> c, List<T> list, String value, char... separators) { EwsUtilities.EwsAssert(c.isEnum(), "EwsUtilities.ParseEnumValueList", "T is not an enum type."); StringBuffer regexp = new StringBuffer(""); regexp.append("["); for (char s : separa...
static <T extends Enum> void function(Class<T> c, List<T> list, String value, char... separators) { EwsUtilities.EwsAssert(c.isEnum(), STR, STR); StringBuffer regexp = new StringBuffer(STR[STR[STRSTR]STR]"); String[] enumValues = value.split(regexp.toString()); for (String enumValue : enumValues) { for (Object o : c.ge...
/** * Parses an enum value list. * * @param <T> * the generic type * @param c * the c * @param list * the list * @param value * the value * @param separators * the separators */
Parses an enum value list
parseEnumValueList
{ "repo_name": "java-goodies/ews-java-api", "path": "src/main/java/microsoft/exchange/webservices/data/EwsUtilities.java", "license": "mit", "size": 51763 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,551,302
void unblockAllServicesOnDestination(PerunSession perunSession, int destinationId) throws PrivilegeException, FacilityNotExistsException, DestinationNotExistsException;
void unblockAllServicesOnDestination(PerunSession perunSession, int destinationId) throws PrivilegeException, FacilityNotExistsException, DestinationNotExistsException;
/** * Erase all the possible denials on this destination. * From this moment on, there are no Services being denied on this destination. * * @param perunSession * @param destinationId The id of a destination we want to clear of all the denials. * */
Erase all the possible denials on this destination. From this moment on, there are no Services being denied on this destination
unblockAllServicesOnDestination
{ "repo_name": "martin-kuba/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/ServicesManager.java", "license": "bsd-2-clause", "size": 46186 }
[ "cz.metacentrum.perun.core.api.exceptions.DestinationNotExistsException", "cz.metacentrum.perun.core.api.exceptions.FacilityNotExistsException", "cz.metacentrum.perun.core.api.exceptions.PrivilegeException" ]
import cz.metacentrum.perun.core.api.exceptions.DestinationNotExistsException; import cz.metacentrum.perun.core.api.exceptions.FacilityNotExistsException; import cz.metacentrum.perun.core.api.exceptions.PrivilegeException;
import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,327,165