diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/utils/SSSCase.java b/src/utils/SSSCase.java
index 55efb8f..3041b0e 100644
--- a/src/utils/SSSCase.java
+++ b/src/utils/SSSCase.java
@@ -1,70 +1,70 @@
package utils;
import models.Triangle;
import models.Triangle.Angle;
import models.Triangle.Height;
import models.Triangle.Side;
public class S... | true | true | public Triangle calculateTriangle() throws TriangleException {
double a, b, c;
double A, B, C;
double hA, hB, hC;
a = _triangle.get( Side.a );
b = _triangle.get( Side.b );
c = _triangle.get( Side.c );
if ( !TriangleUtils.isValid( _triangle ) ) {
throw new TriangleException( "Triang... | public Triangle calculateTriangle() throws TriangleException {
double a, b, c;
double A, B, C;
double hA, hB, hC;
a = _triangle.get( Side.a );
b = _triangle.get( Side.b );
c = _triangle.get( Side.c );
if ( !TriangleUtils.isValid( _triangle ) ) {
throw new TriangleException( "Triang... |
diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java
index dad092741..07eaac48e 100644
--- a/core/src/processing/core/PApplet.java
+++ b/core/src/processing/core/PApplet.java
@@ -1,15004 +1,15008 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part o... | true | true | public PImage loadImage(String filename, String extension) { //, Object params) {
if (extension == null) {
String lower = filename.toLowerCase();
int dot = filename.lastIndexOf('.');
if (dot == -1) {
extension = "unknown"; // no extension found
}
extension = lower.substring(... | public PImage loadImage(String filename, String extension) { //, Object params) {
if (extension == null) {
String lower = filename.toLowerCase();
int dot = filename.lastIndexOf('.');
if (dot == -1) {
extension = "unknown"; // no extension found
}
extension = lower.substring(... |
diff --git a/OsmAnd/src/net/osmand/plus/activities/DayNightHelper.java b/OsmAnd/src/net/osmand/plus/activities/DayNightHelper.java
index 673c3c98..da291d7f 100644
--- a/OsmAnd/src/net/osmand/plus/activities/DayNightHelper.java
+++ b/OsmAnd/src/net/osmand/plus/activities/DayNightHelper.java
@@ -1,174 +1,174 @@
package ... | true | true | public Boolean getDayNightRenderer() {
if (dayNightMode.isDay()) {
return Boolean.TRUE;
} else if (dayNightMode.isNight()) {
return Boolean.FALSE;
} else // We are in auto mode!
if (dayNightMode.isAuto()) {
long currentTime = System.currentTimeMillis();
// allow recalculation each 60 seconds
if ... | public Boolean getDayNightRenderer() {
if (dayNightMode.isDay()) {
return Boolean.TRUE;
} else if (dayNightMode.isNight()) {
return Boolean.FALSE;
} else // We are in auto mode!
if (dayNightMode.isAuto()) {
long currentTime = System.currentTimeMillis();
// allow recalculation each 60 seconds
if ... |
diff --git a/genie-client/src/main/java/com/netflix/genie/client/sample/ExecutionServiceSampleClient.java b/genie-client/src/main/java/com/netflix/genie/client/sample/ExecutionServiceSampleClient.java
index 48a098b599..c4ebbaa3e9 100644
--- a/genie-client/src/main/java/com/netflix/genie/client/sample/ExecutionServiceSa... | true | true | public static void main(String[] args) throws Exception {
// Initialize Eureka, if it is being used
// System.out.println("Initializing Eureka");
// ExecutionServiceClient.initEureka("test");
System.out.println("Initializing list of Genie servers");
ConfigurationManager.get... | public static void main(String[] args) throws Exception {
// Initialize Eureka, if it is being used
// System.out.println("Initializing Eureka");
// ExecutionServiceClient.initEureka("test");
System.out.println("Initializing list of Genie servers");
ConfigurationManager.get... |
diff --git a/src/piano/Localization_de.java b/src/piano/Localization_de.java
index 3b2956f..c17e8c6 100644
--- a/src/piano/Localization_de.java
+++ b/src/piano/Localization_de.java
@@ -1,56 +1,56 @@
package piano;
/**
* German localization.
*
* @author Wincent Balin
*/
public class Localization_de implemen... | true | true | public String getResource(int id)
{
switch(id)
{
case ID_COMMAND_EXIT: return "Beenden";
case ID_COMMAND_BACK: return "Zurück";
case ID_COMMAND_OK: return "OK";
case ID_COMMAND_CANCEL: return "Abbrechen";
case ID_HELP: return "Hilfe";
... | public String getResource(int id)
{
switch(id)
{
case ID_COMMAND_EXIT: return "Beenden";
case ID_COMMAND_BACK: return "Zurück";
case ID_COMMAND_OK: return "OK";
case ID_COMMAND_CANCEL: return "Abbrechen";
case ID_HELP: return "Hilfe";
... |
diff --git a/event/src/org/jackie/event/impl/proxygen/InvokeEvent.java b/event/src/org/jackie/event/impl/proxygen/InvokeEvent.java
index dc9b0ca..7d18bc8 100644
--- a/event/src/org/jackie/event/impl/proxygen/InvokeEvent.java
+++ b/event/src/org/jackie/event/impl/proxygen/InvokeEvent.java
@@ -1,86 +1,86 @@
package org.... | true | true | protected void body() {
Variable iterator = declareVariable("iterator", Iterator.class);
Variable next = declareVariable("next", eventClass);
// code:: EventManager.eventManager().getListeners(type).iterator()
{
push(eventClass);
invoke(ClassProxyHelper.ClassProxyHelper$eventListeners);
store(iterato... | protected void body() {
Variable iterator = declareVariable("iterator", Iterator.class);
Variable next = declareVariable("next", eventClass);
// code:: ClassProxyHelper.eventListeners(type) : Iterator
{
push(eventClass);
invoke(ClassProxyHelper.ClassProxyHelper$eventListeners);
store(iterator);
}
... |
diff --git a/bpel-compiler/src/main/java/org/apache/ode/bpel/elang/xpath10/compiler/JaxenBpelHandler.java b/bpel-compiler/src/main/java/org/apache/ode/bpel/elang/xpath10/compiler/JaxenBpelHandler.java
index 928017a94..d74604383 100644
--- a/bpel-compiler/src/main/java/org/apache/ode/bpel/elang/xpath10/compiler/JaxenBpe... | false | true | public void endFunction()
throws JaxenException {
super.endFunction();
FunctionCallExpr c = (FunctionCallExpr)peekFrame()
.getLast();
String prefix = c.getPrefix();
// empty string prefix should resolve to xpath namespace, NOT bpel
... | public void endFunction() {
super.endFunction();
FunctionCallExpr c = (FunctionCallExpr)peekFrame()
.getLast();
String prefix = c.getPrefix();
// empty string prefix should resolve to xpath namespace, NOT bpel
if ((prefix == null) || "".equals(prefix... |
diff --git a/src/main/java/com/drtshock/willie/command/CommandManager.java b/src/main/java/com/drtshock/willie/command/CommandManager.java
index c6bcc51..68800ef 100755
--- a/src/main/java/com/drtshock/willie/command/CommandManager.java
+++ b/src/main/java/com/drtshock/willie/command/CommandManager.java
@@ -1,111 +1,11... | true | true | public void handlerMessage(String message, Channel channel, User sender) {
if (message.toLowerCase().endsWith("o/") && (!message.contains("\\o/"))) {
channel.sendMessage("\\o");
return;
}
if (message.toLowerCase().endsWith("\\o") && (!message.contains("\\o/"))) {
... | public void handlerMessage(String message, Channel channel, User sender) {
if (message.toLowerCase().endsWith("o/") && (!message.contains("\\o/"))) {
channel.sendMessage("\\o");
return;
}
if (message.toLowerCase().endsWith("\\o") && (!message.contains("\\o/"))) {
... |
diff --git a/src/com/qualcomm/QCARSamples/ImageTargets/ImageTargets.java b/src/com/qualcomm/QCARSamples/ImageTargets/ImageTargets.java
index 20fc823..59ba8b0 100644
--- a/src/com/qualcomm/QCARSamples/ImageTargets/ImageTargets.java
+++ b/src/com/qualcomm/QCARSamples/ImageTargets/ImageTargets.java
@@ -1,920 +1,920 @@
/*... | true | true | private synchronized void updateApplicationStatus(int appStatus) {
// Exit if there is no change in status
if (mAppStatus == appStatus)
return;
// Store new status value
mAppStatus = appStatus;
// Execute application state-specific actions
switch (mAppStatus) {
case APPSTATUS_INIT_APP:
// Initial... | private synchronized void updateApplicationStatus(int appStatus) {
// Exit if there is no change in status
if (mAppStatus == appStatus)
return;
// Store new status value
mAppStatus = appStatus;
// Execute application state-specific actions
switch (mAppStatus) {
case APPSTATUS_INIT_APP:
// Initial... |
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/Product.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/Product.java
index 046a53069..fd6b2276f 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/Product.java
+++ b/bundles... | true | true | private void loadProperties(IConfigurationElement element) {
String[] attributes = element.getAttributeNames();
properties = new Hashtable(attributes.length);
for (int i = 0; i < attributes.length; i++) {
if (attributes[i].equalsIgnoreCase(ATTR_DESCRIPTION) ||
attributes[i].equalsIgnoreCase(ATTR_ID) ||
... | private void loadProperties(IConfigurationElement element) {
String[] attributes = element.getAttributeNames();
properties = new Hashtable(attributes.length);
for (int i = 0; i < attributes.length; i++) {
if (attributes[i].equalsIgnoreCase(ATTR_DESCRIPTION) ||
attributes[i].equalsIgnoreCase(ATTR_ID) ||
... |
diff --git a/protocol/src/main/java/org/syphr/mythtv/protocol/impl/Command72QueryActiveBackends.java b/protocol/src/main/java/org/syphr/mythtv/protocol/impl/Command72QueryActiveBackends.java
index 2790d42..94c397e 100644
--- a/protocol/src/main/java/org/syphr/mythtv/protocol/impl/Command72QueryActiveBackends.java
+++ b... | true | true | public List<String> send(SocketManager socketManager) throws IOException
{
String response = socketManager.sendAndWait(getMessage());
List<String> args = getParser().splitArguments(response);
if (args.isEmpty())
{
throw new ProtocolException(response, Direction.RECEI... | public List<String> send(SocketManager socketManager) throws IOException
{
String response = socketManager.sendAndWait(getMessage());
List<String> args = getParser().splitArguments(response);
if (args.isEmpty())
{
throw new ProtocolException(response, Direction.RECEI... |
diff --git a/src/main/java/generic/GenericModelBuilder.java b/src/main/java/generic/GenericModelBuilder.java
index 13903ab..8f6471c 100644
--- a/src/main/java/generic/GenericModelBuilder.java
+++ b/src/main/java/generic/GenericModelBuilder.java
@@ -1,109 +1,109 @@
/*****************************************************... | true | true | private Pair<List<GenericRow>, String[]> readData() {
List<ColumnSpec> cols = spec.getColumns();
StringBuilder report = new StringBuilder();
try (BufferedReader r = Files.newBufferedReader(new File(spec.getDataSourcePath()).toPath(),
Charset.defaultCharset())) {
String header = r.readLine();
String[] c... | private Pair<List<GenericRow>, String[]> readData() {
List<ColumnSpec> cols = spec.getColumns();
StringBuilder report = new StringBuilder();
try (BufferedReader r = Files.newBufferedReader(new File(spec.getDataSourcePath()).toPath(),
Charset.forName("UTF-8"))) {
String header = r.readLine();
String[] c... |
diff --git a/src/tschida/david/calculatorsimple/MainActivity.java b/src/tschida/david/calculatorsimple/MainActivity.java
index 92e6eba..4bbb8e0 100644
--- a/src/tschida/david/calculatorsimple/MainActivity.java
+++ b/src/tschida/david/calculatorsimple/MainActivity.java
@@ -1,244 +1,246 @@
package tschida.david.calculat... | false | true | public void click_btn_finish(View view)
{
printErr(false, ""); // clears the error output box.
double solution = 0;
boolean error_occurred = false;
String leftOpStr = lOperand.getText().toString();
String rightOpStr = rOperand.getText().toString();
char operator = ((String) txt_signPlaceholder.ge... | public void click_btn_finish(View view)
{
printErr(false, ""); // clears the error output box.
double solution = 0;
boolean error_occurred = false;
String leftOpStr = lOperand.getText().toString();
String rightOpStr = rOperand.getText().toString();
char operator = ((String) txt_signPlaceholder.ge... |
diff --git a/fSynch/src/com/g4share/jSynch/guice/GuiceAbstractBinderHelper.java b/fSynch/src/com/g4share/jSynch/guice/GuiceAbstractBinderHelper.java
index 82dbb78..7209599 100644
--- a/fSynch/src/com/g4share/jSynch/guice/GuiceAbstractBinderHelper.java
+++ b/fSynch/src/com/g4share/jSynch/guice/GuiceAbstractBinderHelper.... | true | true | public final ConfigInfo readConfigInfo(){
ConfigReader cReader = getConfigReader();
ConfigInfo cInfo = cReader.read(currentPath + "/config.xml");
//TODO
//level = configStore.getLogLevel();
if (defaultLogger == null) defaultLogger.setLevel(level);
if (fileLogger == ... | public final ConfigInfo readConfigInfo(){
ConfigReader cReader = getConfigReader();
ConfigInfo cInfo = cReader.read(currentPath + "/config.xml");
level = configStore.getLogLevel();
if (defaultLogger == null) defaultLogger.setLevel(level);
if (fileLogger == null) fileLogger.... |
diff --git a/src/com/undeadscythes/udsplugin/PlayerCommandExecutor.java b/src/com/undeadscythes/udsplugin/PlayerCommandExecutor.java
index 68fd065..f3c709e 100644
--- a/src/com/undeadscythes/udsplugin/PlayerCommandExecutor.java
+++ b/src/com/undeadscythes/udsplugin/PlayerCommandExecutor.java
@@ -1,955 +1,955 @@
packag... | true | true | public SaveablePlayer getMatchingPlayer(String partial) {
SaveablePlayer target = UDSPlugin.getOnlinePlayers().get(partial);
if(target!= null) {
return target;
} else {
for(SaveablePlayer test : UDSPlugin.getOnlinePlayers().values()) {
if(test.getDispl... | public SaveablePlayer getMatchingPlayer(String partial) {
SaveablePlayer target = UDSPlugin.getOnlinePlayers().get(partial);
if(target!= null) {
return target;
} else {
for(SaveablePlayer test : UDSPlugin.getOnlinePlayers().values()) {
if(test.getDispl... |
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/tta/TTABackendImpl.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/tta/TTABackendImpl.java
index 731ed28bc..d0f4d2cd3 100644
--- a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/tta/TTABackendImpl.java
+++ b/e... | false | true | private void printDesign(Design design) {
for (Processor processor : design.getProcessors()) {
printProcessor(processor);
}
// VHDL Network of TTA processors
ArchitecturePrinter vhdlPrinter = new ArchitecturePrinter(
"net/sf/orcc/backends/tta/VHDL_Network.stg");
vhdlPrinter.setExpressionPrinter(new L... | private void printDesign(Design design) {
for (Processor processor : design.getProcessors()) {
printProcessor(processor);
}
// VHDL Network of TTA processors
ArchitecturePrinter vhdlPrinter = new ArchitecturePrinter(
"net/sf/orcc/backends/tta/VHDL_Network.stg");
vhdlPrinter.setExpressionPrinter(new L... |
diff --git a/src/org/ruboto/RubotoActivity.java b/src/org/ruboto/RubotoActivity.java
index 75ba497..5b2f079 100644
--- a/src/org/ruboto/RubotoActivity.java
+++ b/src/org/ruboto/RubotoActivity.java
@@ -1,1134 +1,1138 @@
package org.ruboto;
import java.io.IOException;
import org.ruboto.Script;
import android.ap... | false | true | protected void loadScript() {
try {
if (scriptName != null) {
new Script(scriptName).execute();
String rubyClassName = Script.toCamelCase(scriptName);
System.out.println("Looking for Ruby class: " + rubyClassName);
Object rubyClass ... | protected void loadScript() {
try {
if (scriptName != null) {
String rubyClassName = Script.toCamelCase(scriptName);
System.out.println("Looking for Ruby class: " + rubyClassName);
Object rubyClass = Script.get(rubyClassName);
if (r... |
diff --git a/trunk/crux-smart-faces/src/main/java/org/cruxframework/crux/smartfaces/client/menu/MenuItem.java b/trunk/crux-smart-faces/src/main/java/org/cruxframework/crux/smartfaces/client/menu/MenuItem.java
index 72119d005..a0e8e6067 100644
--- a/trunk/crux-smart-faces/src/main/java/org/cruxframework/crux/smartfaces/... | true | true | public void addItem(final MenuItem menuItem)
{
if (childrenContainer == null)
{
childrenContainer = DOM.createElement("ul");
DOM.appendChild(getElement(), (com.google.gwt.user.client.Element) childrenContainer);
setStyleName(childrenContainer, Menu.STYLE_FACES_UL);
}
childrenContainer.appendChild(men... | public void addItem(final MenuItem menuItem)
{
if (childrenContainer == null)
{
childrenContainer = DOM.createElement("ul");
DOM.appendChild(getElement(), (com.google.gwt.user.client.Element) childrenContainer);
setStyleName(childrenContainer, Menu.STYLE_FACES_UL);
}
childrenContainer.appendChild(men... |
diff --git a/usage/cli/src/main/java/brooklyn/cli/Main.java b/usage/cli/src/main/java/brooklyn/cli/Main.java
index 3ea65727f..167beccd0 100644
--- a/usage/cli/src/main/java/brooklyn/cli/Main.java
+++ b/usage/cli/src/main/java/brooklyn/cli/Main.java
@@ -1,204 +1,204 @@
package brooklyn.cli;
import groovy.lang.Groovy... | true | true | public Void call() throws Exception {
if (verbose) {
System.out.println("Launching brooklyn app: "+app+" in "+Iterables.toString(locations));
}
ResourceUtils utils = new ResourceUtils(this);
ClassLoader parent = utils.getLoader();
... | public Void call() throws Exception {
if (verbose) {
System.out.println("Launching brooklyn app: "+app+" in "+Iterables.toString(locations));
}
ResourceUtils utils = new ResourceUtils(this);
ClassLoader parent = utils.getLoader();
... |
diff --git a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/PerfReportGenerator.java b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/PerfReportGenerator.java
index e6928846c..c1657a428 100644
--- a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activem... | true | true | protected void addTestInformation(PrintWriter writer) {
writer.println("<test-report>");
writer.println("<test-information>");
Enumeration keys;
String key;
// Add system property settings
writer.println("<system-settings>");
Properties sysProp = System.ge... | protected void addTestInformation(PrintWriter writer) {
writer.println("<test-report>");
writer.println("<test-information>");
Enumeration keys;
String key;
// Add system property settings
writer.println("<system-settings>");
Properties sysProp = System.ge... |
diff --git a/src/filesystem/ReplicaManager.java b/src/filesystem/ReplicaManager.java
index c1c9b03..072021d 100644
--- a/src/filesystem/ReplicaManager.java
+++ b/src/filesystem/ReplicaManager.java
@@ -1,124 +1,126 @@
package filesystem;
import communication.FileIdentifierFactory;
import communication.Messages.Proc... | true | true | private void scanFileList(){
HashMap<String, Integer> replicaCounter = new HashMap<String, Integer>();
List<FileIdentifier> fileShouldBeReplicated = new LinkedList<FileIdentifier>();
for(FileIdentifier f: getFileList()) {
if(!f.getFileStoringProcess().getId().equals(proc.getId()... | private void scanFileList(){
HashMap<String, Integer> replicaCounter = new HashMap<String, Integer>();
List<FileIdentifier> fileShouldBeReplicated = new LinkedList<FileIdentifier>();
for(FileIdentifier f: getFileList()) {
if(!f.getFileStoringProcess().getId().equals(proc.getId()... |
diff --git a/bundles/org.eclipse.orion.server.user.securestorage/src/org/eclipse/orion/internal/server/user/securestorage/SecureStorageUserAdmin.java b/bundles/org.eclipse.orion.server.user.securestorage/src/org/eclipse/orion/internal/server/user/securestorage/SecureStorageUserAdmin.java
index 46ccb23..4734b4c 100644
-... | true | true | private URL getStorageLocation() {
BundleContext context = Activator.getContext();
Collection<ServiceReference<Location>> refs;
try {
refs = context.getServiceReferences(Location.class, Location.INSTANCE_FILTER);
} catch (InvalidSyntaxException e) {
// we know the instance location filter syntax is valid... | private URL getStorageLocation() {
BundleContext context = Activator.getContext();
Collection<ServiceReference<Location>> refs;
try {
refs = context.getServiceReferences(Location.class, Location.INSTANCE_FILTER);
} catch (InvalidSyntaxException e) {
// we know the instance location filter syntax is valid... |
diff --git a/com/gallery/GalleryRemote/util/PostChangeLog.java b/com/gallery/GalleryRemote/util/PostChangeLog.java
index d6a6463..e74e176 100644
--- a/com/gallery/GalleryRemote/util/PostChangeLog.java
+++ b/com/gallery/GalleryRemote/util/PostChangeLog.java
@@ -1,162 +1,162 @@
package com.gallery.GalleryRemote.util;
... | true | true | public void execute() throws BuildException {
PropertiesFile changeProps = new PropertiesFile("postchangelog");
PropertiesFile defaultProps = new PropertiesFile("defaults");
// should we even be doing this?
boolean active = changeProps.getBooleanProperty("active", false);
if (!active) {
System.out.printl... | public void execute() throws BuildException {
PropertiesFile changeProps = new PropertiesFile("postchangelog");
PropertiesFile defaultProps = new PropertiesFile("defaults");
// should we even be doing this?
boolean active = changeProps.getBooleanProperty("active", false);
if (!active) {
System.out.printl... |
diff --git a/src/bb/sxytm/freedum/MonthActivity.java b/src/bb/sxytm/freedum/MonthActivity.java
index f208382..b942682 100644
--- a/src/bb/sxytm/freedum/MonthActivity.java
+++ b/src/bb/sxytm/freedum/MonthActivity.java
@@ -1,737 +1,738 @@
package bb.sxytm.freedum;
import java.text.DateFormat;
import java.text.Simple... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Parse.initialize(this, "GsPuRscxaR95D6ELavshA2X9zsGfIMnqHegQgeo5", "KRzPHVrLf0mCL8pQfkNFmQfhefdKuN9OBnkO5cP7");
setContentView(R.layout.activity_month);
Locale.setDefault(Locale.US);
... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Parse.initialize(this, "GsPuRscxaR95D6ELavshA2X9zsGfIMnqHegQgeo5", "KRzPHVrLf0mCL8pQfkNFmQfhefdKuN9OBnkO5cP7");
setContentView(R.layout.activity_month);
Locale.setDefault(Locale.US);
... |
diff --git a/src/fitnesse/ant/StartFitnesseTask.java b/src/fitnesse/ant/StartFitnesseTask.java
index d203419..0402a52 100644
--- a/src/fitnesse/ant/StartFitnesseTask.java
+++ b/src/fitnesse/ant/StartFitnesseTask.java
@@ -1,57 +1,57 @@
package fitnesse.ant;
import fitnesse.FitNesse;
import org.apache.tools.ant.*;
... | true | true | public void execute() throws BuildException
{
try
{
FitNesse.main(new String[]
{"-p", String.valueOf(fitnessePort), "-d", wikiDirectoryRootPath, "-e", "0"});
log("Sucessfully Started Fitnesse on port " + fitnessePort);
}
catch(Exception e)
{
throw new BuildException("Failed to start FitNesse. E... | public void execute() throws BuildException
{
try
{
FitNesse.main(new String[]
{"-p", String.valueOf(fitnessePort), "-d", wikiDirectoryRootPath, "-e", "0", "-o"});
log("Sucessfully Started Fitnesse on port " + fitnessePort);
}
catch(Exception e)
{
throw new BuildException("Failed to start FitNe... |
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
index e7a03e4..6708ac0 100755
--- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -1,2247 ... | false | true | 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.
/... | 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/me/Guga/Guga_SERVER_MOD/Listeners/GugaBlockListener.java b/me/Guga/Guga_SERVER_MOD/Listeners/GugaBlockListener.java
index 43418d6..5348a26 100644
--- a/me/Guga/Guga_SERVER_MOD/Listeners/GugaBlockListener.java
+++ b/me/Guga/Guga_SERVER_MOD/Listeners/GugaBlockListener.java
@@ -1,535 +1,540 @@
package me.Gug... | true | true | public void onBlockBreak(BlockBreakEvent e)
{
if (plugin.debug == true)
{
plugin.log.info("BLOCK_BREAK_EVENT: playerName="+e.getPlayer().getName()+",typeID="+e.getBlock().getTypeId());
}
plugin.logger.LogBlockBreak(e, e.getBlock().getTypeId());
long timeStart = System.nanoTime();
Player p = e.getPlayer... | public void onBlockBreak(BlockBreakEvent e)
{
if (plugin.debug == true)
{
plugin.log.info("BLOCK_BREAK_EVENT: playerName="+e.getPlayer().getName()+",typeID="+e.getBlock().getTypeId());
}
if(e.getPlayer().getItemInHand().getTypeId() == 271)
{
e.setCancelled(true);
return;
}
plugin.logger.LogBloc... |
diff --git a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/DefaultEntitlementUserApi.java b/entitlement/src/main/java/com/ning/billing/entitlement/api/user/DefaultEntitlementUserApi.java
index d3d128c41..bd14a1bf9 100644
--- a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/DefaultEnti... | true | true | public Subscription createSubscription(final UUID bundleId, final PlanPhaseSpecifier spec, final DateTime requestedDateWithMs,
final CallContext context) throws EntitlementUserApiException {
try {
final String realPriceList = (spec.getPriceListName() ==... | public Subscription createSubscription(final UUID bundleId, final PlanPhaseSpecifier spec, final DateTime requestedDateWithMs,
final CallContext context) throws EntitlementUserApiException {
try {
final String realPriceList = (spec.getPriceListName() ==... |
diff --git a/engine-rest/src/main/java/org/camunda/bpm/engine/rest/mapper/JacksonConfigurator.java b/engine-rest/src/main/java/org/camunda/bpm/engine/rest/mapper/JacksonConfigurator.java
index 84be7a4d3b..3380a911ea 100644
--- a/engine-rest/src/main/java/org/camunda/bpm/engine/rest/mapper/JacksonConfigurator.java
+++ b... | true | true | public JacksonConfigurator() {
mapper = new ObjectMapper();
mapper.getSerializationConfig().setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"));
mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
mapper.configure(SerializationConfig.Feature.WRITE_DATES_AS_TIME... | public JacksonConfigurator() {
mapper = new ObjectMapper();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
mapper.getSerializationConfig().setDateFormat(dateFormat);
mapper.getDeserializationConfig().setDateFormat(dateFormat);
mapper.configure(DeserializationConfig.F... |
diff --git a/GAEBenchmark/src/java/benchmark/storage/table/medium/QueryLongServlet.java b/GAEBenchmark/src/java/benchmark/storage/table/medium/QueryLongServlet.java
index effec16f..04e419ab 100644
--- a/GAEBenchmark/src/java/benchmark/storage/table/medium/QueryLongServlet.java
+++ b/GAEBenchmark/src/java/benchmark/stor... | true | true | protected void HandleRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
long t1 = System.currentTimeMillis();
PersistenceManager pm = PMF.getManager();
int seed = Integer.parseInt(request.getParameter("seed"));
Long l ... | protected void HandleRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
long t1 = System.currentTimeMillis();
PersistenceManager pm = PMF.getManager();
int seed = Integer.parseInt(request.getParameter("seed"));
Long l ... |
diff --git a/tests/src/com/owncloud/android/test/AccountUtilsTest.java b/tests/src/com/owncloud/android/test/AccountUtilsTest.java
index b51409f45..51030a55c 100644
--- a/tests/src/com/owncloud/android/test/AccountUtilsTest.java
+++ b/tests/src/com/owncloud/android/test/AccountUtilsTest.java
@@ -1,52 +1,59 @@
/* ownCl... | true | true | public void testGetWebdavPathAndOCVersion() {
OwnCloudVersion ocv12 = new OwnCloudVersion(0x010200);
OwnCloudVersion ocv12s = new OwnCloudVersion("1.2");
OwnCloudVersion ocv22 = new OwnCloudVersion(0x020200);
OwnCloudVersion ocv30 = new OwnCloudVersion(0x030000);
OwnCloudVers... | public void testGetWebdavPathAndOCVersion() {
OwnCloudVersion ocv12 = new OwnCloudVersion(0x010200);
OwnCloudVersion ocv12s = new OwnCloudVersion("1.2");
OwnCloudVersion ocv22 = new OwnCloudVersion(0x020200);
OwnCloudVersion ocv30 = new OwnCloudVersion(0x030000);
OwnCloudVers... |
diff --git a/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/classpath/J2EEComponentClasspathContainerUtils.java b/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/classpath/J2EEComponentClasspathContainerUtils.java
index 762878c42..93cfe1419 100644
--- a/plugins/org.ecl... | false | true | public static IClasspathEntry getInstalledContainerEntry(IJavaProject jproj, IPath classpathContainerPath) {
try {
IClasspathEntry[] cpes;
cpes = jproj.getRawClasspath();
for (int j = 0; j < cpes.length; j++) {
final IClasspathEntry cpe = cpes[j];
if (cpe.getEntryKind() == IClasspathEntry.CPE_CONTAI... | public static IClasspathEntry getInstalledContainerEntry(IJavaProject jproj, IPath classpathContainerPath) {
if (jproj.isOpen()) {
try {
IClasspathEntry[] cpes;
cpes = jproj.getRawClasspath();
for (int j = 0; j < cpes.length; j++) {
final IClasspathEntry cpe = cpes[j];
if (cpe.getEntryKind()... |
diff --git a/src/com/modcrafting/diablodrops/listeners/SocketListener.java b/src/com/modcrafting/diablodrops/listeners/SocketListener.java
index c915888..8af6c8c 100644
--- a/src/com/modcrafting/diablodrops/listeners/SocketListener.java
+++ b/src/com/modcrafting/diablodrops/listeners/SocketListener.java
@@ -1,262 +1,27... | false | true | public void onSmeltSocket(final FurnaceSmeltEvent event)
{
if (!plugin.furnanceMap.containsKey(event.getBlock())
&& !plugin.getItemAPI().isTool(event.getResult().getType()))
return;
ItemStack is = plugin.furnanceMap.remove(event.getBlock());
Material fuel = is... | public void onSmeltSocket(final FurnaceSmeltEvent event)
{
if (!plugin.furnanceMap.containsKey(event.getBlock())
&& !plugin.getItemAPI().isTool(event.getResult().getType()))
return;
ItemStack is = plugin.furnanceMap.remove(event.getBlock());
Material fuel = is... |
diff --git a/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java b/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java
index e909c466bfb..e414c0d1cba 100644
--- a/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java
+++ b/src/main/java/org/elasticsearch/common/io/stream/Strea... | true | true | public void writeGenericValue(@Nullable Object value) throws IOException {
if (value == null) {
writeByte((byte) -1);
return;
}
Class type = value.getClass();
if (type == String.class) {
writeByte((byte) 0);
writeString((String) value);... | public void writeGenericValue(@Nullable Object value) throws IOException {
if (value == null) {
writeByte((byte) -1);
return;
}
Class type = value.getClass();
if (type == String.class) {
writeByte((byte) 0);
writeString((String) value);... |
diff --git a/src/WardPP/WardPPModel.java b/src/WardPP/WardPPModel.java
index 97f3fea..ed98fdb 100644
--- a/src/WardPP/WardPPModel.java
+++ b/src/WardPP/WardPPModel.java
@@ -1,54 +1,54 @@
package WardPP;
import Data.Nurse;
import Data.Ward;
import Data.Wards;
import Data.XmlHandler;
import java.util.ArrayList;... | true | true | private ArrayList<Nurse> setupDefaultNurses(){
ArrayList<Nurse> nurses = new ArrayList<Nurse>();
Nurse testNurse1 = new Nurse("TestNurse1", 0, "SRN",5,"DN");
Nurse testNurse2 = new Nurse("TestNurse2", 1, "SRN",5,"DN");
Nurse testNurse3 = new Nurse("TestNurse3", 0, "SRN",5,"D");
... | private ArrayList<Nurse> setupDefaultNurses(){
ArrayList<Nurse> nurses = new ArrayList<Nurse>();
Nurse testNurse1 = new Nurse("TestNurse1", 0, "SRN",5,"DN");
Nurse testNurse2 = new Nurse("TestNurse2", 1, "SRN",5,"DN");
Nurse testNurse3 = new Nurse("TestNurse3", 2, "SRN",5,"D");
... |
diff --git a/src/main/java/com/urswolfer/intellij/plugin/gerrit/rest/GerritApiUtil.java b/src/main/java/com/urswolfer/intellij/plugin/gerrit/rest/GerritApiUtil.java
index 53a0565..41b353f 100644
--- a/src/main/java/com/urswolfer/intellij/plugin/gerrit/rest/GerritApiUtil.java
+++ b/src/main/java/com/urswolfer/intellij/p... | true | true | private static JsonElement request(@NotNull String host, @Nullable String login, @Nullable String password,
@NotNull String path, @Nullable String requestBody, boolean post) {
HttpMethod method = null;
try {
method = doREST(host, login, password, pa... | private static JsonElement request(@NotNull String host, @Nullable String login, @Nullable String password,
@NotNull String path, @Nullable String requestBody, boolean post) {
HttpMethod method = null;
try {
method = doREST(host, login, password, pa... |
diff --git a/src/edu/stuy/OI.java b/src/edu/stuy/OI.java
index cf80a91..c4cfa6a 100644
--- a/src/edu/stuy/OI.java
+++ b/src/edu/stuy/OI.java
@@ -1,298 +1,298 @@
package edu.stuy;
import edu.stuy.commands.*;
import edu.stuy.subsystems.Shooter;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpili... | true | true | public OI() {
ds = DriverStation.getInstance();
enhancedIO = ds.getEnhancedIO();
leftStick = new Joystick(RobotMap.LEFT_JOYSTICK_PORT);
rightStick = new Joystick(RobotMap.RIGHT_JOYSTICK_PORT);
shooterStick = new Joystick(RobotMap.SHOOTER_JOYSTICK_PORT);
debugBox = ne... | public OI() {
ds = DriverStation.getInstance();
enhancedIO = ds.getEnhancedIO();
leftStick = new Joystick(RobotMap.LEFT_JOYSTICK_PORT);
rightStick = new Joystick(RobotMap.RIGHT_JOYSTICK_PORT);
shooterStick = new Joystick(RobotMap.SHOOTER_JOYSTICK_PORT);
debugBox = ne... |
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.ui.ide/src/org/eclipse/mylyn/docs/intent/client/ui/ide/builder/IntentBuilderDeltaVisitor.java b/plugins/org.eclipse.mylyn.docs.intent.client.ui.ide/src/org/eclipse/mylyn/docs/intent/client/ui/ide/builder/IntentBuilderDeltaVisitor.java
index 84c0f730..d1ffce53 10... | false | true | public boolean visit(IResourceDelta delta) throws CoreException {
IResource resource = delta.getResource();
switch (delta.getKind()) {
case IResourceDelta.ADDED:
// If an intent project has been created
if (resource instanceof IProject && resource.isAccessible()
&& ((IProject)resource).hasNature(I... | public boolean visit(IResourceDelta delta) throws CoreException {
IResource resource = delta.getResource();
switch (delta.getKind()) {
case IResourceDelta.ADDED:
// If an intent project has been created
if (resource instanceof IProject && resource.isAccessible()
&& ((IProject)resource).hasNature(I... |
diff --git a/src/org/nutz/dao/impl/jdbc/oracle/OracleJdbcExpert.java b/src/org/nutz/dao/impl/jdbc/oracle/OracleJdbcExpert.java
index d90545a9c..c36e89c94 100644
--- a/src/org/nutz/dao/impl/jdbc/oracle/OracleJdbcExpert.java
+++ b/src/org/nutz/dao/impl/jdbc/oracle/OracleJdbcExpert.java
@@ -1,207 +1,199 @@
package org.nu... | false | true | public boolean createEntity(Dao dao, Entity<?> en) {
StringBuilder sb = new StringBuilder("CREATE TABLE " + en.getTableName() + "(");
boolean pked = false;
// 创建字段
for (MappingField mf : en.getMappingFields()) {
sb.append('\n').append(mf.getColumnName());
sb.append(' ').append(evalFieldType(mf));
// 非... | public boolean createEntity(Dao dao, Entity<?> en) {
StringBuilder sb = new StringBuilder("CREATE TABLE " + en.getTableName() + "(");
// 创建字段
for (MappingField mf : en.getMappingFields()) {
sb.append('\n').append(mf.getColumnName());
sb.append(' ').append(evalFieldType(mf));
// 非主键的 @Name,应该加入唯一性约束
i... |
diff --git a/src/info/mzimmermann/xposed/cputempstatusbar/XposedInit.java b/src/info/mzimmermann/xposed/cputempstatusbar/XposedInit.java
index 46a14e7..8fc18c3 100644
--- a/src/info/mzimmermann/xposed/cputempstatusbar/XposedInit.java
+++ b/src/info/mzimmermann/xposed/cputempstatusbar/XposedInit.java
@@ -1,81 +1,81 @@
... | true | true | public void handleLoadPackage(final LoadPackageParam lpparam)
throws Throwable {
if (!lpparam.packageName.equals("com.android.systemui"))
return;
XposedBridge.hookAllConstructors(XposedHelpers.findClass("com.android.systemui.statusbar.policy.Clock", lpparam.classLoader), new XC_MethodHook() {
@Override... | public void handleLoadPackage(final LoadPackageParam lpparam)
throws Throwable {
if (!lpparam.packageName.equals("com.android.systemui"))
return;
XposedBridge.hookAllConstructors(XposedHelpers.findClass("com.android.systemui.statusbar.policy.Clock", lpparam.classLoader), new XC_MethodHook() {
@Override... |
diff --git a/src/main/java/org/jbei/ice/web/panels/MiniSamplesViewPanel.java b/src/main/java/org/jbei/ice/web/panels/MiniSamplesViewPanel.java
index 47930d6c5..3e7367815 100644
--- a/src/main/java/org/jbei/ice/web/panels/MiniSamplesViewPanel.java
+++ b/src/main/java/org/jbei/ice/web/panels/MiniSamplesViewPanel.java
@@ ... | false | true | public MiniSamplesViewPanel(String id, Entry entry) {
super(id);
this.entry = entry;
add(new BookmarkablePageLink<Object>("samplesPageLink", EntryViewPage.class,
new PageParameters("0=" + entry.getId() + ",1=" + SAMPLES_URL_KEY)));
SampleController sampleController ... | public MiniSamplesViewPanel(String id, Entry entry) {
super(id);
this.entry = entry;
add(new BookmarkablePageLink<Object>("samplesPageLink", EntryViewPage.class,
new PageParameters("0=" + entry.getId() + ",1=" + SAMPLES_URL_KEY)));
SampleController sampleController ... |
diff --git a/src/org/torproject/ernie/db/RelayDescriptorDatabaseImporter.java b/src/org/torproject/ernie/db/RelayDescriptorDatabaseImporter.java
index 565d97c..fb46d94 100644
--- a/src/org/torproject/ernie/db/RelayDescriptorDatabaseImporter.java
+++ b/src/org/torproject/ernie/db/RelayDescriptorDatabaseImporter.java
@@ ... | true | true | public void addExtraInfoDescriptor(String extraInfoDigest,
String nickname, String fingerprint, long published,
byte[] rawDescriptor, SortedMap<String, String> bandwidthHistory) {
try {
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
if (this.psEs != null && this.psE != n... | public void addExtraInfoDescriptor(String extraInfoDigest,
String nickname, String fingerprint, long published,
byte[] rawDescriptor, SortedMap<String, String> bandwidthHistory) {
try {
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
if (this.psEs != null && this.psE != n... |
diff --git a/htroot/DetailedSearch.java b/htroot/DetailedSearch.java
index a74ecbe48..4fb31da17 100644
--- a/htroot/DetailedSearch.java
+++ b/htroot/DetailedSearch.java
@@ -1,243 +1,237 @@
// DetailedSearch.java
// -----------------------
// part of the AnomicHTTPD caching proxy
// (C) by Michael Peter Christen; ... | false | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
// case if no values are requested
if (post == null || env == null) {
// we create empty entries for template strings
... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
// case if no values are requested
if (post == null || env == null) {
// we create empty entries for template strings
... |
diff --git a/src/cli/src/main/java/org/geogit/cli/porcelain/Status.java b/src/cli/src/main/java/org/geogit/cli/porcelain/Status.java
index eb7f9f6b..e74e0f38 100644
--- a/src/cli/src/main/java/org/geogit/cli/porcelain/Status.java
+++ b/src/cli/src/main/java/org/geogit/cli/porcelain/Status.java
@@ -1,159 +1,159 @@
/*
... | true | true | public void run(GeogitCLI cli) throws Exception {
checkState(cli.getGeogit() != null, "Not a geogit repository: " + cli.getPlatform().pwd());
ConsoleReader console = cli.getConsole();
GeoGIT geogit = cli.getGeogit();
final StagingDatabase indexDb = geogit.getRepository().getIndex()... | public void run(GeogitCLI cli) throws Exception {
checkState(cli.getGeogit() != null, "Not a geogit repository: " + cli.getPlatform().pwd());
ConsoleReader console = cli.getConsole();
GeoGIT geogit = cli.getGeogit();
final StagingDatabase indexDb = geogit.getRepository().getIndex()... |
diff --git a/src/main/java/com/in6k/mypal/controller/TransactionController.java b/src/main/java/com/in6k/mypal/controller/TransactionController.java
index 6ebf4d2..5d40a89 100644
--- a/src/main/java/com/in6k/mypal/controller/TransactionController.java
+++ b/src/main/java/com/in6k/mypal/controller/TransactionController.... | true | true | public String create(HttpServletRequest request, ModelMap model) throws IOException {
TransactionValidator transactionValidator = new TransactionValidator();
HttpSession session = request.getSession();
User userSession = (User) session.getAttribute("LoggedUser");
transactionValida... | public String create(HttpServletRequest request) throws IOException {
TransactionValidator transactionValidator = new TransactionValidator();
HttpSession session = request.getSession();
User userSession = (User) session.getAttribute("LoggedUser");
transactionValidator.setCredit(us... |
diff --git a/test/org/apache/pig/test/TestGrunt.java b/test/org/apache/pig/test/TestGrunt.java
index 010936b5..d752aa3d 100644
--- a/test/org/apache/pig/test/TestGrunt.java
+++ b/test/org/apache/pig/test/TestGrunt.java
@@ -1,1404 +1,1404 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more ... | true | true | public void testShellCommand(){
try {
PigServer server = new PigServer(ExecType.MAPREDUCE,cluster.getProperties());
PigContext context = server.getPigContext();
String strQuote = "'";
String strRemoveFile = "rm";
String strRemoveDir =... | public void testShellCommand(){
try {
PigServer server = new PigServer(ExecType.MAPREDUCE,cluster.getProperties());
PigContext context = server.getPigContext();
String strQuote = "'";
String strRemoveFile = "rm";
String strRemoveDir =... |
diff --git a/src/main/java/org/canedata/provider/mongodb/entity/IntentParser.java b/src/main/java/org/canedata/provider/mongodb/entity/IntentParser.java
index cad1559..96066c8 100644
--- a/src/main/java/org/canedata/provider/mongodb/entity/IntentParser.java
+++ b/src/main/java/org/canedata/provider/mongodb/entity/Inten... | false | true | public static void parse(MongoIntent intent,
final MongoExpressionFactory expFactory,
final BasicDBObject fields, final BasicDBObject projection,
final Limiter limiter, final BasicDBObject sorter, final BasicDBObject options)
throws AnalyzeBehaviourException {
options.append(Options.RETAIN, false).append... | public static void parse(MongoIntent intent,
final MongoExpressionFactory expFactory,
final BasicDBObject fields, final BasicDBObject projection,
final Limiter limiter, final BasicDBObject sorter, final BasicDBObject options)
throws AnalyzeBehaviourException {
options.append(Options.RETAIN, false).append... |
diff --git a/tests/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/aggregation/FinanceTest.java b/tests/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/aggregation/FinanceTest.java
index f54ffffa8..e37a9b33c 100644
--- a/tests/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/agg... | true | true | public void testIrr( ) throws Exception
{
double b[] = new double[]{-70000d, 12000d, 15000d, 18000d, 21000d,
26000d};
double a[] = new double[]{-70000, 12000, 15000};
double c[] = new double[]{-70000d, 12000d, 15000d, 18000d, 21000d};
double d[] = new double[]{-70000d, 22000d, 25000d, 30000d, 31000d};
... | public void testIrr( ) throws Exception
{
double b[] = new double[]{-70000d, 12000d, 15000d, 18000d, 21000d,
26000d};
double a[] = new double[]{-70000, 12000, 15000};
double c[] = new double[]{-70000d, 12000d, 15000d, 18000d, 21000d};
double d[] = new double[]{-70000d, 22000d, 25000d, 30000d, 31000d};
... |
diff --git a/src/main/java/de/cismet/watergis/gui/components/ConfirmationJFileChooser.java b/src/main/java/de/cismet/watergis/gui/components/ConfirmationJFileChooser.java
index b12fb1f..5d3af11 100644
--- a/src/main/java/de/cismet/watergis/gui/components/ConfirmationJFileChooser.java
+++ b/src/main/java/de/cismet/water... | true | true | public void approveSelection() {
final File f = getSelectedFile();
if (f.exists() && (getDialogType() == SAVE_DIALOG)) {
final String message = org.openide.util.NbBundle.getMessage(
ConfirmationJFileChooser.class,
"ConfirmationJFileChooser.approveS... | public void approveSelection() {
final File f = getSelectedFile();
if (f.exists() && (getDialogType() == SAVE_DIALOG)) {
final String message = org.openide.util.NbBundle.getMessage(
ConfirmationJFileChooser.class,
"ConfirmationJFileChooser.approveS... |
diff --git a/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/client/token/grant/client/ClientCredentialsAccessTokenProvider.java b/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/client/token/grant/client/ClientCredentialsAccessTokenProvider.java
index d97cfdde..51d3fae... | true | true | private MultiValueMap<String, String> getParametersForTokenRequest(ClientCredentialsResourceDetails resource) {
MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>();
form.set("grant_type", "client_credentials");
form.set("client_id", resource.getClientId());
if (resource.isScoped())... | private MultiValueMap<String, String> getParametersForTokenRequest(ClientCredentialsResourceDetails resource) {
MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>();
form.set("grant_type", "client_credentials");
if (resource.isScoped()) {
StringBuilder builder = new StringBuilder(... |
diff --git a/rio-platform/src/main/java/org/rioproject/url/artifact/ArtifactURLConfiguration.java b/rio-platform/src/main/java/org/rioproject/url/artifact/ArtifactURLConfiguration.java
index b9547f8e..da708ebd 100644
--- a/rio-platform/src/main/java/org/rioproject/url/artifact/ArtifactURLConfiguration.java
+++ b/rio-pl... | false | true | public ArtifactURLConfiguration(String path) {
int index = path.indexOf(";");
if(index!=-1) {
String repositoryString = path.substring(index+1, path.length());
path = path.substring(0, index);
String[] parts = repositoryString.split(";");
for(String s ... | public ArtifactURLConfiguration(final String path) {
String pathToUse = path;
int index = pathToUse.indexOf(";");
if(index!=-1) {
String repositoryString = pathToUse.substring(index+1, pathToUse.length());
pathToUse = pathToUse.substring(0, index);
String[... |
diff --git a/src/com/quizz/places/db/PlacesDAO.java b/src/com/quizz/places/db/PlacesDAO.java
index f1ad95a..8d8d20a 100644
--- a/src/com/quizz/places/db/PlacesDAO.java
+++ b/src/com/quizz/places/db/PlacesDAO.java
@@ -1,128 +1,128 @@
package com.quizz.places.db;
import java.util.ArrayList;
import java.util.List;
... | true | true | public List<Stat> getStats() {
String sqlQuery = "SELECT" + " (SELECT" + " COUNT("
+ DbHelper.TABLE_SECTIONS + "." + DbHelper.COLUMN_ID + ")"
+ " FROM " + DbHelper.TABLE_SECTIONS + " WHERE "
+ DbHelper.TABLE_SECTIONS + "." + DbHelper.COLUMN_UNLOCKED
+ " = " + Section.SECTION_UNLOCKED + ") AS section... | public List<Stat> getStats() {
String sqlQuery = "SELECT" + " (SELECT" + " COUNT("
+ DbHelper.TABLE_SECTIONS + "." + DbHelper.COLUMN_ID + ")"
+ " FROM " + DbHelper.TABLE_SECTIONS + " WHERE "
+ DbHelper.TABLE_SECTIONS + "." + DbHelper.COLUMN_UNLOCKED
+ " = " + Section.SECTION_UNLOCKED + ") AS section... |
diff --git a/src/resources/personalized-content/src/java/org/wyona/yanel/impl/resources/boost/PersonalizedContentResource.java b/src/resources/personalized-content/src/java/org/wyona/yanel/impl/resources/boost/PersonalizedContentResource.java
index 4e8cd569f..b678bf41a 100644
--- a/src/resources/personalized-content/sr... | true | true | protected InputStream getContentXML(String viewId) throws Exception {
Document doc = XMLHelper.createDocument(NAMESPACE, "personalized-content");
Element root = doc.getDocumentElement();
String service = getResourceConfigProperty(BOOST_SERVICE_URL_PARAM);
String api_key = getResourc... | protected InputStream getContentXML(String viewId) throws Exception {
Document doc = XMLHelper.createDocument(NAMESPACE, "personalized-content");
Element root = doc.getDocumentElement();
String service = getResourceConfigProperty(BOOST_SERVICE_URL_PARAM);
String api_key = getResourc... |
diff --git a/dropwizard-core/src/main/java/com/yammer/dropwizard/config/ConfigurationException.java b/dropwizard-core/src/main/java/com/yammer/dropwizard/config/ConfigurationException.java
index 7d9f2a9c5..1de2dae75 100644
--- a/dropwizard-core/src/main/java/com/yammer/dropwizard/config/ConfigurationException.java
+++ ... | true | true | private static String formatMessage(File file, Iterable<String> errors) {
final StringBuilder msg = new StringBuilder(file.toString())
.append(" has the following errors:\n");
for (String error : errors) {
msg.append(" * ").append(error);
}
return msg.toS... | private static String formatMessage(File file, Iterable<String> errors) {
final StringBuilder msg = new StringBuilder(file.toString())
.append(" has the following errors:\n");
for (String error : errors) {
msg.append(" * ").append(error).append('\n');
}
r... |
diff --git a/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java b/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
index b63d65164..b17b737b5 100644
--- a/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
+++ b/user/src/com/google/gwt/user/cellview/client/AbstractCe... | true | true | protected void onBrowserEvent2(Event event) {
// Get the event target.
EventTarget eventTarget = event.getEventTarget();
if (!Element.is(eventTarget)) {
return;
}
final Element target = event.getEventTarget().cast();
// Find the cell where the event occurred.
TableSectionElement tbo... | protected void onBrowserEvent2(Event event) {
// Get the event target.
EventTarget eventTarget = event.getEventTarget();
if (!Element.is(eventTarget)) {
return;
}
final Element target = event.getEventTarget().cast();
// Find the cell where the event occurred.
TableSectionElement tbo... |
diff --git a/src/main/java/tk/kirlian/DuckShop/DuckShopBlockListener.java b/src/main/java/tk/kirlian/DuckShop/DuckShopBlockListener.java
index d6b8030..3f757e3 100644
--- a/src/main/java/tk/kirlian/DuckShop/DuckShopBlockListener.java
+++ b/src/main/java/tk/kirlian/DuckShop/DuckShopBlockListener.java
@@ -1,77 +1,77 @@
... | true | true | public void onBlockBreak(BlockBreakEvent event) {
Block block = event.getBlock();
if(block.getState() instanceof Sign) {
TradingSign sign = null;
try {
sign = new TradingSign(plugin,
null,
... | public void onBlockBreak(BlockBreakEvent event) {
Block block = event.getBlock();
if(block.getState() instanceof Sign) {
TradingSign sign = null;
try {
sign = new TradingSign(plugin,
null,
... |
diff --git a/TreeArchaeSource/Archaeopteryx/java/src/org/forester/archaeopteryx/TreePanel.java b/TreeArchaeSource/Archaeopteryx/java/src/org/forester/archaeopteryx/TreePanel.java
index 9f06c36..4dc6b61 100644
--- a/TreeArchaeSource/Archaeopteryx/java/src/org/forester/archaeopteryx/TreePanel.java
+++ b/TreeArchaeSource/... | true | true | private void paintNodeData( final Graphics g,
final PhylogenyNode node,
final boolean to_graphics_file,
final boolean to_pdf,
final boolean is_in_found_nodes ) {
if ( isNodeDataInvisi... | private void paintNodeData( final Graphics g,
final PhylogenyNode node,
final boolean to_graphics_file,
final boolean to_pdf,
final boolean is_in_found_nodes ) {
if ( isNodeDataInvisi... |
diff --git a/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java b/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java
index ad5665e..fda61c7 100644
--- a/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java
+++ b/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java
@@ -1,95 +1,95 @@
package ... | false | true | public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (value==null) return this;
// we want a more rich markup from the object
CertificateP... | public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (value==null) return this;
// we want a more rich markup from the object
CertificateP... |
diff --git a/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java b/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java
index 28294d3..b1d15a0 100644
--- a/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java
+++ b/seck-web/src/main/java/com/pcwerk/seck/servlet/HelloWorld.java
@@ -1,52 +1... | true | true | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String query = request.getParameter("query");
System.out.println("Getting indexer");
... | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String query = request.getParameter("query");
System.out.println("Getting indexer");
... |
diff --git a/apps/rdfindex-core/src/test/java/org/rdfindex/visitor/NaiveWorldBankTest.java b/apps/rdfindex-core/src/test/java/org/rdfindex/visitor/NaiveWorldBankTest.java
index 17881d9..d3ba18f 100644
--- a/apps/rdfindex-core/src/test/java/org/rdfindex/visitor/NaiveWorldBankTest.java
+++ b/apps/rdfindex-core/src/test/j... | true | true | public void testWeightedQueryIndex() throws Exception {
RDFIndexMetadataDAO metadata = new MetadataDAOImpl(
TestHelper.INDEX_MODEL,
TestHelper.createModel("wb/naive-worldbank.ttl"),
TestHelper.createModel("wb/naive-worldbank-observations.ttl"));
RDFIndexVisitor rdfIndexProcessor = new RDFIndexSPARQLG... | public void testWeightedQueryIndex() throws Exception {
RDFIndexMetadataDAO metadata = new MetadataDAOImpl(
TestHelper.INDEX_MODEL,
TestHelper.createModel("wb/naive-worldbank.ttl"),
TestHelper.createModel("wb/naive-worldbank-observations.ttl"));
RDFIndexVisitor rdfIndexProcessor = new RDFIndexSPARQLG... |
diff --git a/src/net/cactii/flash2/TorchService.java b/src/net/cactii/flash2/TorchService.java
index 6040fa1..3da3ab7 100644
--- a/src/net/cactii/flash2/TorchService.java
+++ b/src/net/cactii/flash2/TorchService.java
@@ -1,142 +1,143 @@
/*
* Copyright (C) 2013 The CyanogenMod Project
*
* This program is free sof... | true | true | public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(MSG_TAG, "Starting torch");
if (intent == null) {
stopSelf();
return START_NOT_STICKY;
}
mFlashMode = intent.getBooleanExtra("bright", false)
? FlashDevice.DEATH_RAY : F... | public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(MSG_TAG, "Starting torch");
if (intent == null) {
stopSelf();
return START_NOT_STICKY;
}
mFlashMode = intent.getBooleanExtra("bright", false)
? FlashDevice.DEATH_RAY : F... |
diff --git a/poem/src/test/java/org/melati/poem/test/CachedSelectionTest.java b/poem/src/test/java/org/melati/poem/test/CachedSelectionTest.java
index 45cc76a38..876d91ef4 100644
--- a/poem/src/test/java/org/melati/poem/test/CachedSelectionTest.java
+++ b/poem/src/test/java/org/melati/poem/test/CachedSelectionTest.java... | true | true | public void testMultiTableSelection() {
getDb().uncacheContents();
Table[] others = new Table[] {getDb().getGroupMembershipTable(),
getDb().getGroupTable()};
String query =
getDb().getUserTable().troidColumn().fullQuotedName() +
// user.id
" = 1 AND " +
... | public void testMultiTableSelection() {
getDb().uncacheContents();
Table[] others = new Table[] {getDb().getGroupMembershipTable(),
getDb().getGroupTable()};
String query =
getDb().getUserTable().troidColumn().fullQuotedName() +
// user.id
" = 1 AND " +
... |
diff --git a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/TaskIntegrationTest.java b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/TaskIntegrationTest.java
index e1c2372971..e3434db0da 100644
--- a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/... | false | true | private void verifyTaskProperties(String message, String mediaProcessorId, TaskOption options, String taskBody,
String configuration, String name, int priority, String encryptionKeyId, String encryptionScheme,
String encryptionVersion, String initializationVector, Date endTime, String errorD... | private void verifyTaskProperties(String message, String mediaProcessorId, TaskOption options, String taskBody,
String configuration, String name, int priority, String encryptionKeyId, String encryptionScheme,
String encryptionVersion, String initializationVector, Date endTime, String errorD... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/DiskIndexLinkedList.java b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/DiskIndexLinkedList.java
index b6b601df2..6f37963b4 100755
--- a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/DiskIndexLinkedList.jav... | true | true | public synchronized IndexItem getNextEntry(IndexItem current) {
IndexItem result = null;
if (current != null) {
current = (IndexItem) refreshEntry(current);
if (current.getNextItem() >= 0) {
try {
result = indexManager.getIndex(current.getNextItem());
} catch (IOException e) {
throw new ... | public synchronized IndexItem getNextEntry(IndexItem current) {
IndexItem result = null;
if (current != null) {
current = (IndexItem) refreshEntry(current);
if (current.getNextItem() >= 0) {
try {
result = indexManager.getIndex(current.getNextItem());
} catch (IOException e) {
throw new ... |
diff --git a/src/core/event/Message.java b/src/core/event/Message.java
index 6a45dda..f93bdef 100644
--- a/src/core/event/Message.java
+++ b/src/core/event/Message.java
@@ -1,67 +1,67 @@
package core.event;
import java.util.Date;
import java.util.regex.Matcher;
/**
* This is a IRC message object.
* This holds... | true | true | public Message(Matcher m)
{
date = new Date();
user = m.group(1).toLowerCase();
host = m.group(2);
channel = m.group(3);
message = m.group(4);
//Converts a channel message to a PM
if (channel.charAt(0) != '#')
{
channel = user;
privmsg = true;
}
}
| public Message(Matcher m)
{
date = new Date();
user = m.group(1).toLowerCase();
host = m.group(2);
channel = m.group(3);
message = m.group(4).toLowerCase();
//Converts a channel message to a PM
if (channel.charAt(0) != '#')
{
channel = user;
privmsg = true;
}
}
|
diff --git a/packages/java/rinfo-checker/src/main/java/se/lagrummet/rinfo/checker/restlet/CheckerResource.java b/packages/java/rinfo-checker/src/main/java/se/lagrummet/rinfo/checker/restlet/CheckerResource.java
index 55ccd194..985cb37d 100644
--- a/packages/java/rinfo-checker/src/main/java/se/lagrummet/rinfo/checker/re... | true | true | public void handlePost() {
try {
Form form = getRequest().getEntityAsForm();
String feedUrl = form.getFirstValue("feedUrl");
String maxEntriesStr = form.getFirstValue("maxEntries");
int maxEntries = !StringUtils.isEmpty(maxEntriesStr) ? Integer.parseInt(maxEnt... | public void handlePost() {
try {
Form form = getRequest().getEntityAsForm();
String feedUrl = form.getFirstValue("feedUrl");
String maxEntriesStr = form.getFirstValue("maxEntries");
int maxEntries = !StringUtils.isEmpty(maxEntriesStr) ? Integer.parseInt(maxEnt... |
diff --git a/support/org/intellij/grammar/parser/GeneratedParserUtilBase.java b/support/org/intellij/grammar/parser/GeneratedParserUtilBase.java
index 64812a5..8fef18c 100755
--- a/support/org/intellij/grammar/parser/GeneratedParserUtilBase.java
+++ b/support/org/intellij/grammar/parser/GeneratedParserUtilBase.java
@@ ... | false | true | public static boolean parseAsTree(final PsiBuilder builder, final IElementType chunkType,
final boolean checkParens, final Parser parser, final Parser eatMoreCondition) {
final LinkedList<Pair<PsiBuilder.Marker, PsiBuilder.Marker>> parenList = new LinkedList<Pair<PsiBuilder.Mar... | public static boolean parseAsTree(final PsiBuilder builder, final IElementType chunkType,
final boolean checkParens, final Parser parser, final Parser eatMoreCondition) {
final LinkedList<Pair<PsiBuilder.Marker, PsiBuilder.Marker>> parenList = new LinkedList<Pair<PsiBuilder.Mar... |
diff --git a/tnrs-standalone/src/main/java/org/iplantc/tnrs/demo/server/SearchServiceImpl.java b/tnrs-standalone/src/main/java/org/iplantc/tnrs/demo/server/SearchServiceImpl.java
index 1e4b424..d6c8f71 100644
--- a/tnrs-standalone/src/main/java/org/iplantc/tnrs/demo/server/SearchServiceImpl.java
+++ b/tnrs-standalone/s... | false | true | public BasePagingLoadResult<BeanTNRSEntry> getRemoteData(final PagingLoadConfig config,String jsons) {
Logger rootLogger = Logger.getLogger("ConsoleLogHandler");
rootLogger.log(Level.SEVERE,"getRemoteData: "+jsons);
JSONObject info = new JSONObject();
JSONObject json = (JSONObject)JSONSerializer.toJSON(jsons... | public BasePagingLoadResult<BeanTNRSEntry> getRemoteData(final PagingLoadConfig config,String jsons) {
Logger rootLogger = Logger.getLogger("ConsoleLogHandler");
rootLogger.log(Level.SEVERE,"getRemoteData: "+jsons);
JSONObject info = new JSONObject();
JSONObject json = (JSONObject)JSONSerializer.toJSON(jsons... |
diff --git a/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/authentication/AuthenticationModule.java b/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/authentication/AuthenticationModule.java
index 9a68f0ea..47b0770e 100644
--- a/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/... | false | true | public boolean login() throws LoginException
{
DataPersistanceManager dao;
Loader[] callbacks = null;
IUserData user = null;
String toComparePassword = null;
String username = null;
if (this.handler != null)
{
callbacks = new Loader[2];
callbacks[0] = new NameLoader();
callbacks[1] = new Passw... | public boolean login() throws LoginException
{
DataPersistanceManager dao;
Loader[] callbacks = null;
IUserData user = null;
String toComparePassword = null;
if (this.handler != null)
{
callbacks = new Loader[2];
callbacks[0] = new NameLoader();
callbacks[1] = new PasswordLoader();
try
{
... |
diff --git a/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java b/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java
index 826eeada..85f32164 100644
--- a/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java
+++ b/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java
@@ -1,72 +1,72 @@
/*****... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse res, Identity subject, Identity object) {
setResponseHeaders(res);
try {
Representation representation = object.read();
String SvgRepresentation = representation.getSvg();
if ((SvgRepresentation == null) || (SvgRepresentatio... | public void doGet(HttpServletRequest req, HttpServletResponse res, Identity subject, Identity object) {
setResponseHeaders(res);
try {
Representation representation = object.read();
String SvgRepresentation = representation.getSvg();
if ((SvgRepresentation == null) || (SvgRepresentatio... |
diff --git a/java/src/ca/simplegames/micro/viewers/velocity/VelocityViewRenderer.java b/java/src/ca/simplegames/micro/viewers/velocity/VelocityViewRenderer.java
index ec3e0c2..1ef0e87 100755
--- a/java/src/ca/simplegames/micro/viewers/velocity/VelocityViewRenderer.java
+++ b/java/src/ca/simplegames/micro/viewers/veloci... | true | true | public void init() throws Exception {
ExtendedProperties eprops = new ExtendedProperties();
eprops.putAll(velocityProperties);
eprops.addProperty(RuntimeConstants.RESOURCE_LOADER, "micro");
eprops.setProperty("micro.resource.loader.description", "Micro internal resource loader.");
... | public void init() throws Exception {
ExtendedProperties eprops = new ExtendedProperties();
eprops.putAll(velocityProperties);
eprops.addProperty(RuntimeConstants.RESOURCE_LOADER, "micro");
eprops.setProperty("micro.resource.loader.description", "Micro internal resource loader.");
... |
diff --git a/modules/core/src/main/java/cgl/iotcloud/core/sensor/SCSensorUtils.java b/modules/core/src/main/java/cgl/iotcloud/core/sensor/SCSensorUtils.java
index 92e5f83..ea62638 100644
--- a/modules/core/src/main/java/cgl/iotcloud/core/sensor/SCSensorUtils.java
+++ b/modules/core/src/main/java/cgl/iotcloud/core/senso... | true | true | private static Sensor convertToXML(SCSensor sensor) {
Sensor sensorInfo = Sensor.Factory.newInstance();
sensorInfo.setName(sensor.getName());
sensorInfo.setType(sensor.getType());
sensorInfo.setId(sensor.getId());
Endpoint controlEndpoint = sensorInfo.addNewControlEndpoint(... | private static Sensor convertToXML(SCSensor sensor) {
Sensor sensorInfo = Sensor.Factory.newInstance();
sensorInfo.setName(sensor.getName());
sensorInfo.setType(sensor.getType());
sensorInfo.setId(sensor.getId());
Endpoint controlEndpoint = sensorInfo.addNewControlEndpoint(... |
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/Configuration.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/Configuration.java
index 0a950e52..5dccc18b 100644
--- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/Configuration.java
+++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/Configuration.java
@@ -1,340 +1,347 @@
/**
* OSM2GpsM... | true | true | public Configuration(String planet,String file) {
// precalculate real scale levels for pseudo zoom levels
// pseudo zoom level 0 equals to scale 0
realScale[0]=0;
// startup pseudo zoom level 23
realScale[23]=15000;
// pseudo zoom level 0..21
for(int i=22;i>0;i--) {
realScale[i]=realScale[i+... | public Configuration(String planet,String file) {
// precalculate real scale levels for pseudo zoom levels
// pseudo zoom level 0 equals to scale 0
realScale[0]=0;
// startup pseudo zoom level 23
realScale[23]=15000;
// pseudo zoom level 0..21
for(int i=22;i>0;i--) {
realScale[i]=realScale[i+... |
diff --git a/Red/src/adg/red/controllers/SectionViewController.java b/Red/src/adg/red/controllers/SectionViewController.java
index d14a3dc..fa48ef1 100644
--- a/Red/src/adg/red/controllers/SectionViewController.java
+++ b/Red/src/adg/red/controllers/SectionViewController.java
@@ -1,182 +1,182 @@
/*
* To change this ... | true | true | public void initialize(URL url, ResourceBundle rb)
{
// TODO
try
{
Section section = Context.getInstance().getSelectedSection();
enrolmentPk = new EnrolmentPK(Student.getStudentByUsername(Context.getInstance().getCurrentUser()).getStudentId(),
... | public void initialize(URL url, ResourceBundle rb)
{
// TODO
try
{
Section section = Context.getInstance().getSelectedSection();
enrolmentPk = new EnrolmentPK(Student.getStudentByUsername(Context.getInstance().getCurrentUser()).getStudentId(),
... |
diff --git a/src/com/github/bjarneh/utilz/io.java b/src/com/github/bjarneh/utilz/io.java
index 0876e1a..45bfa13 100644
--- a/src/com/github/bjarneh/utilz/io.java
+++ b/src/com/github/bjarneh/utilz/io.java
@@ -1,270 +1,276 @@
// Copyright © 2012 bjarneh
//
// This program is free software: you can redistribute it a... | false | true | public static void unzip( File file ) throws Exception {
ZipFile zipFile = new ZipFile( file );
File parentFile, tmpFile;
InputStream stream;
FileOutputStream output;
String parent = file.getParent();
if( parent != null ){
parentFile = new File(parent)... | public static void unzip( File file ) throws Exception {
ZipFile zipFile = new ZipFile( file );
File parentFile, tmpFile, grandFather;
InputStream stream;
FileOutputStream output;
String parent = file.getParent();
if( parent != null ){
parentFile = new... |
diff --git a/src/cz/xlinux/spApp/SPActivity.java b/src/cz/xlinux/spApp/SPActivity.java
index 8e7e314..814c884 100644
--- a/src/cz/xlinux/spApp/SPActivity.java
+++ b/src/cz/xlinux/spApp/SPActivity.java
@@ -1,81 +1,81 @@
package cz.xlinux.spApp;
import cz.xlinux.libAPI.aidl.EntryPoint;
import cz.xlinux.libAPI.libFce... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// ---
mTvLog = (TextView) findViewById(R.id.tvLog);
// mTvLog.setMovementMethod(ScrollingMovementMethod.getInstance());
Button clr;
clr = (Button) findViewById(R.id.btTestCert);
clr.s... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// ---
mTvLog = (TextView) findViewById(R.id.tvLog);
// mTvLog.setMovementMethod(ScrollingMovementMethod.getInstance());
Button clr;
clr = (Button) findViewById(R.id.btTestCert);
clr.s... |
diff --git a/src/com/android/browser/preferences/GeneralPreferencesFragment.java b/src/com/android/browser/preferences/GeneralPreferencesFragment.java
index 1c82e1c1..9c763e98 100644
--- a/src/com/android/browser/preferences/GeneralPreferencesFragment.java
+++ b/src/com/android/browser/preferences/GeneralPreferencesFra... | true | true | void migrateBookmarks(ContentResolver resolver, String accountName) {
Cursor cursor = null;
try {
// Re-parent the bookmarks in the default root folder
cursor = resolver.query(Bookmarks.CONTENT_URI, new String[] { Bookmarks._ID },
B... | void migrateBookmarks(ContentResolver resolver, String accountName) {
Cursor cursor = null;
try {
// Re-parent the bookmarks in the default root folder
cursor = resolver.query(Bookmarks.CONTENT_URI, new String[] { Bookmarks._ID },
B... |
diff --git a/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java b/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
index 2bd8ace0..60950ec2 100644
--- a/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
+++ b/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
@... | false | true | public static InputStream concat(File[] files, String rootpath)
{
if (rootpath == null || StringUtils.isEmpty(rootpath))
{
return concat(files);
}
try
{
StringBuffer buffer = new StringBuffer();
for (File file : files)
{
StringBuffer tmp = new StringBuffer();
... | public static InputStream concat(File[] files, String rootpath)
{
if (rootpath == null || StringUtils.isEmpty(rootpath))
{
return concat(files);
}
try
{
StringBuffer buffer = new StringBuffer();
for (File file : files)
{
StringBuffer tmp = new StringBuffer();
... |
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index 8f128224..8e3a2afa 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -1,984 +1,985 @@
/*
Licensed to the A... | true | true | private void setup() {
this.setInitialScale(0);
this.setVerticalScrollBarEnabled(false);
this.requestFocusFromTouch();
// Enable JavaScript
WebSettings settings = this.getSettings();
settings.setJavaScriptEnabled(true);
settings.setJavaScriptCanOpenWindowsAut... | private void setup() {
this.setInitialScale(0);
this.setVerticalScrollBarEnabled(false);
this.requestFocusFromTouch();
// Enable JavaScript
WebSettings settings = this.getSettings();
settings.setJavaScriptEnabled(true);
settings.setJavaScriptCanOpenWindowsAut... |
diff --git a/src/org/jaudiotagger/tag/id3/ID3v24Tag.java b/src/org/jaudiotagger/tag/id3/ID3v24Tag.java
index c207c38d..a9ef5305 100644
--- a/src/org/jaudiotagger/tag/id3/ID3v24Tag.java
+++ b/src/org/jaudiotagger/tag/id3/ID3v24Tag.java
@@ -1,913 +1,913 @@
/*
* MusicTag Copyright (C)2003,2004
*
* This library is... | true | true | public ID3v24Tag(AbstractTag mp3tag)
{
logger.info("Creating tag from a tag of a different version");
if (mp3tag != null)
{
//Should use simpler copy constructor
if ((mp3tag instanceof ID3v24Tag == true))
{
throw new UnsupportedOperati... | public ID3v24Tag(AbstractTag mp3tag)
{
logger.info("Creating tag from a tag of a different version");
if (mp3tag != null)
{
//Should use simpler copy constructor
if ((mp3tag instanceof ID3v24Tag == true))
{
throw new UnsupportedOperati... |
diff --git a/src/main/java/nl/topicus/onderwijs/dashboard/web/components/statustable/StatusTableColumnPanel.java b/src/main/java/nl/topicus/onderwijs/dashboard/web/components/statustable/StatusTableColumnPanel.java
index a33b22c..c3a6cee 100644
--- a/src/main/java/nl/topicus/onderwijs/dashboard/web/components/statustab... | false | true | protected void retrieveDataFromApplication(List<ColumnData> ret) {
Map<Project, TopicusApplicationStatus> statusses = WicketApplication
.get().getStatusses();
if ("color-1".equals(getDefaultModelObjectAsString())) {
ColumnData usersData = new ColumnData();
usersData.setLabel("Current users");
for (Pr... | protected void retrieveDataFromApplication(List<ColumnData> ret) {
Map<Project, TopicusApplicationStatus> statusses = WicketApplication
.get().getStatusses();
if ("color-1".equals(getDefaultModelObjectAsString())) {
ColumnData usersData = new ColumnData();
usersData.setLabel("Current users");
for (Pr... |
diff --git a/core/behaviour/src/net/sf/cotta/utils/ProductInfoTest.java b/core/behaviour/src/net/sf/cotta/utils/ProductInfoTest.java
index 093739c..b67a5ab 100644
--- a/core/behaviour/src/net/sf/cotta/utils/ProductInfoTest.java
+++ b/core/behaviour/src/net/sf/cotta/utils/ProductInfoTest.java
@@ -1,51 +1,51 @@
package ... | true | true | public void testUnderstandPredefinedInformation() throws TIoException {
ProductInfo productInfo = ProductInfo.forClass(ProductInfo.class);
ensure.that(productInfo.title()).eq("Cotta");
ensure.that(productInfo.vendor()).eq("SourceForge Cotta");
ensure.that(productInfo.url()).eq("http://cotta.sourceforg... | public void testUnderstandPredefinedInformation() throws TIoException {
ProductInfo productInfo = ProductInfo.forClass(ProductInfo.class);
ensure.that(productInfo.title()).eq("Cotta");
ensure.that(productInfo.vendor()).eq("SourceForge Cotta");
ensure.that(productInfo.url()).eq("http://cotta.sourceforg... |
diff --git a/core/src/org/icepdf/core/pobjects/graphics/Shapes.java b/core/src/org/icepdf/core/pobjects/graphics/Shapes.java
index 29b92562..2c039014 100644
--- a/core/src/org/icepdf/core/pobjects/graphics/Shapes.java
+++ b/core/src/org/icepdf/core/pobjects/graphics/Shapes.java
@@ -1,559 +1,563 @@
/*
* Version: MPL ... | true | true | public synchronized void paint(Graphics2D g, PageViewComponentImpl.PagePainter pagePainter) {
// disable clipping, helps with printing issues on windows where the
// clip can sometimes blank a whole page. This should only be used as
// a lost resort. Buffering to an image is anoth... | public synchronized void paint(Graphics2D g, PageViewComponentImpl.PagePainter pagePainter) {
// disable clipping, helps with printing issues on windows where the
// clip can sometimes blank a whole page. This should only be used as
// a lost resort. Buffering to an image is anoth... |
diff --git a/src/test/java/org/hbasene/index/TestHBaseIndexReader.java b/src/test/java/org/hbasene/index/TestHBaseIndexReader.java
index 780cf42..a8f886d 100644
--- a/src/test/java/org/hbasene/index/TestHBaseIndexReader.java
+++ b/src/test/java/org/hbasene/index/TestHBaseIndexReader.java
@@ -1,70 +1,70 @@
/**
* Copy... | true | true | public void testSearch() throws IOException {
IndexSearcher searcher = new HBaseIndexSearcher(this.indexReader);
TopDocs docs = searcher.search(new TermQuery(new Term("content", "plays")),
3);
Assert.assertTrue(docs.totalHits > 3 );
//"At least 3 terms with the keyword plays available");
... | public void testSearch() throws IOException {
IndexSearcher searcher = new HBaseIndexSearcher(this.indexReader);
TopDocs docs = searcher.search(new TermQuery(new Term("content", "plays")),
3);
Assert.assertTrue(docs.totalHits > 3 );
//"At least 3 terms with the keyword plays available");
... |
diff --git a/src/java/org/wikimedia/diffdb/Indexer.java b/src/java/org/wikimedia/diffdb/Indexer.java
index 2d8844e..ab8758d 100644
--- a/src/java/org/wikimedia/diffdb/Indexer.java
+++ b/src/java/org/wikimedia/diffdb/Indexer.java
@@ -1,107 +1,107 @@
package org.wikimedia.diffdb;
import java.io.File;
import java.io.... | true | true | public void run() {
// TODO Auto-generated method stub
long start = System.currentTimeMillis();
// Indexer indexer;
try {
// Indexer indexer = new Indexer(Indexer.writer, this.sourceFile);
numIndexed += this.index();
this.close();
} catch (IOException e) {
System.out.println(e);
} catch (Excep... | public void run() {
// TODO Auto-generated method stub
long start = System.currentTimeMillis();
// Indexer indexer;
try {
// Indexer indexer = new Indexer(Indexer.writer, this.sourceFile);
numIndexed = this.index();
this.close();
} catch (IOException e) {
System.out.println(e);
} catch (Except... |
diff --git a/src/impl/java/org/wyona/yarep/core/impl/vfs/VFileSystemRepositoryInputStream.java b/src/impl/java/org/wyona/yarep/core/impl/vfs/VFileSystemRepositoryInputStream.java
index 2709600..67a123b 100644
--- a/src/impl/java/org/wyona/yarep/core/impl/vfs/VFileSystemRepositoryInputStream.java
+++ b/src/impl/java/org... | false | true | public String getDirectoryListing(File file, Path path, String mimeType) {
StringBuffer dirListing = new StringBuffer("<?xml version=\"1.0\"?>");
if(mimeType.equals("application/xhtml+xml")) {
dirListing.append("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
dirListing.appe... | public String getDirectoryListing(File file, Path path, String mimeType) {
StringBuffer dirListing = new StringBuffer("<?xml version=\"1.0\"?>");
if(mimeType.equals("application/xhtml+xml")) {
dirListing.append("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
dirListing.appe... |
diff --git a/freeplane/src/org/freeplane/core/url/UrlManager.java b/freeplane/src/org/freeplane/core/url/UrlManager.java
index 3a7df75ee..1ab53759f 100644
--- a/freeplane/src/org/freeplane/core/url/UrlManager.java
+++ b/freeplane/src/org/freeplane/core/url/UrlManager.java
@@ -1,436 +1,436 @@
/*
* Freeplane - mind m... | false | true | public void loadURL(final URI uri) {
final String uriString = uri.toString();
if (uriString.startsWith("#")) {
final String target = uri.getFragment();
try {
final MapController mapController = modeController.getMapController();
mapController.select(mapController.getNodeFromID(target));
}
catch... | public void loadURL(final URI uri) {
final String uriString = uri.toString();
if (uriString.startsWith("#")) {
final String target = uri.getFragment();
try {
final MapController mapController = modeController.getMapController();
mapController.select(mapController.getNodeFromID(target));
}
catch... |
diff --git a/src/jrds/snmp/SnmpDiscoverAgent.java b/src/jrds/snmp/SnmpDiscoverAgent.java
index 6930c472..83c6afbb 100644
--- a/src/jrds/snmp/SnmpDiscoverAgent.java
+++ b/src/jrds/snmp/SnmpDiscoverAgent.java
@@ -1,296 +1,301 @@
package jrds.snmp;
import java.io.IOException;
import java.net.InetAddress;
import java... | true | true | public void discoverPost(String hostname, JrdsElement hostEleme,
Map<String, JrdsDocument> probdescs, HttpServletRequest request) {
boolean withOid = false;
String withOidStr = request.getParameter("discoverWithOid");
if(withOidStr != null && "true".equals(withOidStr.toLowerCase... | public void discoverPost(String hostname, JrdsElement hostEleme,
Map<String, JrdsDocument> probdescs, HttpServletRequest request) {
boolean withOid = false;
String withOidStr = request.getParameter("discoverWithOid");
if(withOidStr != null && "true".equals(withOidStr.toLowerCase... |
diff --git a/isoparser/src/test/java/com/coremedia/drm/packager/isoparser/TestItunesMetaDataEnrichment.java b/isoparser/src/test/java/com/coremedia/drm/packager/isoparser/TestItunesMetaDataEnrichment.java
index 8581c4c..efd2ac2 100644
--- a/isoparser/src/test/java/com/coremedia/drm/packager/isoparser/TestItunesMetaData... | false | true | public void testEnrichment() throws IOException {
InputStream is = getClass().getResourceAsStream("/file6141.odf");
IsoBufferWrapper isoBufferWrapper = new IsoBufferWrapper(ByteBuffer.wrap(IOUtils.toByteArray(is)));
IsoFile isoFile = new IsoFile(isoBufferWrapper);
isoFile.parse();
... | public void testEnrichment() throws IOException {
InputStream is = getClass().getResourceAsStream("/file6141.odf");
IsoBufferWrapper isoBufferWrapper = new IsoBufferWrapper(ByteBuffer.wrap(IOUtils.toByteArray(is)));
IsoFile isoFile = new IsoFile(isoBufferWrapper);
isoFile.parse();
... |
diff --git a/htroot/xml/bookmarks/tags/get.java b/htroot/xml/bookmarks/tags/get.java
index f38068413..28377a527 100644
--- a/htroot/xml/bookmarks/tags/get.java
+++ b/htroot/xml/bookmarks/tags/get.java
@@ -1,80 +1,80 @@
// /xml.bookmarks/tags/get.java
// -------------------------------
// part of the AnomicHTTPD cach... | true | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
boolean isAdmin=switchboard.verifyAuthentication(header, true);
serverObjects prop ... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
boolean isAdmin=switchboard.verifyAuthentication(header, true);
serverObjects prop ... |
diff --git a/src/org/in2teck/codice/AdivinaMe/AdivinaMe.java b/src/org/in2teck/codice/AdivinaMe/AdivinaMe.java
index 8950558..5cf8c09 100644
--- a/src/org/in2teck/codice/AdivinaMe/AdivinaMe.java
+++ b/src/org/in2teck/codice/AdivinaMe/AdivinaMe.java
@@ -1,53 +1,54 @@
/*
Licensed to the Apache Software Foundatio... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
super.loadUrl(... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
super.loadUrl(... |
diff --git a/src/es/upm/dit/gsi/episteme/RdfFoafGenerator.java b/src/es/upm/dit/gsi/episteme/RdfFoafGenerator.java
index 2f72fdf..6255abb 100644
--- a/src/es/upm/dit/gsi/episteme/RdfFoafGenerator.java
+++ b/src/es/upm/dit/gsi/episteme/RdfFoafGenerator.java
@@ -1,53 +1,52 @@
package es.upm.dit.gsi.episteme;
import j... | true | true | public String generatePerson(Person p){
String rdf = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<rdf:RDF\n " +
"xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n " +
"xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"\n " +
"xmlns:foaf=\"http://xmlns.com/foaf... | public String generatePerson(Person p){
String rdf = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<rdf:RDF\n " +
"xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n " +
"xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"\n " +
"xmlns:foaf=\"http://xmlns.com/foaf... |
diff --git a/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java b/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java
index 1317fc169..e20fff054 100644
--- a/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java
+++ b/srcj/com/sun/electric/tool/user/tecEditWizard/Tec... | false | true | private void dumpTechnology(PrintWriter pw)
{
// LAYER COLOURS
Color [] metal_colour = new Color[]
{
new Color(0,150,255), // cyan/blue
new Color(148,0,211), // purple
new Color(255,215,0), // yellow
new Color(132,112,255), // mauve
new Color(255,160,122), // salmon
new Color(34,139,34),... | private void dumpTechnology(PrintWriter pw)
{
// LAYER COLOURS
Color [] metal_colour = new Color[]
{
new Color(0,150,255), // cyan/blue
new Color(148,0,211), // purple
new Color(255,215,0), // yellow
new Color(132,112,255), // mauve
new Color(255,160,122), // salmon
new Color(34,139,34),... |
diff --git a/flyway-core/src/main/java/com/googlecode/flyway/core/dbsupport/oracle/OracleSqlStatementBuilder.java b/flyway-core/src/main/java/com/googlecode/flyway/core/dbsupport/oracle/OracleSqlStatementBuilder.java
index a8a462981..ca430570c 100644
--- a/flyway-core/src/main/java/com/googlecode/flyway/core/dbsupport/... | false | true | protected Delimiter changeDelimiterIfNecessary(String line, Delimiter delimiter) {
if (line.matches("DECLARE|DECLARE\\s.*") || line.matches("BEGIN|BEGIN\\s.*")) {
return PLSQL_DELIMITER;
}
if (StringUtils.countOccurrencesOf(statementStart, " ") < 4) {
statementStart ... | protected Delimiter changeDelimiterIfNecessary(String line, Delimiter delimiter) {
if (line.matches("DECLARE|DECLARE\\s.*") || line.matches("BEGIN|BEGIN\\s.*")) {
return PLSQL_DELIMITER;
}
if (StringUtils.countOccurrencesOf(statementStart, " ") < 4) {
statementStart ... |
diff --git a/drools-compiler/src/main/java/org/drools/compiler/DialectCompiletimeRegistry.java b/drools-compiler/src/main/java/org/drools/compiler/DialectCompiletimeRegistry.java
index 0215879ede..60b3d51930 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/DialectCompiletimeRegistry.java
+++ b/drools-comp... | true | true | public List<KnowledgeBuilderResult> addResults(List<KnowledgeBuilderResult> list) {
if ( list == null ) {
list = new ArrayList<KnowledgeBuilderResult>();
}
for (Dialect dialect : map.values()) {
List<KnowledgeBuilderResult> results = dialect.getResults();
... | public List<KnowledgeBuilderResult> addResults(List<KnowledgeBuilderResult> list) {
if ( list == null ) {
list = new ArrayList<KnowledgeBuilderResult>();
}
for (Dialect dialect : map.values()) {
List<KnowledgeBuilderResult> results = dialect.getResults();
... |
diff --git a/languish-api/src/main/java/languish/api/TwoArgumentNativeFunction.java b/languish-api/src/main/java/languish/api/TwoArgumentNativeFunction.java
index 515e56f..3c85fae 100644
--- a/languish-api/src/main/java/languish/api/TwoArgumentNativeFunction.java
+++ b/languish-api/src/main/java/languish/api/TwoArgumen... | true | true | public final PrimitiveTree apply(PrimitiveTree arg) {
Primitive first = arg.asList().get(0).asPrimitive();
Primitive second = arg.asList().get(0).asPrimitive();
return apply(first, second);
}
| public final PrimitiveTree apply(PrimitiveTree arg) {
Primitive first = arg.asList().get(0).asPrimitive();
Primitive second = arg.asList().get(1).asPrimitive();
return apply(first, second);
}
|
diff --git a/src/org/apache/xalan/xsltc/trax/Util.java b/src/org/apache/xalan/xsltc/trax/Util.java
index 5448f79f..62a16a42 100644
--- a/src/org/apache/xalan/xsltc/trax/Util.java
+++ b/src/org/apache/xalan/xsltc/trax/Util.java
@@ -1,182 +1,183 @@
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licen... | true | true | public static InputSource getInputSource(XSLTC xsltc, Source source)
throws TransformerConfigurationException
{
InputSource input = null;
String systemId = source.getSystemId();
try {
// Try to get InputSource from SAXSource input
if (source instanceof SAXSource) {
final SAXSource sa... | public static InputSource getInputSource(XSLTC xsltc, Source source)
throws TransformerConfigurationException
{
InputSource input = null;
String systemId = source.getSystemId();
try {
// Try to get InputSource from SAXSource input
if (source instanceof SAXSource) {
final SAXSource sa... |
diff --git a/src/java/org/jivesoftware/spark/ui/status/StatusBar.java b/src/java/org/jivesoftware/spark/ui/status/StatusBar.java
index e2f4e36f..d7c96589 100644
--- a/src/java/org/jivesoftware/spark/ui/status/StatusBar.java
+++ b/src/java/org/jivesoftware/spark/ui/status/StatusBar.java
@@ -1,555 +1,557 @@
/**
* $Rev... | false | true | public void showPopup(MouseEvent e) {
final JPopupMenu popup = new JPopupMenu();
List custom = CustomMessages.load();
if (custom == null) {
custom = new ArrayList();
}
// Build menu from StatusList
for(final StatusItem statusItem : statusList){
... | public void showPopup(MouseEvent e) {
final JPopupMenu popup = new JPopupMenu();
List custom = CustomMessages.load();
if (custom == null) {
custom = new ArrayList();
}
// Build menu from StatusList
for (final StatusItem statusItem : statusList) {
... |
diff --git a/rest/jersey-cache-client/src/main/java/com/smartitengineering/util/rest/client/jersey/cache/CacheableClientHandler.java b/rest/jersey-cache-client/src/main/java/com/smartitengineering/util/rest/client/jersey/cache/CacheableClientHandler.java
index 74da924..aa19a6d 100644
--- a/rest/jersey-cache-client/src/... | false | true | protected HTTPRequest processRequest(ClientRequest cr,
final HTTPMethod method) {
HTTPRequest request = new HTTPRequest(cr.getURI(), method);
final Map<String, Object> props = cr.getProperties();
/*
* Add authorization challenge
*/
if (props.containsKey... | protected HTTPRequest processRequest(ClientRequest cr,
final HTTPMethod method) {
HTTPRequest request = new HTTPRequest(cr.getURI(), method);
final Map<String, Object> props = cr.getProperties();
/*
* Add authorization challenge
*/
if (props.containsKey... |
diff --git a/src/dip/lab1/instructor/solution1/Startup.java b/src/dip/lab1/instructor/solution1/Startup.java
index 36658df..e7387a8 100644
--- a/src/dip/lab1/instructor/solution1/Startup.java
+++ b/src/dip/lab1/instructor/solution1/Startup.java
@@ -1,50 +1,50 @@
package dip.lab1.instructor.solution1;
import java.te... | true | true | public static void main(String[] args) {
/*
* We'll just use this class for testing our ccde.
* We'll provide input and get some output...
*/
//Low-level modules
HourlyEmployee emp1 = new HourlyEmployee(10.50, 2020);
SalariedEmployee emp2 = new SalariedEmp... | public static void main(String[] args) {
/*
* We'll just use this class for testing our ccde.
* We'll provide input and get some output...
*/
//Low-level modules
HourlyEmployee emp1 = new HourlyEmployee(10.50, 2020);
SalariedEmployee emp2 = new SalariedEmp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.