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/tests/org.bonitasoft.studio.diagram.test/src/org/bonitasoft/studio/diagram/test/TestBug1640.java b/tests/org.bonitasoft.studio.diagram.test/src/org/bonitasoft/studio/diagram/test/TestBug1640.java
index 1973d6e0d0..a5f6f11223 100644
--- a/tests/org.bonitasoft.studio.diagram.test/src/org/bonitasoft/studio/di... | true | true | public void testBug1640() throws Exception {
//close editors that were re-opened (for form closed editors)
bot.saveAllEditors();
bot.closeAllEditors();
// Create first process
SWTBotMenu saveMenu = bot.menu("Diagram").menu("Save");
SWTBotTestUtil.createNewDiagram(bot... | public void testBug1640() throws Exception {
//close editors that were re-opened (for form closed editors)
bot.saveAllEditors();
bot.closeAllEditors();
// Create first process
SWTBotMenu saveMenu = bot.menu("Diagram").menu("Save");
SWTBotTestUtil.createNewDiagram(bot... |
diff --git a/src/com/yad/harpseal/controller/GameControllerBase.java b/src/com/yad/harpseal/controller/GameControllerBase.java
index 54c3013..679e7f4 100644
--- a/src/com/yad/harpseal/controller/GameControllerBase.java
+++ b/src/com/yad/harpseal/controller/GameControllerBase.java
@@ -1,291 +1,291 @@
package com.yad.ha... | true | true | public final void run() {
super.run();
HarpLog.info("Game thread is running");
// temp variable (Frequently changed)
Canvas c=null;
long fms,lms;
float scaleRate;
float transHeight;
HarpEvent ev=null;
while(!isEnded) {
// do thread's work (including draw screen)
while(!isPaused) {
... | public final void run() {
super.run();
HarpLog.info("Game thread is running");
// temp variable (Frequently changed)
Canvas c=null;
long fms,lms;
float scaleRate;
float transHeight;
HarpEvent ev=null;
while(!isEnded) {
// do thread's work (including draw screen)
while(!isPaused) {
... |
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java b/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java
index 848a7364d..c6dbdd682 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/uti... | true | true | public static String randomHtmlishString(Random random, int numElements) {
final int end = random.nextInt(numElements);
if (end == 0) {
// allow 0 length
return "";
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < end; i++) {
int val = random.nextInt(25);
switc... | public static String randomHtmlishString(Random random, int numElements) {
final int end = random.nextInt(numElements);
if (end == 0) {
// allow 0 length
return "";
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < end; i++) {
int val = random.nextInt(25);
switc... |
diff --git a/src/main/java/com/github/xgameenginee/codec/GameDecoder.java b/src/main/java/com/github/xgameenginee/codec/GameDecoder.java
index cbd8122..1953b53 100644
--- a/src/main/java/com/github/xgameenginee/codec/GameDecoder.java
+++ b/src/main/java/com/github/xgameenginee/codec/GameDecoder.java
@@ -1,29 +1,29 @@
... | true | true | protected Object decode(ChannelHandlerContext ctx, Channel ch, ChannelBuffer cb) throws Exception {
ChannelBuffer buffer = (ChannelBuffer)super.decode(ctx, ch, cb);
ProtocolCoder coder = GameBoss.getInstance().getProtocolCoder();
if (coder != null) {
byte[] decodebytes = coder.decode(buffer.array());
retu... | protected Object decode(ChannelHandlerContext ctx, Channel ch, ChannelBuffer cb) throws Exception {
ChannelBuffer buffer = (ChannelBuffer)super.decode(ctx, ch, cb);
ProtocolCoder coder = GameBoss.getInstance().getProtocolCoder();
if (coder != null && buffer != null) {
byte[] decodebytes = coder.decode(buffer... |
diff --git a/src/LL1Parser.java b/src/LL1Parser.java
index b011e4e..606e162 100644
--- a/src/LL1Parser.java
+++ b/src/LL1Parser.java
@@ -1,123 +1,123 @@
import java.io.File;
import java.io.FileNotFoundException;
import java.util.List;
import java.util.Scanner;
import java.util.Stack;
/**
* LL1 Parser that det... | true | true | public boolean parse() throws LL1ParseException {
Stack<RuleElement> parsingStack = new Stack<RuleElement>();
parsingStack.push(grammar.getStartVariable());
TokenType tokenType = TokenType.tokenWithIdentifier(lexerOutputScanner.next());
while (!parsingStack.isEmpty()) {
if (VERBOSE) {
System.out.prin... | public boolean parse() throws LL1ParseException {
Stack<RuleElement> parsingStack = new Stack<RuleElement>();
parsingStack.push(grammar.getStartVariable());
TokenType tokenType = TokenType.tokenWithIdentifier(lexerOutputScanner.next());
while (!parsingStack.isEmpty()) {
if (VERBOSE) {
System.out.prin... |
diff --git a/src/com/vorsk/crossfitr/WorkoutProfileActivity.java b/src/com/vorsk/crossfitr/WorkoutProfileActivity.java
index b8f4714..d2096f3 100644
--- a/src/com/vorsk/crossfitr/WorkoutProfileActivity.java
+++ b/src/com/vorsk/crossfitr/WorkoutProfileActivity.java
@@ -1,223 +1,225 @@
package com.vorsk.crossfitr;
im... | false | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
//create model object
WorkoutModel model = new WorkoutModel(this);
//get the id passed from previous activity (workout lists)
long id = getIntent().getLongExtra("ID", -1);
//if ID is invalid, go back to home screen
if... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
//create model object
WorkoutModel model = new WorkoutModel(this);
//get the id passed from previous activity (workout lists)
long id = getIntent().getLongExtra("ID", -1);
//if ID is invalid, go back to home screen
if... |
diff --git a/OpenGLEN/src/com/super2k/openglen/animation/Animation3D.java b/OpenGLEN/src/com/super2k/openglen/animation/Animation3D.java
index 4d901d8..d26fbcc 100644
--- a/OpenGLEN/src/com/super2k/openglen/animation/Animation3D.java
+++ b/OpenGLEN/src/com/super2k/openglen/animation/Animation3D.java
@@ -1,509 +1,510 @@... | true | true | boolean calcCurrentIndex(float timeDelta, int index) {
mTempLoop = false;
updateTime(timeDelta, 0);
if ((!mReverse[index] && mCurrentTime[index] > mTempMaxtime) ||
(mReverse[index] && mCurrentTime[index] < mTempMaxtime)) {
//Reached end of animation
i... | boolean calcCurrentIndex(float timeDelta, int index) {
mTempLoop = false;
updateTime(timeDelta, 0);
if ((!mReverse[index] && mCurrentTime[index] > mTempMaxtime) ||
(mReverse[index] && mCurrentTime[index] < mTempMaxtime)) {
//Reached end of animation
i... |
diff --git a/src/main/java/eu/wisebed/wisedb/controller/VirtualNodeDescriptionControllerImpl.java b/src/main/java/eu/wisebed/wisedb/controller/VirtualNodeDescriptionControllerImpl.java
index 090dc05..6e20c6d 100644
--- a/src/main/java/eu/wisebed/wisedb/controller/VirtualNodeDescriptionControllerImpl.java
+++ b/src/main... | true | true | public String rebuild(int testbedId) {
StringBuilder response = new StringBuilder("+---------------------------------------------------------------+\n");
List<VirtualNodeDescription> virtualNodes = list();
for (VirtualNodeDescription virtualNode : virtualNodes) {
response.append(... | public String rebuild(int testbedId) {
StringBuilder response = new StringBuilder("+---------------------------------------------------------------+\n");
List<VirtualNodeDescription> virtualNodes = list();
for (VirtualNodeDescription virtualNode : virtualNodes) {
response.append(... |
diff --git a/Allocator/src/main/java/com/em/allocator/AllocatorOutput.java b/Allocator/src/main/java/com/em/allocator/AllocatorOutput.java
index 5c3098a..c5a4b2d 100644
--- a/Allocator/src/main/java/com/em/allocator/AllocatorOutput.java
+++ b/Allocator/src/main/java/com/em/allocator/AllocatorOutput.java
@@ -1,456 +1,45... | false | true | public static void outputItemToFurnace(List<ItemAllocatable> inputItems, Furnace outputContainer, InventoryHolder inputContainer, AllocatorBlock al, Allocator thePlugin) {
// the counter to limit dropped
List<ItemStack> stackDropped = new ArrayList<ItemStack>();
boolean isOneItemAllocated = false;
for (Item... | public static void outputItemToFurnace(List<ItemAllocatable> inputItems, Furnace outputContainer, InventoryHolder inputContainer, AllocatorBlock al, Allocator thePlugin) {
// the counter to limit dropped
List<ItemStack> stackDropped = new ArrayList<ItemStack>();
boolean isOneItemAllocated = false;
for (Item... |
diff --git a/lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/tracecontrol/wizards/TraceConfigurationPage.java b/lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/tracecontrol/wizards/TraceConfigurationPage.java
index d0432a504..e89e94350 100644
--- a/lttng/org.eclipse.l... | false | true | public void createControl(Composite parent) {
GridData griddata = new GridData();
griddata = new GridData();
Composite composite1 = new Composite(parent, SWT.NONE);
GridLayout compositeLayout1 = new GridLayout(4, false);
composite1.setSize(520, 300);
composite1.setLayou... | public void createControl(Composite parent) {
GridData griddata = new GridData();
griddata = new GridData();
Composite composite1 = new Composite(parent, SWT.NONE);
GridLayout compositeLayout1 = new GridLayout(4, false);
composite1.setSize(520, 300);
composite1.setLayou... |
diff --git a/plugins/org.eclipse.viatra2.emf.incquery.validation.runtime/src/org/eclipse/viatra2/emf/incquery/validation/runtime/ModelEditorPartListener.java b/plugins/org.eclipse.viatra2.emf.incquery.validation.runtime/src/org/eclipse/viatra2/emf/incquery/validation/runtime/ModelEditorPartListener.java
index a25dd33b.... | true | true | public void partClosed(IWorkbenchPart part) {
if (part instanceof IEditorPart) {
IEditorPart closedEditor = (IEditorPart) part;
Set<ConstraintAdapter<IPatternMatch>> adapters = ValidationUtil.getAdapterMap().get(closedEditor);
if (adapters != null) {
for (ConstraintAdapter<IPatternMatch> adapter... | public void partClosed(IWorkbenchPart part) {
if (part instanceof IEditorPart) {
IEditorPart closedEditor = (IEditorPart) part;
Set<ConstraintAdapter<IPatternMatch>> adapters = ValidationUtil.getAdapterMap().remove(closedEditor);
if (adapters != null) {
for (ConstraintAdapter<IPatternMatch> adap... |
diff --git a/src/org/eclipse/core/internal/localstore/UnifiedTree.java b/src/org/eclipse/core/internal/localstore/UnifiedTree.java
index fbc9aaf1..e5d91377 100644
--- a/src/org/eclipse/core/internal/localstore/UnifiedTree.java
+++ b/src/org/eclipse/core/internal/localstore/UnifiedTree.java
@@ -1,432 +1,433 @@
/*******... | true | true | protected void addChildren(UnifiedTreeNode node) throws CoreException {
Resource parent = (Resource)node.getResource();
// is there a possibility to have children?
int parentType = parent.getType();
if (parentType == IResource.FILE && node.isFile())
return;
// get the list of resources in the file syst... | protected void addChildren(UnifiedTreeNode node) throws CoreException {
Resource parent = (Resource)node.getResource();
// is there a possibility to have children?
int parentType = parent.getType();
if (parentType == IResource.FILE && node.isFile())
return;
// get the list of resources in the file syst... |
diff --git a/BOLT/src/entity/util/EntityLoader.java b/BOLT/src/entity/util/EntityLoader.java
index 9102d5d..edf70d1 100644
--- a/BOLT/src/entity/util/EntityLoader.java
+++ b/BOLT/src/entity/util/EntityLoader.java
@@ -1,201 +1,202 @@
package entity.util;
import java.io.BufferedReader;
import java.io.File;
import j... | true | true | public static EntityBuilder loadEntity(String name) throws IOException
{
String path = "";
if(doesEntityExist(name))
{
if(isParentValid(entitiesFound.get(name).getParent())) path = entitiesFound.get(name).getPath();
else return null;
}
else return null;
File OBJFile = new File(path);
Buffere... | public static EntityBuilder loadEntity(String name) throws IOException
{
String path = "";
if(doesEntityExist(name))
{
if(isParentValid(entitiesFound.get(name).getParent())) path = entitiesFound.get(name).getPath();
else return null;
}
else return null;
File OBJFile = new File(path);
Buffere... |
diff --git a/server/jetty/src/test/java/org/mortbay/jetty/servlet/AbstractSessionTest.java b/server/jetty/src/test/java/org/mortbay/jetty/servlet/AbstractSessionTest.java
index a3176b144..2f8a909f8 100644
--- a/server/jetty/src/test/java/org/mortbay/jetty/servlet/AbstractSessionTest.java
+++ b/server/jetty/src/test/jav... | true | true | public void testSessions () throws Exception
{
SessionTestClient client1 = new SessionTestClient("http://"+__host1+":"+__port1);
SessionTestClient client2 = new SessionTestClient("http://"+__host2+":"+__port2);
// confirm that user has no session
assertFalse(client1.send("/contex... | public void testSessions () throws Exception
{
SessionTestClient client1 = new SessionTestClient("http://"+__host1+":"+__port1);
SessionTestClient client2 = new SessionTestClient("http://"+__host2+":"+__port2);
// confirm that user has no session
assertFalse(client1.send("/contex... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java
index 86f88f88..3f52e8e0 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Comman... | true | true | public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
final User target = user.getTeleportRequest();
if (target == null || !target.isOnline())
{
throw new Exception(_("noPendingRequest"));
}
if (user.isTpRequestHere() && ((!target.isAu... | public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
final User target = user.getTeleportRequest();
if (target == null || !target.isOnline())
{
throw new Exception(_("noPendingRequest"));
}
if (user.isTpRequestHere() && ((!target.isAu... |
diff --git a/src/com/android/mms/data/Contact.java b/src/com/android/mms/data/Contact.java
index f1c6bc1..2d725f0 100644
--- a/src/com/android/mms/data/Contact.java
+++ b/src/com/android/mms/data/Contact.java
@@ -1,488 +1,490 @@
package com.android.mms.data;
import java.util.ArrayList;
import java.util.HashSet;
i... | true | true | private static void updateContact(final Contact c) {
if (c == null) {
return;
}
ContactInfoCache cache = ContactInfoCache.getInstance();
ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber);
synchronized (Cache.getInstance()) {
if (cont... | private static void updateContact(final Contact c) {
if (c == null) {
return;
}
ContactInfoCache cache = ContactInfoCache.getInstance();
ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber);
synchronized (Cache.getInstance()) {
if (cont... |
diff --git a/freeplane/src/org/freeplane/view/swing/map/NodeViewLayoutAdapter.java b/freeplane/src/org/freeplane/view/swing/map/NodeViewLayoutAdapter.java
index 801fa8ff6..e997790ef 100644
--- a/freeplane/src/org/freeplane/view/swing/map/NodeViewLayoutAdapter.java
+++ b/freeplane/src/org/freeplane/view/swing/map/NodeVi... | true | true | protected void calcLayout(final boolean isLeft, final LayoutData data) {
int highestSummaryLevel = 1;
int level = 1;
for (int i = 0; i < getChildCount(); i++) {
final NodeView child = (NodeView) getView().getComponent(i);
if (child.isLeft() != isLeft) {
... | protected void calcLayout(final boolean isLeft, final LayoutData data) {
int highestSummaryLevel = 1;
int level = 1;
for (int i = 0; i < getChildCount(); i++) {
final NodeView child = (NodeView) getView().getComponent(i);
if (child.isLeft() != isLeft) {
... |
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/RpcStatus.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/RpcStatus.java
index 713df5a08..6f18da3a2 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/RpcStatus.java
+++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/RpcSta... | true | true | RpcStatus(final Panel p) {
final FlowPanel r = new FlowPanel();
r.setStyleName(Gerrit.RESOURCES.css().rpcStatusPanel());
p.add(r);
loading = new InlineLabel();
loading.setText(Gerrit.C.rpcStatusLoading());
loading.setStyleName(Gerrit.RESOURCES.css().rpcStatus());
loading.addStyleDependent... | RpcStatus(final Panel p) {
final FlowPanel r = new FlowPanel();
r.setStyleName(Gerrit.RESOURCES.css().rpcStatusPanel());
p.add(r);
loading = new InlineLabel();
loading.setText(Gerrit.C.rpcStatusLoading());
loading.setStyleName(Gerrit.RESOURCES.css().rpcStatus());
loading.addStyleName(Gerr... |
diff --git a/geogebra/geogebra3D/euclidian3D/opengl/Renderer.java b/geogebra/geogebra3D/euclidian3D/opengl/Renderer.java
index 6c95519f6..935b84372 100644
--- a/geogebra/geogebra3D/euclidian3D/opengl/Renderer.java
+++ b/geogebra/geogebra3D/euclidian3D/opengl/Renderer.java
@@ -1,2051 +1,2053 @@
package geogebra3D.eucli... | false | true | public void display(GLAutoDrawable gLDrawable) {
//Application.debug("display");
//double displayTime = System.currentTimeMillis();
gl = gLDrawable.getGL();
//picking
if(waitForPick){
doPick();
//Application.debug... | public void display(GLAutoDrawable gLDrawable) {
//Application.debug("display");
//double displayTime = System.currentTimeMillis();
gl = gLDrawable.getGL();
//picking
if(waitForPick){
doPick();
//Application.debug... |
diff --git a/poo/file/NaturalMergeSort.java b/poo/file/NaturalMergeSort.java
index fe3d2aa..2798ae8 100644
--- a/poo/file/NaturalMergeSort.java
+++ b/poo/file/NaturalMergeSort.java
@@ -1,98 +1,97 @@
package poo.file;
import java.io.*;
import java.util.*;
public class NaturalMergeSort {
public static void main... | true | true | static void risolvi(String nomeFile) {
ObjectFile<Integer> f = null, tmp1 = null, tmp2 = null;
try {
f = new ObjectFile<Integer>(nomeFile, ObjectFile.Modo.LETTURA);
tmp1 = new ObjectFile<Integer>("tmp1", ObjectFile.Modo.SCRITTURA);
tmp2 = new ObjectFile<Integer>("tmp2", ObjectFile.Modo.SCRITTURA);
int ... | static void risolvi(String nomeFile) {
ObjectFile<Integer> f = null, tmp1 = null, tmp2 = null;
try {
f = new ObjectFile<Integer>(nomeFile, ObjectFile.Modo.LETTURA);
tmp1 = new ObjectFile<Integer>("tmp1", ObjectFile.Modo.SCRITTURA);
tmp2 = new ObjectFile<Integer>("tmp2", ObjectFile.Modo.SCRITTURA);
int ... |
diff --git a/src/main/java/org/mozilla/gecko/sync/net/HMACAuthHeaderProvider.java b/src/main/java/org/mozilla/gecko/sync/net/HMACAuthHeaderProvider.java
index 9fd0fb0c2..643417a1f 100644
--- a/src/main/java/org/mozilla/gecko/sync/net/HMACAuthHeaderProvider.java
+++ b/src/main/java/org/mozilla/gecko/sync/net/HMACAuthHea... | false | true | protected Header getAuthHeader(HttpRequestBase request, BasicHttpContext context, DefaultHttpClient client,
long timestamp, String nonce, String extra)
throws UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException {
// Validate timestamp. From the MAC Authentication spec:
// ... | protected Header getAuthHeader(HttpRequestBase request, BasicHttpContext context, DefaultHttpClient client,
long timestamp, String nonce, String extra)
throws UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException {
// Validate timestamp. From the MAC Authentication spec:
// ... |
diff --git a/ZMainProject/Trunk/MainProject/src/servlets/FormD.java b/ZMainProject/Trunk/MainProject/src/servlets/FormD.java
index 2fdbf9db..44b74dc1 100644
--- a/ZMainProject/Trunk/MainProject/src/servlets/FormD.java
+++ b/ZMainProject/Trunk/MainProject/src/servlets/FormD.java
@@ -1,72 +1,72 @@
package servlets;
i... | true | true | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException
{
if (req.getParameter("Submit") != null)
{
String Email = req.getParameter("Email");
String AmountWorked = req.getParameter("AmountWorked");
String Details = req.getParameter("Details");
if (Email != null && A... | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException
{
if (req.getParameter("Submit") != null)
{
String Email = req.getParameter("Email");
String AmountWorked = req.getParameter("AmountWorked");
String Details = req.getParameter("Details");
if (Email != null && A... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSResultSetRow.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSResultSetRow.java
index f405a278d..f55da881d 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSResultSetRow.... | true | true | public Object get( String name, Scriptable start )
{
if( ScriptConstants.OUTER_RESULT_KEYWORD.equalsIgnoreCase( name ))
{
if( this.helper.getParent( )!= null)
return helper.getParent( ).getScriptable( );
else
throw Context.reportRuntimeError( DataResourceHandle.getInstance( ).getMessage( ResourceCon... | public Object get( String name, Scriptable start )
{
if( ScriptConstants.OUTER_RESULT_KEYWORD.equalsIgnoreCase( name ))
{
if( this.helper.getParent( )!= null)
return helper.getParent( ).getScriptable( );
else
throw Context.reportRuntimeError( DataResourceHandle.getInstance( ).getMessage( ResourceCon... |
diff --git a/src/contrib/raid/src/test/org/apache/hadoop/raid/TestCodec.java b/src/contrib/raid/src/test/org/apache/hadoop/raid/TestCodec.java
index 7885a9f..82eb9e9 100644
--- a/src/contrib/raid/src/test/org/apache/hadoop/raid/TestCodec.java
+++ b/src/contrib/raid/src/test/org/apache/hadoop/raid/TestCodec.java
@@ -1,1... | true | true | public void testCreation() throws Exception {
Configuration conf = new Configuration();
String jsonStr =
" [\n" +
" { \n" +
" \"id\" : \"rs\",\n" +
" \"parity_dir\" : \"/raidrs\",\n" +
" \"stripe_length\" : 10,\n" +
" \"parity_length\" : 4,\n" +
" \"p... | public void testCreation() throws Exception {
Configuration conf = new Configuration();
String jsonStr =
" [\n" +
" { \n" +
" \"id\" : \"rs\",\n" +
" \"parity_dir\" : \"/raidrs\",\n" +
" \"stripe_length\" : 10,\n" +
" \"parity_length\" : 4,\n" +
" \"p... |
diff --git a/flexodesktop/model/flexoxmlcode/src/main/java/org/openflexo/xmlcode/StringEncoder.java b/flexodesktop/model/flexoxmlcode/src/main/java/org/openflexo/xmlcode/StringEncoder.java
index 8aafa8cd2..31f020b17 100644
--- a/flexodesktop/model/flexoxmlcode/src/main/java/org/openflexo/xmlcode/StringEncoder.java
+++ ... | true | true | public Class<?> convertFromString(String value) {
if (value == null || value.isEmpty()) {
return null;
}
try {
if (value.equals("boolean")) {
return Boolean.TYPE;
}
if (value.equals("int")) {
return Integer.TYPE;
}
if (value.equals("short")) {
return Short.TYPE;
}
... | public Class<?> convertFromString(String value) {
if (value == null || value.isEmpty()) {
return null;
}
try {
if (value.equals("boolean")) {
return Boolean.TYPE;
}
if (value.equals("int")) {
return Integer.TYPE;
}
if (value.equals("short")) {
return Short.TYPE;
}
... |
diff --git a/modules/Core/src/main/java/jpower/core/Worker.java b/modules/Core/src/main/java/jpower/core/Worker.java
index 2999c87..a59b57f 100644
--- a/modules/Core/src/main/java/jpower/core/Worker.java
+++ b/modules/Core/src/main/java/jpower/core/Worker.java
@@ -1,137 +1,137 @@
package jpower.core;
import jpower.... | true | true | public void run() {
while (!stop) {
try {
Task task = queue.poll(250, TimeUnit.MILLISECONDS);
if (task == null)
return;
if (!task.isCanceled()) {
isWorking = true;
task.execute();
... | public void run() {
while (!stop) {
try {
Task task = queue.poll(250, TimeUnit.MILLISECONDS);
if (task == null)
continue;
if (!task.isCanceled()) {
isWorking = true;
task.execute();
... |
diff --git a/assets/src/org/ruboto/JRubyAdapter.java b/assets/src/org/ruboto/JRubyAdapter.java
index 265491f..0efce0b 100644
--- a/assets/src/org/ruboto/JRubyAdapter.java
+++ b/assets/src/org/ruboto/JRubyAdapter.java
@@ -1,529 +1,529 @@
package org.ruboto;
import java.io.File;
import java.io.FilenameFilter;
impor... | false | true | public static synchronized boolean setUpJRuby(Context appContext, PrintStream out) {
if (!initialized) {
// BEGIN Ruboto HeapAlloc
@SuppressWarnings("unused")
byte[] arrayForHeapAllocation = new byte[13 * 1024 * 1024];
arrayForHeapAllocation = null;
... | public static synchronized boolean setUpJRuby(Context appContext, PrintStream out) {
if (!initialized) {
// BEGIN Ruboto HeapAlloc
@SuppressWarnings("unused")
byte[] arrayForHeapAllocation = new byte[13 * 1024 * 1024];
arrayForHeapAllocation = null;
... |
diff --git a/src/com/dwarfholm/activitystats/braizhauler/ASData.java b/src/com/dwarfholm/activitystats/braizhauler/ASData.java
index e130f5a..8225174 100644
--- a/src/com/dwarfholm/activitystats/braizhauler/ASData.java
+++ b/src/com/dwarfholm/activitystats/braizhauler/ASData.java
@@ -1,117 +1,117 @@
package com.dwarfh... | true | true | public void recordOnline() {
if (playerlist.size() > 0) {
for (ASPlayer player:playerlist.values())
if ( plugin.getServer().getPlayer(player.getName()).isOnline() )
player.curPeriod.addOnline();
if( plugin.PeriodRolloverDue()) {
plugin.info("Paying all Players");
for (ASPlayer player:playerlis... | public void recordOnline() {
if (playerlist!=null && playerlist.size() > 0) {
for (ASPlayer player:playerlist.values())
if ( plugin.getServer().getPlayer(player.getName()).isOnline() )
player.curPeriod.addOnline();
if( plugin.PeriodRolloverDue()) {
plugin.info("Paying all Players");
for (ASPla... |
diff --git a/Cocoa4Android/src/org/cocoa4android/third/sbjson/SBJsonParser.java b/Cocoa4Android/src/org/cocoa4android/third/sbjson/SBJsonParser.java
index b95eeec..5bddc39 100644
--- a/Cocoa4Android/src/org/cocoa4android/third/sbjson/SBJsonParser.java
+++ b/Cocoa4Android/src/org/cocoa4android/third/sbjson/SBJsonParser.... | true | true | private NSObject parseDictionary(String content){
try {
JSONObject jsonObject = new JSONObject(content);
@SuppressWarnings("unchecked")
Iterator<String> iterator = jsonObject.keys();
NSMutableDictionary dic = NSMutableDictionary.dictionary();
while (iterator.hasNext()) {
String key = (String) ... | private NSObject parseDictionary(String content){
try {
JSONObject jsonObject = new JSONObject(content);
@SuppressWarnings("unchecked")
Iterator<String> iterator = jsonObject.keys();
NSMutableDictionary dic = NSMutableDictionary.dictionary();
while (iterator.hasNext()) {
String key = (String) ... |
diff --git a/src/be/ibridge/kettle/trans/step/tableoutput/TableOutput.java b/src/be/ibridge/kettle/trans/step/tableoutput/TableOutput.java
index a34facbb..48ae1eb7 100644
--- a/src/be/ibridge/kettle/trans/step/tableoutput/TableOutput.java
+++ b/src/be/ibridge/kettle/trans/step/tableoutput/TableOutput.java
@@ -1,349 +1,... | false | true | private boolean writeToTable(Row r)
throws KettleException
{
if (r==null) // Stop: last line or error encountered
{
if (log.isDetailed()) logDetailed("Last line inserted: stop");
return false;
}
PreparedStatement insertStatement = null;
String tableName = null;
Value ... | private boolean writeToTable(Row r) throws KettleException
{
if (r==null) // Stop: last line or error encountered
{
if (log.isDetailed()) logDetailed("Last line inserted: stop");
return false;
}
PreparedStatement insertStatement = null;
String tableName = null;
Value re... |
diff --git a/src/java/org/apache/fop/events/LoggingEventListener.java b/src/java/org/apache/fop/events/LoggingEventListener.java
index 03467303e..58fbb7f97 100644
--- a/src/java/org/apache/fop/events/LoggingEventListener.java
+++ b/src/java/org/apache/fop/events/LoggingEventListener.java
@@ -1,92 +1,100 @@
/*
* Lice... | false | true | public void processEvent(Event event) {
String msg = EventFormatter.format(event);
EventSeverity severity = event.getSeverity();
if (severity == EventSeverity.INFO) {
log.info(msg);
} else if (severity == EventSeverity.WARN) {
log.warn(msg);
} else if ... | public void processEvent(Event event) {
String msg = EventFormatter.format(event);
EventSeverity severity = event.getSeverity();
if (severity == EventSeverity.INFO) {
log.info(msg);
} else if (severity == EventSeverity.WARN) {
log.warn(msg);
} else if ... |
diff --git a/core/src/visad/trunk/data/amanda/NuView.java b/core/src/visad/trunk/data/amanda/NuView.java
index 0409c70d1..15d165782 100644
--- a/core/src/visad/trunk/data/amanda/NuView.java
+++ b/core/src/visad/trunk/data/amanda/NuView.java
@@ -1,324 +1,324 @@
/*
VisAD system for interactive analysis and visualizatio... | true | true | public NuView(String[] args)
throws RemoteException, VisADException
{
CmdlineParser cmdline = new CmdlineParser(this);
if (!cmdline.processArgs(args)) {
System.exit(1);
return;
}
AmandaFile file = openFile(fileName);
final FieldImpl amanda = file.makeEventData(timeSequence);
... | public NuView(String[] args)
throws RemoteException, VisADException
{
CmdlineParser cmdline = new CmdlineParser(this);
if (!cmdline.processArgs(args)) {
System.exit(1);
return;
}
AmandaFile file = openFile(fileName);
final FieldImpl amanda = file.makeEventData(timeSequence);
... |
diff --git a/src/com/android/camera/ui/SharePopup.java b/src/com/android/camera/ui/SharePopup.java
index aa34abf2..6bd6aee3 100644
--- a/src/com/android/camera/ui/SharePopup.java
+++ b/src/com/android/camera/ui/SharePopup.java
@@ -1,228 +1,228 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licens... | true | true | public SharePopup(Activity activity, Uri uri, Bitmap bitmap, String mimeType, int orientation,
View anchor) {
super(activity);
// Initialize variables
mContext = activity;
mUri = uri;
mMimeType = mimeType;
LayoutInflater inflater = (LayoutInflater) mConte... | public SharePopup(Activity activity, Uri uri, Bitmap bitmap, String mimeType, int orientation,
View anchor) {
super(activity);
// Initialize variables
mContext = activity;
mUri = uri;
mMimeType = mimeType;
LayoutInflater inflater = (LayoutInflater) mConte... |
diff --git a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/server/servlet/ResteasyBootstrap.java b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/server/servlet/ResteasyBootstrap.java
index 42fe11673..0ba98f129 100644
--- a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/ser... | false | true | public void contextInitialized(ServletContextEvent event)
{
ResteasyProviderFactory.setInstance(factory);
event.getServletContext().setAttribute(ResteasyProviderFactory.class.getName(), factory);
dispatcher = new SynchronousDispatcher();
dispatcher.setProviderFactory(factory);
regis... | public void contextInitialized(ServletContextEvent event)
{
ResteasyProviderFactory.setInstance(factory);
event.getServletContext().setAttribute(ResteasyProviderFactory.class.getName(), factory);
dispatcher = new SynchronousDispatcher();
dispatcher.setProviderFactory(factory);
regis... |
diff --git a/modules/rampart-integration/src/test/java/org/apache/rampart/RampartTest.java b/modules/rampart-integration/src/test/java/org/apache/rampart/RampartTest.java
index 9090e1b0f..0b7163cfb 100644
--- a/modules/rampart-integration/src/test/java/org/apache/rampart/RampartTest.java
+++ b/modules/rampart-integrati... | true | true | public void testWithPolicy() {
try {
String repo = Constants.TESTING_PATH + "rampart_client_repo";
ConfigurationContext configContext = ConfigurationContextFactory.
createConfigurationContextFromFileSystem(repo, null);
ServiceClient serviceCl... | public void testWithPolicy() {
try {
String repo = Constants.TESTING_PATH + "rampart_client_repo";
ConfigurationContext configContext = ConfigurationContextFactory.
createConfigurationContextFromFileSystem(repo, null);
ServiceClient serviceCl... |
diff --git a/puyopuyo-android/src/com/tacoid/puyopuyo/Controller.java b/puyopuyo-android/src/com/tacoid/puyopuyo/Controller.java
index 0e3e321..a04dbe5 100644
--- a/puyopuyo-android/src/com/tacoid/puyopuyo/Controller.java
+++ b/puyopuyo-android/src/com/tacoid/puyopuyo/Controller.java
@@ -1,90 +1,93 @@
package com.taco... | true | true | public boolean keyDown(int key) {
switch (key) {
case Keys.LEFT:
gameLogic.moveLeft();
break;
case Keys.RIGHT:
gameLogic.moveRight();
break;
case Keys.DOWN:
gameLogic.down();
break;
case Keys.ALT_LEFT:
case Keys.UP:
gameLogic.rotateRight();
break;
case Keys.CONTROL_LEFT:
gameLo... | public boolean keyDown(int key) {
if (key != Keys.BACK && gameLogic.isPaused()) {
return false;
}
switch (key) {
case Keys.LEFT:
gameLogic.moveLeft();
break;
case Keys.RIGHT:
gameLogic.moveRight();
break;
case Keys.DOWN:
gameLogic.down();
break;
case Keys.ALT_LEFT:
case Keys.UP:
... |
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/QueryItemExecutor.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/QueryItemExecutor.java
index 58f16ae40..ad8b68fd9 100644
--- a/plugins/org.eclipse.birt.report.engine/src/org/eclips... | true | true | protected void executeQuery( )
{
rset = null;
IDataQueryDefinition query = design.getQuery( );
IBaseResultSet parentRset = getParentResultSet( );
context.setResultSet( parentRset );
if ( query != null )
{
try
{
rset = (IQueryResultSet) context.executeQuery( parentRset,
query );
context... | protected void executeQuery( )
{
rset = null;
IDataQueryDefinition query = design.getQuery( );
IBaseResultSet parentRset = getParentResultSet( );
context.setResultSet( parentRset );
if ( query != null )
{
try
{
rset = (IQueryResultSet) context.executeQuery( parentRset,
query );
context... |
diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java
index 9285ab25..f08030fe 100644
--- a/src/biz/bokhorst/xprivacy/XPrivacy.java
+++ b/src/biz/bokhorst/xprivacy/XPrivacy.java
@@ -1,456 +1,457 @@
package biz.bokhorst.xprivacy;
import java.lang.reflect.Constructor;
import ... | true | true | private static void hook(final XHook hook, ClassLoader classLoader, String secret) {
// Check SDK version
Hook md = null;
String message = null;
if (hook.getRestrictionName() == null) {
if (hook.getSdk() == 0)
message = "No SDK specified for " + hook;
} else {
md = PrivacyManager.getHook(hook.getRe... | private static void hook(final XHook hook, ClassLoader classLoader, String secret) {
// Check SDK version
Hook md = null;
String message = null;
if (hook.getRestrictionName() == null) {
if (hook.getSdk() == 0)
message = "No SDK specified for " + hook;
} else {
md = PrivacyManager.getHook(hook.getRe... |
diff --git a/src/main/java/test/JacksonBug.java b/src/main/java/test/JacksonBug.java
index a1874c9..85472bd 100644
--- a/src/main/java/test/JacksonBug.java
+++ b/src/main/java/test/JacksonBug.java
@@ -1,62 +1,64 @@
package test;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import... | false | true | public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {
String json =
"{" +
"\"first\":\"Bob\"" +
", \"last\":\"Builder\"" +
", \"eyeColor\":\"brown\"" +
"}";
ObjectMapper mapper = new ObjectMapper();
JacksonBug bug = mapper... | public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {
String json =
"{" +
"\"one\":\"one\"" +
", \"first\":\"Bob\"" +
", \"two\":\"two\"" +
", \"last\":\"Builder\"" +
", \"th... |
diff --git a/web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html/comment/CommentWidget.java b/web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html/comment/CommentWidget.java
index a26bb8db43..642103fe82 100644
--- a/web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html... | true | true | private String setUpJQueryCommentPlugin() throws JspTagException {
String context = URLManager.getApplicationURL();
OrganizationController controller = new OrganizationController();
ResourcesWrapper settings = getSettings();
String[] profiles = controller.getUserProfiles(getUserId(), getComponentId()... | private String setUpJQueryCommentPlugin() throws JspTagException {
String context = URLManager.getApplicationURL();
OrganizationController controller = new OrganizationController();
ResourcesWrapper settings = getSettings();
String[] profiles = controller.getUserProfiles(getUserId(), getComponentId()... |
diff --git a/deduplication-document/deduplication-document-impl/src/main/java/pl/edu/icm/coansys/deduplication/document/DuplicateWorkDetectReduceService.java b/deduplication-document/deduplication-document-impl/src/main/java/pl/edu/icm/coansys/deduplication/document/DuplicateWorkDetectReduceService.java
index c6c9f236.... | false | true | Map<Text, List<DocumentProtos.DocumentMetadata>> splitDocuments(Text key, List<DocumentProtos.DocumentMetadata> documents, int level) {
// check if set was forced to split; if yes, keep the suffix
String keyStr = key.toString();
String suffix = "";
if (keyStr.contains("-")) ... | Map<Text, List<DocumentProtos.DocumentMetadata>> splitDocuments(Text key, List<DocumentProtos.DocumentMetadata> documents, int level) {
// check if set was forced to split; if yes, keep the suffix
String keyStr = key.toString();
String suffix = "";
if (keyStr.contains("-")) ... |
diff --git a/src/main/java/com/gitblit/wicket/pages/SessionPage.java b/src/main/java/com/gitblit/wicket/pages/SessionPage.java
index 22ae6e2e..8065c5aa 100644
--- a/src/main/java/com/gitblit/wicket/pages/SessionPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/SessionPage.java
@@ -1,98 +1,98 @@
/*
* Copyright 2... | true | true | private void login() {
GitBlitWebSession session = GitBlitWebSession.get();
if (session.isLoggedIn() && !session.isSessionInvalidated()) {
// already have a session, refresh usermodel to pick up
// any changes to permissions or roles (issue-186)
UserModel user = app().users().getUserModel(session.getUser(... | private void login() {
GitBlitWebSession session = GitBlitWebSession.get();
if (session.isLoggedIn() && !session.isSessionInvalidated()) {
// already have a session, refresh usermodel to pick up
// any changes to permissions or roles (issue-186)
UserModel user = app().users().getUserModel(session.getUser(... |
diff --git a/src/main/java/com/authdb/util/Config.java b/src/main/java/com/authdb/util/Config.java
index f845ce9..4683386 100644
--- a/src/main/java/com/authdb/util/Config.java
+++ b/src/main/java/com/authdb/util/Config.java
@@ -1,371 +1,372 @@
/*
* This file is part of AuthDB <http://www.authdb.com/>.
*
* AuthD... | true | true | public Config(AuthDB plugin, String config, String directory, String filename) {
if (config.equalsIgnoreCase("basic")) {
configFile = plugin.getBasicConfig();
language_commands = getConfigString("plugin.language.commands", "English");
languag... | public Config(AuthDB plugin, String config, String directory, String filename) {
if (config.equalsIgnoreCase("basic")) {
configFile = plugin.getBasicConfig();
language_commands = getConfigString("plugin.language.commands", "English");
languag... |
diff --git a/modules/resin/src/com/caucho/transaction/enhancer/TransactionEnhancer.java b/modules/resin/src/com/caucho/transaction/enhancer/TransactionEnhancer.java
index a102b74b4..31f252031 100644
--- a/modules/resin/src/com/caucho/transaction/enhancer/TransactionEnhancer.java
+++ b/modules/resin/src/com/caucho/trans... | false | true | public void enhance(GenClass genClass,
JMethod jMethod,
JAnnotation jAnn)
{
TransactionAttributeType type;
type = (TransactionAttributeType) jAnn.get("value");
BaseMethod genMethod = genClass.createMethod(jMethod);
CallChain call = genMethod.getCall();
switch (type) {
case ... | public void enhance(GenClass genClass,
JMethod jMethod,
JAnnotation jAnn)
{
TransactionAttributeType type;
type = (TransactionAttributeType) jAnn.get("value");
BaseMethod genMethod = genClass.createMethod(jMethod);
CallChain call = genMethod.getCall();
switch (type) {
case ... |
diff --git a/Java_CCN/test/ccn/data/content/CollectionObjectTestRepo.java b/Java_CCN/test/ccn/data/content/CollectionObjectTestRepo.java
index 32f4622cc..4b53623b3 100644
--- a/Java_CCN/test/ccn/data/content/CollectionObjectTestRepo.java
+++ b/Java_CCN/test/ccn/data/content/CollectionObjectTestRepo.java
@@ -1,100 +1,10... | true | true | public void testCollections() throws Exception {
ContentName testPrefix = ContentName.fromNative(baseName, "testCollections");
ContentName nonCollectionName = ContentName.fromNative(testPrefix, "myNonCollection");
ContentName collectionName = ContentName.fromNative(testPrefix, "myCollection");
// Write som... | public void testCollections() throws Exception {
ContentName testPrefix = ContentName.fromNative(baseName, "testCollections");
ContentName nonCollectionName = ContentName.fromNative(testPrefix, "myNonCollection");
ContentName collectionName = ContentName.fromNative(testPrefix, "myCollection");
// Write som... |
diff --git a/plugins/ui/com.vectorsf.jvoice.ui.navigator/src/com/vectorsf/jvoice/ui/navigator/handler/AddBeanScopeHandler.java b/plugins/ui/com.vectorsf.jvoice.ui.navigator/src/com/vectorsf/jvoice/ui/navigator/handler/AddBeanScopeHandler.java
index 7eb32f7c..06293b49 100644
--- a/plugins/ui/com.vectorsf.jvoice.ui.navig... | true | true | public boolean select(Viewer viewer, Object parentElement,
Object element) {
if (element instanceof ICompilationUnit) {
ITypeRoot unit = (ITypeRoot) element;
IType type = unit.findPrimaryType();
if(type == null)
return false;
IAnnotation[] annotations;
try {
annotations ... | public boolean select(Viewer viewer, Object parentElement,
Object element) {
if (element instanceof ITypeRoot) {
ITypeRoot unit = (ITypeRoot) element;
IType type = unit.findPrimaryType();
if(type == null)
return false;
IAnnotation[] annotations;
try {
annotations = type.... |
diff --git a/src/main/java/com/greatmancode/craftconomy3/commands/setup/SetupDatabaseCommand.java b/src/main/java/com/greatmancode/craftconomy3/commands/setup/SetupDatabaseCommand.java
index a475707..1b30e41 100644
--- a/src/main/java/com/greatmancode/craftconomy3/commands/setup/SetupDatabaseCommand.java
+++ b/src/main... | true | true | public void execute(String sender, String[] args) {
if (SetupWizard.getState() == SetupWizard.DATABASE_SETUP) {
if (args.length == 0) {
Common.getInstance().getServerCaller().sendMessage(sender, "{{DARK_GREEN}}Database setup step. Please select the database backend by using those following commands. (Use SQLi... | public void execute(String sender, String[] args) {
if (SetupWizard.getState() == SetupWizard.DATABASE_SETUP) {
if (args.length == 0) {
Common.getInstance().getServerCaller().sendMessage(sender, "{{DARK_GREEN}}Database setup step. Please select the database backend by using those following commands. (Use SQLi... |
diff --git a/me/Guga/Guga_SERVER_MOD/GugaVirtualCurrency.java b/me/Guga/Guga_SERVER_MOD/GugaVirtualCurrency.java
index 262578c..05e1bbe 100644
--- a/me/Guga/Guga_SERVER_MOD/GugaVirtualCurrency.java
+++ b/me/Guga/Guga_SERVER_MOD/GugaVirtualCurrency.java
@@ -1,304 +1,304 @@
package me.Guga.Guga_SERVER_MOD;
import java.... | false | true | private void Purchase(Prices item, int price, int amount)
{
Player p = plugin.getServer().getPlayer(playerName);
if (p == null)
return;
ItemStack order = null;
if (item.toString().contains("EGG_"))
{
if (item == Prices.EGG_CAVE_SPIDER)
order = new ItemStack(item.GetItemID(), amount, (short) 59);
... | private void Purchase(Prices item, int price, int amount)
{
Player p = plugin.getServer().getPlayer(playerName);
if (p == null)
return;
ItemStack order = null;
if (item.toString().contains("EGG_"))
{
if (item == Prices.EGG_CAVE_SPIDER)
order = new ItemStack(item.GetItemID(), amount, (short) 59);
... |
diff --git a/src/client/FibClient.java b/src/client/FibClient.java
index d9d0bfe..87d382c 100644
--- a/src/client/FibClient.java
+++ b/src/client/FibClient.java
@@ -1,50 +1,50 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package client;
import api.RMIUti... | true | true | private static int run(SpaceAPI space) {
try {
// Send out the tasks
FibTask task = new FibTask(N);
space.put(task);
// Get the results
Result result = space.take();
return (int)((Task)result.getTaskReturnValue()).getValue();
... | private static int run(SpaceAPI space) {
try {
// Send out the tasks
FibTask task = new FibTask(N);
space.put(task);
// Get the results
Result result = space.take();
return (Integer)((Task)result.getTaskReturnValue()).getValue();
... |
diff --git a/subsonic-main/src/main/java/net/sourceforge/subsonic/dao/schema/Schema28.java b/subsonic-main/src/main/java/net/sourceforge/subsonic/dao/schema/Schema28.java
index 2d31305a..c76fb035 100644
--- a/subsonic-main/src/main/java/net/sourceforge/subsonic/dao/schema/Schema28.java
+++ b/subsonic-main/src/main/java... | false | true | public void execute(JdbcTemplate template) {
if (template.queryForInt("select count(*) from version where version = 4") == 0) {
Schema28.LOG.info("Updating database schema to version 4.");
template.execute("insert into version values (4)");
}
if (!tableExists(templa... | public void execute(JdbcTemplate template) {
if (template.queryForInt("select count(*) from version where version = 4") == 0) {
Schema28.LOG.info("Updating database schema to version 4.");
template.execute("insert into version values (4)");
}
if (!tableExists(templa... |
diff --git a/E-Adventure/src/es/eucm/eadventure/common/loader/subparsers/EffectSubParser.java b/E-Adventure/src/es/eucm/eadventure/common/loader/subparsers/EffectSubParser.java
index 4d78a59c..6de3154d 100644
--- a/E-Adventure/src/es/eucm/eadventure/common/loader/subparsers/EffectSubParser.java
+++ b/E-Adventure/src/es... | true | true | public void startElement( String namespaceURI, String sName, String qName, Attributes attrs ) {
newEffect = null;
audioPath=new String();
// If it is a cancel-action tag
if( qName.equals( "cancel-action" ) ) {
newEffect = new CancelActionEffect( );
}
//... | public void startElement( String namespaceURI, String sName, String qName, Attributes attrs ) {
newEffect = null;
audioPath=new String();
// If it is a cancel-action tag
if( qName.equals( "cancel-action" ) ) {
newEffect = new CancelActionEffect( );
}
//... |
diff --git a/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer/entities/SpaceShip.java b/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer/entities/SpaceShip.java
index da5df4d..7e27e44 100644
--- a/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer/entities/SpaceShip.java
+++ b/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer... | true | true | private void renderHealthBar(SpriteBatch batch, Sprite s) {
// Render health overlay
final float x = s.getX() - s.getWidth() * 0.05f; // Space ship texture
// is off....
final float y = s.getY() + s.getHeight() * 1.15f;
final int xm = Math.round((float) health / SpaceShip.MAX_HEALTH * Textures.... | private void renderHealthBar(SpriteBatch batch, Sprite s) {
// Render health overlay
final float x = s.getX() - s.getWidth() * 0.05f; // Space ship texture is off....
final float y = s.getY() + s.getHeight() * 1.15f;
final int xm = Math.round((float) health / SpaceShip.MAX_HEALTH * Textures.HEALTH_HIGH.getReg... |
diff --git a/src/com/jeffreyregalia/Tower.java b/src/com/jeffreyregalia/Tower.java
index 0739be8..f520337 100644
--- a/src/com/jeffreyregalia/Tower.java
+++ b/src/com/jeffreyregalia/Tower.java
@@ -1,134 +1,133 @@
package com.jeffreyregalia;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
... | false | true | public void findTarget(ArrayList<Enemy> enemyList){
double tempDistance = 0.0;
if(target==null){
for(Enemy enemy: enemyList){
for(Point point: enemy.getHitBox()){
double distance = Math.sqrt((x-point.getX())*(x-point.getX())+(y-point.getY())*(y-point.getY()));
if(distance < radius){
this.tar... | public void findTarget(ArrayList<Enemy> enemyList){
double tempDistance = 0.0;
if(target==null){
for(Enemy enemy: enemyList){
for(Point point: enemy.getHitBox()){
double distance = Math.sqrt((x-point.getX())*(x-point.getX())+(y-point.getY())*(y-point.getY()));
if(distance < radius)
if(tempDi... |
diff --git a/commons/src/main/java/org/archive/io/arc/ARCWriter.java b/commons/src/main/java/org/archive/io/arc/ARCWriter.java
index 10acfe8..be3ab38 100644
--- a/commons/src/main/java/org/archive/io/arc/ARCWriter.java
+++ b/commons/src/main/java/org/archive/io/arc/ARCWriter.java
@@ -1,489 +1,489 @@
/*
* This file ... | true | true | private byte [] generateARCFileMetaData(String date)
throws IOException {
if(date.length()>14) {
date = date.substring(0,14);
}
int metadataBodyLength = getMetadataLength();
// If metadata body, then the minor part of the version is '1' rather
// than '0'.
... | private byte [] generateARCFileMetaData(String date)
throws IOException {
if(date!=null && date.length()>14) {
date = date.substring(0,14);
}
int metadataBodyLength = getMetadataLength();
// If metadata body, then the minor part of the version is '1' rather
//... |
diff --git a/electro/basic/world/WorldGenStructures.java b/electro/basic/world/WorldGenStructures.java
index 0748797..9afc2a3 100644
--- a/electro/basic/world/WorldGenStructures.java
+++ b/electro/basic/world/WorldGenStructures.java
@@ -1,617 +1,618 @@
package mods.Electrolysm.electro.basic.world;
import static net... | false | true | public static void generateSurface(World world, Random random, int x, int z){
//Science Lab Generation Code:
if(world.getBiomeGenForCoords(x, z) == electrolysmCore.diseasedBiomeObj)
{
if(random.nextInt(100) == 1)
{
for(int i = 0; i < 1; i++)
{
int xCoord = ((x + random.nextInt(16)));
int zCoor... | public static void generateSurface(World world, Random random, int x, int z){
//Science Lab Generation Code:
if(world.getBiomeGenForCoords(x, z) == electrolysmCore.diseasedBiomeObj)
{
if(random.nextInt(100) == 1)
{
for(int i = 0; i < 1; i++)
{
int xCoord = ((x + random.nextInt(16)));
int zCoor... |
diff --git a/src/crawl/DyttCrawler.java b/src/crawl/DyttCrawler.java
index cc00aed..f1bb60e 100644
--- a/src/crawl/DyttCrawler.java
+++ b/src/crawl/DyttCrawler.java
@@ -1,196 +1,196 @@
package crawl;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStream... | false | true | private void parsePattern(Movie_Info movie_info, String s, int n){
Pattern pt = Pattern.compile(MOVIE_PATTERNS[n]);
Matcher mt = pt.matcher(s);
while (mt.find()) {
//先去除一些特殊的符号
String str = mt.group();
str = BasicUtil.formatString(str);
//用正则表达式进行匹配,通过字符串处理找到相应内容
switch(n){
case 0:
str = st... | private void parsePattern(Movie_Info movie_info, String s, int n){
Pattern pt = Pattern.compile(MOVIE_PATTERNS[n]);
Matcher mt = pt.matcher(s);
while (mt.find()) {
//先去除一些特殊的符号
String str = mt.group();
str = BasicUtil.formatString(str);
//用正则表达式进行匹配,通过字符串处理找到相应内容
switch(n){
case 0:
str = st... |
diff --git a/src/main/java/net/sf/testium/executor/general/SetVariable.java b/src/main/java/net/sf/testium/executor/general/SetVariable.java
index 02d7f34..aef4d43 100644
--- a/src/main/java/net/sf/testium/executor/general/SetVariable.java
+++ b/src/main/java/net/sf/testium/executor/general/SetVariable.java
@@ -1,87 +1... | true | true | protected void doExecute(RunTimeData aVariables,
ParameterArrayList parameters, TestStepCommandResult result)
throws Exception
{
String variableName = (String) this.obtainValue(aVariables, parameters, PARSPEC_NAME);
String valueString = (String) this.obtainValue(aVariables, parameters, PARSPEC_VALUE);
Str... | protected void doExecute(RunTimeData aVariables,
ParameterArrayList parameters, TestStepCommandResult result)
throws Exception
{
String variableName = (String) this.obtainValue(aVariables, parameters, PARSPEC_NAME);
String valueString = (String) this.obtainValue(aVariables, parameters, PARSPEC_VALUE);
Str... |
diff --git a/src/main/java/org/iplantc/iptol/server/FileUploadServlet.java b/src/main/java/org/iplantc/iptol/server/FileUploadServlet.java
index 0114269e..482215d2 100644
--- a/src/main/java/org/iplantc/iptol/server/FileUploadServlet.java
+++ b/src/main/java/org/iplantc/iptol/server/FileUploadServlet.java
@@ -1,102 +1,... | true | true | public String executeAction(HttpServletRequest request,
List<FileItem> fileItems) throws UploadActionException {
this.maxSize = MAX_FILE_SIZE;
this.uploadDelay = UPLOAD_DELAY;
String filetype = null;
Map map = new HashMap();
List data_list = new ArrayList();
Map root = new HashMap();
JSONObject json... | public String executeAction(HttpServletRequest request,
List<FileItem> fileItems) throws UploadActionException {
this.maxSize = MAX_FILE_SIZE;
this.uploadDelay = UPLOAD_DELAY;
String filetype = null;
Map map = new HashMap();
List data_list = new ArrayList();
Map root = new HashMap();
JSONObject json... |
diff --git a/srcj/com/sun/electric/tool/routing/SimpleWirer.java b/srcj/com/sun/electric/tool/routing/SimpleWirer.java
index 6a3274666..d44186013 100644
--- a/srcj/com/sun/electric/tool/routing/SimpleWirer.java
+++ b/srcj/com/sun/electric/tool/routing/SimpleWirer.java
@@ -1,209 +1,209 @@
/* -*- tab-width: 4 -*-
*
... | true | true | protected boolean planRoute(Route route, Cell cell, RouteElementPort endRE,
Point2D startLoc, Point2D endLoc, Point2D clicked, PolyMerge stayInside, VerticalRoute vroute,
boolean contactsOnEndObj) {
RouteElementPort startRE = route.getEnd();
... | protected boolean planRoute(Route route, Cell cell, RouteElementPort endRE,
Point2D startLoc, Point2D endLoc, Point2D clicked, PolyMerge stayInside, VerticalRoute vroute,
boolean contactsOnEndObj) {
RouteElementPort startRE = route.getEnd();
... |
diff --git a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cli/MainImpl.java b/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cli/MainImpl.java
index cd52c5e06..261ac733e 100644
--- a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/cli/MainImpl.java
+++ b/openejb3/c... | false | true | public void main(String[] args) {
args = processSystemProperties(args);
finder = new ResourceFinder(BASE_PATH);
locale = Locale.getDefault().getLanguage();
descriptionI18n = descriptionBase + "." + locale;
CommandLineParser parser = new PosixParser();
// create th... | public void main(String[] args) {
args = processSystemProperties(args);
finder = new ResourceFinder(BASE_PATH);
locale = Locale.getDefault().getLanguage();
descriptionI18n = descriptionBase + "." + locale;
CommandLineParser parser = new PosixParser();
// create th... |
diff --git a/src/ru/spbau/bioinf/tagfinder/GraphUtil.java b/src/ru/spbau/bioinf/tagfinder/GraphUtil.java
index 356d2bf..0cb4d25 100644
--- a/src/ru/spbau/bioinf/tagfinder/GraphUtil.java
+++ b/src/ru/spbau/bioinf/tagfinder/GraphUtil.java
@@ -1,137 +1,139 @@
package ru.spbau.bioinf.tagfinder;
import java.util.ArrayLi... | false | true | public static void generateGapEdges(Configuration conf, List<Peak> peaks, int allow) {
int n = peaks.size();
List<Double> masses = new ArrayList<Double>();
Acid[] values = Acid.values();
for (Acid acid : values) {
masses.add(acid.getMass());
}
for (int i =... | public static void generateGapEdges(Configuration conf, List<Peak> peaks, int gap) {
int n = peaks.size();
List<Double> masses = new ArrayList<Double>();
Acid[] values = Acid.values();
for (Acid acid : values) {
masses.add(acid.getMass());
}
for (int i = 0... |
diff --git a/roborumble/roborumble/RoboRumbleAtHome.java b/roborumble/roborumble/RoboRumbleAtHome.java
index 4c8a3a69e..735376453 100644
--- a/roborumble/roborumble/RoboRumbleAtHome.java
+++ b/roborumble/roborumble/RoboRumbleAtHome.java
@@ -1,152 +1,152 @@
/*************************************************************... | true | true | public static void main(String args[]) {
// get the associated parameters file
String parameters = "./roborumble/roborumble.txt";
try {
parameters = args[0];
} catch (Exception e) {
System.out.println("No argument found specifying properties file. \"roborumble.txt\" assumed.");
}
// Read parameter... | public static void main(String args[]) {
// get the associated parameters file
String parameters = "./roborumble/roborumble.txt";
try {
parameters = args[0];
} catch (Exception e) {
System.out.println("No argument found specifying properties file. \"roborumble.txt\" assumed.");
}
// Read parameter... |
diff --git a/Common/src/main/java/au/gov/ga/worldwind/common/layers/sun/SunLayer.java b/Common/src/main/java/au/gov/ga/worldwind/common/layers/sun/SunLayer.java
index db751cd9..5a15de89 100644
--- a/Common/src/main/java/au/gov/ga/worldwind/common/layers/sun/SunLayer.java
+++ b/Common/src/main/java/au/gov/ga/worldwind/c... | false | true | protected void renderSun(DrawContext dc)
{
GL2 gl = dc.getGL().getGL2();
//calculate view rotation
Vec4 up = dc.getView().getUpVector();
Vec4 f = dc.getView().getForwardVector();
Vec4 s = f.cross3(up);
Vec4 u = s.cross3(f);
Matrix viewRotation = new Matrix(
s.x, s.y, s.z, 0.0,
u.x, u.y, u.z, 0.... | protected void renderSun(DrawContext dc)
{
GL2 gl = dc.getGL().getGL2();
//calculate view rotation
Vec4 up = dc.getView().getUpVector();
Vec4 f = dc.getView().getForwardVector();
Vec4 s = f.cross3(up);
Vec4 u = s.cross3(f);
Matrix viewRotation = new Matrix(
s.x, s.y, s.z, 0.0,
u.x, u.y, u.z, 0.... |
diff --git a/Locus/src/com/example/locus/MainActivity.java b/Locus/src/com/example/locus/MainActivity.java
index d262fe7..d6ffb43 100644
--- a/Locus/src/com/example/locus/MainActivity.java
+++ b/Locus/src/com/example/locus/MainActivity.java
@@ -1,106 +1,108 @@
package com.example.locus;
import java.io.IOException;
... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
CoreFacade.getInstance().setContext(this.getApplicationContext());
Intent intent = getIntent();
if(intent.getExtras() == null){
// SLEEP 2 SECONDS HERE ...
iv = (ImageV... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
CoreFacade.getInstance().setContext(this.getApplicationContext());
Intent intent = getIntent();
if(intent.getExtras() == null){
// SLEEP 2 SECONDS HERE ...
iv = (ImageV... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/files/TARDISInteriorSchematicReader.java b/src/main/java/me/eccentric_nz/TARDIS/files/TARDISInteriorSchematicReader.java
index 5d30a721a..e827f6dab 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/files/TARDISInteriorSchematicReader.java
+++ b/src/main/java/me/eccentri... | true | true | public void readAndMakeInteriorCSV(String fileStr, TARDISConstants.SCHEMATIC s) {
plugin.debug("Loading schematic: " + fileStr);
FileInputStream fis = null;
try {
File f = new File(fileStr);
fis = new FileInputStream(f);
NBTInputStream nbt = new NBTInputSt... | public void readAndMakeInteriorCSV(String fileStr, TARDISConstants.SCHEMATIC s) {
plugin.debug("Loading schematic: " + fileStr);
FileInputStream fis = null;
try {
File f = new File(fileStr);
fis = new FileInputStream(f);
NBTInputStream nbt = new NBTInputSt... |
diff --git a/src/me/blackvein/quests/PlayerListener.java b/src/me/blackvein/quests/PlayerListener.java
index c75fda1..43ee395 100644
--- a/src/me/blackvein/quests/PlayerListener.java
+++ b/src/me/blackvein/quests/PlayerListener.java
@@ -1,839 +1,839 @@
package me.blackvein.quests;
import java.io.File;
import java.... | true | true | public void onInventoryClick(InventoryClickEvent evt) {
Player player = null;
if (evt.getWhoClicked() instanceof Player) {
player = (Player) evt.getWhoClicked();
}
if (player != null) {
if (plugin.checkQuester(player.getName()) == false) {
i... | public void onInventoryClick(InventoryClickEvent evt) {
Player player = null;
if (evt.getWhoClicked() instanceof Player) {
player = (Player) evt.getWhoClicked();
}
if (player != null) {
if (plugin.checkQuester(player.getName()) == false) {
i... |
diff --git a/me/Guga/Guga_SERVER_MOD/GugaPort.java b/me/Guga/Guga_SERVER_MOD/GugaPort.java
index d8ee754..832e12d 100644
--- a/me/Guga/Guga_SERVER_MOD/GugaPort.java
+++ b/me/Guga/Guga_SERVER_MOD/GugaPort.java
@@ -1,173 +1,173 @@
package me.Guga.Guga_SERVER_MOD;
import java.io.BufferedReader;
import java.io.BufferedW... | true | true | public static void LoadPlaces()
{
plugin.log.info("Loading Places Data...");
File file = new File(placesFile);
if (!file.exists())
{
try
{
file.createNewFile();
return;
}
catch (IOException e)
{
e.printStackTrace();
return;
}
}
else
{
try
{
FileInputStream... | public static void LoadPlaces()
{
plugin.log.info("Loading Places Data...");
File file = new File(placesFile);
if (!file.exists())
{
try
{
file.createNewFile();
return;
}
catch (IOException e)
{
e.printStackTrace();
return;
}
}
else
{
try
{
FileInputStream... |
diff --git a/QikSMSGenerator/src/com/hashcap/qiksmsgenerator/Generator.java b/QikSMSGenerator/src/com/hashcap/qiksmsgenerator/Generator.java
index b296357..33f7762 100644
--- a/QikSMSGenerator/src/com/hashcap/qiksmsgenerator/Generator.java
+++ b/QikSMSGenerator/src/com/hashcap/qiksmsgenerator/Generator.java
@@ -1,245 +... | false | true | public List<String> getAddress() {
List<String> list = new ArrayList<String>();
int index = RANDOM.nextInt(10);
String[] recipients = mDataSettings.getRecipients();
MessageData data = MessageData.getInstance(getContext());
if (mType == FolderIndex.INBOX) {
if (recipients.length > 0) {
list.add(recipie... | public List<String> getAddress() {
List<String> list = new ArrayList<String>();
int index = RANDOM.nextInt(10);
String[] recipients = mDataSettings.getRecipients();
MessageData data = MessageData.getInstance(getContext());
if (mType == FolderIndex.INBOX) {
if (recipients != null && recipients.length > 0) ... |
diff --git a/src/com/redhat/ceylon/compiler/java/launcher/Main.java b/src/com/redhat/ceylon/compiler/java/launcher/Main.java
index 61a5b5a81..747e42cc1 100644
--- a/src/com/redhat/ceylon/compiler/java/launcher/Main.java
+++ b/src/com/redhat/ceylon/compiler/java/launcher/Main.java
@@ -1,575 +1,577 @@
/*
* Copyright (... | true | true | public int compile(String[] args, Context context, List<JavaFileObject> fileObjects, Iterable<? extends Processor> processors) {
if (options == null) {
options = Options.instance(context); // creates a new one
}
filenames = new ListBuffer<File>();
classnames = new ListBu... | public int compile(String[] args, Context context, List<JavaFileObject> fileObjects, Iterable<? extends Processor> processors) {
if (options == null) {
options = Options.instance(context); // creates a new one
}
filenames = new ListBuffer<File>();
classnames = new ListBu... |
diff --git a/core/src/visad/trunk/RealType.java b/core/src/visad/trunk/RealType.java
index bb28cdb52..fe24d2a75 100644
--- a/core/src/visad/trunk/RealType.java
+++ b/core/src/visad/trunk/RealType.java
@@ -1,1212 +1,1212 @@
//
// RealType.java
//
/*
VisAD system for interactive analysis and visualization of numer... | false | true | public MathType binary( MathType type, int op, Vector names )
throws VisADException
{
/* WLH 10 Sept 98 */
if (type == null) {
throw new TypeException("TupleType.binary: type may not be null" );
}
Unit newUnit = null;
MathType newType = null;
String newName;
if (type instance... | public MathType binary( MathType type, int op, Vector names )
throws VisADException
{
/* WLH 10 Sept 98 */
if (type == null) {
throw new TypeException("TupleType.binary: type may not be null" );
}
Unit newUnit = null;
MathType newType = null;
String newName;
if (type instance... |
diff --git a/src/sockthing/JobInfo.java b/src/sockthing/JobInfo.java
index a268fb4..95800f5 100644
--- a/src/sockthing/JobInfo.java
+++ b/src/sockthing/JobInfo.java
@@ -1,399 +1,402 @@
package sockthing;
import org.json.JSONObject;
import org.json.JSONArray;
import com.google.bitcoin.core.Coinbase;
import com.... | true | true | public void validateSubmitInternal(JSONArray params, SubmitResult submit_result)
throws org.json.JSONException, org.apache.commons.codec.DecoderException, ShareSaveException
{
String user = params.getString(0);
String job_id = params.getString(1);
byte[] extranonce2 = Hex.decodeH... | public void validateSubmitInternal(JSONArray params, SubmitResult submit_result)
throws org.json.JSONException, org.apache.commons.codec.DecoderException, ShareSaveException
{
String user = params.getString(0);
String job_id = params.getString(1);
byte[] extranonce2 = Hex.decodeH... |
diff --git a/src/edgruberman/bukkit/obituaries/Coroner.java b/src/edgruberman/bukkit/obituaries/Coroner.java
index 7efa42c..0587b72 100644
--- a/src/edgruberman/bukkit/obituaries/Coroner.java
+++ b/src/edgruberman/bukkit/obituaries/Coroner.java
@@ -1,224 +1,226 @@
package edgruberman.bukkit.obituaries;
import java.... | false | true | public void onCombustion(final EntityCombustEvent combustion) {
if (!(combustion.getEntity().getUniqueId().equals(this.playerId))) return;
if (combustion instanceof EntityCombustByEntityEvent) {
// combustible PROJECTILE (fireball), lightning, fire enchanted item (sword), a burning enti... | public void onCombustion(final EntityCombustEvent combustion) {
if (!(combustion.getEntity().getUniqueId().equals(this.playerId))) return;
if (combustion instanceof EntityCombustByEntityEvent) {
// combustible PROJECTILE (fireball), lightning, fire enchanted item (sword), a burning enti... |
diff --git a/control-interface/control-modules/tctoken/src/main/java/org/openecard/control/module/tctoken/GenericTCTokenHandler.java b/control-interface/control-modules/tctoken/src/main/java/org/openecard/control/module/tctoken/GenericTCTokenHandler.java
index 18b769a2..f0a2dda0 100644
--- a/control-interface/control-m... | true | true | public TCTokenResponse handleActivate(TCTokenRequest request) {
final DynamicContext dynCtx = DynamicContext.getInstance(TR03112Keys.INSTANCE_KEY);
boolean performChecks = TCTokenHacks.isPerformTR03112Checks(request);
if (! performChecks) {
logger.warn("Checks according to BSI TR03112 3.4.2, 3.4.4 (TCToken ... | public TCTokenResponse handleActivate(TCTokenRequest request) {
final DynamicContext dynCtx = DynamicContext.getInstance(TR03112Keys.INSTANCE_KEY);
boolean performChecks = TCTokenHacks.isPerformTR03112Checks(request);
if (! performChecks) {
logger.warn("Checks according to BSI TR03112 3.4.2, 3.4.4 (TCToken ... |
diff --git a/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu/server/PtuJsonReader.java b/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu/server/PtuJsonReader.java
index cab7756b..9f6a556d 100644
--- a/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu/server/PtuJsonReader.java
+++ b/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu... | false | true | public Object readObject() throws IOException {
List<Message> result = new ArrayList<Message>();
@SuppressWarnings("rawtypes")
JsonObject jsonObj = (JsonObject) readIntoJsonMaps();
String sender = (String) jsonObj.get("Sender");
// String receiver = (String) jsonObj.get("Receiver");
// String frameID = (... | public Object readObject() throws IOException {
List<Message> result = new ArrayList<Message>();
@SuppressWarnings("rawtypes")
JsonObject jsonObj = (JsonObject) readIntoJsonMaps();
String sender = (String) jsonObj.get("Sender");
// String receiver = (String) jsonObj.get("Receiver");
// String frameID = (... |
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
index 134681c..7205eab 100644
--- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
@@ -1,149 +1,149 @@
/*
* YUI Com... | true | true | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css;
StringBuffer sb;
int startIndex, endIndex;
// Remove all comment blocks...
sb = new StringBuffer(srcsb.toString());
while ((startInd... | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css;
StringBuffer sb;
int startIndex, endIndex;
// Remove all comment blocks...
sb = new StringBuffer(srcsb.toString());
while ((startInd... |
diff --git a/CompleteMyTask/src/ca/ualberta/cs/completemytask/activities/CommentActivity.java b/CompleteMyTask/src/ca/ualberta/cs/completemytask/activities/CommentActivity.java
index d08ad71..dbee688 100644
--- a/CompleteMyTask/src/ca/ualberta/cs/completemytask/activities/CommentActivity.java
+++ b/CompleteMyTask/src/c... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comment);
saver = new LocalSaving();
int position = TaskManager.getInstance().getCurrentTaskPosition();
task = TaskManager.getInstance().getTaskAt(position);
commentsTextView = (T... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comment);
saver = new LocalSaving();
int position = TaskManager.getInstance().getCurrentTaskPosition();
task = TaskManager.getInstance().getTaskAt(position);
commentsTextView = (T... |
diff --git a/src/wikitopdf/WikiProcessor.java b/src/wikitopdf/WikiProcessor.java
index 6c8d5fb..9fde2f8 100755
--- a/src/wikitopdf/WikiProcessor.java
+++ b/src/wikitopdf/WikiProcessor.java
@@ -1,281 +1,281 @@
package wikitopdf;
import wikitopdf.utils.ByteFormatter;
import wikitopdf.utils.WikiSettings;
import wiki... | false | true | public void createPdf() {
int pageBunch = WikiSettings.getInstance().getArticleBunch();
int pdfPageLimit = WikiSettings.getInstance().getPageLimit();
String pageInfo = "";
int startLimit = WikiSettings.getInstance().getStartPage();
boolean isInProggress = true;
int cP... | public void createPdf() {
int pageBunch = WikiSettings.getInstance().getArticleBunch();
int pdfPageLimit = WikiSettings.getInstance().getPageLimit();
String pageInfo = "";
int startLimit = WikiSettings.getInstance().getStartPage();
boolean isInProggress = true;
int cP... |
diff --git a/melati/src/main/java/org/melati/admin/Admin.java b/melati/src/main/java/org/melati/admin/Admin.java
index 5463c8a33..3125ab0cc 100644
--- a/melati/src/main/java/org/melati/admin/Admin.java
+++ b/melati/src/main/java/org/melati/admin/Admin.java
@@ -1,428 +1,428 @@
/*
* $Source$
* $Revision$
*
* Par... | false | true | protected WebContext tableList(WebContext context, Melati melati)
throws NotFoundException, InvalidTypeException, PoemException,
HandlerException {
final Table table = melati.getTable();
context.put("table", table);
final Database database = table.getDatabase();
context.put("databa... | protected WebContext tableList(WebContext context, Melati melati)
throws NotFoundException, InvalidTypeException, PoemException,
HandlerException {
final Table table = melati.getTable();
context.put("table", table);
final Database database = table.getDatabase();
context.put("databa... |
diff --git a/openFaces/source/org/openfaces/util/ResourceUtil.java b/openFaces/source/org/openfaces/util/ResourceUtil.java
index acb9ea2c3..dbaa12d83 100644
--- a/openFaces/source/org/openfaces/util/ResourceUtil.java
+++ b/openFaces/source/org/openfaces/util/ResourceUtil.java
@@ -1,503 +1,503 @@
/*
* OpenFaces - JSF... | false | true | public static void processHeadResources(FacesContext context) {
Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
Class richfacesContextClass = null;
try {
richfacesContextClass = Class.forName("org.ajax4jsf.context.AjaxContext");
} catch (Cl... | public static void processHeadResources(FacesContext context) {
Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
Class richfacesContextClass = null;
try {
richfacesContextClass = Class.forName("org.ajax4jsf.context.AjaxContext");
} catch (Cl... |
diff --git a/src/model/Select_Allgemein.java b/src/model/Select_Allgemein.java
index 808fe19..1d0429d 100644
--- a/src/model/Select_Allgemein.java
+++ b/src/model/Select_Allgemein.java
@@ -1,100 +1,100 @@
/*
* To change this template, choose Tools | Templates and open the template in
* the editor.
*/
package mo... | true | true | public static String create_select_teile_suchen(String[][] suchwerte) {
String query = "SELECT * FROM Teilestammdaten";
int i = 0;
for (String[] wert : suchwerte) {
// Wenn der Suchwert leer ist soll nichts zu dem Select hinzugefügt werden
if (!wert[1].equals("")) {... | public static String create_select_teile_suchen(String[][] suchwerte) {
String query = "SELECT * FROM Teilestammdaten";
int i = 0;
for (String[] wert : suchwerte) {
// Wenn der Suchwert leer ist soll nichts zu dem Select hinzugefügt werden
if (!wert[1].equals("")) {... |
diff --git a/HttpRequest.java b/HttpRequest.java
index e45617f..2a07deb 100644
--- a/HttpRequest.java
+++ b/HttpRequest.java
@@ -1,259 +1,262 @@
import java.io.* ;
import java.net.* ;
import java.util.* ;
import com.google.gson.*;
final class HttpRequest implements Runnable {
Socket socket;
Map<String... | false | true | private void processRequest() {
try {
// Get a reference to the socket's input stream.
is = new DataInputStream(socket.getInputStream());
br = new BufferedReader(new InputStreamReader(is, "UTF8"));
// Process the request
try {
String headerLine;
S... | private void processRequest() {
try {
// Get a reference to the socket's input stream.
is = new DataInputStream(socket.getInputStream());
br = new BufferedReader(new InputStreamReader(is, "UTF8"));
// Process the request
try {
String headerLine;
S... |
diff --git a/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java b/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java
index 4cd15ac9..e2d6146c 100644
--- a/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java
+++ b/src/org/red5/server/jetty/Red5WebPropertiesConfiguration.java
@@ -1,69 +1,7... | true | true | public void configureWebApp () throws Exception{
if (getWebAppContext().isStarted()) {
log.debug("Cannot configure webapp after it is started");
return;
}
Resource webInf= getWebAppContext().getWebInf();
if(webInf!=null&&webInf.isDirectory()){... | public void configureWebApp () throws Exception{
if (getWebAppContext().isStarted()) {
log.debug("Cannot configure webapp after it is started");
return;
}
Resource webInf= getWebAppContext().getWebInf();
if(webInf!=null&&webInf.isDirectory()){... |
diff --git a/com.github.usrprops_xtext/src/com/github/usrprops_xtext/formatting/UsrpropsDslFormatter.java b/com.github.usrprops_xtext/src/com/github/usrprops_xtext/formatting/UsrpropsDslFormatter.java
index a607222..503407c 100644
--- a/com.github.usrprops_xtext/src/com/github/usrprops_xtext/formatting/UsrpropsDslForma... | true | true | protected void configureFormatting(FormattingConfig c) {
UsrpropsDslGrammarAccess grammar = (UsrpropsDslGrammarAccess) getGrammarAccess();
c.setAutoLinewrap(300);
// BEGIN/END Blocks are indented
c.setIndentationIncrement().after(grammar.getBeginRule());
c.setIndentationDec... | protected void configureFormatting(FormattingConfig c) {
UsrpropsDslGrammarAccess grammar = (UsrpropsDslGrammarAccess) getGrammarAccess();
c.setAutoLinewrap(300);
// BEGIN/END Blocks are indented
c.setIndentationIncrement().after(grammar.getBeginRule());
c.setIndentationDec... |
diff --git a/app/src/com/jackandjason/voter.java b/app/src/com/jackandjason/voter.java
index 4b8e05b..703781a 100644
--- a/app/src/com/jackandjason/voter.java
+++ b/app/src/com/jackandjason/voter.java
@@ -1,47 +1,47 @@
package com.jackandjason;
import java.io.IOException;
import android.app.Activity;
import and... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
webview = new WebView(this);
setContentView(webview);
webview.loadUrl("http://141.212.237.39:8888/vote");
webview.getSettings().setJavaScriptEnabled(true);
webview.setVerticalScrollBarEnabled(false);
webview... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
webview = new WebView(this);
setContentView(webview);
webview.loadUrl("http://192.168.1.126:8888/vote");
webview.getSettings().setJavaScriptEnabled(true);
webview.setVerticalScrollBarEnabled(false);
webview.... |
diff --git a/src/newsrack/web/BrowseAction.java b/src/newsrack/web/BrowseAction.java
index c5e72a2..47fd318 100644
--- a/src/newsrack/web/BrowseAction.java
+++ b/src/newsrack/web/BrowseAction.java
@@ -1,286 +1,286 @@
package newsrack.web;
import newsrack.GlobalConstants;
import newsrack.filter.Category;
import ne... | true | true | public String execute()
{
/* Do some error checking, fetch the issue, and the referenced category
* and pass control to the news display routine */
Date ldt = DownloadNewsTask.getLastDownloadTime();
_lastDownloadTime = SDF.get().format(ldt);
String uid = getParam("owner");
if (uid == null) {
// No... | public String execute()
{
/* Do some error checking, fetch the issue, and the referenced category
* and pass control to the news display routine */
Date ldt = DownloadNewsTask.getLastDownloadTime();
_lastDownloadTime = SDF.get().format(ldt);
String uid = getParam("owner");
if (uid == null) {
// No... |
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java
index 720317808..604254f81 100644
--- a/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java
+++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxClassRea... | false | true | public void complete(Symbol sym) throws CompletionFailure {
if (jreader.sourceCompleter == null)
jreader.sourceCompleter = JavafxCompiler.instance(ctx);
if (sym instanceof PackageSymbol) {
PackageSymbol psym = (PackageSymbol) sym;
PackageSymbol jpackage;
... | public void complete(Symbol sym) throws CompletionFailure {
if (jreader.sourceCompleter == null)
jreader.sourceCompleter = JavafxCompiler.instance(ctx);
if (sym instanceof PackageSymbol) {
PackageSymbol psym = (PackageSymbol) sym;
PackageSymbol jpackage;
... |
diff --git a/src/com/dmdirc/ui/swing/textpane/TextPaneCanvas.java b/src/com/dmdirc/ui/swing/textpane/TextPaneCanvas.java
index 570bed493..6e4831228 100644
--- a/src/com/dmdirc/ui/swing/textpane/TextPaneCanvas.java
+++ b/src/com/dmdirc/ui/swing/textpane/TextPaneCanvas.java
@@ -1,876 +1,876 @@
/*
* Copyright (c) 2006-... | false | true | public void paintComponent(final Graphics graphics) {
final Graphics2D g = (Graphics2D) graphics;
final Map desktopHints = (Map) Toolkit.getDefaultToolkit().
getDesktopProperty("awt.font.desktophints");
if (desktopHints != null) {
g.addRenderingHints(desktopHints... | public void paintComponent(final Graphics graphics) {
final Graphics2D g = (Graphics2D) graphics;
final Map desktopHints = (Map) Toolkit.getDefaultToolkit().
getDesktopProperty("awt.font.desktophints");
if (desktopHints != null) {
g.addRenderingHints(desktopHints... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java
index a61a6a1ba..22f3209e3 100644
--- a/activemq-core/src/main/java/org/apache/activemq/broker/region... | false | true | public void send(ProducerBrokerExchange context, Message message) throws Exception {
MessageEvaluationContext messageContext = null;
for (Iterator iter = forwardDestinations.iterator(); iter.hasNext();) {
ActiveMQDestination destination = null;
Object value = iter.next();
... | public void send(ProducerBrokerExchange context, Message message) throws Exception {
MessageEvaluationContext messageContext = null;
for (Iterator iter = forwardDestinations.iterator(); iter.hasNext();) {
ActiveMQDestination destination = null;
Object value = iter.next();
... |
diff --git a/CSipSimple/src/com/csipsimple/service/OutgoingCall.java b/CSipSimple/src/com/csipsimple/service/OutgoingCall.java
index fa7d0f9f..5c52ba69 100644
--- a/CSipSimple/src/com/csipsimple/service/OutgoingCall.java
+++ b/CSipSimple/src/com/csipsimple/service/OutgoingCall.java
@@ -1,137 +1,137 @@
/**
* Copyrigh... | true | true | public void onReceive(Context aContext, Intent intent) {
context = aContext;
String action = intent.getAction();
String number = getResultData();
//String full_number = intent.getStringExtra("android.phone.extra.ORIGINAL_URI");
// Escape if no number
if (number == null) {
return;
}
... | public void onReceive(Context aContext, Intent intent) {
context = aContext;
String action = intent.getAction();
String number = getResultData();
//String full_number = intent.getStringExtra("android.phone.extra.ORIGINAL_URI");
// Escape if no number
if (number == null) {
return;
}
... |
diff --git a/src/org/gridlab/gridsphere/provider/portletui/beans/TableBean.java b/src/org/gridlab/gridsphere/provider/portletui/beans/TableBean.java
index 9df795cbd..6eeba0425 100644
--- a/src/org/gridlab/gridsphere/provider/portletui/beans/TableBean.java
+++ b/src/org/gridlab/gridsphere/provider/portletui/beans/TableB... | true | true | public String toEndString() {
StringBuffer sb = new StringBuffer();
sb.append("</table>");
String uri = "";
if (showall) {
uri = uriString;
sb.append("<p>"); // added for XHTML 1.0 Strict compliance
String showPages = TableBean.SHOW_PAGES;
... | public String toEndString() {
StringBuffer sb = new StringBuffer();
sb.append("</table>");
String uri = "";
if (showall) {
uri = uriString;
sb.append("<p>"); // added for XHTML 1.0 Strict compliance
String showPages = TableBean.SHOW_PAGES;
... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java
index c2548a9c3..499a7715b 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHis... | false | true | public IHistoryPage itemDropped(Object object, boolean refresh) {
//check to see if history view is visible - if it's not, don't bother
//going to the trouble of fetching the history
if (!this.getSite().getPage().isPartVisible(this))
return null;
IResource resource = Utils.getResource(object);
if... | public IHistoryPage itemDropped(Object object, boolean refresh) {
//check to see if history view is visible - if it's not, don't bother
//going to the trouble of fetching the history
if (!this.getSite().getPage().isPartVisible(this))
return null;
IResource resource = Utils.getResource(object);
if... |
diff --git a/src/com/android/contacts/widget/PinnedHeaderListView.java b/src/com/android/contacts/widget/PinnedHeaderListView.java
index 80db26f18..5893ac661 100644
--- a/src/com/android/contacts/widget/PinnedHeaderListView.java
+++ b/src/com/android/contacts/widget/PinnedHeaderListView.java
@@ -1,222 +1,221 @@
/*
*... | true | true | public void configureHeaderView(int position) {
if (mHeaderView == null) {
return;
}
int state = mAdapter.getPinnedHeaderState(position);
switch (state) {
case PinnedHeaderAdapter.PINNED_HEADER_GONE: {
mHeaderViewVisible = false;
... | public void configureHeaderView(int position) {
if (mHeaderView == null) {
return;
}
int state = mAdapter.getPinnedHeaderState(position);
switch (state) {
case PinnedHeaderAdapter.PINNED_HEADER_GONE: {
mHeaderViewVisible = false;
... |
diff --git a/components/src/main/java/com/googlecode/wicketelements/components/module/Module.java b/components/src/main/java/com/googlecode/wicketelements/components/module/Module.java
index 50ba8b5..d8428b5 100644
--- a/components/src/main/java/com/googlecode/wicketelements/components/module/Module.java
+++ b/componen... | true | true | private void init(final IModel<?> titleModelParam) {
add(CSSPackageResource.getHeaderContribution(Module.class,
"Module.css", "screen, projection"));
setOutputMarkupId(true);
content = new WebMarkupContainer("content");
content.add(getBodyContainer());
add(con... | private void init(final IModel<?> titleModelParam) {
add(CSSPackageResource.getHeaderContribution(Module.class,
"Module.css", "screen, projection"));
setOutputMarkupId(true);
content = new WebMarkupContainer("content");
content.add(getBodyContainer());
add(con... |
diff --git a/src/org/startsmall/openalarm/handler/FireAlarm.java b/src/org/startsmall/openalarm/handler/FireAlarm.java
index af84830..34ea38c 100755
--- a/src/org/startsmall/openalarm/handler/FireAlarm.java
+++ b/src/org/startsmall/openalarm/handler/FireAlarm.java
@@ -1,417 +1,417 @@
/**
* @file FireAlarm.java
*... | true | true | private boolean prepareMediaPlayer() {
if (mMediaPlayer == null) {
mMediaPlayer = new MediaPlayer();
} else {
mMediaPlayer.stop();
mMediaPlayer.reset();
}
Intent intent = getIntent();
if (intent.hasExtra(EXTRA_KEY_RINGTONE)) {
... | private boolean prepareMediaPlayer() {
if (mMediaPlayer == null) {
mMediaPlayer = new MediaPlayer();
} else {
mMediaPlayer.stop();
mMediaPlayer.reset();
}
Intent intent = getIntent();
if (intent.hasExtra(EXTRA_KEY_RINGTONE)) {
... |
diff --git a/src/controller/overview/switches/json/MatchJSON.java b/src/controller/overview/switches/json/MatchJSON.java
index b731cf1..b5b2b34 100644
--- a/src/controller/overview/switches/json/MatchJSON.java
+++ b/src/controller/overview/switches/json/MatchJSON.java
@@ -1,68 +1,68 @@
package controller.overview.swit... | true | true | public static Match getMatch(JSONObject obj)
throws JSONException, IOException {
Match match = new Match();
// Here we check the values, if they are default we set them emptry strings.
// This way they don't confuse the user into thinking they set something
// they didn't
if (!obj.getString("dataLay... | public static Match getMatch(JSONObject obj)
throws JSONException, IOException {
Match match = new Match();
// Here we check the values, if they are default we set them emptry strings.
// This way they don't confuse the user into thinking they set something
// they didn't
if (!obj.getString("dataLay... |
diff --git a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
index c659f705..a443f5ab 100644
--- a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
+++ b/src/com/android/settings/bluetooth/BluetoothDevicePreference.ja... | true | true | private int getConnectionSummary() {
final CachedBluetoothDevice cachedDevice = mCachedDevice;
boolean profileConnected = false; // at least one profile is connected
boolean a2dpNotConnected = false; // A2DP is preferred but not connected
boolean headsetNotConnected = fa... | private int getConnectionSummary() {
final CachedBluetoothDevice cachedDevice = mCachedDevice;
boolean profileConnected = false; // at least one profile is connected
boolean a2dpNotConnected = false; // A2DP is preferred but not connected
boolean headsetNotConnected = fa... |
diff --git a/src/java/com/sapienter/jbilling/server/util/PreferenceBL.java b/src/java/com/sapienter/jbilling/server/util/PreferenceBL.java
index 88eb4681..73231946 100644
--- a/src/java/com/sapienter/jbilling/server/util/PreferenceBL.java
+++ b/src/java/com/sapienter/jbilling/server/util/PreferenceBL.java
@@ -1,174 +1,... | true | true | public void createUpdateForEntity(Integer entityId, Integer preferenceId, String value) {
set(entityId, preferenceId);
if (preference != null) {
// update preference
preference.setValue(value);
} else {
// create a new preference
preference =... | public void createUpdateForEntity(Integer entityId, Integer preferenceId, String value) {
preference = preferenceDas.findByType_Row(preferenceId, entityId, Constants.TABLE_ENTITY);
type = typeDas.find(preferenceId);
if (preference != null) {
// update preference
pref... |
diff --git a/core/src/main/java/mustache/core/Instruction.java b/core/src/main/java/mustache/core/Instruction.java
index a2600c3..e25d709 100644
--- a/core/src/main/java/mustache/core/Instruction.java
+++ b/core/src/main/java/mustache/core/Instruction.java
@@ -1,23 +1,23 @@
package mustache.core;
import java.io.Ser... | false | true | public static boolean isIndentation(String indentation) {
for (int i = indentation.length(); --i > 0;) {
char c = indentation.charAt(i);
if (c != ' ' && c != '\t') {
return false;
}
}
return true;
}
| public static boolean isIndentation(String indentation) {
for (int i = indentation.length(); --i >= 0;) {
char c = indentation.charAt(i);
if (c != ' ' & c != '\t') {
return false;
}
}
return true;
}
|
diff --git a/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui/views/TestResultView.java b/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui/views/TestResultView.java
index 4e9d8d7b..2ea92027 100644
--- a/com.piece_framework.makegood.ui/src/com/piece_framework/makegood/ui/views/TestR... | true | true | public void createPartControl(Composite parent) {
parent.setLayout(new GridLayout(1, false));
progressBar = new Label(parent, SWT.BORDER);
progressBar.setBackground(new Color(parent.getDisplay(), NONE));
progressBar.setLayoutData(createHorizontalFillGridData());
Composite s... | public void createPartControl(Composite parent) {
parent.setLayout(new GridLayout(1, false));
progressBar = new Label(parent, SWT.BORDER);
progressBar.setBackground(new Color(parent.getDisplay(), NONE));
progressBar.setLayoutData(createHorizontalFillGridData());
Composite s... |
diff --git a/src/dungeonCrawler/GameElements/Player.java b/src/dungeonCrawler/GameElements/Player.java
index a3f9c46..6ddacaf 100644
--- a/src/dungeonCrawler/GameElements/Player.java
+++ b/src/dungeonCrawler/GameElements/Player.java
@@ -1,139 +1,142 @@
package dungeonCrawler.GameElements;
import java.awt.Color;
im... | true | true | public void reduceHealth(int Health, GameLogic logic) {
this.armor -= Health;
System.out.print("R�stung absorbiert ");
if (this.armor<0) {
System.out.println((Health+this.armor) + " Schaden");
Health = this.armor*(-1);
this.armor = 0;
}
else System.out.println(Health + " Schaden");
if (this.Health... | public void reduceHealth(int Health, GameLogic logic) {
this.armor -= Health;
System.out.print("R�stung absorbiert ");
if (this.armor<0) {
System.out.println((Health+this.armor) + " Schaden");
Health = this.armor*(-1);
this.armor = 0;
}
else {
System.out.println(Health + " Schaden");
Health = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.