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
private void updateTitle() { final StyledMessageUtils styleUtils = new StyledMessageUtils(); String temp = styleUtils.stripControlCodes(channelInfo.getName()); if (!channelInfo.getTopic().isEmpty()) { temp += " - " + styleUtils.stripControlCodes(channelInfo.getTopic()); ...
void function() { final StyledMessageUtils styleUtils = new StyledMessageUtils(); String temp = styleUtils.stripControlCodes(channelInfo.getName()); if (!channelInfo.getTopic().isEmpty()) { temp += STR + styleUtils.stripControlCodes(channelInfo.getTopic()); } setTitle(temp); }
/** * Updates the title of the channel window, and of the main window if appropriate. */
Updates the title of the channel window, and of the main window if appropriate
updateTitle
{ "repo_name": "csmith/DMDirc", "path": "src/main/java/com/dmdirc/Channel.java", "license": "mit", "size": 15671 }
[ "com.dmdirc.ui.messages.StyledMessageUtils" ]
import com.dmdirc.ui.messages.StyledMessageUtils;
import com.dmdirc.ui.messages.*;
[ "com.dmdirc.ui" ]
com.dmdirc.ui;
1,169,006
public void remove(AbstractModel<?> o) { entityManager.remove(o); }
void function(AbstractModel<?> o) { entityManager.remove(o); }
/** * You can only remove attached instances. */
You can only remove attached instances
remove
{ "repo_name": "scoophealth/oscar", "path": "src/main/java/org/oscarehr/common/dao/AbstractDao.java", "license": "gpl-2.0", "size": 9881 }
[ "org.oscarehr.common.model.AbstractModel" ]
import org.oscarehr.common.model.AbstractModel;
import org.oscarehr.common.model.*;
[ "org.oscarehr.common" ]
org.oscarehr.common;
1,326,492
private void saveInFile(CounterModel counterModel) { try { counterListModel.addCounterToList(counterModel); Gson gson = new Gson(); String json = gson.toJson(counterModel) +'\n'; FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_APPEND); fos.write(json.getBytes()); fos.close(); ...
void function(CounterModel counterModel) { try { counterListModel.addCounterToList(counterModel); Gson gson = new Gson(); String json = gson.toJson(counterModel) +'\n'; FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_APPEND); fos.write(json.getBytes()); fos.close(); } catch (FileNotFoundException e) { e.pr...
/** * This method stores all counterData. It takes a new counterModel object * as an arg, and appends it to the file as new line Json string. */
This method stores all counterData. It takes a new counterModel object as an arg, and appends it to the file as new line Json string
saveInFile
{ "repo_name": "bradleyjsimons/CounterApp", "path": "src/ca/ualberta/ca/simons_counter/CounterListActivity.java", "license": "apache-2.0", "size": 12125 }
[ "android.content.Context", "com.google.gson.Gson", "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException" ]
import android.content.Context; import com.google.gson.Gson; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException;
import android.content.*; import com.google.gson.*; import java.io.*;
[ "android.content", "com.google.gson", "java.io" ]
android.content; com.google.gson; java.io;
2,686,075
private void verifyChecksum(HashFunction function, Path file, String expectedChecksum) throws IOException { HashCode actualHash = function.hashBytes(Files.readAllBytes(file)); HashCode expectedHash = HashCode.fromString(expectedChecksum); if (!Objects.equals(actualHash, expectedHash)) { ...
void function(HashFunction function, Path file, String expectedChecksum) throws IOException { HashCode actualHash = function.hashBytes(Files.readAllBytes(file)); HashCode expectedHash = HashCode.fromString(expectedChecksum); if (!Objects.equals(actualHash, expectedHash)) { throw new IOException(STR + STR + expectedChec...
/** * Verify if the expected checksum is equal to the checksum of the given file. * * @param function the checksum function like MD5, SHA256 used to generate the checksum from the file * @param file the file we want to calculate the checksum from * @param expectedChecksum the expected checksum ...
Verify if the expected checksum is equal to the checksum of the given file
verifyChecksum
{ "repo_name": "Xephi/AuthMeReloaded", "path": "src/main/java/fr/xephi/authme/service/GeoIpService.java", "license": "gpl-3.0", "size": 13200 }
[ "com.google.common.hash.HashCode", "com.google.common.hash.HashFunction", "java.io.IOException", "java.nio.file.Files", "java.nio.file.Path", "java.util.Objects" ]
import com.google.common.hash.HashCode; import com.google.common.hash.HashFunction; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.Objects;
import com.google.common.hash.*; import java.io.*; import java.nio.file.*; import java.util.*;
[ "com.google.common", "java.io", "java.nio", "java.util" ]
com.google.common; java.io; java.nio; java.util;
1,075,936
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { splitPane = new javax.swing.JSplitPane(); tabbedPane = new javax.swing.JTabbedPane(); modeScrollPane = new javax.swing.JScrollPane...
@SuppressWarnings(STR) void function() { splitPane = new javax.swing.JSplitPane(); tabbedPane = new javax.swing.JTabbedPane(); modeScrollPane = new javax.swing.JScrollPane(); stateScrollPane = new javax.swing.JScrollPane(); layoutScrollPane = new javax.swing.JScrollPane(); themeScrollPane = new javax.swing.JScrollPane(...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "exbin/deltahex-java", "path": "tools/bined-swing-example/src/main/java/org/exbin/bined/swing/example/BinEdExampleDiffPanel.java", "license": "apache-2.0", "size": 5728 }
[ "javax.swing.JScrollPane" ]
import javax.swing.JScrollPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
278,126
public String getExtTablesSql() { return informationSchemaQueries.get(EXT_TABLES); } /** * SQL that overrides DatabaseMetaData#getTypeInfo(). * {@link DatabaseMetaData#getTypeInfo()}
String function() { return informationSchemaQueries.get(EXT_TABLES); } /** * SQL that overrides DatabaseMetaData#getTypeInfo(). * {@link DatabaseMetaData#getTypeInfo()}
/** * Gets the table definitions SQL from the additional configuration. * * @return Table definitions SQL. */
Gets the table definitions SQL from the additional configuration
getExtTablesSql
{ "repo_name": "ceharris/SchemaCrawler", "path": "schemacrawler-api/src/main/java/schemacrawler/schemacrawler/InformationSchemaViews.java", "license": "lgpl-3.0", "size": 8192 }
[ "java.sql.DatabaseMetaData" ]
import java.sql.DatabaseMetaData;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,100,905
public boolean tryReadValue(OutParam<String> value) throws XMLStreamException, ServiceXmlDeserializationException { if (!this.isEmptyElement()) { this.read(); if (this.presentEvent.isCharacters()) { value.setParam(this.readValue()); return true; } else { return fal...
boolean function(OutParam<String> value) throws XMLStreamException, ServiceXmlDeserializationException { if (!this.isEmptyElement()) { this.read(); if (this.presentEvent.isCharacters()) { value.setParam(this.readValue()); return true; } else { return false; } } else { return false; } }
/** * Tries to read value. * * @param value the value * @return boolean * @throws XMLStreamException the XML stream exception * @throws ServiceXmlDeserializationException the service xml deserialization exception */
Tries to read value
tryReadValue
{ "repo_name": "candrews/ews-java-api", "path": "src/main/java/microsoft/exchange/webservices/data/core/EwsXmlReader.java", "license": "mit", "size": 34923 }
[ "javax.xml.stream.XMLStreamException" ]
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.*;
[ "javax.xml" ]
javax.xml;
78,305
public static void markDirty(CompileContext context, final File file) throws IOException { final JavaSourceRootDescriptor rd = context.getProjectDescriptor().getBuildRootIndex().findJavaRootDescriptor(context, file); if (rd != null) { final ProjectDescriptor pd = context.getProjectDescriptor(); pd...
static void function(CompileContext context, final File file) throws IOException { final JavaSourceRootDescriptor rd = context.getProjectDescriptor().getBuildRootIndex().findJavaRootDescriptor(context, file); if (rd != null) { final ProjectDescriptor pd = context.getProjectDescriptor(); pd.fsState.markDirty(context, fi...
/** * Note: marked file will well be visible as "dirty" only on the <b>next</b> compilation round! * @throws IOException */
Note: marked file will well be visible as "dirty" only on the next compilation round
markDirty
{ "repo_name": "liveqmock/platform-tools-idea", "path": "jps/jps-builders/src/org/jetbrains/jps/incremental/FSOperations.java", "license": "apache-2.0", "size": 10878 }
[ "java.io.File", "java.io.IOException", "org.jetbrains.jps.builders.java.JavaSourceRootDescriptor", "org.jetbrains.jps.cmdline.ProjectDescriptor" ]
import java.io.File; import java.io.IOException; import org.jetbrains.jps.builders.java.JavaSourceRootDescriptor; import org.jetbrains.jps.cmdline.ProjectDescriptor;
import java.io.*; import org.jetbrains.jps.builders.java.*; import org.jetbrains.jps.cmdline.*;
[ "java.io", "org.jetbrains.jps" ]
java.io; org.jetbrains.jps;
2,707,058
private int loadDirectory(DataInput in, Counter counter) throws IOException { String parentPath = FSImageSerialization.readString(in); // Rename .snapshot paths if we're doing an upgrade parentPath = renameReservedPathsOnUpgrade(parentPath, getLayoutVersion()); final INodeDirectory parent = INode...
int function(DataInput in, Counter counter) throws IOException { String parentPath = FSImageSerialization.readString(in); parentPath = renameReservedPathsOnUpgrade(parentPath, getLayoutVersion()); final INodeDirectory parent = INodeDirectory.valueOf( namesystem.dir.getINode(parentPath, true), parentPath); return loadCh...
/** * Load all children of a directory * * @param in input to load from * @param counter Counter to increment for namenode startup progress * @return number of child inodes read * @throws IOException */
Load all children of a directory
loadDirectory
{ "repo_name": "zhe-thoughts/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImageFormat.java", "license": "apache-2.0", "size": 54267 }
[ "java.io.DataInput", "java.io.IOException", "org.apache.hadoop.hdfs.server.namenode.startupprogress.StartupProgress" ]
import java.io.DataInput; import java.io.IOException; import org.apache.hadoop.hdfs.server.namenode.startupprogress.StartupProgress;
import java.io.*; import org.apache.hadoop.hdfs.server.namenode.startupprogress.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,562,185
try { // TODO: Handle this exception more gracefully! if (realm == null) log.error("No realm found for path " +request.getServletPath()); String proxyHostName = realm.getProxyHostName(); int proxyPort = realm.getProxyPort(); String proxyPrefix = realm.getProx...
try { if (realm == null) log.error(STR +request.getServletPath()); String proxyHostName = realm.getProxyHostName(); int proxyPort = realm.getProxyPort(); String proxyPrefix = realm.getProxyPrefix(); ReverseProxyConfig reverseProxyConfig = realm.getReverseProxyConfig(); URL url = new URL(request.getRequestURL().toString...
/** * Patch request with proxy settings re realm configuration * @param realm Realm associated with request * @param request Request which Yanel received * @param addQS Additonal query string * @param xml Flag whether returned URL should be XML compatible, e.g. re ampersands * @return URL ...
Patch request with proxy settings re realm configuration
getRequestURLQS
{ "repo_name": "baszero/yanel", "path": "src/webapp/src/java/org/wyona/yanel/servlet/Utils.java", "license": "apache-2.0", "size": 4610 }
[ "java.net.URL", "org.wyona.yanel.core.map.ReverseProxyConfig" ]
import java.net.URL; import org.wyona.yanel.core.map.ReverseProxyConfig;
import java.net.*; import org.wyona.yanel.core.map.*;
[ "java.net", "org.wyona.yanel" ]
java.net; org.wyona.yanel;
639,795
@Override public void onNewIntent(Intent intent) { int typeCheck = Common.treatAsNewTag(intent, this); if (typeCheck == -1 || typeCheck == -2) { // Device or tag does not support Mifare Classic. // Run the only thing that is possible: The tag info tool. Intent...
void function(Intent intent) { int typeCheck = Common.treatAsNewTag(intent, this); if (typeCheck == -1 typeCheck == -2) { Intent i = new Intent(this, TagInfoTool.class); startActivity(i); } }
/** * Handle new Intent as a new tag Intent and if the tag/device does not * support Mifare Classic, then run {@link TagInfoTool}. * @see Common#treatAsNewTag(Intent, android.content.Context) * @see TagInfoTool */
Handle new Intent as a new tag Intent and if the tag/device does not support Mifare Classic, then run <code>TagInfoTool</code>
onNewIntent
{ "repo_name": "martinandroid/MifareClassicTool", "path": "Mifare Classic Tool/app/src/main/java/de/syss/MifareClassicTool/Activities/BasicActivity.java", "license": "gpl-3.0", "size": 2404 }
[ "android.content.Intent", "de.syss.MifareClassicTool" ]
import android.content.Intent; import de.syss.MifareClassicTool;
import android.content.*; import de.syss.*;
[ "android.content", "de.syss" ]
android.content; de.syss;
2,486,736
public static Polygon createEmpty() { return new Polygon(LinearRing.createEmpty(), new ArrayList<LinearRing>(), Dimension.Two, null); }
static Polygon function() { return new Polygon(LinearRing.createEmpty(), new ArrayList<LinearRing>(), Dimension.Two, null); }
/** * Create an empty Polygon * @return An empty Polygon */
Create an empty Polygon
createEmpty
{ "repo_name": "jericks/wkg", "path": "src/main/java/org/cugos/wkg/Polygon.java", "license": "mit", "size": 3530 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,670,364
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<PrivateCloudInner>> getByResourceGroupWithResponseAsync( String resourceGroupName, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<PrivateCloudInner>> function( String resourceGroupName, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId() == null) { return Mono .er...
/** * Get a private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters ...
Get a private cloud
getByResourceGroupWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsClientImpl.java", "license": "mit", "size": 106842 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.avs.fluent.models.PrivateCloudInner" ]
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.avs.fluent.models.PrivateCloudInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.avs.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,926,061
public static BundleDef putBundle(String bundleStr) throws SherlokException { try { BundleDef b = MAPPER.readValue(bundleStr, BundleDef.class); writeBundle(b); return b; } catch (Exception e) { throw new SherlokException(e.getMessage());// FIXME valida...
static BundleDef function(String bundleStr) throws SherlokException { try { BundleDef b = MAPPER.readValue(bundleStr, BundleDef.class); writeBundle(b); return b; } catch (Exception e) { throw new SherlokException(e.getMessage()); } }
/** * PUTs (writes) this bundle to disk. * * @param bundleStr * a {@link BundleDef} as a String * @return the {@link BundleDef}, for convenience */
PUTs (writes) this bundle to disk
putBundle
{ "repo_name": "sherlok/sherlok", "path": "src/main/java/org/sherlok/FileBased.java", "license": "apache-2.0", "size": 15476 }
[ "org.sherlok.mappings.BundleDef", "org.sherlok.mappings.SherlokException" ]
import org.sherlok.mappings.BundleDef; import org.sherlok.mappings.SherlokException;
import org.sherlok.mappings.*;
[ "org.sherlok.mappings" ]
org.sherlok.mappings;
1,121,644
public Instances transform(Instances D) throws Exception { int L = D.classIndex(); d = D.numAttributes() - L; int keep[] = A.append(this.paY,j); // keep all parents and self! Arrays.sort(keep); int remv[] = A.invert(keep,L); // i.e., remove the rest < L Arrays.sort(remv); map = new int[L]; for(int ...
Instances function(Instances D) throws Exception { int L = D.classIndex(); d = D.numAttributes() - L; int keep[] = A.append(this.paY,j); Arrays.sort(keep); int remv[] = A.invert(keep,L); Arrays.sort(remv); map = new int[L]; for(int j = 0; j < L; j++) { map[j] = Arrays.binarySearch(keep,j); } Instances D_ = F.remove(new...
/** * Transform - transform dataset D for this node. * this.j defines the current node index, e.g., 3 * this.paY[] defines parents, e.g., [1,4] * we should remove the rest, e.g., [0,2,5,...,L-1] * @return dataset we should remove all variables from D EXCEPT current node, and parents. ...
Transform - transform dataset D for this node. this.j defines the current node index, e.g., 3 this.paY[] defines parents, e.g., [1,4] we should remove the rest, e.g., [0,2,5,...,L-1]
transform
{ "repo_name": "alispirit/meka", "path": "src/main/java/meka/classifiers/multilabel/cc/CNode.java", "license": "gpl-3.0", "size": 7435 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
414,952
synchronized void setScopeRequest(IProgressMonitor progressMonitor, int scopeType, int scopeId, MonitorTag[] tags) throws ServiceException, IOException { synchronized (lo...
synchronized void setScopeRequest(IProgressMonitor progressMonitor, int scopeType, int scopeId, MonitorTag[] tags) throws ServiceException, IOException { synchronized (lock) { init(null); try { monitor.setScopeRequest(scopeType, scopeId, tags); } catch (IOException e) { disconnect(); throw e; } waitForEndmark(progressM...
/** * Request for redefining the attached main scope. * * @param progressMonitor the progress monitor used for cancellation. * @param scopeType the scope type. * @param scopeId the scope ID. * @param tags the monitor tags, can be null. * @thr...
Request for redefining the attached main scope
setScopeRequest
{ "repo_name": "debabratahazra/OptimaLA", "path": "Optima/com.ose.system/src/com/ose/system/Target.java", "license": "epl-1.0", "size": 501290 }
[ "com.ose.system.service.monitor.MonitorTag", "java.io.IOException", "org.eclipse.core.runtime.IProgressMonitor" ]
import com.ose.system.service.monitor.MonitorTag; import java.io.IOException; import org.eclipse.core.runtime.IProgressMonitor;
import com.ose.system.service.monitor.*; import java.io.*; import org.eclipse.core.runtime.*;
[ "com.ose.system", "java.io", "org.eclipse.core" ]
com.ose.system; java.io; org.eclipse.core;
598,821
@Test public void testT1RV4D3_T1LV4D3() { test_id = getTestId("T1RV4D3", "T1LV4D3", "154"); String src = selectTRVD("T1RV4D3"); String dest = selectTLVD("T1LV4D3"); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace()...
void function() { test_id = getTestId(STR, STR, "154"); String src = selectTRVD(STR); String dest = selectTLVD(STR); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace(); } catch (TokenStreamException e) { e.printStackTrace(); } assertTrue(Success, chec...
/** * Perform the test for the given matrix column (T1RV4D3) and row (T1LV4D3). * */
Perform the test for the given matrix column (T1RV4D3) and row (T1LV4D3)
testT1RV4D3_T1LV4D3
{ "repo_name": "rmulvey/bptest", "path": "src/org.xtuml.bp.als.oal.test/src/org/xtuml/bp/als/oal/test/SingleDimensionFixedArrayAssigmentTest_8_Generics.java", "license": "apache-2.0", "size": 153074 }
[ "org.xtuml.bp.ui.graphics.editor.GraphicalEditor" ]
import org.xtuml.bp.ui.graphics.editor.GraphicalEditor;
import org.xtuml.bp.ui.graphics.editor.*;
[ "org.xtuml.bp" ]
org.xtuml.bp;
2,761,093
static Comparator<ByteFrequency> getByteComparator() { return new Comparator<ByteFrequency>() {
static Comparator<ByteFrequency> getByteComparator() { return new Comparator<ByteFrequency>() {
/** * Sort the list in descending byte order. * * @return The comparator method for using with the Collections.sort() method. */
Sort the list in descending byte order
getByteComparator
{ "repo_name": "davidyee/c333-asn1", "path": "src/part1/key/ByteFrequency.java", "license": "gpl-2.0", "size": 1162 }
[ "java.util.Comparator" ]
import java.util.Comparator;
import java.util.*;
[ "java.util" ]
java.util;
2,470,527
public final StandardException getLockTimeoutException( final Object lockObject, final Object owner, final boolean dumpAllLocks) { if (dumpAllLocks) { dumpAllRWLocks("LOCK TABLE at the time of failure", true, false, true); } return this.localLockMap.getLockTimeoutException(lockObject, owner, ...
final StandardException function( final Object lockObject, final Object owner, final boolean dumpAllLocks) { if (dumpAllLocks) { dumpAllRWLocks(STR, true, false, true); } return this.localLockMap.getLockTimeoutException(lockObject, owner, false); }
/** * Generate a {@link StandardException} for lock timeout for given lock object * name or {@link GfxdLockable}. */
Generate a <code>StandardException</code> for lock timeout for given lock object name or <code>GfxdLockable</code>
getLockTimeoutException
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/engine/locks/GfxdDRWLockService.java", "license": "apache-2.0", "size": 37723 }
[ "com.pivotal.gemfirexd.internal.iapi.error.StandardException" ]
import com.pivotal.gemfirexd.internal.iapi.error.StandardException;
import com.pivotal.gemfirexd.internal.iapi.error.*;
[ "com.pivotal.gemfirexd" ]
com.pivotal.gemfirexd;
1,660,420
public synchronized void activate() { sendNewDeviceEvents(); executor = Executors.newSingleThreadScheduledExecutor(); executor.scheduleAtFixedRate(new HexabusLooper(this), 0, getPollFrequency(), TimeUnit.SECONDS); }
synchronized void function() { sendNewDeviceEvents(); executor = Executors.newSingleThreadScheduledExecutor(); executor.scheduleAtFixedRate(new HexabusLooper(this), 0, getPollFrequency(), TimeUnit.SECONDS); }
/** * Activates the HexabusLooper to run on a Scheduled basis */
Activates the HexabusLooper to run on a Scheduled basis
activate
{ "repo_name": "B2M-Software/project-drahtlos-smg20", "path": "actuatorclient.hexabus.impl/src/main/java/org/fortiss/smg/actuatorclient/hexabus/impl/ActuatorClientImpl.java", "license": "apache-2.0", "size": 7189 }
[ "java.util.concurrent.Executors", "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,449,844
public void setMailEncoding(String v) { if (!ObjectUtils.equals(this.mailEncoding, v)) { this.mailEncoding = v; setModified(true); } }
void function(String v) { if (!ObjectUtils.equals(this.mailEncoding, v)) { this.mailEncoding = v; setModified(true); } }
/** * Set the value of MailEncoding * * @param v new value */
Set the value of MailEncoding
setMailEncoding
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTSite.java", "license": "gpl-3.0", "size": 72238 }
[ "org.apache.commons.lang.ObjectUtils" ]
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
135,631
public int findPhrasesMatchingState(MargendatudAjavaljend av, boolean kasutaTapsustatudFraasi){ if (!this.isEmptyTag() && !av.isEmptyTag()){ if (this.fraas != null && av.fraas != null){ String thisPhrase = TextUtils.trim(this.fraas); String otherPhrase = TextUtils.trim(av.fraas); // Vajadusel ...
int function(MargendatudAjavaljend av, boolean kasutaTapsustatudFraasi){ if (!this.isEmptyTag() && !av.isEmptyTag()){ if (this.fraas != null && av.fraas != null){ String thisPhrase = TextUtils.trim(this.fraas); String otherPhrase = TextUtils.trim(av.fraas); if (kasutaTapsustatudFraasi && this.tapsustatudFraas != null){...
/** * <p> * Vordleb kaht m2rgendust m2rgendatud fraaside (st tekstilise kuju) alusel: kas fraasid on v6rdsed, * katavad yksteist kuidagi v6i ei sobitu yldse. * </p> * <p> * Kui lipp <code>kasutaTapsustatudFraasi</code> on seatud, kasutatakse v6rdluses <code>this.fraas</code> * asemel ...
Vordleb kaht m2rgendust m2rgendatud fraaside (st tekstilise kuju) alusel: kas fraasid on v6rdsed, katavad yksteist kuidagi v6i ei sobitu yldse. Kui lipp <code>kasutaTapsustatudFraasi</code> on seatud, kasutatakse v6rdluses <code>this.fraas</code> asemel <code>this.tapsustatudFraas</code>'i (eeldusel, et viimane on mitt...
findPhrasesMatchingState
{ "repo_name": "soras/Ajavt", "path": "test-src/ee/ut/soras/test_ajavt/MargendatudAjavaljend.java", "license": "gpl-2.0", "size": 21294 }
[ "ee.ut.soras.ajavtV2.util.TextUtils" ]
import ee.ut.soras.ajavtV2.util.TextUtils;
import ee.ut.soras.*;
[ "ee.ut.soras" ]
ee.ut.soras;
2,450,559
public OvhOperation serviceName_input_inputId_allowedNetwork_POST(String serviceName, String inputId, String network) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork"; StringBuilder sb = path(qPath, serviceName, inputId); HashMap<String, Object>o = new HashMap<Stri...
OvhOperation function(String serviceName, String inputId, String network) throws IOException { String qPath = STR; StringBuilder sb = path(qPath, serviceName, inputId); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, STR, network); String resp = exec(qPath, "POST", sb.toString(), o); return convert...
/** * Allow an ip to join input * * REST: POST /dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork * @param serviceName [required] Service name * @param inputId [required] Input ID * @param network [required] IP block */
Allow an ip to join input
serviceName_input_inputId_allowedNetwork_POST
{ "repo_name": "UrielCh/ovh-java-sdk", "path": "ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java", "license": "bsd-3-clause", "size": 82370 }
[ "java.io.IOException", "java.util.HashMap", "net.minidev.ovh.api.dbaas.logs.OvhOperation" ]
import java.io.IOException; import java.util.HashMap; import net.minidev.ovh.api.dbaas.logs.OvhOperation;
import java.io.*; import java.util.*; import net.minidev.ovh.api.dbaas.logs.*;
[ "java.io", "java.util", "net.minidev.ovh" ]
java.io; java.util; net.minidev.ovh;
754,051
@Override public String getShowISOValue(Integer fieldID, Integer parameterCode, Object value, Integer workItemID, LocalLookupContainer localLookupContainer, Locale locale) { if (value!=null) { try { Date dateValue = (Date)value; return DateTimeUtils.getInstance().formatISODateTime(dateValue); } ...
String function(Integer fieldID, Integer parameterCode, Object value, Integer workItemID, LocalLookupContainer localLookupContainer, Locale locale) { if (value!=null) { try { Date dateValue = (Date)value; return DateTimeUtils.getInstance().formatISODateTime(dateValue); } catch (Exception e) { return value.toString(); }...
/** * Get the ISO show value for locale independent exporting to xml * typically same as show value, date and number values are formatted by iso format * @param fieldID * @param parameterCode * @param value * @param workItemID * @param localLookupContainer * @param locale * @return */
Get the ISO show value for locale independent exporting to xml typically same as show value, date and number values are formatted by iso format
getShowISOValue
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/fieldType/runtime/system/text/SystemDateRT.java", "license": "gpl-3.0", "size": 18866 }
[ "com.aurel.track.fieldType.runtime.base.LocalLookupContainer", "com.aurel.track.util.DateTimeUtils", "java.util.Date", "java.util.Locale" ]
import com.aurel.track.fieldType.runtime.base.LocalLookupContainer; import com.aurel.track.util.DateTimeUtils; import java.util.Date; import java.util.Locale;
import com.aurel.track.*; import com.aurel.track.util.*; import java.util.*;
[ "com.aurel.track", "java.util" ]
com.aurel.track; java.util;
2,162,819
public static void setHandler(Handler handler) { mHandler = handler; }
static void function(Handler handler) { mHandler = handler; }
/** * Handler to sendMessage messages from service to View. * @param handler handler from view */
Handler to sendMessage messages from service to View
setHandler
{ "repo_name": "fatangare/LogcatViewer", "path": "logcatviewer/src/main/java/com/fatangare/logcatviewer/service/LogcatViewerService.java", "license": "gpl-3.0", "size": 11427 }
[ "android.os.Handler" ]
import android.os.Handler;
import android.os.*;
[ "android.os" ]
android.os;
2,210,047
private void allocateUnassigned() { RoutingNodes.UnassignedShards unassigned = routingNodes.unassigned(); assert !nodes.isEmpty(); if (logger.isTraceEnabled()) { logger.trace("Start allocating unassigned shards"); } if (unassigned.isEmp...
void function() { RoutingNodes.UnassignedShards unassigned = routingNodes.unassigned(); assert !nodes.isEmpty(); if (logger.isTraceEnabled()) { logger.trace(STR); } if (unassigned.isEmpty()) { return; } final PriorityComparator secondaryComparator = PriorityComparator.getAllocationComparator(allocation); final Comparat...
/** * Allocates all given shards on the minimal eligible node for the shards index * with respect to the weight function. All given shards must be unassigned. */
Allocates all given shards on the minimal eligible node for the shards index with respect to the weight function. All given shards must be unassigned
allocateUnassigned
{ "repo_name": "nknize/elasticsearch", "path": "server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java", "license": "apache-2.0", "size": 62280 }
[ "java.util.Comparator", "org.apache.lucene.util.ArrayUtil", "org.elasticsearch.cluster.routing.RoutingNodes", "org.elasticsearch.cluster.routing.ShardRouting", "org.elasticsearch.cluster.routing.UnassignedInfo", "org.elasticsearch.cluster.routing.allocation.AllocateUnassignedDecision", "org.elasticsearc...
import java.util.Comparator; import org.apache.lucene.util.ArrayUtil; import org.elasticsearch.cluster.routing.RoutingNodes; import org.elasticsearch.cluster.routing.ShardRouting; import org.elasticsearch.cluster.routing.UnassignedInfo; import org.elasticsearch.cluster.routing.allocation.AllocateUnassignedDecision; imp...
import java.util.*; import org.apache.lucene.util.*; import org.elasticsearch.cluster.routing.*; import org.elasticsearch.cluster.routing.allocation.*; import org.elasticsearch.cluster.routing.allocation.decider.*; import org.elasticsearch.gateway.*;
[ "java.util", "org.apache.lucene", "org.elasticsearch.cluster", "org.elasticsearch.gateway" ]
java.util; org.apache.lucene; org.elasticsearch.cluster; org.elasticsearch.gateway;
2,430,948
@Test(timeout=360000) public void testDecommission() throws IOException { testDecommission(1, 6); }
@Test(timeout=360000) void function() throws IOException { testDecommission(1, 6); }
/** * Tests decommission for non federated cluster */
Tests decommission for non federated cluster
testDecommission
{ "repo_name": "wankunde/cloudera_hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDecommission.java", "license": "apache-2.0", "size": 37551 }
[ "java.io.IOException", "org.junit.Test" ]
import java.io.IOException; import org.junit.Test;
import java.io.*; import org.junit.*;
[ "java.io", "org.junit" ]
java.io; org.junit;
1,990,392
@Deprecated public HRegionLocation locateRegion(final TableName tableName, final byte [] row) throws IOException;
HRegionLocation function(final TableName tableName, final byte [] row) throws IOException;
/** * Find the location of the region of <i>tableName</i> that <i>row</i> * lives in. * @param tableName name of the table <i>row</i> is in * @param row row key you're trying to find the region of * @return HRegionLocation that describes where to find the region in * question * @throws IOException ...
Find the location of the region of tableName that row lives in
locateRegion
{ "repo_name": "toshimasa-nasu/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnection.java", "license": "apache-2.0", "size": 23295 }
[ "java.io.IOException", "org.apache.hadoop.hbase.HRegionLocation", "org.apache.hadoop.hbase.TableName" ]
import java.io.IOException; import org.apache.hadoop.hbase.HRegionLocation; import org.apache.hadoop.hbase.TableName;
import java.io.*; import org.apache.hadoop.hbase.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,304,600
@Test public void testSymbolsPrunedInCorrelatedInPredicateSource() { assertPlan( "SELECT orderkey, comment IN (SELECT clerk FROM orders s WHERE s.orderkey = o.orderkey AND s.orderkey < 7) FROM lineitem o", anyTree( node(JoinNode.class, ...
void function() { assertPlan( STR, anyTree( node(JoinNode.class, anyTree(strictTableScan(STR, ImmutableMap.of( STR, STR, STR, STR))), anyTree(tableScan(STR))))); }
/** * Handling of correlated in predicate involves group by over all symbols from source. Once aggregation is added to the plan, * it prevents pruning of the unreferenced symbols. However, the aggregation's result doesn't actually depended on those symbols * and this test makes sure the symbols are prune...
Handling of correlated in predicate involves group by over all symbols from source. Once aggregation is added to the plan, it prevents pruning of the unreferenced symbols. However, the aggregation's result doesn't actually depended on those symbols and this test makes sure the symbols are pruned first
testSymbolsPrunedInCorrelatedInPredicateSource
{ "repo_name": "youngwookim/presto", "path": "presto-main/src/test/java/io/prestosql/sql/planner/TestLogicalPlanner.java", "license": "apache-2.0", "size": 45827 }
[ "com.google.common.collect.ImmutableMap", "io.prestosql.sql.planner.assertions.PlanMatchPattern", "io.prestosql.sql.planner.plan.JoinNode" ]
import com.google.common.collect.ImmutableMap; import io.prestosql.sql.planner.assertions.PlanMatchPattern; import io.prestosql.sql.planner.plan.JoinNode;
import com.google.common.collect.*; import io.prestosql.sql.planner.assertions.*; import io.prestosql.sql.planner.plan.*;
[ "com.google.common", "io.prestosql.sql" ]
com.google.common; io.prestosql.sql;
1,818,651
public boolean isIndexUsingShadowReplicas() { return IndexMetaData.isOnSharedFilesystem(getSettings()); }
boolean function() { return IndexMetaData.isOnSharedFilesystem(getSettings()); }
/** * Returns <code>true</code> iff the given settings indicate that the index associated * with these settings uses shadow replicas. Otherwise <code>false</code>. The default * setting for this is <code>false</code>. */
Returns <code>true</code> iff the given settings indicate that the index associated with these settings uses shadow replicas. Otherwise <code>false</code>. The default setting for this is <code>false</code>
isIndexUsingShadowReplicas
{ "repo_name": "girirajsharma/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/IndexSettings.java", "license": "apache-2.0", "size": 24820 }
[ "org.elasticsearch.cluster.metadata.IndexMetaData" ]
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.metadata.*;
[ "org.elasticsearch.cluster" ]
org.elasticsearch.cluster;
1,503,752
private String dataTypeToFileName(String dataType) { String fileName = org.sleuthkit.autopsy.coreutils.FileUtil.escapeFileName(dataType); // replace all ' ' with '_' fileName = fileName.replaceAll(" ", "_"); return fileName; }
String function(String dataType) { String fileName = org.sleuthkit.autopsy.coreutils.FileUtil.escapeFileName(dataType); fileName = fileName.replaceAll(" ", "_"); return fileName; }
/** * Generate a file name for the given datatype, by replacing any undesirable * chars, like /, or spaces * * @param dataType data type for which to generate a file name */
Generate a file name for the given datatype, by replacing any undesirable chars, like /, or spaces
dataTypeToFileName
{ "repo_name": "eugene7646/autopsy", "path": "Core/src/org/sleuthkit/autopsy/report/modules/html/HTMLReport.java", "license": "apache-2.0", "size": 73033 }
[ "org.openide.filesystems.FileUtil" ]
import org.openide.filesystems.FileUtil;
import org.openide.filesystems.*;
[ "org.openide.filesystems" ]
org.openide.filesystems;
1,165,808
public void removeUnusedTags() throws ServiceException { final Transaction transaction = tagRepository.beginTransaction(); try { final List<JSONObject> tags = tagQueryService.getTags(); for (int i = 0; i < tags.size(); i++) { final JSONObject tag = tags.get(...
void function() throws ServiceException { final Transaction transaction = tagRepository.beginTransaction(); try { final List<JSONObject> tags = tagQueryService.getTags(); for (int i = 0; i < tags.size(); i++) { final JSONObject tag = tags.get(i); final int tagRefCnt = tag.getInt(Tag.TAG_REFERENCE_COUNT); if (0 == tagRe...
/** * Removes all unused tags. * * @throws ServiceException if get tags failed, or remove failed */
Removes all unused tags
removeUnusedTags
{ "repo_name": "xiongba-me/solo", "path": "src/main/java/org/b3log/solo/service/TagMgmtService.java", "license": "agpl-3.0", "size": 4583 }
[ "java.util.List", "org.b3log.latke.Keys", "org.b3log.latke.logging.Level", "org.b3log.latke.repository.Transaction", "org.b3log.latke.service.ServiceException", "org.b3log.solo.model.Tag", "org.json.JSONObject" ]
import java.util.List; import org.b3log.latke.Keys; import org.b3log.latke.logging.Level; import org.b3log.latke.repository.Transaction; import org.b3log.latke.service.ServiceException; import org.b3log.solo.model.Tag; import org.json.JSONObject;
import java.util.*; import org.b3log.latke.*; import org.b3log.latke.logging.*; import org.b3log.latke.repository.*; import org.b3log.latke.service.*; import org.b3log.solo.model.*; import org.json.*;
[ "java.util", "org.b3log.latke", "org.b3log.solo", "org.json" ]
java.util; org.b3log.latke; org.b3log.solo; org.json;
2,598,507
@SuppressWarnings("SimplifiableIfStatement") public boolean mustDeserialize(Class cls) { BinaryClassDescriptor desc = descByCls.get(cls); if (desc == null) { if (BinaryUtils.wrapTrees() && (cls == TreeMap.class || cls == TreeSet.class)) return false; ret...
@SuppressWarnings(STR) boolean function(Class cls) { BinaryClassDescriptor desc = descByCls.get(cls); if (desc == null) { if (BinaryUtils.wrapTrees() && (cls == TreeMap.class cls == TreeSet.class)) return false; return marshCtx.isSystemType(cls.getName()) serializerForClass(cls) == null QueryUtils.isGeometryClass(cls);...
/** * Check whether class must be deserialized anyway. * * @param cls Class. * @return {@code True} if must be deserialized. */
Check whether class must be deserialized anyway
mustDeserialize
{ "repo_name": "ascherbakoff/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryContext.java", "license": "apache-2.0", "size": 55505 }
[ "java.util.TreeMap", "java.util.TreeSet", "org.apache.ignite.internal.processors.query.QueryUtils" ]
import java.util.TreeMap; import java.util.TreeSet; import org.apache.ignite.internal.processors.query.QueryUtils;
import java.util.*; import org.apache.ignite.internal.processors.query.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
1,902,806
public static IntBuffer concatGlyphs(int[] bga, int[] iga, int[] lga) { int ng = 0; if (bga != null) { ng += bga.length; } if (iga != null) { ng += iga.length; } if (lga != null) { ng += lga.length; } IntBuffer gb = IntBuffer.allocate(ng); if (bga != null) { ...
static IntBuffer function(int[] bga, int[] iga, int[] lga) { int ng = 0; if (bga != null) { ng += bga.length; } if (iga != null) { ng += iga.length; } if (lga != null) { ng += lga.length; } IntBuffer gb = IntBuffer.allocate(ng); if (bga != null) { gb.put(bga); } if (iga != null) { gb.put(iga); } if (lga != null) { gb.p...
/** * Concatenante glyph arrays. * * @param bga * backtrack glyph array * @param iga * input glyph array * @param lga * lookahead glyph array * @return new integer buffer containing concatenated glyphs */
Concatenante glyph arrays
concatGlyphs
{ "repo_name": "jaredrummler/TrueTypeParser", "path": "lib-truetypeparser/src/main/java/com/jaredrummler/fontreader/util/GlyphSequence.java", "license": "apache-2.0", "size": 20017 }
[ "java.nio.IntBuffer" ]
import java.nio.IntBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,776,702
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (ActionsPackage.Literals.TERM_ACTION__TERM, TermsFactory.eINSTANCE.createFunctorT...
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (ActionsPackage.Literals.TERM_ACTION__TERM, TermsFactory.eINSTANCE.createFunctorTerm())); newChildDescriptors.add (createChildParameter (Act...
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "paetti1988/qmate", "path": "MATE/org.tud.inf.st.mbt.emf.edit/src-gen/org/tud/inf/st/mbt/actions/provider/TermActionItemProvider.java", "license": "apache-2.0", "size": 6348 }
[ "java.util.Collection", "org.tud.inf.st.mbt.actions.ActionsPackage", "org.tud.inf.st.mbt.terms.TermsFactory" ]
import java.util.Collection; import org.tud.inf.st.mbt.actions.ActionsPackage; import org.tud.inf.st.mbt.terms.TermsFactory;
import java.util.*; import org.tud.inf.st.mbt.actions.*; import org.tud.inf.st.mbt.terms.*;
[ "java.util", "org.tud.inf" ]
java.util; org.tud.inf;
496,764
public static double distance(ICoords3D source, ICoords3Di target) { PreCon.notNull(source); PreCon.notNull(target); return Math.sqrt(distanceSquared(source, target)); }
static double function(ICoords3D source, ICoords3Di target) { PreCon.notNull(source); PreCon.notNull(target); return Math.sqrt(distanceSquared(source, target)); }
/** * Get the distance from a source coordinate to target coordinates. * * @param source The source coordinates. * @param target The target coordinates. */
Get the distance from a source coordinate to target coordinates
distance
{ "repo_name": "JCThePants/NucleusFramework", "path": "src/com/jcwhatever/nucleus/utils/coords/Coords3D.java", "license": "mit", "size": 15269 }
[ "com.jcwhatever.nucleus.utils.PreCon" ]
import com.jcwhatever.nucleus.utils.PreCon;
import com.jcwhatever.nucleus.utils.*;
[ "com.jcwhatever.nucleus" ]
com.jcwhatever.nucleus;
513,765
@Nullable public Color getColor() { return color; }
Color function() { return color; }
/** * Get color. * * @return color of the image if any */
Get color
getColor
{ "repo_name": "Ryszard-Trojnacki/nifty-gui", "path": "nifty-core/src/main/java/de/lessvoid/nifty/render/NiftyImage.java", "license": "bsd-2-clause", "size": 3831 }
[ "de.lessvoid.nifty.tools.Color" ]
import de.lessvoid.nifty.tools.Color;
import de.lessvoid.nifty.tools.*;
[ "de.lessvoid.nifty" ]
de.lessvoid.nifty;
623,301
public Actions moveByOffset(int xOffset, int yOffset) { if (isBuildingActions()) { action.addAction(new MoveToOffsetAction(jsonMouse, null, xOffset, yOffset)); } return tick( defaultMouse.createPointerMove(Duration.ofMillis(200), Origin.pointer(), xOffset, yOffset)); }
Actions function(int xOffset, int yOffset) { if (isBuildingActions()) { action.addAction(new MoveToOffsetAction(jsonMouse, null, xOffset, yOffset)); } return tick( defaultMouse.createPointerMove(Duration.ofMillis(200), Origin.pointer(), xOffset, yOffset)); }
/** * Moves the mouse from its current position (or 0,0) by the given offset. If the coordinates * provided are outside the viewport (the mouse will end up outside the browser window) then * the viewport is scrolled to match. * @param xOffset horizontal offset. A negative value means moving the mouse left. ...
Moves the mouse from its current position (or 0,0) by the given offset. If the coordinates provided are outside the viewport (the mouse will end up outside the browser window) then the viewport is scrolled to match
moveByOffset
{ "repo_name": "asashour/selenium", "path": "java/client/src/org/openqa/selenium/interactions/Actions.java", "license": "apache-2.0", "size": 21621 }
[ "java.time.Duration", "org.openqa.selenium.interactions.PointerInput" ]
import java.time.Duration; import org.openqa.selenium.interactions.PointerInput;
import java.time.*; import org.openqa.selenium.interactions.*;
[ "java.time", "org.openqa.selenium" ]
java.time; org.openqa.selenium;
826,176
private void doExportHistoryBookmarks() { if (ApplicationUtils.checkCardState(this, true)) { mProgressDialog = ProgressDialog.show( this, this.getResources().getString(R.string.Commons_PleaseWait), this.getResources().getString( R.string.Commons_ExportingHistoryBookmarks)); XmlHistoryB...
void function() { if (ApplicationUtils.checkCardState(this, true)) { mProgressDialog = ProgressDialog.show( this, this.getResources().getString(R.string.Commons_PleaseWait), this.getResources().getString( R.string.Commons_ExportingHistoryBookmarks)); XmlHistoryBookmarksExporter exporter = new XmlHistoryBookmarksExporte...
/** * Export the bookmarks and history. */
Export the bookmarks and history
doExportHistoryBookmarks
{ "repo_name": "straight55b/gaeproxy", "path": "src/org/gaeproxy/zirco/ui/activities/preferences/PreferencesActivity.java", "license": "gpl-3.0", "size": 20304 }
[ "android.app.ProgressDialog", "org.gaeproxy.zirco.providers.BookmarksProviderWrapper", "org.gaeproxy.zirco.ui.runnables.XmlHistoryBookmarksExporter", "org.gaeproxy.zirco.utils.ApplicationUtils", "org.gaeproxy.zirco.utils.DateUtils" ]
import android.app.ProgressDialog; import org.gaeproxy.zirco.providers.BookmarksProviderWrapper; import org.gaeproxy.zirco.ui.runnables.XmlHistoryBookmarksExporter; import org.gaeproxy.zirco.utils.ApplicationUtils; import org.gaeproxy.zirco.utils.DateUtils;
import android.app.*; import org.gaeproxy.zirco.providers.*; import org.gaeproxy.zirco.ui.runnables.*; import org.gaeproxy.zirco.utils.*;
[ "android.app", "org.gaeproxy.zirco" ]
android.app; org.gaeproxy.zirco;
2,429,161
@WebMethod void delete(B baseVO) throws BaseBusinessException;
void delete(B baseVO) throws BaseBusinessException;
/** * Deleta instancia de baseVO da base de dados * * @param baseVO * @throws BaseBusinessException */
Deleta instancia de baseVO da base de dados
delete
{ "repo_name": "darciopacifico/omr", "path": "tags/PreSCMSetup/JazzFramework/src/main/java/br/com/dlp/framework/business/IBusiness.java", "license": "apache-2.0", "size": 2413 }
[ "br.com.dlp.framework.exception.BaseBusinessException" ]
import br.com.dlp.framework.exception.BaseBusinessException;
import br.com.dlp.framework.exception.*;
[ "br.com.dlp" ]
br.com.dlp;
1,109,823
void setColor(ChatColor color);
void setColor(ChatColor color);
/** * Changes the color of this block * * @param color the new color */
Changes the color of this block
setColor
{ "repo_name": "MiniDigger/VoxelGamesLib", "path": "api/src/main/java/me/minidigger/voxelgameslib/api/block/metadata/ColorMetaData.java", "license": "mit", "size": 458 }
[ "me.minidigger.voxelgameslib.libs.net.md_5.bungee.api.ChatColor" ]
import me.minidigger.voxelgameslib.libs.net.md_5.bungee.api.ChatColor;
import me.minidigger.voxelgameslib.libs.net.md_5.bungee.api.*;
[ "me.minidigger.voxelgameslib" ]
me.minidigger.voxelgameslib;
261,350
private void setMinimalScheduledActionByDays() { Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date(mScheduledAction.getStartTime())); mScheduledAction.getRecurrence().setByDays( Collections.singletonList(calendar.get(Calendar.DAY_OF_WEEK))); }
void function() { Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date(mScheduledAction.getStartTime())); mScheduledAction.getRecurrence().setByDays( Collections.singletonList(calendar.get(Calendar.DAY_OF_WEEK))); }
/** * Sets the by days of the scheduled action to the day of the week of the start time. * * <p>Until we implement parsing of days of the week for scheduled actions, * this ensures they are executed at least once per week.</p> */
Sets the by days of the scheduled action to the day of the week of the start time. Until we implement parsing of days of the week for scheduled actions, this ensures they are executed at least once per week
setMinimalScheduledActionByDays
{ "repo_name": "codinguser/gnucash-android", "path": "app/src/main/java/org/gnucash/android/importer/GncXmlHandler.java", "license": "apache-2.0", "size": 49457 }
[ "java.util.Calendar", "java.util.Collections", "java.util.Date" ]
import java.util.Calendar; import java.util.Collections; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,328,713
public static boolean getBoolean(String jsonData, String key, Boolean defaultValue) { if (StringUtils.isEmpty(jsonData)) { return defaultValue; } try { JSONObject jsonObject = new JSONObject(jsonData); return getBoolean(jsonObject, key, defaultValue); ...
static boolean function(String jsonData, String key, Boolean defaultValue) { if (StringUtils.isEmpty(jsonData)) { return defaultValue; } try { JSONObject jsonObject = new JSONObject(jsonData); return getBoolean(jsonObject, key, defaultValue); } catch (JSONException e) { if (isPrintException) { e.printStackTrace(); } re...
/** * get Boolean from jsonData * * @param jsonData * @param key * @param defaultValue * @return <ul> * <li>if jsonObject is null, return defaultValue</li> * <li>if jsonData {@link JSONObject#JSONObject(String)} exception, return defaultValue</li> * ...
get Boolean from jsonData
getBoolean
{ "repo_name": "dgrlucky/Awesome", "path": "library/src/main/java/com/library/common/util/JSONUtils.java", "license": "apache-2.0", "size": 26617 }
[ "org.json.JSONException", "org.json.JSONObject" ]
import org.json.JSONException; import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,452,327
public static void logError(Throwable e, boolean invalidRowsPresent) { if (!invalidRowsPresent) { LOGGER.error(e, CarbonCommonConstants.FILTER_INVALID_MEMBER + e.getMessage()); } }
static void function(Throwable e, boolean invalidRowsPresent) { if (!invalidRowsPresent) { LOGGER.error(e, CarbonCommonConstants.FILTER_INVALID_MEMBER + e.getMessage()); } }
/** * This method will print the error log. * * @param e */
This method will print the error log
logError
{ "repo_name": "aniketadnaik/carbondataStreamIngest", "path": "core/src/main/java/org/apache/carbondata/core/scan/filter/FilterUtil.java", "license": "apache-2.0", "size": 69343 }
[ "org.apache.carbondata.core.constants.CarbonCommonConstants" ]
import org.apache.carbondata.core.constants.CarbonCommonConstants;
import org.apache.carbondata.core.constants.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
975,795
private static void validateWebDriverProvider(SingleWebDriverProvider webDriverProvider) { if (webDriverProvider == null) { throw new IllegalArgumentException("Parameter webDriverProvider must not be null."); } if (StringUtils.isEmpty(webDriverProvider.getId())) { th...
static void function(SingleWebDriverProvider webDriverProvider) { if (webDriverProvider == null) { throw new IllegalArgumentException(STR); } if (StringUtils.isEmpty(webDriverProvider.getId())) { throw new IllegalArgumentException( STR); } }
/** * Validates that the given WebDriver provider is not {@code null} nor has a {@code null} or * empty ID. * * @param webDriverProvider the WebDriver provider to validate. * @throws IllegalArgumentException if the the given WebDriver provider is {@code null} or its * ID is {@code null...
Validates that the given WebDriver provider is not null nor has a null or empty ID
validateWebDriverProvider
{ "repo_name": "kingthorin/zap-extensions", "path": "addOns/selenium/src/main/java/org/zaproxy/zap/extension/selenium/ExtensionSelenium.java", "license": "apache-2.0", "size": 48162 }
[ "org.apache.commons.lang.StringUtils" ]
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
2,753,955
@Override public Adapter adapt(Notifier notifier, Object type) { return super.adapt(notifier, this); }
Adapter function(Notifier notifier, Object type) { return super.adapt(notifier, this); }
/** * This implementation substitutes the factory itself as the key for the adapter. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This implementation substitutes the factory itself as the key for the adapter.
adapt
{ "repo_name": "pgaufillet/topcased-req", "path": "plugins/org.topcased.typesmodel/src/org/topcased/typesmodel/model/inittypes/provider/InittypesItemProviderAdapterFactory.java", "license": "epl-1.0", "size": 10488 }
[ "org.eclipse.emf.common.notify.Adapter", "org.eclipse.emf.common.notify.Notifier" ]
import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
983,121
@POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response addUsuario(Usuario Usuario) { RotondAndesTM tm = new RotondAndesTM(getPath()); try { tm.addUsuario(Usuario); } catch (Exception e) { return Response.status(500).entity(doErrorMessage(e)).build(); } retu...
@Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response function(Usuario Usuario) { RotondAndesTM tm = new RotondAndesTM(getPath()); try { tm.addUsuario(Usuario); } catch (Exception e) { return Response.status(500).entity(doErrorMessage(e)).build(); } return Response.status(200).entity(Usua...
/** * Metodo que expone servicio REST usando POST que agrega el Usuario que recibe en Json * <b>URL: </b> http://"ip o nombre de host":8080/UsuarioAndes/rest/Usuarios/Usuario * @param Usuario - Usuario a agregar * @return Json con el Usuario que agrego o Json con el error que se produjo */
Metodo que expone servicio REST usando POST que agrega el Usuario que recibe en Json
addUsuario
{ "repo_name": "jdcarrillor/RotondAndes2", "path": "src/rest/UsuarioServices.java", "license": "mit", "size": 7579 }
[ "javax.ws.rs.Consumes", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response" ]
import javax.ws.rs.Consumes; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response;
import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
2,082,993
public static BlogQueryParameters configureQueryInstance( GetCollectionTopicParameter topicCollectionParameter, QueryParametersParameterNameProvider nameProvider) throws IllegalRequestParameterException { BlogQueryParameters queryParameters = new BlogQueryParameters...
static BlogQueryParameters function( GetCollectionTopicParameter topicCollectionParameter, QueryParametersParameterNameProvider nameProvider) throws IllegalRequestParameterException { BlogQueryParameters queryParameters = new BlogQueryParameters(); BlogQueryParametersConfigurator<BlogQueryParameters> queryInstanceConfi...
/** * Get query instance to filter notes * * @param topicCollectionParameter * Extract context parameter needed for filter * @param nameProvider * The name provider. * @return NoteQueryInstance * @throws IllegalRequestParameterException * ...
Get query instance to filter notes
configureQueryInstance
{ "repo_name": "Communote/communote-server", "path": "communote/plugins/rest-api/2.4/implementation/src/main/java/com/communote/plugins/api/rest/v24/resource/topic/TopicResourceHelper.java", "license": "apache-2.0", "size": 12432 }
[ "com.communote.common.string.StringHelper", "com.communote.plugins.api.rest.v24.service.IllegalRequestParameterException", "com.communote.server.core.vo.query.blog.BlogQueryParameters", "com.communote.server.core.vo.query.blog.TopicAccessLevel", "com.communote.server.core.vo.query.config.BlogQueryParameters...
import com.communote.common.string.StringHelper; import com.communote.plugins.api.rest.v24.service.IllegalRequestParameterException; import com.communote.server.core.vo.query.blog.BlogQueryParameters; import com.communote.server.core.vo.query.blog.TopicAccessLevel; import com.communote.server.core.vo.query.config.BlogQ...
import com.communote.common.string.*; import com.communote.plugins.api.rest.v24.service.*; import com.communote.server.core.vo.query.blog.*; import com.communote.server.core.vo.query.config.*;
[ "com.communote.common", "com.communote.plugins", "com.communote.server" ]
com.communote.common; com.communote.plugins; com.communote.server;
216,235
private void resetRadioButtonColor() { for (Button radioButton : inputView.getRadioButtons()) { radioButton.setForeground(defaultButtonFG); } }
void function() { for (Button radioButton : inputView.getRadioButtons()) { radioButton.setForeground(defaultButtonFG); } }
/********************************************************************************************** * Name : resetRadioButtonColor * Purpose : change the foreground color of each radio button in the input view to the value of * @defaultButtonFG * Parameters : * @param: none * Return : *...
Name : resetRadioButtonColor Purpose : change the foreground color of each radio button in the input view to the value of
resetRadioButtonColor
{ "repo_name": "ivan-guerra/university_projects", "path": "human_computer_interaction/exam_viewer/ExamController.java", "license": "mit", "size": 16919 }
[ "org.eclipse.swt.widgets.Button" ]
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,352,821
@Override public void setByteOrder(ByteOrder order) { this.buffer.order(order); this.byteOrder = this.buffer.order(); }
void function(ByteOrder order) { this.buffer.order(order); this.byteOrder = this.buffer.order(); }
/** * Set byte order: big-endian or little-endian. * * @param order * Byte order * @see org.jhove2.core.io.Input#setByteOrder(ByteOrder) */
Set byte order: big-endian or little-endian
setByteOrder
{ "repo_name": "opf-labs/jhove2", "path": "src/main/java/org/jhove2/core/io/AbstractInput.java", "license": "bsd-2-clause", "size": 25157 }
[ "java.nio.ByteOrder" ]
import java.nio.ByteOrder;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,883,855
public static List<Class<? extends BuildConfiguration.Fragment>> requiresConfigurationFragments( Rule rule, Map<String, Class<? extends BuildConfiguration.Fragment>> optionsToFragmentMap) { ImmutableList.Builder<Class<? extends BuildConfiguration.Fragment>> builder = ImmutableList.builder();...
static List<Class<? extends BuildConfiguration.Fragment>> function( Rule rule, Map<String, Class<? extends BuildConfiguration.Fragment>> optionsToFragmentMap) { ImmutableList.Builder<Class<? extends BuildConfiguration.Fragment>> builder = ImmutableList.builder(); AttributeMap attributes = NonconfigurableAttributeMapper...
/** * config_setting can't use {@link RuleClass.Builder#requiresConfigurationFragments} because * config_setting's dependencies come from option names as strings. This special override * computes that properly. */
config_setting can't use <code>RuleClass.Builder#requiresConfigurationFragments</code> because config_setting's dependencies come from option names as strings. This special override computes that properly
requiresConfigurationFragments
{ "repo_name": "kamalmarhubi/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/config/ConfigRuleClasses.java", "license": "apache-2.0", "size": 11551 }
[ "com.google.common.collect.ImmutableList", "com.google.devtools.build.lib.packages.AttributeMap", "com.google.devtools.build.lib.packages.NonconfigurableAttributeMapper", "com.google.devtools.build.lib.packages.Rule", "com.google.devtools.build.lib.syntax.Type", "java.util.List", "java.util.Map" ]
import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.packages.AttributeMap; import com.google.devtools.build.lib.packages.NonconfigurableAttributeMapper; import com.google.devtools.build.lib.packages.Rule; import com.google.devtools.build.lib.syntax.Type; import java.util.List; import ja...
import com.google.common.collect.*; import com.google.devtools.build.lib.packages.*; import com.google.devtools.build.lib.syntax.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
38,830
boolean isConfigured(DeviceId deviceId);
boolean isConfigured(DeviceId deviceId);
/** * Checks if the device is configured. * * @param deviceId device identifier * @return true if the device is configured */
Checks if the device is configured
isConfigured
{ "repo_name": "planoAccess/clonedONOS", "path": "apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/config/DeviceProperties.java", "license": "apache-2.0", "size": 3235 }
[ "org.onosproject.net.DeviceId" ]
import org.onosproject.net.DeviceId;
import org.onosproject.net.*;
[ "org.onosproject.net" ]
org.onosproject.net;
1,214,295
public static <T> Set<T> minus(Set<T> self, Iterable<?> removeMe) { return minus(self, asCollection(removeMe)); }
static <T> Set<T> function(Set<T> self, Iterable<?> removeMe) { return minus(self, asCollection(removeMe)); }
/** * Create a Set composed of the elements of the first Set minus the * elements from the given Iterable. * * @param self a Set object * @param removeMe the items to remove from the Set * @return the resulting Set * @since 1.8.7 */
Create a Set composed of the elements of the first Set minus the elements from the given Iterable
minus
{ "repo_name": "apache/incubator-groovy", "path": "src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "apache-2.0", "size": 703151 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,620,729
public List<Object> searchFiles(String searchString, Long firstRecord);
List<Object> function(String searchString, Long firstRecord);
/** * Search for a {@link List} of {@link RemoteContainer}s for the given * searchString. The first item in the returned {@link List} is a count of * the total number of files found for the given search criteria. The second * entry is a {@link List} of {@link RemoteContainer} results. * *...
Search for a <code>List</code> of <code>RemoteContainer</code>s for the given searchString. The first item in the returned <code>List</code> is a count of the total number of files found for the given search criteria. The second entry is a <code>List</code> of <code>RemoteContainer</code> results
searchFiles
{ "repo_name": "LeeMidyette/alfresco-jive-toolkit", "path": "jive-components/alfresco-connector/src/main/java/org/alfresco/jive/cmis/dao/AlfrescoNavigationDAO.java", "license": "apache-2.0", "size": 5322 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,743,211
public TaskRun get(long id) { return (TaskRun) getHibernateTemplate().get(TaskRun.class, id); }
TaskRun function(long id) { return (TaskRun) getHibernateTemplate().get(TaskRun.class, id); }
/** * Retrieves a TaskRun by its primary key. * * @param id TaskRun id. * @return TaskRun identified by the passed id. */
Retrieves a TaskRun by its primary key
get
{ "repo_name": "choss/citrine-scheduler", "path": "src/main/java/fm/last/citrine/dao/TaskRunDAO.java", "license": "apache-2.0", "size": 6120 }
[ "fm.last.citrine.model.TaskRun" ]
import fm.last.citrine.model.TaskRun;
import fm.last.citrine.model.*;
[ "fm.last.citrine" ]
fm.last.citrine;
645,934
public void configure(Map stormConf, JsonNode filterParams);
void function(Map stormConf, JsonNode filterParams);
/** * Called when this filter is being initialized * * @param stormConf * The Storm configuration used for the ParserBolt * @param filterParams * the filter specific configuration. Never null */
Called when this filter is being initialized
configure
{ "repo_name": "dang-sugarinc/storm-crawler", "path": "core/src/main/java/com/digitalpebble/storm/crawler/parse/ParseFilter.java", "license": "apache-2.0", "size": 2538 }
[ "com.fasterxml.jackson.databind.JsonNode", "java.util.Map" ]
import com.fasterxml.jackson.databind.JsonNode; import java.util.Map;
import com.fasterxml.jackson.databind.*; import java.util.*;
[ "com.fasterxml.jackson", "java.util" ]
com.fasterxml.jackson; java.util;
2,130,096
public void setWebDriver(WebDriver webDriver) { this.webDriver = webDriver; }
void function(WebDriver webDriver) { this.webDriver = webDriver; }
/** * Sets the webDriver. * * @param webDriver */
Sets the webDriver
setWebDriver
{ "repo_name": "christophd/citrus", "path": "connectors/citrus-selenium/src/main/java/com/consol/citrus/selenium/endpoint/SeleniumBrowser.java", "license": "apache-2.0", "size": 12835 }
[ "org.openqa.selenium.WebDriver" ]
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
1,386,307
private static float detWithPivot(final float[][] a) { int n = a.length; float[][] ma = copy(a); int[] p = new int[n]; matrixCheck(a); // decompose A = L*R into left and right triangular matrix lrdecompose(ma, p); float det = 1; // determinant is product of diagonal elements for (i...
static float function(final float[][] a) { int n = a.length; float[][] ma = copy(a); int[] p = new int[n]; matrixCheck(a); lrdecompose(ma, p); float det = 1; for (int i = 0; i < n; det *= ma[p[i]][i], i++) ; if ((permutations(p) & 1) == 1) { det = -det; } return det; }
/** * Calculate the determinant with pivot search. * * @param a NxN matrix * @return det(A) */
Calculate the determinant with pivot search
detWithPivot
{ "repo_name": "axkr/symja_android_library", "path": "symja_android_library/matheclipse-external/src/main/java/de/lab4inf/math/lapack/GaussSolver.java", "license": "gpl-3.0", "size": 43889 }
[ "de.lab4inf.math.lapack.LinearAlgebra" ]
import de.lab4inf.math.lapack.LinearAlgebra;
import de.lab4inf.math.lapack.*;
[ "de.lab4inf.math" ]
de.lab4inf.math;
1,193,171
@Override public List<CorrelationDataSource> getDataSources() throws CentralRepoException { Connection conn = connect(); List<CorrelationDataSource> dataSources = new ArrayList<>(); CorrelationDataSource eamDataSourceResult; PreparedStatement preparedStatement = null; Re...
List<CorrelationDataSource> function() throws CentralRepoException { Connection conn = connect(); List<CorrelationDataSource> dataSources = new ArrayList<>(); CorrelationDataSource eamDataSourceResult; PreparedStatement preparedStatement = null; ResultSet resultSet = null; String sql = STR; try { preparedStatement = co...
/** * Return a list of data sources in the DB * * @return list of data sources in the DB */
Return a list of data sources in the DB
getDataSources
{ "repo_name": "wschaeferB/autopsy", "path": "Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/RdbmsCentralRepo.java", "license": "apache-2.0", "size": 168393 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.ArrayList", "java.util.List" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
1,047,245
public static ims.clinical.domain.objects.SurgicalAuditOperationDetail extractSurgicalAuditOperationDetail(ims.domain.ILightweightDomainFactory domainFactory, ims.clinical.vo.SurgicalAuditTheatreWorklistVo valueObject) { return extractSurgicalAuditOperationDetail(domainFactory, valueObject, new HashMap()); ...
static ims.clinical.domain.objects.SurgicalAuditOperationDetail function(ims.domain.ILightweightDomainFactory domainFactory, ims.clinical.vo.SurgicalAuditTheatreWorklistVo valueObject) { return extractSurgicalAuditOperationDetail(domainFactory, valueObject, new HashMap()); }
/** * Create the domain object from the value object. * @param domainFactory - used to create existing (persistent) domain objects. * @param valueObject - extract the domain object fields from this. */
Create the domain object from the value object
extractSurgicalAuditOperationDetail
{ "repo_name": "open-health-hub/openmaxims-linux", "path": "openmaxims_workspace/ValueObjects/src/ims/clinical/vo/domain/SurgicalAuditTheatreWorklistVoAssembler.java", "license": "agpl-3.0", "size": 21502 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,095,858
public B usingDriverExecutable(File file) { checkNotNull(file); checkExecutable(file); this.exe = file; return (B) this; }
B function(File file) { checkNotNull(file); checkExecutable(file); this.exe = file; return (B) this; }
/** * Sets which driver executable the builder will use. * * @param file The executable to use. * @return A self reference. */
Sets which driver executable the builder will use
usingDriverExecutable
{ "repo_name": "Jarob22/selenium", "path": "java/client/src/org/openqa/selenium/remote/service/DriverService.java", "license": "apache-2.0", "size": 9976 }
[ "com.google.common.base.Preconditions", "java.io.File" ]
import com.google.common.base.Preconditions; import java.io.File;
import com.google.common.base.*; import java.io.*;
[ "com.google.common", "java.io" ]
com.google.common; java.io;
1,874,242
static FacebookSettings newInstance(Bundle bundle) { FacebookSettings settings = null; int destinationId = bundle.getInt(BUNDLE_KEY_DESTINATION_ID); String accountName = bundle.getString(BUNDLE_KEY_ACCOUNT_NAME); String albumName = bundle.getString(BUNDLE_KEY_ALBUM_NAME); St...
static FacebookSettings newInstance(Bundle bundle) { FacebookSettings settings = null; int destinationId = bundle.getInt(BUNDLE_KEY_DESTINATION_ID); String accountName = bundle.getString(BUNDLE_KEY_ACCOUNT_NAME); String albumName = bundle.getString(BUNDLE_KEY_ALBUM_NAME); String albumGraphPath = bundle.getString(BUNDLE...
/** * Creates a new {@link FacebookSettings} instance from a {@link Bundle} created by the {@link #toBundle()} method. * * @param bundle the {@link Bundle}. * @return a new {@link FacebookSettings} instance; or null if the {@link Bundle} is invalid. */
Creates a new <code>FacebookSettings</code> instance from a <code>Bundle</code> created by the <code>#toBundle()</code> method
newInstance
{ "repo_name": "groundupworks/wings", "path": "wings-facebook/src/main/java/com/groundupworks/wings/facebook/FacebookSettings.java", "license": "apache-2.0", "size": 7571 }
[ "android.os.Bundle", "android.text.TextUtils" ]
import android.os.Bundle; import android.text.TextUtils;
import android.os.*; import android.text.*;
[ "android.os", "android.text" ]
android.os; android.text;
900,700
@Override public void setEmbedded(Map<Transition, RESTResource> embedded) { this.embedded = embedded; }
void function(Map<Transition, RESTResource> embedded) { this.embedded = embedded; }
/** * Called during resource building phase to set the embedded * resources for serialization by the provider. * @param embedded */
Called during resource building phase to set the embedded resources for serialization by the provider
setEmbedded
{ "repo_name": "junejosheeraz/IRIS", "path": "interaction-core/src/main/java/com/temenos/interaction/core/resource/EntityResource.java", "license": "agpl-3.0", "size": 3565 }
[ "com.temenos.interaction.core.hypermedia.Transition", "java.util.Map" ]
import com.temenos.interaction.core.hypermedia.Transition; import java.util.Map;
import com.temenos.interaction.core.hypermedia.*; import java.util.*;
[ "com.temenos.interaction", "java.util" ]
com.temenos.interaction; java.util;
1,840,851
private void updateGoogleAccessToken(Long userId) { List<Token> googleByUserId = tokenDAO.findGoogleByUserId(userId); if (!googleByUserId.isEmpty()) { Token googleToken = googleByUserId.get(0); Optional<String> validAccessToken = GoogleHelper .getValidAcce...
void function(Long userId) { List<Token> googleByUserId = tokenDAO.findGoogleByUserId(userId); if (!googleByUserId.isEmpty()) { Token googleToken = googleByUserId.get(0); Optional<String> validAccessToken = GoogleHelper .getValidAccessToken(googleToken); if (validAccessToken.isPresent()) { googleToken.setContent(validA...
/** * Updates the user's google access token in the DB * @param userId The user's ID */
Updates the user's google access token in the DB
updateGoogleAccessToken
{ "repo_name": "ga4gh/dockstore", "path": "dockstore-webservice/src/main/java/io/dockstore/webservice/resources/UserResource.java", "license": "apache-2.0", "size": 80693 }
[ "io.dockstore.webservice.core.Token", "io.dockstore.webservice.helpers.GoogleHelper", "java.util.List", "java.util.Optional" ]
import io.dockstore.webservice.core.Token; import io.dockstore.webservice.helpers.GoogleHelper; import java.util.List; import java.util.Optional;
import io.dockstore.webservice.core.*; import io.dockstore.webservice.helpers.*; import java.util.*;
[ "io.dockstore.webservice", "java.util" ]
io.dockstore.webservice; java.util;
60,493
@Test public void testGetConfigFolder() throws Exception { boolean fileExists = fileSystem.getConfigFolder().exists(); assertEquals(fileExists, true); }
void function() throws Exception { boolean fileExists = fileSystem.getConfigFolder().exists(); assertEquals(fileExists, true); }
/** * <p> * Tests if the config folder is created correctly. * </p> * * @throws Exception Passes any errors that occurred during the test on */
Tests if the config folder is created correctly.
testGetConfigFolder
{ "repo_name": "TruffleHog/TruffleHog", "path": "src/test/java/edu/kit/trufflehog/model/FileSystemTest.java", "license": "gpl-2.0", "size": 3593 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
777,245
protected void failGet(int k) { try { jcache(0).get(new TestKey(String.valueOf(k))); assert false : "p2p marshalling failed, but error response was not sent"; } catch (CacheException e) { assert X.hasCause(e, IOException.class); } }
void function(int k) { try { jcache(0).get(new TestKey(String.valueOf(k))); assert false : STR; } catch (CacheException e) { assert X.hasCause(e, IOException.class); } }
/** * Sends get atomically and handles fail. * * @param k Key. */
Sends get atomically and handles fail
failGet
{ "repo_name": "samaitra/ignite", "path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheP2pUnmarshallingErrorTest.java", "license": "apache-2.0", "size": 8327 }
[ "java.io.IOException", "javax.cache.CacheException", "org.apache.ignite.internal.util.typedef.X" ]
import java.io.IOException; import javax.cache.CacheException; import org.apache.ignite.internal.util.typedef.X;
import java.io.*; import javax.cache.*; import org.apache.ignite.internal.util.typedef.*;
[ "java.io", "javax.cache", "org.apache.ignite" ]
java.io; javax.cache; org.apache.ignite;
486,691
private void paintScreen() { try { Graphics g = this.getGraphics(); if ((g != null) && (image != null)) { g.drawImage(image, 0, 0, null); g.dispose(); } Toolkit.getDefaultToolkit().sync(); } catch (Exception e)...
void function() { try { Graphics g = this.getGraphics(); if ((g != null) && (image != null)) { g.drawImage(image, 0, 0, null); g.dispose(); } Toolkit.getDefaultToolkit().sync(); } catch (Exception e) { System.err.println(STR + e); } }
/** * Paints the screen. */
Paints the screen
paintScreen
{ "repo_name": "thomsmits/game-framework", "path": "framework/src/de/smits_net/games/framework/board/Board.java", "license": "mit", "size": 16588 }
[ "java.awt.Graphics", "java.awt.Toolkit" ]
import java.awt.Graphics; import java.awt.Toolkit;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,873,583
public OutputStream createOutputStream() throws IOException { return stream.createOutputStream(); }
OutputStream function() throws IOException { return stream.createOutputStream(); }
/** * This will get a stream that can be written to. * * @return An output stream to write data to. * @throws IOException If an IO error occurs during writing. */
This will get a stream that can be written to
createOutputStream
{ "repo_name": "joansmith/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDStream.java", "license": "apache-2.0", "size": 18260 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,426,182
public static Pair<ZooKeeperServerShim, Integer> runZookeeperOnAnyPort(File zkDir) throws Exception { return runZookeeperOnAnyPort((int) (Math.random() * 10000 + 7000), zkDir); }
static Pair<ZooKeeperServerShim, Integer> function(File zkDir) throws Exception { return runZookeeperOnAnyPort((int) (Math.random() * 10000 + 7000), zkDir); }
/** * Try to start zookkeeper locally on any port. */
Try to start zookkeeper locally on any port
runZookeeperOnAnyPort
{ "repo_name": "sijie/incubator-distributedlog", "path": "distributedlog-core/src/main/java/org/apache/distributedlog/LocalDLMEmulator.java", "license": "apache-2.0", "size": 12944 }
[ "java.io.File", "org.apache.bookkeeper.shims.zk.ZooKeeperServerShim", "org.apache.commons.lang3.tuple.Pair" ]
import java.io.File; import org.apache.bookkeeper.shims.zk.ZooKeeperServerShim; import org.apache.commons.lang3.tuple.Pair;
import java.io.*; import org.apache.bookkeeper.shims.zk.*; import org.apache.commons.lang3.tuple.*;
[ "java.io", "org.apache.bookkeeper", "org.apache.commons" ]
java.io; org.apache.bookkeeper; org.apache.commons;
1,106,896
public static String formatVector(Vector v, String[] bindings) { StringBuilder buf = new StringBuilder(); if (v instanceof NamedVector) { buf.append(((NamedVector) v).getName()).append(" = "); } int nzero = 0; Iterator<Vector.Element> iterateNonZero = v.iterateNonZero(); while (iterateNo...
static String function(Vector v, String[] bindings) { StringBuilder buf = new StringBuilder(); if (v instanceof NamedVector) { buf.append(((NamedVector) v).getName()).append(STR); } int nzero = 0; Iterator<Vector.Element> iterateNonZero = v.iterateNonZero(); while (iterateNonZero.hasNext()) { iterateNonZero.next(); nze...
/** * Return a human-readable formatted string representation of the vector, not * intended to be complete nor usable as an input/output representation */
Return a human-readable formatted string representation of the vector, not intended to be complete nor usable as an input/output representation
formatVector
{ "repo_name": "BigData-Lab-Frankfurt/HiBench-DSE", "path": "common/mahout-distribution-0.7-hadoop1/core/src/main/java/org/apache/mahout/clustering/AbstractCluster.java", "license": "apache-2.0", "size": 9441 }
[ "java.util.Iterator", "java.util.Locale", "org.apache.mahout.math.NamedVector", "org.apache.mahout.math.Vector" ]
import java.util.Iterator; import java.util.Locale; import org.apache.mahout.math.NamedVector; import org.apache.mahout.math.Vector;
import java.util.*; import org.apache.mahout.math.*;
[ "java.util", "org.apache.mahout" ]
java.util; org.apache.mahout;
1,932,552
//----------------------------------------------------------------------- public void write(int idx) throws IOException { out.write(idx); }
void function(int idx) throws IOException { out.write(idx); }
/** * Write a character. * @param idx the character to write * @throws IOException if an I/O error occurs */
Write a character
write
{ "repo_name": "wiyarmir/GPT-Organize", "path": "src/org/apache/commons/io/output/FileWriterWithEncoding.java", "license": "gpl-3.0", "size": 12070 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,596,517
private void write(int integer, int width) throws JSONException { try { this.bitwriter.write(integer, width); if (probe) { log(integer, width); } } catch (Throwable e) { throw new JSONException(e); } }
void function(int integer, int width) throws JSONException { try { this.bitwriter.write(integer, width); if (probe) { log(integer, width); } } catch (Throwable e) { throw new JSONException(e); } }
/** * Write a number, using the number of bits necessary to hold the number. * * @param integer * The value to be encoded. * @param width * The number of bits to encode the value, between 0 and 32. * @throws JSONException */
Write a number, using the number of bits necessary to hold the number
write
{ "repo_name": "anneomcl/DotAMapper", "path": "cs467-2/Part 2 - DotA Map Visualization (Code)/org/Zipper.java", "license": "mit", "size": 14205 }
[ "org.json.JSONException" ]
import org.json.JSONException;
import org.json.*;
[ "org.json" ]
org.json;
2,858,253
EReference getDataLibProject_Webservices();
EReference getDataLibProject_Webservices();
/** * Returns the meta object for the containment reference list '{@link fr.eyal.lib.datalib.genmodel.android.datalib.DataLibProject#getWebservices <em>Webservices</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>Webservices</em>'. * @...
Returns the meta object for the containment reference list '<code>fr.eyal.lib.datalib.genmodel.android.datalib.DataLibProject#getWebservices Webservices</code>'.
getDataLibProject_Webservices
{ "repo_name": "eyal-lezmy/Android-DataLib", "path": "Android-DataLib-Generator/fr.eyal.datalib.generator/src/fr/eyal/lib/datalib/genmodel/android/datalib/DatalibPackage.java", "license": "apache-2.0", "size": 19274 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,169,936
void exitDoStatement(@NotNull Java8Parser.DoStatementContext ctx);
void exitDoStatement(@NotNull Java8Parser.DoStatementContext ctx);
/** * Exit a parse tree produced by {@link Java8Parser#doStatement}. * * @param ctx the parse tree */
Exit a parse tree produced by <code>Java8Parser#doStatement</code>
exitDoStatement
{ "repo_name": "BigDaddy-Germany/WHOAMI", "path": "WHOAMI/src/de/aima13/whoami/modules/syntaxcheck/languages/antlrgen/Java8Listener.java", "license": "mit", "size": 97945 }
[ "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;
100,589
@Override public void onBackPressed() { Intent intent = new Intent (Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); }
void function() { Intent intent = new Intent (Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); }
/** * Overrides onBackPressed to close the app when the back button is pressed, instead of * returning to the load screen activity */
Overrides onBackPressed to close the app when the back button is pressed, instead of returning to the load screen activity
onBackPressed
{ "repo_name": "NicLew/Chordinate", "path": "app/src/main/java/edu/pacificu/chordinate/chordinate/MainMenuActivity.java", "license": "mit", "size": 6680 }
[ "android.content.Intent" ]
import android.content.Intent;
import android.content.*;
[ "android.content" ]
android.content;
733,137
public static byte[] readByteArray(ByteBuffer... bufs) { assert !F.isEmpty(bufs); int size = 0; for (ByteBuffer buf : bufs) size += buf.remaining(); byte[] res = new byte[size]; int off = 0; for (ByteBuffer buf : bufs) { int len = buf.rema...
static byte[] function(ByteBuffer... bufs) { assert !F.isEmpty(bufs); int size = 0; for (ByteBuffer buf : bufs) size += buf.remaining(); byte[] res = new byte[size]; int off = 0; for (ByteBuffer buf : bufs) { int len = buf.remaining(); if (len != 0) { buf.get(res, off, len); off += len; } } assert off == res.length; re...
/** * Reads byte array from given buffers (changing buffer positions). * * @param bufs Byte buffers. * @return Byte array. */
Reads byte array from given buffers (changing buffer positions)
readByteArray
{ "repo_name": "murador/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 294985 }
[ "java.nio.ByteBuffer", "org.apache.ignite.internal.util.typedef.F" ]
import java.nio.ByteBuffer; import org.apache.ignite.internal.util.typedef.F;
import java.nio.*; import org.apache.ignite.internal.util.typedef.*;
[ "java.nio", "org.apache.ignite" ]
java.nio; org.apache.ignite;
1,945,048
private FileInfo getShardFileInfo(File file) { FileInfo info = FileInfo.fromFile(file); if (info == null) { return null; // file with incorrect name/extension } File expectedDirectory = getSubdirectory(info.resourceId); boolean isCorrect = expectedDirectory.equals(file.getParentFile()); ...
FileInfo function(File file) { FileInfo info = FileInfo.fromFile(file); if (info == null) { return null; } File expectedDirectory = getSubdirectory(info.resourceId); boolean isCorrect = expectedDirectory.equals(file.getParentFile()); return isCorrect ? info : null; } private static enum FileType { CONTENT(CONTENT_FILE_...
/** * Checks that the file is placed in the correct shard according to its * filename (and hence the represented key). If it's correct its FileInfo is returned. * @param file the file to check * @return the corresponding FileInfo object if shard is correct, null otherwise */
Checks that the file is placed in the correct shard according to its filename (and hence the represented key). If it's correct its FileInfo is returned
getShardFileInfo
{ "repo_name": "HKMOpen/fresco", "path": "imagepipeline-base/src/main/java/com/facebook/cache/disk/DefaultDiskStorage.java", "license": "bsd-3-clause", "size": 22017 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,073,510
public static void setUploaderBehaviour(Context context, int uploaderBehaviour) { saveIntPreference(context, AUTO_PREF__UPLOADER_BEHAVIOR, uploaderBehaviour); }
static void function(Context context, int uploaderBehaviour) { saveIntPreference(context, AUTO_PREF__UPLOADER_BEHAVIOR, uploaderBehaviour); }
/** * Saves the uploader behavior which the user has set last. * * @param context Caller {@link Context}, used to access to shared preferences manager. * @param uploaderBehaviour the uploader behavior */
Saves the uploader behavior which the user has set last
setUploaderBehaviour
{ "repo_name": "tobiasKaminsky/android", "path": "src/main/java/com/owncloud/android/db/PreferenceManager.java", "license": "gpl-2.0", "size": 25536 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
126,190
EClass getFKey();
EClass getFKey();
/** * Returns the meta object for class '{@link RDBMSMM.FKey <em>FKey</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>FKey</em>'. * @see RDBMSMM.FKey * @generated */
Returns the meta object for class '<code>RDBMSMM.FKey FKey</code>'.
getFKey
{ "repo_name": "diverse-project/k3", "path": "k3-samples-incomplete/class2rdbms/fr.inria.triskell.k3.sample.class3rdbms.rdbmsmm.model/src/RDBMSMM/RDBMSMMPackage.java", "license": "epl-1.0", "size": 15088 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
890,510
public static void groupsElementsInMergedSessionsWithLatestTimestamp( GroupAlsoByWindowsDoFnFactory<String, String, Iterable<String>> gabwFactory) throws Exception { WindowingStrategy<?, IntervalWindow> windowingStrategy = WindowingStrategy.of(Sessions.withGapDuration(Duration.millis(10))...
static void function( GroupAlsoByWindowsDoFnFactory<String, String, Iterable<String>> gabwFactory) throws Exception { WindowingStrategy<?, IntervalWindow> windowingStrategy = WindowingStrategy.of(Sessions.withGapDuration(Duration.millis(10))) .withOutputTimeFn(OutputTimeFns.outputAtLatestInputTimestamp()); BoundedWindo...
/** * Tests that the given GABW implementation correctly groups elements into merged sessions * with output timestamps at the end of the merged window. */
Tests that the given GABW implementation correctly groups elements into merged sessions with output timestamps at the end of the merged window
groupsElementsInMergedSessionsWithLatestTimestamp
{ "repo_name": "shakamunyi/beam", "path": "sdks/java/core/src/test/java/org/apache/beam/sdk/util/GroupAlsoByWindowsProperties.java", "license": "apache-2.0", "size": 26402 }
[ "com.google.common.collect.Iterables", "java.util.Arrays", "org.apache.beam.sdk.transforms.DoFnTester", "org.apache.beam.sdk.transforms.windowing.BoundedWindow", "org.apache.beam.sdk.transforms.windowing.IntervalWindow", "org.apache.beam.sdk.transforms.windowing.OutputTimeFns", "org.apache.beam.sdk.tran...
import com.google.common.collect.Iterables; import java.util.Arrays; import org.apache.beam.sdk.transforms.DoFnTester; import org.apache.beam.sdk.transforms.windowing.BoundedWindow; import org.apache.beam.sdk.transforms.windowing.IntervalWindow; import org.apache.beam.sdk.transforms.windowing.OutputTimeFns; import org....
import com.google.common.collect.*; import java.util.*; import org.apache.beam.sdk.transforms.*; import org.apache.beam.sdk.transforms.windowing.*; import org.apache.beam.sdk.values.*; import org.hamcrest.*; import org.joda.time.*; import org.junit.*;
[ "com.google.common", "java.util", "org.apache.beam", "org.hamcrest", "org.joda.time", "org.junit" ]
com.google.common; java.util; org.apache.beam; org.hamcrest; org.joda.time; org.junit;
2,276,744
private void waitStateMessages() throws NumberFormatException, IOException, InterruptedException, IpcontrolException { if (connected) { PioneerAvrStatusUpdateEvent event = new PioneerAvrStatusUpdateEvent(this); logger.trace("Waiting status messages"); ...
void function() throws NumberFormatException, IOException, InterruptedException, IpcontrolException { if (connected) { PioneerAvrStatusUpdateEvent event = new PioneerAvrStatusUpdateEvent(this); logger.trace(STR); while (true) { String receivedData = inBufferedReader.readLine(); if (logger.isTraceEnabled()) { logger.tra...
/** * This method wait any state messages form receiver. * * @throws IOException * @throws InterruptedException * @throws IpcontrolException **/
This method wait any state messages form receiver
waitStateMessages
{ "repo_name": "sedstef/openhab", "path": "bundles/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/ipcontrolprotocol/IpControl.java", "license": "epl-1.0", "size": 14631 }
[ "java.io.IOException", "java.util.Iterator", "javax.xml.bind.DatatypeConverter", "org.openhab.binding.pioneeravr.internal.PioneerAvrEventListener", "org.openhab.binding.pioneeravr.internal.PioneerAvrStatusUpdateEvent" ]
import java.io.IOException; import java.util.Iterator; import javax.xml.bind.DatatypeConverter; import org.openhab.binding.pioneeravr.internal.PioneerAvrEventListener; import org.openhab.binding.pioneeravr.internal.PioneerAvrStatusUpdateEvent;
import java.io.*; import java.util.*; import javax.xml.bind.*; import org.openhab.binding.pioneeravr.internal.*;
[ "java.io", "java.util", "javax.xml", "org.openhab.binding" ]
java.io; java.util; javax.xml; org.openhab.binding;
2,114,777
long countByExample(ProjectNotificationSettingExample example);
long countByExample(ProjectNotificationSettingExample example);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table m_prj_notifications * * @mbg.generated Sat Apr 20 17:20:23 CDT 2019 */
This method was generated by MyBatis Generator. This method corresponds to the database table m_prj_notifications
countByExample
{ "repo_name": "aglne/mycollab", "path": "mycollab-services/src/main/java/com/mycollab/module/project/dao/ProjectNotificationSettingMapper.java", "license": "agpl-3.0", "size": 4428 }
[ "com.mycollab.module.project.domain.ProjectNotificationSettingExample" ]
import com.mycollab.module.project.domain.ProjectNotificationSettingExample;
import com.mycollab.module.project.domain.*;
[ "com.mycollab.module" ]
com.mycollab.module;
1,854,565
public static BufferedReader newReader(Path self) throws IOException { return Files.newBufferedReader(self, Charset.defaultCharset()); }
static BufferedReader function(Path self) throws IOException { return Files.newBufferedReader(self, Charset.defaultCharset()); }
/** * Create a buffered reader for this file. * * @param self a Path * @return a BufferedReader * @throws java.io.IOException if an IOException occurs. * @since 2.3.0 */
Create a buffered reader for this file
newReader
{ "repo_name": "avafanasiev/groovy", "path": "subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java", "license": "apache-2.0", "size": 88390 }
[ "java.io.BufferedReader", "java.io.IOException", "java.nio.charset.Charset", "java.nio.file.Files", "java.nio.file.Path" ]
import java.io.BufferedReader; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path;
import java.io.*; import java.nio.charset.*; import java.nio.file.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,293,379
public static void writeResponse(final HttpServletRequest request, final HttpServletResponse response, final JSONArray json) throws IOException { writeResponse(request, response, json.toString()); }
static void function(final HttpServletRequest request, final HttpServletResponse response, final JSONArray json) throws IOException { writeResponse(request, response, json.toString()); }
/** * Writes a JSON response. * * @param request The request. * @param response The response. * @param json The JSON data to write. * @throws IOException If there's any error writing the response. */
Writes a JSON response
writeResponse
{ "repo_name": "adamfisk/littleshoot-client", "path": "client/services/src/main/java/org/lastbamboo/client/handlers/JsonControllerUtils.java", "license": "gpl-2.0", "size": 3531 }
[ "java.io.IOException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.json.JSONArray" ]
import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray;
import java.io.*; import javax.servlet.http.*; import org.json.*;
[ "java.io", "javax.servlet", "org.json" ]
java.io; javax.servlet; org.json;
313,152
private void onSlide(final Event event, int index) { GallerySlideEvent.fire(this, event, index); }
void function(final Event event, int index) { GallerySlideEvent.fire(this, event, index); }
/** * Triggered when the gallery is sliding. * * @param event the event */
Triggered when the gallery is sliding
onSlide
{ "repo_name": "gwtbootstrap3/gwtbootstrap3-extras", "path": "src/main/java/org/gwtbootstrap3/extras/gallery/client/ui/Gallery.java", "license": "apache-2.0", "size": 12462 }
[ "com.google.gwt.user.client.Event", "org.gwtbootstrap3.extras.gallery.client.events.GallerySlideEvent" ]
import com.google.gwt.user.client.Event; import org.gwtbootstrap3.extras.gallery.client.events.GallerySlideEvent;
import com.google.gwt.user.client.*; import org.gwtbootstrap3.extras.gallery.client.events.*;
[ "com.google.gwt", "org.gwtbootstrap3.extras" ]
com.google.gwt; org.gwtbootstrap3.extras;
1,928,223
public void testVerifyEmployeeCacheSettings() { EntityManager em = createEntityManager("default1"); ClassDescriptor descriptor; if (isOnServer()) { descriptor = getServerSession("default1").getDescriptorForAlias("Employee"); } else { descriptor = ((EntityManag...
void function() { EntityManager em = createEntityManager(STR); ClassDescriptor descriptor; if (isOnServer()) { descriptor = getServerSession(STR).getDescriptorForAlias(STR); } else { descriptor = ((EntityManagerImpl) em).getServerSession().getDescriptorForAlias(STR); } if (descriptor == null) { fail(STR); } else { asse...
/** * Verifies that settings from the Employee cache annotation have been set. */
Verifies that settings from the Employee cache annotation have been set
testVerifyEmployeeCacheSettings
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/advanced/AdvancedJPAJunitTest.java", "license": "epl-1.0", "size": 166492 }
[ "javax.persistence.EntityManager", "org.eclipse.persistence.descriptors.ClassDescriptor", "org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy", "org.eclipse.persistence.descriptors.invalidation.TimeToLiveCacheInvalidationPolicy", "org.eclipse.persistence.internal.helper.ClassConstants"...
import javax.persistence.EntityManager; import org.eclipse.persistence.descriptors.ClassDescriptor; import org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy; import org.eclipse.persistence.descriptors.invalidation.TimeToLiveCacheInvalidationPolicy; import org.eclipse.persistence.internal.helper.C...
import javax.persistence.*; import org.eclipse.persistence.descriptors.*; import org.eclipse.persistence.descriptors.invalidation.*; import org.eclipse.persistence.internal.helper.*; import org.eclipse.persistence.internal.jpa.*;
[ "javax.persistence", "org.eclipse.persistence" ]
javax.persistence; org.eclipse.persistence;
1,232,465
public String getTime() { return Dispatch.get(this, "Time").toString(); }
String function() { return Dispatch.get(this, "Time").toString(); }
/** * Wrapper for calling the ActiveX-Method with input-parameter(s). * * @return the result is of type String */
Wrapper for calling the ActiveX-Method with input-parameter(s)
getTime
{ "repo_name": "cpesch/MetaMusic", "path": "itunes-com-library/src/main/java/slash/metamusic/itunes/com/binding/IITFileOrCDTrack.java", "license": "gpl-2.0", "size": 32709 }
[ "com.jacob.com.Dispatch" ]
import com.jacob.com.Dispatch;
import com.jacob.com.*;
[ "com.jacob.com" ]
com.jacob.com;
1,587,954
public CompassPoint getNextRunDirection () { return nextRunDirection; }
CompassPoint function () { return nextRunDirection; }
/** * Gets the direction of the entitie's next run step * @return The next run direction */
Gets the direction of the entitie's next run step
getNextRunDirection
{ "repo_name": "Sundays211/VirtueRS3", "path": "src/main/java/org/virtue/game/map/movement/Movement.java", "license": "mit", "size": 19907 }
[ "org.virtue.core.constants.CompassPoint" ]
import org.virtue.core.constants.CompassPoint;
import org.virtue.core.constants.*;
[ "org.virtue.core" ]
org.virtue.core;
1,524,441
public ServiceLevelAgreementActionValidation validateConfiguration() { if (emailService.isConfigured()) { return ServiceLevelAgreementActionValidation.VALID; } else { return new ServiceLevelAgreementActionValidation(false, "Email connection information is not setup. Please ...
ServiceLevelAgreementActionValidation function() { if (emailService.isConfigured()) { return ServiceLevelAgreementActionValidation.VALID; } else { return new ServiceLevelAgreementActionValidation(false, STR); } }
/** * Validate to ensure there is a configuration setup for the email * * @return a validation object containing information if the configuration is valid */
Validate to ensure there is a configuration setup for the email
validateConfiguration
{ "repo_name": "claudiu-stanciu/kylo", "path": "plugins/sla-email/src/main/java/com/thinkbiganalytics/metadata/sla/EmailServiceLevelAgreementAction.java", "license": "apache-2.0", "size": 6449 }
[ "com.thinkbiganalytics.metadata.sla.api.ServiceLevelAgreementActionValidation" ]
import com.thinkbiganalytics.metadata.sla.api.ServiceLevelAgreementActionValidation;
import com.thinkbiganalytics.metadata.sla.api.*;
[ "com.thinkbiganalytics.metadata" ]
com.thinkbiganalytics.metadata;
1,630,318
static public List<String> getNames() { List<String> names = new ArrayList<>(nameToGroupType.keySet()); return names; }
static List<String> function() { List<String> names = new ArrayList<>(nameToGroupType.keySet()); return names; }
/** * Returns the names of all registered GroupTypes as a list. * * @return names the names of all registered GroupTypes in order of insertion. */
Returns the names of all registered GroupTypes as a list
getNames
{ "repo_name": "PathVisio/libGPML", "path": "org.pathvisio.lib/src/main/java/org/pathvisio/model/type/GroupType.java", "license": "apache-2.0", "size": 4542 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
836,728
public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { IBlockState iblockstate = super.onBlockPlaced(worldIn, pos, facing, hitX, hitY, hitZ, meta, placer).withProperty(HALF, BlockSlab.EnumBlockHalf.BOTTOM)...
IBlockState function(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { IBlockState iblockstate = super.onBlockPlaced(worldIn, pos, facing, hitX, hitY, hitZ, meta, placer).withProperty(HALF, BlockSlab.EnumBlockHalf.BOTTOM); return this.isDouble() ? i...
/** * Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the * IBlockstate */
Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate
onBlockPlaced
{ "repo_name": "TorchPowered/Thallium", "path": "src/main/java/net/minecraft/block/BlockSlab.java", "license": "mit", "size": 4670 }
[ "net.minecraft.block.state.IBlockState", "net.minecraft.entity.EntityLivingBase", "net.minecraft.util.BlockPos", "net.minecraft.util.EnumFacing", "net.minecraft.world.World" ]
import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.world.World;
import net.minecraft.block.state.*; import net.minecraft.entity.*; import net.minecraft.util.*; import net.minecraft.world.*;
[ "net.minecraft.block", "net.minecraft.entity", "net.minecraft.util", "net.minecraft.world" ]
net.minecraft.block; net.minecraft.entity; net.minecraft.util; net.minecraft.world;
2,431,615
protected void flushCache() { flushCacheMap(generalCache); for (ConcurrentHashMap<String, Tuple<CacheableObject, Long>> m : realmCache.values()) { flushCacheMap(m); } }
void function() { flushCacheMap(generalCache); for (ConcurrentHashMap<String, Tuple<CacheableObject, Long>> m : realmCache.values()) { flushCacheMap(m); } }
/** * Removes out dated or inefficient cache entires. * */
Removes out dated or inefficient cache entires
flushCache
{ "repo_name": "schuttek/nectar", "path": "src/main/java/org/nectarframework/base/service/cache/HashMapCacheService.java", "license": "lgpl-3.0", "size": 8809 }
[ "java.util.concurrent.ConcurrentHashMap", "org.nectarframework.base.tools.Tuple" ]
import java.util.concurrent.ConcurrentHashMap; import org.nectarframework.base.tools.Tuple;
import java.util.concurrent.*; import org.nectarframework.base.tools.*;
[ "java.util", "org.nectarframework.base" ]
java.util; org.nectarframework.base;
2,270,916
@Test void testFlat34Equals() { List f3list = FlatLists.of(1, 2, 3); List f4list = FlatLists.of(1, 2, 3, 4); assertThat(f3list.equals(f4list), is(false)); }
@Test void testFlat34Equals() { List f3list = FlatLists.of(1, 2, 3); List f4list = FlatLists.of(1, 2, 3, 4); assertThat(f3list.equals(f4list), is(false)); }
/** Test case for * <a href="https://issues.apache.org/jira/browse/CALCITE-2287">[CALCITE-2287] * FlatList.equals throws StackOverflowError</a>. */
Test case for [CALCITE-2287]
testFlat34Equals
{ "repo_name": "jcamachor/calcite", "path": "core/src/test/java/org/apache/calcite/util/UtilTest.java", "license": "apache-2.0", "size": 110240 }
[ "java.util.List", "org.apache.calcite.runtime.FlatLists", "org.hamcrest.CoreMatchers", "org.hamcrest.MatcherAssert", "org.junit.jupiter.api.Test" ]
import java.util.List; import org.apache.calcite.runtime.FlatLists; import org.hamcrest.CoreMatchers; import org.hamcrest.MatcherAssert; import org.junit.jupiter.api.Test;
import java.util.*; import org.apache.calcite.runtime.*; import org.hamcrest.*; import org.junit.jupiter.api.*;
[ "java.util", "org.apache.calcite", "org.hamcrest", "org.junit.jupiter" ]
java.util; org.apache.calcite; org.hamcrest; org.junit.jupiter;
2,648,808
@Override public void onClick(View v) { switch (v.getId()) { case R.id.add: String alias = aliasInput.getText().toString().trim(); aliases.add(alias); adapter.add(alias); aliasInput.setText(""); okButton.setE...
void function(View v) { switch (v.getId()) { case R.id.add: String alias = aliasInput.getText().toString().trim(); aliases.add(alias); adapter.add(alias); aliasInput.setText(""); okButton.setEnabled(true); break; case R.id.cancel: setResult(RESULT_CANCELED); finish(); break; case R.id.ok: Intent intent = new Intent(); ...
/** * On Click */
On Click
onClick
{ "repo_name": "0xD34D/Yaaic", "path": "application/src/org/yaaic/activity/AddAliasActivity.java", "license": "gpl-3.0", "size": 4170 }
[ "android.content.Intent", "android.view.View", "org.yaaic.model.Extra" ]
import android.content.Intent; import android.view.View; import org.yaaic.model.Extra;
import android.content.*; import android.view.*; import org.yaaic.model.*;
[ "android.content", "android.view", "org.yaaic.model" ]
android.content; android.view; org.yaaic.model;
2,063,409
private Pair<Timestamp, List<String>> internalUpdateNoteData(Note note, NoteStoringTO noteStoringTO, Blog targetBlog, Collection<User> usersToNotify) throws NoteStoringPreProcessorException, AttachmentAlreadyAssignedException, NoteManagementAuthorizationException, NoteNotFoundExc...
Pair<Timestamp, List<String>> function(Note note, NoteStoringTO noteStoringTO, Blog targetBlog, Collection<User> usersToNotify) throws NoteStoringPreProcessorException, AttachmentAlreadyAssignedException, NoteManagementAuthorizationException, NoteNotFoundException { if (targetBlog != null) { note.setBlog(targetBlog); }...
/** * Internal method to update the data of an existing note. * * @param note * the existing note * @param noteStoringTO * the TO holding the new data * @param targetBlog * the new blog to set, if null the blog will not be changed * @param us...
Internal method to update the data of an existing note
internalUpdateNoteData
{ "repo_name": "Communote/communote-server", "path": "communote/core/src/main/java/com/communote/server/core/blog/NoteManagementImpl.java", "license": "apache-2.0", "size": 87471 }
[ "com.communote.common.util.Pair", "com.communote.server.api.core.note.NoteManagementAuthorizationException", "com.communote.server.api.core.note.NoteStoringTO", "com.communote.server.api.core.note.processor.NoteStoringPreProcessorException", "com.communote.server.model.blog.Blog", "com.communote.server.mo...
import com.communote.common.util.Pair; import com.communote.server.api.core.note.NoteManagementAuthorizationException; import com.communote.server.api.core.note.NoteStoringTO; import com.communote.server.api.core.note.processor.NoteStoringPreProcessorException; import com.communote.server.model.blog.Blog; import com.co...
import com.communote.common.util.*; import com.communote.server.api.core.note.*; import com.communote.server.api.core.note.processor.*; import com.communote.server.model.blog.*; import com.communote.server.model.note.*; import com.communote.server.model.user.*; import java.sql.*; import java.util.*;
[ "com.communote.common", "com.communote.server", "java.sql", "java.util" ]
com.communote.common; com.communote.server; java.sql; java.util;
2,412,122
public void setDataModelNotification(final DataModelNotification dataModelNotification) { Vector<String> internalFramesTitles = new Vector<String>(getHashMapEditorFrames().keySet()); for (int i = 0; i < internalFramesTitles.size(); i++) { String internalFrameTitles = internalFramesTitles.get(i); JIntern...
void function(final DataModelNotification dataModelNotification) { Vector<String> internalFramesTitles = new Vector<String>(getHashMapEditorFrames().keySet()); for (int i = 0; i < internalFramesTitles.size(); i++) { String internalFrameTitles = internalFramesTitles.get(i); JInternalFrame internalFrame = getHashMapEdito...
/** * Sets the data model update. * @param dataModelNotification the new data model update */
Sets the data model update
setDataModelNotification
{ "repo_name": "EnFlexIT/AgentWorkbench", "path": "eclipseProjects/org.agentgui/bundles/org.awb.env.networkModel/src/org/awb/env/networkModel/controller/ui/BasicGraphGuiJDesktopPane.java", "license": "lgpl-2.1", "size": 10252 }
[ "java.util.Vector", "javax.swing.JInternalFrame", "org.awb.env.networkModel.visualisation.notifications.DataModelNotification" ]
import java.util.Vector; import javax.swing.JInternalFrame; import org.awb.env.networkModel.visualisation.notifications.DataModelNotification;
import java.util.*; import javax.swing.*; import org.awb.env.*;
[ "java.util", "javax.swing", "org.awb.env" ]
java.util; javax.swing; org.awb.env;
381,951
private int abortTxns(Connection dbConn, List<Long> txnids, boolean checkHeartbeat, boolean skipCount, boolean isReplReplayed) throws SQLException, MetaException { Statement stmt = null; if (txnids.isEmpty()) { return 0; } removeTxnsFromMinHistoryLevel(dbConn, txnid...
int function(Connection dbConn, List<Long> txnids, boolean checkHeartbeat, boolean skipCount, boolean isReplReplayed) throws SQLException, MetaException { Statement stmt = null; if (txnids.isEmpty()) { return 0; } removeTxnsFromMinHistoryLevel(dbConn, txnids); try { stmt = dbConn.createStatement(); List<String> queries...
/** * TODO: expose this as an operation to client. Useful for streaming API to abort all remaining * transactions in a batch on IOExceptions. * Caller must rollback the transaction if not all transactions were aborted since this will not * attempt to delete associated locks in this case. * * @param d...
transactions in a batch on IOExceptions. Caller must rollback the transaction if not all transactions were aborted since this will not attempt to delete associated locks in this case
abortTxns
{ "repo_name": "sankarh/hive", "path": "standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java", "license": "apache-2.0", "size": 278625 }
[ "java.sql.Connection", "java.sql.SQLException", "java.sql.Statement", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hive.metastore.api.MetaException", "org.apache.hadoop.hive.metastore.conf.MetastoreConf", "org.apache.hadoop.hive.metastore.metrics.Metrics", "org.apache.hadoop.hive.meta...
import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.metrics.Metrics; import o...
import java.sql.*; import java.util.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.conf.*; import org.apache.hadoop.hive.metastore.metrics.*; import org.apache.hadoop.hive.metastore.txn.*;
[ "java.sql", "java.util", "org.apache.hadoop" ]
java.sql; java.util; org.apache.hadoop;
1,766,005
protected void processConstraintsAndBinds(final RuleBuildContext context, final PatternDescr patternDescr, final Pattern pattern) { MVELDumper.MVELDumperContext mvelCtx = new MVELDumper.MVELDumperContext().setRuleCo...
void function(final RuleBuildContext context, final PatternDescr patternDescr, final Pattern pattern) { MVELDumper.MVELDumperContext mvelCtx = new MVELDumper.MVELDumperContext().setRuleContext(context); for (BaseDescr b : patternDescr.getDescrs()) { String expression; boolean isPositional = false; if (b instanceof Bind...
/** * Process all constraints and bindings on this pattern */
Process all constraints and bindings on this pattern
processConstraintsAndBinds
{ "repo_name": "jomarko/drools", "path": "drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilder.java", "license": "apache-2.0", "size": 88854 }
[ "java.util.List", "org.drools.compiler.lang.MVELDumper", "org.drools.compiler.lang.descr.BaseDescr", "org.drools.compiler.lang.descr.BindingDescr", "org.drools.compiler.lang.descr.ConstraintConnectiveDescr", "org.drools.compiler.lang.descr.ExprConstraintDescr", "org.drools.compiler.lang.descr.PatternDes...
import java.util.List; import org.drools.compiler.lang.MVELDumper; import org.drools.compiler.lang.descr.BaseDescr; import org.drools.compiler.lang.descr.BindingDescr; import org.drools.compiler.lang.descr.ConstraintConnectiveDescr; import org.drools.compiler.lang.descr.ExprConstraintDescr; import org.drools.compiler.l...
import java.util.*; import org.drools.compiler.lang.*; import org.drools.compiler.lang.descr.*; import org.drools.core.rule.*; import org.drools.core.spi.*;
[ "java.util", "org.drools.compiler", "org.drools.core" ]
java.util; org.drools.compiler; org.drools.core;
2,782,102
@SuppressWarnings("unchecked") public static Map<Object, Constructor<? extends StoragePlugin>> findAvailablePlugins(final ScanResult classpathScan) { Map<Object, Constructor<? extends StoragePlugin>> availablePlugins = new HashMap<>(); final Collection<Class<? extends StoragePlugin>> pluginClasses = ...
@SuppressWarnings(STR) static Map<Object, Constructor<? extends StoragePlugin>> function(final ScanResult classpathScan) { Map<Object, Constructor<? extends StoragePlugin>> availablePlugins = new HashMap<>(); final Collection<Class<? extends StoragePlugin>> pluginClasses = classpathScan.getImplementations(StoragePlugin...
/** * Get a list of all available storage plugin class constructors. * @param classpathScan A classpath scan to use. * @return A Map of StoragePluginConfig => StoragePlugin.<init>() constructors. */
Get a list of all available storage plugin class constructors
findAvailablePlugins
{ "repo_name": "ppadma/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistryImpl.java", "license": "apache-2.0", "size": 19717 }
[ "java.lang.reflect.Constructor", "java.util.Collection", "java.util.HashMap", "java.util.Map", "org.apache.drill.common.logical.StoragePluginConfig", "org.apache.drill.common.scanner.persistence.ScanResult", "org.apache.drill.exec.server.DrillbitContext" ]
import java.lang.reflect.Constructor; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.apache.drill.common.logical.StoragePluginConfig; import org.apache.drill.common.scanner.persistence.ScanResult; import org.apache.drill.exec.server.DrillbitContext;
import java.lang.reflect.*; import java.util.*; import org.apache.drill.common.logical.*; import org.apache.drill.common.scanner.persistence.*; import org.apache.drill.exec.server.*;
[ "java.lang", "java.util", "org.apache.drill" ]
java.lang; java.util; org.apache.drill;
831,525
@SuppressWarnings("rawtypes") @Override public boolean equals(Object other) { if (!(other instanceof ArrayWrapper)) { return false; } return Arrays.equals(this.array, ((ArrayWrapper) other).array); }
@SuppressWarnings(STR) boolean function(Object other) { if (!(other instanceof ArrayWrapper)) { return false; } return Arrays.equals(this.array, ((ArrayWrapper) other).array); }
/** * Determines if this object has a value equivalent to another object. * @see Arrays#equals(Object[], Object[]) */
Determines if this object has a value equivalent to another object
equals
{ "repo_name": "Maescool/PlotSquared", "path": "Bukkit/src/main/java/com/plotsquared/bukkit/chat/ArrayWrapper.java", "license": "gpl-3.0", "size": 2976 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
823,087