diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/core/src/main/java/hudson/model/LoadBalancer.java b/core/src/main/java/hudson/model/LoadBalancer.java
index b873102f7..8f82c8b20 100644
--- a/core/src/main/java/hudson/model/LoadBalancer.java
+++ b/core/src/main/java/hudson/model/LoadBalancer.java
@@ -1,157 +1,157 @@
package hudson.model;
import hudson... | true | true | protected JobOffer choose(Task task, ApplicableJobOfferList applicable) {
Label l = task.getAssignedLabel();
if (l != null) {
// if a project has assigned label, it can be only built on it
for (JobOffer offer : applicable) {
if (l.conta... | protected JobOffer choose(Task task, ApplicableJobOfferList applicable) {
Label l = task.getAssignedLabel();
if (l != null) {
// if a project has assigned label, it can be only built on it
for (JobOffer offer : applicable) {
if (l.conta... |
diff --git a/robot/Multiplexor.java b/robot/Multiplexor.java
index 9a32b79..ad86ae8 100644
--- a/robot/Multiplexor.java
+++ b/robot/Multiplexor.java
@@ -1,47 +1,49 @@
import lejos.nxt.I2CPort;
import lejos.nxt.I2CSensor;
public class Multiplexor extends I2CSensor{
private static byte direction;
private static ... | true | true | public void setMotors(int directionIndex, int speedIndex, int wheelIndex){
// sets up possible values
if(directionIndex == -1){
direction = (byte)2;
}else if(directionIndex == 0){
direction = (byte)0;
} else if(speedIndex == 1){
direction = (byte)1;
}
if(speedIndex == 0){
speed = (byte)0;... | public void setMotors(int directionIndex, int speedIndex, int wheelIndex){
// sets up possible values
if(directionIndex == -1){
direction = (byte)2;
}else if(directionIndex == 0){
direction = (byte)0;
} else if(speedIndex == 1){
direction = (byte)1;
}
if(speedIndex == 0){
speed = (byte)0;... |
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java b/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java
index 83b68cf6..6de8e728 100644
--- a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java
+++ b/CubicRecorder/src/main/java... | false | true | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
//action is toggle action:
if(isRecording()) {
//recorder running. stop it
UserInfo.setStatusLine(null);
stopSelenium(autoLay... | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
//action is toggle action:
if(isRecording()) {
//recorder running. stop it
UserInfo.setStatusLine(null);
stopSelenium(autoLay... |
diff --git a/modules/org.restlet.ext.crypto/src/org/restlet/ext/crypto/internal/AwsSdbHelper.java b/modules/org.restlet.ext.crypto/src/org/restlet/ext/crypto/internal/AwsSdbHelper.java
index 45424c913..5d519c064 100644
--- a/modules/org.restlet.ext.crypto/src/org/restlet/ext/crypto/internal/AwsSdbHelper.java
+++ b/modu... | true | true | public Representation updateEntity(Representation entity,
ChallengeResponse challengeResponse, Request request) {
Representation result = entity;
if (MediaType.APPLICATION_WWW_FORM.equals(entity.getMediaType())) {
Form form = new Form(entity);
form.add("AWSAccess... | public Representation updateEntity(Representation entity,
ChallengeResponse challengeResponse, Request request) {
Representation result = entity;
if (MediaType.APPLICATION_WWW_FORM.equals(entity.getMediaType())) {
Form form = new Form(entity);
form.add("AWSAccess... |
diff --git a/plugins/org.eclipse.m2m.atl.adt.editor/src/org/eclipse/m2m/atl/adt/ui/outline/AtlLabelProvider.java b/plugins/org.eclipse.m2m.atl.adt.editor/src/org/eclipse/m2m/atl/adt/ui/outline/AtlLabelProvider.java
index 55d9158c..35350ba2 100644
--- a/plugins/org.eclipse.m2m.atl.adt.editor/src/org/eclipse/m2m/atl/adt/... | true | true | public void initReaders() {
readers.put(AtlEMFConstants.clRule, new Reader() {
private EStructuralFeature name = AtlEMFConstants.clRule.getEStructuralFeature("name"); //$NON-NLS-1$
public String getText(EObject rule) {
return (String)rule.eGet(name);
}
});
readers.put(AtlEMFConstants.clMatchedRule,... | public void initReaders() {
readers.put(AtlEMFConstants.clRule, new Reader() {
private EStructuralFeature name = AtlEMFConstants.clRule.getEStructuralFeature("name"); //$NON-NLS-1$
public String getText(EObject rule) {
return (String)rule.eGet(name);
}
});
readers.put(AtlEMFConstants.clMatchedRule,... |
diff --git a/src/uk/org/ponder/rsf/renderer/ViewRender.java b/src/uk/org/ponder/rsf/renderer/ViewRender.java
index 4dbffb2..ba818df 100644
--- a/src/uk/org/ponder/rsf/renderer/ViewRender.java
+++ b/src/uk/org/ponder/rsf/renderer/ViewRender.java
@@ -1,472 +1,472 @@
/*
* Created on Aug 7, 2005
*/
package uk.org.pon... | true | true | private void renderRecurse(UIContainer basecontainer,
XMLLump parentlump, XMLLump baselump) {
int renderindex = baselump.lumpindex;
int basedepth = parentlump.nestingdepth;
XMLViewTemplate tl = parentlump.parent;
Set rendered = null;
if (debugrender) {
rendered = new HashSet();
}
... | private void renderRecurse(UIContainer basecontainer,
XMLLump parentlump, XMLLump baselump) {
int renderindex = baselump.lumpindex;
int basedepth = parentlump.nestingdepth;
XMLViewTemplate tl = parentlump.parent;
Set rendered = null;
if (debugrender) {
rendered = new HashSet();
}
... |
diff --git a/src/main/java/com/datascience/gal/dawidSkeneProcessors/DSalgorithmComputer.java b/src/main/java/com/datascience/gal/dawidSkeneProcessors/DSalgorithmComputer.java
index e1b1087b..f3f82546 100644
--- a/src/main/java/com/datascience/gal/dawidSkeneProcessors/DSalgorithmComputer.java
+++ b/src/main/java/com/dat... | false | true | public void run() {
logger.info("Started DS-computer for " + this.getDawidSkeneId()
+ " with " + this.iterations + " iterations.");
DawidSkene ds = this.getCache().getDawidSkeneForEditing(
this.getDawidSkeneId(), this);
if (!ds.isComputed()) {
ds.estimate(this.iterations);
this.getCache().insertDaw... | public void run() {
logger.info("Started DS-computer for " + this.getDawidSkeneId()
+ " with " + this.iterations + " iterations.");
DawidSkene ds = this.getCache().getDawidSkeneForEditing(
this.getDawidSkeneId(), this);
if (!ds.isComputed()) {
ds.estimate(this.iterations);
}
this.getCache().insert... |
diff --git a/app/controllers/Dummy.java b/app/controllers/Dummy.java
index 817f177..df3d90a 100644
--- a/app/controllers/Dummy.java
+++ b/app/controllers/Dummy.java
@@ -1,141 +1,141 @@
package controllers;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.mail.EmailExcept... | true | true | public static void newAccount(@Required(message = "Please enter a valid email address") String email,
@Required(message = "Please enter a password") String password,
@Required(message = "Please enter your first name") String firstName,
@Required(message = "Please enter your last name") String lastName,
@Re... | public static void newAccount(@Required(message = "Please enter a valid email address") String email,
@Required(message = "Please enter a password") String password,
@Required(message = "Please enter your first name") String firstName,
@Required(message = "Please enter your last name") String lastName,
@Re... |
diff --git a/src/main/java/com/rackspace/cloud/api/docs/WebHelpMojo.java b/src/main/java/com/rackspace/cloud/api/docs/WebHelpMojo.java
index dd7517a..9f30618 100644
--- a/src/main/java/com/rackspace/cloud/api/docs/WebHelpMojo.java
+++ b/src/main/java/com/rackspace/cloud/api/docs/WebHelpMojo.java
@@ -1,961 +1,961 @@
pa... | true | true | protected Source createSource(String inputFilename, File sourceFile, PreprocessingFilter filter)
throws MojoExecutionException {
String pathToPipelineFile = "classpath:/webhelp.xpl"; //use "classpath:/path" for this to work
String sourceFileNameNormalized = "file:///" + sourceFile.getAbsolute... | protected Source createSource(String inputFilename, File sourceFile, PreprocessingFilter filter)
throws MojoExecutionException {
String pathToPipelineFile = "classpath:/webhelp.xpl"; //use "classpath:/path" for this to work
String sourceFileNameNormalized = "file:///" + sourceFile.getAbsolute... |
diff --git a/code/Hyushik.Registration.Test/src/test/java/com/hyushik/registration/test/HyushikRegistrationTest.java b/code/Hyushik.Registration.Test/src/test/java/com/hyushik/registration/test/HyushikRegistrationTest.java
index 4ee726f..5ad1cd2 100644
--- a/code/Hyushik.Registration.Test/src/test/java/com/hyushik/regi... | true | true | public void openBrowser() {
FileInputStream fizban;
try{
fizban = new FileInputStream("targetserver.properties");
}catch(Exception e){
return;
}
try{
props.load(fizban);
}catch(Exception io){
return;
}
... | public void openBrowser() {
FileInputStream fizban;
try{
fizban = new FileInputStream("webserver.properties");
}catch(Exception e){
return;
}
try{
props.load(fizban);
}catch(Exception io){
return;
}
... |
diff --git a/com/raphfrk/bukkit/serverport/MyPlayer.java b/com/raphfrk/bukkit/serverport/MyPlayer.java
index 0c34a3c..f6acdc2 100755
--- a/com/raphfrk/bukkit/serverport/MyPlayer.java
+++ b/com/raphfrk/bukkit/serverport/MyPlayer.java
@@ -1,275 +1,276 @@
package com.raphfrk.bukkit.serverport;
import java.io.BufferedW... | true | true | boolean permissionCheck(String permissionName, String[] params) {
if(isOp()) {
return true;
}
MyPermissions handler = ((ServerPortBukkit)MyServer.plugin).permissions;
if(handler.isActive()) {
StringBuilder sb = new StringBuilder("serverport." + permissionName);
for(String current : params) {
... | boolean permissionCheck(String permissionName, String[] params) {
if(isOp()) {
return true;
}
MyPermissions handler = ((ServerPortBukkit)MyServer.plugin).permissions;
if(handler.isActive()) {
StringBuilder sb = new StringBuilder("serverport." + permissionName);
for(String current : params) {
... |
diff --git a/src/demos/BoidWorld.java b/src/demos/BoidWorld.java
index 343d677..b3b1c07 100644
--- a/src/demos/BoidWorld.java
+++ b/src/demos/BoidWorld.java
@@ -1,117 +1,117 @@
package demos;
import vitro.*;
import vitro.plane.*;
import java.util.*;
public class BoidWorld extends Plane {
public Boid crea... | false | true | public Set<Action> actions() {
Set<Action> ret = new HashSet<Action>(); // Forget anything else... I'm a boid!
// only continue if I am in the world
Position myPos = positions.get(this);
if(myPos == null) {
return ret;
}
// calculate!
Vector2 centerMass = Vector2.ZERO;
Vector2 centerHead... | public Set<Action> actions() {
Set<Action> ret = new HashSet<Action>(); // Forget anything else... I'm a boid!
// only continue if I am in the world
Position myPos = positions.get(this);
if(myPos == null) {
return ret;
}
// calculate!
Vector2 centerMass = Vector2.ZERO;
Vector2 centerHead... |
diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyStyles.java b/java/src/com/android/inputmethod/keyboard/internal/KeyStyles.java
index 30d9692a..3f9f3599 100644
--- a/java/src/com/android/inputmethod/keyboard/internal/KeyStyles.java
+++ b/java/src/com/android/inputmethod/keyboard/internal/KeyStyles.ja... | false | true | public void parseKeyStyleAttributes(TypedArray keyStyleAttr, TypedArray keyAttrs,
XmlResourceParser parser) {
String styleName = keyStyleAttr.getString(R.styleable.Keyboard_KeyStyle_styleName);
if (DEBUG) Log.d(TAG, String.format("<%s styleName=%s />",
KeyboardParser.TAG_... | public void parseKeyStyleAttributes(TypedArray keyStyleAttr, TypedArray keyAttrs,
XmlResourceParser parser) {
final String styleName = keyStyleAttr.getString(R.styleable.Keyboard_KeyStyle_styleName);
if (DEBUG) Log.d(TAG, String.format("<%s styleName=%s />",
KeyboardParse... |
diff --git a/Core/Tests/org.emftext.test/src/org/emftext/test/locationmap/LocationMapOptionsTest.java b/Core/Tests/org.emftext.test/src/org/emftext/test/locationmap/LocationMapOptionsTest.java
index ac979c51b..8bfa4d121 100644
--- a/Core/Tests/org.emftext.test/src/org/emftext/test/locationmap/LocationMapOptionsTest.jav... | false | true | public void testDisableLocationMapOption() {
String pluginRootPath = new PluginTestHelper().getPluginRootPath(getClass());
String path = pluginRootPath + "/src/org/emftext/test/locationmap/main.cs";
File file = new File(path);
CsResource resource = (CsResource) new ResourceSetImpl().createResource(URI
.cre... | public void testDisableLocationMapOption() {
String pluginRootPath = new PluginTestHelper().getPluginRootPath(getClass());
String path = pluginRootPath + "/src/org/emftext/test/locationmap/main.cs";
File file = new File(path);
CsResource resource = (CsResource) new ResourceSetImpl().createResource(URI
.cre... |
diff --git a/dev/cosbench-swauth/src/com/intel/cosbench/client/swauth/SwiftAuthClient.java b/dev/cosbench-swauth/src/com/intel/cosbench/client/swauth/SwiftAuthClient.java
index b771587..a3d66c5 100644
--- a/dev/cosbench-swauth/src/com/intel/cosbench/client/swauth/SwiftAuthClient.java
+++ b/dev/cosbench-swauth/src/com/i... | true | true | public void login() throws IOException, SwiftAuthClientException {
HttpResponse response = null;
try {
HttpGet method = new HttpGet(authURL);
method.setHeader(X_STORAGE_USER, username);
method.setHeader(X_STORAGE_PASS, password);
response = client.exec... | public void login() throws IOException, SwiftAuthClientException {
HttpResponse response = null;
try {
HttpGet method = new HttpGet(authURL);
method.setHeader(X_STORAGE_USER, username);
method.setHeader(X_STORAGE_PASS, password);
response = client.exec... |
diff --git a/src/main/com/mongodb/DBTCPConnector.java b/src/main/com/mongodb/DBTCPConnector.java
index aa24ee7bf..a1a4d5395 100644
--- a/src/main/com/mongodb/DBTCPConnector.java
+++ b/src/main/com/mongodb/DBTCPConnector.java
@@ -1,551 +1,552 @@
// DBTCPConnector.java
/**
* Copyright (C) 2008 10gen Inc.
*
... | true | true | public Response call( DB db , DBCollection coll , OutMessage m , ServerAddress hostNeeded , int retries )
throws MongoException {
boolean slaveOk = m.hasOption( Bytes.QUERYOPTION_SLAVEOK );
_checkClosed();
checkMaster( false , !slaveOk );
final MyPort mp = _myPort.ge... | public Response call( DB db , DBCollection coll , OutMessage m , ServerAddress hostNeeded , int retries )
throws MongoException {
boolean slaveOk = m.hasOption( Bytes.QUERYOPTION_SLAVEOK );
_checkClosed();
checkMaster( false , !slaveOk );
final MyPort mp = _myPort.ge... |
diff --git a/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java b/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java
index aab937b15..8a24a29c0 100644
--- a/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java
+++ b/dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java
@@ -1,184 +1,186 @@
/*... | false | true | static JMethodCall computeClassObjectAllocation(JProgram program,
SourceInfo info, JType type) {
String typeName = getTypeName(program, type);
JMethod method = program.getIndexedMethod(type.getClassLiteralFactoryMethod());
/*
* Use the classForEnum() constructor even for enum subtypes to aid ... | static JMethodCall computeClassObjectAllocation(JProgram program,
SourceInfo info, JType type) {
String typeName = getTypeName(program, type);
JMethod method = program.getIndexedMethod(type.getClassLiteralFactoryMethod());
/*
* Use the classForEnum() constructor even for enum subtypes to aid ... |
diff --git a/src/main/java/org/nuxeo/ecm/core/storage/sql/SQLBinaryManager.java b/src/main/java/org/nuxeo/ecm/core/storage/sql/SQLBinaryManager.java
index 56535e2..0c300c3 100644
--- a/src/main/java/org/nuxeo/ecm/core/storage/sql/SQLBinaryManager.java
+++ b/src/main/java/org/nuxeo/ecm/core/storage/sql/SQLBinaryManager.... | false | true | public Binary getBinary(InputStream in) throws IOException {
// write the input stream to a temporary file, while computing a digest
File tmp = fileCache.getTempFile();
OutputStream out = new FileOutputStream(tmp);
String digest;
try {
digest = storeAndDigest(in, ... | public Binary getBinary(InputStream in) throws IOException {
// write the input stream to a temporary file, while computing a digest
File tmp = fileCache.getTempFile();
OutputStream out = new FileOutputStream(tmp);
String digest;
try {
digest = storeAndDigest(in, ... |
diff --git a/sudoku/sudoku_v1.java b/sudoku/sudoku_v1.java
index cb3c777..e0cb2cd 100644
--- a/sudoku/sudoku_v1.java
+++ b/sudoku/sudoku_v1.java
@@ -1,110 +1,110 @@
import java.io.*;
class sudoku_v1 {
int[][] R, C;
public void genmat() {
R = new int[324][9];
C = new int[729][4];
int[] nr = new int[324]... | true | true | public int solve(String _s) {
int i, j, r, c, r2, dir, cand, n = 0, min, hints = 0; // dir=1: forward; dir=-1: backtrack
int[] sr = new int[729];
int[] cr = new int[81];
int[] sc = new int[324];
int[] cc = new int[81];
int[] out = new int[81];
for (r = 0; r < 729; ++r) sr[r] = 0; // no row is forbidden
... | public int solve(String _s) {
int i, j, r, c, r2, dir, cand, n = 0, min, hints = 0; // dir=1: forward; dir=-1: backtrack
int[] sr = new int[729];
int[] cr = new int[81];
int[] sc = new int[324];
int[] cc = new int[81];
int[] out = new int[81];
for (r = 0; r < 729; ++r) sr[r] = 0; // no row is forbidden
... |
diff --git a/modules/xdr/src/main/java/org/dcache/xdr/gss/RpcGssCall.java b/modules/xdr/src/main/java/org/dcache/xdr/gss/RpcGssCall.java
index 813ad9aa61..b41662b74a 100644
--- a/modules/xdr/src/main/java/org/dcache/xdr/gss/RpcGssCall.java
+++ b/modules/xdr/src/main/java/org/dcache/xdr/gss/RpcGssCall.java
@@ -1,125 +1,... | false | true | public void acceptedReply(int state, XdrAble reply) {
try {
RpcAuthGss authGss = (RpcAuthGss) getCredential();
_log.debug("Reply with GSS service: {}", authGss.getService());
XdrEncodingStream xdr;
switch (authGss.getService()) {
case RpcGssSer... | public void acceptedReply(int state, XdrAble reply) {
try {
RpcAuthGss authGss = (RpcAuthGss) getCredential();
_log.debug("Reply with GSS service: {}", authGss.getService());
XdrEncodingStream xdr;
switch (authGss.getService()) {
case RpcGssSer... |
diff --git a/java/core/src/test/java/li/rudin/arduino/core/test/mock/ArduinoEthernetDeviceServer.java b/java/core/src/test/java/li/rudin/arduino/core/test/mock/ArduinoEthernetDeviceServer.java
index 83b64d8..b825a14 100644
--- a/java/core/src/test/java/li/rudin/arduino/core/test/mock/ArduinoEthernetDeviceServer.java
++... | true | true | public void run()
{
byte[] buffer = new byte[1024];
while(run)
{
try
{
int count = input.read(buffer);
List<Message> list = MessageParser.parse(buffer, count);
for (Message msg: list)
{
if (msg.value.equals("get"))
{
//Get message
send(msg.key, ... | public void run()
{
byte[] buffer = new byte[1024];
while(run)
{
try
{
int count = input.read(buffer);
List<Message> list = MessageParser.parse(buffer, count);
for (Message msg: list)
{
if (msg.value.equals("get") && valueMap.containsKey(msg.key))
{
//... |
diff --git a/app/controllers/CronManager.java b/app/controllers/CronManager.java
index a221e63..da9f186 100644
--- a/app/controllers/CronManager.java
+++ b/app/controllers/CronManager.java
@@ -1,78 +1,78 @@
package controllers;
import java.util.Map;
import com.google.common.base.Preconditions;
import com.google... | false | true | public static void process() {
if (Play.mode.isProd() && !isRequestFromCronService()) {
Logger.warn("CronManager: request is not from cron service: " + request.url);
return;
}
Job job = null;
try {
String className = getJobClassName(request.url);
... | public static void process() {
if (Play.mode.isProd() && !isRequestFromCronService()) {
Logger.warn("CronManager: request is not from cron service: " + request.url);
forbidden();
}
Job job = null;
try {
String className = getJobClassName(request.u... |
diff --git a/src/main/java/org/jenkinsci/constant_pool_scanner/ConstantPoolScanner.java b/src/main/java/org/jenkinsci/constant_pool_scanner/ConstantPoolScanner.java
index d2a0864..d194ad1 100644
--- a/src/main/java/org/jenkinsci/constant_pool_scanner/ConstantPoolScanner.java
+++ b/src/main/java/org/jenkinsci/constant_p... | true | true | public static ConstantPool parse(DataInput s, Collection<ConstantType> _collect) throws IOException {
skip(s,8); // magic, minor_version, major_version
int size = s.readUnsignedShort() - 1; // constantPoolCount
ConstantPool pool = new ConstantPool(size);
// figure out all the types ... | public static ConstantPool parse(DataInput s, Collection<ConstantType> _collect) throws IOException {
skip(s,8); // magic, minor_version, major_version
int size = s.readUnsignedShort() - 1; // constantPoolCount
ConstantPool pool = new ConstantPool(size);
// figure out all the types ... |
diff --git a/src/main/java/com/github/sgr/swingx/MultiLineRenderer.java b/src/main/java/com/github/sgr/swingx/MultiLineRenderer.java
index 55afb4f..3333df8 100644
--- a/src/main/java/com/github/sgr/swingx/MultiLineRenderer.java
+++ b/src/main/java/com/github/sgr/swingx/MultiLineRenderer.java
@@ -1,85 +1,87 @@
// -*- c... | true | true | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
JComponent c = null;
if (value instanceof String) {
c = getTxtTableCellRendererComponent(table, (String)value, isSelected, hasFocus, row, column);
} else if (value instance... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
JComponent c = null;
if (value instanceof String) {
c = getTxtTableCellRendererComponent(table, (String)value, isSelected, hasFocus, row, column);
} else if (value instance... |
diff --git a/metadata/src/main/java/org/apache/oodt/cas/metadata/util/PathUtils.java b/metadata/src/main/java/org/apache/oodt/cas/metadata/util/PathUtils.java
index 8998b87ac..7b6586af8 100644
--- a/metadata/src/main/java/org/apache/oodt/cas/metadata/util/PathUtils.java
+++ b/metadata/src/main/java/org/apache/oodt/cas/... | false | true | public static String doDynamicDateReplacement(String string,
Metadata metadata) throws Exception {
Pattern datePattern = Pattern
.compile("\\[\\s*DATE\\s*(?:[+-]{1}[^\\.]{1,}?){0,1}\\.\\s*(?:(?:DAY)|(?:MONTH)|(?:YEAR)|(?:UTC)|(?:TAI)){1}\\s*\\]");
Matcher dateMatcher = da... | public static String doDynamicDateReplacement(String string,
Metadata metadata) throws Exception {
Pattern datePattern = Pattern
.compile("\\[\\s*DATE\\s*(?:[+-]{1}[^\\.]{1,}?){0,1}\\.\\s*(?:(?:DAY)|(?:MONTH)|(?:YEAR)|(?:UTC)|(?:TAI)){1}\\s*\\]");
Matcher dateMatcher = da... |
diff --git a/src/fniki/freenet/plugin/WikiWebInterface.java b/src/fniki/freenet/plugin/WikiWebInterface.java
index e357594..5beae21 100644
--- a/src/fniki/freenet/plugin/WikiWebInterface.java
+++ b/src/fniki/freenet/plugin/WikiWebInterface.java
@@ -1,177 +1,178 @@
package fniki.freenet.plugin;
//import fniki.freene... | true | true | private String handleWebRequest(HTTPRequest request, ToadletContext ctx, boolean createHtmlHeader) throws PluginHTTPException {
String tmpResult = "";
mWikiApp.setContainerPrefix(mNameSpace.substring(0, mNameSpace.length()-1));
try {
try {
mWikiApp.setRequest(new PluginRequest(request, mNameSpace), create... | private String handleWebRequest(HTTPRequest request, ToadletContext ctx, boolean createHtmlHeader) throws PluginHTTPException {
String tmpResult = "";
mWikiApp.setContainerPrefix(mNameSpace.substring(0, mNameSpace.length()-1));
try {
try {
mWikiApp.setRequest(new PluginRequest(request, mNameSpace), create... |
diff --git a/src/net/sf/freecol/client/gui/panel/CargoPanel.java b/src/net/sf/freecol/client/gui/panel/CargoPanel.java
index 4423a306a..dae5af7ce 100644
--- a/src/net/sf/freecol/client/gui/panel/CargoPanel.java
+++ b/src/net/sf/freecol/client/gui/panel/CargoPanel.java
@@ -1,297 +1,299 @@
/**
* Copyright (C) 2002-20... | true | true | public Component add(Component comp, boolean editState) {
if (carrier == null) {
return null;
}
if (editState) {
InGameController inGameController = getCanvas().getClient().getInGameController();
if (comp instanceof UnitLabel) {
Container oldP... | public Component add(Component comp, boolean editState) {
if (carrier == null) {
return null;
}
if (editState) {
InGameController inGameController = getCanvas().getClient().getInGameController();
if (comp instanceof UnitLabel) {
Container oldP... |
diff --git a/core/src/main/java/org/eigenbase/rel/metadata/ReflectiveRelMetadataProvider.java b/core/src/main/java/org/eigenbase/rel/metadata/ReflectiveRelMetadataProvider.java
index f6bbae03..a0c25c76 100644
--- a/core/src/main/java/org/eigenbase/rel/metadata/ReflectiveRelMetadataProvider.java
+++ b/core/src/main/java... | true | true | public static RelMetadataProvider reflectiveSource(Method method,
final Object target) {
final Class<?> metadataClass0 = method.getDeclaringClass();
assert Metadata.class.isAssignableFrom(metadataClass0);
final Map<Class<RelNode>, Function<RelNode, Metadata>> treeMap =
Maps.newTreeMap(SUPERC... | public static RelMetadataProvider reflectiveSource(Method method,
final Object target) {
final Class<?> metadataClass0 = method.getDeclaringClass();
assert Metadata.class.isAssignableFrom(metadataClass0);
final Map<Class<RelNode>, Function<RelNode, Metadata>> treeMap =
Maps.<Class<RelNode>, ... |
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java
index d6b058fe9..1d04f33b8 100644
--- a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java
+++ b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java
@@ -1,1042 +1,1042 ... | true | true | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <l@location.biome.formatted>
// @returns Element
// @description
// Returns the formatted biome name at the location.
// -->
if (attribute.... | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <l@location.biome.formatted>
// @returns Element
// @description
// Returns the formatted biome name at the location.
// -->
if (attribute.... |
diff --git a/src/uk/org/ponder/rsf/components/ELReference.java b/src/uk/org/ponder/rsf/components/ELReference.java
index 88d3ff5..79b0960 100644
--- a/src/uk/org/ponder/rsf/components/ELReference.java
+++ b/src/uk/org/ponder/rsf/components/ELReference.java
@@ -1,27 +1,31 @@
/*
* Created on 13-Jan-2006
*/
package ... | true | true | public ELReference(String value) {
String stripped = BeanUtil.stripEL(value);
this.value = stripped == null? value : stripped;
}
| public ELReference(String value) {
String stripped = BeanUtil.stripEL(value);
this.value = stripped == null? value : stripped;
if ("".equals(value)) {
throw new IllegalArgumentException(
"Cannot issue an EL reference to an empty path. For an empty binding please either supply null, or else... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/CompressedFoldersModelProvider.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/CompressedFoldersModelProvider.java
index 98a9b645d..bf61ec588 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/tea... | true | true | protected void handleResourceRemovals(ISyncInfoTreeChangeEvent event) {
IResource[] roots = event.getRemovedSubtreeRoots();
// First, deal with any projects that have been removed
List removedProjects = new ArrayList();
for (int i = 0; i < roots.length; i++) {
IResource resource = roots[i];
if (resour... | protected void handleResourceRemovals(ISyncInfoTreeChangeEvent event) {
IResource[] roots = event.getRemovedSubtreeRoots();
// First, deal with any projects that have been removed
List removedProjects = new ArrayList();
for (int i = 0; i < roots.length; i++) {
IResource resource = roots[i];
if (resour... |
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/actions/ContextRetrieveAction.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/actions/ContextRetrieveAction.java
index fe2ba5ceb..ce9f05f7f 100644
--- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/in... | true | true | public void selectionChanged(IAction action, ISelection selection) {
AbstractTask selectedTask = TaskListView.getSelectedTask(selection);
if (selectedTask == null) {
StructuredSelection structuredSelection = (StructuredSelection) selection;
this.selection = structuredSelection;
if (structuredSelection.ge... | public void selectionChanged(IAction action, ISelection selection) {
AbstractTask selectedTask = TaskListView.getSelectedTask(selection);
if (selectedTask == null) {
StructuredSelection structuredSelection = (StructuredSelection) selection;
this.selection = structuredSelection;
if (structuredSelection.ge... |
diff --git a/Glia/glia-examples/src/test/java/com/reversemind/glia/other/spring/GliaServerSpringContextLoader.java b/Glia/glia-examples/src/test/java/com/reversemind/glia/other/spring/GliaServerSpringContextLoader.java
index e206040..aff7a0d 100644
--- a/Glia/glia-examples/src/test/java/com/reversemind/glia/other/sprin... | true | true | public static void main(String... args) throws InterruptedException {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("META-INF/glia-server-context.xml");
GliaServerFactory.Builder builderAdvertiser = applicationContext.getBean("serverBuilderAdvertiser", GliaServerFactor... | public static void main(String... args) throws InterruptedException {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("META-INF/glia-server-context.xml");
GliaServerFactory.Builder builderAdvertiser = applicationContext.getBean("serverBuilderAdvertiser", GliaServerFactor... |
diff --git a/xslthl/src/net/sf/xslthl/MainHighlighter.java b/xslthl/src/net/sf/xslthl/MainHighlighter.java
index a0442e5..80494cd 100644
--- a/xslthl/src/net/sf/xslthl/MainHighlighter.java
+++ b/xslthl/src/net/sf/xslthl/MainHighlighter.java
@@ -1,135 +1,137 @@
/*
* xslthl - XSLT Syntax Highlighting
* https://sourc... | false | true | public List<Block> highlight(String source) {
CharIter in = new CharIter(source);
List<Block> out = new LinkedList<Block>();
if (highlighters.size() > 0) {
while (!in.finished()) {
boolean found = false;
for (Highlighter h : highlighters) {
if (h.startsWith(in)) {
int oldMark = -2;
Block pr... | public List<Block> highlight(String source) {
CharIter in = new CharIter(source);
List<Block> out = new LinkedList<Block>();
if (highlighters.size() > 0) {
while (!in.finished()) {
boolean found = false;
for (Highlighter h : highlighters) {
if (h.startsWith(in)) {
int pos = in.getPosition();
... |
diff --git a/src/main/java/org/mcmmo/mcmmomc/mcMMOmc.java b/src/main/java/org/mcmmo/mcmmomc/mcMMOmc.java
index 712e73c..85e8831 100644
--- a/src/main/java/org/mcmmo/mcmmomc/mcMMOmc.java
+++ b/src/main/java/org/mcmmo/mcmmomc/mcMMOmc.java
@@ -1,56 +1,56 @@
package org.mcmmo.mcmmomc;
import java.io.IOException;
impor... | true | true | public void onEnable() {
PluginCommand tradeCommand = getCommand("tradechat");
tradeCommand.setPermission("mcmmomc.trade");
tradeCommand.setPermissionMessage(ChatColor.DARK_RED + "Insufficient permissions.");
tradeCommand.setExecutor(new TradeCommand(this));
PluginCommand miscCommand = getCommand("miscchat"... | public void onEnable() {
PluginCommand tradeCommand = getCommand("tradechat");
tradeCommand.setPermission("mcmmomc.trade");
tradeCommand.setPermissionMessage(ChatColor.DARK_RED + "Insufficient permissions.");
tradeCommand.setExecutor(new TradeCommand(this));
PluginCommand miscCommand = getCommand("miscchat"... |
diff --git a/source/de/tuclausthal/submissioninterface/authfilter/authentication/login/impl/Form.java b/source/de/tuclausthal/submissioninterface/authfilter/authentication/login/impl/Form.java
index 4e89995..3ebedb3 100644
--- a/source/de/tuclausthal/submissioninterface/authfilter/authentication/login/impl/Form.java
++... | false | true | public void failNoData(String error, HttpServletRequest request, HttpServletResponse response) throws IOException {
response.addHeader("Cache-Control", "no-cache, must-revalidate");
Template template = TemplateFactory.getTemplate(request, response);
template.addHead("<script type=\"text/javascript\"><!-- documen... | public void failNoData(String error, HttpServletRequest request, HttpServletResponse response) throws IOException {
response.addHeader("Cache-Control", "no-cache, must-revalidate");
Template template = TemplateFactory.getTemplate(request, response);
template.printTemplateHeader("Login erforderlich", "Login erfor... |
diff --git a/src/com/nononsenseapps/notepad/NotesListFragment.java b/src/com/nononsenseapps/notepad/NotesListFragment.java
index dd35e1fd..265a24cb 100644
--- a/src/com/nononsenseapps/notepad/NotesListFragment.java
+++ b/src/com/nononsenseapps/notepad/NotesListFragment.java
@@ -1,2028 +1,2026 @@
/*
* Copyright (C) 2... | true | true | private void reCalculateValidValuesAfterDelete() {
int index = mActivatedPosition;
if (mSectionAdapter != null) {
index = index >= mSectionAdapter.getCount() ? mSectionAdapter
.getCount() - 1 : index;
Log.d(TAG, "ReCalculate valid index is: " + index);
if (index == -1) {
// Completely empty list... | private void reCalculateValidValuesAfterDelete() {
int index = mActivatedPosition;
if (mSectionAdapter != null) {
index = index >= mSectionAdapter.getCount() ? mSectionAdapter
.getCount() - 1 : index;
Log.d(TAG, "ReCalculate valid index is: " + index);
if (index == -1) {
// Completely empty list... |
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java b/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java
index cc27f706..0ee45840 100644
--- a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java
+++ b/CubicRecorder/src/main/java... | true | true | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
Test test = testEditor.getTest();
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
if(!running) {
setRunning(true);
if (test.getStartPoint().getOutTransitions().size() >= 1 && ... | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
Test test = testEditor.getTest();
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
if(!running) {
setRunning(true);
if (test.getStartPoint().getOutTransitions().size() >= 1 && ... |
diff --git a/tycho-core/src/main/java/org/eclipse/tycho/osgi/configuration/MavenContextConfigurator.java b/tycho-core/src/main/java/org/eclipse/tycho/osgi/configuration/MavenContextConfigurator.java
index 0741f3b6..cde12ada 100644
--- a/tycho-core/src/main/java/org/eclipse/tycho/osgi/configuration/MavenContextConfigura... | true | true | private Properties getGlobalProperties(MavenSession session) {
Properties globalProps = new Properties();
// 1. system
globalProps.putAll(session.getSystemProperties());
Settings settings = session.getSettings();
// 2. active profiles
Map<String, Profile> profileMap =... | private Properties getGlobalProperties(MavenSession session) {
Properties globalProps = new Properties();
// 1. system
globalProps.putAll(session.getSystemProperties());
Settings settings = session.getSettings();
// 2. active profiles
Map<String, Profile> profileMap =... |
diff --git a/src/java/com/splunk/shep/archiver/archive/ArchiveConfiguration.java b/src/java/com/splunk/shep/archiver/archive/ArchiveConfiguration.java
index 424950c5..216c1c01 100644
--- a/src/java/com/splunk/shep/archiver/archive/ArchiveConfiguration.java
+++ b/src/java/com/splunk/shep/archiver/archive/ArchiveConfigur... | true | true | public static ArchiveConfiguration getSharedInstance() {
ArchiveConfiguration sharedInstance = null;
if (sharedInstanceRef != null) {
sharedInstance = sharedInstanceRef.get();
}
if (sharedInstance == null) {
sharedInstance = new ArchiveConfiguration();
sharedInstanceRef = new SoftReference<Archiv... | public static ArchiveConfiguration getSharedInstance() {
ArchiveConfiguration sharedInstance = null;
if (sharedInstanceRef != null) {
sharedInstance = sharedInstanceRef.get();
}
if (sharedInstance == null) {
sharedInstance = new ArchiveConfiguration();
sharedInstanceRef = new SoftReference<Archiv... |
diff --git a/app/models/Photo.java b/app/models/Photo.java
index f38f671..f6c8838 100644
--- a/app/models/Photo.java
+++ b/app/models/Photo.java
@@ -1,94 +1,93 @@
package models;
import java.awt.image.*;
import java.io.*;
import java.util.*;
import javax.imageio.ImageIO;
import javax.persistence.*;
import play... | true | true | private Blob createThumbnailBlob(int width, int height) throws IOException {
File image = this.image.getFile();
File thumbnail = Thumbnails.of(image)
.size(width, height)
.crop(Positions.CENTER)
.outputFormat("jpg")
... | private Blob createThumbnailBlob(int width, int height) throws IOException {
File image = this.image.getFile();
File thumbnail = Thumbnails.of(image)
.size(width, height)
.crop(Positions.CENTER)
.asFiles(Rename.NO_CHA... |
diff --git a/src/com/zemariamm/appirater/AppirateUtils.java b/src/com/zemariamm/appirater/AppirateUtils.java
index 916ec67..9f185d9 100644
--- a/src/com/zemariamm/appirater/AppirateUtils.java
+++ b/src/com/zemariamm/appirater/AppirateUtils.java
@@ -1,123 +1,123 @@
package com.zemariamm.appirater;
import android.app... | true | true | public static void appiraterDialog(final Context context,final AppiraterBase parent) {
AlertDialog.Builder builderInvite = new AlertDialog.Builder(context);
//String appName = context.getResources().getString(R.string.app_name);
String packageName = "";
String appName = "" ;
try {
PackageManager manager =... | public static void appiraterDialog(final Context context,final AppiraterBase parent) {
AlertDialog.Builder builderInvite = new AlertDialog.Builder(context);
//String appName = context.getResources().getString(R.string.app_name);
String packageName = "";
String appName = "" ;
try {
PackageManager manager =... |
diff --git a/src/main/java/com/morgan/design/android/service/ReloadingAlarmService.java b/src/main/java/com/morgan/design/android/service/ReloadingAlarmService.java
index 406e0dd..20bffde 100644
--- a/src/main/java/com/morgan/design/android/service/ReloadingAlarmService.java
+++ b/src/main/java/com/morgan/design/androi... | true | true | protected void onHandleIntent(final Intent intent) {
Logger.d(LOG_TAG, "Reloading Alarm Service Initiated -> may set new one");
final AlarmManager mAlarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
final PendingIntent pi = PendingIntent.getService(this, 0, new Intent("com.morgan.design.android.broa... | protected void onHandleIntent(final Intent intent) {
Logger.d(LOG_TAG, "Reloading Alarm Service Initiated -> may set new one");
final AlarmManager mAlarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
final PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent("com.morgan.design.android.br... |
diff --git a/document/fr.opensagres.xdocreport.document.textstyling.wiki/src/test/java/fr/opensagres/xdocreport/document/textstyling/wiki/gwiki/GWikiTextStylingTransformerTestCase.java b/document/fr.opensagres.xdocreport.document.textstyling.wiki/src/test/java/fr/opensagres/xdocreport/document/textstyling/wiki/gwiki/GW... | true | true | public void testGWiki2HTML() throws Exception {
ITextStylingTransformer formatter = GWikiTextStylingTransformer.INSTANCE;
IDocumentHandler handler = new HTMLDocumentHandler();
formatter.transform("Here are severals styles"
+"\n * *Bold* style."
+"\n * _Italic_ style."
+"\n * _*BoldAndItalic*_ style."
+"\n\n Her... | public void testGWiki2HTML() throws Exception {
ITextStylingTransformer formatter = GWikiTextStylingTransformer.INSTANCE;
IDocumentHandler handler = new HTMLDocumentHandler();
formatter.transform("Here are severals styles"
+"\n * *Bold* style."
+"\n * _Italic_ style."
+"\n * _*BoldAndItalic*_ style."
+"\n\n Her... |
diff --git a/src/core/schedule/ui/HoursStrip.java b/src/core/schedule/ui/HoursStrip.java
index 5256a8a..6615810 100644
--- a/src/core/schedule/ui/HoursStrip.java
+++ b/src/core/schedule/ui/HoursStrip.java
@@ -1,142 +1,142 @@
package core.schedule.ui;
import core.utils.Hour;
import java.awt.Color;
import java.awt.... | true | true | private void initializeVerticalStrip( int size, int timeFraction ) {
//asignamos el layout al strip de acuerdo a la dirección
jPMain.setLayout( new BoxLayout( jPMain, BoxLayout.Y_AXIS ) );
//creamos los labels
Hour h = new Hour();
JLabel label;
Border border ... | private void initializeVerticalStrip( int size, int timeFraction ) {
//asignamos el layout al strip de acuerdo a la dirección
jPMain.setLayout( new BoxLayout( jPMain, BoxLayout.Y_AXIS ) );
//creamos los labels
Hour h = new Hour();
JLabel label;
Border border ... |
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java
index fefbe1d..8b8d8bd 100644
--- a/src/com/android/providers/downloads/DownloadThread.java
+++ b/src/com/android/providers/downloads/DownloadThread.java
@@ -1,922 +1,919 @@
/*
* Copyright (... | false | true | public void run() {
Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
State state = new State(mInfo);
AndroidHttpClient client = null;
PowerManager.WakeLock wakeLock = null;
int finalStatus = Downloads.Impl.STATUS_UNKNOWN_ERROR;
String errorMsg = null;
... | public void run() {
Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
State state = new State(mInfo);
AndroidHttpClient client = null;
PowerManager.WakeLock wakeLock = null;
int finalStatus = Downloads.Impl.STATUS_UNKNOWN_ERROR;
String errorMsg = null;
... |
diff --git a/src/main/java/org/sjmvc/binding/RequestParameterBinder.java b/src/main/java/org/sjmvc/binding/RequestParameterBinder.java
index 4a6a9c6..edba997 100644
--- a/src/main/java/org/sjmvc/binding/RequestParameterBinder.java
+++ b/src/main/java/org/sjmvc/binding/RequestParameterBinder.java
@@ -1,81 +1,82 @@
/**
... | false | true | protected void doBind()
{
@SuppressWarnings("unchecked")
Map<String, String[]> parameters = source.getParameterMap();
for (Map.Entry<String, String[]> param : parameters.entrySet())
{
String name = param.getKey();
String[] values = param.getValue();
// Only bind the bindable parameters
if (name.... | protected void doBind()
{
@SuppressWarnings("unchecked")
Map<String, String[]> parameters = source.getParameterMap();
for (Map.Entry<String, String[]> param : parameters.entrySet())
{
String paramName = param.getKey();
String[] values = param.getValue();
// Only bind the bindable parameters
if (... |
diff --git a/src/main/java/com/ndpar/spring/rabbitmq/MessageHandler.java b/src/main/java/com/ndpar/spring/rabbitmq/MessageHandler.java
index a45d4ab..a658116 100644
--- a/src/main/java/com/ndpar/spring/rabbitmq/MessageHandler.java
+++ b/src/main/java/com/ndpar/spring/rabbitmq/MessageHandler.java
@@ -1,13 +1,13 @@
pack... | true | true | public void onMessage(Message message) {
// System.out.println("Received message: " + message);
System.out.println("Text: " + new String(message.getBody()));
}
| public void onMessage(Message message) {
System.out.println("Received message: " + message);
System.out.println("Text: " + new String(message.getBody()));
}
|
diff --git a/warc-indexer/src/test/java/uk/bl/wa/indexer/WARCIndexerEmbeddedSolrTest.java b/warc-indexer/src/test/java/uk/bl/wa/indexer/WARCIndexerEmbeddedSolrTest.java
index 7a3a96c4..d50e49f6 100755
--- a/warc-indexer/src/test/java/uk/bl/wa/indexer/WARCIndexerEmbeddedSolrTest.java
+++ b/warc-indexer/src/test/java/uk/... | true | true | public void testEmbeddedServer() throws SolrServerException, IOException, NoSuchAlgorithmException, TransformerFactoryConfigurationError, TransformerException, ResourceNotAvailableException {
// Fire up a SOLR:
String url = "http://www.lafromagerie.co.uk/cheese-room/?milk=buffalo&%3Bamp%3Bamp%3Bamp%3Borigin=wal... | public void testEmbeddedServer() throws SolrServerException, IOException, NoSuchAlgorithmException, TransformerFactoryConfigurationError, TransformerException, ResourceNotAvailableException {
// Fire up a SOLR:
String url = "http://www.lafromagerie.co.uk/cheese-room/?milk=buffalo&%3Bamp%3Bamp%3Bamp%3Borigin=wal... |
diff --git a/WEB-INF/src/com/astrider/sfc/src/model/dao/WeeklyLogDao.java b/WEB-INF/src/com/astrider/sfc/src/model/dao/WeeklyLogDao.java
index 7ea3091..b04f58f 100644
--- a/WEB-INF/src/com/astrider/sfc/src/model/dao/WeeklyLogDao.java
+++ b/WEB-INF/src/com/astrider/sfc/src/model/dao/WeeklyLogDao.java
@@ -1,124 +1,123 @@... | true | true | public WeeklyLogVo selectByWeekAgo(int userId, int weekAgo) {
WeeklyLogVo week = null;
PreparedStatement pstmt = null;
try {
StringBuilder sb = new StringBuilder();
sb.append("SELECT * FROM weekly_nut_amounts WHERE user_id = ? AND first_date BETWEEN ");
if (0 < weekAgo) {
int start = -7 * weekAgo;
... | public WeeklyLogVo selectByWeekAgo(int userId, int weekAgo) {
WeeklyLogVo week = null;
PreparedStatement pstmt = null;
try {
StringBuilder sb = new StringBuilder();
sb.append("SELECT * FROM weekly_nut_amounts WHERE user_id = ? AND first_date BETWEEN ");
if (0 < weekAgo) {
int start = -7 * weekAgo;
... |
diff --git a/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java b/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
index a4ba26e3..4cedac38 100644
--- a/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
+++ b/assign... | true | true | public int compare(Object o1, Object o2)
{
int result = -1;
/** *********** for sorting assignments ****************** */
if (m_criteria.equals(SORTED_BY_DEFAULT))
{
int s1 = ((Assignment) o1).getPosition_order();
int s2 = ((Assignment) o2).getPosition_order();
if ( s1 == s2 ) // we ei... | public int compare(Object o1, Object o2)
{
int result = -1;
/** *********** for sorting assignments ****************** */
if (m_criteria.equals(SORTED_BY_DEFAULT))
{
int s1 = ((Assignment) o1).getPosition_order();
int s2 = ((Assignment) o2).getPosition_order();
if ( s1 == s2 ) // we ei... |
diff --git a/open-tracking-tools-otp/src/test/java/org/opentrackingtools/VehicleStatePLFilterSimulationTest.java b/open-tracking-tools-otp/src/test/java/org/opentrackingtools/VehicleStatePLFilterSimulationTest.java
index 710f1cd..d144579 100644
--- a/open-tracking-tools-otp/src/test/java/org/opentrackingtools/VehicleSt... | false | true | void
updateAndCheckStats(
DataDistribution<VehicleStateDistribution<GpsObservation>> vehicleStateDist,
VehicleStateDistribution<GpsObservation> trueVehicleState,
SufficientStatistic obsErrorSS,
SufficientStatistic stateErrorSS,
SufficientStatistic obsCovErrorSS,
... | void
updateAndCheckStats(
DataDistribution<VehicleStateDistribution<GpsObservation>> vehicleStateDist,
VehicleStateDistribution<GpsObservation> trueVehicleState,
SufficientStatistic obsErrorSS,
SufficientStatistic stateErrorSS,
SufficientStatistic obsCovErrorSS,
... |
diff --git a/src/minecraft/net/minecraft/src/GuiIngame.java b/src/minecraft/net/minecraft/src/GuiIngame.java
index 3ba710ce..da7d0e8e 100644
--- a/src/minecraft/net/minecraft/src/GuiIngame.java
+++ b/src/minecraft/net/minecraft/src/GuiIngame.java
@@ -1,473 +1,473 @@
package net.minecraft.src;
import java.awt.Color;... | true | true | public void renderGameOverlay(float var1, boolean var2, int var3, int var4) {
SpoutClient.getInstance().onTick();
InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen();
ScaledResolution scaledRes = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHe... | public void renderGameOverlay(float var1, boolean var2, int var3, int var4) {
SpoutClient.getInstance().onTick();
InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen();
ScaledResolution scaledRes = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHe... |
diff --git a/okapi/filters/openxml/src/main/java/net/sf/okapi/filters/openxml/OpenXMLContentFilter.java b/okapi/filters/openxml/src/main/java/net/sf/okapi/filters/openxml/OpenXMLContentFilter.java
index 0ed111d7e..aea06c12a 100644
--- a/okapi/filters/openxml/src/main/java/net/sf/okapi/filters/openxml/OpenXMLContentFilt... | false | true | public InputStream combineRepeatedFormat(final InputStream in, final PipedOutputStream pios)
{
final OutputStreamWriter osw;
final BufferedWriter bw;
final InputStreamReader isr;
final BufferedReader br;
PipedInputStream piis=null;
// final PipedOutputStream pios = new PipedOutputStream();
try
{
pii... | public InputStream combineRepeatedFormat(final InputStream in, final PipedOutputStream pios)
{
final OutputStreamWriter osw;
final BufferedWriter bw;
final InputStreamReader isr;
final BufferedReader br;
PipedInputStream piis=null;
// final PipedOutputStream pios = new PipedOutputStream();
try
{
pii... |
diff --git a/modules/topology-common/src/main/java/net/es/topology/common/visitors/sls/SLSTraverserImpl.java b/modules/topology-common/src/main/java/net/es/topology/common/visitors/sls/SLSTraverserImpl.java
index 5daed64..d47c3c6 100644
--- a/modules/topology-common/src/main/java/net/es/topology/common/visitors/sls/SLS... | false | true | public void traverse(Topology record, Visitor visitor) {
getLogger().trace("event=SLSTraverserImpl.traverse.Topology.start recordURN=" + record.getId() + " guid=" + getLogGUID());
try {
if (record.getTopologies() != null) {
for (String urn : record.getTopologies()) {
... | public void traverse(Topology record, Visitor visitor) {
getLogger().trace("event=SLSTraverserImpl.traverse.Topology.start recordURN=" + record.getId() + " guid=" + getLogGUID());
try {
if (record.getTopologies() != null) {
for (String urn : record.getTopologies()) {
... |
diff --git a/src/Main4.java b/src/Main4.java
index 61f5f73..404ce6b 100644
--- a/src/Main4.java
+++ b/src/Main4.java
@@ -1,6 +1,6 @@
public class Main4 {
public static void main(String[] args) {
- System.out.println("Hello World testing 004 !");
+ System.out.println("Hello World testing 0004 !");
... | true | true | public static void main(String[] args) {
System.out.println("Hello World testing 004 !");
}
| public static void main(String[] args) {
System.out.println("Hello World testing 0004 !");
}
|
diff --git a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Alb_baulastEditorPanel.java b/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Alb_baulastEditorPanel.java
index 6beeaff9..b858a820 100644
--- a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Alb_baulastEditorPanel.java
... | true | true | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
sqlDateToUtilDateConverter = new de.cismet.cids.editors.converters.SqlDateToUtilDateConverter();
dlgAddBaulastArt = new javax.swing.JDialog();... | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
sqlDateToUtilDateConverter = new de.cismet.cids.editors.converters.SqlDateToUtilDateConverter();
dlgAddBaulastArt = new javax.swing.JDialog();... |
diff --git a/src/main/java/com/voxbone/kelpie/Session.java b/src/main/java/com/voxbone/kelpie/Session.java
index 5e741e8..deb11d8 100755
--- a/src/main/java/com/voxbone/kelpie/Session.java
+++ b/src/main/java/com/voxbone/kelpie/Session.java
@@ -1,1517 +1,1527 @@
/**
* Copyright 2012 Voxbone SA/NV
*
* License... | false | true | public void packetTransferred(PacketEvent evt)
{
try
{
JID local = evt.getData().getTo();
JID remote = evt.getData().getFrom();
logger.debug("[[" + internalCallId + "]] got message of " + evt.getData().getQualifiedName());
if (evt.getData().getQualifiedName().equals("db:result"))
{
String typ... | public void packetTransferred(PacketEvent evt)
{
try
{
JID local = evt.getData().getTo();
JID remote = evt.getData().getFrom();
logger.debug("[[" + internalCallId + "]] got message of " + evt.getData().getQualifiedName());
if (evt.getData().getQualifiedName().equals("db:result"))
{
String typ... |
diff --git a/src/uk/me/parabola/imgfmt/app/labelenc/BaseEncoder.java b/src/uk/me/parabola/imgfmt/app/labelenc/BaseEncoder.java
index d495aed1..6f43e1b9 100644
--- a/src/uk/me/parabola/imgfmt/app/labelenc/BaseEncoder.java
+++ b/src/uk/me/parabola/imgfmt/app/labelenc/BaseEncoder.java
@@ -1,176 +1,176 @@
/*
* Copyright... | true | true | private String[] loadRow(int row) {
if (rows[row] != null)
return rows[row];
String[] newRow = new String[256];
rows[row] = newRow;
// Default all to a question mark
Arrays.fill(newRow, "?");
charset = "ascii";
StringBuilder name = new StringBuilder();
Formatter fmt = new Formatter(name);
fmt.f... | private String[] loadRow(int row) {
if (rows[row] != null)
return rows[row];
String[] newRow = new String[256];
rows[row] = newRow;
// Default all to a question mark
Arrays.fill(newRow, "?");
charset = "ascii";
StringBuilder name = new StringBuilder();
Formatter fmt = new Formatter(name);
fmt.f... |
diff --git a/src/com/orange/groupbuy/api/service/UpdateUserService.java b/src/com/orange/groupbuy/api/service/UpdateUserService.java
index 67bba67..bcc882b 100644
--- a/src/com/orange/groupbuy/api/service/UpdateUserService.java
+++ b/src/com/orange/groupbuy/api/service/UpdateUserService.java
@@ -1,90 +1,85 @@
package ... | true | true | public void handleData() {
BasicDBObject user = (BasicDBObject) UserManager.findUserByEmail(mongoClient, email);
if (user == null){
resultCode = ErrorCode.ERROR_USERID_NOT_FOUND;
log.info("<updateUser> user not found");
return;
}
else if(user.getString(DBConstants.F_PASSWORD).equals(password)){... | public void handleData() {
BasicDBObject user = (BasicDBObject) UserManager.findUserByEmail(mongoClient, email);
if (user == null){
resultCode = ErrorCode.ERROR_USERID_NOT_FOUND;
log.info("<updateUser> user not found");
return;
}
else if(user.getString(DBConstants.F_PASSWORD).equals(password)){... |
diff --git a/plugins/org.xwiki.eclipse.ui/src/main/java/org/xwiki/eclipse/ui/editors/scanners/rules/BalancedParenthesisRule.java b/plugins/org.xwiki.eclipse.ui/src/main/java/org/xwiki/eclipse/ui/editors/scanners/rules/BalancedParenthesisRule.java
index b53ad8c..b7fd8dd 100644
--- a/plugins/org.xwiki.eclipse.ui/src/main... | true | true | public IToken evaluate(ICharacterScanner scanner, boolean resume)
{
/*
* Here the logic is the following: isolate the partition between # and a white space provided that all
* parenthesis are balanced. If there are open parenthesis, keep scanning until the last parenthesis is closed.
... | public IToken evaluate(ICharacterScanner scanner, boolean resume)
{
/*
* Here the logic is the following: isolate the partition between # and a white space provided that all
* parenthesis are balanced. If there are open parenthesis, keep scanning until the last parenthesis is closed.
... |
diff --git a/src/v2/Count.java b/src/v2/Count.java
index 0d9a448..bf51117 100644
--- a/src/v2/Count.java
+++ b/src/v2/Count.java
@@ -1,100 +1,100 @@
package v2;
import java.io.IOException;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.filecache.DistributedCache;
import org.apache.hadoop.fs.FileStatus... | true | true | public int run(String[] args) throws Exception {
Job job = new Job();
Configuration conf = job.getConfiguration();
FileSystem fs = FileSystem.get(conf);
FileStatus[] jarFiles = fs.listStatus(new Path("/libs"));
for (FileStatus status : jarFiles) {
Path disqualified = new Path(status.getPath(... | public int run(String[] args) throws Exception {
Job job = new Job();
Configuration conf = job.getConfiguration();
FileSystem fs = FileSystem.get(conf);
FileStatus[] jarFiles = fs.listStatus(new Path("/libs"));
for (FileStatus status : jarFiles) {
Path disqualified = new Path(status.getPath(... |
diff --git a/src/main/java/org/basex/gui/view/editor/EditorView.java b/src/main/java/org/basex/gui/view/editor/EditorView.java
index 299bdc7c9..37d2acb28 100644
--- a/src/main/java/org/basex/gui/view/editor/EditorView.java
+++ b/src/main/java/org/basex/gui/view/editor/EditorView.java
@@ -1,776 +1,776 @@
package org.ba... | true | true | public EditorView(final ViewNotifier man) {
super(EDITORVIEW, man);
border(5).layout(new BorderLayout());
label = new BaseXLabel(EDITOR, true, false);
label.setForeground(GUIConstants.GRAY);
final BaseXButton openB = BaseXButton.command(GUICommands.C_EDITOPEN, gui);
final BaseXButton saveB =... | public EditorView(final ViewNotifier man) {
super(EDITORVIEW, man);
border(5).layout(new BorderLayout());
label = new BaseXLabel(EDITOR, true, false);
label.setForeground(GUIConstants.GRAY);
final BaseXButton openB = BaseXButton.command(GUICommands.C_EDITOPEN, gui);
final BaseXButton saveB =... |
diff --git a/TDI/test/model/ServerTest.java b/TDI/test/model/ServerTest.java
index edec8a2..4f54c9e 100644
--- a/TDI/test/model/ServerTest.java
+++ b/TDI/test/model/ServerTest.java
@@ -1,37 +1,36 @@
package model;
import static org.junit.Assert.*;
import java.io.IOException;
import java.io.ObjectInputStream;
i... | true | true | public void test() {
try {
server = new ServerSocket(2345);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Server s = new Server();
s.sendCommand("lol");
}
| public void test() {
try {
server = new ServerSocket(2345);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Server s = new Server();
}
|
diff --git a/src/main/java/com/dumptruckman/chunky/config/CommentedConfiguration.java b/src/main/java/com/dumptruckman/chunky/config/CommentedConfiguration.java
index 88ec6e4..e3c6bb2 100644
--- a/src/main/java/com/dumptruckman/chunky/config/CommentedConfiguration.java
+++ b/src/main/java/com/dumptruckman/chunky/config... | true | true | public boolean save() {
// Save the config just like normal
boolean saved = super.save();
// if there's comments to add and it saved fine, we need to add comments
if (!comments.isEmpty() && saved) {
// String array of each line in the config file
String[] yam... | public boolean save() {
// Save the config just like normal
boolean saved = super.save();
// if there's comments to add and it saved fine, we need to add comments
if (!comments.isEmpty() && saved) {
// String array of each line in the config file
String[] yam... |
diff --git a/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
index 49250c1..c666960 100644
--- a/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
+++ b/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
@@ -1,486 +1,487 @@
package org.ap... | true | true | public void executeReport( Locale locale )
throws MavenReportException
{
//configure ResourceManager
locator.addSearchPath( FileResourceLoader.ID, project.getFile().getParentFile().getAbsolutePath() );
locator.addSearchPath( "url", "" );
locator.setOutputDirectory( new Fi... | public void executeReport( Locale locale )
throws MavenReportException
{
//configure ResourceManager
locator.addSearchPath( FileResourceLoader.ID, project.getFile().getParentFile().getAbsolutePath() );
locator.addSearchPath( "url", "" );
locator.setOutputDirectory( new Fi... |
diff --git a/app/jobs/FetchEmails.java b/app/jobs/FetchEmails.java
index ca40344..7c6139f 100644
--- a/app/jobs/FetchEmails.java
+++ b/app/jobs/FetchEmails.java
@@ -1,141 +1,141 @@
package jobs;
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.regex.*;
import javax.mail.*;... | true | true | public void doJob() throws Exception {
if(Play.configuration.getProperty("mailbox.username") == null || Play.configuration.getProperty("mailbox.password") == null) {
Logger.error("Please configure mailbox credentials in conf/credentials.conf");
return;
}
// ... | public void doJob() throws Exception {
if(Play.configuration.getProperty("mailbox.username") == null || Play.configuration.getProperty("mailbox.password") == null) {
Logger.error("Please configure mailbox credentials in conf/credentials.conf");
return;
}
// ... |
diff --git a/openjdk/sun/nio/ch/DotNetSelectorImpl.java b/openjdk/sun/nio/ch/DotNetSelectorImpl.java
index ab6c1bb9..47ae5d3d 100644
--- a/openjdk/sun/nio/ch/DotNetSelectorImpl.java
+++ b/openjdk/sun/nio/ch/DotNetSelectorImpl.java
@@ -1,300 +1,301 @@
/*
* Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserv... | true | true | protected int doSelect(long timeout) throws IOException
{
if (channelArray == null)
throw new ClosedSelectorException();
processDeregisterQueue();
if (interruptTriggered)
{
resetWakeupSocket();
return 0;
}
ArrayList read = new ArrayList();
ArrayList write = new ArrayList();
ArrayList err... | protected int doSelect(long timeout) throws IOException
{
if (channelArray == null)
throw new ClosedSelectorException();
processDeregisterQueue();
if (interruptTriggered)
{
resetWakeupSocket();
return 0;
}
ArrayList read = new ArrayList();
ArrayList write = new ArrayList();
ArrayList err... |
diff --git a/Paco-Server/src/com/google/sampling/experiential/server/EventServlet.java b/Paco-Server/src/com/google/sampling/experiential/server/EventServlet.java
index f31309d48..7c8c353ad 100755
--- a/Paco-Server/src/com/google/sampling/experiential/server/EventServlet.java
+++ b/Paco-Server/src/com/google/sampling/e... | true | true | private void printEvents(HttpServletResponse resp, List<Event> greetings, boolean anon) throws IOException {
long t1 = System.currentTimeMillis();
long eventTime = 0;
long whatTime = 0;
if (greetings.isEmpty()) {
resp.getWriter().println("Nothing to see here.");
} else {
StringBuilder ... | private void printEvents(HttpServletResponse resp, List<Event> greetings, boolean anon) throws IOException {
long t1 = System.currentTimeMillis();
long eventTime = 0;
long whatTime = 0;
if (greetings.isEmpty()) {
resp.getWriter().println("Nothing to see here.");
} else {
StringBuilder ... |
diff --git a/src/main/java/org/glassfish/scripting/gem/GlassFishConsoleHandler.java b/src/main/java/org/glassfish/scripting/gem/GlassFishConsoleHandler.java
index 259b301..4b6c30e 100644
--- a/src/main/java/org/glassfish/scripting/gem/GlassFishConsoleHandler.java
+++ b/src/main/java/org/glassfish/scripting/gem/GlassFis... | true | true | public void publish(LogRecord record) {
if(record != null && record.getLoggerName() != null){
if(record.getLoggerName().equals("org.glassfish.scripting.jruby.JRubyContainer")){
super.publish(record);
}
}
}
| public void publish(LogRecord record) {
if(record != null && record.getLoggerName() != null){
//log all the warning and error messages to console
if((record.getLevel().intValue() > 800 && record.getLevel().intValue() <= 1000) ||
record.getLoggerName().equals("org.... |
diff --git a/src/main/java/org/mvel/ast/NewObjectNode.java b/src/main/java/org/mvel/ast/NewObjectNode.java
index bd6740c1..54e0b56a 100644
--- a/src/main/java/org/mvel/ast/NewObjectNode.java
+++ b/src/main/java/org/mvel/ast/NewObjectNode.java
@@ -1,75 +1,72 @@
package org.mvel.ast;
import org.mvel.*;
import org.mv... | true | true | public NewObjectNode(char[] expr, int fields) {
super(expr, fields);
if ((fields & COMPILE_IMMEDIATE) != 0) {
int endRange = ArrayTools.findFirst('(', expr);
String name;
if (endRange == -1) {
name = new String(expr);
}
els... | public NewObjectNode(char[] expr, int fields) {
super(expr, fields);
if ((fields & COMPILE_IMMEDIATE) != 0) {
int endRange = ArrayTools.findFirst('(', expr);
String name;
if (endRange == -1) {
name = new String(expr);
}
els... |
diff --git a/src/edgruberman/bukkit/simpledeathnotices/Main.java b/src/edgruberman/bukkit/simpledeathnotices/Main.java
index b229481..25c63d3 100644
--- a/src/edgruberman/bukkit/simpledeathnotices/Main.java
+++ b/src/edgruberman/bukkit/simpledeathnotices/Main.java
@@ -1,139 +1,139 @@
package edgruberman.bukkit.simpled... | false | true | public void describeEvent(EntityEvent event) {
Entity damager = null;
String damagerName = "";
if (event instanceof EntityDamageByEntityEvent){
damager = ((EntityDamageByEntityEvent) event).getDamager();
if (!(damager instanceof Player)) damagerName = " a ";
... | public void describeEvent(EntityEvent event) {
Entity damager = null;
String damagerName = "";
if (event instanceof EntityDamageByEntityEvent){
damager = ((EntityDamageByEntityEvent) event).getDamager();
if (!(damager instanceof Player)) damagerName = " a ";
... |
diff --git a/database/src/main/java/no/bekk/bekkopen/cde/database/Main.java b/database/src/main/java/no/bekk/bekkopen/cde/database/Main.java
index e3786db..c235178 100644
--- a/database/src/main/java/no/bekk/bekkopen/cde/database/Main.java
+++ b/database/src/main/java/no/bekk/bekkopen/cde/database/Main.java
@@ -1,28 +1... | true | true | public static void main(String[] args) throws CommandLineParsingException, IOException, NoSuchFieldException, IllegalAccessException {
List<String> defaultArgs = Arrays.asList(
"--driver=com.mysql.jdbc.Driver",
"--url=jdbc:mysql://mysql.bekkopen.no/bekkopen",
... | public static void main(String[] args) throws CommandLineParsingException, IOException, NoSuchFieldException, IllegalAccessException {
List<String> defaultArgs = Arrays.asList(
"--driver=com.mysql.jdbc.Driver",
"--url=jdbc:mysql://node1.morisbak.net/bekkopen",
... |
diff --git a/src/com/android/calendar/alerts/SnoozeAlarmsService.java b/src/com/android/calendar/alerts/SnoozeAlarmsService.java
index 2eac1a71..6ef983d5 100644
--- a/src/com/android/calendar/alerts/SnoozeAlarmsService.java
+++ b/src/com/android/calendar/alerts/SnoozeAlarmsService.java
@@ -1,88 +1,89 @@
/*
* Copyrig... | true | true | public void onHandleIntent(Intent intent) {
long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1);
long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1);
long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1);
// The ID reserved for the expired ... | public void onHandleIntent(Intent intent) {
long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1);
long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1);
long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1);
// The ID reserved for the expired ... |
diff --git a/src/se/kth/maandree/utilsay/Ponysay.java b/src/se/kth/maandree/utilsay/Ponysay.java
index 7412ba7..a355b49 100644
--- a/src/se/kth/maandree/utilsay/Ponysay.java
+++ b/src/se/kth/maandree/utilsay/Ponysay.java
@@ -1,1632 +1,1632 @@
/**
* util-say — Utilities for cowsay and cowsay-like programs
*
* Cop... | true | true | public void exportPony(Pony pony) throws IOException
{
Color[] colours = new Color[256];
boolean[] format = new boolean[9];
Color background = null, foreground = null;
for (int i = 0; i < 256; i++)
{ Colour colour = new Colour(i);
colours[i] = new Color(colour.red, colour.green, colour.blue);
}
... | public void exportPony(Pony pony) throws IOException
{
Color[] colours = new Color[256];
boolean[] format = new boolean[9];
Color background = null, foreground = null;
for (int i = 0; i < 256; i++)
{ Colour colour = new Colour(i);
colours[i] = new Color(colour.red, colour.green, colour.blue);
}
... |
diff --git a/src/blink/SavePDF.java b/src/blink/SavePDF.java
index bd1e19e..d7a8647 100644
--- a/src/blink/SavePDF.java
+++ b/src/blink/SavePDF.java
@@ -1,94 +1,94 @@
package blink;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.FileOutputStream;
import java... | false | true | public void hardwork() {
// java.awt.Rectangle dim = _gemViewer.getBounds();
// int width = dim.width;
// int height = dim.height;
// Rectangle dim =
// ((MyTutteLayout)_gemViewer.getLayout()).boundingBox();
int width = 600;
int height = 800;
JFileChooser fc = new JFileChooser();
fc.setMultiSelection... | public void hardwork() {
// java.awt.Rectangle dim = _gemViewer.getBounds();
// int width = dim.width;
// int height = dim.height;
// Rectangle dim =
// ((MyTutteLayout)_gemViewer.getLayout()).boundingBox();
int width = 600;
int height = 800;
JFileChooser fc = new JFileChooser();
fc.setMultiSelection... |
diff --git a/fabric-bridge-project/fabric-bridge-zookeeper/src/main/java/org/fusesource/fabric/bridge/zk/internal/AbstractZkManagedServiceFactory.java b/fabric-bridge-project/fabric-bridge-zookeeper/src/main/java/org/fusesource/fabric/bridge/zk/internal/AbstractZkManagedServiceFactory.java
index 6c4fbb385..17a82752e 10... | false | true | protected BrokerConfig createBrokerConfig(String pid, String prefix, Dictionary<String, String> properties) throws ConfigurationException {
final String keyPrefix = prefix + ".";
for (Enumeration<String> e = properties.keys(); e.hasMoreElements(); ) {
String key = e.nextElement();
... | protected BrokerConfig createBrokerConfig(String pid, String prefix, Dictionary<String, String> properties) throws ConfigurationException {
final String keyPrefix = prefix + ".";
for (Enumeration<String> e = properties.keys(); e.hasMoreElements(); ) {
String key = e.nextElement();
... |
diff --git a/org.kevoree.extra.kserial/src/main/java/org/kevoree/extra/kserial/Test.java b/org.kevoree.extra.kserial/src/main/java/org/kevoree/extra/kserial/Test.java
index 0a5b86fa..829c9930 100644
--- a/org.kevoree.extra.kserial/src/main/java/org/kevoree/extra/kserial/Test.java
+++ b/org.kevoree.extra.kserial/src/mai... | false | true | public static void main(String[] args) throws Exception {
/*
System.out.println(KHelpers.getPortIdentifiers());
final SerialPort serial = new SerialPort("/dev/ttyUSB0", 19200);
serial.open();
serial.addEventListener(new SerialPortEventListener(){
public void incomingDataEvent (SerialPortEvent evt... | public static void main(String[] args) throws Exception {
/*
System.out.println(KHelpers.getPortIdentifiers());
final SerialPort serial = new SerialPort("/dev/ttyUSB0", 19200);
serial.open();
serial.addEventListener(new SerialPortEventListener(){
public void incomingDataEvent (SerialPortEvent evt... |
diff --git a/ping-service/src/dmitrygusev/ping/filters/BackupJobResultsFilter.java b/ping-service/src/dmitrygusev/ping/filters/BackupJobResultsFilter.java
index b2992b1..bd1bd83 100644
--- a/ping-service/src/dmitrygusev/ping/filters/BackupJobResultsFilter.java
+++ b/ping-service/src/dmitrygusev/ping/filters/BackupJobRe... | false | true | public void sendResultsByMail(Job job, List<JobResult> results, String reportRecipient) throws MessagingException, IOException, URISyntaxException {
JobResult firstResult = (JobResult) results.get(0);
JobResult lastResult = (JobResult) results.get(results.size() - 1);
String subject... | public void sendResultsByMail(Job job, List<JobResult> results, String reportRecipient) throws MessagingException, IOException, URISyntaxException {
JobResult firstResult = (JobResult) results.get(0);
JobResult lastResult = (JobResult) results.get(results.size() - 1);
String subject... |
diff --git a/src/main/java/com/khobar/springgames/controller/PlayerController.java b/src/main/java/com/khobar/springgames/controller/PlayerController.java
index 4a126e8..64ddb17 100644
--- a/src/main/java/com/khobar/springgames/controller/PlayerController.java
+++ b/src/main/java/com/khobar/springgames/controller/Playe... | true | true | public String savePlayer(@PathVariable Integer id,
@Valid @ModelAttribute Player player, BindingResult result) {
if (!result.hasErrors()) {
player.setId(id);
Player playerInRepo = playerRepository.findOne(player.getId());
if (playerInRepo != null) {
Discipline oldDisc = playerInRepo.getDiscipline();
... | public String savePlayer(@PathVariable Integer id,
@Valid @ModelAttribute Player player, BindingResult result) {
if (!result.hasErrors()) {
player.setId(id);
Player playerInRepo = playerRepository.findOne(player.getId());
if (playerInRepo != null) {
Discipline oldDisc = playerInRepo.getDiscipline();
... |
diff --git a/src/java/com/stackframe/sarariman/events/EventsImpl.java b/src/java/com/stackframe/sarariman/events/EventsImpl.java
index 427f966..8165191 100644
--- a/src/java/com/stackframe/sarariman/events/EventsImpl.java
+++ b/src/java/com/stackframe/sarariman/events/EventsImpl.java
@@ -1,61 +1,61 @@
/*
* Copyright... | true | true | public Iterable<Event> getCurrent() {
try {
Connection connection = dataSource.getConnection();
try {
Statement s = connection.createStatement();
try {
ResultSet r = s.executeQuery("SELECT id FROM company_events WHERE (begin >= DATE... | public Iterable<Event> getCurrent() {
try {
Connection connection = dataSource.getConnection();
try {
Statement s = connection.createStatement();
try {
ResultSet r = s.executeQuery("SELECT id FROM company_events WHERE (begin >= DATE... |
diff --git a/src/java/com/tracker/frontend/Scrape.java b/src/java/com/tracker/frontend/Scrape.java
index ffb891e..0cb47c8 100644
--- a/src/java/com/tracker/frontend/Scrape.java
+++ b/src/java/com/tracker/frontend/Scrape.java
@@ -1,135 +1,135 @@
/*
* To change this template, choose Tools | Templates
* and open the ... | true | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// store remote address in a useful form
remoteAddress = InetAddress.getByName(request.getRemoteAddr());
TrackerRequestParser trp = new TrackerRequestParser();
... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// store remote address in a useful form
remoteAddress = InetAddress.getByName(request.getRemoteAddr());
TrackerRequestParser trp = new TrackerRequestParser();
... |
diff --git a/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java b/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java
index 351ff91d9..513009cc2 100644
--- a/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java
+++ b/activemq-web/src/ma... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
String[] stocks = request.getParameterValues("stocks");
if (stocks == null || stocks.length == 0) {
out.println("<html><bo... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
String[] stocks = request.getParameterValues("stocks");
if (stocks == null || stocks.length == 0) {
out.println("<html><bo... |
diff --git a/src/me/snowleo/bleedingmobs/Settings.java b/src/me/snowleo/bleedingmobs/Settings.java
index b56517b..35791a0 100644
--- a/src/me/snowleo/bleedingmobs/Settings.java
+++ b/src/me/snowleo/bleedingmobs/Settings.java
@@ -1,373 +1,374 @@
/*
* BleedingMobs - make your monsters and players bleed
*
* Copyrig... | true | true | public final void loadConfig()
{
plugin.reloadConfig();
final FileConfiguration config = plugin.getConfig();
bleedingEnabled = config.getBoolean("enabled", true);
final int newMaxParticles = Math.max(1, Math.min(Util.COUNTER_SIZE, config.getInt("max-particles", MAX_PARTICLES)));
if (plugin.getStorage() != n... | public final void loadConfig()
{
plugin.reloadConfig();
final FileConfiguration config = plugin.getConfig();
bleedingEnabled = config.getBoolean("enabled", true);
final int newMaxParticles = Math.max(1, Math.min(Util.COUNTER_SIZE, config.getInt("max-particles", MAX_PARTICLES)));
if (plugin.getStorage() != n... |
diff --git a/src/nu/nerd/tpcontrol/TPControl.java b/src/nu/nerd/tpcontrol/TPControl.java
index 1b04991..cba58a4 100644
--- a/src/nu/nerd/tpcontrol/TPControl.java
+++ b/src/nu/nerd/tpcontrol/TPControl.java
@@ -1,357 +1,357 @@
package nu.nerd.tpcontrol;
import java.io.File;
import java.util.Date;
import java.util.Has... | true | true | public boolean onCommand(CommandSender sender, Command command, String name, String[] args) {
//
// /tp
//
if (command.getName().equalsIgnoreCase("tp")) {
if (!(sender instanceof Player)) {
sender.sendMessage("This cannot be run from the console!");
return true;
}
... | public boolean onCommand(CommandSender sender, Command command, String name, String[] args) {
//
// /tp
//
if (command.getName().equalsIgnoreCase("tp")) {
if (!(sender instanceof Player)) {
sender.sendMessage("This cannot be run from the console!");
return true;
}
... |
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/eperson/LoginRedirect.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/eperson/LoginRedirect.java
index ca322343b..64c2bbf0e 100644
--- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/as... | true | true | public Map act(Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters parameters)
throws Exception {
final HttpServletResponse httpResponse = (HttpServletResponse) objectModel
.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
final HttpServletRequest httpRequest = (HttpServ... | public Map act(Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters parameters)
throws Exception {
final HttpServletResponse httpResponse = (HttpServletResponse) objectModel
.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
final HttpServletRequest httpRequest = (HttpServ... |
diff --git a/android/src/org/bombusmod/NetworkStateReceiver.java b/android/src/org/bombusmod/NetworkStateReceiver.java
index 627de072..f54a41bd 100644
--- a/android/src/org/bombusmod/NetworkStateReceiver.java
+++ b/android/src/org/bombusmod/NetworkStateReceiver.java
@@ -1,39 +1,38 @@
/*
* To change this template, ch... | true | true | public void onReceive(Context context, Intent networkIntent) {
if (BombusModActivity.getInstance() == null)
return;
if (StaticData.getInstance().roster == null)
return;
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVIT... | public void onReceive(Context context, Intent networkIntent) {
if (BombusModActivity.getInstance() == null)
return;
if (StaticData.getInstance().roster == null)
return;
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVIT... |
diff --git a/sikuli-script/src/main/java/edu/mit/csail/uid/UnionScreen.java b/sikuli-script/src/main/java/edu/mit/csail/uid/UnionScreen.java
index 7c4558bf..7b9b6fdf 100644
--- a/sikuli-script/src/main/java/edu/mit/csail/uid/UnionScreen.java
+++ b/sikuli-script/src/main/java/edu/mit/csail/uid/UnionScreen.java
@@ -1,65 ... | true | true | public ScreenImage capture(Rectangle rect) {
Debug.log(5, "capture: " + rect);
BufferedImage ret = new BufferedImage( rect.width, rect.height,
BufferedImage.TYPE_INT_RGB );
Graphics2D g2d = ret.createGraphics();
for (int i=0; i < Screen.getNumber... | public ScreenImage capture(Rectangle rect) {
Debug.log(5, "capture: " + rect);
BufferedImage ret = new BufferedImage( rect.width, rect.height,
BufferedImage.TYPE_INT_RGB );
Graphics2D g2d = ret.createGraphics();
for (int i=0; i < Screen.getNumber... |
diff --git a/hot-deploy/opentaps-common/src/common/org/opentaps/common/agreement/AgreementServices.java b/hot-deploy/opentaps-common/src/common/org/opentaps/common/agreement/AgreementServices.java
index f45a2071f..84be15276 100644
--- a/hot-deploy/opentaps-common/src/common/org/opentaps/common/agreement/AgreementServic... | false | true | public static Map<String, Object> autoCreateAgreementItemsAndTerms(DispatchContext dctx, Map<String, Object> context) {
GenericDelegator delegator = dctx.getDelegator();
Locale locale = UtilCommon.getLocale(context);
String agreementId = (String) context.get("agreementId");
String a... | public static Map<String, Object> autoCreateAgreementItemsAndTerms(DispatchContext dctx, Map<String, Object> context) {
GenericDelegator delegator = dctx.getDelegator();
Locale locale = UtilCommon.getLocale(context);
String agreementId = (String) context.get("agreementId");
String a... |
diff --git a/ui/marzemino/android/First/src/com/example/first/MainActivity.java b/ui/marzemino/android/First/src/com/example/first/MainActivity.java
index d124271..7f6a3be 100644
--- a/ui/marzemino/android/First/src/com/example/first/MainActivity.java
+++ b/ui/marzemino/android/First/src/com/example/first/MainActivity.... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/main.html");
super.setIntegerProperty("loadUrlTimeoutValue", 10000);
}
| public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index2.html");
super.setIntegerProperty("loadUrlTimeoutValue", 10000);
}
|
diff --git a/src/main/java/de/cosmocode/palava/ipc/legacy/LegacyFrameDecoder.java b/src/main/java/de/cosmocode/palava/ipc/legacy/LegacyFrameDecoder.java
index c121702..f37ac73 100644
--- a/src/main/java/de/cosmocode/palava/ipc/legacy/LegacyFrameDecoder.java
+++ b/src/main/java/de/cosmocode/palava/ipc/legacy/LegacyFrame... | false | true | protected Header decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {
if (buffer.readable()) {
if (part == null) part = Part.TYPE;
if (part == Part.CONTENT) {
return contentOf(buffer);
}
... | protected Header decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {
if (buffer.readable()) {
if (part == null) part = Part.TYPE;
if (part == Part.CONTENT) {
return contentOf(buffer);
}
... |
diff --git a/jOOQ-test/src/org/jooq/test/jOOQFirebirdTest.java b/jOOQ-test/src/org/jooq/test/jOOQFirebirdTest.java
index ffa2d4a02..721da6d0a 100644
--- a/jOOQ-test/src/org/jooq/test/jOOQFirebirdTest.java
+++ b/jOOQ-test/src/org/jooq/test/jOOQFirebirdTest.java
@@ -1,736 +1,726 @@
/**
* Copyright (c) 2009-2012, Lukas... | false | true | protected DataType<?>[] getCastableDataTypes() {
return new DataType<?>[] {
FirebirdDataType.BIGINT,
FirebirdDataType.BINARY,
FirebirdDataType.BINARYLARGEOBJECT,
FirebirdDataType.BIT,
FirebirdDataType.BOOLEAN,
FirebirdDataType.CHAR,
... | protected DataType<?>[] getCastableDataTypes() {
return new DataType<?>[] {
FirebirdDataType.BIGINT,
FirebirdDataType.BIT,
FirebirdDataType.BOOLEAN,
FirebirdDataType.CHAR,
FirebirdDataType.CHARACTER,
FirebirdDataType.CHARACTERVARYING,
... |
diff --git a/teamcity-gerrit-agent/src/com/maxifier/teamcity/gerrit/GerritBuildProcess.java b/teamcity-gerrit-agent/src/com/maxifier/teamcity/gerrit/GerritBuildProcess.java
index f4420d2..70ffe96 100644
--- a/teamcity-gerrit-agent/src/com/maxifier/teamcity/gerrit/GerritBuildProcess.java
+++ b/teamcity-gerrit-agent/src/... | true | true | public void beforeProcessStarted() throws RunBuildException {
getLogger().progressStarted("Start Gerrit Verification");
BuildFinishedStatus previousStepStatus = statuses.get(getBuild());
if (previousStepStatus == null) {
throw new RunBuildException("Unable to recognize previous b... | public void beforeProcessStarted() throws RunBuildException {
getLogger().progressStarted("Start Gerrit Verification");
BuildFinishedStatus previousStepStatus = statuses.get(getBuild());
if (previousStepStatus == null) {
throw new RunBuildException("Unable to recognize previous b... |
diff --git a/nuget-server/src/jetbrains/buildServer/nuget/server/toolRegistry/ui/ToolSelectorController.java b/nuget-server/src/jetbrains/buildServer/nuget/server/toolRegistry/ui/ToolSelectorController.java
index 6bd12238..af368d80 100644
--- a/nuget-server/src/jetbrains/buildServer/nuget/server/toolRegistry/ui/ToolSel... | true | true | protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse response) throws Exception {
final String name = safe(request.getParameter("name"));
String value = parseValue(request, "value", name);
final Collection<ToolInfo> tools = getTools();
final ToolInfo bundledTool = ensureVers... | protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse response) throws Exception {
final String name = safe(request.getParameter("name"));
String value = parseValue(request, "value", name);
final Collection<ToolInfo> tools = getTools();
final ToolInfo bundledTool = ensureVers... |
diff --git a/srcj/com/sun/electric/database/Environment.java b/srcj/com/sun/electric/database/Environment.java
index 5940ebebf..27d9d1cb2 100644
--- a/srcj/com/sun/electric/database/Environment.java
+++ b/srcj/com/sun/electric/database/Environment.java
@@ -1,374 +1,371 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm) V... | false | true | public Environment withSettingChanges(Setting.SettingChangeBatch changeBatch) {
// Look for tech param changes
Map<TechFactory.Param, Object> techParams = techPool.getTechParams();
boolean changed = false;
for (Map.Entry<TechFactory.Param, Object> e : techParams.entrySet()) {
... | public Environment withSettingChanges(Setting.SettingChangeBatch changeBatch) {
// Look for tech param changes
Map<TechFactory.Param, Object> techParams = techPool.getTechParams();
for (Map.Entry<TechFactory.Param, Object> e : techParams.entrySet()) {
TechFactory.Param param = e... |
diff --git a/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NavigatableESPFastCommand.java b/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NavigatableESPFastCommand.java
index 4cc454e92..6d716e757 100644
--- a/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/Navigata... | false | true | private void collectModifier(String navigatorKey, IQueryResult result, FastSearchResult searchResult) {
final Navigator nav = navigatedTo.get(navigatorKey);
INavigator navigator = result.getNavigator(nav.getName());
if (navigator != null) {
Iterator modifers = navigator.modif... | private void collectModifier(String navigatorKey, IQueryResult result, FastSearchResult searchResult) {
final Navigator nav = navigatedTo.get(navigatorKey);
INavigator navigator = null;
if (result != null) {
navigator = result.getNavigator(nav.getName());
}
if ... |
diff --git a/appsolut/src/com/appsolut/composition/pitch_detection/MidiGenerator.java b/appsolut/src/com/appsolut/composition/pitch_detection/MidiGenerator.java
index b29bf29..95543da 100644
--- a/appsolut/src/com/appsolut/composition/pitch_detection/MidiGenerator.java
+++ b/appsolut/src/com/appsolut/composition/pitch_... | false | true | public MidiFile generateMidi(DataInputStream audio_stream, long sampleRate, int clipRate) throws IOException{
ArrayList<Integer> midiNums = new ArrayList<Integer>();
ArrayList<Long> durations = new ArrayList<Long>();
double[] audio = new double[16384];
int slide = 2048;
int start=slide;
AudioAnalyser aa = ... | public MidiFile generateMidi(DataInputStream audio_stream, long sampleRate, int clipRate) throws IOException{
ArrayList<Integer> midiNums = new ArrayList<Integer>();
ArrayList<Long> durations = new ArrayList<Long>();
double[] audio = new double[16384];
int slide = 2048;
int start=slide;
AudioAnalyser aa = ... |
diff --git a/org.eclipse.jubula.rc.common/src/org/eclipse/jubula/rc/common/classloader/ImplClassClassLoader.java b/org.eclipse.jubula.rc.common/src/org/eclipse/jubula/rc/common/classloader/ImplClassClassLoader.java
index ebe444896..f3becedbe 100644
--- a/org.eclipse.jubula.rc.common/src/org/eclipse/jubula/rc/common/cla... | false | true | protected synchronized Class loadClass(String name, boolean resolve)
throws ClassNotFoundException {
Class c = null;
// in case of c is an ImplClass
if (name.startsWith(CommandConstants.SWING_IMPLCLASS_PACKAGE)
|| name.startsWith(CommandConstants.SWT_IMPLCLASSES... | protected synchronized Class loadClass(String name, boolean resolve)
throws ClassNotFoundException {
Class c = null;
// in case of c is an ImplClass
if ((name.indexOf("tester.adapter.") == -1) //$NON-NLS-1$
&& (name.startsWith(CommandConstants.SWING_IMPLCLAS... |
diff --git a/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java b/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java
index c3e3d35..b0139c8 100644
--- a/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java
+++ b/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java
@@ -1,193 +1,193 @@
/**
... | true | true | public void testNodeIndex() throws SyntaxException
{
Map<String, String> config = Collections.unmodifiableMap( MapUtil.stringMap(
"provider", "spatial" ) );
IndexManager indexMan = db.index();
Index<Node> index = indexMan.forNodes( "layer1", config );
assertNotNul... | public void testNodeIndex() throws SyntaxException
{
Map<String, String> config = Collections.unmodifiableMap( MapUtil.stringMap(
"provider", "spatial" ) );
IndexManager indexMan = db.index();
Index<Node> index = indexMan.forNodes( "layer1", config );
assertNotNul... |
diff --git a/core/src/test/java/com/github/legman/EventBusTest.java b/core/src/test/java/com/github/legman/EventBusTest.java
index f47f055..ffedd0a 100644
--- a/core/src/test/java/com/github/legman/EventBusTest.java
+++ b/core/src/test/java/com/github/legman/EventBusTest.java
@@ -1,183 +1,183 @@
/*
* Copyright (C) 2... | false | true | public void testWeakReference()
{
EventBus bus = new EventBus();
bus.register(new WeakListener());
assertEquals(1, bus.handlersByType.size());
System.gc();
assertEquals(0, bus.handlersByType.size());
bus.post("event");
assertNull(weakReferenceTest);
}
| public void testWeakReference() throws InterruptedException
{
EventBus bus = new EventBus();
bus.register(new WeakListener());
assertEquals(1, bus.handlersByType.size());
System.gc();
bus.post("event");
assertNull(weakReferenceTest);
assertEquals(0, bus.handlersByType.size());
}
|
Subsets and Splits
Megadiff Train Samples Analysis
Counts the number of changed lines in a patch file, distinguishing additions and deletions but ignoring those marked with more than two '+' or '-', providing insights into significant modifications in patches.