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/TrackerExperiment/src/tracker/Tracker.java b/TrackerExperiment/src/tracker/Tracker.java
index ea34f83..07ad22c 100644
--- a/TrackerExperiment/src/tracker/Tracker.java
+++ b/TrackerExperiment/src/tracker/Tracker.java
@@ -1,85 +1,89 @@
package tracker;
import com.sun.squawk.util.MathUtils;
import edu.wp... | true | true | public void teleopPeriodic() {
try {
ColorImage img = camera.getImage();
BinaryImage thresholdImg = img.thresholdRGB(0, 100, 230, 255, 230, 255);
BinaryImage bigsImg = thresholdImg.removeSmallObjects(false, 2);
BinaryImage convexHullImg = bigsImg.convexHull(fa... | public void teleopPeriodic() {
try {
ColorImage img = camera.getImage();
BinaryImage thresholdImg = img.thresholdRGB(0, 100, 230, 255, 230, 255);
BinaryImage bigsImg = thresholdImg.removeSmallObjects(false, 2);
BinaryImage convexHullImg = bigsImg.convexHull(fa... |
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/model/RulesCurator.java b/proxy/src/main/java/org/fedoraproject/candlepin/model/RulesCurator.java
index 3de7f038c..0eb18c27a 100644
--- a/proxy/src/main/java/org/fedoraproject/candlepin/model/RulesCurator.java
+++ b/proxy/src/main/java/org/fedoraproject/candl... | true | true | private void initiateRulesFromFile() {
String path = "/rules/satellite-rules.js";
InputStream is = path.getClass().getResourceAsStream(path);
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder builder = new StringBuilder();
String line = null... | private void initiateRulesFromFile() {
String path = "/rules/satellite-rules.js";
InputStream is = this.getClass().getResourceAsStream(path);
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder builder = new StringBuilder();
String line = null... |
diff --git a/compile-testing/src/main/java/com/google/testing/compile/JavaSourcesSubject.java b/compile-testing/src/main/java/com/google/testing/compile/JavaSourcesSubject.java
index 13d65eb..8e66c3d 100644
--- a/compile-testing/src/main/java/com/google/testing/compile/JavaSourcesSubject.java
+++ b/compile-testing/src/... | true | true | public FileClause hasError(final String message) {
FluentIterable<Diagnostic<? extends JavaFileObject>> diagnostics =
FluentIterable.from(result.diagnosticsByKind.get(Kind.ERROR));
final FluentIterable<Diagnostic<? extends JavaFileObject>> diagnosticsWithMessage =
diagnostics.filter(... | public FileClause hasError(final String message) {
FluentIterable<Diagnostic<? extends JavaFileObject>> diagnostics =
FluentIterable.from(result.diagnosticsByKind.get(Kind.ERROR));
final FluentIterable<Diagnostic<? extends JavaFileObject>> diagnosticsWithMessage =
diagnostics.filter(... |
diff --git a/src/Main.java b/src/Main.java
index 7d5e90f..326f945 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,5 +1,5 @@
public class Main {
public static void main(String[] args) {
- System.out.println("1+1=2");
+ System.out.println("1+1=7");
}
}
| true | true | public static void main(String[] args) {
System.out.println("1+1=2");
}
| public static void main(String[] args) {
System.out.println("1+1=7");
}
|
diff --git a/src/web/org/codehaus/groovy/grails/web/pages/Parse.java b/src/web/org/codehaus/groovy/grails/web/pages/Parse.java
index 6b5649a90..9892171d4 100644
--- a/src/web/org/codehaus/groovy/grails/web/pages/Parse.java
+++ b/src/web/org/codehaus/groovy/grails/web/pages/Parse.java
@@ -1,666 +1,666 @@
/*
* Copyrig... | true | true | private void startTag() {
if (!finalPass) return;
tagIndex++;
String text;
StringBuffer buf = new StringBuffer( scan.getToken().trim() );
String ns = scan.getNamespace();
state = scan.nextToken();
while(state != HTML && state != GEND_TAG && state != ... | private void startTag() {
if (!finalPass) return;
tagIndex++;
String text;
StringBuffer buf = new StringBuffer( scan.getToken().trim() );
String ns = scan.getNamespace();
state = scan.nextToken();
while(state != HTML && state != GEND_TAG && state != ... |
diff --git a/src/openblocks/common/tileentity/TileEntityXPDrain.java b/src/openblocks/common/tileentity/TileEntityXPDrain.java
index 35ecbac4..0b1c2861 100644
--- a/src/openblocks/common/tileentity/TileEntityXPDrain.java
+++ b/src/openblocks/common/tileentity/TileEntityXPDrain.java
@@ -1,109 +1,110 @@
package openbloc... | false | true | public void updateEntity() {
super.updateEntity();
if (OpenMods.proxy.getTicks(worldObj) % 100 == 0) {
searchForTank();
}
if (targetTank != null) {
TileEntity tile = targetTank.get();
if (!(tile instanceof IFluidHandler) || tile.isInvalid()) {
targetTank = null;
} else {
if (!worldObj.isRe... | public void updateEntity() {
super.updateEntity();
if (OpenMods.proxy.getTicks(worldObj) % 100 == 0) {
searchForTank();
}
if (targetTank != null) {
TileEntity tile = targetTank.get();
if (!(tile instanceof IFluidHandler) || tile.isInvalid()) {
targetTank = null;
} else {
if (!worldObj.isRe... |
diff --git a/cloudfoundry-caldecott-lib/src/main/java/org/cloudfoundry/caldecott/client/TunnelHandler.java b/cloudfoundry-caldecott-lib/src/main/java/org/cloudfoundry/caldecott/client/TunnelHandler.java
index b2793a3..85f496c 100644
--- a/cloudfoundry-caldecott-lib/src/main/java/org/cloudfoundry/caldecott/client/Tunnel... | true | true | public void run() {
if (logger.isDebugEnabled()) {
logger.debug("Starting new reader thread: " + this);
}
boolean retry = false;
try {
while (client.isOpen()) {
try {
byte[] out = tunnel.read(retry);
retry = false;
client.write(out);
} catch (HttpStatusCodeException hsc... | public void run() {
if (logger.isDebugEnabled()) {
logger.debug("Starting new reader thread: " + this);
}
boolean retry = false;
try {
while (client.isOpen()) {
try {
byte[] out = tunnel.read(retry);
retry = false;
client.write(out);
} catch (HttpStatusCodeException hsc... |
diff --git a/cadpage/src/net/anei/cadpage/parsers/OR/ORCrookCountyParser.java b/cadpage/src/net/anei/cadpage/parsers/OR/ORCrookCountyParser.java
index 3d3dea922..1363bb0cc 100644
--- a/cadpage/src/net/anei/cadpage/parsers/OR/ORCrookCountyParser.java
+++ b/cadpage/src/net/anei/cadpage/parsers/OR/ORCrookCountyParser.java... | true | true | protected boolean parseMsg(String body, Data data) {
if (!body.startsWith("INCIDENT NEW\n") && !body.startsWith("UNIT DISPATCH\n")) return false;
body = body.replace("\nEVENT # ","\nEVENT:").replace("\nUNITS ","\nUNITS:")
.replace("\nPRIORITY ","\nPRIORITY:").replace("\nLOCATION ","\nLOCA... | protected boolean parseMsg(String body, Data data) {
if (!body.startsWith("INCIDENT NEW\n") && !body.startsWith("UNIT DISPATCH\n")) return false;
body = body.replace("\nEVENT # ","\nEVENT:").replace("\nUNITS ","\nUNITS:")
.replace("\nPRIORITY ","\nPRIORITY:").replace("\nLOCATION ","\nLOCA... |
diff --git a/src/com/themagpi/android/MagPiApplication.java b/src/com/themagpi/android/MagPiApplication.java
index 7b0ebd1..c867017 100644
--- a/src/com/themagpi/android/MagPiApplication.java
+++ b/src/com/themagpi/android/MagPiApplication.java
@@ -1,22 +1,21 @@
package com.themagpi.android;
import com.nostra13.uni... | true | true | public void onCreate() {
super.onCreate();
// Create global configuration and initialize ImageLoader with this configuration
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext())
.enableLogging()
.memoryCacheSize(41943040)
... | public void onCreate() {
super.onCreate();
// Create global configuration and initialize ImageLoader with this configuration
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext())
.memoryCacheSize(41943040)
.discCacheSize(1048... |
diff --git a/impl/src/main/java/org/richfaces/skin/AbstractSkinFactory.java b/impl/src/main/java/org/richfaces/skin/AbstractSkinFactory.java
index 3c43ea4a0..e909a7d6f 100644
--- a/impl/src/main/java/org/richfaces/skin/AbstractSkinFactory.java
+++ b/impl/src/main/java/org/richfaces/skin/AbstractSkinFactory.java
@@ -1,1... | false | true | public Skin getSkin(FacesContext context, String name) {
if (null == name) {
throw new SkinNotFoundException(Messages.getMessage(Messages.NULL_SKIN_NAME_ERROR));
}
FutureTask<Skin> skinFuture = skins.get(name);
if (skinFuture == null) {
FutureTask<Ski... | public Skin getSkin(FacesContext context, String name) {
if (null == name) {
throw new SkinNotFoundException(Messages.getMessage(Messages.NULL_SKIN_NAME_ERROR));
}
FutureTask<Skin> skinFuture = skins.get(name);
if (skinFuture == null) {
FutureTask<Ski... |
diff --git a/h2/src/test/org/h2/test/jdbcx/TestConnectionPool.java b/h2/src/test/org/h2/test/jdbcx/TestConnectionPool.java
index 5ff13744d..0dd3a5df6 100644
--- a/h2/src/test/org/h2/test/jdbcx/TestConnectionPool.java
+++ b/h2/src/test/org/h2/test/jdbcx/TestConnectionPool.java
@@ -1,248 +1,248 @@
/*
* Copyright 2004-... | true | true | private void testThreads() throws Exception {
final int len = getSize(4, 20);
final JdbcConnectionPool man = getConnectionPool(len - 2);
final boolean[] stop = { false };
/**
* This class gets and returns connections from the pool.
*/
class TestRunner imple... | private void testThreads() throws Exception {
final int len = getSize(4, 20);
final JdbcConnectionPool man = getConnectionPool(len - 2);
final boolean[] stop = { false };
/**
* This class gets and returns connections from the pool.
*/
class TestRunner imple... |
diff --git a/src/edu/cmu/cs/in/hoop/hoops/save/HoopCSVWriter.java b/src/edu/cmu/cs/in/hoop/hoops/save/HoopCSVWriter.java
index 591722f2..37173ebb 100644
--- a/src/edu/cmu/cs/in/hoop/hoops/save/HoopCSVWriter.java
+++ b/src/edu/cmu/cs/in/hoop/hoops/save/HoopCSVWriter.java
@@ -1,155 +1,156 @@
/**
* Author: Martin van ... | false | true | public Boolean runHoop (HoopBase inHoop)
{
debug ("runHoop ()");
String sepChar=getSeparatorChar ();
debug ("Writing CSV file using separator: " + mode.getValue() + ": " + sepChar);
StringBuffer formatted=new StringBuffer ();
if ((this.getExecutionCount()==0) && (includeHeader.getPropValue()... | public Boolean runHoop (HoopBase inHoop)
{
debug ("runHoop ()");
String sepChar=getSeparatorChar ();
debug ("Writing CSV file using separator: " + mode.getValue() + ": " + sepChar);
StringBuffer formatted=new StringBuffer ();
if ((this.getExecutionCount()==0) && (includeHeader.getPropValue()... |
diff --git a/josm-todo/src/org/openstreetmap/josm/plugins/todo/TodoDialog.java b/josm-todo/src/org/openstreetmap/josm/plugins/todo/TodoDialog.java
index 2b02a8f..8a1db30 100644
--- a/josm-todo/src/org/openstreetmap/josm/plugins/todo/TodoDialog.java
+++ b/josm-todo/src/org/openstreetmap/josm/plugins/todo/TodoDialog.java... | true | true | protected void buildContentPanel() {
DefaultListSelectionModel selectionModel = new DefaultListSelectionModel();
model = new TodoListModel(selectionModel);
lstPrimitives = new JList(model);
lstPrimitives.setSelectionModel(selectionModel);
lstPrimitives.setSelectionMode(ListS... | protected void buildContentPanel() {
DefaultListSelectionModel selectionModel = new DefaultListSelectionModel();
model = new TodoListModel(selectionModel);
lstPrimitives = new JList(model);
lstPrimitives.setSelectionModel(selectionModel);
lstPrimitives.setSelectionMode(ListS... |
diff --git a/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/xgmml/handler/AttributeValueUtil.java b/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/xgmml/handler/AttributeValueUtil.java
index b5e444d5b..95a170b08 100644
--- a/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/xgmml/handler/A... | true | true | protected ParseState handleAttribute(Attributes atts) throws SAXParseException {
ParseState parseState = ParseState.NONE;
final String name = atts.getValue("name");
final String type = atts.getValue("type");
final String equationStr = atts.getValue("cy:equation");
final boolean isEqua... | protected ParseState handleAttribute(Attributes atts) throws SAXParseException {
ParseState parseState = ParseState.NONE;
final String name = atts.getValue("name");
final String type = atts.getValue("type");
final boolean isEquation = ObjectTypeMap.fromXGMMLBoolean(atts.getValue("cy:equati... |
diff --git a/test/src/org/broad/igv/data/HostedDataTest.java b/test/src/org/broad/igv/data/HostedDataTest.java
index f0123ccf6..46e738683 100644
--- a/test/src/org/broad/igv/data/HostedDataTest.java
+++ b/test/src/org/broad/igv/data/HostedDataTest.java
@@ -1,258 +1,264 @@
/*
* Copyright (c) 2007-2012 The Broad Insti... | true | true | public void testLoadServerData() throws Exception {
DateFormat dateFormat = new SimpleDateFormat("yyyy_MM_dd-HH-mm-ss");
Date date = new Date();
String outPath = TestUtils.DATA_DIR + "failed_loaded_files_" + dateFormat.format(date) + ".txt";
errorWriter = new PrintStream(outPath);
... | public void testLoadServerData() throws Exception {
DateFormat dateFormat = new SimpleDateFormat("yyyy_MM_dd-HH-mm-ss");
Date date = new Date();
String outPath = TestUtils.DATA_DIR + "failed_loaded_files_" + dateFormat.format(date) + ".txt";
errorWriter = new PrintStream(outPath);
... |
diff --git a/src/mypackage/Gardenshift.java b/src/mypackage/Gardenshift.java
index d6c12c4..979adf5 100644
--- a/src/mypackage/Gardenshift.java
+++ b/src/mypackage/Gardenshift.java
@@ -1,1753 +1,1754 @@
/*
* Gardenshift Webservices with Resteasy for Jboss
*
*
* Author Comment Modified
*
... | false | true | public Response adduser(@FormParam("username") String userID,
@FormParam("password") String password,
@FormParam("email") String emailAdd) {
/*
* Adds a new username to the database.
*/
Boolean userExists = false; // See if username already exists
Boolean emailExists = false; // See if email alread... | public Response adduser(@FormParam("username") String userID,
@FormParam("password") String password,
@FormParam("email") String emailAdd) {
/*
* Adds a new username to the database.
*/
Boolean userExists = false; // See if username already exists
Boolean emailExists = false; // See if email alread... |
diff --git a/src/net/czlee/debatekeeper/DebateFormatBuilderFromXml.java b/src/net/czlee/debatekeeper/DebateFormatBuilderFromXml.java
index 3d686b5..8b20534 100644
--- a/src/net/czlee/debatekeeper/DebateFormatBuilderFromXml.java
+++ b/src/net/czlee/debatekeeper/DebateFormatBuilderFromXml.java
@@ -1,756 +1,758 @@
/*
*... | true | true | public void startElement(String uri, String localName, String qName,
Attributes atts) throws SAXException {
if (!uri.equals(DEBATING_TIMER_URI))
return;
/**
* <debateformat name="something" schemaversion="1.0">
*/
if ... | public void startElement(String uri, String localName, String qName,
Attributes atts) throws SAXException {
if (!uri.equals(DEBATING_TIMER_URI))
return;
/**
* <debateformat name="something" schemaversion="1.0">
*/
if ... |
diff --git a/mbt/src/org/tigris/mbt/GUI/App.java b/mbt/src/org/tigris/mbt/GUI/App.java
index 2f17ddd..fc56135 100644
--- a/mbt/src/org/tigris/mbt/GUI/App.java
+++ b/mbt/src/org/tigris/mbt/GUI/App.java
@@ -1,687 +1,687 @@
package org.tigris.mbt.GUI;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import... | true | true | public void addButtons(JToolBar toolBar) {
loadButton = makeNavigationButton("open", LOAD,
"Load a model (graphml file)",
"Load", true);
toolBar.add(loadButton);
reloadButton = makeNavigationButton("reload", RELOAD,
"Reload already loaded Model",
"Reload", fa... | public void addButtons(JToolBar toolBar) {
loadButton = makeNavigationButton("open", LOAD,
"Load a model (graphml file)",
"Load", true);
toolBar.add(loadButton);
reloadButton = makeNavigationButton("reload", RELOAD,
"Reload already loaded Model",
"Reload", fa... |
diff --git a/libraries/javalib/java/lang/System.java b/libraries/javalib/java/lang/System.java
index eee51db42..7b158a77e 100644
--- a/libraries/javalib/java/lang/System.java
+++ b/libraries/javalib/java/lang/System.java
@@ -1,240 +1,240 @@
/*
* Java core library component.
*
* Copyright (c) 1997, 1998
* ... | false | true | public static void arraycopy(Object src, int src_position, Object dst, int dst_position, int length) {
if (src == null)
throw new NullPointerException("src == null");
if (dst == null)
throw new NullPointerException("dst == null");
if (length == 0)
return;
final Class source_class = src.get... | public static void arraycopy(Object src, int src_position, Object dst, int dst_position, int length) {
if (src == null)
throw new NullPointerException("src == null");
if (dst == null)
throw new NullPointerException("dst == null");
if (length == 0)
return;
final Class source_class = src.get... |
diff --git a/common/fr/minecraftforgefrance/ffmtapi/blockhelper/BlockFFMTLeavesBase.java b/common/fr/minecraftforgefrance/ffmtapi/blockhelper/BlockFFMTLeavesBase.java
index 17d4a3e..aa2f9d3 100644
--- a/common/fr/minecraftforgefrance/ffmtapi/blockhelper/BlockFFMTLeavesBase.java
+++ b/common/fr/minecraftforgefrance/ffmt... | true | true | protected BlockFFMTLeavesBase(int id)
{
super(id);
}
| protected BlockFFMTLeavesBase(int id)
{
super(id);
this.setLightOpacity(1);
}
|
diff --git a/src/main/java/org/easymetrics/easymetrics/cglib/MetricsProxyProcessor.java b/src/main/java/org/easymetrics/easymetrics/cglib/MetricsProxyProcessor.java
index 602e49a..27e0136 100644
--- a/src/main/java/org/easymetrics/easymetrics/cglib/MetricsProxyProcessor.java
+++ b/src/main/java/org/easymetrics/easymetr... | true | true | public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
if (bean instanceof Measurable) {
return proxyInterceptor.proxyObject(bean);
}
Class<? extends Object> clazz = bean.getClass();
if (isMetricsProxied(clazz)) {
return proxyInterceptor.proxyObject(clazz);
... | public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
if (bean instanceof Measurable) {
return proxyInterceptor.proxyObject(bean);
}
Class<? extends Object> clazz = bean.getClass();
if (isMetricsProxied(clazz)) {
return proxyInterceptor.proxyObject(bean);
... |
diff --git a/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/domain/Task.java b/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/domain/Task.java
index a74d77a..9f32a6b 100644
--- a/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/domain/Task.java
+++ b/Exercise1/src/main/java/at/ac/tuwien/comp... | true | true | public Object[] getObjectData() {
String colorString;
if(color == null) {
colorString = "NONE";
} else if(color.equals(Color.RED)) {
colorString = "RED";
} else if(color.equals(Color.BLUE)) {
colorString = "BLUE";
} else if(color.equals(Color.GREEN)) {
colorString = "GREEN";
} else {
colorSt... | public Object[] getObjectData() {
String colorString;
if(color == null) {
colorString = "NONE";
} else if(color.equals(Color.RED)) {
colorString = "RED";
} else if(color.equals(Color.BLUE)) {
colorString = "BLUE";
} else if(color.equals(Color.GREEN)) {
colorString = "GREEN";
} else {
colorSt... |
diff --git a/src/org/aider/pmsi2sql/pmsi2sqlcreate.java b/src/org/aider/pmsi2sql/pmsi2sqlcreate.java
index 4f383cf..316a5e5 100644
--- a/src/org/aider/pmsi2sql/pmsi2sqlcreate.java
+++ b/src/org/aider/pmsi2sql/pmsi2sqlcreate.java
@@ -1,88 +1,92 @@
package org.aider.pmsi2sql;
import java.io.StringReader;
import java... | false | true | public static void main(String[] args) throws Exception {
// D�finition des arguments fournis au programme
Pmsi2SqlBaseOptions options = new Pmsi2SqlBaseOptions();
CmdLineParser parser = new CmdLineParser(options);
// Tentative de lecture de la ligne de commande
try {
parser.pa... | public static void main(String[] args) throws Exception {
// D�finition des arguments fournis au programme
Pmsi2SqlBaseOptions options = new Pmsi2SqlBaseOptions();
CmdLineParser parser = new CmdLineParser(options);
// Tentative de lecture de la ligne de commande
try {
parser.pa... |
diff --git a/src/main/java/br/com/expense/parser/TransactionParserEngine.java b/src/main/java/br/com/expense/parser/TransactionParserEngine.java
index 3ac627a..9d3a4c5 100644
--- a/src/main/java/br/com/expense/parser/TransactionParserEngine.java
+++ b/src/main/java/br/com/expense/parser/TransactionParserEngine.java
@@ ... | true | true | public List<Transaction> getTransactions(File basePath) {
List<Transaction> transactions = new ArrayList<Transaction>();
this. transactionFiles = filterFiles(basePath, configuration);
for (String fileName : transactionFiles) {
String fileContent = FileUtil.loadFile(basePath, fileName);
boolean contentAlrea... | public List<Transaction> getTransactions(File basePath) {
List<Transaction> transactions = new ArrayList<Transaction>();
this. transactionFiles = filterFiles(basePath, configuration);
for (String fileName : transactionFiles) {
String fileContent = FileUtil.loadFile(basePath, fileName);
boolean contentAlrea... |
diff --git a/smart-load-test/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/LoadTestEngineImpl.java b/smart-load-test/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/LoadTestEngineImpl.java
index 96b1ff6..913dac2 100644
--- a/smart-load-test/s... | false | true | public void init(String testName,
Set<UnitTestInstance> testInstances,
Properties initProperties)
throws IllegalArgumentException,
IllegalStateException {
if (getState().getStateStep() != State.CREATED.getStateStep()) {
throw new I... | public void init(String testName,
Set<UnitTestInstance> testInstances,
Properties initProperties)
throws IllegalArgumentException,
IllegalStateException {
if (getState().getStateStep() != State.CREATED.getStateStep()) {
throw new I... |
diff --git a/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java b/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
index dd495c11..046a4cff 100644
--- a/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
+++ b/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
@@ -1,333 +1,349 @@
... | false | true | protected SqlSessionFactory buildSqlSessionFactory() throws IOException, IllegalAccessException,
InstantiationException {
XMLConfigBuilder xmlConfigBuilder;
Configuration configuration;
if (configLocation != null) {
try {
Reader reader = new InputStr... | protected SqlSessionFactory buildSqlSessionFactory() throws IOException, IllegalAccessException,
InstantiationException {
XMLConfigBuilder xmlConfigBuilder;
Configuration configuration;
if (configLocation != null) {
Reader reader = null;
try {
... |
diff --git a/do_jdbc/src/java/data_objects/drivers/AbstractDriverDefinition.java b/do_jdbc/src/java/data_objects/drivers/AbstractDriverDefinition.java
index a3516791..1d2b6b67 100644
--- a/do_jdbc/src/java/data_objects/drivers/AbstractDriverDefinition.java
+++ b/do_jdbc/src/java/data_objects/drivers/AbstractDriverDefin... | true | true | public final IRubyObject getTypecastResultSetValue(Ruby runtime,
ResultSet rs, int col, RubyType type) throws SQLException,
IOException {
// TODO assert to needs to be turned on with the java call
// better throw something
assert (type != null); // this method does no... | public final IRubyObject getTypecastResultSetValue(Ruby runtime,
ResultSet rs, int col, RubyType type) throws SQLException,
IOException {
// TODO assert to needs to be turned on with the java call
// better throw something
assert (type != null); // this method does no... |
diff --git a/src/org/pentaho/experimental/chart/plugin/jfreechart/JFreeChartFactoryEngine.java b/src/org/pentaho/experimental/chart/plugin/jfreechart/JFreeChartFactoryEngine.java
index d1fba34..c50cf88 100644
--- a/src/org/pentaho/experimental/chart/plugin/jfreechart/JFreeChartFactoryEngine.java
+++ b/src/org/pentaho/e... | true | true | private JFreeChart createBarChartSubtype(ChartDocument chartDocument, ChartTableModel data, String title, String valueCategoryLabel, String valueAxisLabel, PlotOrientation orientation, boolean legend, boolean toolTips) {
boolean stacked = false;
boolean stackedPct = false;
boolean cylinder = false;
bo... | private JFreeChart createBarChartSubtype(ChartDocument chartDocument, ChartTableModel data, String title, String valueCategoryLabel, String valueAxisLabel, PlotOrientation orientation, boolean legend, boolean toolTips) {
boolean stacked = false;
boolean stackedPct = false;
boolean cylinder = false;
bo... |
diff --git a/basex-core/src/main/java/org/basex/io/in/TarInputStream.java b/basex-core/src/main/java/org/basex/io/in/TarInputStream.java
index 91d80f8d1..e21c9dca9 100644
--- a/basex-core/src/main/java/org/basex/io/in/TarInputStream.java
+++ b/basex-core/src/main/java/org/basex/io/in/TarInputStream.java
@@ -1,98 +1,98 ... | true | true | public TarEntry getNextEntry() throws IOException {
// close entry
if(entry != null) {
long ln = entry.getSize() - size + BLOCK - (size & (BLOCK - 1));
while(ln > 0) ln -= skip(ln);
entry = null;
size = 0;
}
// read header
final byte[] header = new byte[BLOCK];
int tr =... | public TarEntry getNextEntry() throws IOException {
// close entry
if(entry != null) {
long ln = entry.getSize() - size + BLOCK - (size & (BLOCK - 1));
while(ln != BLOCK && ln > 0) ln -= skip(ln);
entry = null;
size = 0;
}
// read header
final byte[] header = new byte[BLOCK... |
diff --git a/tests/com/google/caja/lang/html/HtmlSchemaTest.java b/tests/com/google/caja/lang/html/HtmlSchemaTest.java
index 0aa55e6b..76bccaec 100644
--- a/tests/com/google/caja/lang/html/HtmlSchemaTest.java
+++ b/tests/com/google/caja/lang/html/HtmlSchemaTest.java
@@ -1,112 +1,116 @@
// Copyright (C) 2008 Google Inc... | true | true | public void testAttributeCriteria() throws Exception {
assertFalse(schema.getAttributeCriteria(id("a"), id("target"))
.accept("_top"));
assertTrue(schema.getAttributeCriteria(id("a"), id("target"))
.accept("_blank"));
assertFalse(schema.getAttributeCriteria(id("table"), id(... | public void testAttributeCriteria() throws Exception {
assertFalse(schema.getAttributeCriteria(id("a"), id("target"))
.accept("_top"));
assertTrue(schema.getAttributeCriteria(id("a"), id("target"))
.accept("_blank"));
assertFalse(schema.getAttributeCriteria(id("table"), id(... |
diff --git a/StatisticsPlugin/src/org/gephi/statistics/plugin/GraphDistance.java b/StatisticsPlugin/src/org/gephi/statistics/plugin/GraphDistance.java
index 539ab4607..e1136f0bf 100644
--- a/StatisticsPlugin/src/org/gephi/statistics/plugin/GraphDistance.java
+++ b/StatisticsPlugin/src/org/gephi/statistics/plugin/GraphD... | true | true | public void execute(Graph graph, AttributeModel attributeModel) {
mIsCanceled = false;
AttributeTable nodeTable = attributeModel.getNodeTable();
AttributeColumn eccentricityCol = nodeTable.getColumn(ECCENTRICITY);
AttributeColumn closenessCol = nodeTable.getColumn(CLOSENESS);
... | public void execute(Graph graph, AttributeModel attributeModel) {
mIsCanceled = false;
AttributeTable nodeTable = attributeModel.getNodeTable();
AttributeColumn eccentricityCol = nodeTable.getColumn(ECCENTRICITY);
AttributeColumn closenessCol = nodeTable.getColumn(CLOSENESS);
... |
diff --git a/jamwiki/src/main/java/org/jamwiki/parser/ParserInput.java b/jamwiki/src/main/java/org/jamwiki/parser/ParserInput.java
index 8a52f283..cd65579b 100644
--- a/jamwiki/src/main/java/org/jamwiki/parser/ParserInput.java
+++ b/jamwiki/src/main/java/org/jamwiki/parser/ParserInput.java
@@ -1,328 +1,328 @@
/**
* ... | true | true | public void setWikiUser(WikiUser user) {
if (!user.hasRole(Role.ROLE_USER)) {
// FIXME - setting the user to null may not be necessary, but it is
// consistent with how the code behaved when Utilities.currentUser()
// returned null for non-logged-in users
user = null;
}
this.wikiUser = user;
}
| public void setWikiUser(WikiUser user) {
if (user!=null && !user.hasRole(Role.ROLE_USER)) {
// FIXME - setting the user to null may not be necessary, but it is
// consistent with how the code behaved when Utilities.currentUser()
// returned null for non-logged-in users
user = null;
}
this.wikiUser = ... |
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
index 61216e0..136b45d 100644
--- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
@@ -1,360 +1,365 @@
/*
* YUI Com... | false | true | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css = srcsb.toString();
int startIndex = 0;
int endIndex = 0;
int i = 0;
int max = 0;
ArrayList preservedTokens = new ArrayList(0);
... | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css = srcsb.toString();
int startIndex = 0;
int endIndex = 0;
int i = 0;
int max = 0;
ArrayList preservedTokens = new ArrayList(0);
... |
diff --git a/src/java/main/esg/node/filters/AccessLoggingFilter.java b/src/java/main/esg/node/filters/AccessLoggingFilter.java
index 1e128ef..78956e4 100644
--- a/src/java/main/esg/node/filters/AccessLoggingFilter.java
+++ b/src/java/main/esg/node/filters/AccessLoggingFilter.java
@@ -1,413 +1,420 @@
/*****************... | false | true | public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if(filterConfig == null) return;
int id = -1;
//Record identifying tuple
String userI... | public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if(filterConfig == null) return;
int id = -1;
//Record identifying tuple
String userI... |
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index e3ecb03..bf18f42 100755
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -1,2323 +1,2325 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache Lice... | false | true | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_MOCK_NDEF_TAG: {
NdefTag tag = (NdefTag) msg.obj;
Intent intent = buildNdefTagIntent(tag);
Log.d(TAG, "mock NDEF tag, starting corresponding activity");
Log.d(T... | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_MOCK_NDEF_TAG: {
NdefTag tag = (NdefTag) msg.obj;
Intent intent = buildNdefTagIntent(tag);
Log.d(TAG, "mock NDEF tag, starting corresponding activity");
Log.d(T... |
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
index 56e848aa7..cff071142 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
@@ ... | false | true | public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
if (bitmap == null || bitmap.getWidth() == 0 || bitmap.getHeight() == 0) {
return bitmap;
}
try {
synchronized(ImageFilterRS.class) {
if (sRS == null) {
Log.w(LOG... | public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
if (bitmap == null || bitmap.getWidth() == 0 || bitmap.getHeight() == 0) {
return bitmap;
}
try {
synchronized(ImageFilterRS.class) {
if (sRS == null) {
Log.w(LOG... |
diff --git a/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableFacets.java b/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableFacets.java
index 3aa1079d..6e8328dd 100644
--- a/ftest-source/src/main/java/... | false | true | public void testNoDataFacet() {
assertTrue(subtable.hasVisibleRows());
attributes.setShowData(false);
assertFalse(subtable.hasVisibleRows());
assertTrue(subtable.isNoData());
assertEquals(selenium.getText(subtable.getNoData()), EMPTY_STRING);
facets.setNoData(SAMPLE... | public void testNoDataFacet() {
assertTrue(subtable.hasVisibleRows());
attributes.setShowData(false);
assertFalse(subtable.hasVisibleRows());
assertTrue(subtable.isNoData());
facets.setNoData(SAMPLE_STRING);
attributes.setShowData(true);
assertTrue(subtable... |
diff --git a/software/examples/java/ExampleCallback.java b/software/examples/java/ExampleCallback.java
index 47b4ed8..0130920 100644
--- a/software/examples/java/ExampleCallback.java
+++ b/software/examples/java/ExampleCallback.java
@@ -1,55 +1,58 @@
import com.tinkerforge.BrickStepper;
import com.tinkerforge.IPConne... | true | true | public static void main(String args[]) throws Exception {
IPConnection ipcon = new IPConnection(); // Create IP connection
stepper = new BrickStepper(UID, ipcon); // Create device object
ipcon.connect(host, port); // Connect to brickd
// Don't use device before ipcon is connected
// Add and implement posit... | public static void main(String args[]) throws Exception {
IPConnection ipcon = new IPConnection(); // Create IP connection
stepper = new BrickStepper(UID, ipcon); // Create device object
ipcon.connect(host, port); // Connect to brickd
// Don't use device before ipcon is connected
// Add and implement posit... |
diff --git a/src/test/java/jscover/instrument/InstrumenterTest.java b/src/test/java/jscover/instrument/InstrumenterTest.java
index c5a3649d..b36f6f2b 100644
--- a/src/test/java/jscover/instrument/InstrumenterTest.java
+++ b/src/test/java/jscover/instrument/InstrumenterTest.java
@@ -1,453 +1,454 @@
/**
GNU... | false | true | public void shouldInstrumentFunctionDeclarationAndAssignment() {
String source = "var x, fn = function() {\n" +
" ;\n" +
" };";
String instrumentedSource = instrumenter.instrumentSource(source);
String expectedSource = "_$jscoverage['test.js'][1]++;\n" +
... | public void shouldInstrumentFunctionDeclarationAndAssignment() {
String source = "var x,\n" +
" fn = function() {\n" +
" ;\n" +
" };";
String instrumentedSource = instrumenter.instrumentSource(source);
String expectedSource = "_$jscoverage... |
diff --git a/src/net/sf/hajdbc/local/LocalStateManager.java b/src/net/sf/hajdbc/local/LocalStateManager.java
index b878260c..b4f38b88 100644
--- a/src/net/sf/hajdbc/local/LocalStateManager.java
+++ b/src/net/sf/hajdbc/local/LocalStateManager.java
@@ -1,118 +1,121 @@
/*
* HA-JDBC: High-Availability JDBC
* Copyright... | true | true | private void storeState()
{
StringBuilder builder = new StringBuilder();
for (Database<?> database: this.databaseCluster.getBalancer().all())
{
builder.append(database.getId()).append(STATE_DELIMITER);
}
builder.deleteCharAt(builder.length() - 1);
preferences.put(this.databaseCluster.getId(), ... | private void storeState()
{
StringBuilder builder = new StringBuilder();
for (Database<?> database: this.databaseCluster.getBalancer().all())
{
builder.append(database.getId()).append(STATE_DELIMITER);
}
if (builder.length() > 0)
{
builder.deleteCharAt(builder.length() - 1);
}
preferenc... |
diff --git a/main/src/main/java/com/bloatit/web/linkable/softwares/SoftwarePage.java b/main/src/main/java/com/bloatit/web/linkable/softwares/SoftwarePage.java
index 1af94b94f..f78398247 100644
--- a/main/src/main/java/com/bloatit/web/linkable/softwares/SoftwarePage.java
+++ b/main/src/main/java/com/bloatit/web/linkable... | true | true | protected HtmlElement createBodyContent() throws RedirectException {
if (!url.getMessages().hasMessage()) {
throw new PageNotFoundException();
}
final TwoColumnLayout layout = new TwoColumnLayout(true, url);
try {
HtmlTitle softwareName;
softwareN... | protected HtmlElement createBodyContent() throws RedirectException {
if (url.getMessages().hasMessage()) {
throw new PageNotFoundException();
}
final TwoColumnLayout layout = new TwoColumnLayout(true, url);
try {
HtmlTitle softwareName;
softwareNa... |
diff --git a/src/crypto/Main.java b/src/crypto/Main.java
index 89a2612..78da9de 100644
--- a/src/crypto/Main.java
+++ b/src/crypto/Main.java
@@ -1,23 +1,23 @@
package crypto;
/**
*
* Instantiate {@link Window}
*
* @author Florent LACROIX & Laetitia GAIGNIER
* @version 1.0
*
* @see Window
*
*/
... | true | true | public static void main() {
Window window = new Window();
}
| public static void main(String args[]) {
Window window = new Window();
}
|
diff --git a/src/org/ita/neutrino/junit3parser/BatteryParser.java b/src/org/ita/neutrino/junit3parser/BatteryParser.java
index 5f3895f..2aa48b8 100644
--- a/src/org/ita/neutrino/junit3parser/BatteryParser.java
+++ b/src/org/ita/neutrino/junit3parser/BatteryParser.java
@@ -1,25 +1,25 @@
package org.ita.neutrino.junit3p... | true | true | protected TestMethodKind getTestMethodKind(Method method) {
if (method.getName().equals("setup")) {
return TestMethodKind.BEFORE_METHOD;
} else if (method.getName().equals("tearDown")) {
return TestMethodKind.AFTER_METHOD;
} else if (method.getName().startsWith("test")) {
return TestMethodKind.TEST_MET... | protected TestMethodKind getTestMethodKind(Method method) {
if (method.getName().equals("setup")) {
return TestMethodKind.BEFORE_METHOD;
} else if (method.getName().equals("teardown")) {
return TestMethodKind.AFTER_METHOD;
} else if (method.getName().startsWith("test")) {
return TestMethodKind.TEST_MET... |
diff --git a/JPL/ch07/ex02/Literal.java b/JPL/ch07/ex02/Literal.java
index de779ad..4295646 100644
--- a/JPL/ch07/ex02/Literal.java
+++ b/JPL/ch07/ex02/Literal.java
@@ -1,96 +1,96 @@
package ch07.ex02;
public class Literal {
public static boolean mBoolean = true;
public static char mChar = 'A';
public static ... | true | true | public static void main(String[]args) {
// �f�t�H���g�l�̏o��
System.out.println(mBoolean);
System.out.println(mChar);
System.out.println("MaxByte: " + mMaxByte);
System.out.println("MinByte: " + mMinByte);
System.out.println("MaxShort: " + mMaxShort);
System.out.println("MinShort: " + mMinShort);
Syste... | public static void main(String[]args) {
// �f�t�H���g�l�̏o��
System.out.println(mBoolean);
System.out.println(mChar);
System.out.println("MaxByte: " + mMaxByte);
System.out.println("MinByte: " + mMinByte);
System.out.println("MaxShort: " + mMaxShort);
System.out.println("MinShort: " + mMinShort);
Syste... |
diff --git a/StarVisuals/src/com/starlon/starvisuals/StarVisualsRenderer.java b/StarVisuals/src/com/starlon/starvisuals/StarVisualsRenderer.java
index aa078b29..6b25c231 100644
--- a/StarVisuals/src/com/starlon/starvisuals/StarVisualsRenderer.java
+++ b/StarVisuals/src/com/starlon/starvisuals/StarVisualsRenderer.java
@... | true | true | public void performFrame(GL10 gl, int surfaceWidth, int surfaceHeight) {
if(mGL10 != gl)
mGL10 = gl;
if(mGL10 == null)
return;
// Draw
updatePixels();
// Clear the surface
mGL10.glClearColorx(0, 0, 0, 0);
mGL10.glClear(GL10.GL_COLOR_... | public void performFrame(GL10 gl, int surfaceWidth, int surfaceHeight) {
if(mGL10 != gl)
mGL10 = gl;
if(mGL10 == null)
return;
// Draw
updatePixels();
// Clear the surface
mGL10.glClearColorx(0, 0, 0, 0);
mGL10.glClear(GL10.GL_COLOR_... |
diff --git a/source/de/anomic/kelondro/kelondroFlexSplitTable.java b/source/de/anomic/kelondro/kelondroFlexSplitTable.java
index 21248172c..0d9a653f1 100644
--- a/source/de/anomic/kelondro/kelondroFlexSplitTable.java
+++ b/source/de/anomic/kelondro/kelondroFlexSplitTable.java
@@ -1,337 +1,338 @@
// kelondroFlexSplitTa... | false | true | public kelondroFlexSplitTable(File path, String tablename, long buffersize, long preloadTime, kelondroRow rowdef, kelondroOrder objectOrder) throws IOException {
this.path = path;
this.tablename = tablename;
this.objectOrder = objectOrder;
this.rowdef = rowdef;
// in... | public kelondroFlexSplitTable(File path, String tablename, long buffersize, long preloadTime, kelondroRow rowdef, kelondroOrder objectOrder) throws IOException {
this.path = path;
this.tablename = tablename;
this.objectOrder = objectOrder;
this.rowdef = rowdef;
// in... |
diff --git a/Cmail-Dao/src/org/cmail/rehabilitacion/dao/FichaIngresoDao.java b/Cmail-Dao/src/org/cmail/rehabilitacion/dao/FichaIngresoDao.java
index 1c6aa60..9b5631e 100644
--- a/Cmail-Dao/src/org/cmail/rehabilitacion/dao/FichaIngresoDao.java
+++ b/Cmail-Dao/src/org/cmail/rehabilitacion/dao/FichaIngresoDao.java
@@ -1,5... | true | true | public boolean save(FichaIngreso fichaIngreso) {
boolean b = false;
Transaction tx = null;
log.info("Guardando ficha....");
try {
tx = getSession().beginTransaction();
//merge(instancia);
log.info("Madre: " + fichaIng... | public boolean save(FichaIngreso fichaIngreso) {
boolean b = false;
Transaction tx = null;
log.info("Guardando ficha....");
try {
tx = getSession().beginTransaction();
//merge(instancia);
if (fichaIngreso.getAdolescen... |
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/editor/internal/commands/DragAndDropCommand.java b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/editor/internal/commands/DragAndDropCommand.java
index a9e254bc8..9ae66fcbf 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-adt-xs... | true | true | public DragAndDropCommand(EditPartViewer viewer, ChangeBoundsRequest request)
{
this.viewer = viewer;
this.request = request;
location = request.getLocation();
target = viewer.findObjectAt(location);
if (viewer instanceof ScrollingGraphicalViewer)
{
ScrollingGra... | public DragAndDropCommand(EditPartViewer viewer, ChangeBoundsRequest request)
{
this.viewer = viewer;
this.request = request;
location = request.getLocation();
target = viewer.findObjectAt(location);
if (viewer instanceof ScrollingGraphicalViewer)
{
ScrollingGra... |
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
index 2143f52..2f9faae 100755
--- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -1,2236 ... | false | true | public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) {
int result = ACTION_PASS_TO_USER;
final boolean isWakeKey = isWakeKeyTq(event);
final boolean keyguardShowing = keyguardIsShowingTq();
if (false) {
Log.d(TAG, "interceptKeyTq event=" + event + " keycode... | public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) {
int result = ACTION_PASS_TO_USER;
final boolean isWakeKey = isWakeKeyTq(event);
// If screen is off then we treat the case where the keyguard is open but hidden
// the same as if it were open and in front.
/... |
diff --git a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java b/src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java
index 47d4303..9cfb4f9 100644
--- a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java
++... | true | true | protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {
String password = null;
if(authentication!=null)
password = (String) authentication.getCredentials();
_Command cmd = ClassFactory.createComma... | protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {
String password = null;
if(authentication!=null)
password = (String) authentication.getCredentials();
_Command cmd = ClassFactory.createComma... |
diff --git a/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMessageCallback.java b/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMessageCallback.java
index ea1bb75..c67f375 100644
--- a/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMessageCallback.java
+++ b/MIDIDriver/src/jp/kshoji/driver/midi/handler/MidiMess... | true | true | public boolean handleMessage(final Message msg) {
if (midiEventListener == null) {
return false;
}
byte[] read = (byte[]) msg.obj;
int cable;
int codeIndexNumber;
int byte1;
int byte2;
int byte3;
for (int i = 0; i < read.length; i += 4) {
cable = (read[i + 0] >> 4) & 0xf;
codeIndexNumber = r... | public boolean handleMessage(final Message msg) {
if (midiEventListener == null) {
return false;
}
byte[] read = (byte[]) msg.obj;
int cable;
int codeIndexNumber;
int byte1;
int byte2;
int byte3;
for (int i = 0; i < read.length; i += 4) {
cable = (read[i + 0] >> 4) & 0xf;
codeIndexNumber = r... |
diff --git a/src/ufly/frs/Search.java b/src/ufly/frs/Search.java
index a9a691c..0032fe9 100644
--- a/src/ufly/frs/Search.java
+++ b/src/ufly/frs/Search.java
@@ -1,191 +1,192 @@
package ufly.frs;
import java.io.IOException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.*;
... | false | true | public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
// printParam(req,resp);
//remove old session variables from aborted bookings
HttpSession session = req.getSession();
session.setAttribute("departopt",null);
session.setAttribute("returnopt", null);... | public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
// printParam(req,resp);
//remove old session variables from aborted bookings
HttpSession session = req.getSession();
session.setAttribute("departopt",null);
session.setAttribute("returnopt", null);... |
diff --git a/src/to/joe/vanish/sniffers/Sniffer20NamedEntitySpawn.java b/src/to/joe/vanish/sniffers/Sniffer20NamedEntitySpawn.java
index 77bacfe..4427263 100644
--- a/src/to/joe/vanish/sniffers/Sniffer20NamedEntitySpawn.java
+++ b/src/to/joe/vanish/sniffers/Sniffer20NamedEntitySpawn.java
@@ -1,34 +1,34 @@
package to.j... | true | true | public boolean checkPacket(Player player, MCPacket packet) {
final Packet20NamedEntitySpawn packet20 = (Packet20NamedEntitySpawn) ((MCCraftPacket) packet).getPacket();
final String name = packet20.b;
if (this.vanish.getPlugin().colorationEnabled() && this.vanish.isVanished(name)) {
... | public boolean checkPacket(Player player, MCPacket packet) {
final Packet20NamedEntitySpawn packet20 = (Packet20NamedEntitySpawn) ((MCCraftPacket) packet).getPacket();
final String name = packet20.b;
if (this.vanish.getPlugin().colorationEnabled() && this.vanish.isVanished(name)) {
... |
diff --git a/src/classifier/IBuilder.java b/src/classifier/IBuilder.java
index 500866d..72fcab3 100755
--- a/src/classifier/IBuilder.java
+++ b/src/classifier/IBuilder.java
@@ -1,94 +1,94 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package classifier;
i... | true | true | protected DataSet update(IClassifier classifier, DataSet dataSet) {
int misses = 0;
int hits = 0;
double error = 0.0;
Instance currentInstance;
int corr = 0;
double beta = 1.5;
int numberOfClasses = dataSet.getClasses().length;
for (int i = 0; i < data... | protected DataSet update(IClassifier classifier, DataSet dataSet) {
int misses = 0;
int hits = 0;
double error = Double.MIN_VALUE;
Instance currentInstance;
int corr = 0;
double beta = 1.5;
int numberOfClasses = dataSet.getClasses().length;
for (int i ... |
diff --git a/source/ch/cyberduck/ui/cocoa/CDLoginController.java b/source/ch/cyberduck/ui/cocoa/CDLoginController.java
index 51c7f555b..8ec6a8762 100644
--- a/source/ch/cyberduck/ui/cocoa/CDLoginController.java
+++ b/source/ch/cyberduck/ui/cocoa/CDLoginController.java
@@ -1,180 +1,179 @@
package ch.cyberduck.ui.cocoa;... | false | true | public void prompt(final Protocol protocol, final Credentials credentials, final String reason, final String message)
throws LoginCanceledException {
CDSheetController c = new CDSheetController(parent) {
protected String getBundleName() {
return "Login";
... | public void prompt(final Protocol protocol, final Credentials credentials, final String reason, final String message)
throws LoginCanceledException {
CDSheetController c = new CDSheetController(parent) {
protected String getBundleName() {
return "Login";
... |
diff --git a/OSas4/src/Procesai/InputStream.java b/OSas4/src/Procesai/InputStream.java
index d3f94cc..0802a9b 100644
--- a/OSas4/src/Procesai/InputStream.java
+++ b/OSas4/src/Procesai/InputStream.java
@@ -1,163 +1,163 @@
package Procesai;
import os.Primityvai;
import os.Statiniai;
import os.Statiniai.DRstring;
i... | true | true | public void execute() {
switch(vieta) {
case 0:
nuskaitytiZodziai = 0;
nuoKur = Statiniai.readMem;
//Blokuojasi ir laukia kanal� �renginys
vieta = 2;
Primityvai.prasytiResurso(DRstring.Kanalu_irenginys, nameI, 1);
break;
/*case 1:
vieta++;
if (Statiniai.readMem == Statiniai.vietaMem) {
... | public void execute() {
switch(vieta) {
case 0:
nuskaitytiZodziai = 0;
nuoKur = Statiniai.readMem;
//Blokuojasi ir laukia kanal� �renginys
vieta = 2;
Primityvai.prasytiResurso(DRstring.Kanalu_irenginys, nameI, 1);
break;
/*case 1:
vieta++;
if (Statiniai.readMem == Statiniai.vietaMem) {
... |
diff --git a/chronicle-demo/src/main/java/vanilla/java/processingengine/GWMain.java b/chronicle-demo/src/main/java/vanilla/java/processingengine/GWMain.java
index d9a61af..8584c27 100755
--- a/chronicle-demo/src/main/java/vanilla/java/processingengine/GWMain.java
+++ b/chronicle-demo/src/main/java/vanilla/java/processi... | true | true | public static void main(@NotNull String... args) throws IOException, InterruptedException {
if (args.length < 2) {
System.err.print("java " + GWMain.class.getName() + " [1 or 2] {throughput}");
System.exit(-1);
}
ChronicleTools.warmup();
final int gwId = Inte... | public static void main(@NotNull String... args) throws IOException, InterruptedException {
if (args.length < 2) {
System.err.print("java " + GWMain.class.getName() + " [1 or 2] {throughput}");
System.exit(-1);
}
ChronicleTools.warmup();
final int gwId = Inte... |
diff --git a/src/main/java/tripleplay/util/Layers.java b/src/main/java/tripleplay/util/Layers.java
index be002e13..32aaa15d 100644
--- a/src/main/java/tripleplay/util/Layers.java
+++ b/src/main/java/tripleplay/util/Layers.java
@@ -1,57 +1,57 @@
//
// Triple Play - utilities for use in PlayN-based games
// Copyright ... | true | true | protected static void addBounds (Layer root, Layer l, Rectangle bounds)
{
Transform t = l.transform();
Point loc = Layer.Util.layerToParent(l, root, t.tx(), t.ty());
if (l == root) {
// initialize bounds
bounds.setLocation(loc);
} else {
bounds... | protected static void addBounds (Layer root, Layer l, Rectangle bounds)
{
Transform t = l.transform();
Point loc = Layer.Util.layerToParent(l, root, t.tx(), t.ty());
if (l == root) {
// initialize bounds
bounds.setLocation(loc);
} else {
bounds... |
diff --git a/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/ProtocolObjects.java b/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/ProtocolObjects.java
index 8dbb8c98f..6d45338da 100644
--- a/sip-servlets-test-suite/testsuite/src/test/java/org/mob... | false | true | public ProtocolObjects(String stackname, String pathname, String transport,
boolean autoDialog, String outboundProxy, String threadPoolSize, String reentrantLister) {
this.transport = transport;
SipFactory sipFactory = SipFactory.getInstance();
sipFactory.resetFactory();
sipFactory.setPathName(pathname);
... | public ProtocolObjects(String stackname, String pathname, String transport,
boolean autoDialog, String outboundProxy, String threadPoolSize, String reentrantListener) {
this.transport = transport;
SipFactory sipFactory = SipFactory.getInstance();
sipFactory.resetFactory();
sipFactory.setPathName(pathname);... |
diff --git a/fingerpaint/src/nl/tue/fingerpaint/client/gui/buttons/LoadProtocolButton.java b/fingerpaint/src/nl/tue/fingerpaint/client/gui/buttons/LoadProtocolButton.java
index a1604f3..3bf0251 100644
--- a/fingerpaint/src/nl/tue/fingerpaint/client/gui/buttons/LoadProtocolButton.java
+++ b/fingerpaint/src/nl/tue/finger... | true | true | public void onPress(PressEvent event) {
GuiState.loadPanel.setIsLoading();
Timer runLater = new Timer() {
@Override
public void run() {
GuiState.loadVerticalPanel.clear();
List<String> geometryProtocols = StorageManager.INSTANCE
.getProtocols(as.getGeometryChoice());
GuiState.loadProto... | public void onPress(PressEvent event) {
GuiState.loadPanel.setIsLoading();
Timer runLater = new Timer() {
@Override
public void run() {
GuiState.loadVerticalPanel.clear();
List<String> geometryProtocols = StorageManager.INSTANCE
.getProtocols(as.getGeometryChoice());
GuiState.loadProto... |
diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchListImportExportTopComponent.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSearchListImportExportTopComponent.java
index 935b6aa0f..c0bbdc2e7 100644
--- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/KeywordSe... | false | true | private void initComponents() {
mainScrollPane = new javax.swing.JScrollPane();
mainPanel = new javax.swing.JPanel();
filesIndexedNameLabel = new javax.swing.JLabel();
filesIndexedValLabel = new javax.swing.JLabel();
importButton = new javax.swing.JButton();
exportBu... | private void initComponents() {
mainScrollPane = new javax.swing.JScrollPane();
mainPanel = new javax.swing.JPanel();
filesIndexedNameLabel = new javax.swing.JLabel();
filesIndexedValLabel = new javax.swing.JLabel();
importButton = new javax.swing.JButton();
exportBu... |
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java b/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java
index 8ff090cbe..a2a77ebb2 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestDec2... | true | true | public void testBasic() {
confirmValue("Converts decimal 100 to hexadecimal with 0 characters (64)", "100","0", "64");
confirmValue("Converts decimal 100 to hexadecimal with 4 characters (0064)", "100","4", "0064");
confirmValue("Converts decimal 100 to hexadecimal with 5 characters (0064)", "100","5", "00064");... | public void testBasic() {
confirmValue("Converts decimal 100 to hexadecimal with 0 characters (64)", "100","0", "64");
confirmValue("Converts decimal 100 to hexadecimal with 4 characters (0064)", "100","4", "0064");
confirmValue("Converts decimal 100 to hexadecimal with 5 characters (0064)", "100","5", "00064");... |
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java
index 39e912fb..8bc26f67 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.ja... | false | true | public void onBlockBreak(final BlockBreakEvent event)
{
if (event.isCancelled())
{
return;
}
final User user = ess.getUser(event.getPlayer());
if (prot.getSettingBool(ProtectConfig.disable_build) && !user.canBuild())
{
event.setCancelled(true);
return;
}
final Block block = event.getBlock();... | public void onBlockBreak(final BlockBreakEvent event)
{
if (event.isCancelled())
{
return;
}
final User user = ess.getUser(event.getPlayer());
if (prot.getSettingBool(ProtectConfig.disable_build) && !user.canBuild())
{
event.setCancelled(true);
return;
}
final Block block = event.getBlock();... |
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/wizards/MavenProjectWizardArchetypePage.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/wizards/MavenProjectWizardArchetypePage.java
index 3e8ceb5..db00389 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/wizards/MavenProjectWizardArchetypePage.j... | true | true | private void createViewer(Composite parent) {
Label catalogsLabel = new Label(parent, SWT.NONE);
catalogsLabel.setText(org.eclipse.m2e.core.internal.Messages.MavenProjectWizardArchetypePage_lblCatalog);
Composite catalogsComposite = new Composite(parent, SWT.NONE);
GridLayout catalogsCompositeLayout ... | private void createViewer(Composite parent) {
Label catalogsLabel = new Label(parent, SWT.NONE);
catalogsLabel.setText(org.eclipse.m2e.core.internal.Messages.MavenProjectWizardArchetypePage_lblCatalog);
Composite catalogsComposite = new Composite(parent, SWT.NONE);
GridLayout catalogsCompositeLayout ... |
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/documents/internal/CalendarSearchMethod.java b/cyklotron-core/src/main/java/net/cyklotron/cms/documents/internal/CalendarSearchMethod.java
index 67573f846..3570ba1b2 100644
--- a/cyklotron-core/src/main/java/net/cyklotron/cms/documents/internal/CalendarSearchM... | true | true | private Query getQuery(CoralSession coralSession, Date startDate, Date endDate, String range, long[] categoriesIds, String textQuery)
throws Exception
{
Analyzer analyzer = searchService.getAnalyzer(locale);
BooleanQuery aQuery = new BooleanQuery();
if(textQuery.length() > 0)
... | private Query getQuery(CoralSession coralSession, Date startDate, Date endDate, String range, long[] categoriesIds, String textQuery)
throws Exception
{
Analyzer analyzer = searchService.getAnalyzer(locale);
BooleanQuery aQuery = new BooleanQuery();
if(textQuery.length() > 0)
... |
diff --git a/src/net/java/otr4j/io/SerializationUtils.java b/src/net/java/otr4j/io/SerializationUtils.java
index 95240250..d8934dd7 100644
--- a/src/net/java/otr4j/io/SerializationUtils.java
+++ b/src/net/java/otr4j/io/SerializationUtils.java
@@ -1,334 +1,334 @@
/*
* otr4j, the open source java otr library.
*
*... | true | true | public static AbstractMessage toMessage(String s) throws IOException {
if (s == null || s.length() <= 1)
return null;
if (s.indexOf(SerializationConstants.HEAD) != 0
|| s.length() <= SerializationConstants.HEAD.length()) {
// Try to detect whitespace tag.
... | public static AbstractMessage toMessage(String s) throws IOException {
if (s == null || s.length() <= 1)
return null;
if (s.indexOf(SerializationConstants.HEAD) != 0
|| s.length() <= SerializationConstants.HEAD.length()) {
// Try to detect whitespace tag.
... |
diff --git a/org.jiayun.commons4e/src/org/jiayun/commons4e/internal/lang/generators/CompareToGenerator.java b/org.jiayun.commons4e/src/org/jiayun/commons4e/internal/lang/generators/CompareToGenerator.java
index 2624a39..7ba77c3 100644
--- a/org.jiayun.commons4e/src/org/jiayun/commons4e/internal/lang/generators/CompareT... | true | true | public void generate(Shell parentShell, IType objectClass) {
Set excludedMethods = new HashSet();
IMethod existingMethod = objectClass.getMethod("compareTo",
new String[] { "QObject;" });
if (!existingMethod.exists()) {
existingMethod = objectClass.getMethod("c... | public void generate(Shell parentShell, IType objectClass) {
Set excludedMethods = new HashSet();
IMethod existingMethod = objectClass.getMethod("compareTo",
new String[] { "QObject;" });
if (!existingMethod.exists()) {
existingMethod = objectClass.getMethod("c... |
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/components/browser/dnd/TreeDropTarget.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/components/browser/dnd/TreeDropTarget.java
index a84e55819..73bee5edb 100644
--- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/components/browser/dnd/Tre... | true | true | public void drop(DropTargetDropEvent dtde) {
targetTree.stopExpandCountDown();
targetTree.clearDraggedNode();
Point pt = dtde.getLocation();
DropTargetContext dtc = dtde.getDropTargetContext();
JTree tree = (JTree) dtc.getComponent();
TreePath parentpath = tree.getClosestPathForLocation(pt.x, pt.y);
Brow... | public void drop(DropTargetDropEvent dtde) {
targetTree.stopExpandCountDown();
targetTree.clearDraggedNode();
Point pt = dtde.getLocation();
DropTargetContext dtc = dtde.getDropTargetContext();
JTree tree = (JTree) dtc.getComponent();
TreePath parentpath = tree.getClosestPathForLocation(pt.x, pt.y);
if (... |
diff --git a/src/com/onarandombox/MultiverseCore/command/commands/TeleportCommand.java b/src/com/onarandombox/MultiverseCore/command/commands/TeleportCommand.java
index 2481366..40653d3 100644
--- a/src/com/onarandombox/MultiverseCore/command/commands/TeleportCommand.java
+++ b/src/com/onarandombox/MultiverseCore/comma... | true | true | public void execute(CommandSender sender, String[] args) {
// Check if the command was sent from a Player.
Player teleporter = null;
Player teleportee = null;
if (sender instanceof Player) {
teleporter = (Player) sender;
}
String worldName;
... | public void execute(CommandSender sender, String[] args) {
// Check if the command was sent from a Player.
Player teleporter = null;
Player teleportee = null;
if (sender instanceof Player) {
teleporter = (Player) sender;
}
String worldName;
... |
diff --git a/src/se/kayarr/ircbot/modules/DatabaseTestModule.java b/src/se/kayarr/ircbot/modules/DatabaseTestModule.java
index 9bd2e56..806aa04 100644
--- a/src/se/kayarr/ircbot/modules/DatabaseTestModule.java
+++ b/src/se/kayarr/ircbot/modules/DatabaseTestModule.java
@@ -1,56 +1,56 @@
package se.kayarr.ircbot.modules... | true | true | public void onHandleCommand(PircBotX bot, Channel channel, User user,
String command, String parameters) {
bot.sendMessage(channel, "Adding text '" + parameters + "'");
try {
testTable.newInsert().put("TEXT", parameters).insert();
}
catch (SQLException e) {
e.printStackTrace();
}
}
| public void onHandleCommand(PircBotX bot, Channel channel, User user,
String command, String parameters) {
bot.sendMessage(channel, "Adding text '" + parameters + "'");
try {
testTable.newInsert().put("TEXT", "'" + parameters + "'").insert();
}
catch (SQLException e) {
e.printStackTrace();
}
... |
diff --git a/src/main/java/eu/europeana/portal2/querymodel/query/FacetQueryLinksImpl.java b/src/main/java/eu/europeana/portal2/querymodel/query/FacetQueryLinksImpl.java
index afca0fd0..8612db92 100644
--- a/src/main/java/eu/europeana/portal2/querymodel/query/FacetQueryLinksImpl.java
+++ b/src/main/java/eu/europeana/por... | false | true | private FacetQueryLinksImpl(Facet facetField, Query query) {
this.type = facetField.getName();
if (facetField.getFields().isEmpty()) {
return;
}
Map<String, List<String>> refinements = QueryUtil.getFilterQueriesWithoutPhrases(query);
StringBuilder baseUrl = new StringBuilder();
if (refinements != null) ... | private FacetQueryLinksImpl(Facet facetField, Query query) {
this.type = facetField.getName();
if (facetField.getFields().isEmpty()) {
return;
}
Map<String, List<String>> refinements = QueryUtil.getFilterQueriesWithoutPhrases(query);
StringBuilder baseUrl = new StringBuilder();
if (refinements != null) ... |
diff --git a/ini/trakem2/persistence/FSLoader.java b/ini/trakem2/persistence/FSLoader.java
index 3148ba6d..ca5e6bfb 100644
--- a/ini/trakem2/persistence/FSLoader.java
+++ b/ini/trakem2/persistence/FSLoader.java
@@ -1,1993 +1,1993 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) 2005, 2006 Albert Cardona and Rodn... | true | true | public boolean generateMipMaps(final Patch patch) {
//Utils.log2("mipmaps for " + patch);
if (null == dir_mipmaps) createMipMapsDir(null);
if (null == dir_mipmaps || isURL(dir_mipmaps)) return false;
final String path = getAbsolutePath(patch);
if (null == path) {
Utils.log2("generateMipMaps: cannot find p... | public boolean generateMipMaps(final Patch patch) {
//Utils.log2("mipmaps for " + patch);
if (null == dir_mipmaps) createMipMapsDir(null);
if (null == dir_mipmaps || isURL(dir_mipmaps)) return false;
final String path = getAbsolutePath(patch);
if (null == path) {
Utils.log2("generateMipMaps: cannot find p... |
diff --git a/java/marytts/server/MaryProperties.java b/java/marytts/server/MaryProperties.java
index 7a5bf069e..47a98ffa1 100755
--- a/java/marytts/server/MaryProperties.java
+++ b/java/marytts/server/MaryProperties.java
@@ -1,834 +1,834 @@
/**
* Copyright 2000-2006 DFKI GmbH.
* All Rights Reserved. Use is subjec... | true | true | public static void readProperties()
throws Exception {
// Throws all sorts of exceptions, each of them should lead to
// a program halt: We cannot start up properly.
if (p != null) // we have done this already
return;
File confDir = new File(mary... | public static void readProperties()
throws Exception {
// Throws all sorts of exceptions, each of them should lead to
// a program halt: We cannot start up properly.
if (p != null) // we have done this already
return;
File confDir = new File(mary... |
diff --git a/prom6_patches/src-Patches/it/unipi/rupos/processmining/SampleMain.java b/prom6_patches/src-Patches/it/unipi/rupos/processmining/SampleMain.java
index b6e4bb8..4ec242c 100644
--- a/prom6_patches/src-Patches/it/unipi/rupos/processmining/SampleMain.java
+++ b/prom6_patches/src-Patches/it/unipi/rupos/processmi... | false | true | public static void main(String [] args) throws Exception {
//String logFile = "../prom5_log_files/TracceRupos.mxml";
//String netFile = "../prom5_log_files/TracceRuposAlpha.pnml";
//String logFile = "../prom5_log_files/InviaFlusso.mxml";
//String netFile = "../prom5_log_files/InviaFlussoWoped.... | public static void main(String [] args) throws Exception {
//String logFile = "../prom5_log_files/TracceRupos.mxml";
//String netFile = "../prom5_log_files/TracceRuposAlpha.pnml";
//String logFile = "../prom5_log_files/InviaFlusso.mxml";
//String netFile = "../prom5_log_files/InviaFlussoWoped.... |
diff --git a/loci/plugins/browser/LociDataBrowser.java b/loci/plugins/browser/LociDataBrowser.java
index 8aacfdd05..f2cd022fb 100644
--- a/loci/plugins/browser/LociDataBrowser.java
+++ b/loci/plugins/browser/LociDataBrowser.java
@@ -1,316 +1,317 @@
//
// LociDataBrowser.java
//
/*
LOCI 4D Data Browser plugin for... | true | true | public void run(String arg) {
LociOpener lociOpener = new LociOpener();
boolean done2 = false;
String directory = "";
String name = "";
boolean quiet = false;
// get file name and virtual stack option
stack = null;
while (!done2) {
try {
lociOpener.show();
direct... | public void run(String arg) {
LociOpener lociOpener = new LociOpener();
boolean done2 = false;
String directory = "";
String name = "";
boolean quiet = false;
// get file name and virtual stack option
stack = null;
while (!done2) {
try {
lociOpener.show();
direct... |
diff --git a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
index 875db7e17..74ad9b535 100644
--- a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
+++ b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
@@ -1,870 +1,870 @@
package spim;
import ij.IJ;
import... | true | true | protected void initUI() {
if (frame != null)
return;
frame = new JFrame("OpenSPIM");
JPanel left = new JPanel();
left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS));
left.setBorder(BorderFactory.createTitledBorder("Position/Angle"));
xSlider = new MotorSlider(motorMin, motorMax, 1) {
@Override... | protected void initUI() {
if (frame != null)
return;
frame = new JFrame("OpenSPIM");
JPanel left = new JPanel();
left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS));
left.setBorder(BorderFactory.createTitledBorder("Position/Angle"));
xSlider = new MotorSlider(motorMin, motorMax, 1) {
@Override... |
diff --git a/source/RMG/jing/rxn/TemplateReactionGenerator.java b/source/RMG/jing/rxn/TemplateReactionGenerator.java
index c21b059e..18491080 100644
--- a/source/RMG/jing/rxn/TemplateReactionGenerator.java
+++ b/source/RMG/jing/rxn/TemplateReactionGenerator.java
@@ -1,320 +1,317 @@
////////////////////////////////////... | true | true | public LinkedHashSet react(LinkedHashSet p_speciesSet, Species newCoreSpecies, String specificRxnFamily) {
// double pT = System.currentTimeMillis();
//#[ operation react(HashSet,Species)
LinkedHashSet reaction_set = new LinkedHashSet();
if (!newCoreSpecies.isReactive()){
return reactio... | public LinkedHashSet react(LinkedHashSet p_speciesSet, Species newCoreSpecies, String specificRxnFamily) {
// double pT = System.currentTimeMillis();
//#[ operation react(HashSet,Species)
LinkedHashSet reaction_set = new LinkedHashSet();
if (!newCoreSpecies.isReactive()){
return reactio... |
diff --git a/src/java/com/stackframe/sarariman/Sarariman.java b/src/java/com/stackframe/sarariman/Sarariman.java
index 55e52b9..6bf01ed 100644
--- a/src/java/com/stackframe/sarariman/Sarariman.java
+++ b/src/java/com/stackframe/sarariman/Sarariman.java
@@ -1,519 +1,520 @@
/*
* Copyright (C) 2009-2013 StackFrame, LLC... | true | true | public void contextInitialized(ServletContextEvent sce) {
extensions.add(new SAICExtension());
try {
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:comp/env");
Properties directoryProperties = lookupDirectoryProp... | public void contextInitialized(ServletContextEvent sce) {
extensions.add(new SAICExtension());
try {
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:comp/env");
Properties directoryProperties = lookupDirectoryProp... |
diff --git a/NPlayer/src/main/java/fr/ribesg/bukkit/nplayer/NPlayer.java b/NPlayer/src/main/java/fr/ribesg/bukkit/nplayer/NPlayer.java
index e338c5a6..b5e0a4a9 100644
--- a/NPlayer/src/main/java/fr/ribesg/bukkit/nplayer/NPlayer.java
+++ b/NPlayer/src/main/java/fr/ribesg/bukkit/nplayer/NPlayer.java
@@ -1,186 +1,187 @@
... | true | true | public boolean onNodeEnable() {
// Messages first !
try {
if (!getDataFolder().isDirectory()) {
getDataFolder().mkdir();
}
messages = new Messages();
messages.loadMessages(this);
} catch (final IOException e) {
getLogger().severe("An error occured, stacktrace follows:");
e.printStackTrace()... | public boolean onNodeEnable() {
// Messages first !
try {
if (!getDataFolder().isDirectory()) {
getDataFolder().mkdir();
}
messages = new Messages();
messages.loadMessages(this);
} catch (final IOException e) {
getLogger().severe("An error occured, stacktrace follows:");
e.printStackTrace()... |
diff --git a/XPathTestRunner/src/test/java/org/omg/bpmn/miwg/xpath/XPathTest.java b/XPathTestRunner/src/test/java/org/omg/bpmn/miwg/xpath/XPathTest.java
index f3c5f6da..670071e1 100644
--- a/XPathTestRunner/src/test/java/org/omg/bpmn/miwg/xpath/XPathTest.java
+++ b/XPathTestRunner/src/test/java/org/omg/bpmn/miwg/xpath/... | true | true | private void doTest(org.omg.bpmn.miwg.xpathTestRunner.testBase.Test test, String baseFileName) {
for (String tool : tools) {
TestInfo info = new TestInfo(baseDir.getAbsolutePath()
+ testBDir.getName() + S, tool, baseFileName
+ "-roundtrip.bpmn");
TestOutput out = null;
try {
out = new TestOu... | private void doTest(org.omg.bpmn.miwg.xpathTestRunner.testBase.Test test, String baseFileName) {
for (String tool : tools) {
TestInfo info = new TestInfo(baseDir.getAbsolutePath() + S
+ testBDir.getName(), tool, baseFileName
+ "-roundtrip.bpmn");
TestOutput out = null;
try {
out = new TestOu... |
diff --git a/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java b/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
index e36d345ec..d7ebc2fd1 100644
--- a/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
+++ b/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
@@ -1,1... | false | true | protected void initMetadata() {
if (!thumbnailsRemoved) return;
Hashtable ifd = ifds[0];
status("Reading LSM metadata");
MetadataStore store =
new FilterMetadata(getMetadataStore(), isMetadataFiltered());
try {
super.initStandardMetadata();
// get TIF_CZ_LSMINFO structure
... | protected void initMetadata() {
if (!thumbnailsRemoved) return;
Hashtable ifd = ifds[0];
status("Reading LSM metadata");
MetadataStore store =
new FilterMetadata(getMetadataStore(), isMetadataFiltered());
try {
super.initStandardMetadata();
// get TIF_CZ_LSMINFO structure
... |
diff --git a/src/java/com/idega/block/cal/presentation/CalendarView.java b/src/java/com/idega/block/cal/presentation/CalendarView.java
index 9cf384f..0a1f214 100644
--- a/src/java/com/idega/block/cal/presentation/CalendarView.java
+++ b/src/java/com/idega/block/cal/presentation/CalendarView.java
@@ -1,1315 +1,1315 @@
... | true | true | private Table monthView(IWContext iwc, IWTimestamp stamp) {
now = IWTimestamp.RightNow();
cal = new IWCalendar();
cal.setLocale(iwc.getCurrentLocale());
Text nameOfDay = new Text();
Text t = new Text();
int weekdays = 8;
int daycount = cal.getLengthOfMonth(stamp.getMonth(),stamp.getYear());
int first... | private Table monthView(IWContext iwc, IWTimestamp stamp) {
now = IWTimestamp.RightNow();
cal = new IWCalendar();
cal.setLocale(iwc.getCurrentLocale());
Text nameOfDay = new Text();
Text t = new Text();
int weekdays = 8;
int daycount = cal.getLengthOfMonth(stamp.getMonth(),stamp.getYear());
int first... |
diff --git a/src/com/zrd/zr/letuwb/WeiboPage.java b/src/com/zrd/zr/letuwb/WeiboPage.java
index 62867af..530d492 100644
--- a/src/com/zrd/zr/letuwb/WeiboPage.java
+++ b/src/com/zrd/zr/letuwb/WeiboPage.java
@@ -1,1593 +1,1593 @@
package com.zrd.zr.letuwb;
import java.io.IOException;
import java.text.SimpleDateFormat... | true | true | WeiboPage(EntranceActivity activity) {
this.parent = activity;
mTextScreenName = (TextView)parent.findViewById(R.id.tvScreenName);
mImageVerified = (ImageView)parent.findViewById(R.id.ivVerified);
mTextCreatedAt = (TextView)parent.findViewById(R.id.tvCreatedAt);
mTextLocation = (TextView)parent.findViewBy... | WeiboPage(EntranceActivity activity) {
this.parent = activity;
mTextScreenName = (TextView)parent.findViewById(R.id.tvScreenName);
mImageVerified = (ImageView)parent.findViewById(R.id.ivVerified);
mTextCreatedAt = (TextView)parent.findViewById(R.id.tvCreatedAt);
mTextLocation = (TextView)parent.findViewBy... |
diff --git a/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java b/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java
index 8dbc536..db3836b 100644
--- a/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java
+++ b/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java
@@ -1,59 +1,58 @@
package ... | true | true | protected void processCommand(String cmd) {
if(cmd.endsWith("\n"))
cmd = cmd.substring(0, cmd.length()-1);
if (cmd.compareTo("CONNECT")==0) {
this.state = DebugState.CONNECTED;
debugServer.send("CONNECTED");
debugCallback.connected();
// not yet implemented in debugger.rb:
//} else if (cmd.compareT... | protected void processCommand(String cmd) {
if(cmd.endsWith("\n"))
cmd = cmd.substring(0, cmd.length()-1);
if (cmd.compareTo("CONNECT")==0) {
this.state = DebugState.CONNECTED;
debugServer.send("CONNECTED");
debugCallback.connected();
// not yet implemented in debugger.rb:
//} else if (cmd.compareT... |
diff --git a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/TeachingHoursCDRManagement.java b/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/TeachingHoursCDRManagement.java
index d4472074..ec85514c 100644
--- a/gr.sch.ira.minoas/src/gr/sch/ira/minoas/seam/components/management/Te... | true | true | public void doCalculateCurrentCDRs() {
long started = System.currentTimeMillis();
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
EntityManager em = getEntityManager();
SchoolYear currentSchoolYear = coreSearching.getActiveSchoolYear(em);
info("generating teaching hours C... | public void doCalculateCurrentCDRs() {
long started = System.currentTimeMillis();
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
EntityManager em = getEntityManager();
SchoolYear currentSchoolYear = coreSearching.getActiveSchoolYear(em);
info("generating teaching hours C... |
diff --git a/WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptGenerator.java b/WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptGenerator.java
index f91e78f7..214a9eda 100644
--- a/WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptGenerator.java
+++ b/WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptGenerator.ja... | true | true | SimpleNode[] translateFunctionInternal(SimpleNode node, boolean useName, SimpleNode[] children) {
// ast can be any of:
// FunctionDefinition(name, args, body)
// FunctionDeclaration(name, args, body)
// FunctionDeclaration(args, body)
// Handle the two arities:
String functionName = nul... | SimpleNode[] translateFunctionInternal(SimpleNode node, boolean useName, SimpleNode[] children) {
// ast can be any of:
// FunctionDefinition(name, args, body)
// FunctionDeclaration(name, args, body)
// FunctionDeclaration(args, body)
// Handle the two arities:
String functionName = nul... |
diff --git a/src/main/java/me/znickq/playerplus/TextureChooser.java b/src/main/java/me/znickq/playerplus/TextureChooser.java
index bce11cf..e65a31c 100644
--- a/src/main/java/me/znickq/playerplus/TextureChooser.java
+++ b/src/main/java/me/znickq/playerplus/TextureChooser.java
@@ -1,165 +1,165 @@
/*
* To change this ... | false | true | public TextureChooser(PlayerPlus instance, SpoutPlayer player) {
this.instance = instance;
this.player = player;
current = AccessoryType.BRACELET;
cb = new MyComboBox(this);
cb.setText("Accessories");
cb.setAnchor(WidgetAnchor.CENTER_CENTER);
cb.setX(-160).setY(-110);
cb.setHeight(20).setWidth(100);
... | public TextureChooser(PlayerPlus instance, SpoutPlayer player) {
this.instance = instance;
this.player = player;
current = AccessoryType.BRACELET;
cb = new MyComboBox(this);
cb.setText("Accessories");
cb.setAnchor(WidgetAnchor.CENTER_CENTER);
cb.shiftXPos(-160).shiftYPos(-90);
cb.setHeight(20).setWidt... |
diff --git a/src/main/java/de/cismet/cids/custom/butler/PredefinedBoxes.java b/src/main/java/de/cismet/cids/custom/butler/PredefinedBoxes.java
index 5b560ba3..ef0c3db2 100644
--- a/src/main/java/de/cismet/cids/custom/butler/PredefinedBoxes.java
+++ b/src/main/java/de/cismet/cids/custom/butler/PredefinedBoxes.java
@@ -1... | true | true | private static void loadPropertiesIntoList(final ArrayList list, final Properties prop) {
final Enumeration keys = prop.propertyNames();
final ArrayList<String> keyList = new ArrayList<String>();
while (keys.hasMoreElements()) {
final String key = (String)keys.nextElement();
... | private static void loadPropertiesIntoList(final ArrayList list, final Properties prop) {
final Enumeration keys = prop.propertyNames();
final ArrayList<String> keyList = new ArrayList<String>();
while (keys.hasMoreElements()) {
final String key = (String)keys.nextElement();
... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.esb/src/org/wso2/developerstudio/eclipse/esb/mediators/impl/CallTemplateParameterImpl.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.esb/src/org/wso2/developerstudio/eclipse/esb/mediators/impl/CallTemplateParameterImpl.java
index 73e7b1e0b..bc1889c4... | true | true | protected void doLoad(Element self) throws Exception {
if (self.hasAttribute("value")) {
String attributeValue = self.getAttribute("value");
if (attributeValue == null) {
attributeValue = "";
}
attributeValue = attributeValue.trim();
if (attributeValue.startsWith("{") && attributeValue.endsWith("}... | protected void doLoad(Element self) throws Exception {
if (self.hasAttribute("value")) {
String attributeValue = self.getAttribute("value");
if (attributeValue == null) {
attributeValue = "";
}
attributeValue = attributeValue.trim();
if (attributeValue.startsWith("{") && attributeValue.endsWith("}... |
diff --git a/src/ca/ariselab/myhhw/Utils.java b/src/ca/ariselab/myhhw/Utils.java
index 7d66846..c5b10d8 100644
--- a/src/ca/ariselab/myhhw/Utils.java
+++ b/src/ca/ariselab/myhhw/Utils.java
@@ -1,87 +1,87 @@
/*
* Project: MyRobots.com integration for ARISE Human Hamster Wheel
* Authors: Jeffrey Arcand <jef... | true | true | public static boolean getHHWOpen() {
Calendar now = Calendar.getInstance();
// Opens at 09:00 and closes 17:00
int hour = now.get(Calendar.HOUR);
if (hour < 9 || hour >= 17) {
return false;
}
// Closed on Mondays from Sept to April (inclusive)
int dow = now.get(DAY_OF_WEEK);
int month = now.ge... | public static boolean getHHWOpen() {
Calendar now = Calendar.getInstance();
// Opens at 09:00 and closes 17:00
int hour = now.get(Calendar.HOUR);
if (hour < 9 || hour >= 17) {
return false;
}
// Closed on Mondays from Sept to April (inclusive)
int dow = now.get(Calendar.DAY_OF_WEEK);
int month... |
diff --git a/src/de/highbyte_le/weberknecht/request/error/DefaultErrorHandler.java b/src/de/highbyte_le/weberknecht/request/error/DefaultErrorHandler.java
index 764be4d..f49b500 100644
--- a/src/de/highbyte_le/weberknecht/request/error/DefaultErrorHandler.java
+++ b/src/de/highbyte_le/weberknecht/request/error/DefaultE... | true | true | public boolean handleException(Exception exception, HttpServletRequest request, RoutingTarget routingTarget) {
if (exception instanceof ActionNotFoundException) {
log.warn("action not found: "+exception.getMessage()+"; request URI was "+request.getRequestURI());
this.statusCode = HttpServletResponse.SC_NOT_FOU... | public boolean handleException(Exception exception, HttpServletRequest request, RoutingTarget routingTarget) {
if (exception instanceof ActionNotFoundException) {
log.warn("action not found: "+exception.getMessage()+"; request URI was "+request.getRequestURI());
this.statusCode = HttpServletResponse.SC_NOT_FOU... |
diff --git a/modules/updatetrackerwebservice/updatetrackerwebserviceImpl/src/dk/statsbiblioteket/doms/updatetracker/webservice/UpdateTrackerWebserviceImpl.java b/modules/updatetrackerwebservice/updatetrackerwebserviceImpl/src/dk/statsbiblioteket/doms/updatetracker/webservice/UpdateTrackerWebserviceImpl.java
index 1dfa7... | true | true | public List<PidDatePidPid> listObjectsChangedSince(
@WebParam(name = "collectionPid", targetNamespace = "")
String collectionPid,
@WebParam(name = "entryCMPid", targetNamespace = "")
String entryCMPid,
@WebParam(name = "viewAngle", targetNamespace = "")
... | public List<PidDatePidPid> listObjectsChangedSince(
@WebParam(name = "collectionPid", targetNamespace = "")
String collectionPid,
@WebParam(name = "entryCMPid", targetNamespace = "")
String entryCMPid,
@WebParam(name = "viewAngle", targetNamespace = "")
... |
diff --git a/eclihand/webapp/src/main/java/com/pedrero/eclihand/ui/panel/TeamsScreen.java b/eclihand/webapp/src/main/java/com/pedrero/eclihand/ui/panel/TeamsScreen.java
index fa20bae..62c097e 100644
--- a/eclihand/webapp/src/main/java/com/pedrero/eclihand/ui/panel/TeamsScreen.java
+++ b/eclihand/webapp/src/main/java/co... | true | true | protected void postConstruct() {
LOGGER.info("initializing TeamsPanel");
this.setCaption(messageResolver.getMessage("teams.panel.title"));
Layout layout = eclihandLayoutFactory.createCommonVerticalLayout();
layout.setWidth(panelWidth);
this.setContent(layout);
// this.createNewTeamButton = eclihandUiFact... | protected void postConstruct() {
LOGGER.info("initializing TeamsPanel");
this.setCaption(messageResolver.getMessage("teams.panel.title"));
Layout layout = eclihandLayoutFactory.createCommonVerticalLayout();
layout.setWidth(panelWidth);
this.setContent(layout);
// this.createNewTeamButton = eclihandUiFact... |
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/ui/PerfDoubleClickAction.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/ui/PerfDoubleClickAction.java
index 26178b1c1..a338869b1 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/ui/PerfDou... | false | true | public void run() {
ISelection selection = viewer.getSelection();
Object obj = ((IStructuredSelection)selection).getFirstElement();
if (obj instanceof PMLineRef) {
//Open in editor
PMFile file = (PMFile) ((PMLineRef) obj).getParent();
try {
ProfileUIUtils.openEditorAndSelect(file.getPath(), Integer... | public void run() {
ISelection selection = viewer.getSelection();
Object obj = ((IStructuredSelection)selection).getFirstElement();
if (obj instanceof PMLineRef) {
//Open in editor
PMLineRef line = (PMLineRef) obj;
PMFile file = (PMFile) ((PMSymbol) line.getParent()).getParent();
try {
ProfileUI... |
diff --git a/src/ru/narod/vn91/pointsop/server/ServerZagram2.java b/src/ru/narod/vn91/pointsop/server/ServerZagram2.java
index 1504e57..6c1c8e7 100644
--- a/src/ru/narod/vn91/pointsop/server/ServerZagram2.java
+++ b/src/ru/narod/vn91/pointsop/server/ServerZagram2.java
@@ -1,1180 +1,1181 @@
package ru.narod.vn91.points... | true | true | private synchronized void handleText(String text) {
// if (text.startsWith("ok/") && text.endsWith("/end")) {
ServerInterface server = ServerZagram2.this;
if (text.matches("ok.*(end|oend)") ||
(text.matches("sd.*(end|oend)") && isInvisible)) {
String[] splitted =
text
// .substring(
// ... | private synchronized void handleText(String text) {
// if (text.startsWith("ok/") && text.endsWith("/end")) {
ServerInterface server = ServerZagram2.this;
if (text.matches("ok.*(end|oend)") ||
(text.matches("sd.*(end|oend)") && isInvisible)) {
String[] splitted =
text
// .substring(
// ... |
diff --git a/src/soot/jimple/toolkits/annotation/LineNumberAdder.java b/src/soot/jimple/toolkits/annotation/LineNumberAdder.java
index a238955d..a5e8902f 100644
--- a/src/soot/jimple/toolkits/annotation/LineNumberAdder.java
+++ b/src/soot/jimple/toolkits/annotation/LineNumberAdder.java
@@ -1,57 +1,59 @@
package soot.j... | false | true | public void internalTransform(String phaseName, Map opts){
Iterator it = Scene.v().getApplicationClasses().iterator();
while (it.hasNext()){
SootClass sc = (SootClass)it.next();
// make map of first line to each method
HashMap lineToMeth = new HashMap();
... | public void internalTransform(String phaseName, Map opts){
Iterator it = Scene.v().getApplicationClasses().iterator();
while (it.hasNext()){
SootClass sc = (SootClass)it.next();
// make map of first line to each method
HashMap lineToMeth = new HashMap();
... |
diff --git a/geogebra/geogebra/kernel/Kernel.java b/geogebra/geogebra/kernel/Kernel.java
index fdda9f158..e9e3d4834 100644
--- a/geogebra/geogebra/kernel/Kernel.java
+++ b/geogebra/geogebra/kernel/Kernel.java
@@ -1,7535 +1,7537 @@
/*
GeoGebra - Dynamic Mathematics for Everyone
http://www.geogebra.org
This file i... | false | true | final public GeoElement If(String label,
GeoBoolean condition,
GeoElement geoIf, GeoElement geoElse) {
// check if geoIf and geoElse are of same type
/* if (geoElse == null ||
geoIf.isNumberValue() && geoElse.isNumberValue() ||
geoIf.getTypeString().equals(geoElse.getTypeString()))
{*/
AlgoIf ... | final public GeoElement If(String label,
GeoBoolean condition,
GeoElement geoIf, GeoElement geoElse) {
// check if geoIf and geoElse are of same type
/* if (geoElse == null ||
geoIf.isNumberValue() && geoElse.isNumberValue() ||
geoIf.getTypeString().equals(geoElse.getTypeString()))
{*/
AlgoIf ... |
diff --git a/src/engine/render/Shader.java b/src/engine/render/Shader.java
index c2a7f02..8ec1276 100644
--- a/src/engine/render/Shader.java
+++ b/src/engine/render/Shader.java
@@ -1,304 +1,304 @@
package engine.render;
import engine.resource.Resource;
import engine.utils.DomTools;
import java.io.BufferedReader... | false | true | public void loadFromFile(InputStream is) throws Exception {
ubo_interfaces = new HashMap<String, UBO>();
/*
* create the shader program. If OK, create vertex
* and fragment shaders
*/
shader=ARBShaderObjects.glCreateProgramObjectARB();
if(shader!=0){
Document ... | public void loadFromFile(InputStream is) throws Exception {
ubo_interfaces = new HashMap<String, UBO>();
/*
* create the shader program. If OK, create vertex
* and fragment shaders
*/
shader=ARBShaderObjects.glCreateProgramObjectARB();
if(shader!=0){
Document ... |
diff --git a/src/org/ohmage/service/UploadService.java b/src/org/ohmage/service/UploadService.java
index 0a89ff8..3b4a7e3 100644
--- a/src/org/ohmage/service/UploadService.java
+++ b/src/org/ohmage/service/UploadService.java
@@ -1,487 +1,487 @@
package org.ohmage.service;
import com.commonsware.cwac.wakeful.Wakeful... | true | true | private void uploadSurveyResponses(Intent intent) {
String serverUrl = Config.DEFAULT_SERVER_URL;
SharedPreferencesHelper helper = new SharedPreferencesHelper(this);
String username = helper.getUsername();
String hashedPassword = helper.getHashedPassword();
boolean isBackground = intent.getBooleanExtra(EX... | private void uploadSurveyResponses(Intent intent) {
String serverUrl = Config.DEFAULT_SERVER_URL;
SharedPreferencesHelper helper = new SharedPreferencesHelper(this);
String username = helper.getUsername();
String hashedPassword = helper.getHashedPassword();
boolean isBackground = intent.getBooleanExtra(EX... |
diff --git a/src/com/android/exchange/adapter/FolderSyncParser.java b/src/com/android/exchange/adapter/FolderSyncParser.java
index f2e5d618..2f7cdd0c 100644
--- a/src/com/android/exchange/adapter/FolderSyncParser.java
+++ b/src/com/android/exchange/adapter/FolderSyncParser.java
@@ -1,428 +1,428 @@
/*
* Copyright (C)... | true | true | public void addParser(ArrayList<ContentProviderOperation> ops) throws IOException {
String name = null;
String serverId = null;
String parentId = null;
int type = 0;
while (nextTag(Tags.FOLDER_ADD) != END) {
switch (tag) {
case Tags.FOLDER_DISPLAY... | public void addParser(ArrayList<ContentProviderOperation> ops) throws IOException {
String name = null;
String serverId = null;
String parentId = null;
int type = 0;
while (nextTag(Tags.FOLDER_ADD) != END) {
switch (tag) {
case Tags.FOLDER_DISPLAY... |
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.