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/nodebox/client/FileUtils.java b/src/nodebox/client/FileUtils.java
index 5beb3d4a..141197fa 100644
--- a/src/nodebox/client/FileUtils.java
+++ b/src/nodebox/client/FileUtils.java
@@ -1,173 +1,184 @@
package nodebox.client;
import javax.swing.filechooser.FileFilter;
import java.awt.*;
import java.i... | true | true | private static File showFileDialog(Frame owner, String pathName, String extensions, String description, int fileDialogType) {
FileDialog fileDialog = new FileDialog(owner, pathName, fileDialogType);
if (pathName == null || pathName.trim().length() == 0) {
NodeBoxDocument document = NodeB... | private static File showFileDialog(Frame owner, String pathName, String extensions, String description, int fileDialogType) {
FileDialog fileDialog = new FileDialog(owner, pathName, fileDialogType);
if (pathName == null || pathName.trim().length() == 0) {
NodeBoxDocument document = NodeB... |
diff --git a/src/main/java/de/beimax/spacealert/render/XmlRenderer.java b/src/main/java/de/beimax/spacealert/render/XmlRenderer.java
index be5b965..08255b4 100644
--- a/src/main/java/de/beimax/spacealert/render/XmlRenderer.java
+++ b/src/main/java/de/beimax/spacealert/render/XmlRenderer.java
@@ -1,154 +1,155 @@
/**
... | false | true | private String getMissionXML(Mission mission) {
StringBuilder sb = new StringBuilder();
// some render statistics stuff
int phaseLength = 0;
int lastPhaseLength = 0;
int phase = 1;
// create XML beginning
sb.append("<Mission>\n");
// get values
for(Map.Entry<Integer,Event> entry : mission.getM... | private String getMissionXML(Mission mission) {
StringBuilder sb = new StringBuilder();
// some render statistics stuff
int phaseLength = 0;
int lastPhaseLength = 0;
int phase = 1;
// create XML beginning
sb.append("<Mission>\n");
// get values
for(Map.Entry<Integer,Event> entry : mission.getM... |
diff --git a/src/zz/utils/notification/NotificationManager.java b/src/zz/utils/notification/NotificationManager.java
index 3be07fc..e046410 100644
--- a/src/zz/utils/notification/NotificationManager.java
+++ b/src/zz/utils/notification/NotificationManager.java
@@ -1,133 +1,138 @@
/*
* Created by IntelliJ IDEA.
* U... | true | true | public void notify(Message aMessage)
{
check();
if (!isActive()) return;
for (Iterator theIterator = itsNotifiableReferences.iterator(); theIterator.hasNext();)
{
NotifiableReference theNotifiableReference = (NotifiableReference) theIterator.next();
Notifiable theNotifiable = theNotifiableReference.get... | public void notify(Message aMessage)
{
check();
if (!isActive()) return;
for (Iterator theIterator = itsNotifiableReferences.iterator(); theIterator.hasNext();)
{
NotifiableReference theNotifiableReference = (NotifiableReference) theIterator.next();
if (theNotifiableReference == null)
{
System.e... |
diff --git a/gwt-client/src/main/java/org/mule/galaxy/web/client/property/EditPropertyPanel.java b/gwt-client/src/main/java/org/mule/galaxy/web/client/property/EditPropertyPanel.java
index 01569eff..3922b825 100644
--- a/gwt-client/src/main/java/org/mule/galaxy/web/client/property/EditPropertyPanel.java
+++ b/gwt-clien... | true | true | protected FlowPanel createEditPanel() {
FlowPanel editPanel = new FlowPanel();
editPanel.setStyleName("add-property-inline");
Widget editForm = renderer.createEditForm();
editForm.setStyleName("add-property-inline");
editPanel.add(editForm);
FlowPanel button... | protected FlowPanel createEditPanel() {
FlowPanel editPanel = new FlowPanel();
editPanel.setStyleName("add-property-inline");
Widget editForm = renderer.createEditForm();
editPanel.add(editForm);
FlowPanel buttonPanel = new FlowPanel();
cancel = new Button("... |
diff --git a/ridiculousRPG/src/com/ridiculousRPG/movement/auto/MovePolygonAdapter.java b/ridiculousRPG/src/com/ridiculousRPG/movement/auto/MovePolygonAdapter.java
index be57018..3d41867 100644
--- a/ridiculousRPG/src/com/ridiculousRPG/movement/auto/MovePolygonAdapter.java
+++ b/ridiculousRPG/src/com/ridiculousRPG/movem... | true | true | public void tryMove(Movable event, float deltaTime) {
if (execScript != null) {
if (NODE_TEMPLATE == null)
NODE_TEMPLATE = Gdx.files.internal(
GameBase.$options().eventNodeTemplate).readString(
GameBase.$options().encoding);
try {
String script = GameBase.$scriptFactory()
.prepareScri... | public void tryMove(Movable event, float deltaTime) {
if (execScript != null) {
if (NODE_TEMPLATE == null)
NODE_TEMPLATE = Gdx.files.internal(
GameBase.$options().eventNodeTemplate).readString(
GameBase.$options().encoding);
try {
String script = GameBase.$scriptFactory()
.prepareScri... |
diff --git a/srcj/com/sun/electric/tool/io/input/DELIB.java b/srcj/com/sun/electric/tool/io/input/DELIB.java
index 6f6d5aab1..e5e42db2b 100644
--- a/srcj/com/sun/electric/tool/io/input/DELIB.java
+++ b/srcj/com/sun/electric/tool/io/input/DELIB.java
@@ -1,109 +1,109 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI ... | true | true | protected void readCell(String line) throws IOException {
if (lineReader != headerReader) {
// already reading a separate cell file
super.readCell(line);
return;
}
// get the file location; remove 'C' at start
String cellFile = line.substring(1, l... | protected void readCell(String line) throws IOException {
if (lineReader != headerReader) {
// already reading a separate cell file
super.readCell(line);
return;
}
// get the file location; remove 'C' at start
String cellFile = line.substring(1, l... |
diff --git a/fr.mvanbesien.calendars/src/main/java/fr/mvanbesien/calendars/calendars/DarianCalendar.java b/fr.mvanbesien.calendars/src/main/java/fr/mvanbesien/calendars/calendars/DarianCalendar.java
index 04637a8..af81dd9 100644
--- a/fr.mvanbesien.calendars/src/main/java/fr/mvanbesien/calendars/calendars/DarianCalenda... | true | true | public static DarianDate getDate(Calendar calendar) {
// Computation of Sols
double elapsedDays = new Double(calendar.getTimeInMillis()) / 86400000 + UNIX_EPOCH;
double elapsedSols = (elapsedDays - DARIAN_EPOCH) / DAY_RATIO;
// First decomposition, based on 500yr basis
int halfMilleniums = (int) (elapsedSo... | public static DarianDate getDate(Calendar calendar) {
// Computation of Sols
double elapsedDays = new Double(calendar.getTimeInMillis()) / 86400000 + UNIX_EPOCH;
double elapsedSols = (elapsedDays - DARIAN_EPOCH) / DAY_RATIO;
// First decomposition, based on 500yr basis
int halfMilleniums = (int) (elapsedSo... |
diff --git a/x10.compiler/src/x10cpp/debug/LineNumberMap.java b/x10.compiler/src/x10cpp/debug/LineNumberMap.java
index 96c16be98..1cfac68fa 100644
--- a/x10.compiler/src/x10cpp/debug/LineNumberMap.java
+++ b/x10.compiler/src/x10cpp/debug/LineNumberMap.java
@@ -1,1067 +1,1067 @@
/*
* This file is part of the X10 pro... | true | true | public static void exportForCPPDebugger(ClassifiedStream w, LineNumberMap m) {
String debugSectionAttr = "__attribute__((_X10_DEBUG_SECTION))";
String debugDataSectionAttr = "__attribute__((_X10_DEBUG_DATA_SECTION))";
int size = m.size();
int offset = 0;
int[] offsets = new int[size];
// ... | public static void exportForCPPDebugger(ClassifiedStream w, LineNumberMap m) {
String debugSectionAttr = "__attribute__((_X10_DEBUG_SECTION))";
String debugDataSectionAttr = "__attribute__((_X10_DEBUG_DATA_SECTION))";
int size = m.size();
int offset = 0;
int[] offsets = new int[size];
// ... |
diff --git a/src/org/red5/server/net/rtmp/RTMPConnection.java b/src/org/red5/server/net/rtmp/RTMPConnection.java
index df5189b6..ea7c8f19 100644
--- a/src/org/red5/server/net/rtmp/RTMPConnection.java
+++ b/src/org/red5/server/net/rtmp/RTMPConnection.java
@@ -1,345 +1,345 @@
package org.red5.server.net.rtmp;
import ... | false | true | public void close(){
IStreamService streamService = (IStreamService) getScopeService(scope, IStreamService.STREAM_SERVICE, StreamService.class);
if (streamService != null) {
synchronized (streams) {
for(int i=0; i<streams.length; i++){
IClientStream stream = streams[i];
if(stream != null) {
... | public void close(){
IStreamService streamService = (IStreamService) getScopeService(scope, IStreamService.STREAM_SERVICE, StreamService.class);
if (streamService != null) {
synchronized (streams) {
for(int i=0; i<streams.length; i++){
IClientStream stream = streams[i];
if(stream != null) {
... |
diff --git a/safe-online-sdk/src/main/java/net/link/safeonline/sdk/auth/servlet/AbstractLogoutServlet.java b/safe-online-sdk/src/main/java/net/link/safeonline/sdk/auth/servlet/AbstractLogoutServlet.java
index 2d96fc4ec..2373645a9 100644
--- a/safe-online-sdk/src/main/java/net/link/safeonline/sdk/auth/servlet/AbstractLo... | true | true | protected void invokePost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
logger.dbg( "POST: %s", request.getParameterMap().keySet() );
try {
// Check for a linkID logout response (response to the application's logout request... | protected void invokePost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
logger.dbg( "POST: %s", request.getParameterMap().keySet() );
try {
// Check for a linkID logout response (response to the application's logout request... |
diff --git a/src/org/hystudio/android/dosbox/DOSBoxSettings.java b/src/org/hystudio/android/dosbox/DOSBoxSettings.java
index 48a4856..834d1c2 100644
--- a/src/org/hystudio/android/dosbox/DOSBoxSettings.java
+++ b/src/org/hystudio/android/dosbox/DOSBoxSettings.java
@@ -1,274 +1,275 @@
/**
*
*/
package org.hystudi... | true | true | protected static void showConfigMainMenu(final MainActivity p) {
if (dialog != null) {
dialog.show();
return;
}
AlertDialog.Builder builder = new AlertDialog.Builder(p);
builder.setTitle(p.getResources().getString(R.string.dosbox_settings));
LayoutInflater inflater = (LayoutInflater)... | protected static void showConfigMainMenu(final MainActivity p) {
if (dialog != null) {
dialog.show();
return;
}
AlertDialog.Builder builder = new AlertDialog.Builder(p);
builder.setTitle(p.getResources().getString(R.string.dosbox_settings));
LayoutInflater inflater = (LayoutInflater)... |
diff --git a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/util/GetRestful.java b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/util/GetRestful.java
index 62974ffe8..500ed9968 100644
--- a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/util/GetRestful.java
+++ b/jaxrs/resteasy-jaxrs/src/main/java... | true | true | private static boolean hasJAXRSAnnotations(Class<?> c){
if (c.isAnnotationPresent(Path.class))
{
return true;
}
for (Method method : c.getDeclaredMethods())
{
if (method.isAnnotationPresent(Path.class))
{
return true;
}
for (Annot... | private static boolean hasJAXRSAnnotations(Class<?> c){
if (c.isAnnotationPresent(Path.class))
{
return true;
}
for (Method method : c.isInterface() ? c.getMethods() : c.getDeclaredMethods())
{
if (method.isAnnotationPresent(Path.class))
{
return t... |
diff --git a/src/java/org/concord/otrunk/navigation/OTNavigationHistoryService.java b/src/java/org/concord/otrunk/navigation/OTNavigationHistoryService.java
index bd31161..07134d6 100644
--- a/src/java/org/concord/otrunk/navigation/OTNavigationHistoryService.java
+++ b/src/java/org/concord/otrunk/navigation/OTNavigatio... | false | true | private OTObjectSet getUserNavigationHistory(OTUser user) throws Exception {
if (user == null) {
user = otrunk.getUsers().get(0);
}
if (navigationHistories.containsKey(user)) {
return navigationHistories.get(user);
}
OTObjectSet set = resources.getNavigationHistory();
if (set == null) {
set = o... | private OTObjectSet getUserNavigationHistory(OTUser user) throws Exception {
if (user == null) {
user = otrunk.getUsers().size() > 0 ? otrunk.getUsers().get(0) : null;
}
if (navigationHistories.containsKey(user)) {
return navigationHistories.get(user);
}
OTObjectSet defaultUserNavigationHistory = re... |
diff --git a/src/minecraft/org/getspout/spout/gui/ScreenUtil.java b/src/minecraft/org/getspout/spout/gui/ScreenUtil.java
index 2ffc5085..38994e22 100644
--- a/src/minecraft/org/getspout/spout/gui/ScreenUtil.java
+++ b/src/minecraft/org/getspout/spout/gui/ScreenUtil.java
@@ -1,118 +1,121 @@
package org.getspout.spout.g... | true | true | public static ScreenType getType(GuiScreen gui) {
ScreenType screen = ScreenType.UNKNOWN;
if (gui instanceof GuiChat) {
screen = ScreenType.CHAT_SCREEN;
}
else if (gui instanceof GuiSleepMP) {
screen = ScreenType.SLEEP_SCREEN;
}
else if (gui instanceof CustomScreen) {
screen = ScreenType.CUSTOM_SC... | public static ScreenType getType(GuiScreen gui) {
ScreenType screen = ScreenType.UNKNOWN;
if(gui == null) {
screen = ScreenType.GAME_SCREEN;
}
if (gui instanceof GuiChat) {
screen = ScreenType.CHAT_SCREEN;
}
else if (gui instanceof GuiSleepMP) {
screen = ScreenType.SLEEP_SCREEN;
}
else if (gui... |
diff --git a/src/driver/GUIDriver.java b/src/driver/GUIDriver.java
index 0852eef..b0dff77 100644
--- a/src/driver/GUIDriver.java
+++ b/src/driver/GUIDriver.java
@@ -1,375 +1,376 @@
package driver;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Grap... | false | true | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... |
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java
index 7d1614163..1222e77d8 100644
--- a/src/com/android/settings/wifi/WifiSettings.java
+++ b/src/com/android/settings/wifi/WifiSettings.java
@@ -1,743 +1,745 @@
/*
* Copyright (C) 2010 The Android Open Sou... | true | true | public void onActivityCreated(Bundle savedInstanceState) {
// We don't call super.onActivityCreated() here, since it assumes we already set up
// Preference (probably in onCreate()), while WifiSettings exceptionally set it up in
// this method.
mWifiManager = (WifiManager) getSystem... | public void onActivityCreated(Bundle savedInstanceState) {
// We don't call super.onActivityCreated() here, since it assumes we already set up
// Preference (probably in onCreate()), while WifiSettings exceptionally set it up in
// this method.
mWifiManager = (WifiManager) getSystem... |
diff --git a/src/nu/validator/htmlparser/test/TreePrinter.java b/src/nu/validator/htmlparser/test/TreePrinter.java
index 8d095cb..d970621 100644
--- a/src/nu/validator/htmlparser/test/TreePrinter.java
+++ b/src/nu/validator/htmlparser/test/TreePrinter.java
@@ -1,47 +1,48 @@
/*
* Copyright (c) 2007 Henri Sivonen
*
... | true | true | public static void main(String[] args) throws SAXException, IOException {
TreeDumpContentHandler treeDumpContentHandler = new TreeDumpContentHandler(new OutputStreamWriter(System.out, "UTF-8"));
HtmlParser htmlParser = new HtmlParser();
htmlParser.setContentHandler(treeDumpContentHandler);
... | public static void main(String[] args) throws SAXException, IOException {
TreeDumpContentHandler treeDumpContentHandler = new TreeDumpContentHandler(new OutputStreamWriter(System.out, "UTF-8"));
HtmlParser htmlParser = new HtmlParser();
htmlParser.setContentHandler(treeDumpContentHandler);
... |
diff --git a/projects/connector-manager/source/java/com/google/enterprise/connector/pusher/GsaFeedConnection.java b/projects/connector-manager/source/java/com/google/enterprise/connector/pusher/GsaFeedConnection.java
index 74657150..66545118 100644
--- a/projects/connector-manager/source/java/com/google/enterprise/conn... | true | true | public String sendData(String data) throws IOException {
if (url == null) {
url = getFeedUrl();
}
URLConnection uc = url.openConnection();
uc.setDoInput(true);
uc.setDoOutput(true);
uc.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
OutputStreamWriter osw = n... | public String sendData(String data) throws IOException {
if (url == null) {
url = getFeedUrl();
}
URLConnection uc = url.openConnection();
uc.setDoInput(true);
uc.setDoOutput(true);
uc.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
OutputStreamWriter osw = n... |
diff --git a/rest/src/test/java/org/usergrid/rest/management/organizations/OrganizationsResourceTest.java b/rest/src/test/java/org/usergrid/rest/management/organizations/OrganizationsResourceTest.java
index 2e0e9894..c567271b 100644
--- a/rest/src/test/java/org/usergrid/rest/management/organizations/OrganizationsResour... | true | true | public void createOrgAndOwner() throws Exception {
properties.setProperty(PROPERTIES_SYSADMIN_APPROVES_ADMIN_USERS,
"false");
properties.setProperty(PROPERTIES_SYSADMIN_APPROVES_ORGANIZATIONS,
"false");
properties.setProperty(PROPERTIES_ADMIN_USERS_REQUIRE_CONFIRMATION,
... | public void createOrgAndOwner() throws Exception {
properties.setProperty(PROPERTIES_SYSADMIN_APPROVES_ADMIN_USERS,
"false");
properties.setProperty(PROPERTIES_SYSADMIN_APPROVES_ORGANIZATIONS,
"false");
properties.setProperty(PROPERTIES_ADMIN_USERS_REQUIRE_CONFIRMATION,
... |
diff --git a/src/com/jgaap/eventCullers/ExtremeCuller.java b/src/com/jgaap/eventCullers/ExtremeCuller.java
index e1f4225..14b3ace 100644
--- a/src/com/jgaap/eventCullers/ExtremeCuller.java
+++ b/src/com/jgaap/eventCullers/ExtremeCuller.java
@@ -1,97 +1,97 @@
/*
* JGAAP -- a graphical program for stylometric authorsh... | true | true | public List<EventSet> cull(List<EventSet> eventSets) {
List<Set<Event>> eventSetsUnique = new ArrayList<Set<Event>>();
Set<Event> uniqueEvents = new HashSet<Event>();
Set<Event> extremeEvents = new HashSet<Event>();
for(EventSet eventSet : eventSets){
Set<Event> events = new HashSet<Event>();
for(Event e... | public List<EventSet> cull(List<EventSet> eventSets) {
List<Set<Event>> eventSetsUnique = new ArrayList<Set<Event>>();
Set<Event> uniqueEvents = new HashSet<Event>();
Set<Event> extremeEvents = new HashSet<Event>();
for(EventSet eventSet : eventSets){
Set<Event> events = new HashSet<Event>();
for(Event e... |
diff --git a/src/main/java/de/javadesign/cdi/extension/spring/SpringBeanVetoExtension.java b/src/main/java/de/javadesign/cdi/extension/spring/SpringBeanVetoExtension.java
index b5ef05b..ce0deff 100644
--- a/src/main/java/de/javadesign/cdi/extension/spring/SpringBeanVetoExtension.java
+++ b/src/main/java/de/javadesign/c... | true | true | private boolean beanForClassExists(Class<?> clazz) {
// Lookup
if (0 != beanFactory.getBeanNamesForType(clazz).length) {
return true;
}
// Workaround if interfaces in combination with component scanning is used.
// Spring framework automatically detects interface ... | private boolean beanForClassExists(Class<?> clazz) {
// Lookup
if (0 != beanFactory.getBeanNamesForType(clazz).length) {
return true;
}
// Workaround if interfaces in combination with component scanning is used.
// Spring framework automatically detects interface ... |
diff --git a/projects/TropixSshServer/src/impl/edu/umn/msi/tropix/ssh/SshFileFactoryImpl.java b/projects/TropixSshServer/src/impl/edu/umn/msi/tropix/ssh/SshFileFactoryImpl.java
index 2c1b44a0..74db44cb 100644
--- a/projects/TropixSshServer/src/impl/edu/umn/msi/tropix/ssh/SshFileFactoryImpl.java
+++ b/projects/TropixSsh... | true | true | private <T extends TropixObject> void buildSshFiles(final T[] objects, final ImmutableList.Builder<SshFile> children) {
final Map<String, Boolean> uniqueName = Maps.newHashMap();
for(TropixObject object : objects) {
final String objectName = object.getName().toUpperCase();
if(!uniqueName... | private <T extends TropixObject> void buildSshFiles(final T[] objects, final ImmutableList.Builder<SshFile> children) {
final Map<String, Boolean> uniqueName = Maps.newHashMap();
for(TropixObject object : objects) {
final String objectName = object.getName().toUpperCase();
if(!uniqueName... |
diff --git a/src/test/java/org/wyona/security/test/LDAPIdentityManagerImplTest.java b/src/test/java/org/wyona/security/test/LDAPIdentityManagerImplTest.java
index 68e1ea3..0037db2 100644
--- a/src/test/java/org/wyona/security/test/LDAPIdentityManagerImplTest.java
+++ b/src/test/java/org/wyona/security/test/LDAPIdentity... | true | true | public void testGetAllUsersFromLDAP() throws Exception {
User[] users = identityManager.getUserManager().getUsers(true);
assertNull(users);
/*
log.warn("DEBUG: Number of users: " + users.length);
for (int i = 0; i < users.length; i++) {
log.warn("DEBUG: User: " + users[i]... | public void testGetAllUsersFromLDAP() throws Exception {
User[] users = identityManager.getUserManager().getUsers(true);
assertNotNull(users);
//assertNull(users);
/*
log.warn("DEBUG: Number of users: " + users.length);
for (int i = 0; i < users.length; i++) {
log... |
diff --git a/trunk/dig.java b/trunk/dig.java
index 3d74a16..c301655 100644
--- a/trunk/dig.java
+++ b/trunk/dig.java
@@ -1,191 +1,191 @@
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)
// Portions Copyright (c) 1999 Network Associates, Inc.
import java.io.*;
import java.util.*;
import org.xbill.DNS.*... | true | true | public static void
main(String argv[]) throws IOException {
String server;
int arg;
Message query, response;
Record rec;
Record opt = null;
Resolver res = null;
boolean printQuery = false;
if (argv.length < 1) {
usage();
}
try {
arg = 0;
if (argv[arg].startsWith("@")) {
server = argv[arg++].substri... | public static void
main(String argv[]) throws IOException {
String server;
int arg;
Message query, response;
Record rec;
Record opt = null;
Resolver res = null;
boolean printQuery = false;
if (argv.length < 1) {
usage();
}
try {
arg = 0;
if (argv[arg].startsWith("@")) {
server = argv[arg++].substri... |
diff --git a/common/logisticspipes/transport/CraftingPipeMk3Transport.java b/common/logisticspipes/transport/CraftingPipeMk3Transport.java
index 4cfea533..0316f346 100644
--- a/common/logisticspipes/transport/CraftingPipeMk3Transport.java
+++ b/common/logisticspipes/transport/CraftingPipeMk3Transport.java
@@ -1,67 +1,6... | true | true | private void handleTileReached(EntityData data, TileEntity tile) {
if (tile instanceof IPipeEntry)
((IPipeEntry) tile).entityEntering(data.item, data.output);
else if (tile instanceof TileGenericPipe && ((TileGenericPipe) tile).pipe.transport instanceof PipeTransportItems) {
TileGenericPipe pipe = (TileGener... | private void handleTileReached(EntityData data, TileEntity tile) {
if (tile instanceof IPipeEntry)
((IPipeEntry) tile).entityEntering(data.item, data.output);
else if (tile instanceof TileGenericPipe && ((TileGenericPipe) tile).pipe.transport instanceof PipeTransportItems) {
TileGenericPipe pipe = (TileGener... |
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/rollback/FormerState.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/rollback/FormerState.java
index f0ad33f4d..e39cfdde9 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equin... | true | true | public FormerStateProfile(IInstallableUnit profileIU, IProfile profile, ProvisioningContext context) throws ProvisionException {
String profileTypeProperty = profileIU.getProperty(IInstallableUnit.PROP_TYPE_PROFILE);
if (profileTypeProperty == null || !Boolean.valueOf(profileTypeProperty).booleanValue())
t... | public FormerStateProfile(IInstallableUnit profileIU, IProfile profile, ProvisioningContext context) throws ProvisionException {
String profileTypeProperty = profileIU.getProperty(IInstallableUnit.PROP_TYPE_PROFILE);
if (profileTypeProperty == null || !Boolean.valueOf(profileTypeProperty).booleanValue())
t... |
diff --git a/core/components/descriptors/src/main/java/org/mobicents/slee/container/component/validator/SbbComponentValidator.java b/core/components/descriptors/src/main/java/org/mobicents/slee/container/component/validator/SbbComponentValidator.java
index 4ff37eba5..b1f8c8730 100644
--- a/core/components/descriptors/s... | true | true | boolean validateCmpFileds(Map<String, Method> sbbAbstractClassMethods, Map<String, Method> sbbAbstractMethodsFromSuperClasses) {
boolean passed = true;
String errorBuffer = new String("");
List<MSbbCMPField> cmpFields = this.component.getDescriptor().getSbbClasses().getSbbAbstractClass().getCmpFields();
for... | boolean validateCmpFileds(Map<String, Method> sbbAbstractClassMethods, Map<String, Method> sbbAbstractMethodsFromSuperClasses) {
boolean passed = true;
String errorBuffer = new String("");
List<MSbbCMPField> cmpFields = this.component.getDescriptor().getSbbClasses().getSbbAbstractClass().getCmpFields();
for... |
diff --git a/api/src/main/java/org/jboss/shrinkwrap/api/ReflectionUtil.java b/api/src/main/java/org/jboss/shrinkwrap/api/ReflectionUtil.java
index a4f6b75d..bd3a28c7 100644
--- a/api/src/main/java/org/jboss/shrinkwrap/api/ReflectionUtil.java
+++ b/api/src/main/java/org/jboss/shrinkwrap/api/ReflectionUtil.java
@@ -1,103... | true | true | public static Object createInstance(String className, Class<?>[] argumentTypes, Object[] arguments)
{
if(className == null)
{
throw new IllegalArgumentException("ClassName must be specified");
}
if(argumentTypes == null)
{
throw new IllegalAnnotationException("Ar... | public static Object createInstance(String className, Class<?>[] argumentTypes, Object[] arguments)
{
if(className == null)
{
throw new IllegalArgumentException("ClassName must be specified");
}
if(argumentTypes == null)
{
throw new IllegalAnnotationException("Ar... |
diff --git a/src/main/java/org/jenkins/plugins/cloudbees/MavenArtifactFilePathSaver.java b/src/main/java/org/jenkins/plugins/cloudbees/MavenArtifactFilePathSaver.java
index db19b2b..08b9b48 100644
--- a/src/main/java/org/jenkins/plugins/cloudbees/MavenArtifactFilePathSaver.java
+++ b/src/main/java/org/jenkins/plugins/c... | false | true | public boolean postBuild(MavenBuildProxy build, MavenProject pom, final BuildListener listener) throws InterruptedException, IOException {
listener.getLogger().println("post build " + (pom.getArtifact() != null) + ":" + (pom.getAttachedArtifacts() != null));
if (pom.getArtifact() != null || pom.get... | public boolean postBuild(MavenBuildProxy build, MavenProject pom, final BuildListener listener) throws InterruptedException, IOException {
listener.getLogger().println("post build " + (pom.getArtifact() != null) + ":" + (pom.getAttachedArtifacts() != null));
if (pom != null && pom.getArtifact() != ... |
diff --git a/src/com/android/phone/DataUsageListener.java b/src/com/android/phone/DataUsageListener.java
index 6122a8ec..a72c088a 100644
--- a/src/com/android/phone/DataUsageListener.java
+++ b/src/com/android/phone/DataUsageListener.java
@@ -1,231 +1,233 @@
/*
* Copyright (C) 2010 The Android Open Source Project
... | true | true | private void updateUI() {
if (mPolicyThreshold == 0)
return;
int dataUsedPercent = (int) ((mDataUsed * 100) / mPolicyThreshold);
long cycleTime = mEnd.getTimeInMillis() - mStart.getTimeInMillis();
long currentTime = GregorianCalendar.getInstance().getTimeInMillis()
... | private void updateUI() {
if (mPolicyThreshold == 0)
return;
int dataUsedPercent = (int) ((mDataUsed * 100) / mPolicyThreshold);
long cycleTime = mEnd.getTimeInMillis() - mStart.getTimeInMillis();
long currentTime = GregorianCalendar.getInstance().getTimeInMillis()
... |
diff --git a/src/com/ModDamage/Routines/Nested/Knockback.java b/src/com/ModDamage/Routines/Nested/Knockback.java
index 8c57d3a..6da29cd 100644
--- a/src/com/ModDamage/Routines/Nested/Knockback.java
+++ b/src/com/ModDamage/Routines/Nested/Knockback.java
@@ -1,101 +1,101 @@
package com.ModDamage.Routines.Nested;
impo... | true | true | public Knockback getNew(Matcher matcher, Object nestedContent, EventInfo info)
{
IDataProvider<Entity> entityDP = DataProvider.parse(info, Entity.class, matcher.group(1));
if (entityDP == null) return null;
boolean explicitFrom = matcher.group(2) != null;
String otherName;
if (explicitFrom)
o... | public Knockback getNew(Matcher matcher, Object nestedContent, EventInfo info)
{
IDataProvider<Entity> entityDP = DataProvider.parse(info, Entity.class, matcher.group(1));
if (entityDP == null) return null;
boolean explicitFrom = matcher.group(2) != null;
String otherName;
if (explicitFrom)
o... |
diff --git a/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java b/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java
index 625990e3a..fedc151be 100644
--- a/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java
+++ b/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java
@@ -1,176 +1,177 @@
/* *******************... | true | true | public void testMainClassNodeInfo() throws IOException {
assertTrue("root exists", Ajde.getDefault().getStructureModelManager().getStructureModel().getRoot() != null);
File testFile = createFile("figures-coverage/figures/Main.java");
StructureNode node = Ajde.getDefault().getStructureModelManager().getStructure... | public void testMainClassNodeInfo() throws IOException {
StructureModel model = Ajde.getDefault().getStructureModelManager().getStructureModel();
assertTrue("model exists", model != null);
assertTrue("root exists", model.getRoot() != null);
File testFile = createFile("figures-coverage/figures/Main.... |
diff --git a/spring-xd-dirt/src/test/java/org/springframework/xd/dirt/server/AdminMainRedisStoreIntegrationTests.java b/spring-xd-dirt/src/test/java/org/springframework/xd/dirt/server/AdminMainRedisStoreIntegrationTests.java
index 3f37396c8..243336028 100644
--- a/spring-xd-dirt/src/test/java/org/springframework/xd/dir... | true | true | public void redisStoreWithLocalTransportConfigurationLoadsSuccessfully() throws Exception {
AdminOptions opts = AdminMain.parseOptions(new String[] {"--httpPort", "0", "--transport", "local", "--store", "redis", "--disableJmx", "true"});
StreamServer s = AdminMain.launchStreamServer(opts);
super.shutdown(s);
}
| public void redisStoreWithLocalTransportConfigurationLoadsSuccessfully() throws Exception {
AdminOptions opts = AdminMain.parseOptions(new String[] {"--httpPort", "0", "--transport", "local", "--store", "redis", "--disableJmx", "true", "--analytics", "memory"});
StreamServer s = AdminMain.launchStreamServer(opts);... |
diff --git a/wikapidia-core/src/main/java/org/wikapidia/core/dao/sql/RedirectSqlDao.java b/wikapidia-core/src/main/java/org/wikapidia/core/dao/sql/RedirectSqlDao.java
index 9df09d5e..1796f11e 100644
--- a/wikapidia-core/src/main/java/org/wikapidia/core/dao/sql/RedirectSqlDao.java
+++ b/wikapidia-core/src/main/java/org/... | true | true | public Iterable<Redirect> get(DaoFilter daoFilter) throws DaoException {
Connection conn = null;
try {
conn = ds.getConnection();
DSLContext context = DSL.using(conn, dialect);
Collection<Condition> conditions = new ArrayList<Condition>();
if (daoFilte... | public Iterable<Redirect> get(DaoFilter daoFilter) throws DaoException {
Connection conn = null;
try {
conn = ds.getConnection();
DSLContext context = DSL.using(conn, dialect);
Collection<Condition> conditions = new ArrayList<Condition>();
if (daoFilte... |
diff --git a/bundles/org.eclipse.equinox.p2.installer/src/org/eclipse/equinox/internal/p2/installer/InstallApplication.java b/bundles/org.eclipse.equinox.p2.installer/src/org/eclipse/equinox/internal/p2/installer/InstallApplication.java
index 5b209ce0d..9b85e239f 100644
--- a/bundles/org.eclipse.equinox.p2.installer/sr... | false | true | public Object start(IApplicationContext appContext) {
try {
appContext.applicationRunning();
advisor = createInstallContext();
//fetch description of what to install
InstallDescription description = null;
try {
description = computeInstallDescription();
startRequiredBundles(description);
i... | public Object start(IApplicationContext appContext) {
try {
appContext.applicationRunning();
initializeProxySupport();
advisor = createInstallContext();
//fetch description of what to install
InstallDescription description = null;
try {
description = computeInstallDescription();
startRequir... |
diff --git a/src/org/mvnsearch/snippet/plugin/actions/InsertSnippetFragmentAction.java b/src/org/mvnsearch/snippet/plugin/actions/InsertSnippetFragmentAction.java
index 74f58f9..eccde0b 100644
--- a/src/org/mvnsearch/snippet/plugin/actions/InsertSnippetFragmentAction.java
+++ b/src/org/mvnsearch/snippet/plugin/actions/... | true | true | public void executeWriteAction(final Editor editor, DataContext dataContext) {
// Get position before caret
int caretOffset = editor.getCaretModel().getOffset();
int documentOffset = caretOffset - 1;
if (documentOffset > 0) {
StringBuilder prefixBu... | public void executeWriteAction(final Editor editor, DataContext dataContext) {
// Get position before caret
int caretOffset = editor.getCaretModel().getOffset();
int documentOffset = caretOffset - 1;
if (documentOffset > 0) {
StringBuilder prefixBu... |
diff --git a/src/info/guardianproject/otr/app/im/service/ChatSessionAdapter.java b/src/info/guardianproject/otr/app/im/service/ChatSessionAdapter.java
index 8c2f75a2..4d24c76c 100644
--- a/src/info/guardianproject/otr/app/im/service/ChatSessionAdapter.java
+++ b/src/info/guardianproject/otr/app/im/service/ChatSessionAd... | true | true | public boolean onIncomingMessage(ChatSession ses, final Message msg) {
String body = msg.getBody();
String username = msg.getFrom().getAddress();
String bareUsername = msg.getFrom().getBareAddress();
String nickname = getNickName(username);
long time ... | public boolean onIncomingMessage(ChatSession ses, final Message msg) {
String body = msg.getBody();
String username = msg.getFrom().getAddress();
String bareUsername = msg.getFrom().getBareAddress();
String nickname = getNickName(username);
long time ... |
diff --git a/pingpongnet/src/test/java/ping/pong/net/connection/io/WriteByteArrayDataWriterTest.java b/pingpongnet/src/test/java/ping/pong/net/connection/io/WriteByteArrayDataWriterTest.java
index 5c3d7f7..dcab355 100644
--- a/pingpongnet/src/test/java/ping/pong/net/connection/io/WriteByteArrayDataWriterTest.java
+++ b... | false | true | public void testWriteByteArrayDataWriter() throws InterruptedException
{
Runnable serverSocket = new Runnable()
{
@Override
public void run()
{
try
{
ServerSocket serverSocket = ServerSocketFactory.getDefault... | public void testWriteByteArrayDataWriter() throws InterruptedException
{
Runnable serverSocket = new Runnable()
{
@Override
public void run()
{
try
{
ServerSocket serverSocket = ServerSocketFactory.getDefault... |
diff --git a/api/src/test/java/org/openmrs/module/emr/consult/ConsultServiceTest.java b/api/src/test/java/org/openmrs/module/emr/consult/ConsultServiceTest.java
index ef6889e4..187c1f92 100644
--- a/api/src/test/java/org/openmrs/module/emr/consult/ConsultServiceTest.java
+++ b/api/src/test/java/org/openmrs/module/emr/c... | false | true | public void setUp() throws Exception {
currentUser = new User();
mockStatic(Context.class);
PowerMockito.when(Context.getAuthenticatedUser()).thenReturn(currentUser);
patient = new Patient(123);
diabetes = buildConcept(1, "Diabetes");
malaria = buildConcept(2, "Malar... | public void setUp() throws Exception {
currentUser = new User();
mockStatic(Context.class);
PowerMockito.when(Context.getAuthenticatedUser()).thenReturn(currentUser);
patient = new Patient(123);
diabetes = buildConcept(1, "Diabetes");
malaria = buildConcept(2, "Malar... |
diff --git a/src/ru/phsystems/irisx/web/AudioHandler.java b/src/ru/phsystems/irisx/web/AudioHandler.java
index 3ae040d..568a458 100644
--- a/src/ru/phsystems/irisx/web/AudioHandler.java
+++ b/src/ru/phsystems/irisx/web/AudioHandler.java
@@ -1,74 +1,75 @@
package ru.phsystems.irisx.web;
/**
* Created with IntelliJ... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// правильный boundary - самое главное
response.setContentType("audio/wav");
response.setStatus(HttpServletResponse.SC_OK);
response.setHeader("Cache-Control", "no-c... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// правильный boundary - самое главное
response.setContentType("audio/wav");
response.setStatus(HttpServletResponse.SC_OK);
response.setHeader("Cache-Control", "no-c... |
diff --git a/org/freedesktop/dbus/test/profile.java b/org/freedesktop/dbus/test/profile.java
index cab5417..ef8b031 100644
--- a/org/freedesktop/dbus/test/profile.java
+++ b/org/freedesktop/dbus/test/profile.java
@@ -1,333 +1,340 @@
/*
D-Bus Java Implementation
Copyright (c) 2005-2006 Matthew Johnson
Thi... | false | true | public static void main(String[] args) throws DBusException
{
if (0==args.length) {
System.out.println("You must specify a profile type.");
System.out.println("Syntax: profile <pings|arrays|introspect|maps|bytes|lists|structs|signals>");
System.exit(1);
}
DBusConnectio... | public static void main(String[] args) throws DBusException
{
if (0==args.length) {
System.out.println("You must specify a profile type.");
System.out.println("Syntax: profile <pings|arrays|introspect|maps|bytes|lists|structs|signals>");
System.exit(1);
}
DBusConnectio... |
diff --git a/fcrepo-server/src/main/java/org/fcrepo/server/security/ContextAttributeFinderModule.java b/fcrepo-server/src/main/java/org/fcrepo/server/security/ContextAttributeFinderModule.java
index c0333bf1..d15e7ab7 100755
--- a/fcrepo-server/src/main/java/org/fcrepo/server/security/ContextAttributeFinderModule.java
... | false | true | protected final Object getAttributeLocally(int designatorType,
String attributeId,
URI resourceCategory,
EvaluationCtx ctx) {
logger.debug("getAttributeLocally context... | protected final Object getAttributeLocally(int designatorType,
String attributeId,
URI resourceCategory,
EvaluationCtx ctx) {
logger.debug("getAttributeLocally context... |
diff --git a/tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests/ServerTestsActivator.java b/tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests/ServerTestsActivator.java
index ce1cdb7f..4d73c10f 100644
--- a/tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests... | false | true | public static String getServerLocation() {
if (!initialized) {
try {
initialize();
//make sure the http registry is started
ensureBundleStarted(EQUINOX_HTTP_JETTY);
ensureBundleStarted(EQUINOX_HTTP_REGISTRY);
//get the webide bundle started via lazy activation.
org.eclipse.orion.server.aut... | public static String getServerLocation() {
if (!initialized) {
try {
//make sure the http registry is started
ensureBundleStarted(EQUINOX_HTTP_JETTY);
ensureBundleStarted(EQUINOX_HTTP_REGISTRY);
//get the webide bundle started via lazy activation.
org.eclipse.orion.server.authentication.Activa... |
diff --git a/src/org/geworkbench/engine/config/UILauncher.java b/src/org/geworkbench/engine/config/UILauncher.java
index 312aefff..ce0cbf81 100755
--- a/src/org/geworkbench/engine/config/UILauncher.java
+++ b/src/org/geworkbench/engine/config/UILauncher.java
@@ -1,222 +1,223 @@
package org.geworkbench.engine.config;
... | true | true | public static void main(String[] args) {
String configFileArg = null;
String lookAndFeelArg = null;
for (int i = 0; i < args.length; i++) {
if (LOOK_AND_FEEL_FLAG.equals(args[i])) {
if (args.length == (i + 1)) {
exitOnErrorMessage("No look & f... | public static void main(String[] args) {
String configFileArg = null;
String lookAndFeelArg = null;
for (int i = 0; i < args.length; i++) {
if (LOOK_AND_FEEL_FLAG.equals(args[i])) {
if (args.length == (i + 1)) {
exitOnErrorMessage("No look & f... |
diff --git a/src/org/apache/xpath/functions/Function3Args.java b/src/org/apache/xpath/functions/Function3Args.java
index 062412e4..4903f91d 100644
--- a/src/org/apache/xpath/functions/Function3Args.java
+++ b/src/org/apache/xpath/functions/Function3Args.java
@@ -1,32 +1,32 @@
package org.apache.xpath.functions;
imp... | true | true | public void setArg(Expression arg, int argNum)
throws WrongNumberArgsException
{
if(argNum < 2)
super.setArg(arg, 1);
else if(2 == argNum)
m_arg2 = arg;
else
throw new WrongNumberArgsException("3");
}
| public void setArg(Expression arg, int argNum)
throws WrongNumberArgsException
{
if(argNum < 2)
super.setArg(arg, argNum);
else if(2 == argNum)
m_arg2 = arg;
else
throw new WrongNumberArgsException("3");
}
|
diff --git a/test/com/diycomputerscience/slides/service/SlideServiceTest.java b/test/com/diycomputerscience/slides/service/SlideServiceTest.java
index 938f0bd..9554139 100644
--- a/test/com/diycomputerscience/slides/service/SlideServiceTest.java
+++ b/test/com/diycomputerscience/slides/service/SlideServiceTest.java
@@ ... | true | true | protected void setUp() throws Exception {
super.setUp();
final Properties p = new Properties();
p.put("myds", "new://Resource?type=DataSource");
p.put("myds.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("myds.JdbcUrl", "jdbc:hsqldb:mem:slidedb");
this.ejbContainer = EJBContaine... | protected void setUp() throws Exception {
super.setUp();
final Properties p = new Properties();
p.put("myds", "new://Resource?type=DataSource");
p.put("myds.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("myds.JdbcUrl", "jdbc:hsqldb:mem:slidedb");
this.ejbContainer = EJBContaine... |
diff --git a/src/graindcafe/tribu/TribuSpawner.java b/src/graindcafe/tribu/TribuSpawner.java
index 7a87672..f80b04a 100644
--- a/src/graindcafe/tribu/TribuSpawner.java
+++ b/src/graindcafe/tribu/TribuSpawner.java
@@ -1,366 +1,366 @@
/*******************************************************************************
* C... | true | true | public boolean spawnZombie() {
if (alreadySpawned < totalToSpawn && !finished) {
Location pos = plugin.getLevel().getRandomZombieSpawn();
if (pos != null) {
if (!pos.getWorld().isChunkLoaded(pos.getWorld().getChunkAt(pos))) {
checkZombies();
pos = getValidSpawn();
}
if (pos != null) {
... | public boolean spawnZombie() {
if (alreadySpawned < totalToSpawn && !finished) {
Location pos = plugin.getLevel().getRandomZombieSpawn();
if (pos != null) {
if (!pos.getWorld().isChunkLoaded(pos.getWorld().getChunkAt(pos))) {
checkZombies();
pos = getValidSpawn();
}
if (pos != null) {
... |
diff --git a/oaaas-authorization-server-war/src/test/java/it/VerifyResourceTestIT.java b/oaaas-authorization-server-war/src/test/java/it/VerifyResourceTestIT.java
index 7b31fe5..ce5ac38 100644
--- a/oaaas-authorization-server-war/src/test/java/it/VerifyResourceTestIT.java
+++ b/oaaas-authorization-server-war/src/test/j... | false | true | public void happy() {
final ClientResponse response = new Client()
.resource(baseUrlWith("/v1/tokeninfo"))
.queryParam("access_token", "boobaa")
.header("Authorization", authorizationBasic("authorization-server-admin", "cafebabe-cafe-babe-cafe-babecafebabe"))
.get(ClientResponse.cl... | public void happy() {
final ClientResponse response = new Client()
.resource(baseUrlWith("/v1/tokeninfo"))
.queryParam("access_token", "00-11-22-33")
.header("Authorization", authorizationBasic("it-test-resource-server", "somesecret"))
.get(ClientResponse.class);
assertEquals(2... |
diff --git a/src/main/java/net/robbytu/banjoserver/bungee/auth/LoginAlert.java b/src/main/java/net/robbytu/banjoserver/bungee/auth/LoginAlert.java
index 4e461d2..c915df0 100644
--- a/src/main/java/net/robbytu/banjoserver/bungee/auth/LoginAlert.java
+++ b/src/main/java/net/robbytu/banjoserver/bungee/auth/LoginAlert.java... | true | true | public static void handle(final LoginEvent event) {
Main.instance.getProxy().getScheduler().schedule(Main.instance, new Runnable() {
@Override
public void run() {
final ProxiedPlayer target = Main.instance.getProxy().getPlayer(event.getConnection().getName());
... | public static void handle(final LoginEvent event) {
Main.instance.getProxy().getScheduler().schedule(Main.instance, new Runnable() {
@Override
public void run() {
final ProxiedPlayer target = Main.instance.getProxy().getPlayer(event.getConnection().getName());
... |
diff --git a/src/main/java/org/gwaspi/dao/sql/OperationServiceImpl.java b/src/main/java/org/gwaspi/dao/sql/OperationServiceImpl.java
index 82a2f0bb..a0c679b5 100644
--- a/src/main/java/org/gwaspi/dao/sql/OperationServiceImpl.java
+++ b/src/main/java/org/gwaspi/dao/sql/OperationServiceImpl.java
@@ -1,445 +1,446 @@
pack... | true | true | private OperationMetadata getOperationMetadata(Map<String, Object> dbProperties) throws IOException {
int opId = Integer.MIN_VALUE;
int parentMatrixId = Integer.MIN_VALUE;
int parentOperationId = Integer.MIN_VALUE;
String opName = "";
String netCDF_name = "";
String description = "";
OPType gtCode = nul... | private OperationMetadata getOperationMetadata(Map<String, Object> dbProperties) throws IOException {
int opId = Integer.MIN_VALUE;
int parentMatrixId = Integer.MIN_VALUE;
int parentOperationId = Integer.MIN_VALUE;
String opName = "";
String netCDF_name = "";
String description = "";
OPType gtCode = nul... |
diff --git a/src/com/csipsimple/service/MediaManager.java b/src/com/csipsimple/service/MediaManager.java
index dc70781f..0916a577 100644
--- a/src/com/csipsimple/service/MediaManager.java
+++ b/src/com/csipsimple/service/MediaManager.java
@@ -1,631 +1,634 @@
/**
* Copyright (C) 2010-2012 Regis Montoya (aka r3gis - w... | true | true | private synchronized void actualSetAudioInCall() {
//Ensure not already set
if(isSetAudioMode) {
return;
}
stopRing();
saveAudioState();
//Set the rest of the phone in a better state to not interferate with current call
audioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManage... | private synchronized void actualSetAudioInCall() {
//Ensure not already set
if(isSetAudioMode) {
return;
}
stopRing();
saveAudioState();
// Set the rest of the phone in a better state to not interferate with current call
// Do that only if we were not already in silent mode
if(audioManager.get... |
diff --git a/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java b/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java
index 940bff8..5ea09cf 100644
--- a/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java
+++ b/RealSleep/src/com/github/limdingwen/RealSleep/SleepEffect.java
@@ -1,51 +1... | true | true | public static boolean refreshEffects() {
// To optimize performance, we only check effects when it changes.
Player[] players = Bukkit.getServer().getOnlinePlayers();
Map<String, Float> data = new HashMap<String, Float>();
Logger log = Logger.getLogger("RealSleepEffect");
try {
data = (Map) SLAPI.loa... | public static boolean refreshEffects() {
// To optimize performance, we only check effects when it changes.
Player[] players = Bukkit.getServer().getOnlinePlayers();
Map<String, Float> data = new HashMap<String, Float>();
Logger log = Logger.getLogger("RealSleepEffect");
try {
data = (Map) SLAPI.loa... |
diff --git a/modules/quercus/src/com/caucho/quercus/lib/UrlModule.java b/modules/quercus/src/com/caucho/quercus/lib/UrlModule.java
index 374ebaaca..eae52e2df 100644
--- a/modules/quercus/src/com/caucho/quercus/lib/UrlModule.java
+++ b/modules/quercus/src/com/caucho/quercus/lib/UrlModule.java
@@ -1,1071 +1,1071 @@
/*
... | true | true | private static void parseUrl(Env env,
StringValue str,
ArrayValue array,
boolean isUnicode)
{
int strlen = str.length();
if (strlen == 0) {
array.put(PATH_V, PATH_U, env.getEmptyString(), isUnicode);
re... | private static void parseUrl(Env env,
StringValue str,
ArrayValue array,
boolean isUnicode)
{
int strlen = str.length();
if (strlen == 0) {
array.put(PATH_V, PATH_U, env.getEmptyString(), isUnicode);
re... |
diff --git a/tiles-freemarker/src/main/java/org/apache/tiles/freemarker/context/FreeMarkerUtil.java b/tiles-freemarker/src/main/java/org/apache/tiles/freemarker/context/FreeMarkerUtil.java
index 1f04294a..af660d7f 100644
--- a/tiles-freemarker/src/main/java/org/apache/tiles/freemarker/context/FreeMarkerUtil.java
+++ b/... | true | true | public static void setAttribute(Environment env, String name, Object obj,
String scope) {
if (scope == null) {
scope = "page";
}
if ("page".equals(scope)) {
try {
TemplateModel model = env.getObjectWrapper().wrap(obj);
env.s... | public static void setAttribute(Environment env, String name, Object obj,
String scope) {
if (scope == null) {
scope = "page";
}
if ("page".equals(scope)) {
try {
TemplateModel model = env.getObjectWrapper().wrap(obj);
env.s... |
diff --git a/src/main/java/net/diegolemos/gameoflife/GameOfLife.java b/src/main/java/net/diegolemos/gameoflife/GameOfLife.java
index 6ede7f8..e100225 100644
--- a/src/main/java/net/diegolemos/gameoflife/GameOfLife.java
+++ b/src/main/java/net/diegolemos/gameoflife/GameOfLife.java
@@ -1,50 +1,50 @@
package net.diegolem... | false | true | private static String takeAPicture(World world) {
int minX = 0;
int minY = 0;
int maxX = 10;
int maxY = 10;
StringBuilder space = new StringBuilder();
for(int x = minX; x <= maxX; x++) {
for(int y = minY; y <= maxY; y++) {
if(world.isAliv... | private static String takeAPicture(World world) {
int minX = 0;
int minY = 0;
int maxX = 30;
int maxY = 10;
StringBuilder space = new StringBuilder();
for(int y = maxY; y >= minY; y--) {
for(int x = minX; x <= maxX; x++) {
if(world.isAliv... |
diff --git a/src/org/achartengine/chart/BarChart.java b/src/org/achartengine/chart/BarChart.java
index bb4d927..fb3c695 100644
--- a/src/org/achartengine/chart/BarChart.java
+++ b/src/org/achartengine/chart/BarChart.java
@@ -1,312 +1,315 @@
/**
* Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
*
* Licensed under th... | true | true | private void drawBar(Canvas canvas, float xMin, float yMin, float xMax, float yMax, int scale,
int seriesIndex, Paint paint) {
SimpleSeriesRenderer renderer = mRenderer.getSeriesRendererAt(seriesIndex);
if (renderer.isGradientEnabled()) {
float minY = (float) toScreenPoint(new double[] { 0, render... | private void drawBar(Canvas canvas, float xMin, float yMin, float xMax, float yMax, int scale,
int seriesIndex, Paint paint) {
SimpleSeriesRenderer renderer = mRenderer.getSeriesRendererAt(seriesIndex);
if (renderer.isGradientEnabled()) {
float minY = (float) toScreenPoint(new double[] { 0, render... |
diff --git a/src/portablejim/veinminer/lib/BlockLib.java b/src/portablejim/veinminer/lib/BlockLib.java
index 6dcadf8..ccf8452 100644
--- a/src/portablejim/veinminer/lib/BlockLib.java
+++ b/src/portablejim/veinminer/lib/BlockLib.java
@@ -1,49 +1,49 @@
/* This file is part of VeinMiner.
*
* VeinMiner is free soft... | true | true | public static boolean arePickBlockEqual(BlockID first, BlockID second) {
if(first == null || second == null
|| first.id >= Block.blocksList.length || second.id >= Block.blocksList.length) {
return false;
}
Block firstBlock = Block.blocksList[first.id];
Bl... | public static boolean arePickBlockEqual(BlockID first, BlockID second) {
if(first == null || second == null
|| first.id >= Block.blocksList.length || second.id >= Block.blocksList.length) {
return false;
}
Block firstBlock = Block.blocksList[first.id];
Bl... |
diff --git a/src/main/java/edu/northwestern/bioinformatics/studycalendar/service/SubjectCoordinatorDashboardService.java b/src/main/java/edu/northwestern/bioinformatics/studycalendar/service/SubjectCoordinatorDashboardService.java
index 1e9e575b2..6b3b06f71 100644
--- a/src/main/java/edu/northwestern/bioinformatics/stu... | false | true | public Map<String, Object> getMapOfCurrentEventsForSpecificActivity(
List<StudySubjectAssignment> studySubjectAssignments, int initialShiftDate, Map<ActivityType, Boolean> activities) {
Date startDate = new Date();
Collection<ScheduledActivity> collectionOfEvents;
SortedMap<String, O... | public Map<String, Object> getMapOfCurrentEventsForSpecificActivity(
List<StudySubjectAssignment> studySubjectAssignments, int initialShiftDate, Map<ActivityType, Boolean> activities) {
Date startDate = new Date();
Collection<ScheduledActivity> collectionOfEvents;
SortedMap<String, O... |
diff --git a/src/main/java/org/jpos/jposext/isomsgaction/testing/service/support/MappingTest.java b/src/main/java/org/jpos/jposext/isomsgaction/testing/service/support/MappingTest.java
index 8a70280..1ad269b 100644
--- a/src/main/java/org/jpos/jposext/isomsgaction/testing/service/support/MappingTest.java
+++ b/src/main... | false | true | protected void runTest() throws Throwable {
List<ISOCmpDiff> resList = new ArrayList<ISOCmpDiff>();
try {
ISOMsg targetMsg = new ISOMsg();
ISOMsg[] tabISOMsg = new ISOMsg[1 + lstSrcISOMsg.size()];
tabISOMsg[0] = targetMsg;
for (int i = 1; i <= lstSrcISOMsg.size(); i++) {
tabISOMsg[i] = lstSrcIS... | protected void runTest() throws Throwable {
List<ISOCmpDiff> resList = new ArrayList<ISOCmpDiff>();
try {
ISOMsg targetMsg = new ISOMsg();
ISOMsg[] tabISOMsg = new ISOMsg[1 + lstSrcISOMsg.size()];
tabISOMsg[0] = targetMsg;
for (int i = 1; i <= lstSrcISOMsg.size(); i++) {
tabISOMsg[i] = lstSrcIS... |
diff --git a/src/main/java/net/vz/mongodb/jackson/internal/object/BsonObjectCursor.java b/src/main/java/net/vz/mongodb/jackson/internal/object/BsonObjectCursor.java
index aba02f7..5306bcd 100644
--- a/src/main/java/net/vz/mongodb/jackson/internal/object/BsonObjectCursor.java
+++ b/src/main/java/net/vz/mongodb/jackson/i... | true | true | private static JsonToken getToken(Object o) {
if (o == null) {
return JsonToken.VALUE_NULL;
} else if (o instanceof Iterable) {
return JsonToken.START_ARRAY;
} else if (o instanceof BSONObject) {
return JsonToken.START_OBJECT;
} else if (o instance... | private static JsonToken getToken(Object o) {
if (o == null) {
return JsonToken.VALUE_NULL;
} else if (o instanceof Iterable) {
return JsonToken.START_ARRAY;
} else if (o instanceof BSONObject) {
return JsonToken.START_OBJECT;
} else if (o instance... |
diff --git a/src/com/bel/android/dspmanager/activity/DSPScreen.java b/src/com/bel/android/dspmanager/activity/DSPScreen.java
index 4f4da2c..0bb09bf 100644
--- a/src/com/bel/android/dspmanager/activity/DSPScreen.java
+++ b/src/com/bel/android/dspmanager/activity/DSPScreen.java
@@ -1,100 +1,100 @@
package com.bel.androi... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
addPreferencesFromResource((Integer) R.xml.class.getField(getSubPage() + "_preferences").get(null));
}
catch (Exception e) {
throw new RuntimeException(e);
}
/* Register a listener that publishes UPDATE re... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
addPreferencesFromResource((Integer) this.getResources().getIdentifier(getSubPage() + "_preferences","xml",this.getPackageName()));
}
catch (Exception e) {
throw new RuntimeException(e);
}
/* Register a li... |
diff --git a/warlock2-rcp/com.arcaner.warlock.rcp/src/com/arcaner/warlock/rcp/menu/ProfileConnectContributionItem.java b/warlock2-rcp/com.arcaner.warlock.rcp/src/com/arcaner/warlock/rcp/menu/ProfileConnectContributionItem.java
index 32814752..edf3f6f2 100644
--- a/warlock2-rcp/com.arcaner.warlock.rcp/src/com/arcaner/wa... | true | true | protected IContributionItem[] getContributionItems() {
Collection<Profile> profiles = SavedProfiles.getAllProfiles();
IContributionItem[] items = new IContributionItem[profiles.size()];
int i = 0;
for (Profile profile : profiles)
{
items[i] = new ActionContributionItem(new ProfileConnectAction(profile)... | protected IContributionItem[] getContributionItems() {
Collection<Profile> profiles = SavedProfiles.getAllProfiles();
IContributionItem[] items = new IContributionItem[profiles.size()];
int i = 0;
for (Profile profile : profiles)
{
items[i] = new ActionContributionItem(new ProfileConnectAction(profile)... |
diff --git a/src/de/azapps/mirakel/helper/export_import/AnyDoImport.java b/src/de/azapps/mirakel/helper/export_import/AnyDoImport.java
index 23c2627c..167b4a3b 100644
--- a/src/de/azapps/mirakel/helper/export_import/AnyDoImport.java
+++ b/src/de/azapps/mirakel/helper/export_import/AnyDoImport.java
@@ -1,270 +1,277 @@
... | true | true | private static List<Pair<Integer, String>> parseTask(JsonObject jsonTask, SparseIntArray listMapping, List<Pair<Integer, String>> contents, Context ctx) {
String name = jsonTask.get("title").getAsString();
if (jsonTask.has("parentId")) {
contents.add(new Pair<Integer, String>(jsonTask.get("parentId")
.getA... | private static List<Pair<Integer, String>> parseTask(JsonObject jsonTask, SparseIntArray listMapping, List<Pair<Integer, String>> contents, Context ctx) {
String name = jsonTask.get("title").getAsString();
if (jsonTask.has("parentId")) {
contents.add(new Pair<Integer, String>(jsonTask.get("parentId")
.getA... |
diff --git a/src/gov/nih/ncgc/bard/tools/JettyRunner.java b/src/gov/nih/ncgc/bard/tools/JettyRunner.java
index 3a11ae8..7f68682 100644
--- a/src/gov/nih/ncgc/bard/tools/JettyRunner.java
+++ b/src/gov/nih/ncgc/bard/tools/JettyRunner.java
@@ -1,76 +1,80 @@
package gov.nih.ncgc.bard.tools;
import org.eclipse.jetty.ser... | true | true | public static void main(String[] args) throws Exception {
File configFile = new File(args[0]);
XmlConfiguration configuration = new XmlConfiguration(new FileInputStream(configFile));
Server server = (Server) configuration.configure();
Connector connector = new SelectChannelConnector(... | public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.err.println("Must specify path to jetty.xml");
System.exit(-1);
}
File configFile = new File(args[0]);
XmlConfiguration configuration = new XmlConfiguration(new FileInputS... |
diff --git a/src/nz/ac/vuw/ecs/fgpj/core/Function.java b/src/nz/ac/vuw/ecs/fgpj/core/Function.java
index 72ab3d7..e165765 100644
--- a/src/nz/ac/vuw/ecs/fgpj/core/Function.java
+++ b/src/nz/ac/vuw/ecs/fgpj/core/Function.java
@@ -1,291 +1,292 @@
package nz.ac.vuw.ecs.fgpj.core;
/*
FGPJ Genetic Programming library
... | true | true | public Node getNode(int node, int type, Node best) {
// if you are it return yourself
if (this.getReturnType() == type && this.getPosition() == node) {
return this;
}
// if you are the best so far, nominate yourself
if (this.getReturnType() == type
&& (best == null || Math.abs(best.getPosition() - nod... | public Node getNode(int node, int type, Node best) {
// if you are it return yourself
if (this.getReturnType() == type && this.getPosition() == node) {
return this;
}
// if you are the best so far, nominate yourself
if (this.getReturnType() == type
&& (best == null || Math.abs(best.getPosition() - nod... |
diff --git a/test/com/xtremelabs/droidsugar/fakes/ListViewTest.java b/test/com/xtremelabs/droidsugar/fakes/ListViewTest.java
index 33642ac8..b78c3ba8 100644
--- a/test/com/xtremelabs/droidsugar/fakes/ListViewTest.java
+++ b/test/com/xtremelabs/droidsugar/fakes/ListViewTest.java
@@ -1,68 +1,69 @@
package com.xtremelabs... | true | true | public void testSetSelection_ShouldFireOnItemSelectedListener() throws Exception {
listView.setAdapter(new CountingAdapter(1));
FakeHandler.flush();
listView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(Ada... | public void testSetSelection_ShouldFireOnItemSelectedListener() throws Exception {
listView.setAdapter(new CountingAdapter(1));
FakeHandler.flush();
listView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(Ada... |
diff --git a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrain.java b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrain.java
index e4076bc6..89d4d1b3 100644
--- a/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrain.java
+++ b/MODSRC/vazkii/tinkerer/common/item/kami/foci/ItemFocusXPDrai... | true | true | public void onUsingFocusTick(ItemStack paramItemStack, EntityPlayer paramEntityPlayer, int paramInt) {
if(paramEntityPlayer.worldObj.isRemote)
return;
ItemWandCasting wand = (ItemWandCasting) paramItemStack.getItem();
AspectList aspects = wand.getAllVis(paramItemStack);
Aspect aspectToAdd = null;
int ta... | public void onUsingFocusTick(ItemStack paramItemStack, EntityPlayer paramEntityPlayer, int paramInt) {
if(paramEntityPlayer.worldObj.isRemote)
return;
ItemWandCasting wand = (ItemWandCasting) paramItemStack.getItem();
AspectList aspects = wand.getAllVis(paramItemStack);
Aspect aspectToAdd = null;
int ta... |
diff --git a/src/pt/ist/fenixframework/plugins/luceneIndexing/domain/DomainIndexDirectory.java b/src/pt/ist/fenixframework/plugins/luceneIndexing/domain/DomainIndexDirectory.java
index 6cb90ee0..76170c78 100644
--- a/src/pt/ist/fenixframework/plugins/luceneIndexing/domain/DomainIndexDirectory.java
+++ b/src/pt/ist/feni... | true | true | public DomainIndexFile getIndexFile(String name) {
for (DomainIndexFile file : getIndexFiles()) {
if (file.getName().equals(name)) {
return file;
}
}
return null;
}
| public DomainIndexFile getIndexFile(String name) {
for (DomainIndexFile file : getIndexFiles()) {
if (file.getName().equals(name) && file.getIndexContent() != null) {
return file;
}
}
return null;
}
|
diff --git a/capture-server/capture/Url.java b/capture-server/capture/Url.java
index 62254a4..e1d135a 100644
--- a/capture-server/capture/Url.java
+++ b/capture-server/capture/Url.java
@@ -1,299 +1,300 @@
package capture;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import... | true | true | public void setUrlState(URL_STATE newState) {
if (urlState == newState)
return;
urlState = newState;
System.out.println("\tUrlSetState: " + newState.toString());
if (urlState == URL_STATE.VISITING) {
String date = getVisitStartTime();
Stats.visiti... | public void setUrlState(URL_STATE newState) {
if (urlState == newState)
return;
urlState = newState;
System.out.println("\tUrlSetState: " + newState.toString());
if (urlState == URL_STATE.VISITING) {
String date = getVisitStartTime();
Stats.visiti... |
diff --git a/src/com/podevs/android/pokemononline/pokeinfo/MoveInfo.java b/src/com/podevs/android/pokemononline/pokeinfo/MoveInfo.java
index a18f71d3..9940f4c6 100644
--- a/src/com/podevs/android/pokemononline/pokeinfo/MoveInfo.java
+++ b/src/com/podevs/android/pokemononline/pokeinfo/MoveInfo.java
@@ -1,20 +1,20 @@
pa... | false | true | public static String name(DataBaseHelper db, int num) {
if (moveNames.indexOfKey(num) != -1) {
return moveNames.get(num);
}
String name = db.query("SELECT name FROM [moves] WHERE _id = " + num);
moveNames.put(num, name);
return name;
}
| public static String name(DataBaseHelper db, int num) {
if (moveNames.indexOfKey(num) >= 0) {
return moveNames.get(num);
}
String name = db.query("SELECT name FROM [Moves] WHERE _id = " + num);
moveNames.put(num, name);
return name;
}
|
diff --git a/src/main/java/com/philihp/weblabora/model/building/PrintingOffice.java b/src/main/java/com/philihp/weblabora/model/building/PrintingOffice.java
index 795e11e..1efa6e4 100644
--- a/src/main/java/com/philihp/weblabora/model/building/PrintingOffice.java
+++ b/src/main/java/com/philihp/weblabora/model/building... | true | true | public void use(Board board, UsageParamCoordinates input) throws WeblaboraException {
Player player = board.getPlayer(board.getActivePlayer());
Landscape landscape = player.getLandscape();
for(Coordinate coord : input.getCoordinates()) {
Terrain terrain = landscape.getTerrainAt(coord);
if(terrain == null) ... | public void use(Board board, UsageParamCoordinates input) throws WeblaboraException {
Player player = board.getPlayer(board.getActivePlayer());
Landscape landscape = player.getLandscape();
for(Coordinate coord : input.getCoordinates()) {
Terrain terrain = landscape.getTerrainAt(coord);
if(terrain == null) ... |
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/filesystem/SymlinkTest.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/filesystem/SymlinkTest.java
index 03bc8c008..7600dafda 100644
--- a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/filesystem/... | true | true | public void testRecursiveSymlink() throws Exception {
if (!isTestablePlatform())
return;
mkLink(baseStore, "l1", "l2", false);
mkLink(baseStore, "l2", "l1", false);
IFileStore l1 = baseStore.getChild("l1");
IFileInfo i1 = l1.fetchInfo();
assertFalse(i1.exists());
assertFalse(i1.isDirectory());
if (hav... | public void testRecursiveSymlink() throws Exception {
if (!isTestablePlatform())
return;
mkLink(baseStore, "l1", "l2", false);
mkLink(baseStore, "l2", "l1", false);
IFileStore l1 = baseStore.getChild("l1");
IFileInfo i1 = l1.fetchInfo();
assertFalse(i1.exists());
assertFalse(i1.isDirectory());
if (hav... |
diff --git a/src/com/dmdirc/parser/ProcessNick.java b/src/com/dmdirc/parser/ProcessNick.java
index d42bcca7d..9d60226e8 100644
--- a/src/com/dmdirc/parser/ProcessNick.java
+++ b/src/com/dmdirc/parser/ProcessNick.java
@@ -1,133 +1,132 @@
/*
* Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes
*
... | true | true | public void process(String sParam, String[] token) {
ClientInfo iClient;
ChannelClientInfo iChannelClient;
String oldNickname;
iClient = getClientInfo(token[0]);
if (iClient != null) {
oldNickname = myParser.toLowerCase(iClient.getNickname());
// Remove the client from the known clients list
fina... | public void process(String sParam, String[] token) {
ClientInfo iClient;
ChannelClientInfo iChannelClient;
String oldNickname;
iClient = getClientInfo(token[0]);
if (iClient != null) {
oldNickname = myParser.toLowerCase(iClient.getNickname());
// Remove the client from the known clients list
fina... |
diff --git a/src/MessageClasses/MessageEntry.java b/src/MessageClasses/MessageEntry.java
index f7b468a..125d8fa 100644
--- a/src/MessageClasses/MessageEntry.java
+++ b/src/MessageClasses/MessageEntry.java
@@ -1,159 +1,159 @@
/*
* This code is distributed under terms of GNU GPLv2.
* *See LICENSE file.
* ©UKRINFOR... | true | true | public MessageEntry(String givenCsv) {
this();
java.util.ArrayList<String[]> parsedStruct = Generic.CsvFormat.fromCsv(this, givenCsv);
String[] baseArray = parsedStruct.get(0);
this.INDEX = baseArray[0];
this.ORIG_INDEX = baseArray[1];
this.DIRS = parsedStruct.get(1);... | public MessageEntry(String givenCsv) {
this();
java.util.ArrayList<String[]> parsedStruct = Generic.CsvFormat.fromCsv(this, givenCsv);
String[] baseArray = parsedStruct.get(0);
this.INDEX = baseArray[0];
this.ORIG_INDEX = baseArray[1];
this.DIRS = parsedStruct.get(1);... |
diff --git a/src/main/java/com/bsg/pcms/user/UserController.java b/src/main/java/com/bsg/pcms/user/UserController.java
index f499b36..c621ed8 100644
--- a/src/main/java/com/bsg/pcms/user/UserController.java
+++ b/src/main/java/com/bsg/pcms/user/UserController.java
@@ -1,75 +1,76 @@
package com.bsg.pcms.user;
import... | true | true | public String login(UserDTO member, HttpServletRequest request) {
if (userSevice.hasNoUser(member)) {
return "redirect:/index.do";
}
UserDTO resultDTO = userSevice.getUser(member);
HashMap<String, Object> map = new HashMap<String, Object>();
map.put("id", resultDTO.getId());
map.put("level_cd", resul... | public String login(UserDTO member, HttpServletRequest request) {
if (userSevice.hasNoUser(member)) {
logger.info("here");
return "redirect:/index.do";
}
UserDTO resultDTO = userSevice.getUser(member);
HashMap<String, Object> map = new HashMap<String, Object>();
map.put("id", resultDTO.getId());
m... |
diff --git a/test/regression/ThreadStop.java b/test/regression/ThreadStop.java
index 3a3080f9a..22257bd78 100644
--- a/test/regression/ThreadStop.java
+++ b/test/regression/ThreadStop.java
@@ -1,248 +1,251 @@
/*
* ThreadStop.java
*
* Test stopping various threads.
*
* Courtesy Pat Tullmann (tullmann@cs.utah... | false | true | static public void main(String[] args)
{
Thread target;
msg("Test 1: Stop a thread that's blocked on itself");
target = new ThreadStop_BlockThread();
target.start();
sleep(500);
synchronized(((ThreadStop_BlockThread)target).blocker) {
killIt(target);
// sleep while holding on to target
... | static public void main(String[] args)
{
Thread target;
msg("Test 1: Stop a thread that's blocked on itself");
target = new ThreadStop_BlockThread();
target.start();
sleep(500);
synchronized(((ThreadStop_BlockThread)target).blocker) {
killIt(target);
// sleep while holding on to target
... |
diff --git a/src/merkurius/ld27/system/LD27AnimationSystem.java b/src/merkurius/ld27/system/LD27AnimationSystem.java
index 6d6a44d..6332747 100644
--- a/src/merkurius/ld27/system/LD27AnimationSystem.java
+++ b/src/merkurius/ld27/system/LD27AnimationSystem.java
@@ -1,138 +1,138 @@
package merkurius.ld27.system;
impo... | false | true | protected String getAnim(VisualComponent visual, Vector2 direction) {
String currentAnim = visual.currentAnimationName;
if( direction.angle() > 337.5 ) {
currentAnim = C.WALK_UP;
} else if( direction.angle() > 292.5 ) {
currentAnim = C.WALK_UP_LEFT;
} else if( direction.angle() > 247.5 ) {
currentA... | protected String getAnim(VisualComponent visual, Vector2 direction) {
String currentAnim = visual.currentAnimationName;
if( direction.angle() > 337.5 ) {
currentAnim = C.WALK_RIGHT;
} else if( direction.angle() > 292.5 ) {
currentAnim = C.WALK_DOWN_RIGHT;
} else if( direction.angle() > 247.5 ) {
cu... |
diff --git a/src/org/omegat/filters2/po/PoFilter.java b/src/org/omegat/filters2/po/PoFilter.java
index d0790796..4f7d7ba9 100644
--- a/src/org/omegat/filters2/po/PoFilter.java
+++ b/src/org/omegat/filters2/po/PoFilter.java
@@ -1,462 +1,463 @@
/**************************************************************************
... | true | true | private void processPoFile(BufferedReader in) throws IOException {
fuzzy = false;
nowrap = false;
MODE currentMode = null;
int currentPlural = 0;
sources = new StringBuilder[2];
sources[0] = new StringBuilder();
sources[1] = new StringBuilder();
targe... | private void processPoFile(BufferedReader in) throws IOException {
fuzzy = false;
nowrap = false;
MODE currentMode = null;
int currentPlural = 0;
sources = new StringBuilder[2];
sources[0] = new StringBuilder();
sources[1] = new StringBuilder();
targe... |
diff --git a/src/minecraft/liquidmechanics/common/LiquidMechanics.java b/src/minecraft/liquidmechanics/common/LiquidMechanics.java
index f73e43fd..d423a861 100644
--- a/src/minecraft/liquidmechanics/common/LiquidMechanics.java
+++ b/src/minecraft/liquidmechanics/common/LiquidMechanics.java
@@ -1,327 +1,327 @@
package ... | true | true | public void PostInit(FMLPostInitializationEvent event)
{
FMLog.info("Finalizing...");
proxy.postInit();
TabLiquidMechanics.setItemStack(new ItemStack(blockPipe, 1, 4));
// generator
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(this.bloc... | public void PostInit(FMLPostInitializationEvent event)
{
FMLog.info("Finalizing...");
proxy.postInit();
TabLiquidMechanics.setItemStack(new ItemStack(blockPipe, 1, 4));
// generator
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(this.bloc... |
diff --git a/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java b/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java
index 21a8f94..a486e39 100644
--- a/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLo... | true | true | public void run (String testName,
URL[] parentClassloaderUrls,
URL[] childClassloaderUrls,
boolean setContextClassloader,
boolean childFirst) {
URLClassLoader parent = new URLClassLoader(parentClassloaderUrls);
URLCl... | public void run (String testName,
URL[] parentClassloaderUrls,
URL[] childClassloaderUrls,
boolean setContextClassloader,
boolean childFirst) {
URLClassLoader parent = new URLClassLoader(parentClassloaderUrls);
URLCl... |
diff --git a/com/buglabs/application/ServiceTrackerHelper.java b/com/buglabs/application/ServiceTrackerHelper.java
index 01eca75..33a385c 100644
--- a/com/buglabs/application/ServiceTrackerHelper.java
+++ b/com/buglabs/application/ServiceTrackerHelper.java
@@ -1,298 +1,299 @@
/*****************************************... | true | true | public Object addingService(ServiceReference arg0) {
sc++;
Object svc = bc.getService(arg0);
serviceMap.put(arg0.getProperty(Constants.OBJECTCLASS), svc);
if (thread == null && sc == services.length && !(runnable instanceof UnmanagedRunnable)) {
if (runnable instanceof ManagedInlineRunnable) {
//Client... | public Object addingService(ServiceReference arg0) {
sc++;
Object svc = bc.getService(arg0);
String key = ((String []) arg0.getProperty(Constants.OBJECTCLASS))[0];
serviceMap.put(key, svc);
if (thread == null && sc == services.length && !(runnable instanceof UnmanagedRunnable)) {
if (runnable instanceof ... |
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java
index b99816e6d..7f9f34a8c 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/converter/DefaultFontReplacer.java
+++ b/src/scratchpad/src/org/apache/poi/hwp... | false | true | public Triplet update( Triplet original )
{
if ( !AbstractWordUtils.isNotEmpty( original.fontName ) )
{
String fontName = original.fontName;
if ( fontName.endsWith( " Regular" ) )
fontName = AbstractWordUtils.substringBeforeLast( fontName,
... | public Triplet update( Triplet original )
{
if ( AbstractWordUtils.isNotEmpty( original.fontName ) )
{
String fontName = original.fontName;
if ( fontName.endsWith( " Regular" ) )
fontName = AbstractWordUtils.substringBeforeLast( fontName,
... |
diff --git a/slickij-data-api/src/main/java/org/tcrun/slickij/api/data/HostStatus.java b/slickij-data-api/src/main/java/org/tcrun/slickij/api/data/HostStatus.java
index 13d354c..8c13e72 100644
--- a/slickij-data-api/src/main/java/org/tcrun/slickij/api/data/HostStatus.java
+++ b/slickij-data-api/src/main/java/org/tcrun/... | true | true | public Result getCurrentWork()
{
if(currentWork.getRecorded() != null)
{
Date now = new Date();
int seconds = (int)((now.getTime() - currentWork.getRecorded().getTime())/1000);
currentWork.setRunlength(seconds);
}
return currentWork;
}
| public Result getCurrentWork()
{
if(currentWork != null && currentWork.getRecorded() != null)
{
Date now = new Date();
int seconds = (int)((now.getTime() - currentWork.getRecorded().getTime())/1000);
currentWork.setRunlength(seconds);
}
return currentWork... |
diff --git a/src/main/java/tconstruct/client/ToolCoreRenderer.java b/src/main/java/tconstruct/client/ToolCoreRenderer.java
index 7c22332e5..1683b7fb0 100644
--- a/src/main/java/tconstruct/client/ToolCoreRenderer.java
+++ b/src/main/java/tconstruct/client/ToolCoreRenderer.java
@@ -1,319 +1,318 @@
package tconstruct.cli... | true | true | public void renderItem (ItemRenderType type, ItemStack item, Object... data)
{
ToolCore tool = (ToolCore) item.getItem();
boolean isInventory = type == ItemRenderType.INVENTORY;
Entity ent = null;
if (data.length > 1)
ent = (Entity) data[1];
int iconParts = ... | public void renderItem (ItemRenderType type, ItemStack item, Object... data)
{
ToolCore tool = (ToolCore) item.getItem();
boolean isInventory = type == ItemRenderType.INVENTORY;
Entity ent = null;
if (data.length > 1)
ent = (Entity) data[1];
int iconParts = ... |
diff --git a/core/org.eclipse.ptp.remote.rse.core/miners/org/eclipse/ptp/internal/remote/rse/core/miners/SpawnerMiner.java b/core/org.eclipse.ptp.remote.rse.core/miners/org/eclipse/ptp/internal/remote/rse/core/miners/SpawnerMiner.java
index be627e0a7..c0f007602 100644
--- a/core/org.eclipse.ptp.remote.rse.core/miners/o... | true | true | private DataElement doHandleCommand(DataElement theCommand) {
String name = getCommandName(theCommand);
DataElement status = getCommandStatus(theCommand);
_status = status;
DataElement subject = getCommandArgument(theCommand, 0);
if (name.equals(C_SPAWN_REDIRECTED)) {
String cmd = getString(theCommand,... | private DataElement doHandleCommand(DataElement theCommand) {
String name = getCommandName(theCommand);
DataElement status = getCommandStatus(theCommand);
_status = status;
DataElement subject = getCommandArgument(theCommand, 0);
if (name.equals(C_SPAWN_REDIRECTED)) {
String cmd = getString(theCommand,... |
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/DefaultQueryProvider.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/DefaultQueryProvider.java
index 4bd0402b6..b78577373 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/... | true | true | public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) {
// Initialize queryable, queryContext, and queryType from the element.
// In some cases we override this.
IQueryable queryable = element.getQueryable();
int queryType = element.getQueryType();
IUViewQueryContext context = elemen... | public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) {
// Initialize queryable, queryContext, and queryType from the element.
// In some cases we override this.
IQueryable queryable = element.getQueryable();
int queryType = element.getQueryType();
IUViewQueryContext context = elemen... |
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_email.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_email.java
index 228398b..22f8d89 100644
--- a/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_email.java
+++ b/CommandsEX/src/com/gith... | true | true | public Handler_email(){
File f = new File(CommandsEX.plugin.getDataFolder() + "/mail.jar");
if (!f.exists()){
return;
}
try {
ClasspathHacker.addFile(f);
classpathAdded = true;
} catch (Exception e){
}
}
| public Handler_email(){
File f = new File(CommandsEX.plugin.getDataFolder() + "/commons-email-1.2.jar");
if (!f.exists()){
return;
}
try {
ClasspathHacker.addFile(f);
classpathAdded = true;
} catch (Exception e){
}
}
|
diff --git a/src/main/java/sorts/impl/DedupingPredicate.java b/src/main/java/sorts/impl/DedupingPredicate.java
index 891a262..97b2f36 100644
--- a/src/main/java/sorts/impl/DedupingPredicate.java
+++ b/src/main/java/sorts/impl/DedupingPredicate.java
@@ -1,60 +1,60 @@
package sorts.impl;
import java.nio.charset.Chara... | true | true | public boolean apply(Entry<Key,Value> input) {
Preconditions.checkNotNull(input);
Preconditions.checkNotNull(input.getKey());
input.getKey().getColumnQualifier(holder);
int index = holder.find(Defaults.NULL_BYTE_STR);
Preconditions.checkArgument(-1 != index);
String uid = n... | public boolean apply(Entry<Key,Value> input) {
Preconditions.checkNotNull(input);
Preconditions.checkNotNull(input.getKey());
input.getKey().getColumnQualifier(holder);
int index = holder.find(Defaults.NULL_BYTE_STR);
Preconditions.checkArgument(-1 != index);
String uid = n... |
diff --git a/UniQuest/src/main/Game.java b/UniQuest/src/main/Game.java
index 621a7e8..e14bf3e 100644
--- a/UniQuest/src/main/Game.java
+++ b/UniQuest/src/main/Game.java
@@ -1,639 +1,639 @@
package main;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util... | true | true | private void gameStatePlaying() throws ConcurrentModificationException {
while (GAME_STATE == GAME_STATE_PLAYING && !Display.isCloseRequested()) {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
render();
Input.poll();
List<KeyEvent> keyEvents = Input.getKeyEvents();
List<Mou... | private void gameStatePlaying() throws ConcurrentModificationException {
while (GAME_STATE == GAME_STATE_PLAYING && !Display.isCloseRequested()) {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
render();
Input.poll();
List<KeyEvent> keyEvents = Input.getKeyEvents();
List<Mou... |
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/resteasy/interceptor/OAuth.java b/proxy/src/main/java/org/fedoraproject/candlepin/resteasy/interceptor/OAuth.java
index 5a56e6a2f..9f8ed7b48 100644
--- a/proxy/src/main/java/org/fedoraproject/candlepin/resteasy/interceptor/OAuth.java
+++ b/proxy/src/main/java... | false | true | public Principal getPrincipal(HttpRequest request) {
Principal principal = null;
log.debug("Checking for oauth authentication");
try {
if (getHeader(request, "Authorization").contains("oauth")) {
OAuthMessage requestMessage = new RestEasyOAuthMessage(request);
... | public Principal getPrincipal(HttpRequest request) {
Principal principal = null;
log.debug("Checking for oauth authentication");
try {
if (getHeader(request, "Authorization").contains("oauth")) {
OAuthMessage requestMessage = new RestEasyOAuthMessage(request);
... |
diff --git a/support/org/intellij/grammar/generator/ExpressionGeneratorHelper.java b/support/org/intellij/grammar/generator/ExpressionGeneratorHelper.java
index 23408b9..4d8ae56 100644
--- a/support/org/intellij/grammar/generator/ExpressionGeneratorHelper.java
+++ b/support/org/intellij/grammar/generator/ExpressionGene... | false | true | public static void generateExpressionRoot(ExpressionHelper.ExpressionInfo info, ParserGenerator g) {
Map<String, List<OperatorInfo>> opCalls = new LinkedHashMap<String, List<OperatorInfo>>();
for (BnfRule rule : info.priorityMap.keySet()) {
OperatorInfo operator = info.operatorMap.get(rule);
Strin... | public static void generateExpressionRoot(ExpressionHelper.ExpressionInfo info, ParserGenerator g) {
Map<String, List<OperatorInfo>> opCalls = new LinkedHashMap<String, List<OperatorInfo>>();
for (BnfRule rule : info.priorityMap.keySet()) {
OperatorInfo operator = info.operatorMap.get(rule);
Strin... |
diff --git a/src/CardAssociation/Card.java b/src/CardAssociation/Card.java
index 7425180..abbbfe5 100644
--- a/src/CardAssociation/Card.java
+++ b/src/CardAssociation/Card.java
@@ -1,1070 +1,1070 @@
/**
* @file Cardv2.java
* @author Jia Chen
* @date May 04, 2012
* @description
* Cardv2.java is the test in... | true | true | public JPanel getInfoPane(int w, int h) {
// Font font = new Font("Courier New", Font.BOLD, 12);
JPanel infoPanel = new JPanel();
infoPanel.setPreferredSize(new Dimension(w, h));
GroupLayout layout = new GroupLayout(infoPanel);
infoPanel.setLayout(layout);
layout.setAutoCreateGaps(true);
layout.setAut... | public JPanel getInfoPane(int w, int h) {
// Font font = new Font("Courier New", Font.BOLD, 12);
JPanel infoPanel = new JPanel();
infoPanel.setPreferredSize(new Dimension(w, h));
GroupLayout layout = new GroupLayout(infoPanel);
infoPanel.setLayout(layout);
layout.setAutoCreateGaps(true);
layout.setAut... |
diff --git a/src/main/java/water/api/Jobs.java b/src/main/java/water/api/Jobs.java
index eea903311..67f58e46a 100644
--- a/src/main/java/water/api/Jobs.java
+++ b/src/main/java/water/api/Jobs.java
@@ -1,181 +1,181 @@
package water.api;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import c... | false | true | protected Response serve() {
JsonObject result = new JsonObject();
JsonArray array = new JsonArray();
Job[] jobs = Job.all();
for( int i = jobs.length - 1; i >= 0; i-- ) {
JsonObject json = new JsonObject();
json.addProperty(KEY, jobs[i].self().toString());
json.addProperty(DESCRIPTI... | protected Response serve() {
JsonObject result = new JsonObject();
JsonArray array = new JsonArray();
Job[] jobs = Job.all();
for( int i = jobs.length - 1; i >= 0; i-- ) {
JsonObject json = new JsonObject();
json.addProperty(KEY, jobs[i].self().toString());
json.addProperty(DESCRIPTI... |
diff --git a/src/com/ferg/awful/thread/AwfulPost.java b/src/com/ferg/awful/thread/AwfulPost.java
index e8ecb075..7d3a5661 100644
--- a/src/com/ferg/awful/thread/AwfulPost.java
+++ b/src/com/ferg/awful/thread/AwfulPost.java
@@ -1,338 +1,338 @@
/***************************************************************************... | 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/trunk/java/com/tigervnc/rfb/RawDecoder.java b/trunk/java/com/tigervnc/rfb/RawDecoder.java
index f7e5d46a..6be535b2 100644
--- a/trunk/java/com/tigervnc/rfb/RawDecoder.java
+++ b/trunk/java/com/tigervnc/rfb/RawDecoder.java
@@ -1,44 +1,45 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
* ... | false | true | public void readRect(Rect r, CMsgHandler handler) {
int x = r.tl.x;
int y = r.tl.y;
int w = r.width();
int h = r.height();
int[] imageBuf = reader.getImageBuf(w * h);
int nPixels = imageBuf.length / (reader.bpp() / 8);
while (h > 0) {
int nRows = nPixels / w;
if (nRows > h) nRo... | public void readRect(Rect r, CMsgHandler handler) {
int x = r.tl.x;
int y = r.tl.y;
int w = r.width();
int h = r.height();
int[] imageBuf = new int[w*h];
int nPixels = imageBuf.length;
int bytesPerRow = w * (reader.bpp() / 8);
while (h > 0) {
int nRows = nPixels / w;
if (nR... |
diff --git a/src/org/tomahawk/libtomahawk/audio/PlaybackSeekBar.java b/src/org/tomahawk/libtomahawk/audio/PlaybackSeekBar.java
index 005d6f17..ef99e9b8 100644
--- a/src/org/tomahawk/libtomahawk/audio/PlaybackSeekBar.java
+++ b/src/org/tomahawk/libtomahawk/audio/PlaybackSeekBar.java
@@ -1,195 +1,196 @@
/* == This file ... | true | true | public PlaybackSeekBar(Context context, AttributeSet attrs) {
super(context, attrs);
mUiHandler = new Handler(this);
mOnSeekBarChangeListener = new OnSeekBarChangeListener() {
/*
* (non-Javadoc)
* @see android .widget .SeekBar. OnSeekBarChangeListener # ... | public PlaybackSeekBar(Context context, AttributeSet attrs) {
super(context, attrs);
mUiHandler = new Handler(this);
mOnSeekBarChangeListener = new OnSeekBarChangeListener() {
/*
* (non-Javadoc)
* @see android .widget .SeekBar. OnSeekBarChangeListener # ... |
diff --git a/src/nl/nikhef/jgridstart/util/FileUtils.java b/src/nl/nikhef/jgridstart/util/FileUtils.java
index 725c61a..ddd15b4 100644
--- a/src/nl/nikhef/jgridstart/util/FileUtils.java
+++ b/src/nl/nikhef/jgridstart/util/FileUtils.java
@@ -1,376 +1,376 @@
package nl.nikhef.jgridstart.util;
import java.io.BufferedR... | true | true | public static boolean CopyFile(File in, File out) throws IOException {
String[] cmd;
if (System.getProperty("os.name").startsWith("Windows")) {
boolean hasRobocopy = false;
// windows: use special copy program to retain permissions.
// on Vista, "xcopy /O" requires administrative rights, so... | public static boolean CopyFile(File in, File out) throws IOException {
String[] cmd;
if (System.getProperty("os.name").startsWith("Windows")) {
boolean hasRobocopy = false;
// windows: use special copy program to retain permissions.
// on Vista, "xcopy /O" requires administrative rights, so... |
diff --git a/src/de/fhb/trendsys/lsc/db/control/Worker.java b/src/de/fhb/trendsys/lsc/db/control/Worker.java
index 324c380..632dc7b 100644
--- a/src/de/fhb/trendsys/lsc/db/control/Worker.java
+++ b/src/de/fhb/trendsys/lsc/db/control/Worker.java
@@ -1,285 +1,288 @@
package de.fhb.trendsys.lsc.db.control;
import java... | false | true | private void updateStockChartData(List<Map<String, AttributeValue>> updatedStockDataList) {
String stockName = null;
int id = 0;
String timeStamp = null;
double stockValue = 0d;
String newsTitle = null;
String newsDescription = null;
String newsUrl = null;
if (this.model != null) {
for (Map<Strin... | private void updateStockChartData(List<Map<String, AttributeValue>> updatedStockDataList) {
String stockName = null;
int id = 0;
String timeStamp = null;
double stockValue = 0d;
String newsTitle = null;
String newsDescription = null;
String newsUrl = null;
if (this.model != null) {
for (Map<Strin... |
diff --git a/src/test/java/mock/NomicServiceMockTest.java b/src/test/java/mock/NomicServiceMockTest.java
index eb9df9e..f3c7e20 100644
--- a/src/test/java/mock/NomicServiceMockTest.java
+++ b/src/test/java/mock/NomicServiceMockTest.java
@@ -1,108 +1,108 @@
package mock;
import java.util.ArrayList;
import java.util... | true | true | public void NomicServiceMultipleStringRuleAdditionTest() {
final EnvironmentSharedStateAccess ss = context.mock(EnvironmentSharedStateAccess.class);
final StatefulKnowledgeSession session = context.mock(StatefulKnowledgeSession.class);
final EventBus e = context.mock(EventBus.class);
final KnowledgeBase base =... | public void NomicServiceMultipleStringRuleAdditionTest() {
final EnvironmentSharedStateAccess ss = context.mock(EnvironmentSharedStateAccess.class);
final StatefulKnowledgeSession session = context.mock(StatefulKnowledgeSession.class);
final EventBus e = context.mock(EventBus.class);
final KnowledgeBase base =... |
diff --git a/src/java/com/eviware/soapui/impl/wsdl/support/wsdl/UrlWsdlLoader.java b/src/java/com/eviware/soapui/impl/wsdl/support/wsdl/UrlWsdlLoader.java
index 1163ff641..e070fa26f 100644
--- a/src/java/com/eviware/soapui/impl/wsdl/support/wsdl/UrlWsdlLoader.java
+++ b/src/java/com/eviware/soapui/impl/wsdl/support/wsd... | true | true | public synchronized InputStream load( String url ) throws Exception
{
if( !PathUtils.isHttpPath( url ) )
{
try
{
File file = new File( url.replace( '/', File.separatorChar ) );
if( file.exists() )
url = file.toURI().toURL().toString();
}
catch( Exception e )
{
}
}
if( urlCache.... | public synchronized InputStream load( String url ) throws Exception
{
if( !PathUtils.isHttpPath( url ) )
{
try
{
File file = new File( url.replace( '/', File.separatorChar ) );
if( file.exists() )
url = file.toURI().toURL().toString();
}
catch( Exception e )
{
}
}
if( urlCache.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.