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/clients/java/src/test/java/com/thoughtworks/selenium/SeleneseTestCase.java b/clients/java/src/test/java/com/thoughtworks/selenium/SeleneseTestCase.java
index 27b3e154..314aff6e 100644
--- a/clients/java/src/test/java/com/thoughtworks/selenium/SeleneseTestCase.java
+++ b/clients/java/src/test/java/com/thoug... | true | true | public static boolean seleniumEquals(String s1, String s2) {
if (s2.startsWith("regexp:")) {
String tmp = s2;
s2 = s1;
s1 = tmp;
}
if (s1.startsWith("regexp:")) {
String s1regexp = s1.replaceFirst("regexp:", ".*") + ".*";
if (!s2.ma... | public static boolean seleniumEquals(String s1, String s2) {
if (s2.startsWith("regexp:")) {
String tmp = s2;
s2 = s1;
s1 = tmp;
}
if (s1.startsWith("regexp:")) {
String s1regexp = s1.replaceFirst("regexp:", ".*") + ".*";
if (!s2.ma... |
diff --git a/dexlib/src/main/java/org/jf/dexlib/Util/Utf8Utils.java b/dexlib/src/main/java/org/jf/dexlib/Util/Utf8Utils.java
index c2ccd26..0011bc5 100644
--- a/dexlib/src/main/java/org/jf/dexlib/Util/Utf8Utils.java
+++ b/dexlib/src/main/java/org/jf/dexlib/Util/Utf8Utils.java
@@ -1,260 +1,260 @@
/*
* Copyright (C) 2... | true | true | public static String utf8BytesToString(byte[] bytes, int start, int length) {
if (tempBuffer == null || tempBuffer.length < length) {
tempBuffer = new char[length];
}
char[] chars = tempBuffer;
int outAt = 0;
for (int at = start; length > 0; /*at*/) {
... | public static String utf8BytesToString(byte[] bytes, int start, int length) {
if (tempBuffer == null || tempBuffer.length < length) {
tempBuffer = new char[length];
}
char[] chars = tempBuffer;
int outAt = 0;
for (int at = start; length > 0; /*at*/) {
... |
diff --git a/nuxeo-webdav/src/main/java/org/nuxeo/ecm/webdav/resource/UnknownResource.java b/nuxeo-webdav/src/main/java/org/nuxeo/ecm/webdav/resource/UnknownResource.java
index 6a08e2d..5d288b1 100644
--- a/nuxeo-webdav/src/main/java/org/nuxeo/ecm/webdav/resource/UnknownResource.java
+++ b/nuxeo-webdav/src/main/java/or... | false | true | public Response put() throws Exception {
// Special case: ignore magic MacOS files.
// Actually, we shouldn't do this. This breaks drag'n'drop of files downloaded from the
// Internet (Finder fails with error "Unable to quarantine" in the logs).
// TODO: find a better way.
/... | public Response put() throws Exception {
// Special case: ignore magic MacOS files.
// Actually, we shouldn't do this. This breaks drag'n'drop of files downloaded from the
// Internet (Finder fails with error "Unable to quarantine" in the logs).
// TODO: find a better way.
/... |
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
index cdd12667..da6dcc8d 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
+++... | true | true | void loadTiles() {
// Reset reference tiles
mIMETile = null;
// Filter items not compatible with device
boolean bluetoothSupported = deviceSupportsBluetooth();
boolean mobileDataSupported = deviceSupportsMobileData(mContext);
if (!bluetoothSupported) {
T... | void loadTiles() {
// Reset reference tiles
mIMETile = null;
// Filter items not compatible with device
boolean bluetoothSupported = deviceSupportsBluetooth();
boolean mobileDataSupported = deviceSupportsMobileData(mContext);
if (!bluetoothSupported) {
T... |
diff --git a/src/org/dyndns/pawitp/muwifiautologin/NetworkStateChanged.java b/src/org/dyndns/pawitp/muwifiautologin/NetworkStateChanged.java
index e37d2aa..23254f1 100644
--- a/src/org/dyndns/pawitp/muwifiautologin/NetworkStateChanged.java
+++ b/src/org/dyndns/pawitp/muwifiautologin/NetworkStateChanged.java
@@ -1,45 +1... | true | true | public void onReceive(Context context, Intent intent) {
// Check preference
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
if (!prefs.getBoolean(Preferences.KEY_ENABLED, false)) {
// Disable the BroadcastReceiver so it isn't called in the future
Utils.setEnableBroadcastRe... | public void onReceive(Context context, Intent intent) {
// Check preference
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
if (!prefs.getBoolean(Preferences.KEY_ENABLED, false)) {
// Disable the BroadcastReceiver so it isn't called in the future
Utils.setEnableBroadcastRe... |
diff --git a/src/main/java/com/goodow/realtime/server/servlet/util/LocalDevServerFilter.java b/src/main/java/com/goodow/realtime/server/servlet/util/LocalDevServerFilter.java
index 9a42ec0..5f7c433 100644
--- a/src/main/java/com/goodow/realtime/server/servlet/util/LocalDevServerFilter.java
+++ b/src/main/java/com/goodo... | true | true | public void doFilter(ServletRequest req, ServletResponse resp, FilterChain filterChain)
throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) req;
if (request.getMethod() == "POST"
&& !request.getContentType().toLowerCase().startsWith(APPLICATION_JSON)) {
... | public void doFilter(ServletRequest req, ServletResponse resp, FilterChain filterChain)
throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) req;
String contentType = request.getContentType();
if (request.getMethod() == "POST" && contentType != null
&& !co... |
diff --git a/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderMountains.java b/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderMountains.java
index d969033..f0cb198 100644
--- a/src/main/java/net/nexisonline/spade/chunkproviders/ChunkProviderMountains.java
+++ b/src/main/java/net/nexisonl... | true | true | public void generateChunk(World world, int X, int Z, byte[] abyte, Biome[] biomes,
double[] temperature) {
int minHeight = Integer.MAX_VALUE;
for (int x = 0; x < 16; x+=3) {
for (int z = 0; z < 16; z+=3) {
// Generate our continental noise.
double dheight = continentNoise.getValue(
(double) ... | public void generateChunk(World world, int X, int Z, byte[] abyte, Biome[] biomes,
double[] temperature) {
int minHeight = Integer.MAX_VALUE;
for (int x = 0; x < 16; x+=3) {
for (int z = 0; z < 16; z+=3) {
// Generate our continental noise.
double dheight = continentNoise.getValue(
(double) ... |
diff --git a/src/main/java/pl/bitethebet/repository/UserAccountRepository.java b/src/main/java/pl/bitethebet/repository/UserAccountRepository.java
index 7631d6d..61f7ccf 100644
--- a/src/main/java/pl/bitethebet/repository/UserAccountRepository.java
+++ b/src/main/java/pl/bitethebet/repository/UserAccountRepository.java... | true | true | public UserAccount findByUsername(String username) {
List<UserAccount> us = (List<UserAccount>) findBySingleParamQuery(UserAccount.class, "username == " + username);
System.out.println(us.get(0).getUsername());
return us.get(0);
}
| public UserAccount findByUsername(String username) {
List<UserAccount> us = (List<UserAccount>) findBySingleParamQuery(UserAccount.class, "username == " + username);
return us.get(0);
}
|
diff --git a/common/logisticspipes/logic/LogicSupplier.java b/common/logisticspipes/logic/LogicSupplier.java
index 75c5e458..15934941 100644
--- a/common/logisticspipes/logic/LogicSupplier.java
+++ b/common/logisticspipes/logic/LogicSupplier.java
@@ -1,242 +1,242 @@
/**
* Copyright (c) Krapht, 2011
*
* "Logist... | false | true | public void throttledUpdateEntity() {
if (!((CoreRoutedPipe)this.container.pipe).isEnabled()){
return;
}
if(MainProxy.isClient(this.worldObj)) return;
if (pause) return;
super.throttledUpdateEntity();
for(int amount : _requestedItems.values()) {
if(amount > 0) {
MainProxy.sendSpawnParticle... | public void throttledUpdateEntity() {
if (!((CoreRoutedPipe)this.container.pipe).isEnabled()){
return;
}
if(MainProxy.isClient(this.worldObj)) return;
if (pause) return;
super.throttledUpdateEntity();
for(int amount : _requestedItems.values()) {
if(amount > 0) {
MainProxy.sendSpawnParticle... |
diff --git a/src/com/rapplogic/xbee/api/HardwareVersion.java b/src/com/rapplogic/xbee/api/HardwareVersion.java
index bcd947b..feedf4d 100644
--- a/src/com/rapplogic/xbee/api/HardwareVersion.java
+++ b/src/com/rapplogic/xbee/api/HardwareVersion.java
@@ -1,75 +1,75 @@
/**
* Copyright (c) 2008 Andrew Rapp. All rights r... | true | true | public static RadioType parse(AtCommandResponse response) throws XBeeException {
if (response.getCommand().equals("HV")) {
throw new IllegalArgumentException("This is only applicable to the HV command");
}
if (!response.isOk()) {
throw new XBeeException("Attempt to query HV parameter failed");
}
... | public static RadioType parse(AtCommandResponse response) throws XBeeException {
if (!response.getCommand().equals("HV")) {
throw new IllegalArgumentException("This is only applicable to the HV command");
}
if (!response.isOk()) {
throw new XBeeException("Attempt to query HV parameter failed");
}
... |
diff --git a/baixing_quanleimu/src/com/quanleimu/view/fragment/SetMainFragment.java b/baixing_quanleimu/src/com/quanleimu/view/fragment/SetMainFragment.java
index 073a009c..db877210 100644
--- a/baixing_quanleimu/src/com/quanleimu/view/fragment/SetMainFragment.java
+++ b/baixing_quanleimu/src/com/quanleimu/view/fragmen... | true | true | public void onClick(View v) {
switch (v.getId()) {
case R.id.setFlowOptimize:
showFlowOptimizeDialog();
break;
case R.id.setBindID:
if (user == null) {
Bundle bundle = createArguments(null, "用户中心");
... | public void onClick(View v) {
switch (v.getId()) {
case R.id.setFlowOptimize:
showFlowOptimizeDialog();
break;
case R.id.setBindID:
if (user == null || user.getPhone() == null || user.getPhone().equals("")) {
Bundle ... |
diff --git a/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryService.java b/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryService.java
index 95870ed2d..779eb8b5c 100644
--- a/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryService.java
+++ b/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryServ... | false | true | private void getBestExperimentsRecursive(
StatisticsQueryCondition statisticsQuery,
Map<Long, ExperimentResult> bestExperimentsSoFar) {
Set<StatisticsQueryOrConditions<StatisticsQueryCondition>> andStatisticsQueryConditions = statisticsQuery.getConditions();
if (andSta... | private void getBestExperimentsRecursive(
StatisticsQueryCondition statisticsQuery,
Map<Long, ExperimentResult> bestExperimentsSoFar) {
Set<StatisticsQueryOrConditions<StatisticsQueryCondition>> andStatisticsQueryConditions = statisticsQuery.getConditions();
if (andSta... |
diff --git a/src/cps450/CodeGenerator.java b/src/cps450/CodeGenerator.java
index c3a6874..f990705 100644
--- a/src/cps450/CodeGenerator.java
+++ b/src/cps450/CodeGenerator.java
@@ -1,571 +1,571 @@
package cps450;
import java.io.File;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
... | true | true | public void outStart(Start node) {
emit("");
emit(".text");
emit(".global main");
emit("main:");
// Instantiate globals
emitClassInstantiationExpressionFor(classTable.get("Reader"));
emit("popl _in");
emitClassInstantiationExpressionFor(classTable.get("Writer"));
emit("popl _out");
// Instant... | public void outStart(Start node) {
emit("");
emit(".text");
emit(".global main");
emit("main:");
// Instantiate globals
emitClassInstantiationExpressionFor(classTable.get("Reader"));
emit("popl _in");
emitClassInstantiationExpressionFor(classTable.get("Writer"));
emit("popl _out");
// Instant... |
diff --git a/freeplane/src/org/freeplane/features/common/attribute/AttributeBuilder.java b/freeplane/src/org/freeplane/features/common/attribute/AttributeBuilder.java
index e26cb03f1..2ebdd98f0 100644
--- a/freeplane/src/org/freeplane/features/common/attribute/AttributeBuilder.java
+++ b/freeplane/src/org/freeplane/fea... | true | true | private void registerAttributeHandlers(final ReadManager reader) {
reader.addAttributeHandler(AttributeBuilder.XML_NODE_REGISTERED_ATTRIBUTE_NAME, "NAME",
new IAttributeHandler() {
public void setAttribute(final Object userObject, final String value) {
final RegisteredAttributeProperties rap = (... | private void registerAttributeHandlers(final ReadManager reader) {
reader.addAttributeHandler(AttributeBuilder.XML_NODE_REGISTERED_ATTRIBUTE_NAME, "NAME",
new IAttributeHandler() {
public void setAttribute(final Object userObject, final String value) {
final RegisteredAttributeProperties rap = (... |
diff --git a/src/achievements/Actor.java b/src/achievements/Actor.java
index 685bcb9..ac307c5 100644
--- a/src/achievements/Actor.java
+++ b/src/achievements/Actor.java
@@ -1,29 +1,29 @@
package achievements;
import org.pircbotx.hooks.events.ActionEvent;
import database.Database;
public class Actor extends Ac... | true | true | public void onAction(ActionEvent event) {
String nick = event.getUser().getNick();
db.increaseCount(nick, getAchievementId());
if(db.getCount(nick, getAchievementId()) >= 10) {
if(!db.hasAchievement(nick, getAchievementId())) {
db.giveAchievement(nick, getAchievementId());
event.respond(getAwardString... | public void onAction(ActionEvent event) {
String nick = event.getUser().getNick();
db.increaseCount(nick, getAchievementId());
if(db.getCount(nick, getAchievementId()) >= 10) {
if(!db.hasAchievement(nick, getAchievementId())) {
db.giveAchievement(nick, getAchievementId());
event.getBot().sendMessage("... |
diff --git a/kernel/src/main/java/org/vosao/business/impl/imex/PageExporter.java b/kernel/src/main/java/org/vosao/business/impl/imex/PageExporter.java
index 05313af..b579b76 100644
--- a/kernel/src/main/java/org/vosao/business/impl/imex/PageExporter.java
+++ b/kernel/src/main/java/org/vosao/business/impl/imex/PageExpor... | false | true | private PageEntity readPageVersion(Element pageElement)
throws DaoTaskException {
String title = unpackTitle(pageElement.attributeValue("title"));
String url = pageElement.attributeValue("url");
String themeUrl = pageElement.attributeValue("theme");
String commentsEnabled = pageElement.attributeValue("comm... | private PageEntity readPageVersion(Element pageElement)
throws DaoTaskException {
String title = unpackTitle(pageElement.attributeValue("title"));
String url = pageElement.attributeValue("url");
String themeUrl = pageElement.attributeValue("theme");
String commentsEnabled = pageElement.attributeValue("comm... |
diff --git a/signserver/src/java/org/signserver/common/clusterclassloader/FindInterfacesClassLoader.java b/signserver/src/java/org/signserver/common/clusterclassloader/FindInterfacesClassLoader.java
index 8572d7531..6335e07f3 100644
--- a/signserver/src/java/org/signserver/common/clusterclassloader/FindInterfacesClassL... | true | true | public Collection<String> getImplementedInterfaces(String resourcePath){
Set<String> implInterfaces = new HashSet<String>();
Class<?> c = null;
try {
c = findClass(ClusterClassLoaderUtils.getClassNameFromResourcePath(resourcePath));
} catch (ClassNotFoundException e) {
}
if(c != null){
for(Class... | public Collection<String> getImplementedInterfaces(String resourcePath){
Set<String> implInterfaces = new HashSet<String>();
Class<?> c = null;
try {
String classNameFromResourcePath = ClusterClassLoaderUtils.getClassNameFromResourcePath(resourcePath);
if(classNameFromResourcePath != null){
c = findC... |
diff --git a/simulator/PlantPresenter.java b/simulator/PlantPresenter.java
index 7c51b52..0a600b0 100644
--- a/simulator/PlantPresenter.java
+++ b/simulator/PlantPresenter.java
@@ -1,83 +1,83 @@
package simulator;
public class PlantPresenter {
private Plant model;
public PlantPresenter(Plant model)
{
... | true | true | public void checkFailures() {
List<PlantComponent> temp;
temp = new ArrayList<PlantComponent>();
for (int i = 0; i<model.plantComponents.size(); i++)
{
if(model.plantComponents.get(i).checkFailures() = true)
temp.add(plantComponents.get(i));
}
int NUMBER_FAILED = temp.size();
if(NUMBER_FAILED... | public void checkFailures() {
List<PlantComponent> temp;
temp = new ArrayList<PlantComponent>();
for (int i = 0; i<model.plantComponents.size(); i++)
{
if(model.plantComponents.get(i).checkFailures() = true)
temp.add(plantComponents.get(i));
}
int NUMBER_FAILED = temp.size();
if(NUMBER_FAILED... |
diff --git a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/view/TouchImageView.java b/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/view/TouchImageView.java
index fb2f786..5de4cee 100644
--- a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/view/TouchImageView.java
+++ b/wordswithcrosses/... | true | true | private void sharedConstructing(Context context) {
super.setClickable(true);
mScaleDetector = ScaleGestureDetectorProxy.create(context, this);
matrix = new Matrix();
m = new float[9];
setImageMatrix(matrix);
setScaleType(ScaleType.MATRIX);
setOnTouchListener(... | private void sharedConstructing(Context context) {
super.setClickable(true);
mScaleDetector = ScaleGestureDetectorProxy.create(context, this);
matrix = new Matrix();
m = new float[9];
setImageMatrix(matrix);
setScaleType(ScaleType.MATRIX);
setOnTouchListener(... |
diff --git a/src/main/java/escada/tpc/common/PerformanceCounters.java b/src/main/java/escada/tpc/common/PerformanceCounters.java
index da90b67..aa536d7 100644
--- a/src/main/java/escada/tpc/common/PerformanceCounters.java
+++ b/src/main/java/escada/tpc/common/PerformanceCounters.java
@@ -1,139 +1,141 @@
package escada... | true | true | public synchronized double getAverageLatency() {
long current = System.currentTimeMillis();
long diff = current - lastComputationLatency;
double t = this.latencyRate;
if (diff > performanceRefreshInterval && diff > 0) {
if(this.latencyCounter > 0) {
t = ((double)this.latencyAccumulator) / ((double)t... | public synchronized double getAverageLatency() {
long current = System.currentTimeMillis();
long diff = current - lastComputationLatency;
double t = this.latencyRate;
if (diff > performanceRefreshInterval && diff > 0) {
if(this.latencyCounter > 0) {
t = ((double)this.latencyAccumulator) / ((double)t... |
diff --git a/Pigeon/trunk/src/pigeon/report/Utilities.java b/Pigeon/trunk/src/pigeon/report/Utilities.java
index 376b48a..3d6d964 100644
--- a/Pigeon/trunk/src/pigeon/report/Utilities.java
+++ b/Pigeon/trunk/src/pigeon/report/Utilities.java
@@ -1,164 +1,164 @@
/*
Copyright (C) 2005, 2006, 2007 Paul Richards.
... | true | true | public static PrintStream writeHtmlHeader(OutputStream stream, String title) throws IOException
{
PrintStream out = new PrintStream(stream, false, "UTF-8");
out.print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
out.print("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//... | public static PrintStream writeHtmlHeader(OutputStream stream, String title) throws IOException
{
PrintStream out = new PrintStream(stream, false, "UTF-8");
out.print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
out.print("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//... |
diff --git a/my-gdx-game/src/com/me/mygdxgame/Runner.java b/my-gdx-game/src/com/me/mygdxgame/Runner.java
index ffba0f1..b8af27e 100644
--- a/my-gdx-game/src/com/me/mygdxgame/Runner.java
+++ b/my-gdx-game/src/com/me/mygdxgame/Runner.java
@@ -1,187 +1,188 @@
package com.me.mygdxgame;
import com.badlogic.gdx.Gdx;
imp... | true | true | public void draw(SpriteBatch batch) {
switch (state) {
case running:
if (animationIndex > runningSprite.length - 1) {
animationIndex = 0;
}
currentSprite = runningSprite[animationIndex];
break;
case jumping:
if (animationIndex > jumpingSprite.length - 1) {
animationIndex = 0;
}
curr... | public void draw(SpriteBatch batch) {
switch (state) {
case running:
if (animationIndex > runningSprite.length - 1) {
animationIndex = 0;
}
currentSprite = runningSprite[animationIndex];
break;
case jumping:
if (animationIndex > jumpingSprite.length - 1) {
animationIndex = 0;
}
curr... |
diff --git a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/examples/CollocationWriterExample.java b/lib/src/main/java/com/github/fhirschmann/clozegen/lib/examples/CollocationWriterExample.java
index 9e15fc0..692c234 100644
--- a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/examples/CollocationWriterExa... | true | true | public static void main(String[] args) throws Exception {
Pipeline pipeline = new Pipeline();
CollectionReader cr = CollectionReaderFactory.createCollectionReader(
BrownCorpusReader.class,
BrownCorpusReader.PARAM_PATH,
DKProContext.getContext().getWor... | public static void main(String[] args) throws Exception {
Pipeline pipeline = new Pipeline();
CollectionReader cr = CollectionReaderFactory.createCollectionReader(
BrownCorpusReader.class,
BrownCorpusReader.PARAM_PATH,
DKProContext.getContext().getWor... |
diff --git a/client/src/main/java/com/google/gwt/sample/contacts/client/Contacts.java b/client/src/main/java/com/google/gwt/sample/contacts/client/Contacts.java
index 5485e80..54b4bb4 100644
--- a/client/src/main/java/com/google/gwt/sample/contacts/client/Contacts.java
+++ b/client/src/main/java/com/google/gwt/sample/c... | true | true | public void onModuleLoad()
{
final XsrfTokenServiceAsync xsrf = (XsrfTokenServiceAsync) GWT.create( XsrfTokenService.class );
//noinspection GwtSetServiceEntryPointCalls
( (ServiceDefTarget) xsrf ).setServiceEntryPoint( GWT.getHostPageBaseURL() + "xsrf" );
// Do something like the following if you a... | public void onModuleLoad()
{
final XsrfTokenServiceAsync xsrf = (XsrfTokenServiceAsync) GWT.create( XsrfTokenService.class );
//noinspection GwtSetServiceEntryPointCalls
( (ServiceDefTarget) xsrf ).setServiceEntryPoint( GWT.getHostPageBaseURL() + "xsrf" );
// Do something like the following if you a... |
diff --git a/mmstudio/src/org/micromanager/MMStudioMainFrame.java b/mmstudio/src/org/micromanager/MMStudioMainFrame.java
index d7642d655..a5f1779d0 100644
--- a/mmstudio/src/org/micromanager/MMStudioMainFrame.java
+++ b/mmstudio/src/org/micromanager/MMStudioMainFrame.java
@@ -1,4403 +1,4404 @@
////////////////////////... | true | true | public MMStudioMainFrame(boolean pluginStatus) {
super();
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread t, Throwable e) {
ReportingUtils.showError(e, "An uncaught exception was thrown in thread " + t.getName()... | public MMStudioMainFrame(boolean pluginStatus) {
super();
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread t, Throwable e) {
ReportingUtils.showError(e, "An uncaught exception was thrown in thread " + t.getName()... |
diff --git a/srcj/com/sun/electric/tool/generator/PadGenerator.java b/srcj/com/sun/electric/tool/generator/PadGenerator.java
index 91d6318f4..e0c75d14f 100755
--- a/srcj/com/sun/electric/tool/generator/PadGenerator.java
+++ b/srcj/com/sun/electric/tool/generator/PadGenerator.java
@@ -1,1194 +1,1195 @@
/* -*- tab-width... | true | true | private Cell createPadFrame(String name, View view, Job job)
{
angle = 0;
// first, try to create cell
CellName n = CellName.parseName(name);
if (n != null && (n.getView() == null || n.getView() == View.UNKNOWN))
{
// no view in cell name, append appropriately
if (view == null)
{
name = name +... | private Cell createPadFrame(String name, View view, Job job)
{
angle = 0;
// first, try to create cell
CellName n = CellName.parseName(name);
if (n != null && (n.getView() == null || n.getView() == View.UNKNOWN))
{
// no view in cell name, append appropriately
if (view == null)
{
name = name +... |
diff --git a/xslthl/src/net/sf/xslthl/highlighters/StringHighlighter.java b/xslthl/src/net/sf/xslthl/highlighters/StringHighlighter.java
index 4cb367c..0f2eba3 100644
--- a/xslthl/src/net/sf/xslthl/highlighters/StringHighlighter.java
+++ b/xslthl/src/net/sf/xslthl/highlighters/StringHighlighter.java
@@ -1,144 +1,145 @@... | true | true | public boolean highlight(CharIter in, List<Block> out) {
in.moveNext(start.length()); // skip start
boolean wasEscape = false;
while (!in.finished()) {
if (!spansNewLines && isNewLine(in.current())) {
break;
}
if (in.startsWith(end) && !wasEscape) {
if (doubleEscapes && in.startsWith(end, end.... | public boolean highlight(CharIter in, List<Block> out) {
in.moveNext(start.length()); // skip start
boolean wasEscape = false;
while (!in.finished()) {
if (!spansNewLines && isNewLine(in.current())) {
break;
}
if (in.startsWith(end) && !wasEscape) {
if (doubleEscapes && in.startsWith(end, end.... |
diff --git a/htroot/Messages_p.java b/htroot/Messages_p.java
index 9ce225507..a562c3ae6 100644
--- a/htroot/Messages_p.java
+++ b/htroot/Messages_p.java
@@ -1,135 +1,135 @@
// Messages_p.java
// -----------------------
// part of the AnomicHTTPD caching proxy
// (C) by Michael Peter Christen; mc@anomic.de
// firs... | true | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
String action = ((post == null) ? "list" : post.get("action", "list"));
String messages = "";
m... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
String action = ((post == null) ? "list" : post.get("action", "list"));
String messages = "";
m... |
diff --git a/src/graindcafe/tribu/Tribu.java b/src/graindcafe/tribu/Tribu.java
index f095375..ff3ef7f 100644
--- a/src/graindcafe/tribu/Tribu.java
+++ b/src/graindcafe/tribu/Tribu.java
@@ -1,792 +1,793 @@
package graindcafe.tribu;
import graindcafe.tribu.BlockTracer.BlockTrace;
import graindcafe.tribu.Configuratio... | true | true | public void checkAliveCount() {
// log.info("checking alive count " + aliveCount);
int alive = players.size() - deadPeople.size();
if (alive == 0 && isRunning) { //if (aliveCount == 0 && isRunning) { //if deadPeople isnt used.
deadPeople.clear();
stopRunning();
messagePlayers(language.get("Message.Zombi... | public void checkAliveCount() {
// log.info("checking alive count " + aliveCount);
int alive = players.size() - deadPeople.size();
if (alive == 0 && isRunning) { //if (aliveCount == 0 && isRunning) { //if deadPeople isnt used.
deadPeople.clear();
stopRunning();
messagePlayers(language.get("Message.Zombi... |
diff --git a/apigenerator/src/com/android/apigenerator/Main.java b/apigenerator/src/com/android/apigenerator/Main.java
index 8304f9870..5c26e14c8 100644
--- a/apigenerator/src/com/android/apigenerator/Main.java
+++ b/apigenerator/src/com/android/apigenerator/Main.java
@@ -1,166 +1,166 @@
/*
* Copyright (C) 2012 The ... | true | true | private static Map<String, ApiClass> parsePlatformApiFiles(File apiFolder) {
int apiLevel = 1;
Map<String, ApiClass> map = new HashMap<String, ApiClass>();
InputStream stream = Main.class.getResourceAsStream(
"/com/android/apichecker/generator/enums.xml");
if (strea... | private static Map<String, ApiClass> parsePlatformApiFiles(File apiFolder) {
int apiLevel = 1;
Map<String, ApiClass> map = new HashMap<String, ApiClass>();
InputStream stream = Main.class.getResourceAsStream(
"enums.xml");
if (stream != null) {
map = Enu... |
diff --git a/stock/src/com/zhangwei/stock/service/DailyStockScanService.java b/stock/src/com/zhangwei/stock/service/DailyStockScanService.java
index 8e1c7aa..3d145f3 100644
--- a/stock/src/com/zhangwei/stock/service/DailyStockScanService.java
+++ b/stock/src/com/zhangwei/stock/service/DailyStockScanService.java
@@ -1,4... | true | true | protected String doInBackground(String... params) {
// TODO Auto-generated method stub
StockList stocklist = StockListHelper.getInstance().getStockList();
String curScanStockID = null;
int errCount = 0; //连续出错计数
int retry = 0; //重试计数
//stocklist.setlastScanID("sz300355");
do{
Log... | protected String doInBackground(String... params) {
// TODO Auto-generated method stub
StockList stocklist = StockListHelper.getInstance().getStockList();
String curScanStockID = null;
int errCount = 0; //连续出错计数
int retry = 0; //重试计数
//stocklist.setlastScanID("sz300355");
do{
Log... |
diff --git a/giraph/src/main/java/org/apache/giraph/counters/GiraphTimers.java b/giraph/src/main/java/org/apache/giraph/counters/GiraphTimers.java
index 2a18987..a787b25 100644
--- a/giraph/src/main/java/org/apache/giraph/counters/GiraphTimers.java
+++ b/giraph/src/main/java/org/apache/giraph/counters/GiraphTimers.java... | true | true | public GiraphHadoopCounter getSuperstepMs(long superstep) {
GiraphHadoopCounter counter = superstepMsec.get(superstep);
if (counter == null) {
String counterPrefix;
if (superstep == -1) {
counterPrefix = "Vertex input superstep";
} else {
counterPrefix = "Superstep " + supers... | public GiraphHadoopCounter getSuperstepMs(long superstep) {
GiraphHadoopCounter counter = superstepMsec.get(superstep);
if (counter == null) {
String counterPrefix;
if (superstep == -1) {
counterPrefix = "Input superstep";
} else {
counterPrefix = "Superstep " + superstep;
... |
diff --git a/service/src/main/java/com/shopzilla/ucla/cs130/seotool/team2/service/WebService.java b/service/src/main/java/com/shopzilla/ucla/cs130/seotool/team2/service/WebService.java
index 374b196..6df7ed5 100644
--- a/service/src/main/java/com/shopzilla/ucla/cs130/seotool/team2/service/WebService.java
+++ b/service/... | true | true | public static WebPage[] service(String query, String targetsite){
//Jonathan's code here
WebPage[] pages = new WebPage[numResults + 1];
for(int i = 0; i < numResults + 1; i++){
pages[i] = new WebPage();
}
boolean done = false;
try{
String line... | public static WebPage[] service(String query, String targetsite){
//Jonathan's code here
WebPage[] pages = new WebPage[numResults + 1];
for(int i = 0; i < numResults + 1; i++){
pages[i] = new WebPage();
}
boolean done = false;
try{
String line... |
diff --git a/src/share/impl/presentation/classes/com/sun/jumpimpl/module/presentation/PresentationModuleFactoryImpl.java b/src/share/impl/presentation/classes/com/sun/jumpimpl/module/presentation/PresentationModuleFactoryImpl.java
index 4a189b1..d1716c2 100644
--- a/src/share/impl/presentation/classes/com/sun/jumpimpl/... | true | true | private JUMPPresentationModule getSimpleBasisAMS() {
synchronized(PresentationModuleFactoryImpl.class) {
if (simpleBasisAMS == null) {
simpleBasisAMS = new com.sun.jumpimpl.presentation.simplebasis.SimpleBasisAMS();
simpleBasisAMS.load(configMap);
}
... | private JUMPPresentationModule getSimpleBasisAMS() {
synchronized(PresentationModuleFactoryImpl.class) {
if (simpleBasisAMS == null) {
simpleBasisAMS = (JUMPPresentationModule)new com.sun.jumpimpl.presentation.simplebasis.SimpleBasisAMS();
simpleBasisAMS.load(conf... |
diff --git a/src/main/java/water/fvec/Frame.java b/src/main/java/water/fvec/Frame.java
index 2fa2be1a7..11ec1871c 100644
--- a/src/main/java/water/fvec/Frame.java
+++ b/src/main/java/water/fvec/Frame.java
@@ -1,753 +1,754 @@
package water.fvec;
import java.io.IOException;
import java.io.InputStream;
import java.u... | false | true | public Frame deepSlice( Object orows, Object ocols ) {
// ocols is either a long[] or a Frame-of-1-Vec
long[] cols;
if( ocols == null ) {
cols = (long[])ocols;
assert cols == null;
}
else {
if (ocols instanceof long[]) {
cols = (long[])ocols;
}
else if (ocols ... | public Frame deepSlice( Object orows, Object ocols ) {
// ocols is either a long[] or a Frame-of-1-Vec
long[] cols;
if( ocols == null ) {
cols = (long[])ocols;
assert cols == null;
}
else {
if (ocols instanceof long[]) {
cols = (long[])ocols;
}
else if (ocols ... |
diff --git a/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java b/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
index 547ad2a25..d7fcce78f 100644
--- a/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
+++ b/maven-embedder/src/main/java/org/apac... | true | true | public void start()
throws MavenEmbedderException
{
detectUserInstallation();
// ----------------------------------------------------------------------
// Set the maven.home system property which is need by components like
// the plugin registry builder.
// -----... | public void start()
throws MavenEmbedderException
{
detectUserInstallation();
// ----------------------------------------------------------------------
// Set the maven.home system property which is need by components like
// the plugin registry builder.
// -----... |
diff --git a/reflens-core/src/main/java/org/grouplens/reflens/baseline/ItemMeanPredictor.java b/reflens-core/src/main/java/org/grouplens/reflens/baseline/ItemMeanPredictor.java
index 8db2d21f5..f59bee8be 100644
--- a/reflens-core/src/main/java/org/grouplens/reflens/baseline/ItemMeanPredictor.java
+++ b/reflens-core/src... | true | true | public RatingPredictor build(RatingDataSource data) {
// We iterate the loop to compute the global and per-item mean
// ratings. Subtracting the global mean from each per-item mean
// is equivalent to averaging the offsets from the global mean, so
// we can compute the means in parallel and subtract afte... | public RatingPredictor build(RatingDataSource data) {
// We iterate the loop to compute the global and per-item mean
// ratings. Subtracting the global mean from each per-item mean
// is equivalent to averaging the offsets from the global mean, so
// we can compute the means in parallel and subtract afte... |
diff --git a/drools-core/src/main/java/org/drools/command/runtime/rule/GetFactHandleCommand.java b/drools-core/src/main/java/org/drools/command/runtime/rule/GetFactHandleCommand.java
index 867e2f471a..370df68748 100644
--- a/drools-core/src/main/java/org/drools/command/runtime/rule/GetFactHandleCommand.java
+++ b/drool... | false | true | public FactHandle execute(Context context) {
StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
InternalFactHandle factHandle = (InternalFactHandle) ksession.getFactHandle( object );
if ( factHandle != null && disconnected){
Int... | public FactHandle execute(Context context) {
StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
InternalFactHandle factHandle = (InternalFactHandle) ksession.getFactHandle( object );
if ( factHandle != null ){
InternalFactHandle... |
diff --git a/javafx.refactoring/src/org/netbeans/modules/javafx/refactoring/impl/WhereUsedElement.java b/javafx.refactoring/src/org/netbeans/modules/javafx/refactoring/impl/WhereUsedElement.java
index 7ccd80ca..825717df 100644
--- a/javafx.refactoring/src/org/netbeans/modules/javafx/refactoring/impl/WhereUsedElement.ja... | true | true | private void init() throws IOException {
DataObject dobj = DataObject.find(handle.getFileObject());
des = (DataEditorSupport)dobj.getCookie(EditorCookie.class);
doc = (GuardedDocument)des.getDocument();
if (doc == null) {
doc = (GuardedDocument)des.openDocument();
... | private void init() throws IOException {
DataObject dobj = DataObject.find(handle.getFileObject());
des = (DataEditorSupport)dobj.getCookie(EditorCookie.class);
doc = (GuardedDocument)des.getDocument();
if (doc == null) {
doc = (GuardedDocument)des.openDocument();
... |
diff --git a/src/server/database/BatchDB.java b/src/server/database/BatchDB.java
index 4942d1b..46ddc48 100644
--- a/src/server/database/BatchDB.java
+++ b/src/server/database/BatchDB.java
@@ -1,133 +1,133 @@
/**
*
*/
package server.database;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
imp... | true | true | public Batch getBatch(int id) {
PreparedStatement stmt = null;
ResultSet rs = null;
Batch batch = null;
try {
String sql = "SELECT * FROM vm_batch WHERE id = ?";
stmt = db.getConnection().prepareStatement(sql);
stmt.setInt(1, id);
rs = stmt.executeQuery();
while(rs.next()) {
int bid = rs.get... | public Batch getBatch(int id) {
PreparedStatement stmt = null;
ResultSet rs = null;
Batch batch = null;
try {
String sql = "SELECT * FROM vm_batch WHERE id = ?";
stmt = db.getConnection().prepareStatement(sql);
stmt.setInt(1, id);
rs = stmt.executeQuery();
while(rs.next()) {
int bid = rs.get... |
diff --git a/src/main/java/ca/q0r/mchat/variables/VariableManager.java b/src/main/java/ca/q0r/mchat/variables/VariableManager.java
index 27050aa..0f8ec4c 100644
--- a/src/main/java/ca/q0r/mchat/variables/VariableManager.java
+++ b/src/main/java/ca/q0r/mchat/variables/VariableManager.java
@@ -1,251 +1,251 @@
package ca... | true | true | public static String replaceVars(String format, Player player, String msg, Boolean doColour) {
NavigableMap<String, Object> fVarMap = new TreeMap<String, Object>();
NavigableMap<String, Object> nVarMap = new TreeMap<String, Object>();
NavigableMap<String, Object> lVarMap = new TreeMap<String... | public static String replaceVars(String format, Player player, String msg, Boolean doColour) {
NavigableMap<String, Object> fVarMap = new TreeMap<String, Object>();
NavigableMap<String, Object> nVarMap = new TreeMap<String, Object>();
NavigableMap<String, Object> lVarMap = new TreeMap<String... |
diff --git a/wicket-contrib-dojo/src/main/java/wicket/contrib/markup/html/form/validation/FXTooltipFeedbackPanel.java b/wicket-contrib-dojo/src/main/java/wicket/contrib/markup/html/form/validation/FXTooltipFeedbackPanel.java
index 48a2095d5..3e39d6243 100644
--- a/wicket-contrib-dojo/src/main/java/wicket/contrib/markup... | true | true | protected void populateItem(final ListItem<FeedbackMessage> listItem)
{
final FeedbackMessage message = listItem.getModelObject();
final IModel replacementModel = new Model()
{
private static final long serialVersionUID = 1L;
/**
* Returns feedbackPanel + the message level, eg
* 'feedbac... | protected void populateItem(final ListItem<FeedbackMessage> listItem)
{
final FeedbackMessage message = listItem.getModelObject();
final IModel replacementModel = new Model()
{
private static final long serialVersionUID = 1L;
/**
* Returns feedbackPanel + the message level, eg
* 'feedbac... |
diff --git a/Server/src/main/java/jk_5/nailed/server/command/CommandSudo.java b/Server/src/main/java/jk_5/nailed/server/command/CommandSudo.java
index 8fa6f3e..b60a985 100644
--- a/Server/src/main/java/jk_5/nailed/server/command/CommandSudo.java
+++ b/Server/src/main/java/jk_5/nailed/server/command/CommandSudo.java
@@ ... | false | true | public void processCommandWithMap(ICommandSender sender, Map map, String[] args){
args[0] = null;
String cmd = Joiner.on(" ").skipNulls().join(args);
Player player = PlayerRegistry.instance().getPlayerByUsername(args[0]);
if (player != null){
FMLCommonHandler.instance().g... | public void processCommandWithMap(ICommandSender sender, Map map, String[] args){
Player player = PlayerRegistry.instance().getPlayerByUsername(args[0]);
args[0] = null;
String cmd = Joiner.on(" ").skipNulls().join(args);
if (player != null){
FMLCommonHandler.instance().g... |
diff --git a/src/org/ruhlendavis/mc/communitybridge/WebApplication.java b/src/org/ruhlendavis/mc/communitybridge/WebApplication.java
index 102563e..64ddec9 100644
--- a/src/org/ruhlendavis/mc/communitybridge/WebApplication.java
+++ b/src/org/ruhlendavis/mc/communitybridge/WebApplication.java
@@ -1,1322 +1,1322 @@
pack... | true | true | private void synchronizeGroups(Player player)
{
String playerName = player.getName();
String direction = config.simpleSynchronizationDirection;
String userID = getUserID(playerName);
if (userID.equalsIgnoreCase(config.simpleSynchronizationSuperUserID))
{
direction = "web";
}
File playerFol... | private void synchronizeGroups(Player player)
{
String playerName = player.getName();
String direction = config.simpleSynchronizationDirection;
String userID = getUserID(playerName);
if (userID.equalsIgnoreCase(config.simpleSynchronizationSuperUserID))
{
direction = "web";
}
File playerFol... |
diff --git a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
index f5b2ce295c..0206f018e3 100644
--- a/apis/filesystem/src/main/java/org/jclouds/filesyste... | true | true | public String putBlob(final String containerName, final Blob blob) throws IOException {
String blobKey = blob.getMetadata().getName();
Payload payload = blob.getPayload();
filesystemContainerNameValidator.validate(containerName);
filesystemBlobKeyValidator.validate(blobKey);
File output... | public String putBlob(final String containerName, final Blob blob) throws IOException {
String blobKey = blob.getMetadata().getName();
Payload payload = blob.getPayload();
filesystemContainerNameValidator.validate(containerName);
filesystemBlobKeyValidator.validate(blobKey);
File output... |
diff --git a/Source/com/drew/lang/RandomAccessStreamReader.java b/Source/com/drew/lang/RandomAccessStreamReader.java
index 92c18cb..c29c20c 100644
--- a/Source/com/drew/lang/RandomAccessStreamReader.java
+++ b/Source/com/drew/lang/RandomAccessStreamReader.java
@@ -1,199 +1,200 @@
/*
* Copyright 2002-2012 Drew Noakes... | true | true | protected boolean isValidIndex(int index, int bytesRequested) throws BufferBoundsException
{
if (index < 0 || bytesRequested < 0) {
return false;
}
long endIndexLong = (long)index + bytesRequested - 1;
if (endIndexLong > Integer.MAX_VALUE) {
return false... | protected boolean isValidIndex(int index, int bytesRequested) throws BufferBoundsException
{
if (index < 0 || bytesRequested < 0) {
return false;
}
long endIndexLong = (long)index + bytesRequested - 1;
if (endIndexLong > Integer.MAX_VALUE) {
return false... |
diff --git a/PuzzleApplet.java b/PuzzleApplet.java
index 23eda81b..f401ecf6 100644
--- a/PuzzleApplet.java
+++ b/PuzzleApplet.java
@@ -1,614 +1,612 @@
/*
* PuzzleApplet.java: NestedVM applet for the puzzle collection
*/
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import jav... | true | true | public int call(int cmd, int arg1, int arg2, int arg3) {
try {
switch(cmd) {
case 0: // initialize
if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1));
if ((arg2 & 1) != 0) buildConfigureMenuItem();
if ((arg2 & 2) != 0) a... | public int call(int cmd, int arg1, int arg2, int arg3) {
try {
switch(cmd) {
case 0: // initialize
if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1));
if ((arg2 & 1) != 0) buildConfigureMenuItem();
if ((arg2 & 2) != 0) a... |
diff --git a/src/net/java/sip/communicator/plugin/statusupdate/StatusUpdateThread.java b/src/net/java/sip/communicator/plugin/statusupdate/StatusUpdateThread.java
index ef1a3df89..96777a060 100644
--- a/src/net/java/sip/communicator/plugin/statusupdate/StatusUpdateThread.java
+++ b/src/net/java/sip/communicator/plugin/... | false | true | public void run()
{
run = true;
int timer = 0;
do
{
try
{
if (MouseInfo.getPointerInfo() != null)
{
Point currentPosition = MouseInfo.getPointerInfo()
.getLocation();
... | public void run()
{
run = true;
int timer = 0;
do
{
try
{
if (MouseInfo.getPointerInfo() != null)
{
Point currentPosition = MouseInfo.getPointerInfo()
.getLocation();
... |
diff --git a/JMPDComm/src/org/a0z/mpd/MPDStatus.java b/JMPDComm/src/org/a0z/mpd/MPDStatus.java
index 979aef86..864d1796 100644
--- a/JMPDComm/src/org/a0z/mpd/MPDStatus.java
+++ b/JMPDComm/src/org/a0z/mpd/MPDStatus.java
@@ -1,340 +1,341 @@
package org.a0z.mpd;
import java.util.List;
/**
* Class representing MPD... | true | true | public void updateStatus(List<String> response) {
// reset values
this.updating = false;
// read new values
try {
for (String line : response) {
if (line.startsWith("volume:")) {
this.volume = Integer.parseInt(line.substring("volume: ".length()));
} else if (line.startsWith("bitrate:")) {
... | public void updateStatus(List<String> response) {
// reset values
this.updating = false;
// read new values
try {
for (String line : response) {
if (line.startsWith("volume:")) {
this.volume = Integer.parseInt(line.substring("volume: ".length()));
} else if (line.startsWith("bitrate:")) {
... |
diff --git a/src/java/com/eviware/soapui/impl/wsdl/WsdlProject.java b/src/java/com/eviware/soapui/impl/wsdl/WsdlProject.java
index b4f023b2a..89c5c2ecc 100644
--- a/src/java/com/eviware/soapui/impl/wsdl/WsdlProject.java
+++ b/src/java/com/eviware/soapui/impl/wsdl/WsdlProject.java
@@ -1,1910 +1,1909 @@
/*
* soapUI, ... | true | true | public boolean saveIn(File projectFile) throws IOException
{
long size = 0;
beforeSave();
// work with copy beacuse we do not want to change working project while
// working with it
// if user choose save project, save all etc.
SoapuiProjectDocumentConfig projectDocument = (SoapuiProjectDocumentConfig) t... | public boolean saveIn(File projectFile) throws IOException
{
long size = 0;
beforeSave();
// work with copy beacuse we do not want to change working project while
// working with it
// if user choose save project, save all etc.
SoapuiProjectDocumentConfig projectDocument = (SoapuiProjectDocumentConfig) t... |
diff --git a/AngularJS/src/org/angularjs/codeInsight/AngularJSProcessor.java b/AngularJS/src/org/angularjs/codeInsight/AngularJSProcessor.java
index 494b09278d..5d35633f1d 100644
--- a/AngularJS/src/org/angularjs/codeInsight/AngularJSProcessor.java
+++ b/AngularJS/src/org/angularjs/codeInsight/AngularJSProcessor.java
@... | true | true | public static void process(final PsiElement element, final Consumer<JSNamedElement> consumer) {
final PsiFile hostFile = FileContextUtil.getContextFile(element);
if (hostFile == null) return;
final XmlFile file = (XmlFile)hostFile;
final JSResolveUtil.JSInjectedFilesVisitor visitor = new JSResolveUti... | public static void process(final PsiElement element, final Consumer<JSNamedElement> consumer) {
final PsiFile hostFile = FileContextUtil.getContextFile(element.getContainingFile().getOriginalFile());
if (hostFile == null) return;
final XmlFile file = (XmlFile)hostFile;
final JSResolveUtil.JSInjectedF... |
diff --git a/src/main/java/org/multibit/action/OpenWalletSubmitAction.java b/src/main/java/org/multibit/action/OpenWalletSubmitAction.java
index 3a53d2f2..129e033f 100644
--- a/src/main/java/org/multibit/action/OpenWalletSubmitAction.java
+++ b/src/main/java/org/multibit/action/OpenWalletSubmitAction.java
@@ -1,67 +1,7... | true | true | public void execute(DataProvider dataProvider) {
// get the file name from the data provider and see if it has changed
if (dataProvider != null) {
Data data = dataProvider.getData();
if (data != null) {
Item item = data.getItem(MultiBitModel.ACTIVE_WALLET_FIL... | public void execute(DataProvider dataProvider) {
// get the file name from the data provider and see if it has changed
if (dataProvider != null) {
Data data = dataProvider.getData();
if (data != null) {
Item item = data.getItem(MultiBitModel.ACTIVE_WALLET_FIL... |
diff --git a/src/org/zaproxy/zap/extension/saml/ui/AddNewAttributeDialog.java b/src/org/zaproxy/zap/extension/saml/ui/AddNewAttributeDialog.java
index 6e86089..f6adabe 100644
--- a/src/org/zaproxy/zap/extension/saml/ui/AddNewAttributeDialog.java
+++ b/src/org/zaproxy/zap/extension/saml/ui/AddNewAttributeDialog.java
@@ ... | false | true | public AddNewAttributeDialog(final DesiredAttributeChangeListener listener) {
setTitle("Add New Attribute");
setBounds(100, 100, 450, 300);
getContentPane().setLayout(new BorderLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
con... | public AddNewAttributeDialog(final DesiredAttributeChangeListener listener) {
setTitle("Add New Attribute");
setBounds(100, 100, 450, 300);
getContentPane().setLayout(new BorderLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
con... |
diff --git a/bombermen2/bombermen-server/src/pt/up/fe/pt/lpoo/bombermen/BombermenServer.java b/bombermen2/bombermen-server/src/pt/up/fe/pt/lpoo/bombermen/BombermenServer.java
index 3e349b7..8d20e23 100644
--- a/bombermen2/bombermen-server/src/pt/up/fe/pt/lpoo/bombermen/BombermenServer.java
+++ b/bombermen2/bombermen-se... | true | true | public BombermenServer(int port) throws IOException
{
_socket = new ServerSocket(port);
System.out.println("Server created - " + InetAddress.getLocalHost().getHostAddress() + ":" + _socket.getLocalPort());
_messageHandler = new MessageHandler()
{
@Override
... | public BombermenServer(int port) throws IOException
{
_socket = new ServerSocket(port);
System.out.println("Server created - " + InetAddress.getLocalHost().getHostAddress() + ":" + _socket.getLocalPort());
_messageHandler = new MessageHandler()
{
@Override
... |
diff --git a/FatTnt/src/me/asofold/bukkit/fattnt/effects/ExplosionManager.java b/FatTnt/src/me/asofold/bukkit/fattnt/effects/ExplosionManager.java
index abec76b..ed9e1a9 100644
--- a/FatTnt/src/me/asofold/bukkit/fattnt/effects/ExplosionManager.java
+++ b/FatTnt/src/me/asofold/bukkit/fattnt/effects/ExplosionManager.java... | true | true | public static void applyEntityEffects(World world, double x, double y, double z, float realRadius, List<Entity> nearbyEntities, float damageMultiplier, Settings settings, Propagation propagation, FatExplosionSpecs specs) {
if ( realRadius > settings.maxRadius){
// TODO: settings ?
realRadius = settings.maxRadi... | public static void applyEntityEffects(World world, double x, double y, double z, float realRadius, List<Entity> nearbyEntities, float damageMultiplier, Settings settings, Propagation propagation, FatExplosionSpecs specs) {
if ( realRadius > settings.maxRadius){
// TODO: settings ?
realRadius = settings.maxRadi... |
diff --git a/src/org/intellij/erlang/formatter/ErlangFormattingModelBuilder.java b/src/org/intellij/erlang/formatter/ErlangFormattingModelBuilder.java
index e24cc2e4..67fe3b9e 100644
--- a/src/org/intellij/erlang/formatter/ErlangFormattingModelBuilder.java
+++ b/src/org/intellij/erlang/formatter/ErlangFormattingModelBu... | true | true | private static SpacingBuilder createSpacingBuilder(CommonCodeStyleSettings settings) {
TokenSet rules = TokenSet.create(ERL_RULE, ERL_RECORD_DEFINITION, ERL_INCLUDE, ERL_MACROS_DEFINITION, ERL_ATTRIBUTE);
return new SpacingBuilder(settings.getRootSettings())
.before(ERL_COMMA).spaceIf(settings.SPACE_BE... | private static SpacingBuilder createSpacingBuilder(CommonCodeStyleSettings settings) {
TokenSet rules = TokenSet.create(ERL_RULE, ERL_RECORD_DEFINITION, ERL_INCLUDE, ERL_MACROS_DEFINITION, ERL_ATTRIBUTE);
return new SpacingBuilder(settings.getRootSettings())
.before(ERL_COMMA).spaceIf(settings.SPACE_BE... |
diff --git a/util-api/api/src/java/org/sakaiproject/javax/SearchFilter.java b/util-api/api/src/java/org/sakaiproject/javax/SearchFilter.java
index e410fe9..2664427 100644
--- a/util-api/api/src/java/org/sakaiproject/javax/SearchFilter.java
+++ b/util-api/api/src/java/org/sakaiproject/javax/SearchFilter.java
@@ -1,46 +1... | true | true | boolean getSearchString();
| String getSearchString();
|
diff --git a/src/web/org/openmrs/web/controller/OptionsFormController.java b/src/web/org/openmrs/web/controller/OptionsFormController.java
index 6e12a6a8..9b27ce55 100644
--- a/src/web/org/openmrs/web/controller/OptionsFormController.java
+++ b/src/web/org/openmrs/web/controller/OptionsFormController.java
@@ -1,302 +1,... | true | true | protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj,
BindException errors) throws Exception {
HttpSession httpSession = request.getSession();
String view = getFormView();
if (!errors.hasErrors()) {
User loginUser = Cont... | protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj,
BindException errors) throws Exception {
HttpSession httpSession = request.getSession();
String view = getFormView();
if (!errors.hasErrors()) {
User loginUser = Cont... |
diff --git a/src/test/java/rzhdpack/OpenRzd.java b/src/test/java/rzhdpack/OpenRzd.java
index 86ba246..65ad4a9 100644
--- a/src/test/java/rzhdpack/OpenRzd.java
+++ b/src/test/java/rzhdpack/OpenRzd.java
@@ -1,33 +1,33 @@
package rzhdpack;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.sel... | true | true | public void openRzdRuAndVerifyItIsOpened() throws InterruptedException {
driver.get("http://rzd.ru/");
List<WebElement> rzdLink = driver.findElements(By.xpath(
"//a[@href='http://rzd.ru']"));
assertEquals("Link wasn't found", 0, rzdLink.size());
}
| public void openRzdRuAndVerifyItIsOpened() throws InterruptedException {
driver.get("http://rzd.ru/");
List<WebElement> rzdLink = driver.findElements(By.xpath(
"//a[@href='http://rzd.ru']"));
assertEquals("Link wasn't found", 1, rzdLink.size());
}
|
diff --git a/genetica-libraries/src/main/java/umcg/genetica/graphics/ViolinBoxPlot.java b/genetica-libraries/src/main/java/umcg/genetica/graphics/ViolinBoxPlot.java
index 09aef037..12c40390 100644
--- a/genetica-libraries/src/main/java/umcg/genetica/graphics/ViolinBoxPlot.java
+++ b/genetica-libraries/src/main/java/umc... | true | true | public void draw(double[][][] vals, String[] datasetNames, String[][] xLabels2, Output output, String outputFileName) throws IOException {
Locale defaultLocale = Locale.getDefault();
Locale.setDefault(Locale.US);
// set up Graphics2D depending on required format using iText in case PDF
... | public void draw(double[][][] vals, String[] datasetNames, String[][] xLabels2, Output output, String outputFileName) throws IOException {
Locale defaultLocale = Locale.getDefault();
Locale.setDefault(Locale.US);
// set up Graphics2D depending on required format using iText in case PDF
... |
diff --git a/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/model/SimpleBee.java b/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/model/SimpleBee.java
index aaad87f..e0bd41c 100644
--- a/simbeeotic-core/src/main/java/harvard/robobees/simbeeotic/model/SimpleBee.java
+++ b/simbeeotic-core/src/main/j... | true | true | public void initialize() {
super.initialize();
// get the weather model, if one exists
final WeatherModel weather = getSimEngine().findModelByType(WeatherModel.class);
// setup a timer that handles the details of using the simple flight abstraction
if (kinematicUpdateRate ... | public void initialize() {
super.initialize();
// get the weather model, if one exists
final WeatherModel weather = getSimEngine().findModelByType(WeatherModel.class);
// setup a timer that handles the details of using the simple flight abstraction
if (kinematicUpdateRate ... |
diff --git a/src/main/java/org/jenkinsci/plugins/vsphere/tools/VSphere.java b/src/main/java/org/jenkinsci/plugins/vsphere/tools/VSphere.java
index 2ba65cf..4aeb046 100644
--- a/src/main/java/org/jenkinsci/plugins/vsphere/tools/VSphere.java
+++ b/src/main/java/org/jenkinsci/plugins/vsphere/tools/VSphere.java
@@ -1,621 +... | true | true | public void cloneVm(String cloneName, String sourceName, boolean linkedClone, String resourcePool, String cluster, String datastoreName) throws VSphereException {
System.out.println("Creating a shallow clone of \""+ sourceName + "\" to \""+cloneName+"\"");
try{
VirtualMachine sourceVm = getVmByName(sourceName)... | public void cloneVm(String cloneName, String sourceName, boolean linkedClone, String resourcePool, String cluster, String datastoreName) throws VSphereException {
System.out.println("Creating a shallow clone of \""+ sourceName + "\" to \""+cloneName+"\"");
try{
VirtualMachine sourceVm = getVmByName(sourceName)... |
diff --git a/src/radlab/rain/Generator.java b/src/radlab/rain/Generator.java
index e974518..aaf1899 100644
--- a/src/radlab/rain/Generator.java
+++ b/src/radlab/rain/Generator.java
@@ -1,96 +1,96 @@
/*
* Copyright (c) 2010, Regents of the University of California
* All rights reserved.
*
* Redistribution and ... | true | true | public Generator( ScenarioTrack track )
{
this._loadTrack = track;
this.initialize();
}
| public Generator( ScenarioTrack track )
{
this._loadTrack = track;
//this.initialize(); // let the Benchmark call initialize
}
|
diff --git a/alchemy-core/src/alchemy/libs/LibCore4.java b/alchemy-core/src/alchemy/libs/LibCore4.java
index db33d7e..5a6e440 100644
--- a/alchemy-core/src/alchemy/libs/LibCore4.java
+++ b/alchemy-core/src/alchemy/libs/LibCore4.java
@@ -1,791 +1,795 @@
/*
* This file is a part of Alchemy OS project.
* Copyright (... | false | true | protected Object invokeNative(int index, Process p, Object[] args) throws Exception {
switch (index) {
/* == Header: builtin.eh == */
case 0: // acopy(src: Array, sofs: Int, dest: Array, dofs: Int, len: Int)
Arrays.arrayCopy(args[0], ival(args[1]), args[2], ival(args[3]), ival(args[4]));
return null;
... | protected Object invokeNative(int index, Process p, Object[] args) throws Exception {
switch (index) {
/* == Header: builtin.eh == */
case 0: // acopy(src: Array, sofs: Int, dest: Array, dofs: Int, len: Int)
Arrays.arrayCopy(args[0], ival(args[1]), args[2], ival(args[3]), ival(args[4]));
return null;
... |
diff --git a/CardTactics/src/com/kongentertainment/android/cardtactics/view/CreatureYardView.java b/CardTactics/src/com/kongentertainment/android/cardtactics/view/CreatureYardView.java
index 548db8f..3518c67 100644
--- a/CardTactics/src/com/kongentertainment/android/cardtactics/view/CreatureYardView.java
+++ b/CardTact... | true | true | public void draw(Canvas canvas) {
int x = mCreatureYard.getWidth();
int y = mCreatureYard.getHeight();
//For each position
for (int i=0; i < x; i++) {
for (int j=0; j < y; j++) {
//if occupied
if (!mCreatureYard.isEmpty(x, y)) {
... | public void draw(Canvas canvas) {
int x = mCreatureYard.getWidth();
int y = mCreatureYard.getHeight();
//For each position
for (int i=0; i < x; i++) {
for (int j=0; j < y; j++) {
//if occupied
if (!mCreatureYard.isEmpty(i, j)) {
... |
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/Util.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/Util.java
index caa82113..271cade2 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/Util.java
+++ b/bundle... | true | true | public static final String getDefaultElementId(Resource resource, MApplicationElement element, IProject project) {
try {
EObject o = (EObject) element;
String className = o.eClass().getName();
String projectName = project.getName();
String prefix = projectName + "." + className; //$NON-NLS-1$
TreeIt... | public static final String getDefaultElementId(Resource resource, MApplicationElement element, IProject project) {
try {
EObject o = (EObject) element;
String className = o.eClass().getName();
String projectName = project.getName();
String prefix = projectName + "." + className; //$NON-NLS-1$
TreeIt... |
diff --git a/mediators/src/main/java/org/sciflex/plugins/synapse/esper/mediators/AxiomMediator.java b/mediators/src/main/java/org/sciflex/plugins/synapse/esper/mediators/AxiomMediator.java
index 78a0156..4b2efc2 100644
--- a/mediators/src/main/java/org/sciflex/plugins/synapse/esper/mediators/AxiomMediator.java
+++ b/me... | true | true | public boolean mediate(MessageContext mc) {
if (activityMonitor != null && !activityMonitor.getIsMediatorActive()) {
log.warn("Cannot mediate. Mediator is inactive");
return true;
}
long activityStamp = System.currentTimeMillis();
log.trace("Beginning Mediatio... | public boolean mediate(MessageContext mc) {
if (activityMonitor != null && !activityMonitor.getIsMediatorActive()) {
log.warn("Cannot mediate. Mediator is inactive");
return false;
}
long activityStamp = System.currentTimeMillis();
log.trace("Beginning Mediati... |
diff --git a/src/main/java/edu/uoc/pelp/actions/HomeAction.java b/src/main/java/edu/uoc/pelp/actions/HomeAction.java
index cf856bb..5ef7a4c 100644
--- a/src/main/java/edu/uoc/pelp/actions/HomeAction.java
+++ b/src/main/java/edu/uoc/pelp/actions/HomeAction.java
@@ -1,532 +1,552 @@
package edu.uoc.pelp.actions;
impor... | false | true | public String execute() throws Exception {
//UOC API
HttpServletRequest request = ServletActionContext.getRequest();
String token = (String) request.getSession().getAttribute("access_token");
if( token != null) {
WebApplicationContext context =
WebApplicationContextUti... | public String execute() throws Exception {
//UOC API
HttpServletRequest request = ServletActionContext.getRequest();
String token = (String) request.getSession().getAttribute("access_token");
if( token != null) {
WebApplicationContext context =
WebApplicationContextUti... |
diff --git a/core/src/java/liquibase/database/sql/DropIndexStatement.java b/core/src/java/liquibase/database/sql/DropIndexStatement.java
index e68d10cd..03b9ed0f 100644
--- a/core/src/java/liquibase/database/sql/DropIndexStatement.java
+++ b/core/src/java/liquibase/database/sql/DropIndexStatement.java
@@ -1,55 +1,61 @@... | false | true | public String getSqlStatement(Database database) throws StatementNotSupportedOnDatabaseException {
if (getTableSchemaName() != null && !database.supportsSchemas()) {
throw new StatementNotSupportedOnDatabaseException("Database does not support schemas", this, database);
}
if (dat... | public String getSqlStatement(Database database) throws StatementNotSupportedOnDatabaseException {
if (getTableSchemaName() != null && !database.supportsSchemas()) {
throw new StatementNotSupportedOnDatabaseException("Database does not support schemas", this, database);
}
if (dat... |
diff --git a/src/org/rubyforge/debugcommons/ReadersSupport.java b/src/org/rubyforge/debugcommons/ReadersSupport.java
index a8048b2..211c0cc 100644
--- a/src/org/rubyforge/debugcommons/ReadersSupport.java
+++ b/src/org/rubyforge/debugcommons/ReadersSupport.java
@@ -1,238 +1,240 @@
package org.rubyforge.debugcommons;
... | true | true | private void processElement(final XmlPullParser xpp) throws IOException, XmlPullParserException {
String element = xpp.getName();
if (BREAKPOINT_ADDED_ELEMENT.equals(element)) {
addedBreakpoints.add(BreakpointAddedReader.readBreakpointNo(xpp));
} else if (BREAKPOINT_DELETED_ELEME... | private void processElement(final XmlPullParser xpp) throws IOException, XmlPullParserException {
String element = xpp.getName();
if (BREAKPOINT_ADDED_ELEMENT.equals(element)) {
addedBreakpoints.add(BreakpointAddedReader.readBreakpointNo(xpp));
} else if (BREAKPOINT_DELETED_ELEME... |
diff --git a/com.vainolo.phd.opm.interpreter/src/com/vainolo/phd/opm/interpreter/OPMProcessInstanceFactoryImpl.java b/com.vainolo.phd.opm.interpreter/src/com/vainolo/phd/opm/interpreter/OPMProcessInstanceFactoryImpl.java
index 4f777a7..b9e2ff1 100644
--- a/com.vainolo.phd.opm.interpreter/src/com/vainolo/phd/opm/interpr... | true | true | public OPMProcessInstance createProcessInstance(final String processName, final OPMProcessKind kind) {
// Create process instance.
OPMProcessInstance processInstance;
switch(kind) {
case BUILT_IN:
processInstance = createBuildInProcess(processName);
break;
case COMPOUND:
... | public OPMProcessInstance createProcessInstance(final String processName, final OPMProcessKind kind) {
OPMProcessInstance processInstance;
switch(kind) {
case BUILT_IN:
processInstance = createBuildInProcess(processName);
break;
case COMPOUND:
processInstance = new OPMCompo... |
diff --git a/contrib/src/java/org/apache/tapestry/contrib/form/CheckBoxMultiplePropertySelectionRenderer.java b/contrib/src/java/org/apache/tapestry/contrib/form/CheckBoxMultiplePropertySelectionRenderer.java
index b56184bb1..a9dc586b6 100644
--- a/contrib/src/java/org/apache/tapestry/contrib/form/CheckBoxMultiplePrope... | false | true | public void renderOption(
MultiplePropertySelection component,
IMarkupWriter writer,
IRequestCycle cycle,
IPropertySelectionModel model,
Object option,
int index,
boolean selected)
{
writer.begin("tr");
writer.begin("td");
writer.b... | public void renderOption(
MultiplePropertySelection component,
IMarkupWriter writer,
IRequestCycle cycle,
IPropertySelectionModel model,
Object option,
int index,
boolean selected)
{
writer.begin("tr");
writer.begin("td");
writer.b... |
diff --git a/homework13/Test.java b/homework13/Test.java
index f99eb74..6ff7369 100644
--- a/homework13/Test.java
+++ b/homework13/Test.java
@@ -1,25 +1,25 @@
public class Test
{
public static void main( String[] args )
{
Shape[] shapes = new Shape[4];
shapes[0] = new Circle( 22, 88, "Circ... | false | true | public static void main( String[] args )
{
Shape[] shapes = new Shape[4];
shapes[0] = new Circle( 22, 88, "Circle", 4 );
shapes[1] = new Square( 71, 96, "Square", 10 );
shapes[2] = new Sphere( 8, 89, "Sphere", 2 );
shapes[3] = new Cube( 79, 61, "Cube", 8 );
for (... | public static void main( String[] args )
{
Shape[] shapes = new Shape[4];
shapes[0] = new Circle( 22, 88, "Circle", 4 );
shapes[1] = new Square( 71, 96, "Square", 10 );
shapes[2] = new Sphere( 8, 89, "Sphere", 2 );
shapes[3] = new Cube( 79, 61, "Cube", 8 );
for (... |
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/group/MessageGroupHashBucketTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/region/group/MessageGroupHashBucketTest.java
index 66520c919..fc35be6d2 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq... | true | true | protected MessageGroupMap createMessageGroupMap() {
return new MessageGroupHashBucket(1024);
}
| protected MessageGroupMap createMessageGroupMap() {
return new MessageGroupHashBucket(1024, 64);
}
|
diff --git a/components/ome-io/src/loci/ome/io/OmeroReader.java b/components/ome-io/src/loci/ome/io/OmeroReader.java
index c71b9eea2..e4c653700 100644
--- a/components/ome-io/src/loci/ome/io/OmeroReader.java
+++ b/components/ome-io/src/loci/ome/io/OmeroReader.java
@@ -1,374 +1,375 @@
//
// OmeroReader.java
//
/*
... | false | true | protected void initFile(String id) throws FormatException, IOException {
LOGGER.debug("OmeroReader.initFile({})", id);
super.initFile(id);
if (!id.startsWith("omero:")) {
throw new IllegalArgumentException("Not an OMERO id: " + id);
}
// parse credentials from id string
LOGGER.info("... | protected void initFile(String id) throws FormatException, IOException {
LOGGER.debug("OmeroReader.initFile({})", id);
super.initFile(id);
if (!id.startsWith("omero:")) {
throw new IllegalArgumentException("Not an OMERO id: " + id);
}
// parse credentials from id string
LOGGER.info("... |
diff --git a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/predicates/JobComplete.java b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/predicates/JobComplete.java
index fe01bcc226..6f286d8d89 100644
--- a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/predicates/JobComplete.java
+++ b/apis/cloudstac... | false | true | public boolean apply(Long jobId) {
logger.trace("looking for status on job %s", checkNotNull(jobId, "jobId"));
AsyncJob<?> job = refresh(jobId);
if (job == null)
return false;
logger.trace("%s: looking for job status %s: currently: %s", job.getId(), 1, job.getStatus());
if (job... | public boolean apply(Long jobId) {
logger.trace("looking for status on job %s", checkNotNull(jobId, "jobId"));
AsyncJob<?> job = refresh(jobId);
if (job == null)
return false;
logger.trace("%s: looking for job status %s: currently: %s", job.getId(), 1, job.getStatus());
if (job... |
diff --git a/helloworld/src/main/java/org/springframework/amqp/helloworld/BrokerConfigurationApplication.java b/helloworld/src/main/java/org/springframework/amqp/helloworld/BrokerConfigurationApplication.java
index b4bb07c..ea51f13 100644
--- a/helloworld/src/main/java/org/springframework/amqp/helloworld/BrokerConfigur... | true | true | public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("rabbitConfiguration.xml");
AmqpAdmin amqpAdmin = context.getBean(AmqpAdmin.class);
Queue helloWorldQueue = new Queue("hello.world.queue");
amqpAdmin.declareQueue(helloWorldQueue);
}
| public static void main(String[] args) throws Exception {
ApplicationContext context = new ClassPathXmlApplicationContext("rabbitConfiguration.xml");
AmqpAdmin amqpAdmin = context.getBean(AmqpAdmin.class);
Queue helloWorldQueue = new Queue("hello.world.queue");
amqpAdmin.declareQueue(helloWorldQueue);
}
|
diff --git a/ajax-components/extra/i08/image-browser/src/java/ch/informatica08/yanel/gwt/client/ImageBrowser.java b/ajax-components/extra/i08/image-browser/src/java/ch/informatica08/yanel/gwt/client/ImageBrowser.java
index 7f765a5..680943a 100644
--- a/ajax-components/extra/i08/image-browser/src/java/ch/informatica08/y... | false | true | protected void initializeInstances() {
RootPanel [] p = getRootPanels();
for (int i = 0; i < p.length; i++) {
if(null == p[i]){
continue;
}
final int componentNumber = i;
Gallery g = new Gallery(){
protected void init() {
HTTPRequest.asyncGet(g... | protected void initializeInstances() {
RootPanel [] p = getRootPanels();
for (int i = 0; i < p.length; i++) {
if(null == p[i]){
continue;
}
final int componentNumber = i;
Gallery g = new Gallery(){
protected void init() {
HTTPRequest.asyncGet(g... |
diff --git a/me/boecki/SignCodePad/event/SignCreate.java b/me/boecki/SignCodePad/event/SignCreate.java
index 5b8d65d..e179874 100644
--- a/me/boecki/SignCodePad/event/SignCreate.java
+++ b/me/boecki/SignCodePad/event/SignCreate.java
@@ -1,327 +1,328 @@
package me.boecki.SignCodePad.event;
import me.boecki.SignCodeP... | true | true | public void onSignChange(SignChangeEvent event) {
if (event.getLine(0).equalsIgnoreCase("[SignCodePad]")) {
if(!plugin.hasPermission(event.getPlayer(), "SignCodePad.use")){
event.getPlayer().sendMessage("You do not have Permission to do that.");
event.getBlock().setType(Material... | public void onSignChange(SignChangeEvent event) {
if (event.getBlock().getTypeId() != Material.WALL_SIGN.getId()) return;
if (event.getLine(0).equalsIgnoreCase("[SignCodePad]") || event.getLine(0).equalsIgnoreCase("[SCP]")) {
if(!plugin.hasPermission(event.getPlayer(), "SignCodePad.use")){
... |
diff --git a/jmock/extensions/cglib/acceptance-tests/atest/jmock/cglib/MockConcreteClassAcceptanceTest.java b/jmock/extensions/cglib/acceptance-tests/atest/jmock/cglib/MockConcreteClassAcceptanceTest.java
index 1954e0ef..7fac78d3 100644
--- a/jmock/extensions/cglib/acceptance-tests/atest/jmock/cglib/MockConcreteClassAc... | true | true | public void testCanMockConcreteClasses() throws Exception {
Mock listMock = new Mock(ArrayList.class,"listMock");
assertTrue( "proxy is an ArrayList", listMock.proxy() instanceof ArrayList );
ArrayList proxy = (ArrayList)listMock.proxy();
Object newElement = newDumm... | public void testCanMockConcreteClasses() throws Exception {
Mock listMock = new Mock(ArrayList.class,"listMock");
assertTrue( "proxy is an ArrayList", listMock.proxy() instanceof ArrayList );
ArrayList proxy = (ArrayList)listMock.proxy();
Object newElement = newDumm... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 00b17549..6560c5d3 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1397 +1,1397 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | true | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISAdminMenuInventory.java b/src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISAdminMenuInventory.java
index 7b9429a2b..52225cea7 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISAdminMenuInventory.java
+++ b/src/main/java... | true | true | private ItemStack[] getItemStack() {
List<ItemStack> options = new ArrayList<ItemStack>();
int i = 0;
Set<String> config = new TreeSet(plugin.getConfig().getKeys(true));
for (String c : config) {
String value = plugin.getConfig().getString(c);
if ((value.equal... | private ItemStack[] getItemStack() {
List<ItemStack> options = new ArrayList<ItemStack>();
int i = 0;
Set<String> config = new TreeSet(plugin.getConfig().getKeys(true));
for (String c : config) {
String value = plugin.getConfig().getString(c);
if ((value.equal... |
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/general/InterfaceEditor.java b/gui/src/main/java/org/jboss/as/console/client/shared/general/InterfaceEditor.java
index 94788050..7452632d 100644
--- a/gui/src/main/java/org/jboss/as/console/client/shared/general/InterfaceEditor.java
+++ b/gui/src/main/ja... | false | true | public Widget asWidget() {
LayoutPanel layout = new LayoutPanel();
FakeTabPanel titleBar = new FakeTabPanel(title);
layout.add(titleBar);
form = new Form<Interface>(Interface.class);
ToolStrip topLevelTools = new ToolStrip();
ToolButton addBtn = new ToolButton(Cons... | public Widget asWidget() {
LayoutPanel layout = new LayoutPanel();
FakeTabPanel titleBar = new FakeTabPanel(title);
layout.add(titleBar);
form = new Form<Interface>(Interface.class);
ToolStrip topLevelTools = new ToolStrip();
ToolButton addBtn = new ToolButton(Cons... |
diff --git a/EEG/src/PatternGame/DataCollector.java b/EEG/src/PatternGame/DataCollector.java
index 4732bb3..9a75502 100644
--- a/EEG/src/PatternGame/DataCollector.java
+++ b/EEG/src/PatternGame/DataCollector.java
@@ -1,199 +1,199 @@
package PatternGame;
import java.io.BufferedWriter;
import java.io.FileWriter;
im... | true | true | public void run() {
/*Initialization*/
eEvent = Edk.INSTANCE.EE_EmoEngineEventCreate();
eState = Edk.INSTANCE.EE_EmoStateCreate();
IntByReference userID = null;
IntByReference nSamplesTaken= null;
int state = 0;
float secs = 60;
boolean readytocollect = false;
c... | public void run() {
/*Initialization*/
eEvent = Edk.INSTANCE.EE_EmoEngineEventCreate();
eState = Edk.INSTANCE.EE_EmoStateCreate();
IntByReference userID = null;
IntByReference nSamplesTaken= null;
int state = 0;
float secs = 60;
boolean readytocollect = false;
c... |
diff --git a/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java b/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java
index cb2b8d0a0..5af58b8f8 100644
--- a/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java
+++ b/dspace-api/src/main/java/org/dspace/browse/ItemCounter.java
@@ -1,291 +1,291 @@... | true | true | public int getCount(DSpaceObject dso)
throws ItemCountException
{
boolean useCache = ConfigurationManager.getBooleanProperty("webui.strengths.cache");
if (useCache)
{
return dao.getCount(dso);
}
// if we make it this far, we need to manually count
if (dso instanceof Collection)
{
try {
... | public int getCount(DSpaceObject dso)
throws ItemCountException
{
boolean useCache = ConfigurationManager.getBooleanProperty("webui.strengths.cache");
if (useCache)
{
return dao.getCount(dso);
}
// if we make it this far, we need to manually count
if (dso instanceof Collection)
{
try {
... |
diff --git a/lucene/src/test/org/apache/lucene/search/TestWildcard.java b/lucene/src/test/org/apache/lucene/search/TestWildcard.java
index 56e2825e6..22f4cc52c 100644
--- a/lucene/src/test/org/apache/lucene/search/TestWildcard.java
+++ b/lucene/src/test/org/apache/lucene/search/TestWildcard.java
@@ -1,358 +1,360 @@
pa... | true | true | public void testParsingAndSearching() throws Exception {
String field = "content";
QueryParser qp = new QueryParser(TEST_VERSION_CURRENT, field, new MockAnalyzer());
qp.setAllowLeadingWildcard(true);
String docs[] = {
"\\ abcdefg1",
"\\79 hijklmn1",
"\\\\ opqrstu1",
};
... | public void testParsingAndSearching() throws Exception {
String field = "content";
QueryParser qp = new QueryParser(TEST_VERSION_CURRENT, field, new MockAnalyzer());
qp.setAllowLeadingWildcard(true);
String docs[] = {
"\\ abcdefg1",
"\\79 hijklmn1",
"\\\\ opqrstu1",
};
... |
diff --git a/autocompleteServer/src/test/java/de/metalcon/autocompleteServer/Create/TestProcessCreateRequest.java b/autocompleteServer/src/test/java/de/metalcon/autocompleteServer/Create/TestProcessCreateRequest.java
index 0af341b..9825746 100644
--- a/autocompleteServer/src/test/java/de/metalcon/autocompleteServer/Cre... | true | true | public void testFullFormWithoutImage() {
ProcessCreateResponse testResponse = this.processTestRequest(
ProtocolTestConstants.VALID_SUGGESTION_KEY,
ProtocolTestConstants.VALID_SUGGESTION_STRING,
ProtocolTestConstants.VALID_SUGGESTION_WEIGHT,
ProtocolTestConstants.VALID_SUGGESTION_INDEX);
assertEqu... | public void testFullFormWithoutImage() {
ProcessCreateResponse testResponse = this.processTestRequest(
ProtocolTestConstants.VALID_SUGGESTION_KEY,
ProtocolTestConstants.VALID_SUGGESTION_STRING,
ProtocolTestConstants.VALID_SUGGESTION_WEIGHT,
ProtocolTestConstants.VALID_SUGGESTION_INDEX);
assertEqu... |
diff --git a/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java b/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java
index 521f7ef..fad9085 100755
--- a/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java
+++ b/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java
@@ -1,125 +... | false | true | private RemoteAtExample() throws XBeeException, InterruptedException {
XBee xbee = new XBee();
try {
// replace with your coordinator com/baud
String SerialPortID="/dev/ttyAMA0";
System.setProperty("gnu.io.rxtx.SerialPorts", SerialPortID);
xbee.open(SerialPortID, 9600);
// xbee.open("COM5", 96... | private RemoteAtExample() throws XBeeException, InterruptedException {
XBee xbee = new XBee();
try {
// replace with your coordinator com/baud
String SerialPortID="/dev/ttyAMA0";
System.setProperty("gnu.io.rxtx.SerialPorts", SerialPortID);
xbee.open(SerialPortID, 9600);
// xbee.open("COM5", 96... |
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java
index 5b2ba588c..ee808df63 100644
--- a/src/com/android/launcher3/LauncherModel.java
+++ b/src/com/android/launcher3/LauncherModel.java
@@ -1,3285 +1,3290 @@
/*
* Copyright (C) 2008 The Android Open Source Projec... | false | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/squirrel-sql/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ViewHelpAction.java b/squirrel-sql/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ViewHelpAction.java
index 4e9160868..f503a6805 100644
--- a/squirrel-sql/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/Vie... | true | true | public void actionPerformed(ActionEvent evt)
{
try
{
new ViewFileCommand(getApplication(), _file).execute();
}
catch (BaseException ex)
{
getApplication().showErrorDialog("Error viewing change log", ex);
}
}
| public void actionPerformed(ActionEvent evt)
{
try
{
new ViewFileCommand(getApplication(), _file).execute();
}
catch (BaseException ex)
{
getApplication().showErrorDialog("Error viewing help file", ex);
}
}
|
diff --git a/src/me/chaseoes/timingsparser/TimingsFile.java b/src/me/chaseoes/timingsparser/TimingsFile.java
index eb1facc..fc09f91 100644
--- a/src/me/chaseoes/timingsparser/TimingsFile.java
+++ b/src/me/chaseoes/timingsparser/TimingsFile.java
@@ -1,67 +1,67 @@
package me.chaseoes.timingsparser;
import java.io.Buf... | false | true | public String parse() throws IOException {
BufferedReader in = new BufferedReader(new FileReader(file));
StringBuilder pluginTimes = new StringBuilder();
StringBuilder pluginNames = new StringBuilder();
String currentPlugin = null;
long totalTime = 0;
pluginTimes.app... | public String parse() throws IOException {
BufferedReader in = new BufferedReader(new FileReader(file));
StringBuilder pluginTimes = new StringBuilder();
StringBuilder pluginNames = new StringBuilder();
String currentPlugin = null;
long totalTime = 0;
pluginTimes.app... |
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/CreateContactInfoPane.java b/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/CreateContactInfoPane.java
index 16548b5e..8a3cab97 100644
--- a/OpERP/src/main/java/devopsdistilled/operp/client/commons/panes/CreateContactInfoPane.ja... | true | true | public CreateContactInfoPane() {
pane = new JPanel();
pane.setLayout(new MigLayout("", "[grow][grow]", "[][grow][][][][][]"));
JLabel lblAddress = new JLabel("Address");
pane.add(lblAddress, "flowx,cell 0 0");
JLabel lblEmail = new JLabel("Email");
pane.add(lblEmail, "cell 0 2,alignx trailing");
email... | public CreateContactInfoPane() {
pane = new JPanel();
pane.setLayout(new MigLayout("", "[][grow]", "[][][][][][][]"));
JLabel lblAddress = new JLabel("Address");
pane.add(lblAddress, "flowx,cell 0 0");
JLabel lblEmail = new JLabel("Email");
pane.add(lblEmail, "cell 0 2,alignx trailing");
emailField = ... |
diff --git a/src/main/java/nl/lolmewn/sortal/Localisation.java b/src/main/java/nl/lolmewn/sortal/Localisation.java
index d0707b6..7059c4d 100644
--- a/src/main/java/nl/lolmewn/sortal/Localisation.java
+++ b/src/main/java/nl/lolmewn/sortal/Localisation.java
@@ -1,167 +1,164 @@
package nl.lolmewn.sortal;
import java.... | false | true | private void checkFile() {
if(!this.localisation.exists()){
try {
Bukkit.getLogger().info("[Sortal] Trying to create default language file...");
try {
InputStream in = this.getClass().
getClassLoader().getResourceAsStream("localisat... | private void checkFile() {
if(!this.localisation.exists()){
Bukkit.getLogger().info("[Sortal] Trying to create default language file...");
try {
this.localisation.getParentFile().mkdirs();
InputStream in = this.getClass().
getCl... |
diff --git a/src/gamesincommon/GamesInCommon.java b/src/gamesincommon/GamesInCommon.java
index 8cb2a83..fce24f4 100644
--- a/src/gamesincommon/GamesInCommon.java
+++ b/src/gamesincommon/GamesInCommon.java
@@ -1,325 +1,325 @@
package gamesincommon;
import java.io.BufferedReader;
import java.io.File;
import java.io... | true | true | public Collection<SteamGame> filterGames(Collection<SteamGame> gameList, List<FilterType> filterList) {
Collection<SteamGame> result = new HashSet<SteamGame>();
for (SteamGame game : gameList) {
// first run a query through the local db
boolean checkWeb = true;
try {
Statement s = connection.createS... | public Collection<SteamGame> filterGames(Collection<SteamGame> gameList, List<FilterType> filterList) {
Collection<SteamGame> result = new HashSet<SteamGame>();
for (SteamGame game : gameList) {
// first run a query through the local db
boolean checkWeb = true;
try {
Statement s = connection.createS... |
diff --git a/ring/ReductionPar.java b/ring/ReductionPar.java
index b2e529e6..e21a3183 100644
--- a/ring/ReductionPar.java
+++ b/ring/ReductionPar.java
@@ -1,227 +1,228 @@
/*
* $Id$
*/
package edu.jas.ring;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import java.util.I... | false | true | public GenPolynomial<C>
normalform(DistHashTable Pp,
GenPolynomial<C> Ap) {
if ( Pp == null ) return Ap;
if ( Pp.isEmpty() ) return Ap;
int l;
GenPolynomial<C>[] P;
synchronized (Pp) { // required, ok in dist
l = Pp.size();
... | public GenPolynomial<C>
normalform(DistHashTable Pp,
GenPolynomial<C> Ap) {
if ( Pp == null ) return Ap;
if ( Pp.isEmpty() ) return Ap;
int l;
GenPolynomial<C>[] P;
synchronized ( Pp.getList() ) { // required, ok in dist
l = Pp.... |
diff --git a/srcj/com/sun/electric/technology/technologies/MoCMOS.java b/srcj/com/sun/electric/technology/technologies/MoCMOS.java
index 129b3b43a..cd3069dd7 100755
--- a/srcj/com/sun/electric/technology/technologies/MoCMOS.java
+++ b/srcj/com/sun/electric/technology/technologies/MoCMOS.java
@@ -1,4536 +1,4536 @@
/* -... | false | true | private MoCMOS()
{
super("mocmos");
setTechShortName("MOSIS CMOS");
setTechDesc("MOSIS CMOS");
setFactoryScale(200, true); // in nanometers: really 0.2 micron
setNoNegatedArcs();
setStaticTechnology();
setFactoryTransparentLayers(new Color []
{
new Color( 96,209,255), // Metal-1
new Color(255,... | private MoCMOS()
{
super("mocmos");
setTechShortName("MOSIS CMOS");
setTechDesc("MOSIS CMOS");
setFactoryScale(200, true); // in nanometers: really 0.2 micron
setNoNegatedArcs();
setStaticTechnology();
setFactoryTransparentLayers(new Color []
{
new Color( 96,209,255), // Metal-1
new Color(255,... |
diff --git a/src/main/java/net/aufdemrand/denizen/listeners/AbstractListener.java b/src/main/java/net/aufdemrand/denizen/listeners/AbstractListener.java
index 6bc4c6a84..d6fa57f0c 100644
--- a/src/main/java/net/aufdemrand/denizen/listeners/AbstractListener.java
+++ b/src/main/java/net/aufdemrand/denizen/listeners/Abstr... | true | true | public void save() {
denizen.getSaves().set("Listeners." + player.getName() + "." + id
+ ".Listener Type", type);
denizen.getSaves().set("Listeners." + player.getName() + "." + id
+ ".Finish Script", scriptName);
if (npc != null) denizen.getSaves().set("Listeners." + player.getNam... | public void save() {
denizen.getSaves().set("Listeners." + player.getName() + "." + id
+ ".Listener Type", type);
denizen.getSaves().set("Listeners." + player.getName() + "." + id
+ ".Finish Script", scriptName.toString());
if (npc != null) denizen.getSaves().set("Listeners." + pl... |
diff --git a/src/java/net/sf/picard/sam/MergeSamFiles.java b/src/java/net/sf/picard/sam/MergeSamFiles.java
index 36e5c53..cf5ee1c 100644
--- a/src/java/net/sf/picard/sam/MergeSamFiles.java
+++ b/src/java/net/sf/picard/sam/MergeSamFiles.java
@@ -1,228 +1,225 @@
/*
* The MIT License
*
* Copyright (c) 2009 The Broa... | false | true | protected int doWork() {
boolean matchedSortOrders = true;
// Open the files for reading and writing
final List<SAMFileReader> readers = new ArrayList<SAMFileReader>();
final List<SAMFileHeader> headers = new ArrayList<SAMFileHeader>();
{
SAMSequenceDictionary dict ... | protected int doWork() {
boolean matchedSortOrders = true;
// Open the files for reading and writing
final List<SAMFileReader> readers = new ArrayList<SAMFileReader>();
final List<SAMFileHeader> headers = new ArrayList<SAMFileHeader>();
{
SAMSequenceDictionary dict ... |
diff --git a/src/com/philiptorchinsky/TimeAppe/MainActivity.java b/src/com/philiptorchinsky/TimeAppe/MainActivity.java
index 158d7be..33f8dcc 100644
--- a/src/com/philiptorchinsky/TimeAppe/MainActivity.java
+++ b/src/com/philiptorchinsky/TimeAppe/MainActivity.java
@@ -1,93 +1,93 @@
package com.philiptorchinsky.TimeApp... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dh = new DBAdapter (this);
dh.open();
// dh.destroy();
// dh.close();
//
// dh = new DBAdapter (this);
dh.insert("TeamCity training", "inactive", 0,0);
dh.insert("Androi... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dh = new DBAdapter (this);
dh.open();
// dh.destroy();
// dh.close();
//
// dh = new DBAdapter (this);
// dh.insert("TeamCity training", "inactive", 0,0);
// dh.insert("An... |
diff --git a/src/com/redhat/ceylon/compiler/codegen/StatementGen.java b/src/com/redhat/ceylon/compiler/codegen/StatementGen.java
index 18b949309..a838aee92 100644
--- a/src/com/redhat/ceylon/compiler/codegen/StatementGen.java
+++ b/src/com/redhat/ceylon/compiler/codegen/StatementGen.java
@@ -1,308 +1,310 @@
package co... | true | true | private JCStatement convertCondition(Tree.Condition cond, int tag, JCBlock thenPart, JCBlock elsePart) {
if (cond instanceof Tree.ExistsCondition) {
Tree.ExistsCondition exists = (Tree.ExistsCondition) cond;
Tree.Identifier name = exists.getVariable().getIdentifier();
/... | private JCStatement convertCondition(Tree.Condition cond, int tag, JCBlock thenPart, JCBlock elsePart) {
if (cond instanceof Tree.ExistsCondition) {
Tree.ExistsCondition exists = (Tree.ExistsCondition) cond;
Tree.Identifier name = exists.getVariable().getIdentifier();
/... |
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.