id int64 22 34.9k | original_code stringlengths 31 107k | code_wo_comment stringlengths 29 77.3k | cleancode stringlengths 25 62.1k | repo stringlengths 6 65 | label listlengths 4 4 |
|---|---|---|---|---|---|
34,902 | public static int[] parseJavaVersion(final String jdkVer) {
final int p0, p1;
try {
String[] parts = jdkVer.trim().split("[^0-9\\.]");//grab only number groups and "."
parts = parts[0].split("\\."); //split out the number groups
p0 = Integer.parseInt(parts[0]); //the first number group
p... | public static int[] parseJavaVersion(final String jdkVer) {
final int p0, p1;
try {
String[] parts = jdkVer.trim().split("[^0-9\\.]")
parts = parts[0].split("\\.");
p0 = Integer.parseInt(parts[0]);
p1 = (parts.length > 1) ? Integer.parseInt(parts[1]) : 0;
} catch (final NumberFormatE... | public static int[] parsejavaversion(final string jdkver) { final int p0, p1; try { string[] parts = jdkver.trim().split("[^0-9\\.]") parts = parts[0].split("\\."); p0 = integer.parseint(parts[0]); p1 = (parts.length > 1) ? integer.parseint(parts[1]) : 0; } catch (final numberformatexception | arrayindexoutofboundsexce... | apache/incubator-datasketches-memory | [
1,
0,
0,
0
] |
34,920 | @Deprecated
public static float getScreenPixelRatio() {
//TODO replace with API from Java 9 once that is released
if (Platform.isMac()) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
Object contentScaleFactor = toolkit.getDesktopProperty("apple.awt.contentScaleFactor");
... | @Deprecated
public static float getScreenPixelRatio() {
if (Platform.isMac()) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
Object contentScaleFactor = toolkit.getDesktopProperty("apple.awt.contentScaleFactor");
if (contentScaleFactor instanceof Number) {
... | @deprecated public static float getscreenpixelratio() { if (platform.ismac()) { toolkit toolkit = toolkit.getdefaulttoolkit(); object contentscalefactor = toolkit.getdesktopproperty("apple.awt.contentscalefactor"); if (contentscalefactor instanceof number) { return ((number) contentscalefactor).floatvalue(); } else { r... | colorizenl/colorize-java-commons | [
1,
0,
0,
0
] |
10,429 | @Override
public Object onExecute(ExecutionEvent event) throws ExecutionException {
project = PluginUtil.getSelectedProject();
try {
if (project == null) {
throw new Exception(Constant.ERROR_NO_SELECTED_PROJECT);
}
basePath = project.getLocation().... | @Override
public Object onExecute(ExecutionEvent event) throws ExecutionException {
project = PluginUtil.getSelectedProject();
try {
if (project == null) {
throw new Exception(Constant.ERROR_NO_SELECTED_PROJECT);
}
basePath = project.getLocation().... | @override public object onexecute(executionevent event) throws executionexception { project = pluginutil.getselectedproject(); try { if (project == null) { throw new exception(constant.error_no_selected_project); } basepath = project.getlocation().tostring(); if (mavenutils.ismavenproject(project)) { destinationpath = ... | andxu/azure-tools-for-java | [
0,
1,
0,
0
] |
2,322 | public ValueInstantiator createOptimized()
{
/* [Issue#11]: Need to avoid optimizing if we use delegate- or
* property-based creators.
*/
if (_originalInstantiator.canCreateFromObjectWith()
|| _originalInstantiator.canCreateUsingDelegate()) {
return nul... | public ValueInstantiator createOptimized()
{
if (_originalInstantiator.canCreateFromObjectWith()
|| _originalInstantiator.canCreateUsingDelegate()) {
return null;
}
AnnotatedWithParams defaultCreator = _originalInstantiator.getDefaultCreator();
... | public valueinstantiator createoptimized() { if (_originalinstantiator.cancreatefromobjectwith() || _originalinstantiator.cancreateusingdelegate()) { return null; } annotatedwithparams defaultcreator = _originalinstantiator.getdefaultcreator(); if (defaultcreator != null) { annotatedelement elem = defaultcreator.getann... | bsanchezb/jackson-modules-base | [
1,
0,
0,
0
] |
10,679 | @Override
public void flush(long timeoutMillis) {
// TODO: Flush transport
} | @Override
public void flush(long timeoutMillis) {
} | @override public void flush(long timeoutmillis) { } | bsergean/sentry-android | [
0,
1,
0,
0
] |
18,946 | protected boolean startsWithReferenceAnchor(TextLine line) {
if (line == null) {
return false;
}
String text = line.getText();
if (text == null) {
return false;
}
return REFERENCE_ANCHOR.matcher(text).find();
} | protected boolean startsWithReferenceAnchor(TextLine line) {
if (line == null) {
return false;
}
String text = line.getText();
if (text == null) {
return false;
}
return REFERENCE_ANCHOR.matcher(text).find();
} | protected boolean startswithreferenceanchor(textline line) { if (line == null) { return false; } string text = line.gettext(); if (text == null) { return false; } return reference_anchor.matcher(text).find(); } | ckorzen/pdfact | [
0,
1,
0,
0
] |
10,779 | public Future<?> greetMeSometimeAsync(String requestType,
AsyncHandler<GreetMeSometimeResponse> asyncHandler) {
return null;
/*not called */
} | public Future<?> greetMeSometimeAsync(String requestType,
AsyncHandler<GreetMeSometimeResponse> asyncHandler) {
return null;
} | public future<?> greetmesometimeasync(string requesttype, asynchandler<greetmesometimeresponse> asynchandler) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,780 | public Response<GreetMeSometimeResponse> greetMeSometimeAsync(String requestType) {
return null;
/*not called */
} | public Response<GreetMeSometimeResponse> greetMeSometimeAsync(String requestType) {
return null;
} | public response<greetmesometimeresponse> greetmesometimeasync(string requesttype) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,781 | public Response<TestDocLitFaultResponse> testDocLitFaultAsync(String faultType) {
return null;
/*not called */
} | public Response<TestDocLitFaultResponse> testDocLitFaultAsync(String faultType) {
return null;
} | public response<testdoclitfaultresponse> testdoclitfaultasync(string faulttype) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,782 | public Future<?> testDocLitFaultAsync(String faultType, AsyncHandler ah) {
return null;
/*not called */
} | public Future<?> testDocLitFaultAsync(String faultType, AsyncHandler ah) {
return null;
} | public future<?> testdoclitfaultasync(string faulttype, asynchandler ah) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,783 | public Future<?> testDocLitBareAsync(String bare, AsyncHandler ah) {
return null;
/* not called */
} | public Future<?> testDocLitBareAsync(String bare, AsyncHandler ah) {
return null;
} | public future<?> testdoclitbareasync(string bare, asynchandler ah) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,784 | public Response<BareDocumentResponse> testDocLitBareAsync(String bare) {
return null;
/* not called */
} | public Response<BareDocumentResponse> testDocLitBareAsync(String bare) {
return null;
} | public response<baredocumentresponse> testdoclitbareasync(string bare) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,785 | public Future<?> greetMeAsync(String requestType, AsyncHandler<GreetMeResponse> asyncHandler) {
return null;
/*not called */
} | public Future<?> greetMeAsync(String requestType, AsyncHandler<GreetMeResponse> asyncHandler) {
return null;
} | public future<?> greetmeasync(string requesttype, asynchandler<greetmeresponse> asynchandler) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,786 | public Response<GreetMeResponse> greetMeAsync(String requestType) {
return null;
/*not called */
} | public Response<GreetMeResponse> greetMeAsync(String requestType) {
return null;
} | public response<greetmeresponse> greetmeasync(string requesttype) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,787 | public Future<?> greetMeLaterAsync(long requestType, AsyncHandler<GreetMeLaterResponse> asyncHandler) {
return null;
/*not called */
} | public Future<?> greetMeLaterAsync(long requestType, AsyncHandler<GreetMeLaterResponse> asyncHandler) {
return null;
} | public future<?> greetmelaterasync(long requesttype, asynchandler<greetmelaterresponse> asynchandler) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,788 | public Response<GreetMeLaterResponse> greetMeLaterAsync(long requestType) {
return null;
/*not called */
} | public Response<GreetMeLaterResponse> greetMeLaterAsync(long requestType) {
return null;
} | public response<greetmelaterresponse> greetmelaterasync(long requesttype) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,789 | public Future<?> sayHiAsync(AsyncHandler<SayHiResponse> asyncHandler) {
return null;
/*not called */
} | public Future<?> sayHiAsync(AsyncHandler<SayHiResponse> asyncHandler) {
return null;
} | public future<?> sayhiasync(asynchandler<sayhiresponse> asynchandler) { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,790 | public Response<SayHiResponse> sayHiAsync() {
return null;
/*not called */
} | public Response<SayHiResponse> sayHiAsync() {
return null;
} | public response<sayhiresponse> sayhiasync() { return null; } | apache/servicemix4-features | [
0,
0,
0,
0
] |
10,852 | private ClusteringIndexFilter makeIndexFilter(AbstractSimplePerColumnSecondaryIndex index, ReadCommand command)
{
if (command instanceof SinglePartitionReadCommand)
{
// Note: as yet there's no route to get here - a 2i query *always* uses a
// PartitionRangeReadCommand. This ... | private ClusteringIndexFilter makeIndexFilter(AbstractSimplePerColumnSecondaryIndex index, ReadCommand command)
{
if (command instanceof SinglePartitionReadCommand)
{
SinglePartitionReadCommand sprc = (SinglePartitionReadCommand)command;
By... | private clusteringindexfilter makeindexfilter(abstractsimplepercolumnsecondaryindex index, readcommand command) { if (command instanceof singlepartitionreadcommand) { singlepartitionreadcommand sprc = (singlepartitionreadcommand)command; bytebuffer pk = sprc.partitionkey().getkey(); clusteringindexfilter filter = sprc.... | chaordic/cassandra | [
1,
0,
0,
0
] |
10,876 | public static <T extends ColumnSet> boolean fillColumnSets(Catalog catalog, Schema schema, Collection<T> output,
final int tClassifierId) {
// --- precondition
if (catalog == null && schema == null) {
return false;
}
RelationalSwitch<T> relationalSwitch = new Rela... | public static <T extends ColumnSet> boolean fillColumnSets(Catalog catalog, Schema schema, Collection<T> output,
final int tClassifierId) {
if (catalog == null && schema == null) {
return false;
}
RelationalSwitch<T> relationalSwitch = new RelationalSwitch<T>() {
... | public static <t extends columnset> boolean fillcolumnsets(catalog catalog, schema schema, collection<t> output, final int tclassifierid) { if (catalog == null && schema == null) { return false; } relationalswitch<t> relationalswitch = new relationalswitch<t>() { @override protected t doswitch(int classifierid, eobject... | coheigea/tcommon-studio-se | [
0,
0,
0,
1
] |
2,699 | public void controllerStatusChanged(boolean isPlaying) {
// Rocket doesn't implement this yet!
// Would be useful to control Rocket from demo's side
} | public void controllerStatusChanged(boolean isPlaying) {
} | public void controllerstatuschanged(boolean isplaying) { } | bjakke/moonlander | [
0,
1,
0,
0
] |
2,728 | @Override
public boolean addPendingAuthorisationtoBlock() {
logger.info("DefaultBlockChainPublisher:: addPendingAuthorisationtoBlock method called with Client ID:");
block = new Block();
try{
ArrayList<BlockChainAuthorisedObj> pendingAuthorisationArrayList;
synchroni... | @Override
public boolean addPendingAuthorisationtoBlock() {
logger.info("DefaultBlockChainPublisher:: addPendingAuthorisationtoBlock method called with Client ID:");
block = new Block();
try{
ArrayList<BlockChainAuthorisedObj> pendingAuthorisationArrayList;
synchroni... | @override public boolean addpendingauthorisationtoblock() { logger.info("defaultblockchainpublisher:: addpendingauthorisationtoblock method called with client id:"); block = new block(); try{ arraylist<blockchainauthorisedobj> pendingauthorisationarraylist; synchronized (pendingauthorisationcontainer){ pendingauthorisa... | anubandhan/spring-security-oauth-BlockChain | [
1,
0,
0,
0
] |
19,202 | private void getToken(JSONArray args) {
if (args == null || args.length() == 0) {
return;
}
try {
if (args.length() >= 5) {
JSONArray jsonArray = args.getJSONArray(2);
ArrayList<String> clientScopes = new ArrayList<String>();
... | private void getToken(JSONArray args) {
if (args == null || args.length() == 0) {
return;
}
try {
if (args.length() >= 5) {
JSONArray jsonArray = args.getJSONArray(2);
ArrayList<String> clientScopes = new ArrayList<String>();
... | private void gettoken(jsonarray args) { if (args == null || args.length() == 0) { return; } try { if (args.length() >= 5) { jsonarray jsonarray = args.getjsonarray(2); arraylist<string> clientscopes = new arraylist<string>(); if (jsonarray != null) { for (int i = 0; i < jsonarray.length(); i++) { clientscopes.add(jsona... | benbenxiaoluchi/com.accenture.cordova.plugin.sso | [
0,
1,
0,
0
] |
19,203 | private void logout(JSONArray args) {
if (args == null || args.length() == 0) {
return;
}
try {
if (args.length() >= 5) {
JSONArray jsonArray = args.getJSONArray(2);
ArrayList<String> clientScopes = new ArrayList<String>();
... | private void logout(JSONArray args) {
if (args == null || args.length() == 0) {
return;
}
try {
if (args.length() >= 5) {
JSONArray jsonArray = args.getJSONArray(2);
ArrayList<String> clientScopes = new ArrayList<String>();
... | private void logout(jsonarray args) { if (args == null || args.length() == 0) { return; } try { if (args.length() >= 5) { jsonarray jsonarray = args.getjsonarray(2); arraylist<string> clientscopes = new arraylist<string>(); if (jsonarray != null) { for (int i = 0; i < jsonarray.length(); i++) { clientscopes.add(jsonarr... | benbenxiaoluchi/com.accenture.cordova.plugin.sso | [
0,
1,
0,
0
] |
11,077 | public static int getCurveSize(String name) throws NoSuchAlgorithmException {
name = name.toLowerCase();
if (name.equals("secp224r1")) {
return 224;
} else if (name.equals("secp256r1")) {
return 256;
} else if (name.equals("secp384r1")) {
return 384;
} else if (name.equals("secp521... | public static int getCurveSize(String name) throws NoSuchAlgorithmException {
name = name.toLowerCase();
if (name.equals("secp224r1")) {
return 224;
} else if (name.equals("secp256r1")) {
return 256;
} else if (name.equals("secp384r1")) {
return 384;
} else if (name.equals("secp521... | public static int getcurvesize(string name) throws nosuchalgorithmexception { name = name.tolowercase(); if (name.equals("secp224r1")) { return 224; } else if (name.equals("secp256r1")) { return 256; } else if (name.equals("secp384r1")) { return 384; } else if (name.equals("secp521r1")) { return 521; } else if (name.eq... | avineshwar/wycheproof | [
0,
1,
0,
0
] |
2,922 | protected Boolean Authenticated()
{
String OauthToken = request().getHeader("token");
if (OauthToken == null || OauthToken.isEmpty()) {
return false;
}
Oauth token = Oauth
.find
.where()
.eq("token", OauthToken)
... | protected Boolean Authenticated()
{
String OauthToken = request().getHeader("token");
if (OauthToken == null || OauthToken.isEmpty()) {
return false;
}
Oauth token = Oauth
.find
.where()
.eq("token", OauthToken)
... | protected boolean authenticated() { string oauthtoken = request().getheader("token"); if (oauthtoken == null || oauthtoken.isempty()) { return false; } oauth token = oauth .find .where() .eq("token", oauthtoken) .eq("active", oathtokenactive) .findunique(); if (token != null) { return true; } return false; } | channing-froom/playframework-2.5.2 | [
0,
1,
0,
0
] |
19,359 | @Override
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("Updating Connection:" + connection + " for integration " + integrationName + "_" + integrationVersion + " from " + baseUrl);
checkEnvProperties();
Connection conn = new Connection(connection,... | @Override
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("Updating Connection:" + connection + " for integration " + integrationName + "_" + integrationVersion + " from " + baseUrl);
checkEnvProperties();
Connection conn = new Connection(connection,... | @override public void execute() throws mojoexecutionexception, mojofailureexception { getlog().info("updating connection:" + connection + " for integration " + integrationname + "_" + integrationversion + " from " + baseurl); checkenvproperties(); connection conn = new connection(connection, baseurl, icsuser, icspasswo... | avioconsulting/ics-maven-plugin | [
1,
0,
0,
0
] |
19,372 | static String resolve(String message, Object[] args) {
String formatted = String.format(message, args);
// TODO - fix! this case fails: ^cyan^warn^r^ if ^warn^ is evaluated first...really meant for ^cyan^ and ^r^
// TODO - to be resolved
for (String key : TERM_CODES.keySet()) {
... | static String resolve(String message, Object[] args) {
String formatted = String.format(message, args);
for (String key : TERM_CODES.keySet()) {
TermCode termCode = TERM_CODES.get(key);
Matcher matcher = termCode.pattern.matcher(formatted);
if (matcher... | static string resolve(string message, object[] args) { string formatted = string.format(message, args); for (string key : term_codes.keyset()) { termcode termcode = term_codes.get(key); matcher matcher = termcode.pattern.matcher(formatted); if (matcher.find()) { if (("warn".equals(key) && !warnlevel.get()) || ("info".e... | blangel/ply | [
0,
0,
1,
0
] |
3,003 | public void removeSegment(IndexSegment segment) {
// TODO(saurabh): Explain reload scenario here
Iterator<PrimaryKey> primaryKeyIterator = getPrimaryKeyIterator(segment, _primaryKeyColumns);
while (primaryKeyIterator.hasNext()) {
PrimaryKey pk = primaryKeyIterator.next();
_primaryKeyToSegmentMap... | public void removeSegment(IndexSegment segment) {
Iterator<PrimaryKey> primaryKeyIterator = getPrimaryKeyIterator(segment, _primaryKeyColumns);
while (primaryKeyIterator.hasNext()) {
PrimaryKey pk = primaryKeyIterator.next();
_primaryKeyToSegmentMap.compute(HashUtils.hashPrimaryKey(pk, _hashFunc... | public void removesegment(indexsegment segment) { iterator<primarykey> primarykeyiterator = getprimarykeyiterator(segment, _primarykeycolumns); while (primarykeyiterator.hasnext()) { primarykey pk = primarykeyiterator.next(); _primarykeytosegmentmap.compute(hashutils.hashprimarykey(pk, _hashfunction), (primarykey, curr... | asf-transfer/pinot | [
0,
0,
0,
0
] |
11,202 | protected InputStream getContentStream()
throws MessagingException {
try {
synchronized(this) {
if (contentStream == null) {
InputStream rawcontent = folder.getProtocol().retr(msgnum,
msgSize > 0 ? msgSize + hdrSize : 0);
if (rawcontent == null) {
expunged = true;
throw new MessageRemov... | protected InputStream getContentStream()
throws MessagingException {
try {
synchronized(this) {
if (contentStream == null) {
InputStream rawcontent = folder.getProtocol().retr(msgnum,
msgSize > 0 ? msgSize + hdrSize : 0);
if (rawcontent == null) {
expunged = true;
throw new MessageRemov... | protected inputstream getcontentstream() throws messagingexception { try { synchronized(this) { if (contentstream == null) { inputstream rawcontent = folder.getprotocol().retr(msgnum, msgsize > 0 ? msgsize + hdrsize : 0); if (rawcontent == null) { expunged = true; throw new messageremovedexception(); } if (headers == n... | cesarmo759/android_kernel_samsung_msm8916 | [
1,
0,
0,
0
] |
11,203 | public void setHeader(String name, String value)
throws MessagingException {
// XXX - should check for read-only folder?
throw new IllegalWriteException("POP3 messages are read-only");
} | public void setHeader(String name, String value)
throws MessagingException {
throw new IllegalWriteException("POP3 messages are read-only");
} | public void setheader(string name, string value) throws messagingexception { throw new illegalwriteexception("pop3 messages are read-only"); } | cesarmo759/android_kernel_samsung_msm8916 | [
0,
1,
0,
0
] |
11,204 | public void addHeader(String name, String value)
throws MessagingException {
// XXX - should check for read-only folder?
throw new IllegalWriteException("POP3 messages are read-only");
} | public void addHeader(String name, String value)
throws MessagingException {
throw new IllegalWriteException("POP3 messages are read-only");
} | public void addheader(string name, string value) throws messagingexception { throw new illegalwriteexception("pop3 messages are read-only"); } | cesarmo759/android_kernel_samsung_msm8916 | [
0,
1,
0,
0
] |
11,205 | public void removeHeader(String name)
throws MessagingException {
// XXX - should check for read-only folder?
throw new IllegalWriteException("POP3 messages are read-only");
} | public void removeHeader(String name)
throws MessagingException {
throw new IllegalWriteException("POP3 messages are read-only");
} | public void removeheader(string name) throws messagingexception { throw new illegalwriteexception("pop3 messages are read-only"); } | cesarmo759/android_kernel_samsung_msm8916 | [
0,
1,
0,
0
] |
11,206 | public void addHeaderLine(String line) throws MessagingException {
// XXX - should check for read-only folder?
throw new IllegalWriteException("POP3 messages are read-only");
} | public void addHeaderLine(String line) throws MessagingException {
throw new IllegalWriteException("POP3 messages are read-only");
} | public void addheaderline(string line) throws messagingexception { throw new illegalwriteexception("pop3 messages are read-only"); } | cesarmo759/android_kernel_samsung_msm8916 | [
0,
1,
0,
0
] |
11,257 | private void findEvents(Context context, String name, MultiName multiName, int pos, Watcher watcher, ReferenceValue ref)
{
String srcTypeName = null;
if (watcher.isPartOfAnonObjectGraph())
{
srcTypeName = standardDefs.CLASS_OBJECTPROXY;
}
else if (! srcTypeStack.e... | private void findEvents(Context context, String name, MultiName multiName, int pos, Watcher watcher, ReferenceValue ref)
{
String srcTypeName = null;
if (watcher.isPartOfAnonObjectGraph())
{
srcTypeName = standardDefs.CLASS_OBJECTPROXY;
}
else if (! srcTypeStack.e... | private void findevents(context context, string name, multiname multiname, int pos, watcher watcher, referencevalue ref) { string srctypename = null; if (watcher.ispartofanonobjectgraph()) { srctypename = standarddefs.class_objectproxy; } else if (! srctypestack.empty()) { srctypename = srctypestack.peek(); } watcher p... | blackjyn/flex-sdk | [
1,
0,
0,
0
] |
11,345 | @Override
public void show() {
super.show();
this.x = r.nextFloat();
this.y = r.nextFloat();
float angle = r.nextFloat() * 2 * 3.14159f;
this.vx = (float)java.lang.Math.cos(angle);
this.vy = (float)java.lang.Math.sin(angle);
//todo instead of going back to mai... | @Override
public void show() {
super.show();
this.x = r.nextFloat();
this.y = r.nextFloat();
float angle = r.nextFloat() * 2 * 3.14159f;
this.vx = (float)java.lang.Math.cos(angle);
this.vy = (float)java.lang.Math.sin(angle);
Gdx.input.setCatchBackKey(t... | @override public void show() { super.show(); this.x = r.nextfloat(); this.y = r.nextfloat(); float angle = r.nextfloat() * 2 * 3.14159f; this.vx = (float)java.lang.math.cos(angle); this.vy = (float)java.lang.math.sin(angle); gdx.input.setcatchbackkey(true); getstage().addlistener(new inputlistener() { @override public ... | cmsd2/toyapp | [
1,
0,
0,
0
] |
19,729 | public void GetStatusOperation(org.oasis_open.docs.ws_tx.wsba._2006._06.GetStatus param5) {
// Todo fill this with the necessary business logic
} | public void GetStatusOperation(org.oasis_open.docs.ws_tx.wsba._2006._06.GetStatus param5) {
} | public void getstatusoperation(org.oasis_open.docs.ws_tx.wsba._2006._06.getstatus param5) { } | apache/kandula | [
0,
1,
0,
0
] |
19,730 | public void NotCompleted(org.oasis_open.docs.ws_tx.wsba._2006._06.NotCompleted param6)
{
// Todo fill this with the necessary business logic
} | public void NotCompleted(org.oasis_open.docs.ws_tx.wsba._2006._06.NotCompleted param6)
{
} | public void notcompleted(org.oasis_open.docs.ws_tx.wsba._2006._06.notcompleted param6) { } | apache/kandula | [
0,
1,
0,
0
] |
19,731 | public void StatusOperation(org.oasis_open.docs.ws_tx.wsba._2006._06.Status param7)
{
// Todo fill this with the necessary business logic
} | public void StatusOperation(org.oasis_open.docs.ws_tx.wsba._2006._06.Status param7)
{
} | public void statusoperation(org.oasis_open.docs.ws_tx.wsba._2006._06.status param7) { } | apache/kandula | [
0,
1,
0,
0
] |
11,728 | public GenomicLocation normalizeGenomicLocation(GenomicLocation genomicLocation) {
GenomicLocation normalizedGenomicLocation = new GenomicLocation();
// if original input is set in the incoming genomic location object then use the same value
// for the normalized genomic location object returned... | public GenomicLocation normalizeGenomicLocation(GenomicLocation genomicLocation) {
GenomicLocation normalizedGenomicLocation = new GenomicLocation();
if (genomicLocation.getOriginalInput() != null && !genomicLocation.getOriginalInput().isEmpty()) {
normalizedGenomicLo... | public genomiclocation normalizegenomiclocation(genomiclocation genomiclocation) { genomiclocation normalizedgenomiclocation = new genomiclocation(); if (genomiclocation.getoriginalinput() != null && !genomiclocation.getoriginalinput().isempty()) { normalizedgenomiclocation.setoriginalinput(genomiclocation.getoriginali... | as1000/genome-nexus | [
1,
0,
0,
0
] |
20,003 | public Builder withOriginalCourseId(final String originalCourseId) {
getObject().setOriginalCourseId(originalCourseId);
return thisBuilder();
} | public Builder withOriginalCourseId(final String originalCourseId) {
getObject().setOriginalCourseId(originalCourseId);
return thisBuilder();
} | public builder withoriginalcourseid(final string originalcourseid) { getobject().setoriginalcourseid(originalcourseid); return thisbuilder(); } | bcgov/EDUC-GRAD-REPORT-API | [
1,
0,
0,
0
] |
3,835 | protected Serializable[] getParamValues(Serializable[] rawParamValues) throws SQLException
{
int nonPositionedParametersCount = 0;
for (Serializable rawParamValue : rawParamValues)
{
if (rawParamValue != null && rawParamValue instanceof NonPositionedParameter) ++nonPositionedPara... | protected Serializable[] getParamValues(Serializable[] rawParamValues) throws SQLException
{
int nonPositionedParametersCount = 0;
for (Serializable rawParamValue : rawParamValues)
{
if (rawParamValue != null && rawParamValue instanceof NonPositionedParameter) ++nonPositionedPara... | protected serializable[] getparamvalues(serializable[] rawparamvalues) throws sqlexception { int nonpositionedparameterscount = 0; for (serializable rawparamvalue : rawparamvalues) { if (rawparamvalue != null && rawparamvalue instanceof nonpositionedparameter) ++nonpositionedparameterscount; } serializable[] paramvalue... | arkanovicz/velocity-model | [
0,
0,
0,
0
] |
12,164 | public void testSeekToBeforeAttachedAsNextMediaPlayer() throws Throwable {
IBasicMediaPlayer player = createWrappedPlayerInstance();
IBasicMediaPlayer nextPlayer = null;
Object args = getTestParams();
// NOTE:
// seekTo() call will be ignored if the player is attached as a next
... | public void testSeekToBeforeAttachedAsNextMediaPlayer() throws Throwable {
IBasicMediaPlayer player = createWrappedPlayerInstance();
IBasicMediaPlayer nextPlayer = null;
Object args = getTestParams();
try {
SeekCompleteListenerObject seekComp = new See... | public void testseektobeforeattachedasnextmediaplayer() throws throwable { ibasicmediaplayer player = createwrappedplayerinstance(); ibasicmediaplayer nextplayer = null; object args = gettestparams(); try { seekcompletelistenerobject seekcomp = new seekcompletelistenerobject(); transitstatetoprepared(player, args); nex... | cirnoftw/android-openslmediaplayer | [
1,
0,
1,
0
] |
12,165 | public void testSeekToAfterAttachedAsNextMediaPlayer() throws Throwable {
IBasicMediaPlayer player = createWrappedPlayerInstance();
IBasicMediaPlayer nextPlayer = null;
Object args = getTestParams();
// NOTE:
// seekTo() call will be ignored if the player is attached as a next
... | public void testSeekToAfterAttachedAsNextMediaPlayer() throws Throwable {
IBasicMediaPlayer player = createWrappedPlayerInstance();
IBasicMediaPlayer nextPlayer = null;
Object args = getTestParams();
try {
transitStateToPrepared(player, arg... | public void testseektoafterattachedasnextmediaplayer() throws throwable { ibasicmediaplayer player = createwrappedplayerinstance(); ibasicmediaplayer nextplayer = null; object args = gettestparams(); try { transitstatetoprepared(player, args); nextplayer = createnextplayer(player, nextplayertype.prepared); setunwrapped... | cirnoftw/android-openslmediaplayer | [
1,
0,
1,
0
] |
20,677 | private <U> CompletableFuture<U> supplyInContext(Supplier<U> supplier, String opDescription) {
return CompletableFuture.supplyAsync(() -> {
// TODO: explore a more relaxed locking strategy.
writeLock.lock();
try {
return supplier.get();
} catch (Th... | private <U> CompletableFuture<U> supplyInContext(Supplier<U> supplier, String opDescription) {
return CompletableFuture.supplyAsync(() -> {
writeLock.lock();
try {
return supplier.get();
} catch (Throwable ex) {
log.error("Exception... | private <u> completablefuture<u> supplyincontext(supplier<u> supplier, string opdescription) { return completablefuture.supplyasync(() -> { writelock.lock(); try { return supplier.get(); } catch (throwable ex) { log.error("exception in p4runtime client of {}, executing {}", deviceid, opdescription, ex); throw ex; } fin... | antiguru/onos | [
1,
0,
0,
0
] |
20,862 | private void fetchMoreEntries() throws SQLException, AuditLogEntryException {
LongRange idsToRead = getIdsToRead();
// No more entries to read
if (idsToRead.getMaximumLong() == 0) {
return;
}
// TODO: Remove left outer join and command type filter once the
// exchange partition bug is fixe... | private void fetchMoreEntries() throws SQLException, AuditLogEntryException {
LongRange idsToRead = getIdsToRead();
if (idsToRead.getMaximumLong() == 0) {
return;
}
String queryFormatString = "SELECT a.id, a.create_time, "
+ "command_type, command, name, category, "
+ "... | private void fetchmoreentries() throws sqlexception, auditlogentryexception { longrange idstoread = getidstoread(); if (idstoread.getmaximumlong() == 0) { return; } string queryformatstring = "select a.id, a.create_time, " + "command_type, command, name, category, " + "type, serialized_object " + "from %s a left outer ... | aoen/reair | [
1,
1,
1,
0
] |
12,727 | @Override
public void run(Engine.Negative negative) { // TODO: Use "advanced probabilistic techniques".
for (int i = 1; i <= TASK_SAMPLE_SIZE; i++) {
int j, bufferX, bufferY; // location of (zR, zI) in histogram
double cR, cI, zR, zI, p;
// use ThreadLocalRandom for impro... | @Override
public void run(Engine.Negative negative) {
for (int i = 1; i <= TASK_SAMPLE_SIZE; i++) {
int j, bufferX, bufferY;
double cR, cI, zR, zI, p;
cR = zR = minX + ThreadLocalRandom.current().nextDouble(rangeX);
cI = zI = minY + ThreadLocalRand... | @override public void run(engine.negative negative) { for (int i = 1; i <= task_sample_size; i++) { int j, bufferx, buffery; double cr, ci, zr, zi, p; cr = zr = minx + threadlocalrandom.current().nextdouble(rangex); ci = zi = miny + threadlocalrandom.current().nextdouble(rangey); for (j = 0; j < iterationlimit; j++) { ... | ari-b/neb | [
1,
0,
0,
0
] |
20,951 | public void xtestNameClash() {
WritableVersion wv = model.getWritableVersion(AbstractModel.SUPERUSER);
try {
doTestVersion(wv);
doTestVersion(wv);
fail("created two groups with same name");
} catch (ModelException ex) {
wv.abort();
Thro... | public void xtestNameClash() {
WritableVersion wv = model.getWritableVersion(AbstractModel.SUPERUSER);
try {
doTestVersion(wv);
doTestVersion(wv);
fail("created two groups with same name");
} catch (ModelException ex) {
wv.abort();
Thro... | public void xtestnameclash() { writableversion wv = model.getwritableversion(abstractmodel.superuser); try { dotestversion(wv); dotestversion(wv); fail("created two groups with same name"); } catch (modelexception ex) { wv.abort(); throwable cause = ex; while (null != cause.getcause()) { cause = cause.getcause(); } cau... | chrishmorris/PiMS | [
0,
0,
1,
0
] |
13,109 | public void hasLength(int length) {
// TODO Support string length?
checkArgument(length >= 0, "length (%s) must be >= 0", length);
if (actual() == null || !actual().isContainerNode()) {
fail("is a container");
} else if (actual().size() != length) {
fail("has leng... | public void hasLength(int length) {
checkArgument(length >= 0, "length (%s) must be >= 0", length);
if (actual() == null || !actual().isContainerNode()) {
fail("is a container");
} else if (actual().size() != length) {
fail("has length", length);
}
} | public void haslength(int length) { checkargument(length >= 0, "length (%s) must be >= 0", length); if (actual() == null || !actual().iscontainernode()) { fail("is a container"); } else if (actual().size() != length) { fail("has length", length); } } | blackducksoftware/magpie-libraries | [
1,
0,
1,
0
] |
13,111 | public JsonSubjectFactory configure(DeserializationFeature feature, boolean state) {
objectMapper.configure(feature, state);
return this;
} | public JsonSubjectFactory configure(DeserializationFeature feature, boolean state) {
objectMapper.configure(feature, state);
return this;
} | public jsonsubjectfactory configure(deserializationfeature feature, boolean state) { objectmapper.configure(feature, state); return this; } | blackducksoftware/magpie-libraries | [
1,
0,
0,
0
] |
21,976 | @Override
public void onBindViewHolder(final ViewHolder holder, final int position) {
final Item item = mItemList.get(position);
setListener(mListener);
String dateStr = item.getPubDate();
DateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss", Locale.getDefault());
... | @Override
public void onBindViewHolder(final ViewHolder holder, final int position) {
final Item item = mItemList.get(position);
setListener(mListener);
String dateStr = item.getPubDate();
DateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss", Locale.getDefault());
... | @override public void onbindviewholder(final viewholder holder, final int position) { final item item = mitemlist.get(position); setlistener(mlistener); string datestr = item.getpubdate(); dateformat formatter = new simpledateformat("eee, dd mmm yyyy hh:mm:ss", locale.getdefault()); try { date date = formatter.parse(da... | c0de-wizard/pod-adddict | [
0,
1,
0,
0
] |
21,985 | protected Model filterModel(Model model, URI documentBaseUri) throws IOException
{
final boolean IGNORE_STYLESHEETS = true;
final boolean IGNORE_FAVICON = true;
final boolean DOCBASE_ONLY = false;
ValueFactory factory = SimpleValueFactory.getInstance();
String documentBaseUri... | protected Model filterModel(Model model, URI documentBaseUri) throws IOException
{
final boolean IGNORE_STYLESHEETS = true;
final boolean IGNORE_FAVICON = true;
final boolean DOCBASE_ONLY = false;
ValueFactory factory = SimpleValueFactory.getInstance();
String documentBaseUri... | protected model filtermodel(model model, uri documentbaseuri) throws ioexception { final boolean ignore_stylesheets = true; final boolean ignore_favicon = true; final boolean docbase_only = false; valuefactory factory = simplevaluefactory.getinstance(); string documentbaseuristr = documentbaseuri.tostring(); iterator<s... | bramdvrepublic/com.beligum.blocks.core | [
1,
0,
0,
0
] |
13,815 | public void updateRawRatioDataModelsWithPrimaryStandardValue(Double[] standardValuesMap) {
// since ratios are sorted, we send in ordered array of corresponding standard values
//TODO: make more robust
SortedSet<DataModelInterface> ratiosSortedSet = getRatiosForFractionFitting();//getValidRawRat... | public void updateRawRatioDataModelsWithPrimaryStandardValue(Double[] standardValuesMap) {
SortedSet<DataModelInterface> ratiosSortedSet = getRatiosForFractionFitting()
int count = 0;
Iterator<DataModelInterface> ratiosSortedSetIterator = ratiosSortedSet.iterator();
while... | public void updaterawratiodatamodelswithprimarystandardvalue(double[] standardvaluesmap) { sortedset<datamodelinterface> ratiossortedset = getratiosforfractionfitting() int count = 0; iterator<datamodelinterface> ratiossortedsetiterator = ratiossortedset.iterator(); while (ratiossortedsetiterator.hasnext()) { datamodel... | bowring/ET_Redux | [
1,
0,
0,
0
] |
13,882 | protected void computeAverageChainingDistances(KNNQuery<O> knnq, DistanceQuery<O> dq, DBIDs ids, WritableDoubleDataStore acds) {
FiniteProgress lrdsProgress = LOG.isVerbose() ? new FiniteProgress("Computing average chaining distances", ids.size(), LOG) : null;
// Compute the chaining distances.
// We do <i>... | protected void computeAverageChainingDistances(KNNQuery<O> knnq, DistanceQuery<O> dq, DBIDs ids, WritableDoubleDataStore acds) {
FiniteProgress lrdsProgress = LOG.isVerbose() ? new FiniteProgress("Computing average chaining distances", ids.size(), LOG) : null;
for(DBIDIter iter = ids.iter(); iter.valid(... | protected void computeaveragechainingdistances(knnquery<o> knnq, distancequery<o> dq, dbids ids, writabledoubledatastore acds) { finiteprogress lrdsprogress = log.isverbose() ? new finiteprogress("computing average chaining distances", ids.size(), log) : null; for(dbiditer iter = ids.iter(); iter.valid(); iter.advance(... | bertl4398/ssdbm2020 | [
1,
0,
0,
0
] |
22,220 | public static PerspectiveJsonObject getPerspectiveObjectForEvent(TrigTripleData trigTripleData, String mentionUri, String meta) {
PerspectiveJsonObject perspectiveJsonObject = new PerspectiveJsonObject();
String author = "";
String cite = "";
// System.out.println("Start");
ArrayL... | public static PerspectiveJsonObject getPerspectiveObjectForEvent(TrigTripleData trigTripleData, String mentionUri, String meta) {
PerspectiveJsonObject perspectiveJsonObject = new PerspectiveJsonObject();
String author = "";
String cite = "";
ArrayList<String> perspectives = new A... | public static perspectivejsonobject getperspectiveobjectforevent(trigtripledata trigtripledata, string mentionuri, string meta) { perspectivejsonobject perspectivejsonobject = new perspectivejsonobject(); string author = ""; string cite = ""; arraylist<string> perspectives = new arraylist<string>(); if (trigtripledata.... | cltl/EventCoreference | [
0,
0,
1,
0
] |
14,154 | @Test
void buildTask() throws Exception {
VelocityScheduler scheduler = new VelocityScheduler(new FakePluginManager());
CountDownLatch latch = new CountDownLatch(1);
ScheduledTask task = scheduler.buildTask(FakePluginManager.PLUGIN_A, latch::countDown)
.schedule();
latch.await();
assertEqu... | @Test
void buildTask() throws Exception {
VelocityScheduler scheduler = new VelocityScheduler(new FakePluginManager());
CountDownLatch latch = new CountDownLatch(1);
ScheduledTask task = scheduler.buildTask(FakePluginManager.PLUGIN_A, latch::countDown)
.schedule();
latch.await();
assertEqu... | @test void buildtask() throws exception { velocityscheduler scheduler = new velocityscheduler(new fakepluginmanager()); countdownlatch latch = new countdownlatch(1); scheduledtask task = scheduler.buildtask(fakepluginmanager.plugin_a, latch::countdown) .schedule(); latch.await(); assertequals(taskstatus.finished, task.... | astei/velocity | [
0,
0,
1,
0
] |
30,548 | @Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
ParseUser currentUser = ParseUser.getCurrentUser();
String role = currentUser.getString("role");
if(convertView == null) {
convertView = LayoutInflater.from(mContext).infl... | @Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
ParseUser currentUser = ParseUser.getCurrentUser();
String role = currentUser.getString("role");
if(convertView == null) {
convertView = LayoutInflater.from(mContext).infl... | @override public view getview(int position, view convertview, viewgroup parent) { viewholder holder; parseuser currentuser = parseuser.getcurrentuser(); string role = currentuser.getstring("role"); if(convertview == null) { convertview = layoutinflater.from(mcontext).inflate(r.layout.product_list_item, null); holder = ... | ashleysullins/Postmates-android | [
0,
1,
0,
0
] |
22,367 | public static void main(String[] args) {
// TODO Implement me, pls :(
} | public static void main(String[] args) {
} | public static void main(string[] args) { } | awwitecki/kafka-samples | [
0,
1,
0,
0
] |
30,563 | private boolean hasTimedOut(SentMessage sentMessage) {
// NPE fix. For some reason under heavy load redis can return null records.
if (sentMessage == null) {
return false;
}
long now = new Date().getTime();
Date createdTs = sentMessage.getCreatedTs();
... | private boolean hasTimedOut(SentMessage sentMessage) {
if (sentMessage == null) {
return false;
}
long now = new Date().getTime();
Date createdTs = sentMessage.getCreatedTs();
return createdTs.getTime() + faxTimeout < now;
} | private boolean hastimedout(sentmessage sentmessage) { if (sentmessage == null) { return false; } long now = new date().gettime(); date createdts = sentmessage.getcreatedts(); return createdts.gettime() + faxtimeout < now; } | bcgov/jag-efax | [
0,
0,
1,
0
] |
22,568 | public long forceSkip(long bytesToSkip) throws IOException {
long skipped = mUpstream.skip(bytesToSkip);
try {
// Figure out where we need to jump to...
int skip = (int) (bytesToSkip % AES_BLOCK_SIZE);
long blockOffset = bytesToSkip - skip;
long numberOfBlocks = blockOffset /... | public long forceSkip(long bytesToSkip) throws IOException {
long skipped = mUpstream.skip(bytesToSkip);
try {
int skip = (int) (bytesToSkip % AES_BLOCK_SIZE);
long blockOffset = bytesToSkip - skip;
long numberOfBlocks = blockOffset / AES_BLOCK_SIZE;
B... | public long forceskip(long bytestoskip) throws ioexception { long skipped = mupstream.skip(bytestoskip); try { int skip = (int) (bytestoskip % aes_block_size); long blockoffset = bytestoskip - skip; long numberofblocks = blockoffset / aes_block_size; biginteger ivforoffsetasbiginteger = new biginteger(1, mivparametersp... | bancha2nd/nativescript-plugins | [
1,
0,
0,
0
] |
30,915 | @BeforeEach
protected void setup() throws Exception {
// Remove the existing program data folder
String suffix = "-" + Profile.TEST;
ProductCard metadata = ProductCard.info( Program.class );
Path programDataFolder = OperatingSystem.getUserProgramDataFolder( metadata.getArtifact() + suffix, metadata.getName() +... | @BeforeEach
protected void setup() throws Exception {
String suffix = "-" + Profile.TEST;
ProductCard metadata = ProductCard.info( Program.class );
Path programDataFolder = OperatingSystem.getUserProgramDataFolder( metadata.getArtifact() + suffix, metadata.getName() + suffix );
assertThat( aggressiveDelete( ... | @beforeeach protected void setup() throws exception { string suffix = "-" + profile.test; productcard metadata = productcard.info( program.class ); path programdatafolder = operatingsystem.getuserprogramdatafolder( metadata.getartifact() + suffix, metadata.getname() + suffix ); assertthat( aggressivedelete( programdata... | avereon/xenon | [
1,
0,
0,
0
] |
14,698 | private <AH extends AssignmentHolderType> Collection<EvaluatedAssignment<AH>> evaluateAssignments(AH assignmentHolder, Collection<AssignmentType> assignments, boolean virtual, AssignmentEvaluator<AH> assignmentEvaluator, Task task, OperationResult result) {
List<EvaluatedAssignment<AH>> evaluatedAssignments = n... | private <AH extends AssignmentHolderType> Collection<EvaluatedAssignment<AH>> evaluateAssignments(AH assignmentHolder, Collection<AssignmentType> assignments, boolean virtual, AssignmentEvaluator<AH> assignmentEvaluator, Task task, OperationResult result) {
List<EvaluatedAssignment<AH>> evaluatedAssignments = n... | private <ah extends assignmentholdertype> collection<evaluatedassignment<ah>> evaluateassignments(ah assignmentholder, collection<assignmenttype> assignments, boolean virtual, assignmentevaluator<ah> assignmentevaluator, task task, operationresult result) { list<evaluatedassignment<ah>> evaluatedassignments = new array... | bshp/midpoint | [
1,
0,
0,
0
] |
22,947 | private void decode(byte[] sensorData) {
kiwriousReader.setRawValues(sensorData);
switch (sensorData[KIWRIOUS_SENSOR_TYPE]) {
//TODO: complete decode calls using bye array data
case SENSOR_COLOUR:
String[] colorValues = sensorDecoder.decodeColor(sensorData);
... | private void decode(byte[] sensorData) {
kiwriousReader.setRawValues(sensorData);
switch (sensorData[KIWRIOUS_SENSOR_TYPE]) {
case SENSOR_COLOUR:
String[] colorValues = sensorDecoder.decodeColor(sensorData);
kiwriousReader.setR(Integer.parseInt(col... | private void decode(byte[] sensordata) { kiwriousreader.setrawvalues(sensordata); switch (sensordata[kiwrious_sensor_type]) { case sensor_colour: string[] colorvalues = sensordecoder.decodecolor(sensordata); kiwriousreader.setr(integer.parseint(colorvalues[0])); kiwriousreader.setg(integer.parseint(colorvalues[1])); ki... | augmented-human-lab/kiwrious-android-library | [
0,
1,
0,
0
] |
23,039 | @GetMapping("/sign-in")
Mono<JwtToken> signIn(@RequestParam("login") String login,//FIXME use Auth header with basic auth
@RequestParam("password") String password) {
return userRepository.findByEmailOrMobile(login, login)
.filter(u -> u.validatePassword(password))
... | @GetMapping("/sign-in")
Mono<JwtToken> signIn(@RequestParam("login") String login
@RequestParam("password") String password) {
return userRepository.findByEmailOrMobile(login, login)
.filter(u -> u.validatePassword(password))
.map(this::createToken)
... | @getmapping("/sign-in") mono<jwttoken> signin(@requestparam("login") string login @requestparam("password") string password) { return userrepository.findbyemailormobile(login, login) .filter(u -> u.validatepassword(password)) .map(this::createtoken) .map(mono::just) .orelsethrow(() -> new illegalargumentexception("inva... | batiaev/provisioner | [
0,
0,
1,
0
] |
23,061 | @Override
void testBaseLib() {} | @Override
void testBaseLib() {} | @override void testbaselib() {} | baodingfengyun/luaj | [
0,
0,
0,
1
] |
23,062 | @Override
void testCoroutineLib() {} | @Override
void testCoroutineLib() {} | @override void testcoroutinelib() {} | baodingfengyun/luaj | [
0,
0,
0,
1
] |
23,063 | @Override
void testIoLib() {} | @Override
void testIoLib() {} | @override void testiolib() {} | baodingfengyun/luaj | [
0,
0,
0,
1
] |
23,064 | @Override
void testMetatags() {} | @Override
void testMetatags() {} | @override void testmetatags() {} | baodingfengyun/luaj | [
0,
0,
0,
1
] |
23,065 | @Override
void testOsLib() {} | @Override
void testOsLib() {} | @override void testoslib() {} | baodingfengyun/luaj | [
0,
0,
0,
1
] |
23,066 | @Override
void testStringLib() {} | @Override
void testStringLib() {} | @override void teststringlib() {} | baodingfengyun/luaj | [
0,
0,
0,
1
] |
14,968 | @Override
public String explainIncompleteness() {
String result = null;
if (isValueDomain()) {
//This concept name is value so do special processing
result = explainIfNotAllTokensProcessed("");
if (this.instanceName == null) {
result = appendReason(result, "No instance name was identified");
} else... | @Override
public String explainIncompleteness() {
String result = null;
if (isValueDomain()) {
result = explainIfNotAllTokensProcessed("");
if (this.instanceName == null) {
result = appendReason(result, "No instance name was identified");
} else {
if (this.instanceName.equals(TOKEN_NAMED)) ... | @override public string explainincompleteness() { string result = null; if (isvaluedomain()) { result = explainifnotalltokensprocessed(""); if (this.instancename == null) { result = appendreason(result, "no instance name was identified"); } else { if (this.instancename.equals(token_named)) { result = appendreason(resul... | ce-store/ce-store | [
1,
0,
0,
0
] |
31,429 | @Override
public void run() {
// Bounds
if ( colorPick.getX()+hs > colorPane.getX()+colorPane.getWidth()-1 )
colorPick.setAbsolutePosition(colorPane.getX()+colorPane.getWidth()-hs-1, colorPick.getY());
if ( colorPick.getX()+hs < colorPane.getX() )
colorPick.setAbsolutePosition(color... | @Override
public void run() {
if ( colorPick.getX()+hs > colorPane.getX()+colorPane.getWidth()-1 )
colorPick.setAbsolutePosition(colorPane.getX()+colorPane.getWidth()-hs-1, colorPick.getY());
if ( colorPick.getX()+hs < colorPane.getX() )
colorPick.setAbsolutePosition(colorPane.getX(... | @override public void run() { if ( colorpick.getx()+hs > colorpane.getx()+colorpane.getwidth()-1 ) colorpick.setabsoluteposition(colorpane.getx()+colorpane.getwidth()-hs-1, colorpick.gety()); if ( colorpick.getx()+hs < colorpane.getx() ) colorpick.setabsoluteposition(colorpane.getx()-hs, colorpick.gety()); if ( colorpi... | bumfo/LWJGUI | [
1,
0,
0,
0
] |
31,545 | @Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
IdConstruct idConstruct = (IdConstruct) getAvailablePrincipal(principals);
return getIOTAccount(idConstruct.getPartition(), idConstruct.getUsername());
} | @Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
IdConstruct idConstruct = (IdConstruct) getAvailablePrincipal(principals);
return getIOTAccount(idConstruct.getPartition(), idConstruct.getUsername());
} | @override protected authorizationinfo dogetauthorizationinfo(principalcollection principals) { idconstruct idconstruct = (idconstruct) getavailableprincipal(principals); return getiotaccount(idconstruct.getpartition(), idconstruct.getusername()); } | caricah/mq.tracah | [
0,
0,
0,
0
] |
15,338 | public static boolean yesNo(String yesNoQuestion){
int input = JOptionPane.showConfirmDialog(null, yesNoQuestion);
// 0=yes, 1=no, 2=cancel
return input==0;
//TODO remove the Cancel button. Should only be Yes and No.
} | public static boolean yesNo(String yesNoQuestion){
int input = JOptionPane.showConfirmDialog(null, yesNoQuestion);
return input==0;
} | public static boolean yesno(string yesnoquestion){ int input = joptionpane.showconfirmdialog(null, yesnoquestion); return input==0; } | benrayfield/occamsworkspace | [
1,
0,
0,
0
] |
15,390 | private void findActionVerbsAndArguments(TreeGraphNode node,
Map<Pair<Integer, Integer>, String> edge_rels,
Map<TreeGraphNode, Set<TreeGraphNode>> node_to_deps,
Map<TreeGraphNode, TreeGraphNode> dep_to_gov,
String root_type,
List<Tree> leaves,
List<String> lemmas, List<Label> tags, List<HasWord> word... | private void findActionVerbsAndArguments(TreeGraphNode node,
Map<Pair<Integer, Integer>, String> edge_rels,
Map<TreeGraphNode, Set<TreeGraphNode>> node_to_deps,
Map<TreeGraphNode, TreeGraphNode> dep_to_gov,
String root_type,
List<Tree> leaves,
List<String> lemmas, List<Label> tags, List<HasWord> word... | private void findactionverbsandarguments(treegraphnode node, map<pair<integer, integer>, string> edge_rels, map<treegraphnode, set<treegraphnode>> node_to_deps, map<treegraphnode, treegraphnode> dep_to_gov, string root_type, list<tree> leaves, list<string> lemmas, list<label> tags, list<hasword> words, string recipe_na... | atcbosselut/recipe-interpretation | [
1,
0,
0,
0
] |
23,710 | @Provides
@Singleton
Retrofit provideCall() {
Cache cache = null;
try {
cache = new Cache(cacheFile, 10 * 1024 * 1024);
} catch (Exception e) {
e.printStackTrace();
}
/* TODO Consider moving elsewhere. */
OkHttpClient okHttpClient = new OkH... | @Provides
@Singleton
Retrofit provideCall() {
Cache cache = null;
try {
cache = new Cache(cacheFile, 10 * 1024 * 1024);
} catch (Exception e) {
e.printStackTrace();
}
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.a... | @provides @singleton retrofit providecall() { cache cache = null; try { cache = new cache(cachefile, 10 * 1024 * 1024); } catch (exception e) { e.printstacktrace(); } okhttpclient okhttpclient = new okhttpclient.builder() .addinterceptor(new interceptor() { @override public okhttp3.response intercept(chain chain) throw... | arenaq/weather-app | [
0,
1,
0,
0
] |
32,099 | protected List<Rectangle> createHighlightAreas2(String fullText, String clippedText, FontMetrics fm, int xOffset, int yOffset, int height) {
if (matchPattern == null) {
return Collections.emptyList();
}
Matcher matcher = matchPattern.matcher(clippedText);
List<Rectangle> high... | protected List<Rectangle> createHighlightAreas2(String fullText, String clippedText, FontMetrics fm, int xOffset, int yOffset, int height) {
if (matchPattern == null) {
return Collections.emptyList();
}
Matcher matcher = matchPattern.matcher(clippedText);
List<Rectangle> high... | protected list<rectangle> createhighlightareas2(string fulltext, string clippedtext, fontmetrics fm, int xoffset, int yoffset, int height) { if (matchpattern == null) { return collections.emptylist(); } matcher matcher = matchpattern.matcher(clippedtext); list<rectangle> highlightareas = null; int startfrom = 0; while ... | aragozin/stackviewer | [
1,
0,
0,
0
] |
32,113 | protected List<DoubleObjPair<RdKNNEntry>> getSortedEntries(AbstractRStarTreeNode<?, ?> node, SpatialComparable q, SpatialPrimitiveDistanceFunction<?> distanceFunction) {
List<DoubleObjPair<RdKNNEntry>> result = new ArrayList<>();
for(int i = 0; i < node.getNumEntries(); i++) {
RdKNNEntry entry = (RdKNNEnt... | protected List<DoubleObjPair<RdKNNEntry>> getSortedEntries(AbstractRStarTreeNode<?, ?> node, SpatialComparable q, SpatialPrimitiveDistanceFunction<?> distanceFunction) {
List<DoubleObjPair<RdKNNEntry>> result = new ArrayList<>();
for(int i = 0; i < node.getNumEntries(); i++) {
RdKNNEntry entry = (RdKNNEnt... | protected list<doubleobjpair<rdknnentry>> getsortedentries(abstractrstartreenode<?, ?> node, spatialcomparable q, spatialprimitivedistancefunction<?> distancefunction) { list<doubleobjpair<rdknnentry>> result = new arraylist<>(); for(int i = 0; i < node.getnumentries(); i++) { rdknnentry entry = (rdknnentry) node.geten... | bertl4398/ssdbm2020 | [
1,
0,
0,
0
] |
23,927 | public void recordCorpusData (Corpus c, Learner l){
if (!isRecording) return;
this.c=c;
Vocabulary v = c.getVocabulary();
Set<Map.Entry<String, Integer>> entrySet = v.getWordIndicesEntrySet();
Set<Map.Entry<Integer, Word>> wordSet = v.getWordEntrySet();
StringBuilder s = new StringBuilder(v.getNumOfWords()*... | public void recordCorpusData (Corpus c, Learner l){
if (!isRecording) return;
this.c=c;
Vocabulary v = c.getVocabulary();
Set<Map.Entry<String, Integer>> entrySet = v.getWordIndicesEntrySet();
Set<Map.Entry<Integer, Word>> wordSet = v.getWordEntrySet();
StringBuilder s = new StringBuilder(v.getNumOfWords()*... | public void recordcorpusdata (corpus c, learner l){ if (!isrecording) return; this.c=c; vocabulary v = c.getvocabulary(); set<map.entry<string, integer>> entryset = v.getwordindicesentryset(); set<map.entry<integer, word>> wordset = v.getwordentryset(); stringbuilder s = new stringbuilder(v.getnumofwords()*30); corpusf... | aureatesting/Syntactic | [
1,
1,
0,
0
] |
15,912 | @Test
public void testSpendInputs() throws Throwable {
ExplorerCoinsRepository repo = TestWallet.app().explorerCoinsRepo();
GateEstimateRepository estimateRepo = TestWallet.app().estimateRepo();
final int tabPos = 0;
// spend coins
mActivityTestRule.runOnUiThread(() -> {
... | @Test
public void testSpendInputs() throws Throwable {
ExplorerCoinsRepository repo = TestWallet.app().explorerCoinsRepo();
GateEstimateRepository estimateRepo = TestWallet.app().estimateRepo();
final int tabPos = 0;
mActivityTestRule.runOnUiThread(() -> {
mActivi... | @test public void testspendinputs() throws throwable { explorercoinsrepository repo = testwallet.app().explorercoinsrepo(); gateestimaterepository estimaterepo = testwallet.app().estimaterepo(); final int tabpos = 0; mactivitytestrule.runonuithread(() -> { mactivitytestrule.getactivity().setcurrentpage(tabpos); }); wai... | bogdyak/Android-Bip-Wallet-crypttp | [
0,
0,
0,
1
] |
15,913 | @Test
public void testGetInputs() throws Throwable {
ExplorerCoinsRepository repo = TestWallet.app().explorerCoinsRepo();
GateEstimateRepository estimateRepo = TestWallet.app().estimateRepo();
final int tabPos = 1;
// spend coins
mActivityTestRule.runOnUiThread(() -> {
... | @Test
public void testGetInputs() throws Throwable {
ExplorerCoinsRepository repo = TestWallet.app().explorerCoinsRepo();
GateEstimateRepository estimateRepo = TestWallet.app().estimateRepo();
final int tabPos = 1;
mActivityTestRule.runOnUiThread(() -> {
mActivity... | @test public void testgetinputs() throws throwable { explorercoinsrepository repo = testwallet.app().explorercoinsrepo(); gateestimaterepository estimaterepo = testwallet.app().estimaterepo(); final int tabpos = 1; mactivitytestrule.runonuithread(() -> { mactivitytestrule.getactivity().setcurrentpage(tabpos); }); waitf... | bogdyak/Android-Bip-Wallet-crypttp | [
0,
0,
0,
1
] |
24,399 | protected List<LP2Rule> createContextStartRulesForStartRule(final LP2Rule aStartRule) {
List<LP2Rule> result = new ArrayList<LP2Rule>();
// TODO make all other tags contextual tags here. for now we take only
// the counterpart
// tag of the current learning process: (opening/closing tags)
LP2RuleIte... | protected List<LP2Rule> createContextStartRulesForStartRule(final LP2Rule aStartRule) {
List<LP2Rule> result = new ArrayList<LP2Rule>();
LP2RuleItem ctxItem = new LP2RuleItem();
MLLP2ContextConstraint ctxConstraint = new MLLP2ContextConstraint(
slotMaximumTokenCountMap.get(aStartRule... | protected list<lp2rule> createcontextstartrulesforstartrule(final lp2rule astartrule) { list<lp2rule> result = new arraylist<lp2rule>(); lp2ruleitem ctxitem = new lp2ruleitem(); mllp2contextconstraint ctxconstraint = new mllp2contextconstraint( slotmaximumtokencountmap.get(astartrule.gettarget().getsingleslotrawtypenam... | apache/uima-ruta | [
0,
1,
0,
0
] |
24,503 | @Override
public void runOpMode(){
//When the robot begins, it is in initialized state
//In this state, initialize the robot sensors and actuators
//and wait for the event: driver pushes START
//************************************************************
//*** INITIALIZE T... | @Override
public void runOpMode(){
autonParameters = AutonParameters.DEBUG_TWO_WHEEL;
autonParameters.setSpeed(Speed.FAST);
autonParameters.getSpeed().setK_i(0.3);
robot = new Robot(Pose.PresetPose.INNER_START_LINE, Alliance.RED, autonP... | @override public void runopmode(){ autonparameters = autonparameters.debug_two_wheel; autonparameters.setspeed(speed.fast); autonparameters.getspeed().setk_i(0.3); robot = new robot(pose.presetpose.inner_start_line, alliance.red, autonparameters); targetzone = new targetzone(robot.getalliance(),targetzone.zone.b); laun... | bignaczak/eBots2020_V2 | [
0,
1,
0,
0
] |
28 | @Override
public void process(JCas jCas) throws AnalysisEngineProcessException {
long startTime = System.currentTimeMillis();
FeatureExtractor fe = new NYTEntitySalienceFeatureExtractor();
List<EntityInstance> entityInstances;
try {
entityInstances = fe.getEntityInstances... | @Override
public void process(JCas jCas) throws AnalysisEngineProcessException {
long startTime = System.currentTimeMillis();
FeatureExtractor fe = new NYTEntitySalienceFeatureExtractor();
List<EntityInstance> entityInstances;
try {
entityInstances = fe.getEntityInstances... | @override public void process(jcas jcas) throws analysisengineprocessexception { long starttime = system.currenttimemillis(); featureextractor fe = new nytentitysaliencefeatureextractor(); list<entityinstance> entityinstances; try { entityinstances = fe.getentityinstances(jcas, trainingsettings.featureextractor.entity_... | dmilcevski/ambiverse-nlu | [
0,
1,
0,
0
] |
32 | private void generateArttribute() {
String temp = "";
for (String s : connectedElements)
temp = temp + s + " ";
// TODO: check here, may be necessary to remove the last space.
linkingResourceElement.setAttribute(
"connectedResourceContainers_LinkingResource", temp);
} | private void generateArttribute() {
String temp = "";
for (String s : connectedElements)
temp = temp + s + " ";
linkingResourceElement.setAttribute(
"connectedResourceContainers_LinkingResource", temp);
} | private void generatearttribute() { string temp = ""; for (string s : connectedelements) temp = temp + s + " "; linkingresourceelement.setattribute( "connectedresourcecontainers_linkingresource", temp); } | deib-polimi/modaclouds-space4cloud | [
1,
0,
0,
0
] |
100 | @Override
public boolean hasRole(final PrincipalCollection principal, final String roleIdentifier) {
// TODO Auto-generated method stub
// return super.hasRole(principal, roleIdentifier);
for (final Object p : principal.fromRealm(REALM_NAME)) {
if (p instanceof GenericPrincipal) {
final GenericPrincipal g... | @Override
public boolean hasRole(final PrincipalCollection principal, final String roleIdentifier) {
for (final Object p : principal.fromRealm(REALM_NAME)) {
if (p instanceof GenericPrincipal) {
final GenericPrincipal gp = (GenericPrincipal) p;
for (final String r : gp.getRoles()) {
if (r.equals(... | @override public boolean hasrole(final principalcollection principal, final string roleidentifier) { for (final object p : principal.fromrealm(realm_name)) { if (p instanceof genericprincipal) { final genericprincipal gp = (genericprincipal) p; for (final string r : gp.getroles()) { if (r.equals(roleidentifier)) { retu... | danieljue/graphene | [
1,
0,
0,
0
] |
8,408 | private synchronized static void initializeImplClasses() {
log.trace("exec");
// TODO load all expected impl classes, allowing fail fast rather than waiting for user to hit a certain use case
} | private synchronized static void initializeImplClasses() {
log.trace("exec");
} | private synchronized static void initializeimplclasses() { log.trace("exec"); } | esasiela/hc-log4tri | [
0,
1,
0,
0
] |
8,468 | private ProgressTracker createProgressTracker() {
ReadOperation readOperation;
RemoteGrpcPortWriteOperation grpcWriteOperation;
RegisterAndProcessBundleOperation bundleProcessOperation;
try {
readOperation = getReadOperation();
} catch (Exception exn) {
readOperation = null;
LOG.in... | private ProgressTracker createProgressTracker() {
ReadOperation readOperation;
RemoteGrpcPortWriteOperation grpcWriteOperation;
RegisterAndProcessBundleOperation bundleProcessOperation;
try {
readOperation = getReadOperation();
} catch (Exception exn) {
readOperation = null;
LOG.in... | private progresstracker createprogresstracker() { readoperation readoperation; remotegrpcportwriteoperation grpcwriteoperation; registerandprocessbundleoperation bundleprocessoperation; try { readoperation = getreadoperation(); } catch (exception exn) { readoperation = null; log.info("unable to get read operation.", ex... | elwinarens/beam | [
0,
1,
0,
0
] |
16,671 | @Override
public void execute() {
double y = -Constants.joystick.getY();
double z = Constants.joystick.getZ();
//TODO - Could we also check if the elevator is up and limit speed?
if(y < Constants.REVERSE_MAX_SPEED) {
y = Constants.REVERSE_MAX_SPEED;
}
if(z... | @Override
public void execute() {
double y = -Constants.joystick.getY();
double z = Constants.joystick.getZ();
if(y < Constants.REVERSE_MAX_SPEED) {
y = Constants.REVERSE_MAX_SPEED;
}
if(z < Constants.LEFT_MAX_SPEED ) {
z = Constants.LEFT_MAX_S... | @override public void execute() { double y = -constants.joystick.gety(); double z = constants.joystick.getz(); if(y < constants.reverse_max_speed) { y = constants.reverse_max_speed; } if(z < constants.left_max_speed ) { z = constants.left_max_speed; } else if(z > constants.right_max_speed){ z = constants.right_max_spee... | frc5826/2022-production | [
0,
1,
0,
0
] |
8,547 | private void deleteInternal(List<FileInfo> itemsToDelete, List<FileInfo> bucketsToDelete)
throws IOException {
// TODO(user): We might need to separate out children into separate batches from parents to
// avoid deleting a parent before somehow failing to delete a child.
// Delete children before thei... | private void deleteInternal(List<FileInfo> itemsToDelete, List<FileInfo> bucketsToDelete)
throws IOException {
itemsToDelete.sort(FILE_INFO_PATH_COMPARATOR.reversed());
if (!itemsToDelete.isEmpty()) {
List<StorageResourceId> objectsToDelete = new ArrayList<>(itemsToDelete.siz... | private void deleteinternal(list<fileinfo> itemstodelete, list<fileinfo> bucketstodelete) throws ioexception { itemstodelete.sort(file_info_path_comparator.reversed()); if (!itemstodelete.isempty()) { list<storageresourceid> objectstodelete = new arraylist<>(itemstodelete.size()); for (fileinfo fileinfo : itemstodelete... | danielxjd/hadoop-connectors | [
1,
1,
0,
0
] |
16,844 | public void testEmpty() throws IOException {
final MappedFieldType ft = new NumberFieldMapper.NumberFieldType("field", NumberType.LONG);
testCase(
stats("_name").field(ft.name()),
iw -> {},
stats -> {
assertEquals(0d, stats.getCount(), 0);
... | public void testEmpty() throws IOException {
final MappedFieldType ft = new NumberFieldMapper.NumberFieldType("field", NumberType.LONG);
testCase(
stats("_name").field(ft.name()),
iw -> {},
stats -> {
assertEquals(0d, stats.getCount(), 0);
... | public void testempty() throws ioexception { final mappedfieldtype ft = new numberfieldmapper.numberfieldtype("field", numbertype.long); testcase( stats("_name").field(ft.name()), iw -> {}, stats -> { assertequals(0d, stats.getcount(), 0); assertequals(0d, stats.getsum(), 0); assertequals(float.nan, stats.getavg(), 0);... | dial-workable/elasticsearch | [
0,
0,
0,
1
] |
521 | public void testEvilGroovyScripts() throws Exception {
int nodes = randomIntBetween(1, 3);
Settings nodeSettings = Settings.builder()
.put("script.inline", true)
.put("script.indexed", true)
.build();
internalCluster().startNodesAsync(nodes, nodeSe... | public void testEvilGroovyScripts() throws Exception {
int nodes = randomIntBetween(1, 3);
Settings nodeSettings = Settings.builder()
.put("script.inline", true)
.put("script.indexed", true)
.build();
internalCluster().startNodesAsync(nodes, nodeSe... | public void testevilgroovyscripts() throws exception { int nodes = randomintbetween(1, 3); settings nodesettings = settings.builder() .put("script.inline", true) .put("script.indexed", true) .build(); internalcluster().startnodesasync(nodes, nodesettings).get(); client().admin().cluster().preparehealth().setwaitfornode... | drewr/elasticsearch | [
1,
0,
0,
0
] |
33,296 | private byte[] md5(String data)
{
try {
return this.getMd5Digest().digest(data.getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) {
/* This really shouldn't happen */
throw new RuntimeException(e);
}
} | private byte[] md5(String data)
{
try {
return this.getMd5Digest().digest(data.getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
} | private byte[] md5(string data) { try { return this.getmd5digest().digest(data.getbytes("utf-8")); } catch (unsupportedencodingexception e) { throw new runtimeexception(e); } } | dontdrinkandroot/cache.java | [
1,
0,
0,
0
] |
574 | @Before
public void setUp() throws IOException {
event = TestUtils.parse("/s3-event.put.json", S3Event.class);
// TODO: customize your mock logic for s3 client
ObjectMetadata objectMetadata = new ObjectMetadata();
objectMetadata.setContentType(CONTENT_TYPE);
when(s3Object.get... | @Before
public void setUp() throws IOException {
event = TestUtils.parse("/s3-event.put.json", S3Event.class);
ObjectMetadata objectMetadata = new ObjectMetadata();
objectMetadata.setContentType(CONTENT_TYPE);
when(s3Object.getObjectMetadata()).thenReturn(objectMetadata);
... | @before public void setup() throws ioexception { event = testutils.parse("/s3-event.put.json", s3event.class); objectmetadata objectmetadata = new objectmetadata(); objectmetadata.setcontenttype(content_type); when(s3object.getobjectmetadata()).thenreturn(objectmetadata); when(s3client.getobject(getobjectrequest.captur... | cpsloSecondScreen/SecondScreen | [
1,
0,
0,
0
] |
16,997 | protected void processEmbeddedMember(List<AbstractMemberMetaData> mmds, AbstractClassMetaData embCmd, ClassLoaderResolver clr, EmbeddedMetaData embmd, boolean ownerNested)
{
TypeManager typeMgr = storeMgr.getNucleusContext().getTypeManager();
MetaDataManager mmgr = storeMgr.getMetaDataManager();
... | protected void processEmbeddedMember(List<AbstractMemberMetaData> mmds, AbstractClassMetaData embCmd, ClassLoaderResolver clr, EmbeddedMetaData embmd, boolean ownerNested)
{
TypeManager typeMgr = storeMgr.getNucleusContext().getTypeManager();
MetaDataManager mmgr = storeMgr.getMetaDataManager();
... | protected void processembeddedmember(list<abstractmembermetadata> mmds, abstractclassmetadata embcmd, classloaderresolver clr, embeddedmetadata embmd, boolean ownernested) { typemanager typemgr = storemgr.getnucleuscontext().gettypemanager(); metadatamanager mmgr = storemgr.getmetadatamanager(); namingfactory namingfac... | dcheung2/datanucleus-core | [
1,
1,
0,
0
] |
17,020 | String probeGemHomeForTesting() {
return this.gemHome;
} | String probeGemHomeForTesting() {
return this.gemHome;
} | string probegemhomefortesting() { return this.gemhome; } | dmikurube/embulk | [
0,
1,
0,
0
] |
8,997 | protected void visit(final RuleDescr descr) {
// This is the NAME of the rule, not a reference to it!!
String ruleName = getPackagePrefix() + descr.getName();
addResource(ruleName,
ResourceType.RULE);
// This is, on other hand, is a reference to the parent rule (becau... | protected void visit(final RuleDescr descr) {
String ruleName = getPackagePrefix() + descr.getName();
addResource(ruleName,
ResourceType.RULE);
String parentRuleName = descr.getParentName();
if (parentRuleName != null) {
addResourceReferenc... | protected void visit(final ruledescr descr) { string rulename = getpackageprefix() + descr.getname(); addresource(rulename, resourcetype.rule); string parentrulename = descr.getparentname(); if (parentrulename != null) { addresourcereference(parentrulename, resourcetype.rule); } for (attributedescr d : descr.getattribu... | etirelli/kie-wb-common | [
0,
0,
0,
0
] |
832 | public Raster getRaster(int xOffset, int yOffset, int w, int h) {
ColorModel cm = getColorModel();
if (raster == null) createRaster();
// TODO: eventually use caching here
WritableRaster childRaster = cm.createCompatibleWritableRaster(w, h);
Rectangle2D childR... | public Raster getRaster(int xOffset, int yOffset, int w, int h) {
ColorModel cm = getColorModel();
if (raster == null) createRaster();
WritableRaster childRaster = cm.createCompatibleWritableRaster(w, h);
Rectangle2D childRect = new Rectangle2D.Double(xOffset,... | public raster getraster(int xoffset, int yoffset, int w, int h) { colormodel cm = getcolormodel(); if (raster == null) createraster(); writableraster childraster = cm.createcompatiblewritableraster(w, h); rectangle2d childrect = new rectangle2d.double(xoffset, yoffset, w, h); if (!childrect.intersects(devicebounds)) { ... | fomich-artem/poi | [
1,
0,
0,
0
] |
17,336 | @Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenAnotherTaskIsBeingExecuted()
throws Exception {
thread.execute(() -> {
try {
Thread... | @Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
public void Should_throwWhenAnotherTaskIsBeingExecuted()
throws Exception {
thread.execute(() -> {
try {
Thread.sleep(200);
}... | @test(expected = taskexecutionexception.class) @ignore("test execution is depending on server technical characteristics.") public void should_throwwhenanothertaskisbeingexecuted() throws exception { thread.execute(() -> { try { thread.sleep(200); } catch (interruptedexception e) { thread.interrupt(); } }); thread.execu... | d-protsenko/smartactors-core | [
0,
1,
0,
0
] |
17,337 | @Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenThreadIsNotAlive()
throws Exception {
ITask taskMock = mock(ITask.class);
thread.interrupt();
t... | @Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
public void Should_throwWhenThreadIsNotAlive()
throws Exception {
ITask taskMock = mock(ITask.class);
thread.interrupt();
thread.execute(taskMock);
... | @test(expected = taskexecutionexception.class) @ignore("test execution is depending on server technical characteristics.") public void should_throwwhenthreadisnotalive() throws exception { itask taskmock = mock(itask.class); thread.interrupt(); thread.execute(taskmock); fail(); } | d-protsenko/smartactors-core | [
0,
1,
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.