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/JavaClass.java b/JavaClass.java
index 3bc65dc..c4f77cd 100644
--- a/JavaClass.java
+++ b/JavaClass.java
@@ -1,605 +1,608 @@
/*
* Copyright (c) 2011 Xamarin Inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
... | false | true | public void appendToDocument (Document doc, Element parent)
{
int mods = jclass.getModifiers ();
Element e = doc.createElement (jclass.isInterface () && !jclass.isAnnotation () ? "interface" : "class");
if (!jclass.isInterface () || jclass.isAnnotation ()) {
// FIXME: at some stage we'd like to use generic ... | public void appendToDocument (Document doc, Element parent)
{
int mods = jclass.getModifiers ();
Element e = doc.createElement (jclass.isInterface () && !jclass.isAnnotation () ? "interface" : "class");
if (!jclass.isInterface () || jclass.isAnnotation ()) {
// FIXME: at some stage we'd like to use generic ... |
diff --git a/src/org/mozilla/javascript/NativeJavaMethod.java b/src/org/mozilla/javascript/NativeJavaMethod.java
index bce3c54c..3169722b 100644
--- a/src/org/mozilla/javascript/NativeJavaMethod.java
+++ b/src/org/mozilla/javascript/NativeJavaMethod.java
@@ -1,639 +1,639 @@
/* -*- Mode: java; tab-width: 8; indent-tabs... | true | true | static int findFunction(Context cx,
MemberBox[] methodsOrCtors, Object[] args)
{
if (methodsOrCtors.length == 0) {
return -1;
} else if (methodsOrCtors.length == 1) {
MemberBox member = methodsOrCtors[0];
Class<?>[] argTypes = membe... | static int findFunction(Context cx,
MemberBox[] methodsOrCtors, Object[] args)
{
if (methodsOrCtors.length == 0) {
return -1;
} else if (methodsOrCtors.length == 1) {
MemberBox member = methodsOrCtors[0];
Class<?>[] argTypes = membe... |
diff --git a/gonstant-core/src/main/java/net/gongshim/gonstant/Generator.java b/gonstant-core/src/main/java/net/gongshim/gonstant/Generator.java
index aff1562..52fc79d 100644
--- a/gonstant-core/src/main/java/net/gongshim/gonstant/Generator.java
+++ b/gonstant-core/src/main/java/net/gongshim/gonstant/Generator.java
@@ ... | false | true | private void generateCodes(StringBuilder buf) {
StringWriter sw = new StringWriter();
PrintWriter w = new PrintWriter(sw);
w.println("\tprivate static final String[] items = {");
for (int i = 0; i < input.length; i++) {
String val = input[i];
w.print("\t\t\""+... | private void generateCodes(StringBuilder buf) {
StringWriter sw = new StringWriter();
PrintWriter w = new PrintWriter(sw);
w.println("\tprivate static final String[] items = {");
for (int i = 0; i < input.length; i++) {
String val = input[i];
w.print("\t\t\""+... |
diff --git a/freeplane/src/org/freeplane/core/ui/components/FreeplaneToolBar.java b/freeplane/src/org/freeplane/core/ui/components/FreeplaneToolBar.java
index c6d7e7a0f..723953c0d 100644
--- a/freeplane/src/org/freeplane/core/ui/components/FreeplaneToolBar.java
+++ b/freeplane/src/org/freeplane/core/ui/components/Freep... | true | true | protected void configureComponent(final Component comp) {
comp.setFocusable(false);
if (!(comp instanceof AbstractButton)) {
return;
}
final AbstractButton abstractButton = (AbstractButton) comp;
abstractButton.setMargin(FreeplaneToolBar.nullInsets);
if (null != abstractButton.getIcon()) {
final Stri... | protected void configureComponent(final Component comp) {
comp.setFocusable(false);
if (!(comp instanceof AbstractButton)) {
return;
}
final AbstractButton abstractButton = (AbstractButton) comp;
abstractButton.setMargin(FreeplaneToolBar.nullInsets);
if (null != abstractButton.getIcon()) {
final Stri... |
diff --git a/sphinx4/edu/cmu/sphinx/frontend/util/StreamCepstrumSource.java b/sphinx4/edu/cmu/sphinx/frontend/util/StreamCepstrumSource.java
index f48a971b1..1a92010ef 100644
--- a/sphinx4/edu/cmu/sphinx/frontend/util/StreamCepstrumSource.java
+++ b/sphinx4/edu/cmu/sphinx/frontend/util/StreamCepstrumSource.java
@@ -1,2... | true | true | public Data getData() throws DataProcessingException {
Data data = null;
if (curPoint == -1) {
data = new DataStartSignal();
curPoint++;
} else if (curPoint == numPoints) {
if (numPoints > 0) {
firstSampleNumber =
(firstSampleNumber - frameShift + frame... | public Data getData() throws DataProcessingException {
Data data = null;
if (curPoint == -1) {
data = new DataStartSignal();
curPoint++;
} else if (curPoint == numPoints) {
if (numPoints > 0) {
firstSampleNumber =
(firstSampleNumber - frameShift + frame... |
diff --git a/src/main/java/ve/com/fsjv/devsicodetv/controladores/FichaDetenidoDialogManager.java b/src/main/java/ve/com/fsjv/devsicodetv/controladores/FichaDetenidoDialogManager.java
index c91a981..dc063c3 100644
--- a/src/main/java/ve/com/fsjv/devsicodetv/controladores/FichaDetenidoDialogManager.java
+++ b/src/main/ja... | true | true | public void actionPerformed(ActionEvent e) {
if(e.getSource() == this.formulario.getBtnNuevo()){
try {
this.eventos.eventoGuardar(ConstantesApp.READONLY_DEFAULT);
this.codigo = this.procesos.generarCodigo(ConstantesApp.ACRONIMO_MODULO_FICHA_DETENIDO, ConstantesApp... | public void actionPerformed(ActionEvent e) {
if(e.getSource() == this.formulario.getBtnNuevo()){
try {
this.eventos.eventoGuardar(ConstantesApp.READONLY_DEFAULT);
this.codigo = this.procesos.generarCodigo(ConstantesApp.ACRONIMO_MODULO_FICHA_DETENIDO, ConstantesApp... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/mediators/MediatorWorker.java b/java/modules/core/src/main/java/org/apache/synapse/mediators/MediatorWorker.java
index d2f4d8898..8f94930da 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/mediators/MediatorWorker.java
+++ b/java/modules/cor... | true | true | public void run() {
try {
seq.mediate(synCtx);
//((Axis2MessageContext)synCtx).getAxis2MessageContext().getEnvelope().discard();
} catch (SynapseException syne) {
if (!synCtx.getFaultStack().isEmpty()) {
warn(false, "Executing fault handler due to... | public void run() {
try {
seq.mediate(synCtx);
//((Axis2MessageContext)synCtx).getAxis2MessageContext().getEnvelope().discard();
} catch (SynapseException syne) {
if (!synCtx.getFaultStack().isEmpty()) {
warn(false, "Executing fault handler due to... |
diff --git a/src/main/java/nl/topicus/onderwijs/dashboard/plotsources/AverageRequestTimePerApplicationPlot.java b/src/main/java/nl/topicus/onderwijs/dashboard/plotsources/AverageRequestTimePerApplicationPlot.java
index 576d4cc..c7a70bd 100644
--- a/src/main/java/nl/topicus/onderwijs/dashboard/plotsources/AverageRequest... | true | true | public JQPlot createPlot(String id) {
List<DataSourcePlotSeries<Integer, AverageRequestTime>> series = plotService
.getSeries(AverageRequestTime.class);
JQPlot ret = new JQPlot(
id,
new ListModel<DataSourcePlotSeries<Integer, AverageRequestTime>>(
series));
PlotOptions options = ret.getOptions(... | public JQPlot createPlot(String id) {
List<DataSourcePlotSeries<Integer, AverageRequestTime>> series = plotService
.getSeries(AverageRequestTime.class);
JQPlot ret = new JQPlot(
id,
new ListModel<DataSourcePlotSeries<Integer, AverageRequestTime>>(
series));
PlotOptions options = ret.getOptions(... |
diff --git a/src/test/java/com/celements/calendar/search/EventSearchQueryTest.java b/src/test/java/com/celements/calendar/search/EventSearchQueryTest.java
index e7e6b95..837610e 100644
--- a/src/test/java/com/celements/calendar/search/EventSearchQueryTest.java
+++ b/src/test/java/com/celements/calendar/search/EventSear... | true | true | public void testGetAsLuceneQuery_fuzzy() throws ParseException {
String dbName = "myDB";
String spaceName = "mySpace";
String searchTerm = "some search term";
Date fromDate = new SimpleDateFormat("yyyyMMddHHmm").parse("200001010000");
Date toDate = new SimpleDateFormat("yyyyMMddHHmm").parse("20100... | public void testGetAsLuceneQuery_fuzzy() throws ParseException {
String dbName = "myDB";
String spaceName = "mySpace";
String searchTerm = "some search term";
Date fromDate = new SimpleDateFormat("yyyyMMddHHmm").parse("200001010000");
Date toDate = new SimpleDateFormat("yyyyMMddHHmm").parse("20100... |
diff --git a/java/src/eu/semaine/system/ComponentRunner.java b/java/src/eu/semaine/system/ComponentRunner.java
index afdf6862..e2d9331f 100644
--- a/java/src/eu/semaine/system/ComponentRunner.java
+++ b/java/src/eu/semaine/system/ComponentRunner.java
@@ -1,179 +1,179 @@
/**
* Copyright (C) 2008 DFKI GmbH. All rights... | true | true | public ComponentRunner(String configFile)
throws SystemConfigurationException, IOException,
ClassNotFoundException, NoSuchMethodException, IllegalAccessException,
InstantiationException, InvocationTargetException
{
log = LogFactory.getLog(ComponentRunner.class);
components = new ArrayList<Component>();
Pr... | public ComponentRunner(String configFile)
throws SystemConfigurationException, IOException,
ClassNotFoundException, NoSuchMethodException, IllegalAccessException,
InstantiationException, InvocationTargetException
{
log = LogFactory.getLog(ComponentRunner.class);
components = new ArrayList<Component>();
Pr... |
diff --git a/cst/eu.esdihumboldt.cst.corefunctions/src/test/java/eu/esdihumboldt/cst/corefunctions/FunctionsCellTest.java b/cst/eu.esdihumboldt.cst.corefunctions/src/test/java/eu/esdihumboldt/cst/corefunctions/FunctionsCellTest.java
index ba9e7f049..81227140d 100755
--- a/cst/eu.esdihumboldt.cst.corefunctions/src/test/... | true | true | public static List<CstFunction> getTestFunctions() {
List<CstFunction> func = new ArrayList<CstFunction>();
func.add(new NilReasonFunction());
func.add(new DateExtractionFunction());
func.add(new BoundingBoxFunction());
func.add(new ClassificationMappingFunction());
func.add(new ClipByRectangleFunction())... | public static List<CstFunction> getTestFunctions() {
List<CstFunction> func = new ArrayList<CstFunction>();
func.add(new NilReasonFunction());
func.add(new DateExtractionFunction());
func.add(new BoundingBoxFunction());
func.add(new ClassificationMappingFunction());
func.add(new ClipByRectangleFunction())... |
diff --git a/test/ch9k/plugins/liteanalyzer/LiteTextAnalyzerTest.java b/test/ch9k/plugins/liteanalyzer/LiteTextAnalyzerTest.java
index 79d49b5..af86cf3 100644
--- a/test/ch9k/plugins/liteanalyzer/LiteTextAnalyzerTest.java
+++ b/test/ch9k/plugins/liteanalyzer/LiteTextAnalyzerTest.java
@@ -1,37 +1,39 @@
package ch9k.plu... | true | true | public void testGetSubject() {
TextAnalyzer analyzer =
new LiteTextAnalyzer(null, null, new Settings());
String[] messages = {
"Mushroom Mushroom Mushroom",
"Badger Badger",
"The a The a The a The a"
};
String[] subjects = analyzer.... | public void testGetSubject() {
Settings settings = new Settings();
settings.setInt(LiteTextAnalyzerPreferencePane.MAX_SUBJECTS, 3);
settings.setInt(LiteTextAnalyzerPreferencePane.MAX_MESSAGES, 5);
TextAnalyzer analyzer = new LiteTextAnalyzer(null, null, settings);
String[] me... |
diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java
index 4d91e679..3d8b5974 100644
--- a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java
+++ b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java
@@ -1,755 +1,755 @@
... | true | true | public void onCreate(Bundle savedInstanceState) {
CustomTitleBar titleBar = new CustomTitleBar(this, R.string.settings_activity, R.drawable.tab_settings_screen_icon, R.style.CustomTitleTheme_Preference);
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.settings_pref);
titleBar.afterSe... | public void onCreate(Bundle savedInstanceState) {
CustomTitleBar titleBar = new CustomTitleBar(this, R.string.settings_activity, R.drawable.tab_settings_screen_icon, R.style.CustomTitleTheme_Preference);
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.settings_pref);
titleBar.afterSe... |
diff --git a/nuxeo-core-jcr-connector/src/test/java/org/nuxeo/ecm/core/repository/jcr/TestXPathBuilder.java b/nuxeo-core-jcr-connector/src/test/java/org/nuxeo/ecm/core/repository/jcr/TestXPathBuilder.java
index 52bcbd301..fcdb71e2b 100644
--- a/nuxeo-core-jcr-connector/src/test/java/org/nuxeo/ecm/core/repository/jcr/Te... | true | true | public void test() throws QueryException {
double s = System.currentTimeMillis();
String q = null, x = null;
q = "SELECT * FROM Document WHERE test/dc:title='test'";
x = "//element(*,ecmdt:Document)[test/@dc:title = 'test']";
assertEquals(x, XPathBuilder.fromNXQL(q));
... | public void test() throws QueryException {
double s = System.currentTimeMillis();
String q = null, x = null;
q = "SELECT * FROM Document WHERE test/dc:title='test'";
x = "//element(*,ecmdt:Document)[test/@dc:title = 'test']";
assertEquals(x, XPathBuilder.fromNXQL(q));
... |
diff --git a/src/com/redhat/qe/sm/base/SubscriptionManagerTestScript.java b/src/com/redhat/qe/sm/base/SubscriptionManagerTestScript.java
index a862fffa..7c2fbcd2 100644
--- a/src/com/redhat/qe/sm/base/SubscriptionManagerTestScript.java
+++ b/src/com/redhat/qe/sm/base/SubscriptionManagerTestScript.java
@@ -1,239 +1,239 ... | true | true | public void setupBeforeSuite() throws ParseException, IOException{
SSHCommandRunner[] sshCommandRunners;
client = new SSHCommandRunner(clienthostname, sshUser, sshKeyPrivate, sshkeyPassphrase, null);
clienttasks = new com.redhat.qe.sm.tasks.ModuleTasks(client);
sshCommandRunners= new SSHCommandRunner[]{clie... | public void setupBeforeSuite() throws ParseException, IOException{
SSHCommandRunner[] sshCommandRunners;
client = new SSHCommandRunner(clienthostname, sshUser, sshKeyPrivate, sshkeyPassphrase, null);
clienttasks = new com.redhat.qe.sm.tasks.ModuleTasks(client);
sshCommandRunners= new SSHCommandRunner[]{clie... |
diff --git a/fNIRs/src/fNIRs/Hello.java b/fNIRs/src/fNIRs/Hello.java
index 39ba399..a5ac2d3 100644
--- a/fNIRs/src/fNIRs/Hello.java
+++ b/fNIRs/src/fNIRs/Hello.java
@@ -1,2790 +1,2805 @@
package fNIRs;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardCopyO... | false | true | protected int createContents() {
shlFnirsDataProcessing = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE);
shlFnirsDataProcessing.setFont(SWTResourceManager.getFont("Segoe UI",
12, SWT.NORMAL));
shlFnirsDataProcessing.setImage(SWTResourceManager.getImage(
Hello.class, "/fNIRs/logo.png"));
shlFnirsDataProces... | protected int createContents() {
shlFnirsDataProcessing = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE);
shlFnirsDataProcessing.setFont(SWTResourceManager.getFont("Segoe UI",
12, SWT.NORMAL));
shlFnirsDataProcessing.setImage(SWTResourceManager.getImage(
Hello.class, "/fNIRs/logo.png"));
shlFnirsDataProces... |
diff --git a/refapp-webapp/src/test/java/it/com/atlassian/plugin/refimpl/TestIndex.java b/refapp-webapp/src/test/java/it/com/atlassian/plugin/refimpl/TestIndex.java
index e4f2fd7..914295f 100644
--- a/refapp-webapp/src/test/java/it/com/atlassian/plugin/refimpl/TestIndex.java
+++ b/refapp-webapp/src/test/java/it/com/atl... | true | true | public void testIndex()
{
beginAt("/index.jsp");
assertTextPresent("com.atlassian.plugin.osgi.bridge");
assertTextNotPresent("Installed");
assertTextPresent("Atlassian Plugins - ");
}
| public void testIndex()
{
beginAt("/index.jsp");
assertTextPresent("com.atlassian.plugin.osgi.bridge");
assertTextNotPresent("Installed");
assertTextPresent("Atlassian RefApp ");
}
|
diff --git a/src/plugins/WebOfTrust/Trust.java b/src/plugins/WebOfTrust/Trust.java
index 4ea49ba7..4cb8f58b 100644
--- a/src/plugins/WebOfTrust/Trust.java
+++ b/src/plugins/WebOfTrust/Trust.java
@@ -1,277 +1,277 @@
/* This code is part of WoT, a plugin for Freenet. It is distributed
* under the GNU General Public L... | true | true | public void startupDatabaseIntegrityTest() throws Exception {
checkedActivate(2);
if(mTruster == null)
throw new NullPointerException("mTruster==null");
if(mTrustee == null)
throw new NullPointerException("mTrustee==null");
if(mValue < -100 || mValue > 100)
throw new IllegalStateException("In... | public void startupDatabaseIntegrityTest() throws Exception {
checkedActivate(2);
if(mTruster == null)
throw new NullPointerException("mTruster==null");
if(mTrustee == null)
throw new NullPointerException("mTrustee==null");
if(mValue < -100 || mValue > 100)
throw new IllegalStateException("In... |
diff --git a/core/src/main/java/org/apache/mahout/ep/State.java b/core/src/main/java/org/apache/mahout/ep/State.java
index fa0ecf5bf..fd27be56f 100644
--- a/core/src/main/java/org/apache/mahout/ep/State.java
+++ b/core/src/main/java/org/apache/mahout/ep/State.java
@@ -1,198 +1,198 @@
package org.apache.mahout.ep;
i... | true | true | public State<T> mutate() {
double sum = 0;
for (double v : step) {
sum += v * v;
}
sum = Math.sqrt(sum);
double lambda = 1 + gen.nextGaussian();
State<T> r = this.copy();
double magnitude = 0.9 * omni + sum / 10;
r.omni = magnitude * -Math.log(1 - gen.nextDouble());
for (int... | public State<T> mutate() {
double sum = 0;
for (double v : step) {
sum += v * v;
}
sum = Math.sqrt(sum);
double lambda = 1 + gen.nextGaussian();
State<T> r = this.copy();
double magnitude = 0.9 * omni + sum / 10;
r.omni = magnitude * -Math.log(1 - gen.nextDouble());
for (int... |
diff --git a/src/view/FirstPersonRoom.java b/src/view/FirstPersonRoom.java
index ac71917..0812f2e 100755
--- a/src/view/FirstPersonRoom.java
+++ b/src/view/FirstPersonRoom.java
@@ -1,90 +1,90 @@
package view;
import java.awt.Color;
import java.awt.event.MouseListener;
import javax.swing.ImageIcon;
import javax... | true | true | public JPanel getView(String direction) {
JPanel panel = new JPanel();
panel.setLayout(null);
if (getWall(direction).getMonster() != null && getWall(direction).getMonster().isAlive())
{
//Add a monster image
JLabel monster = new JLabel("");
monster.setToolTipText("attack," + getWall(direction... | public JPanel getView(String direction) {
JPanel panel = new JPanel();
panel.setLayout(null);
if (getWall(direction).getMonster() != null && getWall(direction).getMonster().isAlive())
{
//Add a monster image
JLabel monster = new JLabel("");
monster.setToolTipText("attack," + getWall(direction... |
diff --git a/server-unit/src/test/java/org/apache/directory/server/ssl/StartTlsITest.java b/server-unit/src/test/java/org/apache/directory/server/ssl/StartTlsITest.java
index 5bfb86a338..6eb6116ff4 100644
--- a/server-unit/src/test/java/org/apache/directory/server/ssl/StartTlsITest.java
+++ b/server-unit/src/test/java/... | false | true | public void testStartTls() throws Exception
{
for ( int ii = 0; ii < CONNECT_ITERATIONS; ii++ )
{
if ( VERBOSE )
{
System.out.println( "Performing " + ii + "-th iteration to connect via StartTLS." );
}
System.setProperty ( "javax.net.ssl.trustStore", ksFi... | public void testStartTls() throws Exception
{
for ( int ii = 0; ii < CONNECT_ITERATIONS; ii++ )
{
if ( VERBOSE )
{
System.out.println( "Performing " + ii + "-th iteration to connect via StartTLS." );
}
System.setProperty ( "javax.net.ssl.trustStore", ksFi... |
diff --git a/c/Compiler.java b/c/Compiler.java
index 64cfc43..9f9db6c 100644
--- a/c/Compiler.java
+++ b/c/Compiler.java
@@ -1,646 +1,646 @@
// ex: se sts=4 sw=4 expandtab:
/*
* Yeti language compiler java bytecode generator.
*
* Copyright (c) 2007-2013 Madis Janson
* All rights reserved.
*
* Redistribu... | false | true | void deriveName(YetiParser.Parser parser, YetiAnalyzer analyzer) {
if ((analyzer.flags & (CF_EVAL | CF_RESOLVE_MODULE)) == CF_EVAL) {
if (parser.moduleName == null)
parser.moduleName = "code";
if (sourcePath.length == 0)
sourcePath = new String[] { new... | void deriveName(YetiParser.Parser parser, YetiAnalyzer analyzer) {
if ((analyzer.flags & (CF_EVAL | CF_RESOLVE_MODULE)) == CF_EVAL) {
if (parser.moduleName == null)
parser.moduleName = "code";
if (sourcePath.length == 0)
sourcePath = new String[] { new... |
diff --git a/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java b/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java
index c9e7d5870a..61f0ccbe5b 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystem... | true | true | public void should_filter_changed_files() throws Exception {
File basedir = new File(resourcesDir(), "main_and_test_files");
Settings settings = new Settings();
settings.setProperty(CoreProperties.ENCODING_PROPERTY, "UTF-8");
File mainDir = new File(basedir, "src/main/java");
File testDir = new Fi... | public void should_filter_changed_files() throws Exception {
File basedir = new File(resourcesDir(), "main_and_test_files");
Settings settings = new Settings();
settings.setProperty(CoreProperties.ENCODING_PROPERTY, "UTF-8");
File mainDir = new File(basedir, "src/main/java");
File testDir = new Fi... |
diff --git a/modules/org.pathvisio.desktop/src/org/pathvisio/desktop/GuiMain.java b/modules/org.pathvisio.desktop/src/org/pathvisio/desktop/GuiMain.java
index 12fc4252..846addaa 100644
--- a/modules/org.pathvisio.desktop/src/org/pathvisio/desktop/GuiMain.java
+++ b/modules/org.pathvisio.desktop/src/org/pathvisio/deskto... | true | true | protected JFrame createAndShowGUI(final MainPanelStandalone mainPanel, final SwingEngine swingEngine)
{
//Create and set up the window.
final JFrame frame = new JFrame(Globals.APPLICATION_NAME);
// dispose on close, otherwise windowClosed event is not called.
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_O... | protected JFrame createAndShowGUI(final MainPanelStandalone mainPanel, final SwingEngine swingEngine)
{
//Create and set up the window.
final JFrame frame = new JFrame(Globals.APPLICATION_NAME);
// dispose on close, otherwise windowClosed event is not called.
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_O... |
diff --git a/tests/frontend/org/voltdb/VoltJUnitFormatter.java b/tests/frontend/org/voltdb/VoltJUnitFormatter.java
index c1e2d29da..436500023 100644
--- a/tests/frontend/org/voltdb/VoltJUnitFormatter.java
+++ b/tests/frontend/org/voltdb/VoltJUnitFormatter.java
@@ -1,123 +1,125 @@
/* This file is part of VoltDB.
* Co... | true | true | public void addError(Test arg0, Throwable arg1) {
String testName = "unknown";
if (arg0 != null) {
testName = arg0.toString();
testName = testName.substring(0, testName.indexOf('('));
}
out.println(" " + testName + " had an error.");
StackTraceElem... | public void addError(Test arg0, Throwable arg1) {
String testName = "unknown";
if (arg0 != null) {
testName = arg0.toString();
int idx = testName.indexOf('(');
assert(idx >= 0) : "Unexpected test name - " + testName;
testName = testName.substring(0, i... |
diff --git a/gnu/testlet/java/net/InetAddress/security.java b/gnu/testlet/java/net/InetAddress/security.java
index 8f798775..617db1bc 100644
--- a/gnu/testlet/java/net/InetAddress/security.java
+++ b/gnu/testlet/java/net/InetAddress/security.java
@@ -1,119 +1,119 @@
// Copyright (C) 2006 Red Hat, Inc.
// Written by G... | false | true | public void test(TestHarness harness)
{
try {
harness.checkPoint("setup");
InetAddress localhost = InetAddress.getLocalHost();
String hostname = localhost.getHostName();
harness.check(!hostname.equals(localhost.getHostAddress()));
byte[] hostaddr = localhost.getAddress();
P... | public void test(TestHarness harness)
{
try {
harness.checkPoint("setup");
InetAddress localhost = InetAddress.getLocalHost();
String hostname = localhost.getHostName();
harness.check(!hostname.equals(localhost.getHostAddress()));
byte[] hostaddr = localhost.getAddress();
P... |
diff --git a/Plugins/ExternalServices/Edemande/src/java/fr/capwebct/capdemat/plugins/externalservices/edemande/service/EdemandeService.java b/Plugins/ExternalServices/Edemande/src/java/fr/capwebct/capdemat/plugins/externalservices/edemande/service/EdemandeService.java
index 2202b4a22..7d4e64b08 100644
--- a/Plugins/Ext... | true | true | private void submitRequest(StudyGrantRequest sgr, String psCodeTiers, boolean firstSending) {
Map<String, Object> model = new HashMap<String, Object>();
String requestData = null;
if (!firstSending) {
try {
requestData = edemandeClient.chargerDemande(psCodeTiers, ... | private void submitRequest(StudyGrantRequest sgr, String psCodeTiers, boolean firstSending) {
Map<String, Object> model = new HashMap<String, Object>();
String requestData = null;
if (!firstSending) {
try {
requestData = edemandeClient.chargerDemande(psCodeTiers, ... |
diff --git a/Character_Cards/src/net/sf/anathema/cards/data/providers/EquipmentCardDataProvider.java b/Character_Cards/src/net/sf/anathema/cards/data/providers/EquipmentCardDataProvider.java
index 182507f7f2..d9d7eedb7e 100644
--- a/Character_Cards/src/net/sf/anathema/cards/data/providers/EquipmentCardDataProvider.java... | true | true | public ICardData[] getCards(ICharacter character,
ICardReportResourceProvider resourceProvider) {
IEquipmentAdditionalModel model = (IEquipmentAdditionalModel) character.getStatistics().
getCharacterContext().getAdditionalModel(IEquipmentAdditionalModelTemplate.ID);
List<ICardData> data = new ArrayList<ICar... | public ICardData[] getCards(ICharacter character,
ICardReportResourceProvider resourceProvider) {
IEquipmentAdditionalModel model = (IEquipmentAdditionalModel) character.getStatistics().
getCharacterContext().getAdditionalModel(IEquipmentAdditionalModelTemplate.ID);
List<ICardData> data = new ArrayList<ICar... |
diff --git a/museumassault/MuseumAssault.java b/museumassault/MuseumAssault.java
index e430194..4ec75e8 100644
--- a/museumassault/MuseumAssault.java
+++ b/museumassault/MuseumAssault.java
@@ -1,85 +1,85 @@
package museumassault;
import java.util.Random;
import museumassault.monitor.Corridor;
import museumassault... | false | true | public static void main(String[] args)
{
// Configurable params
int nrChiefs = 1;
int nrTeams = 1;
int nrThievesPerTeam = 5;
int nrRooms = 4;
int maxDistanceBetweenThieves = 1;
int totalThieves = nrTeams * nrThievesPerTeam;
String logFileName = "log.t... | public static void main(String[] args)
{
// Configurable params
int nrChiefs = 1;
int nrTeams = 1;
int nrThievesPerTeam = 5;
int nrRooms = 4;
int maxDistanceBetweenThieves = 1;
int totalThieves = nrTeams * nrThievesPerTeam;
String logFileName = "log.t... |
diff --git a/src/com/android/providers/downloads/DownloadNotifier.java b/src/com/android/providers/downloads/DownloadNotifier.java
index daae783..f387865 100644
--- a/src/com/android/providers/downloads/DownloadNotifier.java
+++ b/src/com/android/providers/downloads/DownloadNotifier.java
@@ -1,318 +1,322 @@
/*
* Cop... | false | true | private void updateWithLocked(Collection<DownloadInfo> downloads) {
final Resources res = mContext.getResources();
// Cluster downloads together
final Multimap<String, DownloadInfo> clustered = ArrayListMultimap.create();
for (DownloadInfo info : downloads) {
final Strin... | private void updateWithLocked(Collection<DownloadInfo> downloads) {
final Resources res = mContext.getResources();
// Cluster downloads together
final Multimap<String, DownloadInfo> clustered = ArrayListMultimap.create();
for (DownloadInfo info : downloads) {
final Strin... |
diff --git a/src/test/java/jeffraytracer/rendering/supersampling/WeightedGridAveragerTest.java b/src/test/java/jeffraytracer/rendering/supersampling/WeightedGridAveragerTest.java
index bd12fbb..9a72863 100644
--- a/src/test/java/jeffraytracer/rendering/supersampling/WeightedGridAveragerTest.java
+++ b/src/test/java/jef... | false | true | public void testAverage() {
Vector3D[] colors = new Vector3D[4];
colors[0] = new Vector3D(0.2, 0.2, 0.2);
colors[1] = new Vector3D(0.3, 0.3, 0.3);
colors[2] = new Vector3D(0.4, 0.4, 0.4);
colors[3] = new Vector3D(0.5, 0.5, 0.5);
double[] weights = { 1, 2, 2, 3 };
final WeightedGridAvera... | public void testAverage() {
Vector3D[] colors = new Vector3D[4];
colors[0] = new Vector3D(0.2, 0.2, 0.2);
colors[1] = new Vector3D(0.3, 0.3, 0.3);
colors[2] = new Vector3D(0.4, 0.4, 0.4);
colors[3] = new Vector3D(0.5, 0.5, 0.5);
double[] weights = { 1, 2, 2, 3 };
final WeightedGridAvera... |
diff --git a/src/main/java/br/com/xisp/mail/MailerImpl.java b/src/main/java/br/com/xisp/mail/MailerImpl.java
index db988f3..53dd63f 100644
--- a/src/main/java/br/com/xisp/mail/MailerImpl.java
+++ b/src/main/java/br/com/xisp/mail/MailerImpl.java
@@ -1,33 +1,33 @@
package br.com.xisp.mail;
import org.apache.commons.m... | true | true | public void sendMail(String to, String from, String subject,
String message) {
SimpleEmail email = new SimpleEmail();
try {
email.setDebug(true);
email.setHostName("smtp.gmail.com");
//Autenticar com outra conta
email.setAuthentication("edipofederle", "senha");
email.setSSL(true);
email.addT... | public void sendMail(String to, String from, String subject,
String message) {
SimpleEmail email = new SimpleEmail();
try {
email.setDebug(true);
email.setHostName("smtp.gmail.com");
//Autenticar com outra conta
email.setAuthentication("edipofederle", "luis@federle");
email.setSSL(true);
ema... |
diff --git a/src/com/chrisfolger/needsmoredojo/core/util/DeclareUtil.java b/src/com/chrisfolger/needsmoredojo/core/util/DeclareUtil.java
index e65059e..17e11b0 100644
--- a/src/com/chrisfolger/needsmoredojo/core/util/DeclareUtil.java
+++ b/src/com/chrisfolger/needsmoredojo/core/util/DeclareUtil.java
@@ -1,89 +1,100 @@
... | false | true | public DeclareStatementItems getDeclareStatementFromParsedStatement(Object[] result, boolean parseMethodsFromObjectLiteral)
{
JSCallExpression expression = (JSCallExpression) result[0];
// this will be used to determine what we mixin to the util
JSExpression[] expressionsToMixin = new J... | public DeclareStatementItems getDeclareStatementFromParsedStatement(Object[] result, boolean parseMethodsFromObjectLiteral)
{
JSCallExpression expression = (JSCallExpression) result[0];
// this will be used to determine what we mixin to the util
JSExpression[] expressionsToMixin = new J... |
diff --git a/Rabbit.java b/Rabbit.java
index 5a07022..b00eb65 100644
--- a/Rabbit.java
+++ b/Rabbit.java
@@ -1,84 +1,84 @@
import java.util.ArrayList;
import java.util.List;
import java.awt.Image;
import java.util.Collections;
public class Rabbit extends Animal {
private static final int sightDistance = 10;... | true | true | public void act(Grid grid){
Debug.echo("Here is where the Rabbit would act");
GridSquare mySquare = grid.get(getLocation());
List<DistanceSquarePair> visibleSquares = grid.getAdjacentSquares(getLocation(), sightDistance);
List<DistanceSquarePair> predatorSquares = grid.getOr... | public void act(Grid grid){
Debug.echo("Here is where the Rabbit would act");
GridSquare mySquare = grid.get(getLocation());
List<DistanceSquarePair> visibleSquares = grid.getAdjacentSquares(getLocation(), sightDistance);
List<DistanceSquarePair> predatorSquares = grid.getOr... |
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/mapping/ResourceChangeDescriptionFactory.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/mapping/ResourceChangeDescriptionFactory.java
index b8cda3c2c..65d77fad0 100644
--- a/bundles/org.eclipse.cor... | false | true | private void moveOrCopy(IResource resource, IPath destination, final boolean move) {
final IPath sourcePrefix = resource.getFullPath();
final IPath destinationPrefix = destination;
try {
resource.accept(new IResourceVisitor() {
public boolean visit(IResource child) {
ProposedResourceDelta sourceDelta... | private void moveOrCopy(IResource resource, IPath destination, final boolean move) {
final IPath sourcePrefix = resource.getFullPath();
final IPath destinationPrefix = destination;
try {
resource.accept(new IResourceVisitor() {
public boolean visit(IResource child) {
ProposedResourceDelta sourceDelta... |
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java
index ed1c5f8d..2bbd2199 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/PluginsComposite.java
+++ b/org.eclipse.... | true | true | private void createPluginDetailsSection(Composite horizontalSashForm) {
Composite detailsComposite = toolkit.createComposite(horizontalSashForm, SWT.NONE);
GridLayout detailsCompositeLayout = new GridLayout();
detailsCompositeLayout.marginWidth = 0;
detailsCompositeLayout.marginHeight = 0;
... | private void createPluginDetailsSection(Composite horizontalSashForm) {
Composite detailsComposite = toolkit.createComposite(horizontalSashForm, SWT.NONE);
GridLayout detailsCompositeLayout = new GridLayout();
detailsCompositeLayout.marginWidth = 0;
detailsCompositeLayout.marginHeight = 0;
... |
diff --git a/src/com/ichi2/anki/WidgetStatus.java b/src/com/ichi2/anki/WidgetStatus.java
index 0b77eda7..b3481dea 100644
--- a/src/com/ichi2/anki/WidgetStatus.java
+++ b/src/com/ichi2/anki/WidgetStatus.java
@@ -1,242 +1,248 @@
/***************************************************************************************
*... | false | true | protected Context doInBackground(Context... params) {
Log.d(AnkiDroidApp.TAG, "WidgetStatus.UpdateDeckStatusAsyncTask.doInBackground()");
Context context = params[0];
if (!AnkiDroidApp.isSdCardMounted()) {
return context;
}
SharedPrefere... | protected Context doInBackground(Context... params) {
Log.d(AnkiDroidApp.TAG, "WidgetStatus.UpdateDeckStatusAsyncTask.doInBackground()");
Context context = params[0];
if (!AnkiDroidApp.isSdCardMounted()) {
return context;
}
SharedPrefere... |
diff --git a/src/com/herocraftonline/dev/heroes/command/skill/skills/SkillBlaze.java b/src/com/herocraftonline/dev/heroes/command/skill/skills/SkillBlaze.java
index 8380d42..bae900a 100644
--- a/src/com/herocraftonline/dev/heroes/command/skill/skills/SkillBlaze.java
+++ b/src/com/herocraftonline/dev/heroes/command/skil... | false | true | public boolean use(Hero hero, String[] args) {
List<Entity> entities = hero.getPlayer().getNearbyEntities(5, 5, 5);
for(Entity n : entities){
if(n instanceof Player){
Player pN = (Player) n;
int healamount = getSetting(hero.getHeroClass(), "fire-length", 3... | public boolean use(Hero hero, String[] args) {
List<Entity> entities = hero.getPlayer().getNearbyEntities(5, 5, 5);
for(Entity n : entities){
Player pN = (Player) n;
int healamount = getSetting(hero.getHeroClass(), "fire-length", 3000);
EntityDamageEve... |
diff --git a/org.eclipse.virgo.ide.runtime.core/src/org/eclipse/virgo/ide/runtime/internal/core/ServerLaunchConfigurationDelegate.java b/org.eclipse.virgo.ide.runtime.core/src/org/eclipse/virgo/ide/runtime/internal/core/ServerLaunchConfigurationDelegate.java
index 0f55562..38fab9a 100644
--- a/org.eclipse.virgo.ide.run... | true | true | public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor)
throws CoreException {
IServer server = ServerUtil.getServer(configuration);
if (server == null) {
return;
}
IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 5);
checkCancelled(su... | public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor)
throws CoreException {
IServer server = ServerUtil.getServer(configuration);
if (server == null) {
return;
}
IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 5);
checkCancelled(su... |
diff --git a/src/wars/dragon/engine/Map.java b/src/wars/dragon/engine/Map.java
index 4d3b1e3..8e14af1 100644
--- a/src/wars/dragon/engine/Map.java
+++ b/src/wars/dragon/engine/Map.java
@@ -1,67 +1,69 @@
//package wars.dragon.engine;
import java.util.*;
public class Map {
List< List<GameField> > fields;
... | false | true | public Boolean isValidField(Integer x, Integer y) {
if (this.fields == null)
return false;
if (x < 0 || y < 0)
return false;
if (x > this.fields.size() || this.fields.get(0) == null ||
this.fields.get(0).size() > y)
return false;
return true;
}
| public Boolean isValidField(Integer x, Integer y) {
if (this.fields == null || this.fields.get(0) == null) {
return false;
}
if (x < 0 || y < 0) {
return false;
}
if (x >= this.fields.size() || y >= this.fields.get(0).size()) {
return false;
}
return true;
}
|
diff --git a/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java b/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java
index 916e60723..b1e54c1eb 100644
--- a/servicemix-core/src/main/java/org/apache/servicemix/tck/ExchangeCompletedListener.java
+++ ... | true | true | public void assertExchangeCompleted() throws Exception {
long start = System.currentTimeMillis();
MessageExchange active = null;
while (true) {
synchronized (exchanges) {
for (Iterator it = exchanges.values().iterator(); it.hasNext();) {
active... | public void assertExchangeCompleted() throws Exception {
long start = System.currentTimeMillis();
MessageExchange active = null;
while (true) {
synchronized (exchanges) {
for (Iterator it = exchanges.values().iterator(); it.hasNext();) {
active... |
diff --git a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
index 3e503edc4..06237460f 100644
--- a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
+++ b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
@@ -1,857 +1,859 @@
package spim;
import ij.IJ;
import... | false | 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/core/src/main/java/edu/northwestern/bioinformatics/studycalendar/service/ImportActivitiesService.java b/core/src/main/java/edu/northwestern/bioinformatics/studycalendar/service/ImportActivitiesService.java
index 2061bcfd7..0dc416432 100644
--- a/core/src/main/java/edu/northwestern/bioinformatics/studycalen... | true | true | protected List<Source> replaceCollidingSources(Collection<Source> sources) {
List<Source> validSources = new ArrayList<Source>();
List<Source> existingSources = sourceDao.getAll();
for (Source source : sources) {
if (existingSources.contains(source)) {
Source exi... | protected List<Source> replaceCollidingSources(Collection<Source> sources) {
List<Source> validSources = new ArrayList<Source>();
List<Source> existingSources = sourceDao.getAll();
for (Source source : sources) {
if (existingSources.contains(source)) {
Source exi... |
diff --git a/org.emftext.sdk.concretesyntax/src-gen/org/emftext/sdk/concretesyntax/impl/NormalTokenImpl.java b/org.emftext.sdk.concretesyntax/src-gen/org/emftext/sdk/concretesyntax/impl/NormalTokenImpl.java
index c57d7b4f7..876ab738c 100644
--- a/org.emftext.sdk.concretesyntax/src-gen/org/emftext/sdk/concretesyntax/imp... | true | true | public String getRegex(NormalToken token, Set<NormalToken> visitedTokens) {
visitedTokens.add(token);
StringBuilder result = new StringBuilder();
for (RegexPart part : token.getRegexParts()) {
if (part instanceof AtomicRegex) {
result.append(part.getRegex());
} else if (part instanceof RegexReference)... | public String getRegex(NormalToken token, Set<NormalToken> visitedTokens) {
visitedTokens.add(token);
StringBuilder result = new StringBuilder();
for (RegexPart part : token.getRegexParts()) {
if (part instanceof AtomicRegex) {
result.append(part.getRegex());
} else if (part instanceof RegexReference)... |
diff --git a/src/src/java/org/fit/pis/library/back/ChangePasswordBean.java b/src/src/java/org/fit/pis/library/back/ChangePasswordBean.java
index f3f209b..f9adcbb 100644
--- a/src/src/java/org/fit/pis/library/back/ChangePasswordBean.java
+++ b/src/src/java/org/fit/pis/library/back/ChangePasswordBean.java
@@ -1,93 +1,93 ... | false | true | public String actionChange() {
user = userMgr.find(authBean.getIduser());
if (user.getPassword().compareTo(oldPassword) == 0) {
if (newPassword1.compareTo(newPassword2) == 0) {
try {
user.setPassword(newPassword1);
userMgr.Save(user);
} catch (javax.ejb.EJBException e) {
FacesContext.get... | public String actionChange() {
user = userMgr.find(authBean.getIduser());
if (user.getPassword().compareTo(oldPassword) == 0) {
if (newPassword1.compareTo(newPassword2) == 0) {
try {
user.setPassword(newPassword1);
userMgr.Save(user);
} catch (javax.ejb.EJBException e) {
FacesContext.get... |
diff --git a/src/com/redhat/qe/tools/RemoteFileTasks.java b/src/com/redhat/qe/tools/RemoteFileTasks.java
index a7f3214..979048b 100644
--- a/src/com/redhat/qe/tools/RemoteFileTasks.java
+++ b/src/com/redhat/qe/tools/RemoteFileTasks.java
@@ -1,171 +1,171 @@
package com.redhat.qe.tools;
import java.io.File;
import j... | true | true | public static void runCommandAndAssert(SSHCommandRunner sshCommandRunner, String command, String stdoutGrepExpression, String stderrGrepExpression, int expectedExitCode) {
//String runCommand = String.format("(%s | tee %s) 3>&1 1>&2 2>&3 | tee %s", command, stdoutFile, stderrFile); // the problem with this is that ... | public static void runCommandAndAssert(SSHCommandRunner sshCommandRunner, String command, String stdoutGrepExpression, String stderrGrepExpression, int expectedExitCode) {
//String runCommand = String.format("(%s | tee %s) 3>&1 1>&2 2>&3 | tee %s", command, stdoutFile, stderrFile); // the problem with this is that ... |
diff --git a/frost-wot/source/frost/Core.java b/frost-wot/source/frost/Core.java
index aa0a1714..1b519596 100644
--- a/frost-wot/source/frost/Core.java
+++ b/frost-wot/source/frost/Core.java
@@ -1,751 +1,756 @@
/*
Core.java / Frost
Copyright (C) 2003 Frost Project <jtcfrost.sourceforge.net>
This program is... | false | true | public void initialize() throws Exception {
Splashscreen splashscreen = new Splashscreen(frostSettings.getBoolValue(SettingsClass.DISABLE_SPLASHSCREEN));
splashscreen.setVisible(true);
keypool = frostSettings.getValue("keypool.dir");
splashscreen.setText(language.getString("Splashs... | public void initialize() throws Exception {
Splashscreen splashscreen = new Splashscreen(frostSettings.getBoolValue(SettingsClass.DISABLE_SPLASHSCREEN));
splashscreen.setVisible(true);
keypool = frostSettings.getValue("keypool.dir");
splashscreen.setText(language.getString("Splashs... |
diff --git a/table/src/main/uk/ac/starlink/table/Tables.java b/table/src/main/uk/ac/starlink/table/Tables.java
index 895469f96..74b6847ea 100644
--- a/table/src/main/uk/ac/starlink/table/Tables.java
+++ b/table/src/main/uk/ac/starlink/table/Tables.java
@@ -1,481 +1,481 @@
package uk.ac.starlink.table;
import java.i... | true | true | public static void checkTable( StarTable table ) throws IOException {
int formatChars = 100;
int ncol = table.getColumnCount();
long nrow = table.getRowCount();
boolean isRandom = table.isRandom();
/* Check a random-access table knows how many rows it has. */
if ( is... | public static void checkTable( StarTable table ) throws IOException {
int formatChars = 100;
int ncol = table.getColumnCount();
long nrow = table.getRowCount();
boolean isRandom = table.isRandom();
/* Check a random-access table knows how many rows it has. */
if ( is... |
diff --git a/src/husacct/analyse/domain/famix/FamixModel.java b/src/husacct/analyse/domain/famix/FamixModel.java
index 998af880..a61ad95c 100644
--- a/src/husacct/analyse/domain/famix/FamixModel.java
+++ b/src/husacct/analyse/domain/famix/FamixModel.java
@@ -1,212 +1,211 @@
package husacct.analyse.domain.famix;
imp... | false | true | public void addObject(Object e) throws InvalidAttributesException {
if (e instanceof FamixEntity) {
if (e instanceof FamixBehaviouralEntity) {
behaviouralEntities.put(((FamixEntity) e).uniqueName, (FamixBehaviouralEntity) e);
} else if (e instanceof FamixStructuralEnt... | public void addObject(Object e) throws InvalidAttributesException {
if (e instanceof FamixEntity) {
if (e instanceof FamixBehaviouralEntity) {
behaviouralEntities.put(((FamixEntity) e).uniqueName, (FamixBehaviouralEntity) e);
} else if (e instanceof FamixStructuralEnt... |
diff --git a/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java b/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java
index e77f58da..351c2a5b 100644
--- a/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java
+++ b/src/gov/nih/nci/cadsr/cdecurate/tool/ValueDomainServlet.java
@@ -1,2321 +1,232... | true | true | private void doValidateVD() throws Exception
{
HttpSession session = m_classReq.getSession();
String sAction = (String) m_classReq.getParameter("pageAction");
if (sAction == null)
sAction = "";
// do below for versioning to check whether these two have changed
... | private void doValidateVD() throws Exception
{
HttpSession session = m_classReq.getSession();
String sAction = (String) m_classReq.getParameter("pageAction");
if (sAction == null)
sAction = "";
// do below for versioning to check whether these two have changed
... |
diff --git a/com.sap.benefits.management/src/com/sap/benefits/management/services/AuthorizationFilter.java b/com.sap.benefits.management/src/com/sap/benefits/management/services/AuthorizationFilter.java
index 0110cb3..3fa7b74 100644
--- a/com.sap.benefits.management/src/com/sap/benefits/management/services/Authorizatio... | true | true | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest) request;
String loggedInUser = httpRequest.getRemoteUser();
if (loggedInUser != null) {
final StringBuilder path = new StringB... | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest) request;
String loggedInUser = httpRequest.getRemoteUser();
if (loggedInUser != null) {
final StringBuilder path = new StringB... |
diff --git a/src/gui/GUI_Lane.java b/src/gui/GUI_Lane.java
index a57b5bd..2612133 100644
--- a/src/gui/GUI_Lane.java
+++ b/src/gui/GUI_Lane.java
@@ -1,195 +1,196 @@
package gui;
import agents.*;
import java.util.*;
import javax.swing.*;
public class GUI_Lane extends GUI_Component{
boolean laneOn, moveFast;... | true | true | public void paintComponent()
{
myDrawing.posX = x;
myDrawing.posY = y;
if(laneOn){
myDrawing.filename = ("laneMov" + ((animCounter/10) + 1) + ".png");
if(moveFast)
{
fasterWater();
animCounter = (animCounter+waterVibrationLevel)%30;
waterLevel... | public void paintComponent()
{
myDrawing.posX = x;
myDrawing.posY = y;
if(laneOn){
myDrawing.filename = ("laneMov" + ((animCounter/10) + 1) + ".png");
if(moveFast)
{
fasterWater();
animCounter = (animCounter+waterVibrationLevel)%30;
waterLevel... |
diff --git a/modules/tools/audio-manager/src/classes/org/jdesktop/wonderland/modules/audiomanager/client/UserListHUDPanel.java b/modules/tools/audio-manager/src/classes/org/jdesktop/wonderland/modules/audiomanager/client/UserListHUDPanel.java
index fef44640d..f6961f77b 100644
--- a/modules/tools/audio-manager/src/class... | false | true | private void initComponents() {
controlPanel = new javax.swing.JPanel();
muteButton = new javax.swing.JButton();
textChatButton = new javax.swing.JButton();
voiceChatButton = new javax.swing.JButton();
phoneButton = new javax.swing.JButton();
editButton = new javax.s... | private void initComponents() {
controlPanel = new javax.swing.JPanel();
muteButton = new javax.swing.JButton();
textChatButton = new javax.swing.JButton();
voiceChatButton = new javax.swing.JButton();
phoneButton = new javax.swing.JButton();
editButton = new javax.s... |
diff --git a/maven-mboot2/src/main/java/MBoot.java b/maven-mboot2/src/main/java/MBoot.java
index 156fd3a02..7a7965c51 100644
--- a/maven-mboot2/src/main/java/MBoot.java
+++ b/maven-mboot2/src/main/java/MBoot.java
@@ -1,1438 +1,1438 @@
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sa... | true | true | public void run( String[] args )
throws Exception
{
File mavenPropertiesFile = new File( System.getProperty( "user.home" ), "maven.properties" );
if ( !mavenPropertiesFile.exists() )
{
System.out.println( "You must have a ~/maven.properties file and must contain the ... | public void run( String[] args )
throws Exception
{
File mavenPropertiesFile = new File( System.getProperty( "user.home" ), "maven.properties" );
if ( !mavenPropertiesFile.exists() )
{
System.out.println( "You must have a ~/maven.properties file and must contain the ... |
diff --git a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java
index 7f15fd8bd..10cfca900 100644
--- a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java
+++ b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java
@@ -1,255 +1,255 @@
/* *******... | true | true | public void attach() {
if (initialized)
return;
initialized = true;
// Configure tree
features = new Tree();
features.addContainerProperty("name", String.class, "");
features.addContainerProperty("feature", Feature.class, null);
features.setItemCaptionPropertyId("name");
features.addListener(this)... | public void attach() {
if (initialized)
return;
initialized = true;
// Configure tree
features = new Tree();
features.addContainerProperty("name", String.class, "");
features.addContainerProperty("feature", Feature.class, null);
features.setItemCaptionPropertyId("name");
features.addListener(this)... |
diff --git a/htroot/index.java b/htroot/index.java
index 55418f943..93b1a59bb 100644
--- a/htroot/index.java
+++ b/htroot/index.java
@@ -1,317 +1,317 @@
// index.java
// -----------------------
// part of the AnomicHTTPD caching proxy
// (C) by Michael Peter Christen; mc@anomic.de
// first published on http://www.... | true | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
boolean global = (post == null) ? true : post.get("resource", "global").equals("global");
final boolean indexDistributeGranted = sb.getConfig(... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
boolean global = (post == null) ? true : post.get("resource", "global").equals("global");
final boolean indexDistributeGranted = sb.getConfig(... |
diff --git a/src/com/flobi/utility/functions.java b/src/com/flobi/utility/functions.java
index af8e021..f60acfa 100644
--- a/src/com/flobi/utility/functions.java
+++ b/src/com/flobi/utility/functions.java
@@ -1,60 +1,61 @@
package com.flobi.utility;
import java.text.DecimalFormat;
import net.milkbowl.vault.econo... | true | true | public static String formatAmount(double unsafeMoney) {
if (floAuction.econ == null) return "-";
return floAuction.econ.format(unsafeMoney);
}
| public static String formatAmount(double unsafeMoney) {
if (floAuction.econ == null) return "-";
if (!floAuction.econ.isEnabled()) return "-";
return floAuction.econ.format(unsafeMoney);
}
|
diff --git a/tour/message/jibx/src/main/java/com/tourapp/tour/message/jibx/ota2010a/base/response/in/PingResponseJibxMessageIn2010A.java b/tour/message/jibx/src/main/java/com/tourapp/tour/message/jibx/ota2010a/base/response/in/PingResponseJibxMessageIn2010A.java
index a7cfa6d9..8183774c 100644
--- a/tour/message/jibx/s... | false | true | public int convertMarshallableObjectToInternal(Object root, RecordOwner recordOwner)
{
if (root instanceof PingRS)
{ // Always
PingRS msg = (PingRS)root;
java.util.List<PingRS.Sequence> list = null;//msg.getSuccesses();
Errors errors = msg.getErrors();
... | public int convertMarshallableObjectToInternal(Object root, RecordOwner recordOwner)
{
if (root instanceof PingRS)
{ // Always
PingRS msg = (PingRS)root;
java.util.List<PingRS.Sequence> list = msg.getSuccessList();
Errors errors = msg.getErrors();
... |
diff --git a/src/java/org/kisst/gft/admin/ChannelServlet.java b/src/java/org/kisst/gft/admin/ChannelServlet.java
index 156ea2e..9503b64 100644
--- a/src/java/org/kisst/gft/admin/ChannelServlet.java
+++ b/src/java/org/kisst/gft/admin/ChannelServlet.java
@@ -1,37 +1,37 @@
package org.kisst.gft.admin;
import java.io.I... | true | true | public void handle(HttpServletRequest request, HttpServletResponse response)
throws IOException {
if (getUser(request, response)==null)
return;
response.setContentType("text/html;charset=utf-8");
//response.setStatus(HttpServletResponse.SC_OK);
PrintWriter out = response.getWriter();
String url=request... | public void handle(HttpServletRequest request, HttpServletResponse response)
throws IOException {
if (getUser(request, response)==null)
return;
response.setContentType("text/html;charset=utf-8");
//response.setStatus(HttpServletResponse.SC_OK);
PrintWriter out = response.getWriter();
String url=request... |
diff --git a/android/src/net/sf/openrocket/android/rocket/MotorConfigSpinner.java b/android/src/net/sf/openrocket/android/rocket/MotorConfigSpinner.java
index ce5f2bd4..e8501785 100644
--- a/android/src/net/sf/openrocket/android/rocket/MotorConfigSpinner.java
+++ b/android/src/net/sf/openrocket/android/rocket/MotorConf... | true | true | public int getConfigurationPosition(String configId) {
int selectedIndex = 0;
if ( configId == null ) {
return selectedIndex;
}
for( String s : motorConfigs ) {
// Note - s may be null since it is a valid id.
if ( configId.equals(s) ) {
break;
}
selectedIndex++;
}
if( sel... | public int getConfigurationPosition(String configId) {
int selectedIndex = 0;
if ( configId == null ) {
return selectedIndex;
}
for( String s : motorConfigs ) {
// Note - s may be null since it is a valid id.
if ( configId.equals(s) ) {
break;
}
selectedIndex++;
}
if( sel... |
diff --git a/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java b/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java
index a3200b7239..a7cfea61ba 100644
--- a/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java
+++ b/webui/core/src/main/java/org/exoplatform/webui/core/UITree.java
@... | false | true | public String renderNode(Object obj) throws Exception {
String nodeIcon = expandIcon;
String iconGroup = icon;
String note = "" ;
if(isSelected(obj)) {
nodeIcon = colapseIcon;
iconGroup = selectedIcon;
note = " NodeSelected" ;
}
if(beanIconField_ != null &&... | public String renderNode(Object obj) throws Exception {
String nodeIcon = expandIcon;
String iconGroup = icon;
String note = "" ;
if(isSelected(obj)) {
nodeIcon = colapseIcon;
iconGroup = selectedIcon;
note = " NodeSelected" ;
}
if(beanIconField_ != null &&... |
diff --git a/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java b/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java
index c0c9f02..6b87801 100644
--- a/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java
+++ b/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.... | false | true | private String[] getArguments(String... arguments) throws Exception {
String[] args;
if (System.getenv().containsKey("windir")) {
args = new String[2 + arguments.length];
args[0] = System.getenv("windir") + "\\system32\\cmd.exe";
args[1] = "/C";
Syst... | private String[] getArguments(String... arguments) throws Exception {
String[] args;
if (System.getenv().containsKey("windir")) {
args = new String[2 + arguments.length];
args[0] = System.getenv("windir") + "\\system32\\cmd.exe";
args[1] = "/C";
Syst... |
diff --git a/enough-polish-j2me/source/src/de/enough/polish/ui/ChoiceGroup.java b/enough-polish-j2me/source/src/de/enough/polish/ui/ChoiceGroup.java
index b0b15e5..2940a62 100644
--- a/enough-polish-j2me/source/src/de/enough/polish/ui/ChoiceGroup.java
+++ b/enough-polish-j2me/source/src/de/enough/polish/ui/ChoiceGroup.... | true | true | protected boolean handleKeyPressed(int keyCode, int gameAction) {
if (this.itemsList.size() == 0) {
//#debug
System.out.println("itemsList.size()==0, aborting handleKeyPressed");
return super.handleKeyPressed(keyCode, gameAction);
}
boolean gameActionIsFire = (gameAction == Canvas.FIRE);
//#debug
S... | protected boolean handleKeyPressed(int keyCode, int gameAction) {
if (this.itemsList.size() == 0) {
//#debug
System.out.println("itemsList.size()==0, aborting handleKeyPressed");
return super.handleKeyPressed(keyCode, gameAction);
}
boolean gameActionIsFire = (gameAction == Canvas.FIRE);
//#debug
S... |
diff --git a/src/com/ferg/awful/thread/AwfulPost.java b/src/com/ferg/awful/thread/AwfulPost.java
index 45bf9824..34d0d825 100644
--- a/src/com/ferg/awful/thread/AwfulPost.java
+++ b/src/com/ferg/awful/thread/AwfulPost.java
@@ -1,340 +1,340 @@
/***************************************************************************... | true | true | public static ArrayList<AwfulPost> parsePosts(TagNode aThread) {
ArrayList<AwfulPost> result = new ArrayList<AwfulPost>();
HtmlCleaner cleaner = new HtmlCleaner();
CleanerProperties properties = cleaner.getProperties();
properties.setOmitComments(true);
SimpleHtmlSerializer seriali... | public static ArrayList<AwfulPost> parsePosts(TagNode aThread) {
ArrayList<AwfulPost> result = new ArrayList<AwfulPost>();
HtmlCleaner cleaner = new HtmlCleaner();
CleanerProperties properties = cleaner.getProperties();
properties.setOmitComments(true);
SimpleHtmlSerializer seriali... |
diff --git a/src/test/java/com/jayway/wordgraph/Collections3Test.java b/src/test/java/com/jayway/wordgraph/Collections3Test.java
index 83bceb7..0711044 100644
--- a/src/test/java/com/jayway/wordgraph/Collections3Test.java
+++ b/src/test/java/com/jayway/wordgraph/Collections3Test.java
@@ -1,107 +1,107 @@
package com.ja... | true | true | public void parallelMapShouldRunQuicker() {
Function<Integer, Integer> timeConsumingCalculation = new Function<Integer, Integer>() {
public Integer apply(Integer from) {
try {
Thread.sleep(1000);
}
catch (InterruptedException e... | public void parallelMapShouldRunQuicker() {
Function<Integer, Integer> timeConsumingCalculation = new Function<Integer, Integer>() {
public Integer apply(Integer from) {
try {
Thread.sleep(1000);
}
catch (InterruptedException e... |
diff --git a/src/main/java/cz/muni/fi/publishsubscribe/countingtree/benchmark/Main.java b/src/main/java/cz/muni/fi/publishsubscribe/countingtree/benchmark/Main.java
index 4e53fe2..8f15581 100644
--- a/src/main/java/cz/muni/fi/publishsubscribe/countingtree/benchmark/Main.java
+++ b/src/main/java/cz/muni/fi/publishsubscr... | true | true | public static void main(String[] args) {
//com.google.caliper.Runner.main(new String[] { "cz.muni.fi.publishsubscribe.countingtree.benchmark.TestBenchmark" });
//com.google.caliper.Runner.main(new String[] { "cz.muni.fi.publishsubscribe.countingtree.benchmark.EveryEventLessThanOrEqual" });
//com.google.calipe... | public static void main(String[] args) {
//com.google.caliper.Runner.main(new String[] { "cz.muni.fi.publishsubscribe.countingtree.benchmark.TestBenchmark" });
//com.google.caliper.Runner.main(new String[] { "cz.muni.fi.publishsubscribe.countingtree.benchmark.EveryEventLessThanOrEqual" });
//com.google.calipe... |
diff --git a/PortKnocker/src/com/xargsgrep/portknocker/adapter/PortArrayAdapter.java b/PortKnocker/src/com/xargsgrep/portknocker/adapter/PortArrayAdapter.java
index 65ee6c9..0032b3e 100644
--- a/PortKnocker/src/com/xargsgrep/portknocker/adapter/PortArrayAdapter.java
+++ b/PortKnocker/src/com/xargsgrep/portknocker/adapt... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
View view = convertView;
if (view == null) view = LayoutInflater.from(getContext()).inflate(R.layout.port_row, null);
EditText portView = (EditText) view.findViewById(R.id.port_row_port);
Spinner protocolSpinner = (Spinner) view.findVi... | public View getView(int position, View convertView, ViewGroup parent) {
View view = convertView;
if (view == null) view = LayoutInflater.from(getContext()).inflate(R.layout.port_row, null);
EditText portView = (EditText) view.findViewById(R.id.port_row_port);
Spinner protocolSpinner = (Spinner) view.findVi... |
diff --git a/tms-api/src/main/java/ru/lighttms/tms/Main.java b/tms-api/src/main/java/ru/lighttms/tms/Main.java
index 3a0593e..ed6bb96 100644
--- a/tms-api/src/main/java/ru/lighttms/tms/Main.java
+++ b/tms-api/src/main/java/ru/lighttms/tms/Main.java
@@ -1,24 +1,24 @@
package ru.lighttms.tms;
import com.sun.jersey.ap... | true | true | public static void main(String[] args) throws Exception {
Server server = new Server(9001);
Context root = new Context(server, "/", Context.SESSIONS);
root.addServlet(new ServletHolder(new ServletContainer(new PackagesResourceConfig("ru.yandex.aqua.api"))), "/aqua-api/services/*");
s... | public static void main(String[] args) throws Exception {
Server server = new Server(9001);
Context root = new Context(server, "/", Context.SESSIONS);
root.addServlet(new ServletHolder(new ServletContainer(new PackagesResourceConfig("ru.lighttms.tms.api"))), "/tms-api/*");
server.sta... |
diff --git a/src/com/ubhave/dataformatter/json/pull/AccelerometerFormatter.java b/src/com/ubhave/dataformatter/json/pull/AccelerometerFormatter.java
index eed0e2e..3c4190e 100644
--- a/src/com/ubhave/dataformatter/json/pull/AccelerometerFormatter.java
+++ b/src/com/ubhave/dataformatter/json/pull/AccelerometerFormatter.... | true | true | public SensorData toSensorData(String jsonString)
{
JSONObject jsonData = super.parseData(jsonString);
if (jsonData != null)
{
long senseStartTimestamp = super.parseTimeStamp(jsonData);
SensorConfig sensorConfig = super.getGenericConfig(jsonData);
try
{
JSONArray xs = (JSONArray) jsonData.get(X_... | public SensorData toSensorData(String jsonString)
{
JSONObject jsonData = super.parseData(jsonString);
if (jsonData != null)
{
long senseStartTimestamp = super.parseTimeStamp(jsonData);
SensorConfig sensorConfig = super.getGenericConfig(jsonData);
try
{
JSONArray xs = (JSONArray) jsonData.get(X_... |
diff --git a/activemq-core/src/main/java/org/activemq/broker/jmx/ManagedTransportConnection.java b/activemq-core/src/main/java/org/activemq/broker/jmx/ManagedTransportConnection.java
index 259a40a4f..91d454c51 100644
--- a/activemq-core/src/main/java/org/activemq/broker/jmx/ManagedTransportConnection.java
+++ b/activem... | true | true | protected ObjectName createObjectName() throws IOException {
// Build the object name for the destination
Hashtable map = new Hashtable(connectorName.getKeyPropertyList());
map.put("Type", "Connection");
map.put("Connection", connectionId);
try {
return new Object... | protected ObjectName createObjectName() throws IOException {
// Build the object name for the destination
Hashtable map = new Hashtable(connectorName.getKeyPropertyList());
map.put("Type", "Connection");
// lets avoid any JMX sensitive characters
String jmxConnectionId = conn... |
diff --git a/src/org/protege/editor/owl/ui/explanation/ExplanationDialog.java b/src/org/protege/editor/owl/ui/explanation/ExplanationDialog.java
index 3a8b0250..9e200bc6 100644
--- a/src/org/protege/editor/owl/ui/explanation/ExplanationDialog.java
+++ b/src/org/protege/editor/owl/ui/explanation/ExplanationDialog.java
@... | true | true | private JComboBox createComboBox(Collection<ExplanationService> teachers) {
ExplanationService[] teacherArray = teachers.toArray(new ExplanationService[0]);
final JComboBox selector = new JComboBox(teacherArray);
ExplanationService selected = teacherArray[0];
String id = getDefaultPluginId();
if (id != null)... | private JComboBox createComboBox(Collection<ExplanationService> teachers) {
ExplanationService[] teacherArray = teachers.toArray(new ExplanationService[0]);
final JComboBox selector = new JComboBox(teacherArray);
ExplanationService selected = teacherArray[0];
String id = getDefaultPluginId();
if (id != null)... |
diff --git a/src/cytoscape/view/CyWindow.java b/src/cytoscape/view/CyWindow.java
index 275ef728b..a868595e0 100644
--- a/src/cytoscape/view/CyWindow.java
+++ b/src/cytoscape/view/CyWindow.java
@@ -1,727 +1,727 @@
/** Copyright (c) 2002 Institute for Systems Biology and the Whitehead Institute
**
** This library is... | true | true | protected void addViewContextMenus() {
// Add some Node Context Menu Items
view.addContextMethod( "class phoebe.PNodeView",
"cytoscape.graphutil.NodeAction",
"getTitle",
new Object[] { ( NetworkView )this } );
view.addContextMethod( "clas... | protected void addViewContextMenus() {
// Add some Node Context Menu Items
view.addContextMethod( "class phoebe.PNodeView",
"cytoscape.graphutil.NodeAction",
"getTitle",
new Object[] { ( NetworkView )this } );
view.addContextMethod( "clas... |
diff --git a/src/main/java/org/waarp/openr66/client/SpooledDirectoryTransfer.java b/src/main/java/org/waarp/openr66/client/SpooledDirectoryTransfer.java
index 7229cd93..c8c2b462 100644
--- a/src/main/java/org/waarp/openr66/client/SpooledDirectoryTransfer.java
+++ b/src/main/java/org/waarp/openr66/client/SpooledDirector... | true | true | public void run() {
if (submit && ! DbConstant.admin.isConnected) {
logger.error(Messages.getString("SpooledDirectoryTransfer.2")); //$NON-NLS-1$
this.future.cancel();
return;
}
sent = 0;
error = 0;
final String [] allrhosts = remoteHosts.split(",");
// first check if rule is for SEND
DbRule db... | public void run() {
if (submit && ! DbConstant.admin.isConnected) {
logger.error(Messages.getString("SpooledDirectoryTransfer.2")); //$NON-NLS-1$
this.future.cancel();
return;
}
sent = 0;
error = 0;
final String [] allrhosts = remoteHosts.split(",");
// first check if rule is for SEND
DbRule db... |
diff --git a/common/logisticspipes/pipes/basic/CoreRoutedPipe.java b/common/logisticspipes/pipes/basic/CoreRoutedPipe.java
index b26a4c75..8c357be3 100644
--- a/common/logisticspipes/pipes/basic/CoreRoutedPipe.java
+++ b/common/logisticspipes/pipes/basic/CoreRoutedPipe.java
@@ -1,1207 +1,1207 @@
/**
* Copyright (c)... | false | true | public final void updateEntity() {
if(checkTileEntity(_initialInit)) {
stillNeedReplace = true;
return;
} else {
if(stillNeedReplace) {
stillNeedReplace = false;
worldObj.notifyBlockChange(getX(), getY(), getZ(), worldObj.getBlockId(getX(), getY(), getZ()));
for(Pair3<IRoutedItem, ForgeDirecti... | public final void updateEntity() {
if(checkTileEntity(_initialInit)) {
stillNeedReplace = true;
return;
} else {
if(stillNeedReplace) {
stillNeedReplace = false;
worldObj.notifyBlockChange(getX(), getY(), getZ(), worldObj.getBlockId(getX(), getY(), getZ()));
for(Pair3<IRoutedItem, ForgeDirecti... |
diff --git a/app/pdf/PdfGenerator.java b/app/pdf/PdfGenerator.java
index b40c55b..2f6db10 100644
--- a/app/pdf/PdfGenerator.java
+++ b/app/pdf/PdfGenerator.java
@@ -1,60 +1,60 @@
package pdf;
import com.itextpdf.text.Font;
import com.itextpdf.text.FontFactory;
import play.Play;
import java.io.File;
import jav... | false | true | public PdfGenerator() {
rootPath = Play.configuration.getProperty("my.pdf.resources.path");
String mode = Play.configuration.getProperty("application.mode");
if (mode.equals("dev")) {
rootPath = Play.applicationPath.getPath() + "/pdf/resources/";
} else {
r... | public PdfGenerator() {
rootPath = Play.configuration.getProperty("my.pdf.resources.path");
String mode = Play.configuration.getProperty("application.mode");
if (mode.equals("dev")) {
rootPath = "public/pdf/resources/";
} else {
rootPath = "app/public/pdf/r... |
diff --git a/src/main/java/org/jasig/portlet/newsreader/adapter/RomeAdapter.java b/src/main/java/org/jasig/portlet/newsreader/adapter/RomeAdapter.java
index b5e4601..a435c48 100644
--- a/src/main/java/org/jasig/portlet/newsreader/adapter/RomeAdapter.java
+++ b/src/main/java/org/jasig/portlet/newsreader/adapter/RomeAdap... | false | true | protected NewsFeed getSyndFeed(String url, String titlePolicy, String descriptionPolicy) throws NewsException {
HttpClient client = new HttpClient();
GetMethod get = null;
NewsFeed feed = null;
String proxyHost = null;
String proxyPort = null;
InputStream in = null;
... | protected NewsFeed getSyndFeed(String url, String titlePolicy, String descriptionPolicy) throws NewsException {
HttpClient client = new HttpClient();
GetMethod get = null;
NewsFeed feed = null;
String proxyHost = null;
String proxyPort = null;
InputStream in = null;
... |
diff --git a/src/main/java/com/xpansive/bukkit/expansiveterrain/terrain/TerrainGenerator.java b/src/main/java/com/xpansive/bukkit/expansiveterrain/terrain/TerrainGenerator.java
index 4f5a945..bd8d42a 100644
--- a/src/main/java/com/xpansive/bukkit/expansiveterrain/terrain/TerrainGenerator.java
+++ b/src/main/java/com/xp... | true | true | public static void setBlock(byte[] data, int x, int y, int z, Material type) {
data[(x * 16 + z) * 128 + y] = (byte) type.getId();
}
| protected void setBlock(byte[] data, int x, int y, int z, Material type) {
data[(x * 16 + z) * 128 + y] = (byte) type.getId();
}
|
diff --git a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java b/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java
index 83a969ea..e026bb6f 100644
--- a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/Cha... | false | true | public static List<String> getMatchingURIs(Resource current, String namespace, List<Property> properties, JenaConnect vivo) {
StringBuilder sbQuery = new StringBuilder();
ArrayList<String> filters = new ArrayList<String>();
int valueCount = 0;
sbQuery.append("SELECT ?uri\nWHERE\n{");
for(Property p : propert... | public static List<String> getMatchingURIs(Resource current, String namespace, List<Property> properties, JenaConnect vivo) {
StringBuilder sbQuery = new StringBuilder();
ArrayList<String> filters = new ArrayList<String>();
int valueCount = 0;
sbQuery.append("SELECT ?uri\nWHERE\n{");
for(Property p : propert... |
diff --git a/src/main/java/org/perf4j/helpers/StatisticsExposingMBean.java b/src/main/java/org/perf4j/helpers/StatisticsExposingMBean.java
index edd8569..92f4ac2 100644
--- a/src/main/java/org/perf4j/helpers/StatisticsExposingMBean.java
+++ b/src/main/java/org/perf4j/helpers/StatisticsExposingMBean.java
@@ -1,355 +1,35... | true | true | protected MBeanInfo createMBeanInfoFromTagNames(Collection<String> tagNames) {
MBeanAttributeInfo[] attributes = new MBeanAttributeInfo[tagNames.size() * getStatsValueRetrievers().size()];
int i = 0;
for (String tagName : tagNames) {
for (Map.Entry<String, StatsValueRetriever> s... | protected MBeanInfo createMBeanInfoFromTagNames(Collection<String> tagNames) {
MBeanAttributeInfo[] attributes = new MBeanAttributeInfo[tagNames.size() * getStatsValueRetrievers().size()];
int i = 0;
for (String tagName : tagNames) {
for (Map.Entry<String, StatsValueRetriever> s... |
diff --git a/core/java/android/widget/Toast.java b/core/java/android/widget/Toast.java
index 485bd37a..ab361390 100644
--- a/core/java/android/widget/Toast.java
+++ b/core/java/android/widget/Toast.java
@@ -1,435 +1,440 @@
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache Lice... | true | true | public void handleShow() {
if (localLOGV) Log.v(TAG, "HANDLE SHOW: " + this + " mView=" + mView
+ " mNextView=" + mNextView);
if (mView != mNextView) {
// remove the old view if necessary
handleHide();
mView = mNextView;... | public void handleShow() {
if (localLOGV) Log.v(TAG, "HANDLE SHOW: " + this + " mView=" + mView
+ " mNextView=" + mNextView);
if (mView != mNextView) {
// remove the old view if necessary
handleHide();
mView = mNextView;... |
diff --git a/src/org/freshwaterlife/fishlink/metadatacreator/CYAB_Workbook.java b/src/org/freshwaterlife/fishlink/metadatacreator/CYAB_Workbook.java
index b3f489b..64107d1 100644
--- a/src/org/freshwaterlife/fishlink/metadatacreator/CYAB_Workbook.java
+++ b/src/org/freshwaterlife/fishlink/metadatacreator/CYAB_Workbook.... | false | true | void write(String filePath) throws XLWrapMapException {
FileOutputStream fileOut;
try {
fileOut = new FileOutputStream(filePath);
} catch (IOException ex) {
throw new XLWrapMapException("Unable to find + filePath", ex);
}
try {
poiWorkbook.... | void write(String filePath) throws XLWrapMapException {
FileOutputStream fileOut;
try {
fileOut = new FileOutputStream(filePath);
} catch (IOException ex) {
throw new XLWrapMapException("Unable to open "+ filePath, ex);
}
try {
poiWorkbook.... |
diff --git a/src/main/java/com/randude14/hungergames/commands/RemoveCommand.java b/src/main/java/com/randude14/hungergames/commands/RemoveCommand.java
index 68e6930..0b326c4 100644
--- a/src/main/java/com/randude14/hungergames/commands/RemoveCommand.java
+++ b/src/main/java/com/randude14/hungergames/commands/RemoveComm... | true | true | public boolean execute(CommandSender cs, Command cmd, String[] args) {
Player player = (Player) cs;
if (args.length == 1 || "?".equalsIgnoreCase(args[1])) {
Plugin.send(player, ChatColor.GREEN, Plugin.getHeadLiner());
Plugin.helpCommand(player, CommandUsage.ADMIN_REMOVE_SPAWNPOINT.getUsageAndInfo(),
... | public boolean execute(CommandSender cs, Command cmd, String[] args) {
Player player = (Player) cs;
if (args.length == 0 || "?".equalsIgnoreCase(args[1])) {
Plugin.send(player, ChatColor.GREEN, Plugin.getHeadLiner());
Plugin.helpCommand(player, CommandUsage.ADMIN_REMOVE_SPAWNPOINT.getUsageAndInfo(),
... |
diff --git a/deegree-services/src/main/java/org/deegree/services/controller/security/SecureProxy.java b/deegree-services/src/main/java/org/deegree/services/controller/security/SecureProxy.java
index 8b6cb7dc25..509e63acb5 100644
--- a/deegree-services/src/main/java/org/deegree/services/controller/security/SecureProxy.j... | true | true | void copyXML( XMLStreamReader reader, XMLStreamWriter writer, String serverUrl )
throws XMLStreamException {
writer.writeStartDocument();
int openElements = 0;
boolean firstRun = true;
while ( firstRun || openElements > 0 ) {
firstRun = false;... | void copyXML( XMLStreamReader reader, XMLStreamWriter writer, String serverUrl )
throws XMLStreamException {
writer.writeStartDocument();
int openElements = 0;
boolean firstRun = true;
while ( firstRun || openElements > 0 ) {
firstRun = false;... |
diff --git a/src/org/basex/core/proc/Optimize.java b/src/org/basex/core/proc/Optimize.java
index 8236df860..ff6c1d178 100644
--- a/src/org/basex/core/proc/Optimize.java
+++ b/src/org/basex/core/proc/Optimize.java
@@ -1,111 +1,111 @@
package org.basex.core.proc;
import static org.basex.core.Text.*;
import java.io.I... | true | true | private void stats(final Data data) {
// refresh indexes
data.path.init();
data.tags.init();
data.atts.init();
final int[] parStack = new int[IO.MAXHEIGHT];
final int[] tagStack = new int[IO.MAXHEIGHT];
final boolean path = prop.is(Prop.PATHINDEX);
int level = 0;
int h = 0;
s... | private void stats(final Data data) {
// refresh indexes
data.path.init();
data.tags.init();
data.atts.init();
final int[] parStack = new int[IO.MAXHEIGHT];
final int[] tagStack = new int[IO.MAXHEIGHT];
final boolean path = prop.is(Prop.PATHINDEX);
int level = 0;
int h = 0;
s... |
diff --git a/modules/dCacheJUnit/org/dcache/tests/repository/DiskSpaceAllocatorTest.java b/modules/dCacheJUnit/org/dcache/tests/repository/DiskSpaceAllocatorTest.java
index d01a386957..1d81db0ba2 100644
--- a/modules/dCacheJUnit/org/dcache/tests/repository/DiskSpaceAllocatorTest.java
+++ b/modules/dCacheJUnit/org/dcach... | true | true | public void testAllocationOrder() throws Exception {
final Random random = new Random();
final long allocSize = Math.abs(random.nextLong()) % (1L << 60) + 1;
final PoolSpaceAllocatable<Long> spaceAllocator = new FairDiskSpaceAllocator<Long>(4 * allocSize);
final Long entry = Long.... | public void testAllocationOrder() throws Exception {
final Random random = new Random();
final long allocSize = Math.abs(random.nextLong()) % (1L << 60) + 1;
final PoolSpaceAllocatable<Long> spaceAllocator = new FairDiskSpaceAllocator<Long>(4 * allocSize);
final Long entry = Long.... |
diff --git a/android/common/test/src/bbct/android/common/test/BaseballCardCsvFileReader.java b/android/common/test/src/bbct/android/common/test/BaseballCardCsvFileReader.java
index fd1d9424..72a8189f 100644
--- a/android/common/test/src/bbct/android/common/test/BaseballCardCsvFileReader.java
+++ b/android/common/test/s... | false | true | public BaseballCard getNextBaseballCard() throws IOException {
String line = this.in.readLine();
String[] data = line.split(",");
String brand = data[0];
int year = Integer.parseInt(data[1]);
int number = Integer.parseInt(data[2]);
int value = 10000;
int count... | public BaseballCard getNextBaseballCard() throws IOException {
String line = this.in.readLine();
String[] data = line.split(",");
String brand = data[0];
int year = Integer.parseInt(data[1]);
int number = Integer.parseInt(data[2]);
int value = 10000;
int count... |
diff --git a/src/com/jidesoft/swing/JideScrollPaneLayout.java b/src/com/jidesoft/swing/JideScrollPaneLayout.java
index af71b9a7..b5585679 100644
--- a/src/com/jidesoft/swing/JideScrollPaneLayout.java
+++ b/src/com/jidesoft/swing/JideScrollPaneLayout.java
@@ -1,1136 +1,1142 @@
/*
* @(#)${NAME}.java
*
* Copyright ... | false | true | public void layoutContainer(Container parent) {
/* Sync the (now obsolete) policy fields with the
* JScrollPane.
*/
JScrollPane scrollPane = (JScrollPane) parent;
vsbPolicy = scrollPane.getVerticalScrollBarPolicy();
hsbPolicy = scrollPane.getHorizontalScrollBarPolic... | public void layoutContainer(Container parent) {
/* Sync the (now obsolete) policy fields with the
* JScrollPane.
*/
JScrollPane scrollPane = (JScrollPane) parent;
vsbPolicy = scrollPane.getVerticalScrollBarPolicy();
hsbPolicy = scrollPane.getHorizontalScrollBarPolic... |
diff --git a/src/org/eclipse/imp/pdb/facts/type/TupleType.java b/src/org/eclipse/imp/pdb/facts/type/TupleType.java
index c10cc832..26cd047e 100644
--- a/src/org/eclipse/imp/pdb/facts/type/TupleType.java
+++ b/src/org/eclipse/imp/pdb/facts/type/TupleType.java
@@ -1,331 +1,334 @@
/***************************************... | true | true | public boolean equals(Object obj) {
if (!(obj instanceof TupleType)) {
return false;
}
TupleType other= (TupleType) obj;
if (fFieldTypes.length != other.fFieldTypes.length) {
return false;
}
for(int i=0; i < fFieldTypes.length... | public boolean equals(Object obj) {
if (!(obj instanceof TupleType)) {
return false;
}
TupleType other= (TupleType) obj;
if (fFieldTypes.length != other.fFieldTypes.length) {
return false;
}
for(int i=0; i < fFieldTypes.length... |
diff --git a/src/java/net/percederberg/mibble/asn1/Asn1Tokenizer.java b/src/java/net/percederberg/mibble/asn1/Asn1Tokenizer.java
index 657c19e..ed77a72 100644
--- a/src/java/net/percederberg/mibble/asn1/Asn1Tokenizer.java
+++ b/src/java/net/percederberg/mibble/asn1/Asn1Tokenizer.java
@@ -1,706 +1,706 @@
/*
* Asn1Tok... | true | true | private void createPatterns() throws ParserCreationException {
TokenPattern pattern;
pattern = new TokenPattern(Asn1Constants.DOT,
"DOT",
TokenPattern.STRING_TYPE,
".");
addPattern(patt... | private void createPatterns() throws ParserCreationException {
TokenPattern pattern;
pattern = new TokenPattern(Asn1Constants.DOT,
"DOT",
TokenPattern.STRING_TYPE,
".");
addPattern(patt... |
diff --git a/ingest/ingest-core/src/main/java/com/bhle/ingest/batch/AipReader.java b/ingest/ingest-core/src/main/java/com/bhle/ingest/batch/AipReader.java
index ab7c0691..aa9a7211 100644
--- a/ingest/ingest-core/src/main/java/com/bhle/ingest/batch/AipReader.java
+++ b/ingest/ingest-core/src/main/java/com/bhle/ingest/ba... | true | true | private String[] getAllMemberOfGuid(String guid) {
String query = "select $object from <#ri> "
+ "where ($object <fedora-rels-ext:isMemberOf> <fedora:bhle:"
+ guid + "> " + "or $object <dc:identifier> " + "'" + guid
+ "')";
try {
RiSearchResponse riSearchResponse = FedoraClient.riSearch(query)
... | private String[] getAllMemberOfGuid(String guid) {
String query = "select $object from <#ri> "
+ "where ($object <fedora-rels-ext:isMemberOf> <fedora:" + guid
+ "> " + "or $object <dc:identifier> " + "'" + guid + "')";
try {
RiSearchResponse riSearchResponse = FedoraClient.riSearch(query)
.lang("it... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/viewer/project/ResourceSelectionComposite.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/viewer/project/ResourceSelectionComposite.java
index fc0825ef5..c98fcddf0 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/... | true | true | protected void createControls() {
Composite controlComposite = new Composite(this, SWT.NONE);
controlComposite.setLayoutData(LayoutUtils.createFillHGrabGridData());
controlComposite.setLayout(new GridLayout(7, false));
/*
* Save and reuse selections: [Undo] [Redo] [New Proj... | protected void createControls() {
Composite controlComposite = new Composite(this, SWT.NONE);
controlComposite.setLayoutData(LayoutUtils.createFillHGrabGridData());
controlComposite.setLayout(new GridLayout(7, false));
/*
* Save and reuse selections: [Undo] [Redo] [New Proj... |
diff --git a/src/main/java/com/araeosia/ArcherGames/ServerWide.java b/src/main/java/com/araeosia/ArcherGames/ServerWide.java
index ee5ec1d..fa54002 100644
--- a/src/main/java/com/araeosia/ArcherGames/ServerWide.java
+++ b/src/main/java/com/araeosia/ArcherGames/ServerWide.java
@@ -1,122 +1,122 @@
package com.araeosia.A... | true | true | public void leaveGame(String playerName) {
if(livingPlayers.contains(Archer.getByName(playerName))){
playerPlaces.put(livingPlayers.size(), playerName);
livingPlayers.remove(Archer.getByName(playerName));
int alivePlayers = 0;
for (Player p : plugin.getServer().getOnlinePlayers()) {
if (Archer.get... | public void leaveGame(String playerName) {
if(livingPlayers.contains(Archer.getByName(playerName))){
playerPlaces.put(livingPlayers.size(), playerName);
livingPlayers.remove(Archer.getByName(playerName));
int alivePlayers = 0;
for (Player p : plugin.getServer().getOnlinePlayers()) {
if (Archer.get... |
diff --git a/src/exampleapp/chatclient/src/java/echo2example/chatclient/ChatScreen.java b/src/exampleapp/chatclient/src/java/echo2example/chatclient/ChatScreen.java
index 6bbf0902..ac7e5138 100644
--- a/src/exampleapp/chatclient/src/java/echo2example/chatclient/ChatScreen.java
+++ b/src/exampleapp/chatclient/src/java/e... | true | true | public ChatScreen() {
super();
SplitPane outerSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM, new Extent(32));
outerSplitPane.setStyleName("ChatScreen.SplitPane");
add(outerSplitPane);
Row controlsRow = new Row();
controlsRow.set... | public ChatScreen() {
super();
SplitPane outerSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM, new Extent(32));
outerSplitPane.setStyleName("ChatScreen.SplitPane");
add(outerSplitPane);
Row controlsRow = new Row();
controlsRow.set... |
diff --git a/backend/grisu-core/src/main/java/org/vpac/grisu/backend/utils/LocalTemplatesHelper.java b/backend/grisu-core/src/main/java/org/vpac/grisu/backend/utils/LocalTemplatesHelper.java
index beacad19..6e85cce8 100644
--- a/backend/grisu-core/src/main/java/org/vpac/grisu/backend/utils/LocalTemplatesHelper.java
+++... | true | true | public static void copyTemplatesAndMaybeGlobusFolder() throws Exception {
if (!new File(Environment.getAvailableTemplatesDirectory()).exists()
|| !Environment.getGrisuDirectory().exists()) {
createGrisuDirectories();
}
if ( ! templatesCopied ) {
File templatesDir = new File(Environment.getTemplateDir... | public static void copyTemplatesAndMaybeGlobusFolder() throws Exception {
if (!new File(Environment.getAvailableTemplatesDirectory()).exists()
|| !Environment.getGrisuDirectory().exists()) {
createGrisuDirectories();
}
if ( ! templatesCopied ) {
File templatesDir = new File(Environment.getAvailableTe... |
diff --git a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java
index 63d892d..2db7164 100644
--- a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java
+++ b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java
@@ -1,2... | false | true | private void initComponents() {
jPanel8 = new javax.swing.JPanel();
mainPanel = new javax.swing.JPanel();
jPanel7 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jPanel15... | private void initComponents() {
jPanel8 = new javax.swing.JPanel();
mainPanel = new javax.swing.JPanel();
jPanel7 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jPanel15... |
diff --git a/src/main/test/org/compass/core/test/engine/lucene/AbstractAsyncTransactionTests.java b/src/main/test/org/compass/core/test/engine/lucene/AbstractAsyncTransactionTests.java
index 63db4fd1..c9d029f8 100644
--- a/src/main/test/org/compass/core/test/engine/lucene/AbstractAsyncTransactionTests.java
+++ b/src/ma... | true | true | protected void sleepForChangesToOccur() {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
throw new IllegalStateException("Interrupted", e);
}
}
| protected void sleepForChangesToOccur() {
try {
Thread.sleep(500);
} catch (InterruptedException e) {
throw new IllegalStateException("Interrupted", e);
}
}
|
diff --git a/mpicbg/models/TransformMesh.java b/mpicbg/models/TransformMesh.java
index 33f896a..15081fb 100644
--- a/mpicbg/models/TransformMesh.java
+++ b/mpicbg/models/TransformMesh.java
@@ -1,699 +1,699 @@
package mpicbg.models;
import java.awt.Shape;
import java.awt.geom.GeneralPath;
import java.util.ArrayLis... | true | true | public TransformMesh(
final int numX,
final int numY,
final float width,
final float height )
{
final int numXs = Math.max( 2, numX );
final int numYs = Math.max( 2, numY );
final float w = width * height / numXs / numYs;
final PointMatch[] pq = new PointMatch[ numXs * numYs + ( numXs - 1 ) * (... | public TransformMesh(
final int numX,
final int numY,
final float width,
final float height )
{
final int numXs = Math.max( 2, numX );
final int numYs = Math.max( 2, numY );
final float w = width * height / numXs / numYs;
final PointMatch[] pq = new PointMatch[ numXs * numYs + ( numXs - 1 ) * (... |
diff --git a/taskmodel/taskmodel-core-view/src/main/java/de/thorstenberger/taskmodel/view/SubTaskView_TEXT.java b/taskmodel/taskmodel-core-view/src/main/java/de/thorstenberger/taskmodel/view/SubTaskView_TEXT.java
index 957012b..e6f75e6 100644
--- a/taskmodel/taskmodel-core-view/src/main/java/de/thorstenberger/taskmodel... | true | true | public String getRenderedHTML(int relativeTaskNumber, boolean corrected) {
StringBuffer ret = new StringBuffer();
ret.append("<div align=\"center\">\n");
ret.append("<textarea name=\"task[" + relativeTaskNumber + "].text\" cols=\"" +
textSubTasklet.getTextFieldWidth() + "\" rows=\"" + textSubTasklet.getTe... | public String getRenderedHTML(int relativeTaskNumber, boolean corrected) {
StringBuffer ret = new StringBuffer();
ret.append("<div align=\"center\">\n");
ret.append("<textarea name=\"task[" + relativeTaskNumber + "].text\" cols=\"" +
textSubTasklet.getTextFieldWidth() + "\" rows=\"" + textSubTasklet.getTe... |
diff --git a/wro4j/src/main/java/org/fao/geonet/wro4j/TemplatesUriLocator.java b/wro4j/src/main/java/org/fao/geonet/wro4j/TemplatesUriLocator.java
index 7a6c1e5d71..fefc32876c 100644
--- a/wro4j/src/main/java/org/fao/geonet/wro4j/TemplatesUriLocator.java
+++ b/wro4j/src/main/java/org/fao/geonet/wro4j/TemplatesUriLocato... | true | true | public InputStream locate(String uri) throws IOException {
StringBuilder javascript;
if(uri.startsWith(URI_PREFIX_HEADER)) {
javascript = getHeader();
}
else if(uri.startsWith(URI_PREFIX_FOOTER)) {
javascript = getFooter();
} else {
javascript = new StringBuilder();
... | public InputStream locate(String uri) throws IOException {
StringBuilder javascript;
if(uri.startsWith(URI_PREFIX_HEADER)) {
javascript = getHeader();
}
else if(uri.startsWith(URI_PREFIX_FOOTER)) {
javascript = getFooter();
} else {
javascript = new StringBuilder();
... |
diff --git a/src/test/java/org/trancecode/AbstractTest.java b/src/test/java/org/trancecode/AbstractTest.java
index 55ae254..5f12c21 100644
--- a/src/test/java/org/trancecode/AbstractTest.java
+++ b/src/test/java/org/trancecode/AbstractTest.java
@@ -1,60 +1,60 @@
/*
* Copyright (C) 2008 Herve Quiroz
*
* This libr... | true | true | public static void setupLogging()
{
SimpleLoggerManager.setOutputDirectory(new File("target/test-logs"));
if (!QUIET)
{
SimpleLoggerManager.setLevel(LoggerLevel.TRACE);
}
else
{
SimpleLoggerManager.setLevel(LoggerLevel.TRACE);
}
... | public static void setupLogging()
{
SimpleLoggerManager.setOutputDirectory(new File("target/test-logs"));
if (!QUIET)
{
SimpleLoggerManager.setLevel(LoggerLevel.TRACE);
}
else
{
SimpleLoggerManager.setLevel(LoggerLevel.ERROR);
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.