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/src/Couch25K.java b/src/Couch25K.java
index 0cbf689..a74baf1 100644
--- a/src/Couch25K.java
+++ b/src/Couch25K.java
@@ -1,230 +1,230 @@
import java.io.IOException;
import java.util.Timer;
import java.util.TimerTask;
import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.Command;
im... | false | true | protected void startApp() throws MIDletStateChangeException {
if (display == null) {
display = Display.getDisplay(this);
// Week selection screen setup
selectWeekScreen = new List("Select Week", Choice.EXCLUSIVE, new String[] {
"Week 1", "Week 2", "Wee... | protected void startApp() throws MIDletStateChangeException {
if (display == null) {
display = Display.getDisplay(this);
// Week selection screen setup
selectWeekScreen = new List("Select Week", Choice.IMPLICIT, new String[] {
"Week 1", "Week 2", "Week... |
diff --git a/SmartPaymentGenerator/src/com/smartpaymentformat/string/SmartPayment.java b/SmartPaymentGenerator/src/com/smartpaymentformat/string/SmartPayment.java
index 069d053..7787598 100644
--- a/SmartPaymentGenerator/src/com/smartpaymentformat/string/SmartPayment.java
+++ b/SmartPaymentGenerator/src/com/smartpaymen... | false | true | public static String paymentStringFromAccount(SmartPaymentParameters parameters, SmartPaymentMap extendedParameters, boolean transliterateParams) {
String paymentString = "PAY*" + protocolVersion + "*";
if (parameters.getBankAccount().getIBAN() != null) {
paymentString += "ACC:" + parame... | public static String paymentStringFromAccount(SmartPaymentParameters parameters, SmartPaymentMap extendedParameters, boolean transliterateParams) {
String paymentString = "SPD*" + protocolVersion + "*";
if (parameters.getBankAccount().getIBAN() != null) {
paymentString += "ACC:" + parame... |
diff --git a/src/groovy/org/pillarone/riskanalytics/application/ui/resultnavigator/view/CategoryConfigurationDialog.java b/src/groovy/org/pillarone/riskanalytics/application/ui/resultnavigator/view/CategoryConfigurationDialog.java
index eaa6ef18..0afcc775 100644
--- a/src/groovy/org/pillarone/riskanalytics/application/... | true | true | public void createContent(final CategoryMapping categoryMapping) {
this.categoryMapping = categoryMapping;
// initialize the caches
resolverTreeCache = new HashMap<String,ULCScrollPane>();
resolverCache = new HashMap<ICategoryResolver,ULCBoxPane>();
CategoryListModel catego... | public void createContent(final CategoryMapping categoryMapping) {
this.categoryMapping = categoryMapping;
// initialize the caches
resolverTreeCache = new HashMap<String,ULCScrollPane>();
resolverCache = new HashMap<ICategoryResolver,ULCBoxPane>();
CategoryListModel catego... |
diff --git a/src/main/java/net/sf/hajdbc/sql/DatabaseClusterImpl.java b/src/main/java/net/sf/hajdbc/sql/DatabaseClusterImpl.java
index 4726bb3a..f5b91037 100644
--- a/src/main/java/net/sf/hajdbc/sql/DatabaseClusterImpl.java
+++ b/src/main/java/net/sf/hajdbc/sql/DatabaseClusterImpl.java
@@ -1,659 +1,659 @@
/*
* HA-JD... | true | true | public void start() throws Exception
{
if (this.active) return;
this.codec = this.configuration.getCodecFactory().createDecoder(System.getProperties());
this.lockManager = new SemaphoreLockManager();
this.stateManager = this.configuration.getStateManagerProvider().createStateManager(this, System.getPropert... | public void start() throws Exception
{
if (this.active) return;
this.codec = this.configuration.getCodecFactory().createDecoder(System.getProperties());
this.lockManager = new SemaphoreLockManager();
this.stateManager = this.configuration.getStateManagerProvider().createStateManager(this, System.getPropert... |
diff --git a/src/com/android/launcher2/LauncherAppWidgetHost.java b/src/com/android/launcher2/LauncherAppWidgetHost.java
index 75a9940c..29ffe6ed 100644
--- a/src/com/android/launcher2/LauncherAppWidgetHost.java
+++ b/src/com/android/launcher2/LauncherAppWidgetHost.java
@@ -1,43 +1,43 @@
/*
* Copyright (C) 2009 The ... | true | true | protected AppWidgetHostView onCreateView(Context context, int appWidgetId,
AppWidgetProviderInfo appWidget) {
if (LauncherApplication.isScreenXLarge()) {
return new DimmableAppWidgetHostView(context);
} else {
return new AppWidgetHostView(context);
}
}... | protected AppWidgetHostView onCreateView(Context context, int appWidgetId,
AppWidgetProviderInfo appWidget) {
if (LauncherApplication.isScreenXLarge()) {
return new DimmableAppWidgetHostView(context);
} else {
return new LauncherAppWidgetHostView(context);
... |
diff --git a/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java b/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java
index daa0a9e9..6a42a122 100644
--- a/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java
+++ b/MPDroid/src/com/namelessdev/mpdroid/cover/LocalCover.java
@@ -1,72 +1,75 @@
package co... | true | true | public String[] getCoverUrl(String artist, String album, String path, String filename) throws Exception {
// load URL parts from settings
String musicPath = settings.getString("musicPath", "music/");
FILENAMES[0] = settings.getString("coverFileName", null);
if (musicPath != null) {
// load server name/ip
... | public String[] getCoverUrl(String artist, String album, String path, String filename) throws Exception {
// load URL parts from settings
String musicPath = settings.getString("musicPath", "music/");
FILENAMES[0] = settings.getString("coverFileName", null);
if (musicPath != null) {
// load server name/ip
... |
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilder.java
index 774ef50b..f1353438 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/... | false | true | private void validateAcceleoBuildFile(IProgressMonitor monitor) throws CoreException {
IFile buildProperties = getProject().getFile("build.properties"); //$NON-NLS-1$
if (outputFolder != null && outputFolder.segmentCount() > 1) {
IFile buildAcceleo = getProject().getFile("build.acceleo"); //$NON-NLS-1$
Accel... | private void validateAcceleoBuildFile(IProgressMonitor monitor) throws CoreException {
IFile buildProperties = getProject().getFile("build.properties"); //$NON-NLS-1$
if (outputFolder != null && outputFolder.segmentCount() >= 1) {
IFile buildAcceleo = getProject().getFile("build.acceleo"); //$NON-NLS-1$
Acce... |
diff --git a/grails/src/persistence/grails/orm/HibernateCriteriaBuilder.java b/grails/src/persistence/grails/orm/HibernateCriteriaBuilder.java
index 7fbc35260..51a55dd7a 100644
--- a/grails/src/persistence/grails/orm/HibernateCriteriaBuilder.java
+++ b/grails/src/persistence/grails/orm/HibernateCriteriaBuilder.java
@@ ... | true | true | public Object invokeMethod(String name, Object obj) {
Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj};
if(isCriteriaConstructionMethod(name, args)) {
if(this.criteria != null) {
throwRuntimeException( new IllegalArgumentException("c... | public Object invokeMethod(String name, Object obj) {
Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj};
if(isCriteriaConstructionMethod(name, args)) {
if(this.criteria != null) {
throwRuntimeException( new IllegalArgumentException("c... |
diff --git a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java
index f617053c1..45bb87235 100644
--- a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java
+++ b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java
@@ -1,780 +1,780 @@
/**
* Co... | true | true | public static String getHistoryComment(final AstridActivity context, History history, User user, String linkColor, String fromView) {
boolean hasTask = false;
JSONArray taskAttrs = null;
if (!TextUtils.isEmpty(history.getValue(History.TASK))) {
try {
taskAttrs = n... | public static String getHistoryComment(final AstridActivity context, History history, User user, String linkColor, String fromView) {
boolean hasTask = false;
JSONArray taskAttrs = null;
if (!TextUtils.isEmpty(history.getValue(History.TASK))) {
try {
taskAttrs = n... |
diff --git a/network-rpc/src/main/java/org/apache/niolex/network/rpc/RpcClient.java b/network-rpc/src/main/java/org/apache/niolex/network/rpc/RpcClient.java
index 28d1ea7..2ccf1ef 100644
--- a/network-rpc/src/main/java/org/apache/niolex/network/rpc/RpcClient.java
+++ b/network-rpc/src/main/java/org/apache/niolex/networ... | true | true | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
checkStatus();
RpcException rep = null;
Short rei = executeMap.get(method);
if (rei != null) {
// 1. Prepare parameters
byte[] arr;
if (args == null || args.length == 0) {
arr = new byte[0];
} else {
arr = c... | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
checkStatus();
RpcException rep = null;
Short rei = executeMap.get(method);
if (rei != null) {
// 1. Prepare parameters
byte[] arr;
if (args == null || args.length == 0) {
arr = new byte[0];
} else {
arr = c... |
diff --git a/src/book/Author.java b/src/book/Author.java
index a558d83..ef9e78b 100644
--- a/src/book/Author.java
+++ b/src/book/Author.java
@@ -1,177 +1,177 @@
package book;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persist... | true | true | public static void list()
{
Session session = HibernateContext.getSession();
Criteria criteria = session.createCriteria(Author.class);
criteria.addOrder(Order.asc("firstName"));
List<Author> authors = criteria.list();
System.out.println("Titles that are written by Author.");
... | public static void list()
{
Session session = HibernateContext.getSession();
Criteria criteria = session.createCriteria(Author.class);
criteria.addOrder(Order.asc("firstname"));
List<Author> authors = criteria.list();
System.out.println("Titles that are written by Author.");
... |
diff --git a/hazelcast/src/main/java/com/hazelcast/client/AuthenticationRequest.java b/hazelcast/src/main/java/com/hazelcast/client/AuthenticationRequest.java
index ea37f2cbc5..1c59d9b41f 100644
--- a/hazelcast/src/main/java/com/hazelcast/client/AuthenticationRequest.java
+++ b/hazelcast/src/main/java/com/hazelcast/cli... | false | true | public Object call() throws Exception {
ClientEngineImpl clientEngine = getService();
Connection connection = endpoint.getConnection();
ILogger logger = clientEngine.getLogger(getClass());
clientEngine.sendResponse(endpoint, clientEngine.getThisAddress());
boolean authenticat... | public Object call() throws Exception {
ClientEngineImpl clientEngine = getService();
Connection connection = endpoint.getConnection();
ILogger logger = clientEngine.getLogger(getClass());
clientEngine.sendResponse(endpoint, clientEngine.getThisAddress());
boolean authenticat... |
diff --git a/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java b/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java
index fcbd5cb4a..5f221099f 100644
--- a/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java
+++ b/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java... | true | true | private Collection<SSTableReader> getCandidatesFor(int level)
{
assert !generations[level].isEmpty();
logger.debug("Choosing candidates for L{}", level);
if (level == 0)
{
// L0 is the dumping ground for new sstables which thus may overlap each other.
//
... | private Collection<SSTableReader> getCandidatesFor(int level)
{
assert !generations[level].isEmpty();
logger.debug("Choosing candidates for L{}", level);
if (level == 0)
{
// L0 is the dumping ground for new sstables which thus may overlap each other.
//
... |
diff --git a/src/instructions/USI_SKIPS.java b/src/instructions/USI_SKIPS.java
index 2c217df..4c7174d 100644
--- a/src/instructions/USI_SKIPS.java
+++ b/src/instructions/USI_SKIPS.java
@@ -1,93 +1,93 @@
package instructions;
import assemblernator.Instruction;
import assemblernator.Module;
/**
* The SKIPS inst... | true | true | @Override public int getNewLC(int lc, Module mod) {
return mod.evaluate(getOperand("FC"));
}
| @Override public int getNewLC(int lc, Module mod) {
return lc+mod.evaluate(getOperand("FC"));
}
|
diff --git a/lightfish/src/main/java/org/lightfish/business/monitoring/boundary/MonitoringController.java b/lightfish/src/main/java/org/lightfish/business/monitoring/boundary/MonitoringController.java
index 711a8d8..c4a5a46 100644
--- a/lightfish/src/main/java/org/lightfish/business/monitoring/boundary/MonitoringContro... | false | true | private Snapshot combineSnapshots(Collection<Snapshot> snapshots) {
long usedHeapSize = 0l;
int threadCount = 0;
int peakThreadCount = 0;
int totalErrors = 0;
int currentThreadBusy = 0;
int committedTX = 0;
int rolledBackTX = 0;
int queuedConnections ... | private Snapshot combineSnapshots(Collection<Snapshot> snapshots) {
long usedHeapSize = 0l;
int threadCount = 0;
int peakThreadCount = 0;
int totalErrors = 0;
int currentThreadBusy = 0;
int committedTX = 0;
int rolledBackTX = 0;
int queuedConnections ... |
diff --git a/src/edacc/EDACCView.java b/src/edacc/EDACCView.java
index 17ede50..588a9e9 100644
--- a/src/edacc/EDACCView.java
+++ b/src/edacc/EDACCView.java
@@ -1,445 +1,445 @@
/*
* EDACCView.java
*/
package edacc;
import edacc.model.DatabaseConnector;
import edacc.model.NoConnectionToDBException;
import jav... | true | true | private void initComponents() {
mainPanel = new javax.swing.JPanel();
menuBar = new javax.swing.JMenuBar();
javax.swing.JMenu fileMenu = new javax.swing.JMenu();
connectToDBMenuItem = new javax.swing.JMenuItem();
disconnectMenuItem = new javax.swing.JMenuItem();
gene... | private void initComponents() {
mainPanel = new javax.swing.JPanel();
menuBar = new javax.swing.JMenuBar();
javax.swing.JMenu fileMenu = new javax.swing.JMenu();
connectToDBMenuItem = new javax.swing.JMenuItem();
disconnectMenuItem = new javax.swing.JMenuItem();
gene... |
diff --git a/src/main/java/org/waarp/openr66/protocol/localhandler/LocalTransaction.java b/src/main/java/org/waarp/openr66/protocol/localhandler/LocalTransaction.java
index 8f300770..efa90987 100644
--- a/src/main/java/org/waarp/openr66/protocol/localhandler/LocalTransaction.java
+++ b/src/main/java/org/waarp/openr66/p... | false | true | public LocalChannelReference createNewClient(Channel networkChannel,
Integer remoteId, R66Future futureRequest)
throws OpenR66ProtocolSystemException {
ChannelFuture channelFuture = null;
logger.debug("Status LocalChannelServer: {} {}", serverChannel
.getClass().getName(), serverChannel.getConfig()
.... | public LocalChannelReference createNewClient(Channel networkChannel,
Integer remoteId, R66Future futureRequest)
throws OpenR66ProtocolSystemException {
ChannelFuture channelFuture = null;
logger.debug("Status LocalChannelServer: {} {}", serverChannel
.getClass().getName(), serverChannel.getConfig()
.... |
diff --git a/src/org/yaxim/androidclient/service/GenericService.java b/src/org/yaxim/androidclient/service/GenericService.java
index 6706c14..85dd34a 100644
--- a/src/org/yaxim/androidclient/service/GenericService.java
+++ b/src/org/yaxim/androidclient/service/GenericService.java
@@ -1,173 +1,172 @@
package org.yaxim.... | true | true | private void setNotification(String fromJid, String fromUserId, String message) {
int mNotificationCounter = 0;
if (notificationCount.containsKey(fromJid)) {
mNotificationCounter = notificationCount.get(fromJid);
} else {
notificationCount.put(fromJid, Integer.valueOf(1));
}
mNotificationCounter++;
... | private void setNotification(String fromJid, String fromUserId, String message) {
int mNotificationCounter = 0;
if (notificationCount.containsKey(fromJid)) {
mNotificationCounter = notificationCount.get(fromJid);
} else {
notificationCount.put(fromJid, Integer.valueOf(1));
}
mNotificationCounter++;
... |
diff --git a/app/in/partake/model/dao/DataFilter.java b/app/in/partake/model/dao/DataFilter.java
index 7dd1721..ebfb281 100644
--- a/app/in/partake/model/dao/DataFilter.java
+++ b/app/in/partake/model/dao/DataFilter.java
@@ -1,66 +1,66 @@
package in.partake.model.dao;
import static com.google.common.base.Preconditi... | false | true | public boolean hasNext() throws DAOException {
if (searchedNext) {
return next != null;
}
searchedNext = true;
while (unfiltered.hasNext()) {
next = unfiltered.next();
if (predicate.apply(next)) {
foundNext = true;
... | public boolean hasNext() throws DAOException {
if (searchedNext) {
return foundNext;
}
searchedNext = true;
while (unfiltered.hasNext()) {
next = unfiltered.next();
if (predicate.apply(next)) {
foundNext = true;
ret... |
diff --git a/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSFloat.java b/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSFloat.java
index 2f2a208..68699eb 100644
--- a/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSFloat.java
+++ b/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSFloat.java
@@ -1,216 +1,217 @@... | true | true | public void testEquals()
{
// Consistency
for (int i = -100000; i < 300000; i += 20000)
{
float num = i * rnd.nextFloat();
COSFloat test1 = new COSFloat(num);
COSFloat test2 = new COSFloat(num);
COSFloat test3 = new COSFloat(num);
... | public void testEquals()
{
// Consistency
for (int i = -100000; i < 300000; i += 20000)
{
float num = i * rnd.nextFloat();
COSFloat test1 = new COSFloat(num);
COSFloat test2 = new COSFloat(num);
COSFloat test3 = new COSFloat(num);
... |
diff --git a/src/org/mozilla/javascript/NativeCall.java b/src/org/mozilla/javascript/NativeCall.java
index d0817072..b196ac3d 100644
--- a/src/org/mozilla/javascript/NativeCall.java
+++ b/src/org/mozilla/javascript/NativeCall.java
@@ -1,154 +1,154 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offs... | true | true | NativeCall(NativeFunction function, Scriptable scope, Object[] args)
{
this.function = function;
setParentScope(scope);
// leave prototype null
this.originalArgs = (args == null) ? ScriptRuntime.emptyArgs : args;
// initialize values of arguments
int paramAndVa... | NativeCall(NativeFunction function, Scriptable scope, Object[] args)
{
this.function = function;
setParentScope(scope);
// leave prototype null
this.originalArgs = (args == null) ? ScriptRuntime.emptyArgs : args;
// initialize values of arguments
int paramAndVa... |
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java
index 15a2117e2..d86bbc845 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/t... | true | true | private void assertModificationState(IContainer container, String[] resources, final boolean listedResourcesShouldBeModified) throws CVSException {
final ICVSFolder rootFolder = CVSWorkspaceRoot.getCVSFolderFor(container);
final List resourceList = new ArrayList();
final Set modifiedResources = new HashSet();
... | private void assertModificationState(IContainer container, String[] resources, final boolean listedResourcesShouldBeModified) throws CVSException {
final ICVSFolder rootFolder = CVSWorkspaceRoot.getCVSFolderFor(container);
final List resourceList = new ArrayList();
final Set modifiedResources = new HashSet();
... |
diff --git a/core/rio/turtle/src/main/java/org/openrdf/rio/turtle/TurtleUtil.java b/core/rio/turtle/src/main/java/org/openrdf/rio/turtle/TurtleUtil.java
index 5845c9a7a..bb2a6471d 100644
--- a/core/rio/turtle/src/main/java/org/openrdf/rio/turtle/TurtleUtil.java
+++ b/core/rio/turtle/src/main/java/org/openrdf/rio/turtle... | true | true | public static String decodeString(String s) {
int backSlashIdx = s.indexOf('\\');
if (backSlashIdx == -1) {
// No escaped characters found
return s;
}
int startIdx = 0;
int sLength = s.length();
StringBuilder sb = new StringBuilder(sLength);
while (backSlashIdx != -1) {
sb.append(s.substring(... | public static String decodeString(String s) {
int backSlashIdx = s.indexOf('\\');
if (backSlashIdx == -1) {
// No escaped characters found
return s;
}
int startIdx = 0;
int sLength = s.length();
StringBuilder sb = new StringBuilder(sLength);
while (backSlashIdx != -1) {
sb.append(s.substring(... |
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CleanUpData.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CleanUpData.java
index 7f14cb46..ff60670e 100644
--- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CleanUpData.java
+++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CleanUpData.java
@@ -1,165 +1,166 @@
/**
* This file is par... | true | true | private void removeDupNodes() {
int progressCounter = 0;
int noNodes = parser.getNodes().size()/20;
KDTree kd = new KDTree(3);
double [] latlonKey;
double [] lowk = new double[3];
double [] uppk = new double[3];
for (Node n:parser.getNodes()){
progressCounter++;
if (noNodes > 0 && progressCo... | private void removeDupNodes() {
int progressCounter = 0;
int noNodes = parser.getNodes().size()/20;
KDTree kd = new KDTree(3);
double [] latlonKey;
double [] lowk = new double[3];
double [] uppk = new double[3];
for (Node n:parser.getNodes()){
progressCounter++;
if (noNodes > 0 && progressCo... |
diff --git a/devoxx-schedule/src/net/peterkuterna/android/apps/devoxxsched/io/RemoteScheduleHandler.java b/devoxx-schedule/src/net/peterkuterna/android/apps/devoxxsched/io/RemoteScheduleHandler.java
index 3898d2c..70435fc 100644
--- a/devoxx-schedule/src/net/peterkuterna/android/apps/devoxxsched/io/RemoteScheduleHandle... | true | true | public ArrayList<ContentProviderOperation> parse(JSONArray schedules, ContentResolver resolver) throws JSONException {
final ArrayList<ContentProviderOperation> batch = Lists.newArrayList();
final HashMap<String, ContentProviderOperation> blockBatchMap = Maps.newHashMap();
final HashMap<String, ContentProviderOp... | public ArrayList<ContentProviderOperation> parse(JSONArray schedules, ContentResolver resolver) throws JSONException {
final ArrayList<ContentProviderOperation> batch = Lists.newArrayList();
final HashMap<String, ContentProviderOperation> blockBatchMap = Maps.newHashMap();
final HashMap<String, ContentProviderOp... |
diff --git a/micropolis-java/src/micropolisj/engine/Micropolis.java b/micropolis-java/src/micropolisj/engine/Micropolis.java
index f10e839..30a5daf 100644
--- a/micropolis-java/src/micropolisj/engine/Micropolis.java
+++ b/micropolis-java/src/micropolisj/engine/Micropolis.java
@@ -1,2602 +1,2602 @@
// This file is part... | true | true | void setValves()
{
double normResPop = (double)resPop / 8.0;
totalPop = (int) (normResPop + comPop + indPop);
double employment;
if (normResPop != 0.0)
{
employment = (history.com[1] + history.ind[1]) / normResPop;
}
else
{
employment = 1;
}
double migration = normResPop * (employment - 1)... | void setValves()
{
double normResPop = (double)resPop / 8.0;
totalPop = (int) (normResPop + comPop + indPop);
double employment;
if (normResPop != 0.0)
{
employment = (history.com[1] + history.ind[1]) / normResPop;
}
else
{
employment = 1;
}
double migration = normResPop * (employment - 1)... |
diff --git a/src/main/java/name/richardson/james/bukkit/utilities/updater/PluginUpdater.java b/src/main/java/name/richardson/james/bukkit/utilities/updater/PluginUpdater.java
index 1f8db61..60e027b 100644
--- a/src/main/java/name/richardson/james/bukkit/utilities/updater/PluginUpdater.java
+++ b/src/main/java/name/rich... | true | true | public void run() {
this.logger.setPrefix("[" + plugin.getName() + "] ");
logger.debug(this.plugin.getMessage("updater-checking-for-new-version"));
try {
this.parseMavenMetaData();
} catch (IOException e) {
logger.warning(this.plugin.getMessage("updater-unable-to-save-file"));
... | public void run() {
this.logger.setPrefix("[" + plugin.getName() + "] ");
logger.debug(this.plugin.getMessage("updater-checking-for-new-version"));
try {
this.parseMavenMetaData();
} catch (IOException e) {
logger.warning(this.plugin.getMessage("updater-unable-to-save-file"));
... |
diff --git a/spring-integration-jms/src/main/java/org/springframework/integration/jms/ChannelPublishingJmsMessageListener.java b/spring-integration-jms/src/main/java/org/springframework/integration/jms/ChannelPublishingJmsMessageListener.java
index 8edcfa91dc..66b77e3236 100644
--- a/spring-integration-jms/src/main/jav... | true | true | public void onMessage(javax.jms.Message jmsMessage, Session session) throws JMSException {
Object result = jmsMessage;
if (this.extractRequestPayload) {
result = this.messageConverter.fromMessage(jmsMessage);
if (logger.isDebugEnabled()) {
logger.debug("converted JMS Message [" + jmsMessage + "] to integ... | public void onMessage(javax.jms.Message jmsMessage, Session session) throws JMSException {
Object result = jmsMessage;
if (this.extractRequestPayload) {
result = this.messageConverter.fromMessage(jmsMessage);
if (logger.isDebugEnabled()) {
logger.debug("converted JMS Message [" + jmsMessage + "] to integ... |
diff --git a/src/net/ant/rc/rpi/Shell.java b/src/net/ant/rc/rpi/Shell.java
index 7ec2c26..2d70acd 100644
--- a/src/net/ant/rc/rpi/Shell.java
+++ b/src/net/ant/rc/rpi/Shell.java
@@ -1,49 +1,49 @@
package net.ant.rc.rpi;
import org.apache.log4j.Logger;
import java.io.IOException;
/**
* Created with IntelliJ I... | true | true | public static String execute(String command){
Logger logger = Logger.getLogger("log4j.logger.net.ant.rc");
if (command == null) return null;
String[] c;
if ("reboot".equals(command)){
c = new String[]{"/usr/bin/sudo", "/sbin/reboot"};
}else
if ("shutdown"... | public static String execute(String command){
Logger logger = Logger.getLogger("log4j.logger.net.ant.rc");
if (command == null) return null;
String[] c;
if ("reboot".equals(command)){
c = new String[]{"/usr/bin/sudo", "/sbin/reboot"};
}else
if ("shutdown"... |
diff --git a/tests/org.eclipse.dltk.ruby.core.tests/src/org/eclipse/dltk/ruby/core/tests/AllTests.java b/tests/org.eclipse.dltk.ruby.core.tests/src/org/eclipse/dltk/ruby/core/tests/AllTests.java
index 49880817..8bfb25fd 100755
--- a/tests/org.eclipse.dltk.ruby.core.tests/src/org/eclipse/dltk/ruby/core/tests/AllTests.ja... | true | true | public static Test suite() {
TestSuite suite = new TestSuite("Test for org.eclipse.dltk.ruby.core");
// $JUnit-BEGIN$
suite.addTest(AutoMixinTests.suite());
suite.addTest(MixinModelManipulationTests.suite());
suite.addTest(RubySelectionTests.suite());
suite.addTest(RubyCompletionTests.suite());
suite.a... | public static Test suite() {
TestSuite suite = new TestSuite("Test for org.eclipse.dltk.ruby.core");
// $JUnit-BEGIN$
suite.addTest(AutoMixinTests.suite());
suite.addTest(MixinModelManipulationTests.suite());
suite.addTest(RubySelectionTests.suite());
suite.addTest(RubyCompletionTests.suite());
suite.a... |
diff --git a/src/main/java/hudson/plugins/jacoco/ExecutionFileLoader.java b/src/main/java/hudson/plugins/jacoco/ExecutionFileLoader.java
index 5d37888..6f759fe 100644
--- a/src/main/java/hudson/plugins/jacoco/ExecutionFileLoader.java
+++ b/src/main/java/hudson/plugins/jacoco/ExecutionFileLoader.java
@@ -1,148 +1,157 @@... | false | true | private IBundleCoverage analyzeStructure() throws IOException {
File classDirectory = new File(classDir.getRemote());
final CoverageBuilder coverageBuilder = new CoverageBuilder();
final Analyzer analyzer = new Analyzer(executionDataStore,
coverageBuilder);
if ((includes==null)|| ("".eq... | private IBundleCoverage analyzeStructure() throws IOException {
File classDirectory = new File(classDir.getRemote());
final CoverageBuilder coverageBuilder = new CoverageBuilder();
final Analyzer analyzer = new Analyzer(executionDataStore,
coverageBuilder);
if (includes==null) {
Str... |
diff --git a/test/RCACaseFunctionalTest.java b/test/RCACaseFunctionalTest.java
index 6460c2c..2d0f79c 100644
--- a/test/RCACaseFunctionalTest.java
+++ b/test/RCACaseFunctionalTest.java
@@ -1,165 +1,165 @@
/*
* Copyright (C) 2012 by Eero Laukkanen, Risto Virtanen, Jussi Patana, Juha Viljanen,
* Joona Koistinen, Pek... | false | true | public void checkIfCurrentUserHasRightsForRCACaseTest() {
RCACase privateRcaCase = RCACase.find("caseName", "Admin's own private RCA case").first();
assertNotNull(privateRcaCase);
Http.Request request = newRequest();
request.url = Router.reverse("PublicRCACaseController.show").url;
request.method = "GET";
... | public void checkIfCurrentUserHasRightsForRCACaseTest() {
RCACase privateRcaCase = RCACase.find("caseName", "Admin's own private RCA case").first();
assertNotNull(privateRcaCase);
Http.Request request = newRequest();
request.url = Router.reverse("PublicRCACaseController.show").url;
request.method = "GET";
... |
diff --git a/demos/web/src/main/java/org/apache/karaf/web/WebAppListener.java b/demos/web/src/main/java/org/apache/karaf/web/WebAppListener.java
index dad40cd5..2422938b 100644
--- a/demos/web/src/main/java/org/apache/karaf/web/WebAppListener.java
+++ b/demos/web/src/main/java/org/apache/karaf/web/WebAppListener.java
@... | true | true | public void contextInitialized(ServletContextEvent sce) {
try {
System.err.println("contextInitialized");
String root = new File(sce.getServletContext().getRealPath("/") + "WEB-INF/karaf").getAbsolutePath();
System.err.println("Root: " + root);
System.setProperty("karaf.home", root);
System.s... | public void contextInitialized(ServletContextEvent sce) {
try {
System.err.println("contextInitialized");
String root = new File(sce.getServletContext().getRealPath("/") + "/WEB-INF/karaf").getAbsolutePath();
System.err.println("Root: " + root);
System.setProperty("karaf.home", root);
System.... |
diff --git a/Character_Abyssal/src/net/sf/anathema/character/abyssal/AbyssalCharacterModule.java b/Character_Abyssal/src/net/sf/anathema/character/abyssal/AbyssalCharacterModule.java
index eb87714342..e46f8a63c5 100644
--- a/Character_Abyssal/src/net/sf/anathema/character/abyssal/AbyssalCharacterModule.java
+++ b/Chara... | false | true | public void addBackgroundTemplates(ICharacterGenerics generics) {
IIdentificateRegistry<IBackgroundTemplate> backgroundRegistry = generics.getBackgroundRegistry();
backgroundRegistry.add(new CharacterTypeBackgroundTemplate(BACKGROUND_ID_ABYSSAL_COMMAND, loyalAbyssalTemplateType));
backgroundRegistry.add(... | public void addBackgroundTemplates(ICharacterGenerics generics) {
IIdentificateRegistry<IBackgroundTemplate> backgroundRegistry = generics.getBackgroundRegistry();
backgroundRegistry.add(new TemplateTypeBackgroundTemplate(BACKGROUND_ID_ABYSSAL_COMMAND, loyalAbyssalTemplateType));
backgroundRegistry.add(n... |
diff --git a/trunk/Crux/src/br/com/sysmap/crux/core/rebind/scanner/screen/config/WidgetConfig.java b/trunk/Crux/src/br/com/sysmap/crux/core/rebind/scanner/screen/config/WidgetConfig.java
index 8ed3e0b54..f1e8f0556 100644
--- a/trunk/Crux/src/br/com/sysmap/crux/core/rebind/scanner/screen/config/WidgetConfig.java
+++ b/t... | true | true | protected static void initializeWidgetConfig()
{
config = new HashMap<String, String>(100);
widgets = new HashMap<String, String>();
lazyWidgets = new HashSet<String>();
registeredLibraries = new HashMap<String, Set<String>>();
Set<String> factoriesNames = ClassScanner.searchClassesByAnnotation(br.com.sysm... | protected static void initializeWidgetConfig()
{
config = new HashMap<String, String>(100);
widgets = new HashMap<String, String>();
lazyWidgets = new HashSet<String>();
registeredLibraries = new HashMap<String, Set<String>>();
Set<String> factoriesNames = ClassScanner.searchClassesByAnnotation(br.com.sysm... |
diff --git a/src/org/biojavax/bio/seq/io/INSDseqFormat.java b/src/org/biojavax/bio/seq/io/INSDseqFormat.java
index 59c52098c..705ab6a58 100644
--- a/src/org/biojavax/bio/seq/io/INSDseqFormat.java
+++ b/src/org/biojavax/bio/seq/io/INSDseqFormat.java
@@ -1,1499 +1,1499 @@
/*
* BioJava development co... | true | true | public void writeSequence(Sequence seq, String format, PrintStream os, Namespace ns) throws IOException {
// INSDseq only really - others are treated identically for now
if (!(
format.equalsIgnoreCase(INSDSEQ_FORMAT)
))
throw new IllegalArgumentException("... | public void writeSequence(Sequence seq, String format, PrintStream os, Namespace ns) throws IOException {
// INSDseq only really - others are treated identically for now
if (!(
format.equalsIgnoreCase(INSDSEQ_FORMAT)
))
throw new IllegalArgumentException("... |
diff --git a/src/org/mozilla/javascript/Parser.java b/src/org/mozilla/javascript/Parser.java
index 224b2bcb..28fa5263 100644
--- a/src/org/mozilla/javascript/Parser.java
+++ b/src/org/mozilla/javascript/Parser.java
@@ -1,1557 +1,1556 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
... | false | true | private Object statementHelper(TokenStream ts)
throws IOException, JavaScriptException
{
Object pn = null;
// If skipsemi == true, don't add SEMI + EOL to source at the
// end of this statment. For compound statements, IF/FOR etc.
boolean skipsemi = false;
int ... | private Object statementHelper(TokenStream ts)
throws IOException, JavaScriptException
{
Object pn = null;
// If skipsemi == true, don't add SEMI + EOL to source at the
// end of this statment. For compound statements, IF/FOR etc.
boolean skipsemi = false;
int ... |
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/Annotation.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/Annotation.java
index af14321bc..d5215d5b5 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/Annotation.java
+++ b/org.eclipse.jface.text/src/org/eclipse/j... | false | true | protected static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign) {
if (image != null) {
Rectangle bounds= image.getBounds();
int x= 0;
switch(halign) {
case SWT.LEFT:
break;
case SWT.CENTER:
x= (r.width - bounds.width) / 2;
break;
cas... | protected static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign) {
if (image != null) {
Rectangle bounds= image.getBounds();
int x= 0;
switch(halign) {
case SWT.LEFT:
break;
case SWT.CENTER:
x= (r.width - bounds.width) / 2;
break;
cas... |
diff --git a/geotools2/geotools-src/shapefile/src/org/geotools/shapefile/ShapefileDataSource.java b/geotools2/geotools-src/shapefile/src/org/geotools/shapefile/ShapefileDataSource.java
index ebae3be7f..2c1f39a90 100644
--- a/geotools2/geotools-src/shapefile/src/org/geotools/shapefile/ShapefileDataSource.java
+++ b/geot... | true | true | public List load(Extent ex) throws DataSourceException {
if(ex instanceof EnvelopeExtent){
List features = new ArrayList();
EnvelopeExtent ee = (EnvelopeExtent)ex;
Envelope bounds = ee.getBounds();
try{
GeometryCollection shapes = shapefile.rea... | public List load(Extent ex) throws DataSourceException {
if(ex instanceof EnvelopeExtent){
List features = new ArrayList();
EnvelopeExtent ee = (EnvelopeExtent)ex;
Envelope bounds = ee.getBounds();
try{
GeometryCollection shapes = shapefile.rea... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/requirements/RequirementRegistry.java b/src/main/java/net/aufdemrand/denizen/scripts/requirements/RequirementRegistry.java
index 4c922cf84..4be52f353 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/requirements/RequirementRegistry.java
+++ b/src/main/j... | true | true | public void registerCoreMembers() {
// <--[requirement]
// @Name Enchanted
// @Usage enchanted [iteminhand]
// @Required 1
// @Stable Stable
// @Short Checks if an item has an enchantment or not.
//
// @Description
// Checks if the spe... | public void registerCoreMembers() {
// <--[requirement]
// @Name Enchanted
// @Usage enchanted [iteminhand]
// @Required 1
// @Stable Stable
// @Short Checks if an item has an enchantment or not.
//
// @Description
// Checks if the spe... |
diff --git a/src/main/java/com/solidstategroup/radar/web/pages/admin/AdminUserPage.java b/src/main/java/com/solidstategroup/radar/web/pages/admin/AdminUserPage.java
index 5ba2c61e..6bad1d92 100644
--- a/src/main/java/com/solidstategroup/radar/web/pages/admin/AdminUserPage.java
+++ b/src/main/java/com/solidstategroup/ra... | false | true | public AdminUserPage(PageParameters parameters) {
super();
final ProfessionalUser user;
// if id is empty or -1 then its a new user else try pull back record
StringValue idValue = parameters.get(PARAM_ID);
if (idValue.isEmpty() || idValue.toLong() == -1) {
user ... | public AdminUserPage(PageParameters parameters) {
super();
final ProfessionalUser user;
// if id is empty or -1 then its a new user else try pull back record
StringValue idValue = parameters.get(PARAM_ID);
if (idValue.isEmpty() || idValue.toLong() == -1) {
user ... |
diff --git a/src/com/hotcats/textreminder/TextReceiver.java b/src/com/hotcats/textreminder/TextReceiver.java
index bd60a0b..d61ed30 100644
--- a/src/com/hotcats/textreminder/TextReceiver.java
+++ b/src/com/hotcats/textreminder/TextReceiver.java
@@ -1,97 +1,97 @@
package com.hotcats.textreminder;
import android.app.... | true | true | private void handleText(Context context, AlarmManager am, PendingIntent pi) {
Log.i("text", "text message recieved!");
// TODO: How can look this and repeatDelay up only once instead of every
// time this method is called?
boolean enabledDefault = context.getResources().getBoolean(
... | private void handleText(Context context, AlarmManager am, PendingIntent pi) {
Log.i("text", "text message recieved!");
// TODO: How can I look this and repeatDelay up only once instead of
// every time this method is called?
boolean enabledDefault = context.getResources().getBoolean... |
diff --git a/ForRealRobot/src/onRobot/BTCommRobot.java b/ForRealRobot/src/onRobot/BTCommRobot.java
index 14f55cc..85fd802 100644
--- a/ForRealRobot/src/onRobot/BTCommRobot.java
+++ b/ForRealRobot/src/onRobot/BTCommRobot.java
@@ -1,1170 +1,1176 @@
package onRobot;
import java.io.DataInputStream;
import java.io.Data... | true | true | private void handleOneCommand() throws IOException {
// Fetch the Master's command and argument
int command=_dis.readByte();
// Writer.write("we read command " + command);
double argument= (_dis.readInt())/100.0;
// Writer.write("we read argument " + argument);
// We set the robotReplyLength to 0 because t... | private void handleOneCommand() throws IOException {
// Fetch the Master's command and argument
int command=_dis.readByte();
// Writer.write("we read command " + command);
double argument= (_dis.readInt())/100.0;
// Writer.write("we read argument " + argument);
// We set the robotReplyLength to 0 because t... |
diff --git a/src/bt/Model/PeerListener.java b/src/bt/Model/PeerListener.java
index f3c0309..c1c89ce 100644
--- a/src/bt/Model/PeerListener.java
+++ b/src/bt/Model/PeerListener.java
@@ -1,138 +1,136 @@
package bt.Model;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import b... | false | true | private void readLine() throws Exception {
byte[] lengthArray = new byte [4];
in.read(lengthArray, 0, 4);
ByteBuffer lengthBuffer = ByteBuffer.wrap(lengthArray);
byte[] tcpArray = new byte[lengthBuffer.getInt()];
in.read(tcpArray, 0, lengthBuffer.getInt());
ByteBuffer tcpInput = ByteBuffer.wrap(tcpArray);
... | private void readLine() throws Exception {
byte[] lengthArray = new byte [4];
in.read(lengthArray, 0, 4);
ByteBuffer lengthBuffer = ByteBuffer.wrap(lengthArray);
int length = lengthBuffer.getInt();
byte[] tcpArray = new byte[length];
in.read(tcpArray, 0, length);
ByteBuffer tcpInput = ByteBuffer.wrap(tcp... |
diff --git a/src/main/java/gui/MainWindow.java b/src/main/java/gui/MainWindow.java
index a0338aa..cb6852d 100644
--- a/src/main/java/gui/MainWindow.java
+++ b/src/main/java/gui/MainWindow.java
@@ -1,210 +1,211 @@
package gui;
import icarus.operatingsoftware.FailableOperatingSoftware;
import icarus.operatingsoftwar... | true | true | public void actionPerformed(ActionEvent e) {
try
{
if(e.getActionCommand().equals("New Game"))
{
os.resetPlant();
}
else if(e.getActionCommand().equals("Save Game"))
{
int retval = fc.showSaveDia... | public void actionPerformed(ActionEvent e) {
try
{
if(e.getActionCommand().equals("New Game"))
{
os.resetPlant();
}
else if(e.getActionCommand().equals("Save Game"))
{
int retval = fc.showSaveDia... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/stream/WrapperedRAInputStream.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/stream/WrapperedRAInputStream.java
index 19a8d4cd7..31ebcb4b1 100644
--- a/plugins/org.eclipse.birt.data/src/org/ecl... | true | true | WrapperedRAInputStream( RAInputStream input, long startOffset, int size ) throws DataException
{
this.raIn = input;
this.startOffset = startOffset;
this.size = size;
try
{
this.skip( this.startOffset );
}
catch ( IOException e )
{
throw new DataException( e.getLocalizedMessage( ));
}
}
| WrapperedRAInputStream( RAInputStream input, long startOffset, int size ) throws DataException
{
this.raIn = input;
this.startOffset = startOffset;
this.size = size;
try
{
this.raIn.seek( this.startOffset );
}
catch ( IOException e )
{
throw new DataException( e.getLocalizedMessage( ));
}
}
|
diff --git a/ChanServ/LogCleaner.java b/ChanServ/LogCleaner.java
index 4998710..c6ee02c 100644
--- a/ChanServ/LogCleaner.java
+++ b/ChanServ/LogCleaner.java
@@ -1,159 +1,160 @@
/*
* Created on 25.12.2007
*
* This class is involved in moving logs from files on disk to a database,
* where they can be more easi... | false | true | public void run() {
// create temp log folder if it doesn't already exist:
File tempFolder = new File(TEMP_LOGS_FOLDER);
if (!tempFolder.exists()) {
boolean success = (tempFolder.mkdir());
if (!success){
Log.log("Error: unable to create folder: " + TEMP_LOGS_FOLDER);
return ;
} else {
Log.lo... | public void run() {
// create temp log folder if it doesn't already exist:
File tempFolder = new File(TEMP_LOGS_FOLDER);
if (!tempFolder.exists()) {
boolean success = (tempFolder.mkdir());
if (!success){
Log.log("Error: unable to create folder: " + TEMP_LOGS_FOLDER);
return ;
} else {
Log.lo... |
diff --git a/src/episode_15/ThreeDeeDemo.java b/src/episode_15/ThreeDeeDemo.java
index 153d112..dca7a50 100644
--- a/src/episode_15/ThreeDeeDemo.java
+++ b/src/episode_15/ThreeDeeDemo.java
@@ -1,127 +1,127 @@
package episode_15;
import java.util.Random;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyb... | true | true | public ThreeDeeDemo() {
// Initialization code Display
try {
Display.setDisplayMode(new DisplayMode(640, 480));
Display.setTitle("Three Dee Demo");
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
}
//
... | public ThreeDeeDemo() {
// Initialization code Display
try {
Display.setDisplayMode(new DisplayMode(640, 480));
Display.setTitle("Three Dee Demo");
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
}
//
... |
diff --git a/test/net/java/sip/communicator/slick/protocol/icq/TestProtocolProviderServiceIcqImpl.java b/test/net/java/sip/communicator/slick/protocol/icq/TestProtocolProviderServiceIcqImpl.java
index f37088c95..a7806e31a 100644
--- a/test/net/java/sip/communicator/slick/protocol/icq/TestProtocolProviderServiceIcqImpl.... | true | true | public void testRegister()
{
//add an event collector that will collect all events during the
//registration and allows us to later inspect them and make sure
//they were properly dispatched.
fixture.provider.addRegistrationStateChangeListener(regEvtCollector);
fixture.p... | public void testRegister()
{
//add an event collector that will collect all events during the
//registration and allows us to later inspect them and make sure
//they were properly dispatched.
fixture.provider.addRegistrationStateChangeListener(regEvtCollector);
fixture.p... |
diff --git a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/MythicDropsPlugin.java b/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/MythicDropsPlugin.java
index 21eb152d..10ca0b73 100644
--- a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/MythicDropsPlugin.java
+++ b/MythicDro... | true | true | public void onEnable() {
_INSTANCE = this;
debugPrinter = new DebugPrinter(getDataFolder().getPath(), "debug.log");
namesLoader = new NamesLoader(this);
unpackConfigurationFiles(new String[]{"config.yml", "customItems.yml", "itemGroups.yml", "language.yml",
"tier.yml", "creatureSpawning.yml", "repairing.... | public void onEnable() {
_INSTANCE = this;
debugPrinter = new DebugPrinter(getDataFolder().getPath(), "debug.log");
namesLoader = new NamesLoader(this);
unpackConfigurationFiles(new String[]{"config.yml", "customItems.yml", "itemGroups.yml", "language.yml",
"tier.yml", "creatureSpawning.yml", "repairing.... |
diff --git a/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java b/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java
index 68766d12..f231a82f 100644
--- a/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/Dum... | true | true | public void dummyTest() {
String prefMenu = "Preferences";
String prefDlg = prefMenu;
String windowMenu = "Window";
if (isOSX()) {
prefMenu = "Preferences...";
windowMenu = "Eclipse";
}
SWTWorkbenchBot bot = new SWTWorkbenchBot();
bot.menu(windowMenu).menu(prefMenu).click();
bot.waitUntil(shellIs... | public void dummyTest() {
String prefMenu = "Preferences";
String prefDlg = prefMenu;
String windowMenu = "Window";
if (isOSX()) {
prefMenu = "Preferences";
windowMenu = "Eclipse";
}
SWTWorkbenchBot bot = new SWTWorkbenchBot();
bot.menu(windowMenu).menu(prefMenu).click();
bot.waitUntil(shellIsAct... |
diff --git a/app/models/Asset.java b/app/models/Asset.java
index 4e4c0e1a..3d0988f0 100644
--- a/app/models/Asset.java
+++ b/app/models/Asset.java
@@ -1,567 +1,568 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*
*
*/
package models;
import controllers.... | true | true | public static Asset uploadXmlFile(String name, String comment, File epub) {
int variant = 0;
String type;
System.out.println("Epub name: " + epub.getName());
if (epub.getName().equals("map_vej.xml")) {
type = Asset.mapVej;
} else if (epub.getName().startsWith("map... | public static Asset uploadXmlFile(String name, String comment, File epub) {
int variant = 0;
String type;
System.out.println("Epub name: " + epub.getName());
if (epub.getName().equals("map_vej.xml")) {
type = Asset.mapVej;
} else if (epub.getName().startsWith("map... |
diff --git a/JavaGL/src/arpong/logic/gameobjects/GameObject.java b/JavaGL/src/arpong/logic/gameobjects/GameObject.java
index 8df0c61..4118285 100644
--- a/JavaGL/src/arpong/logic/gameobjects/GameObject.java
+++ b/JavaGL/src/arpong/logic/gameobjects/GameObject.java
@@ -1,55 +1,55 @@
package arpong.logic.gameobjects;
... | false | true | public Vector collidesWith(GameObject gameObject) {
// TODO: desperately need better collision point detection
BoundingBox bb = getBoundingBox();
Vector pos = getPosition();
BoundingBox shiftedBB = new BoundingBox(bb.getLowerLeft().plus(pos),
... | public Vector collidesWith(GameObject gameObject) {
// TODO: desperately need better collision point detection
BoundingBox bb = getBoundingBox();
Vector pos = getPosition();
BoundingBox shiftedBB = new BoundingBox(bb.getLowerLeft().plus(pos),
... |
diff --git a/src/main/java/com/mikeprimm/bukkit/AngryWolves/AngryWolvesEntityListener.java b/src/main/java/com/mikeprimm/bukkit/AngryWolves/AngryWolvesEntityListener.java
index 86e3bdd..f645d23 100644
--- a/src/main/java/com/mikeprimm/bukkit/AngryWolves/AngryWolvesEntityListener.java
+++ b/src/main/java/com/mikeprimm/b... | false | true | public void onCreatureSpawn(CreatureSpawnEvent event) {
if(event.isCancelled())
return;
Location loc = event.getLocation();
boolean did_it = false;
CreatureType ct = event.getCreatureType();
AngryWolves.BaseConfig cfg = null;
/* If monster spawn */
if(ct.equals(CreatureType.... | public void onCreatureSpawn(CreatureSpawnEvent event) {
if(event.isCancelled())
return;
Location loc = event.getLocation();
boolean did_it = false;
CreatureType ct = event.getCreatureType();
if(ct == null)
return;
AngryWolves.BaseConfig cfg = null;
/* If monster spawn ... |
diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java
index f50b2a082..2488fe54b 100644
--- a/source/de/anomic/yacy/yacySeedDB.java
+++ b/source/de/anomic/yacy/yacySeedDB.java
@@ -1,680 +1,680 @@
// yacySeedDB.java
// -------------------------------------
// (C) by Michael Peter... | true | true | public yacySeedDB(plasmaSwitchboard sb,
File seedActiveDBFile,
File seedPassiveDBFile,
File seedPotentialDBFile,
int bufferkb) throws IOException {
this.seedActiveDBFile = seedActiveDBFile;
this.seed... | public yacySeedDB(plasmaSwitchboard sb,
File seedActiveDBFile,
File seedPassiveDBFile,
File seedPotentialDBFile,
int bufferkb) throws IOException {
this.seedActiveDBFile = seedActiveDBFile;
this.seed... |
diff --git a/talk/client/ContactsList.java b/talk/client/ContactsList.java
index 325b42f..703ddec 100644
--- a/talk/client/ContactsList.java
+++ b/talk/client/ContactsList.java
@@ -1,79 +1,81 @@
package talk.client;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import talk.common.*;
import j... | true | true | public void mouseClicked(MouseEvent e) {
ContactsList cl = (ContactsList) e.getSource();
if (e.getClickCount() == 2) {
int index = cl.locationToIndex(e.getPoint());
String us = (String)cl.getModel().getElementAt(index);
System.out.println("Double clicked on Item " + index + ": us... | public void mouseClicked(MouseEvent e) {
ContactsList cl = (ContactsList) e.getSource();
if (e.getClickCount() == 2) {
int index = cl.locationToIndex(e.getPoint());
try {
String us = (String)cl.getModel().getElementAt(index);
System.out.println("Double clicked on Item... |
diff --git a/src/main/java/br/com/arsmachina/authentication/entity/Role.java b/src/main/java/br/com/arsmachina/authentication/entity/Role.java
index 5850970..08b0987 100644
--- a/src/main/java/br/com/arsmachina/authentication/entity/Role.java
+++ b/src/main/java/br/com/arsmachina/authentication/entity/Role.java
@@ -1,1... | false | true | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Role other = (Role) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
return ... | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Role == false)
return false;
final Role other = (Role) obj;
if (id == null) {
if (other.getId() != null)
return false;
}
else if (!id.equals(other.getId()))
return false;... |
diff --git a/src/main/java/tconstruct/weaponry/WeaponryActiveToolMod.java b/src/main/java/tconstruct/weaponry/WeaponryActiveToolMod.java
index 87187a450..d07f97444 100644
--- a/src/main/java/tconstruct/weaponry/WeaponryActiveToolMod.java
+++ b/src/main/java/tconstruct/weaponry/WeaponryActiveToolMod.java
@@ -1,38 +1,38 ... | true | true | public boolean damageTool(ItemStack stack, int damage, EntityLivingBase entity) {
if(stack.getItem() == TinkerWeaponry.javelin && stack.hasTagCompound()) {
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
IAmmo ammo =(IAmmo)stack.getItem();
if(tags... | public boolean damageTool(ItemStack stack, int damage, EntityLivingBase entity) {
if(stack.getItem() == TinkerWeaponry.javelin && stack.hasTagCompound()) {
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
IAmmo ammo =(IAmmo)stack.getItem();
if(tags... |
diff --git a/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpExternalService.java b/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpExternalService.java
index de67e29d7..735857bf6 100644
--- a/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpExternalService.java
+++ b/axis2/src/main/java/org/a... | true | true | private void _2xx_success() {
if (log.isDebugEnabled()) log.debug("Http Status Line=" + method.getStatusLine());
if (log.isDebugEnabled()) log.debug("Received response for MEX " + odeMex);
Operation opDef = odeMex.getOperation();
BindingOperation opBinding = port... | private void _2xx_success() {
if (log.isDebugEnabled()) log.debug("Http Status Line=" + method.getStatusLine());
if (log.isDebugEnabled()) log.debug("Received response for MEX " + odeMex);
Operation opDef = odeMex.getOperation();
BindingOperation opBinding = port... |
diff --git a/src/Program.java b/src/Program.java
index 5c481a0..f0dbdff 100644
--- a/src/Program.java
+++ b/src/Program.java
@@ -1,148 +1,151 @@
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import javax.xml.transform.*;
import javax.xml.transform.stream.StreamResult;
import javax.xml.tra... | false | true | public static void main(String[] args)
throws TransformerConfigurationException, TransformerException, IOException, FileNotFoundException, FileFormatNotSupportedException {
if (args.length != 3) {
System.err.println("Usage:");
System.err.println(" java -j... | public static void main(String[] args)
throws TransformerConfigurationException, TransformerException, IOException, FileNotFoundException, FileFormatNotSupportedException {
if (args.length != 3) {
System.err.println("Usage:");
System.err.println(" java -j... |
diff --git a/src/main/java/syam/likes/database/Database.java b/src/main/java/syam/likes/database/Database.java
index 2f735ed..6f818c3 100644
--- a/src/main/java/syam/likes/database/Database.java
+++ b/src/main/java/syam/likes/database/Database.java
@@ -1,285 +1,285 @@
/**
* Likes - Package: syam.likes.database
* C... | true | true | public void createStructure(){
// ユーザーデータテーブル
write("CREATE TABLE IF NOT EXISTS `" + tablePrefix + "users` (" +
"`player_id` int(10) unsigned NOT NULL AUTO_INCREMENT," + // 割り当てるID
"`player_name` varchar(32) NOT NULL," + // プレイヤー名
"PRIMARY KEY (`player_id`)," +
"UNIQUE KEY `player_name` (`play... | public void createStructure(){
// ユーザーデータテーブル
write("CREATE TABLE IF NOT EXISTS `" + tablePrefix + "users` (" +
"`player_id` int(10) unsigned NOT NULL AUTO_INCREMENT," + // 割り当てるID
"`player_name` varchar(32) NOT NULL," + // プレイヤー名
"PRIMARY KEY (`player_id`)," +
"UNIQUE KEY `player_name` (`play... |
diff --git a/web/src/main/java/ar/noxit/ehockey/web/pages/report/ReportePrinterFriendly.java b/web/src/main/java/ar/noxit/ehockey/web/pages/report/ReportePrinterFriendly.java
index 0f39427..5fa5324 100644
--- a/web/src/main/java/ar/noxit/ehockey/web/pages/report/ReportePrinterFriendly.java
+++ b/web/src/main/java/ar/no... | true | true | public ReportePrinterFriendly(IModel<Jugador> jugadorModel) {
add(new JugadorReportePanel("jugadorpanel", jugadorModel));
}
| public ReportePrinterFriendly(IModel<Jugador> jugadorModel) {
add(new JugadorReportePanel("paneljugador", jugadorModel));
}
|
diff --git a/src/java/org/catacombae/jfuse/test/FUSE26Test.java b/src/java/org/catacombae/jfuse/test/FUSE26Test.java
index 0eb6f49..bc042a0 100644
--- a/src/java/org/catacombae/jfuse/test/FUSE26Test.java
+++ b/src/java/org/catacombae/jfuse/test/FUSE26Test.java
@@ -1,55 +1,55 @@
/*-
* jFUSE - FUSE bindings for Java
... | true | true | public static void main(String[] args) {
FUSE26Capabilities c = new FUSE26Capabilities();
//c.print(System.out, "");
FUSE26FileSystemAdapter fs = new Yada() {
@Override
public int getattr(byte[] path, Stat stat) {
return -ENOENT;
}
... | public static void main(String[] args) {
FUSE26Capabilities c = new FUSE26Capabilities();
//c.print(System.out, "");
FUSE26FileSystemAdapter fs = new Yada() {
@Override
public int getattr(byte[] path, Stat stat) {
return -ENOENT;
}
... |
diff --git a/core/src/main/java/hudson/console/HudsonExceptionNote.java b/core/src/main/java/hudson/console/HudsonExceptionNote.java
index 3800b9484..3ffb7352d 100644
--- a/core/src/main/java/hudson/console/HudsonExceptionNote.java
+++ b/core/src/main/java/hudson/console/HudsonExceptionNote.java
@@ -1,95 +1,96 @@
pack... | true | true | public ConsoleAnnotator annotate(Object context, MarkupText text, int charPos) {
// An exception stack trace looks like this:
// org.acme.FooBarException: message
// <TAB>at org.acme.Foo.method(Foo.java:123)
// Caused by: java.lang.ClassNotFoundException:
String line = text.g... | public ConsoleAnnotator annotate(Object context, MarkupText text, int charPos) {
// An exception stack trace looks like this:
// org.acme.FooBarException: message
// <TAB>at org.acme.Foo.method(Foo.java:123)
// Caused by: java.lang.ClassNotFoundException:
String line = text.g... |
diff --git a/DASA/src/tagger/Tagger.java b/DASA/src/tagger/Tagger.java
index bb55727..acbe7fe 100644
--- a/DASA/src/tagger/Tagger.java
+++ b/DASA/src/tagger/Tagger.java
@@ -1,52 +1,47 @@
package tagger;
import java.io.File;
import java.io.IOException;
import common.FileInOut;
import edu.stanford.nlp.tagger.m... | true | true | public String addTags()
{
MaxentTagger tagger = null;
String result = new String ();
try {
tagger = new MaxentTagger(
"models/english-bidirectional-distsim.tagger");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException ... | public String addTags()
{
MaxentTagger tagger = null;
String result = new String ();
try {
tagger = new MaxentTagger("models/english-bidirectional-distsim.tagger");
}
finally {
}
try {
result = tagger.tagString(FileInOut.readFile(this.in));
} catch (IOException e) {
// TODO Auto-generated cat... |
diff --git a/servicemix-soap/src/main/java/org/apache/servicemix/soap/handlers/security/BaseCrypto.java b/servicemix-soap/src/main/java/org/apache/servicemix/soap/handlers/security/BaseCrypto.java
index e184477ef..676f6555f 100644
--- a/servicemix-soap/src/main/java/org/apache/servicemix/soap/handlers/security/BaseCryp... | true | true | public boolean validateCertPath(X509Certificate[] certs) throws WSSecurityException {
try {
// Generate cert path
java.util.List certList = java.util.Arrays.asList(certs);
CertPath path = this.getCertificateFactory().generateCertPath(certList);
// Use the cer... | public boolean validateCertPath(X509Certificate[] certs) throws WSSecurityException {
try {
// Generate cert path
java.util.List certList = java.util.Arrays.asList(certs);
CertPath path = this.getCertificateFactory().generateCertPath(certList);
// Use the cer... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/SimpleGroupCalculator.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/SimpleGroupCalculator.java
index de516e27f..29ff8c3ce 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/b... | true | true | public void next( int rowId ) throws DataException
{
// breakLevel is the outermost group number to differentiate row
// data
int breakLevel;
if ( this.previous == null )
breakLevel = 0; // Special case for first row
else
breakLevel = getBreakLevel( this.current, this.previous );
//String tobePrint... | public void next( int rowId ) throws DataException
{
// breakLevel is the outermost group number to differentiate row
// data
int breakLevel;
if ( this.previous == null )
breakLevel = 0; // Special case for first row
else
breakLevel = getBreakLevel( this.current, this.previous );
//String tobePrint... |
diff --git a/GAE/src/org/waterforpeople/mapping/analytics/dao/SurveyQuestionSummaryDao.java b/GAE/src/org/waterforpeople/mapping/analytics/dao/SurveyQuestionSummaryDao.java
index 9c2fa3b92..a090a1a3a 100644
--- a/GAE/src/org/waterforpeople/mapping/analytics/dao/SurveyQuestionSummaryDao.java
+++ b/GAE/src/org/waterforpe... | false | true | public static synchronized void incrementCount(QuestionAnswerStore answer,
int unit) {
PersistenceManager pm = PersistenceFilter.getManager();
String answerText = answer.getValue();
String[] answers;
if (answerText != null && answerText.contains("|")) {
answers = answerText.split("\\|");
} else {
an... | public static synchronized void incrementCount(QuestionAnswerStore answer,
int unit) {
PersistenceManager pm = PersistenceFilter.getManager();
String answerText = answer.getValue();
String[] answers;
if (answerText != null && answerText.contains("|")) {
answers = answerText.split("\\|");
} else {
an... |
diff --git a/src/org/newdawn/slick/util/pathfinding/AStarPathFinder.java b/src/org/newdawn/slick/util/pathfinding/AStarPathFinder.java
index e1442ad..4bbcae0 100644
--- a/src/org/newdawn/slick/util/pathfinding/AStarPathFinder.java
+++ b/src/org/newdawn/slick/util/pathfinding/AStarPathFinder.java
@@ -1,568 +1,568 @@
pa... | false | true | public Path findPath(Mover mover, int sx, int sy, int tx, int ty) {
current = null;
// easy first check, if the destination is blocked, we can't get there
this.mover = mover;
this.sourceX = sx;
this.sourceY = sy;
this.distance = 0;
if (map.blocked(this, tx, ty)) {
return null;
}
for (int x=... | public Path findPath(Mover mover, int sx, int sy, int tx, int ty) {
current = null;
// easy first check, if the destination is blocked, we can't get there
this.mover = mover;
this.sourceX = tx;
this.sourceY = ty;
this.distance = 0;
if (map.blocked(this, tx, ty)) {
return null;
}
for (int x=... |
diff --git a/lib/java/src/protocol/TProtocolUtil.java b/lib/java/src/protocol/TProtocolUtil.java
index 0b85d38b..5c665ab0 100644
--- a/lib/java/src/protocol/TProtocolUtil.java
+++ b/lib/java/src/protocol/TProtocolUtil.java
@@ -1,104 +1,104 @@
// Copyright (c) 2006- Facebook
// Distributed under the Thrift Software Li... | true | true | public static void skip(TProtocol prot, byte type)
throws TException {
switch (type) {
case TType.BOOL:
{
prot.readBool();
break;
}
case TType.BYTE:
{
prot.readByte();
break;
}
case TType.I16:
{
prot.readI16();
break;
... | public static void skip(TProtocol prot, byte type)
throws TException {
switch (type) {
case TType.BOOL:
{
prot.readBool();
break;
}
case TType.BYTE:
{
prot.readByte();
break;
}
case TType.I16:
{
prot.readI16();
break;
... |
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
index c0ae559a..757c279e 100644
--- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
+++ b/packages/SettingsP... | false | true | public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) {
Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to "
+ currentVersion);
int upgradeVersion = oldVersion;
// Pattern for upgrade blocks:
//
// if (upgrad... | public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) {
Log.w(TAG, "Upgrading settings database from version " + oldVersion + " to "
+ currentVersion);
int upgradeVersion = oldVersion;
// Pattern for upgrade blocks:
//
// if (upgrad... |
diff --git a/Projet_GL_2012/src/bebetes/Bebete.java b/Projet_GL_2012/src/bebetes/Bebete.java
index 41647e4..a6e0180 100644
--- a/Projet_GL_2012/src/bebetes/Bebete.java
+++ b/Projet_GL_2012/src/bebetes/Bebete.java
@@ -1,214 +1,215 @@
package bebetes;
/*
* Bebete.java
*
*/
/**
*
* @autho... | true | true | public void agit() {
currentState.agit();
// si on a un changement d'état voulue
if(currentState.getPendingState() != null){
//public BebeteHasard(ChampDeBebetes c, int x, int y, float dC, float vC, Color col) {
try {
int energy = currentState.getEner... | public void agit() {
currentState.agit();
// si on a un changement d'état voulue
if(currentState.getPendingState() != null){
//public BebeteHasard(ChampDeBebetes c, int x, int y, float dC, float vC, Color col) {
try {
int energy = currentState.getEner... |
diff --git a/mes-plugins/mes-plugins-cost-norms-for-operation/src/main/java/com/qcadoo/mes/costNormsForOperation/OperationsCostCalculationService.java b/mes-plugins/mes-plugins-cost-norms-for-operation/src/main/java/com/qcadoo/mes/costNormsForOperation/OperationsCostCalculationService.java
index d04b8b1f9a..c989551192 ... | true | true | Map<String, BigDecimal> calculateOperationCostWithoutSaving(final EntityTreeNode operationComponent, final BigDecimal margin,
final BigDecimal plannedQuantity, final Map<Entity, Integer> realizationTimes);
| Map<String, BigDecimal> estimateCostCalculationForHourlyWitoutSaving(final EntityTreeNode operationComponent,
final BigDecimal margin, final BigDecimal plannedQuantity, final Map<Entity, Integer> realizationTimes);
|
diff --git a/src/com/android/gallery3d/filtershow/PanelController.java b/src/com/android/gallery3d/filtershow/PanelController.java
index 6694e37f6..2a97e7e53 100644
--- a/src/com/android/gallery3d/filtershow/PanelController.java
+++ b/src/com/android/gallery3d/filtershow/PanelController.java
@@ -1,588 +1,588 @@
/*
*... | true | true | public void showComponent(View view) {
boolean doPanelTransition = true;
if (view instanceof FilterIconButton) {
ImageFilter f = ((FilterIconButton) view).getImageFilter();
if (f != null) {
// FIXME: this check shouldn't be necessary
doPanelTr... | public void showComponent(View view) {
boolean doPanelTransition = true;
if (view instanceof FilterIconButton) {
ImageFilter f = ((FilterIconButton) view).getImageFilter();
if (f != null) {
// FIXME: this check shouldn't be necessary
doPanelTr... |
diff --git a/src/main/java/org/rzo/yajsw/wrapper/FileUtils.java b/src/main/java/org/rzo/yajsw/wrapper/FileUtils.java
index 286e803..3f1e02f 100644
--- a/src/main/java/org/rzo/yajsw/wrapper/FileUtils.java
+++ b/src/main/java/org/rzo/yajsw/wrapper/FileUtils.java
@@ -1,223 +1,223 @@
/* This library is free software; you ... | true | true | public static Collection getFiles(String workingDir, String pattern)
{
ArrayList result = new ArrayList();
// check if we have a non patterned file name
File res = new File(pattern);
if (res.exists() && res.isAbsolute())
{
result.add(res);
return result;
}
// pk-20080626: added working dir
// r... | public static Collection getFiles(String workingDir, String pattern)
{
ArrayList result = new ArrayList();
// check if we have a non patterned file name
File res = new File(pattern);
if (res.exists() && res.isAbsolute())
{
result.add(res);
return result;
}
// pk-20080626: added working dir
// r... |
diff --git a/apps/ibis/benchmarks/pingPong/PollingPingPong.java b/apps/ibis/benchmarks/pingPong/PollingPingPong.java
index 3c7c4ed9..742f2f05 100644
--- a/apps/ibis/benchmarks/pingPong/PollingPingPong.java
+++ b/apps/ibis/benchmarks/pingPong/PollingPingPong.java
@@ -1,179 +1,179 @@
/* $Id$ */
import ibis.ipl.*;
... | true | true | public static void main(String[] args) {
int count = 100;
int repeat = 10;
int rank = 0, remoteRank = 1;
try {
StaticProperties s = new StaticProperties();
s.add("Serialization", "ibis");
s.add("Communication",
"OneToOne, ... | public static void main(String[] args) {
int count = 100;
int repeat = 10;
int rank = 0, remoteRank = 1;
try {
StaticProperties s = new StaticProperties();
s.add("Serialization", "ibis");
s.add("Communication",
"Poll, OneT... |
diff --git a/src/com/librelio/activity/BillingActivity.java b/src/com/librelio/activity/BillingActivity.java
index a4c59c0..2e48672 100644
--- a/src/com/librelio/activity/BillingActivity.java
+++ b/src/com/librelio/activity/BillingActivity.java
@@ -1,525 +1,527 @@
/*
* Licensed to the Apache Software Foundation (AS... | true | true | public void onServiceConnected(ComponentName name, IBinder service) {
billingService = IInAppBillingService.Stub.asInterface(service);
new AsyncTask<String, String, Bundle>() {
private Bundle ownedItems = null;
@Override
protected Bundle doInBackground(String... params) {
Bundle skuDetails... | public void onServiceConnected(ComponentName name, IBinder service) {
billingService = IInAppBillingService.Stub.asInterface(service);
new AsyncTask<String, String, Bundle>() {
private Bundle ownedItems = null;
@Override
protected Bundle doInBackground(String... params) {
Bundle skuDetails... |
diff --git a/src/frontend/org/voltdb/planner/QueryPlanner.java b/src/frontend/org/voltdb/planner/QueryPlanner.java
index c7792ab6c..024d156d6 100644
--- a/src/frontend/org/voltdb/planner/QueryPlanner.java
+++ b/src/frontend/org/voltdb/planner/QueryPlanner.java
@@ -1,315 +1,315 @@
/* This file is part of VoltDB.
* Co... | true | true | public CompiledPlan compilePlan(AbstractCostModel costModel, String sql, String stmtName, String procName, boolean singlePartition, ScalarValueHints[] paramHints) {
assert(costModel != null);
assert(sql != null);
assert(stmtName != null);
assert(procName != null);
// reset a... | public CompiledPlan compilePlan(AbstractCostModel costModel, String sql, String stmtName, String procName, boolean singlePartition, ScalarValueHints[] paramHints) {
assert(costModel != null);
assert(sql != null);
assert(stmtName != null);
assert(procName != null);
// reset a... |
diff --git a/wings2/demo/wingset/src/java/wingset/WingSetPane.java b/wings2/demo/wingset/src/java/wingset/WingSetPane.java
index 5bb9fb8d..b93e46f9 100644
--- a/wings2/demo/wingset/src/java/wingset/WingSetPane.java
+++ b/wings2/demo/wingset/src/java/wingset/WingSetPane.java
@@ -1,68 +1,68 @@
/*
* $Id$
* Copyright ... | true | true | public WingSetPane() {
setLayout(createResourceTemplate("/templates/ContentLayout.thtml"));
SAnchor anchor = new SAnchor("/wingset/" + getClass().getName().substring(getClass().getName().indexOf('.') + 1) + ".java");
anchor.setTarget("sourceWindow");
anchor.add(new SLabel("view java... | public WingSetPane() {
setLayout(createResourceTemplate("/templates/ContentLayout.thtml"));
SAnchor anchor = new SAnchor("../" + getClass().getName().substring(getClass().getName().indexOf('.') + 1) + ".java");
anchor.setTarget("sourceWindow");
anchor.add(new SLabel("view java sourc... |
diff --git a/core/src/visad/trunk/SocketServer.java b/core/src/visad/trunk/SocketServer.java
index 447aa7941..e30ef9dfb 100644
--- a/core/src/visad/trunk/SocketServer.java
+++ b/core/src/visad/trunk/SocketServer.java
@@ -1,292 +1,296 @@
//
// SocketServer.java
//
/*
VisAD system for interactive analysis and visu... | true | true | public void run() {
while (alive) {
synchronized (clientSockets) {
for (int i=0; i<clientInputs.size(); i++) {
DataInputStream in = (DataInputStream) clientInputs.elementAt(i);
// check for client requests in the form of MouseEvent data
try {
... | public void run() {
while (alive) {
synchronized (clientSockets) {
for (int i=0; i<clientInputs.size(); i++) {
DataInputStream in = (DataInputStream) clientInputs.elementAt(i);
// check for client requests in the form of MouseEvent data
try {
... |
diff --git a/src/com/dmdirc/parser/ProcessMode.java b/src/com/dmdirc/parser/ProcessMode.java
index f045219b8..762402784 100644
--- a/src/com/dmdirc/parser/ProcessMode.java
+++ b/src/com/dmdirc/parser/ProcessMode.java
@@ -1,353 +1,351 @@
/*
* Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes
*
... | true | true | public void processChanMode(String sParam, String token[], String sModestr[], String sChannelName) {
StringBuilder sFullModeStr = new StringBuilder();
String sNonUserModeStr = "";
String sNonUserModeStrParams = "";
String sModeParam;
String sTemp;
int nParam = 1;
long nTemp = 0, nValue = 0, nCurrent = 0;... | public void processChanMode(String sParam, String token[], String sModestr[], String sChannelName) {
StringBuilder sFullModeStr = new StringBuilder();
String sNonUserModeStr = "";
String sNonUserModeStrParams = "";
String sModeParam;
String sTemp;
int nParam = 1;
long nTemp = 0, nValue = 0, nCurrent = 0;... |
diff --git a/app/controllers/Groups.java b/app/controllers/Groups.java
index f9c8df8..98c7141 100644
--- a/app/controllers/Groups.java
+++ b/app/controllers/Groups.java
@@ -1,155 +1,155 @@
package controllers;
import java.io.Console;
import java.io.IOException;
import java.lang.reflect.Type;
import java.net.URLE... | true | true | public static void updateComment(Long id) throws IOException {
String json = IOUtils.toString(request.body);
System.out.println("PUT comments/id:"+ json);
Comment_request req = new Gson().fromJson(json, Comment_request.class);
System.out.println(json);
Long comment_id = req.comment_id;... | public static void updateComment(Long id) throws IOException {
String json = IOUtils.toString(request.body);
System.out.println("PUT comments/id:"+ json);
Comment_request req = new Gson().fromJson(json, Comment_request.class);
System.out.println(json);
Long comment_id = req.comment_id;... |
diff --git a/src/com/fisherevans/lrk/states/CharacterState.java b/src/com/fisherevans/lrk/states/CharacterState.java
index d2c9c37..2cd6ecb 100644
--- a/src/com/fisherevans/lrk/states/CharacterState.java
+++ b/src/com/fisherevans/lrk/states/CharacterState.java
@@ -1,231 +1,231 @@
package com.fisherevans.lrk.states;
... | true | true | public void renderInventory(Graphics gfx, InventoryType type)
{
// title
GFX.drawText(0, 0, _hWidth, INV_TITLE_HEIGHT, GFX.TEXT_CENTER, GFX.TEXT_CENTER, Resources.getFont(2), Color.white, type.toString());
// list bg
gfx.setColor(Color.darkGray);
gfx.fillRect(INV_LIST_MA... | public void renderInventory(Graphics gfx, InventoryType type)
{
// title
GFX.drawText(0, 0, _hWidth, INV_TITLE_HEIGHT, GFX.TEXT_CENTER, GFX.TEXT_CENTER, Resources.getFont(2), Color.white, type.toString());
// list bg
gfx.setColor(Color.darkGray);
gfx.fillRect(INV_LIST_MA... |
diff --git a/src/ac/robinson/mediatablet/MediaViewerActivity.java b/src/ac/robinson/mediatablet/MediaViewerActivity.java
index 4795d32..19f6aba 100644
--- a/src/ac/robinson/mediatablet/MediaViewerActivity.java
+++ b/src/ac/robinson/mediatablet/MediaViewerActivity.java
@@ -1,609 +1,609 @@
/*
* Copyright (C) 2012 Sim... | true | true | private void sendMedia() {
if (MediaTablet.DIRECTORY_TEMP == null) {
UIUtilities.showToast(MediaViewerActivity.this, R.string.export_missing_directory, true);
return;
}
boolean canCopyToExternal = true;
if (IOUtilities.isInternalPath(MediaTablet.DIRECTORY_TEMP.getAbsolutePath())) {
canCopyToExternal =... | private void sendMedia() {
if (MediaTablet.DIRECTORY_TEMP == null) {
UIUtilities.showToast(MediaViewerActivity.this, R.string.export_missing_directory, true);
return;
}
boolean canCopyToExternal = true;
if (IOUtilities.isInternalPath(MediaTablet.DIRECTORY_TEMP.getAbsolutePath())) {
canCopyToExternal =... |
diff --git a/src/main/java/fizzbuzz/FizzBuzzWithSwitch.java b/src/main/java/fizzbuzz/FizzBuzzWithSwitch.java
index bb904d5..19c1342 100644
--- a/src/main/java/fizzbuzz/FizzBuzzWithSwitch.java
+++ b/src/main/java/fizzbuzz/FizzBuzzWithSwitch.java
@@ -1,25 +1,25 @@
package fizzbuzz;
public class FizzBuzzWithSwitch imp... | true | true | public String messageFor(int number) {
// Simple bit flag approach
int status = isMultipleOf(3, number);
status |= (isMultipleOf(5, number) << 1);
switch(status){
case 0: return "" + number; // Simples
case 1: return "Fizz"; // Multiple of 3
... | public String messageFor(int number) {
// Simple bit flag approach
int status = isMultipleOf(3, number);
status |= (isMultipleOf(5, number) << 1);
switch(status){
case 0: return "" + number; // Simples
case 1: return "Fizz"; // Multiple of 3
... |
diff --git a/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java b/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java
index 63023fd3d4..774aa4698c 100644
--- a/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java
+++ b/drools-core/src/main/java/org/drools/reteoo/ReteooBuilder.java
@@ -1... | true | true | private void addRule(final And and,
final Rule rule) throws InvalidPatternException {
this.objectSource = null;
this.tupleSource = null;
this.declarations = new HashMap();
this.objectType = new LinkedHashMap();
if ( rule instanceof Query ) {
... | private void addRule(final And and,
final Rule rule) throws InvalidPatternException {
this.objectSource = null;
this.tupleSource = null;
this.declarations = new HashMap();
this.objectType = new LinkedHashMap();
if ( rule instanceof Query ) {
... |
diff --git a/src/de/thm/ateam/memory/engine/type/SQLite.java b/src/de/thm/ateam/memory/engine/type/SQLite.java
index 8b38414..af92d15 100644
--- a/src/de/thm/ateam/memory/engine/type/SQLite.java
+++ b/src/de/thm/ateam/memory/engine/type/SQLite.java
@@ -1,63 +1,62 @@
/* memory
* de.thm.ateam.memory.engine
* SQLite.... | true | true | public void onCreate(SQLiteDatabase db) {
db.execSQL("CREATE TABLE " + PlayerDB.TABLE_NAME + "("
+ PlayerDB.ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
+ PlayerDB.NICK + " VARCHAR(42),"
+ PlayerDB.WIN + " INTEGER,"
+ PlayerDB.LOSE + " INTEGER,"
+ PlayerDB.DRAW + " INTEGER,"
+ PlayerDB.HIT + " ... | public void onCreate(SQLiteDatabase db) {
db.execSQL("CREATE TABLE " + PlayerDB.TABLE_NAME + "("
+ PlayerDB.ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
+ PlayerDB.NICK + " VARCHAR(42),"
+ PlayerDB.WIN + " INTEGER,"
+ PlayerDB.LOSE + " INTEGER,"
+ PlayerDB.DRAW + " INTEGER,"
+ PlayerDB.HIT + " ... |
diff --git a/com/buglabs/bug/module/camera/CameraModlet.java b/com/buglabs/bug/module/camera/CameraModlet.java
index bd68fb3..e768ace 100644
--- a/com/buglabs/bug/module/camera/CameraModlet.java
+++ b/com/buglabs/bug/module/camera/CameraModlet.java
@@ -1,308 +1,308 @@
/* Copyright (c) 2007, 2008 Bug Labs, Inc.
* All... | true | true | public void start() throws Exception {
modProps = new ArrayList();
camera = new Camera();
//TODO: Change this when we move to linux 2.6.22 or greater since
//BMI agent should listen to UDEV ACTION=="online" before starting modlets
try {
CharDeviceUtils.openDeviceWithRetry(camera, CAMERA_DEVICE_NODE, 2);
... | public void start() throws Exception {
modProps = new ArrayList();
camera = new Camera();
//TODO: Change this when we move to linux 2.6.22 or greater since
//BMI agent should listen to UDEV ACTION=="online" before starting modlets
try {
CharDeviceUtils.openDeviceWithRetry(camera, CAMERA_DEVICE_NODE, 2);
... |
diff --git a/src/server/src/main/java/org/apache/accumulo/server/logger/LogWriter.java b/src/server/src/main/java/org/apache/accumulo/server/logger/LogWriter.java
index a8bc87c5d..53104ef2b 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/logger/LogWriter.java
+++ b/src/server/src/main/java/org/apache/a... | false | true | public LogCopyInfo startCopy(TInfo info, AuthInfo credentials, final String localLog, final String fullyQualifiedFileName, final boolean sort) {
log.info("Copying " + localLog + " to " + fullyQualifiedFileName);
final long t1 = System.currentTimeMillis();
try {
Long id = file2id.get(localLog);
... | public LogCopyInfo startCopy(TInfo info, AuthInfo credentials, final String localLog, final String fullyQualifiedFileName, final boolean sort) {
log.info("Copying " + localLog + " to " + fullyQualifiedFileName);
final long t1 = System.currentTimeMillis();
try {
Long id = file2id.get(localLog);
... |
diff --git a/jason/asSyntax/Literal.java b/jason/asSyntax/Literal.java
index 841557c..816ba1a 100644
--- a/jason/asSyntax/Literal.java
+++ b/jason/asSyntax/Literal.java
@@ -1,360 +1,360 @@
// ----------------------------------------------------------------------------
// Copyright (C) 2003 Rafael H. Bordini, Jomi F. ... | false | true | public Iterator<Unifier> logicalConsequence(final Agent ag, final Unifier un) {
if (isInternalAction()) {
try {
// clone terms array
Term[] current = getTermsArray();
Term[] clone = new Term[current.length];
for (int i=0; i<clone.lengt... | public Iterator<Unifier> logicalConsequence(final Agent ag, final Unifier un) {
if (isInternalAction()) {
try {
// clone terms array
Term[] current = getTermsArray();
Term[] clone = new Term[current.length];
for (int i=0; i<clone.lengt... |
diff --git a/saiku-core/saiku-web/src/main/java/org/saiku/web/rest/resources/QueryResource.java b/saiku-core/saiku-web/src/main/java/org/saiku/web/rest/resources/QueryResource.java
index 298ff57a..6c1b3093 100644
--- a/saiku-core/saiku-web/src/main/java/org/saiku/web/rest/resources/QueryResource.java
+++ b/saiku-core/s... | false | true | public Status updateSelections(
@PathParam("queryname") String queryName,
@PathParam("axis") String axisName,
@PathParam("dimension") String dimensionName,
MultivaluedMap<String, String> formParams) {
if (log.isDebugEnabled()) {
log.debug("TRACK\t" + "\t/query/" + queryName + "/axis/"+axisName+"/di... | public Status updateSelections(
@PathParam("queryname") String queryName,
@PathParam("axis") String axisName,
@PathParam("dimension") String dimensionName,
@FormParam("selections") String selectionJSON) {
if (log.isDebugEnabled()) {
log.debug("TRACK\t" + "\t/query/" + queryName + "/axis/"+axisName+... |
diff --git a/graphviewer/src/jp/ac/osaka_u/ist/sel/metricstool/graphviewer/GraphViewer.java b/graphviewer/src/jp/ac/osaka_u/ist/sel/metricstool/graphviewer/GraphViewer.java
index 204ba3c6..152ce110 100644
--- a/graphviewer/src/jp/ac/osaka_u/ist/sel/metricstool/graphviewer/GraphViewer.java
+++ b/graphviewer/src/jp/ac/os... | true | true | public static void main(String[] args) {
try {
//�@�R�}���h���C������������
final Options options = new Options();
{
final Option d = new Option("d", "directory", true, "target directory");
d.setArgName("directory");
d.se... | public static void main(String[] args) {
try {
//�@�R�}���h���C������������
final Options options = new Options();
{
final Option d = new Option("d", "directory", true, "target directory");
d.setArgName("directory");
d.se... |
diff --git a/src/com/android/mms/ui/ConversationListItem.java b/src/com/android/mms/ui/ConversationListItem.java
index b7f6de72..1d407473 100644
--- a/src/com/android/mms/ui/ConversationListItem.java
+++ b/src/com/android/mms/ui/ConversationListItem.java
@@ -1,231 +1,231 @@
/*
* Copyright (C) 2008 Esmertec AG.
* C... | true | true | public final void bind(Context context, final Conversation conversation) {
//if (DEBUG) Log.v(TAG, "bind()");
mConversation = conversation;
int backgroundId;
if (conversation.isChecked()) {
backgroundId = R.drawable.list_selected_holo;
} else if (conversation.ha... | public final void bind(Context context, final Conversation conversation) {
//if (DEBUG) Log.v(TAG, "bind()");
mConversation = conversation;
int backgroundId;
if (conversation.isChecked()) {
backgroundId = R.drawable.list_selected_holo_light;
} else if (conversat... |
diff --git a/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java b/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java
index 7684ddd50..dfce2d4ce 100644
--- a/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java
+++ b/utils/src/main/java/org/apache/mahout/utils/ve... | true | true | public static void main(String[] args) throws IOException {
DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
ArgumentBuilder abuilder = new ArgumentBuilder();
GroupBuilder gbuilder = new GroupBuilder();
Option inputOpt = obuilder.withLongName("dir").withRequired(true).withArgument(
... | public static void main(String[] args) throws IOException {
DefaultOptionBuilder obuilder = new DefaultOptionBuilder();
ArgumentBuilder abuilder = new ArgumentBuilder();
GroupBuilder gbuilder = new GroupBuilder();
Option inputOpt = obuilder.withLongName("dir").withRequired(true).withArgument(
... |
diff --git a/src/java/com/google/android/mms/pdu/PduComposer.java b/src/java/com/google/android/mms/pdu/PduComposer.java
index d426f89..bb44bab 100644
--- a/src/java/com/google/android/mms/pdu/PduComposer.java
+++ b/src/java/com/google/android/mms/pdu/PduComposer.java
@@ -1,1179 +1,1186 @@
/*
* Copyright (C) 2007-20... | false | true | private int makeMessageBody() {
// 1. add body informations
mStack.newbuf(); // Switching buffer because we need to
PositionMarker ctStart = mStack.mark();
// This contentTypeIdentifier should be used for type of attachment...
String contentType = new String(mPduHeader.get... | private int makeMessageBody() {
// 1. add body informations
mStack.newbuf(); // Switching buffer because we need to
PositionMarker ctStart = mStack.mark();
// This contentTypeIdentifier should be used for type of attachment...
String contentType = new String(mPduHeader.get... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java
index 234a2e998..2ab2ccbe3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/... | true | true | public void contextMenuAboutToShow(IMenuManager manager, boolean addClipboard) {
if (editor != null)
updateSelectableActions(editor.getSelection());
if (addClipboard) {
addClipboardActions(manager);
}
if (editor.getTaskEditorInput() == null && !(editor.getEditorInput() instanceof NewTaskEditorInput)) {
... | public void contextMenuAboutToShow(IMenuManager manager, boolean addClipboard) {
if (editor != null)
updateSelectableActions(editor.getSelection());
if (addClipboard) {
addClipboardActions(manager);
}
if (editor.getTaskEditorInput() == null && !(editor.getEditorInput() instanceof NewTaskEditorInput)) {
... |
diff --git a/java/src/com/google/appengine/tools/mapreduce/InputStreamIterator.java b/java/src/com/google/appengine/tools/mapreduce/InputStreamIterator.java
index 67c816f..d13711e 100644
--- a/java/src/com/google/appengine/tools/mapreduce/InputStreamIterator.java
+++ b/java/src/com/google/appengine/tools/mapreduce/Inpu... | true | true | public boolean hasNext() {
try {
if (input.getCount() == 0 && skipFirstTerminator) {
// find the first record start;
if (!skipUntilNextRecord(input)) {
return false;
}
}
// we are reading one record after split-end
// and are skipping first record for all ... | public boolean hasNext() {
try {
if (input.getCount() == 0 && skipFirstTerminator) {
// find the first record start;
if (!skipUntilNextRecord(input)) {
return false;
}
}
// we are reading one record after split-end
// and are skipping first record for all ... |
diff --git a/src/com/google/doclava/ClassInfo.java b/src/com/google/doclava/ClassInfo.java
index 77863fd..b97c494 100644
--- a/src/com/google/doclava/ClassInfo.java
+++ b/src/com/google/doclava/ClassInfo.java
@@ -1,1716 +1,1714 @@
/*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version... | true | true | public void makeHDF(Data data) {
int i, j, n;
String name = name();
String qualified = qualifiedName();
AttributeInfo[] selfAttributes = selfAttributes();
MethodInfo[] methods = selfMethods();
FieldInfo[] fields = selfFields();
FieldInfo[] enumConstants = enumConstants();
MethodInfo[] ... | public void makeHDF(Data data) {
int i, j, n;
String name = name();
String qualified = qualifiedName();
AttributeInfo[] selfAttributes = selfAttributes();
MethodInfo[] methods = selfMethods();
FieldInfo[] fields = selfFields();
FieldInfo[] enumConstants = enumConstants();
MethodInfo[] ... |
diff --git a/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/db/model/DbOdcsContext.java b/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/db/model/DbOdcsContext.java
index b2c003af..88724fa5 100644
--- a/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/db/model/DbOd... | true | true | public PipelineCommand[] selectPipelineCommands(int pipelineId) throws DbOdcsException {
WrappedResultSet resultSet = null;
try {
ArrayList<PipelineCommand> dbPipelineCommands = new ArrayList<PipelineCommand>();
resultSet = select(SQL.SELECT_PIPELINE_COMMANDS, pipelineId);
while(resultSet.next()) {
P... | public PipelineCommand[] selectPipelineCommands(int pipelineId) throws DbOdcsException {
WrappedResultSet resultSet = null;
try {
ArrayList<PipelineCommand> dbPipelineCommands = new ArrayList<PipelineCommand>();
resultSet = select(SQL.SELECT_PIPELINE_COMMANDS, pipelineId);
while(resultSet.next()) {
P... |
diff --git a/src/soot/jimple/toolkits/callgraph/CallGraphBuilder.java b/src/soot/jimple/toolkits/callgraph/CallGraphBuilder.java
index 3228fd89..a6274d37 100644
--- a/src/soot/jimple/toolkits/callgraph/CallGraphBuilder.java
+++ b/src/soot/jimple/toolkits/callgraph/CallGraphBuilder.java
@@ -1,382 +1,384 @@
/* Soot - a ... | false | true | public void getImplicitTargets( SootMethod source ) {
final SootClass scl = source.getDeclaringClass();
if( source.isNative() ) return;
if( source.getSubSignature().indexOf( "<init>" ) >= 0 ) {
handleInit(source, scl);
}
Body b = source.retrieveActiveBody();
... | public void getImplicitTargets( SootMethod source ) {
final SootClass scl = source.getDeclaringClass();
if( source.isNative() ) return;
if( source.getSubSignature().indexOf( "<init>" ) >= 0 ) {
handleInit(source, scl);
}
Body b = source.retrieveActiveBody();
... |
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.