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/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/breakpoints/JavaBreakpointConditionEditor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/breakpoints/JavaBreakpointConditionEditor.java
index b617339d0..48b76093e 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/breakpoints/... | true | true | public Control createControl(Composite parent) {
Composite controls = SWTFactory.createComposite(parent, parent.getFont(), 2, 1, GridData.FILL_HORIZONTAL, 0, 0);
fConditional = SWTFactory.createCheckButton(controls,
processMnemonics(PropertyPageMessages.JavaBreakpointConditionEditor_0),
null,
false,... | public Control createControl(Composite parent) {
Composite controls = SWTFactory.createComposite(parent, parent.getFont(), 2, 1, GridData.FILL_HORIZONTAL, 0, 0);
fConditional = SWTFactory.createCheckButton(controls,
processMnemonics(PropertyPageMessages.JavaBreakpointConditionEditor_0),
null,
false,... |
diff --git a/plugins/org.eclipse.ecr.core.schema/src/org/eclipse/ecr/core/schema/utils/DateParser.java b/plugins/org.eclipse.ecr.core.schema/src/org/eclipse/ecr/core/schema/utils/DateParser.java
index 366d63c..09c3e50 100644
--- a/plugins/org.eclipse.ecr.core.schema/src/org/eclipse/ecr/core/schema/utils/DateParser.java... | true | true | public static Calendar parse(String str) throws ParseException {
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
cal.clear();
int len = str.length();
if (len == 0) { // empty string
//TODO throw error?
return cal;
}
... | public static Calendar parse(String str) throws ParseException {
if (str == null) {
return null;
}
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
cal.clear();
int len = str.length();
if (len == 0) { // empty string
//TODO thro... |
diff --git a/LinAlg.java b/LinAlg.java
index 2d80aa6..a123b41 100644
--- a/LinAlg.java
+++ b/LinAlg.java
@@ -1,47 +1,47 @@
import org.antlr.runtime.*;
import org.antlr.runtime.tree.*;
import org.antlr.stringtemplate.*;
import java.io.FileReader;
public class LinAlg {
public static String generate( String in... | false | true | public static String generate( CharStream input, String templateFile ) throws Exception {
LinAlgExprLexer lex = new LinAlgExprLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lex);
// System.out.println("tokens="+tokens);
LinAlgExprParser parser = new LinAlgExprParser(tokens);
LinAlg... | public static String generate( CharStream input, String templateFile ) throws Exception {
LinAlgExprLexer lex = new LinAlgExprLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lex);
// System.out.println("tokens="+tokens);
LinAlgExprParser parser = new LinAlgExprParser(tokens);
// Lin... |
diff --git a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJTypeConversion.java b/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJTypeConversion.java
index b70337a9..7a1c9281 100644
--- a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/Brid... | true | true | public Pair<Expression, TypeRef> convertExpressionToJava(Expression x, Identifier libraryClassName, boolean promoteNativeLongToLong) throws UnsupportedConversionException {
Pair<Expression, TypeRef> res = null;
if (x instanceof Expression.Cast) {
TypeRef tpe = ((Expression.Cast) x).getTy... | public Pair<Expression, TypeRef> convertExpressionToJava(Expression x, Identifier libraryClassName, boolean promoteNativeLongToLong) throws UnsupportedConversionException {
Pair<Expression, TypeRef> res = null;
if (x instanceof Expression.Cast) {
TypeRef tpe = ((Expression.Cast) x).getTy... |
diff --git a/bennu-core/src/main/java/pt/ist/bennu/core/rest/json/CasConfigContextSerializer.java b/bennu-core/src/main/java/pt/ist/bennu/core/rest/json/CasConfigContextSerializer.java
index 328e640e..68a845fd 100644
--- a/bennu-core/src/main/java/pt/ist/bennu/core/rest/json/CasConfigContextSerializer.java
+++ b/bennu-... | true | true | public JsonElement view(CasConfigContext casConfigContext, JsonBuilder context) {
JsonObject jsonObject = new JsonObject();
CasConfig casConfig = casConfigContext.getCasConfig();
if (casConfig.isCasEnabled()) {
jsonObject.addProperty("casEnabled", true);
jsonObject.ad... | public JsonElement view(CasConfigContext casConfigContext, JsonBuilder context) {
JsonObject jsonObject = new JsonObject();
CasConfig casConfig = casConfigContext.getCasConfig();
if (casConfig != null && casConfig.isCasEnabled()) {
jsonObject.addProperty("casEnabled", true);
... |
diff --git a/src/main/java/com/alta189/chavabot/Options.java b/src/main/java/com/alta189/chavabot/Options.java
index 2ce98df..1fe866c 100644
--- a/src/main/java/com/alta189/chavabot/Options.java
+++ b/src/main/java/com/alta189/chavabot/Options.java
@@ -1,70 +1,70 @@
package com.alta189.chavabot;
import java.util.Ar... | true | true | public List<String> getChannels() {
List<String> result = new ArrayList<String>();
for (String chan : channels.split(",")) {
result.add(chan);
}
return result;
}
| public List<String> getChannels() {
List<String> result = new ArrayList<String>();
for (String chan : channels.split(",")) {
result.add("#" + chan);
}
return result;
}
|
diff --git a/src/main/java/org/vivoweb/harvester/score/Score.java b/src/main/java/org/vivoweb/harvester/score/Score.java
index e5c93370..3e01b69a 100644
--- a/src/main/java/org/vivoweb/harvester/score/Score.java
+++ b/src/main/java/org/vivoweb/harvester/score/Score.java
@@ -1,545 +1,545 @@
/***************************... | false | true | public void execute() throws IOException {
// Bring all models into a single Dataset
JenaConnect vivoClone = this.tempJena.neighborConnectClone("http://vivoweb.org/harvester/model/scoring#vivoClone");
if(vivoClone.isEmpty()) {
log.trace("Loading VIVO model into temp copy model");
vivoClone.loadRdfFromJC(th... | public void execute() throws IOException {
// Bring all models into a single Dataset
JenaConnect vivoClone = this.tempJena.neighborConnectClone("http://vivoweb.org/harvester/model/scoring#vivoClone");
if(vivoClone.isEmpty()) {
log.trace("Loading VIVO model into temp copy model");
vivoClone.loadRdfFromJC(th... |
diff --git a/AndBible/src/net/bible/android/view/activity/page/BibleGestureListener.java b/AndBible/src/net/bible/android/view/activity/page/BibleGestureListener.java
index f0fa64fc..f321e426 100644
--- a/AndBible/src/net/bible/android/view/activity/page/BibleGestureListener.java
+++ b/AndBible/src/net/bible/android/vi... | true | true | public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
// get distance between points of the fling
double vertical = Math.abs( e1.getY() - e2.getY() );
double horizontal = Math.abs( e1.getX() - e2.getX() );
Log.d(TAG, "onFling vertical:"+vertical+" horizontal:"+horizontal+"... | public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
// get distance between points of the fling
double vertical = Math.abs( e1.getY() - e2.getY() );
double horizontal = Math.abs( e1.getX() - e2.getX() );
Log.d(TAG, "onFling vertical:"+vertical+" horizontal:"+horizontal+"... |
diff --git a/src/msf/MeterpreterSession.java b/src/msf/MeterpreterSession.java
index 380dee7..a08f5f8 100644
--- a/src/msf/MeterpreterSession.java
+++ b/src/msf/MeterpreterSession.java
@@ -1,171 +1,177 @@
package msf;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
/* Implements a class for wri... | true | true | protected void processCommand(Command c) {
Map response = null, read = null;
long start;
long maxwait = DEFAULT_WAIT;
int expectedReads = 1;
try {
emptyRead();
//System.err.println("Processing: " + c.text);
response = (Map)connection.execute("session.meterpreter_write", new Object[] { session, Base6... | protected void processCommand(Command c) {
Map response = null, read = null;
long start;
long maxwait = DEFAULT_WAIT;
int expectedReads = 1;
try {
emptyRead();
//System.err.println("Processing: " + c.text);
response = (Map)connection.execute("session.meterpreter_write", new Object[] { session, Base6... |
diff --git a/src/org/jruby/ext/socket/RubyTCPSocket.java b/src/org/jruby/ext/socket/RubyTCPSocket.java
index 749f29890..6a2186c9c 100644
--- a/src/org/jruby/ext/socket/RubyTCPSocket.java
+++ b/src/org/jruby/ext/socket/RubyTCPSocket.java
@@ -1,171 +1,171 @@
/*
***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL ... | false | true | public IRubyObject initialize(ThreadContext context, IRubyObject[] args) {
Arity.checkArgumentCount(context.getRuntime(), args, 2, 4);
String remoteHost = args[0].isNil()? "localhost" : args[0].convertToString().toString();
int remotePort = getPortFrom(context.getRuntime(), args[1]);
... | public IRubyObject initialize(ThreadContext context, IRubyObject[] args) {
Arity.checkArgumentCount(context.getRuntime(), args, 2, 4);
String remoteHost = args[0].isNil()? "localhost" : args[0].convertToString().toString();
int remotePort = getPortFrom(context.getRuntime(), args[1]);
... |
diff --git a/plugins/org.eclipse.viatra2.emf.incquery.runtime/src/org/eclipse/viatra2/emf/incquery/runtime/internal/matcherbuilder/EPMBodyToPSystem.java b/plugins/org.eclipse.viatra2.emf.incquery.runtime/src/org/eclipse/viatra2/emf/incquery/runtime/internal/matcherbuilder/EPMBodyToPSystem.java
index f144092a..f155db74 ... | false | true | protected void gatherConstraint(Constraint constraint)
throws RetePatternBuildException {
if (constraint instanceof EClassifierConstraint) { // EMF-specific
EClassifierConstraint constraint2 = (EClassifierConstraint) constraint;
//TODO Gabor, please check the following line
EClassifier classname = ((Cla... | protected void gatherConstraint(Constraint constraint)
throws RetePatternBuildException {
if (constraint instanceof EClassifierConstraint) { // EMF-specific
EClassifierConstraint constraint2 = (EClassifierConstraint) constraint;
//TODO Gabor, please check the following line
EClassifier classname = ((Cla... |
diff --git a/src/eu/cassandra/training/gui/MainGUI.java b/src/eu/cassandra/training/gui/MainGUI.java
index 23a605f..122c6f9 100644
--- a/src/eu/cassandra/training/gui/MainGUI.java
+++ b/src/eu/cassandra/training/gui/MainGUI.java
@@ -1,1735 +1,1735 @@
/*
Copyright 2011-2013 The Cassandra Consortium (cassandra-fp7.eu)
... | false | true | public MainGUI () throws ClassNotFoundException, InstantiationException,
IllegalAccessException, UnsupportedLookAndFeelException,
FileNotFoundException
{
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing (WindowEvent e)
{
cleanFiles();
System.e... | public MainGUI () throws ClassNotFoundException, InstantiationException,
IllegalAccessException, UnsupportedLookAndFeelException,
FileNotFoundException
{
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing (WindowEvent e)
{
cleanFiles();
System.e... |
diff --git a/junixsocket/src/main/org/newsclub/net/unix/AFUNIXSocketImpl.java b/junixsocket/src/main/org/newsclub/net/unix/AFUNIXSocketImpl.java
index e66c0f9..cc0c35e 100644
--- a/junixsocket/src/main/org/newsclub/net/unix/AFUNIXSocketImpl.java
+++ b/junixsocket/src/main/org/newsclub/net/unix/AFUNIXSocketImpl.java
@@ ... | false | true | public void setOption(int optID, Object value) throws SocketException {
try {
switch (optID) {
case SocketOptions.SO_LINGER:
if (value instanceof Boolean) {
boolean b = (Boolean) value;
if (b) {
throw ne... | public void setOption(int optID, Object value) throws SocketException {
try {
switch (optID) {
case SocketOptions.SO_LINGER:
if (value instanceof Boolean) {
boolean b = (Boolean) value;
if (b) {
throw ne... |
diff --git a/tests/cytoscape/data/CyNetworkTest.java b/tests/cytoscape/data/CyNetworkTest.java
index 850ad82f5..5be2b84cc 100644
--- a/tests/cytoscape/data/CyNetworkTest.java
+++ b/tests/cytoscape/data/CyNetworkTest.java
@@ -1,307 +1,307 @@
/*
File: CyNetworkTest.java
Copyright (c) 2006, The Cytoscape Consorti... | true | true | public void testBasic() throws Exception {
CyNetwork defaultNetwork = Cytoscape.createNetwork("My Network");
assertNotNull(defaultNetwork);
assertEquals(defaultNetwork.getIdentifier(), "1");
assertEquals(defaultNetwork.getNodeCount(), 0);
assertEquals(defaultNetwork.getEdgeCount(),... | public void testBasic() throws Exception {
CyNetwork defaultNetwork = Cytoscape.createNetwork("My Network");
assertNotNull(defaultNetwork);
assertNotNull(defaultNetwork.getIdentifier());
assertEquals(defaultNetwork.getNodeCount(), 0);
assertEquals(defaultNetwork.getEdgeCount(), 0);... |
diff --git a/src/control/Control_http_Shoutcast_2.java b/src/control/Control_http_Shoutcast_2.java
index 4b1a116..b75ffc0 100644
--- a/src/control/Control_http_Shoutcast_2.java
+++ b/src/control/Control_http_Shoutcast_2.java
@@ -1,486 +1,493 @@
package control;
/* This program is licensed under the terms of the GPLV3... | false | true | public void getStreamsPerGenre(String genre, boolean keyword) {
if(keyword) {
getStreamsPerKeyword(genre);
} else {
// make sure, that the Vector of streams is empty
streams.removeAllElements();
streams.trimToSize();
try {
int startInt = (currentPage*maxResults);
// Construct the PO... | public void getStreamsPerGenre(String genre, boolean keyword) {
if(keyword) {
getStreamsPerKeyword(genre);
} else {
// make sure, that the Vector of streams is empty
streams.removeAllElements();
streams.trimToSize();
try {
int startInt = (currentPage*maxResults);
// Construct the PO... |
diff --git a/src/org/encog/workbench/util/JavaLaunchUtil.java b/src/org/encog/workbench/util/JavaLaunchUtil.java
index 2be4cdc4..004246ad 100644
--- a/src/org/encog/workbench/util/JavaLaunchUtil.java
+++ b/src/org/encog/workbench/util/JavaLaunchUtil.java
@@ -1,103 +1,103 @@
package org.encog.workbench.util;
import ... | false | true | public void writeLaunchConfig(File stageDir, File utilDir) throws IOException
{
File pathEXE = new File(stageDir,"EncogWorkbench.exe");
File pathICO = new File(utilDir,"");
scanJARs(new File(utilDir,"jar"));
PrintWriter out = new PrintWriter(new BufferedWriter(
new FileWriter(new File(stageDir,"launch.xml... | public void writeLaunchConfig(File stageDir, File utilDir) throws IOException
{
File pathEXE = new File(stageDir,"EncogWorkbench.exe");
File pathICO = new File(utilDir,"Encog.ico");
scanJARs(new File(stageDir,"jar"));
PrintWriter out = new PrintWriter(new BufferedWriter(
new FileWriter(new File(utilDir,"l... |
diff --git a/src/me/lucasemanuel/survivalgamesmultiverse/managers/ChestManager.java b/src/me/lucasemanuel/survivalgamesmultiverse/managers/ChestManager.java
index 28c7b64..acda658 100644
--- a/src/me/lucasemanuel/survivalgamesmultiverse/managers/ChestManager.java
+++ b/src/me/lucasemanuel/survivalgamesmultiverse/manage... | false | true | public void randomizeChest(Chest chest) {
if(!this.randomizedchests.contains(chest.getLocation())) {
int spawnchance = itemConfig.getInt("blankChestChance-OneOutOf");
if(spawnchance > generator.nextInt(spawnchance + 1)) {
logger.debug("Randomizing inventory of a chest!");
Inventory ... | public void randomizeChest(Chest chest) {
if(!this.randomizedchests.contains(chest.getLocation())) {
int spawnchance = itemConfig.getInt("blankChestChance-OneOutOf");
if(spawnchance > generator.nextInt(spawnchance + 1)) {
logger.debug("Randomizing inventory of a chest!");
Inventory ... |
diff --git a/src/main/java/org/lastbamboo/common/ice/IceCheckListImpl.java b/src/main/java/org/lastbamboo/common/ice/IceCheckListImpl.java
index 2fdda7a..68cbd79 100644
--- a/src/main/java/org/lastbamboo/common/ice/IceCheckListImpl.java
+++ b/src/main/java/org/lastbamboo/common/ice/IceCheckListImpl.java
@@ -1,775 +1,77... | true | true | public void formCheckList(final Collection<IceCandidate> remoteCandidates)
{
final Collection<Pair<IceCandidate, IceCandidate>> pairs =
new ArrayList<Pair<IceCandidate,IceCandidate>>(10);
for (final IceCandidate localCandidate : m_localCandidates)
{
... | public void formCheckList(final Collection<IceCandidate> remoteCandidates)
{
final Collection<Pair<IceCandidate, IceCandidate>> pairs =
new ArrayList<Pair<IceCandidate,IceCandidate>>(10);
for (final IceCandidate localCandidate : m_localCandidates)
{
... |
diff --git a/src/Server/ServerStartUp.java b/src/Server/ServerStartUp.java
index 82d4811..46969b1 100644
--- a/src/Server/ServerStartUp.java
+++ b/src/Server/ServerStartUp.java
@@ -1,52 +1,57 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Server;
i... | false | true | public static void main(String[] args) throws IOException {
int port = 0;
if(args.length != 1)
{
System.out.println("Please enter the port as argument on which you want the server to run");
System.exit(0);
}
if (args != null && !args[0].isEmpty()) {
... | public static void main(String[] args) throws IOException {
int port = 0;
String analyticsBindingName, billingBindingName;
if(args.length != 3)
{
System.out.println("Please enter the port, analyticsBindingName and"
+ "billingBindingName as argument ... |
diff --git a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/Commandlistener.java b/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/Commandlistener.java
index f46e93e..693420f 100644
--- a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/Commandlistener.java
++... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Player p = (Player) sender;
if(commandLabel.equalsIgnoreCase("ema") || commandLabel.equalsIgnoreCase("easymobarmory")) {
if(args.length == 0) {
Usage(p);
}else if(args.length == 1) {
if(p.hasPermission("... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Player p = (Player) sender;
if(commandLabel.equalsIgnoreCase("ema") || commandLabel.equalsIgnoreCase("easymobarmory")) {
if(args.length == 0) {
Usage(p);
}else if(args.length == 1) {
String commandstring... |
diff --git a/src/org/ssgwt/client/ui/datagrid/column/SSBooleanImageCell.java b/src/org/ssgwt/client/ui/datagrid/column/SSBooleanImageCell.java
index e7485e9..edf0f59 100644
--- a/src/org/ssgwt/client/ui/datagrid/column/SSBooleanImageCell.java
+++ b/src/org/ssgwt/client/ui/datagrid/column/SSBooleanImageCell.java
@@ -1,8... | false | true | public void render(Context context, Boolean value, SafeHtmlBuilder sb) {
String columnString;
if (value == null) {
value = false;
}
if (value) {
if (trueImageUrl == null) {
columnString = "<div title=\"" + value + "\" ></div>";
} el... | public void render(Context context, Boolean value, SafeHtmlBuilder sb) {
String columnContentString = "";
if (value == null) {
value = false;
}
if (value && trueImageUrl != null) {
columnContentString = "<img src='" + trueImageUrl + "' />";
} else if (... |
diff --git a/metrics/findbugs/src/main/java/gr/aueb/metrics/findbugs/Activator.java b/metrics/findbugs/src/main/java/gr/aueb/metrics/findbugs/Activator.java
index e86f7697..de91a0ea 100644
--- a/metrics/findbugs/src/main/java/gr/aueb/metrics/findbugs/Activator.java
+++ b/metrics/findbugs/src/main/java/gr/aueb/metrics/f... | true | true | public void start(BundleContext bc) throws Exception {
//registration = bc.registerService(FindbugsMetrics.class.getName(),
// new FindbugsMetrics(bc), null);
registration = bc.registerService(
gr.aueb.metrics.findbugsscala.FindBugsMetrics.class.getName(),
... | public void start(BundleContext bc) throws Exception {
registration = bc.registerService(FindbugsMetrics.class.getName(),
new FindbugsMetrics(bc), null);
// registration = bc.registerService(
// gr.aueb.metrics.findbugsscala.FindBugsMetrics.class.getName(),
// ... |
diff --git a/server-unit/src/test/java/org/apache/directory/server/AddITest.java b/server-unit/src/test/java/org/apache/directory/server/AddITest.java
index ecb56e2e02..cfa2151b28 100644
--- a/server-unit/src/test/java/org/apache/directory/server/AddITest.java
+++ b/server-unit/src/test/java/org/apache/directory/server... | true | true | public void testAddAliasInContainer() throws NamingException
{
// Create container
Attributes container = new BasicAttributes();
Attribute containerOcls = new BasicAttribute( "objectclass" );
containerOcls.add( "top" );
containerOcls.add( "organizationalUnit" );
... | public void testAddAliasInContainer() throws NamingException
{
// Create container
Attributes container = new BasicAttributes();
Attribute containerOcls = new BasicAttribute( "objectclass" );
containerOcls.add( "top" );
containerOcls.add( "organizationalUnit" );
... |
diff --git a/modules/plus/src/main/java/org/mortbay/jetty/plus/webapp/EnvConfiguration.java b/modules/plus/src/main/java/org/mortbay/jetty/plus/webapp/EnvConfiguration.java
index 9781ffdff..06892a8b2 100644
--- a/modules/plus/src/main/java/org/mortbay/jetty/plus/webapp/EnvConfiguration.java
+++ b/modules/plus/src/main/... | true | true | public void configureWebApp() throws Exception
{
//create a java:comp/env
createEnvContext();
//add java:comp/env entries for any globally defined EnvEntries
addGlobalEnvEntries();
//create a special context in the global namespace that is
//a pl... | public void configureWebApp() throws Exception
{
//create a java:comp/env
createEnvContext();
//add java:comp/env entries for any globally defined EnvEntries
addGlobalEnvEntries();
//create a special context in the global namespace that is
//a pl... |
diff --git a/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java b/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java
index 04e1b7a9..70204347 100644
--- a/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java
+++ b/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java
@@ -1,95 +1,97 @@
// Lic... | false | true | public final void makeCopy(final Collection<OsmPrimitive> primitives) {
directlyAdded.clear();
referenced.clear();
final Set<Long> visitedIds = new HashSet<Long>();
new AbstractVisitor() {
boolean firstIteration;
public void visit(Node n) {
... | public final void makeCopy(final Collection<OsmPrimitive> primitives) {
directlyAdded.clear();
referenced.clear();
final Set<Long> visitedNodeIds = new HashSet<Long>();
final Set<Long> visitedWayIds = new HashSet<Long>();
final Set<Long> visitedRelationIds = new HashSet<Long... |
diff --git a/concourse-server/src/main/java/org/cinchapi/concourse/server/storage/Block.java b/concourse-server/src/main/java/org/cinchapi/concourse/server/storage/Block.java
index 550721c9b..e001c5db6 100644
--- a/concourse-server/src/main/java/org/cinchapi/concourse/server/storage/Block.java
+++ b/concourse-server/sr... | false | true | public ByteBuffer getBytes() {
masterLock.readLock().lock();
try {
Logger.debug("Starting byte generation for {} {}", this.getClass()
.getSimpleName(), id);
ByteBuffer bytes = ByteBuffer.allocate(size);
L locator = null;
K key = null;
for (Revision<L, K, V> revision : revisions) {
Logger.de... | public ByteBuffer getBytes() {
masterLock.readLock().lock();
try {
Logger.debug("Starting byte generation for {} {}", this.getClass()
.getSimpleName(), id);
ByteBuffer bytes = ByteBuffer.allocate(size);
L locator = null;
K key = null;
int position = 0;
for (Revision<L, K, V> revision : revis... |
diff --git a/green-fleet/src/com/heartyoh/service/CheckinDataService.java b/green-fleet/src/com/heartyoh/service/CheckinDataService.java
index b957d01..3d25131 100644
--- a/green-fleet/src/com/heartyoh/service/CheckinDataService.java
+++ b/green-fleet/src/com/heartyoh/service/CheckinDataService.java
@@ -1,529 +1,529 @@... | true | true | private void updateDriverSumInfo(Driver driver, int year, int month, List<Entity> checkins) throws Exception {
Dml dml = ConnectionManager.getInstance().getDml();
Map<String, Object> params = DataUtils.newMap("company", driver.getCompany());
params.put("driver", driver.getId());
params.put("year", year);
... | private void updateDriverSumInfo(Driver driver, int year, int month, List<Entity> checkins) throws Exception {
Dml dml = ConnectionManager.getInstance().getDml();
Map<String, Object> params = DataUtils.newMap("company", driver.getCompany());
params.put("driver", driver.getId());
params.put("year", year);
... |
diff --git a/facestester/src/main/java/com/steeplesoft/jsf/facestester/context/mojarra/MojarraFacesContextBuilder.java b/facestester/src/main/java/com/steeplesoft/jsf/facestester/context/mojarra/MojarraFacesContextBuilder.java
index 8d33d65..4f2e291 100644
--- a/facestester/src/main/java/com/steeplesoft/jsf/facestester... | true | true | public MojarraFacesContextBuilder(FacesTesterServletContext servletContext, HttpSession session, WebDeploymentDescriptor webDescriptor) {
// TODO: Should not have to do this :(
System.setProperty("com.sun.faces.InjectionProvider", "com.steeplesoft.jsf.facestester.injection.FacesTesterInjectionProvid... | public MojarraFacesContextBuilder(FacesTesterServletContext servletContext, HttpSession session, WebDeploymentDescriptor webDescriptor) {
// TODO: Should not have to do this :(
// System.setProperty("com.sun.faces.InjectionProvider", "com.steeplesoft.jsf.facestester.injection.FacesTesterInjectionProv... |
diff --git a/src/main/java/com/p000ison/dev/sqlapi/TableBuilder.java b/src/main/java/com/p000ison/dev/sqlapi/TableBuilder.java
index 05e52ba..9b8b7a2 100644
--- a/src/main/java/com/p000ison/dev/sqlapi/TableBuilder.java
+++ b/src/main/java/com/p000ison/dev/sqlapi/TableBuilder.java
@@ -1,359 +1,359 @@
/*
* This file i... | false | true | private void setupColumns() {
buildingColumns.clear();
Method[] methods = object.getDeclaredMethods();
//
// Math getters and setters together and validate the methods
//
for (Method method : methods) {
String columnName;
DatabaseColumnSette... | private void setupColumns() {
buildingColumns.clear();
Method[] methods = object.getDeclaredMethods();
//
// Math getters and setters together and validate the methods
//
for (Method method : methods) {
String columnName;
DatabaseColumnSette... |
diff --git a/skriv/src/test/writing/box/Model.java b/skriv/src/test/writing/box/Model.java
index 243e89d..79efe5c 100644
--- a/skriv/src/test/writing/box/Model.java
+++ b/skriv/src/test/writing/box/Model.java
@@ -1,50 +1,52 @@
package test.writing.box;
import classes.Word;
import classes.SmartPoint;
import java.u... | true | true | public void addPoint(SmartPoint p){
if(liveWord == null){
liveWord = new Word(p);
System.out.println("new Word");
} else if(Math.abs(liveWord.right() - p.x) > spaceFactor & !liveWord.contains(p)){
Word temp = liveWord;
words.add(temp);
li... | public void addPoint(SmartPoint p){
if(liveWord == null){
liveWord = new Word(p);
System.out.println("new Word");
// This still is not working properly
// The contains() method isn't returning what we want
} else if(Math.abs(liveWord.right() - p.x) > spaceFa... |
diff --git a/geotasks/src/com/geotasks/provider/GeoTasksProvider.java b/geotasks/src/com/geotasks/provider/GeoTasksProvider.java
index 253a1f2..f8671f8 100644
--- a/geotasks/src/com/geotasks/provider/GeoTasksProvider.java
+++ b/geotasks/src/com/geotasks/provider/GeoTasksProvider.java
@@ -1,237 +1,237 @@
package com.ge... | true | true | public Uri insert(Uri uri, ContentValues initialValues) {
ContentValues values;
if (initialValues != null) {
values = new ContentValues(initialValues);
} else {
values = new ContentValues();
}
String tableName;
Uri contentUri;
switch (uriMatcher.match(uri)) {
case TASKS:... | public Uri insert(Uri uri, ContentValues initialValues) {
ContentValues values;
if (initialValues != null) {
values = new ContentValues(initialValues);
} else {
values = new ContentValues();
}
String tableName;
Uri contentUri;
switch (uriMatcher.match(uri)) {
case TASKS:... |
diff --git a/bobo-contrib/src/com/browseengine/bobo/geosearch/solo/bo/IDGeoRecord.java b/bobo-contrib/src/com/browseengine/bobo/geosearch/solo/bo/IDGeoRecord.java
index 6430ec6..507c3d9 100644
--- a/bobo-contrib/src/com/browseengine/bobo/geosearch/solo/bo/IDGeoRecord.java
+++ b/bobo-contrib/src/com/browseengine/bobo/ge... | true | true | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
IDGeoRecord other = (IDGeoRecord) obj;
if (highOrder != other.highOrder)
r... | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
IDGeoRecord other = (IDGeoRecord) obj;
if (highOrder != other.highOrder)
r... |
diff --git a/src/org/jacorb/security/sas/SASTargetInterceptor.java b/src/org/jacorb/security/sas/SASTargetInterceptor.java
index 1aa710553..3ef5289bc 100644
--- a/src/org/jacorb/security/sas/SASTargetInterceptor.java
+++ b/src/org/jacorb/security/sas/SASTargetInterceptor.java
@@ -1,524 +1,527 @@
package org.jacorb.sec... | true | true | public void receive_request( ServerRequestInfo ri )
throws ForwardRequest
{
logger.debug("receive_request for "+ri.operation());
//if (ri.operation().equals("_is_a")) return;
//if (ri.operation().equals("_non_existent")) return;
if (sasContext == null) return;
GIO... | public void receive_request( ServerRequestInfo ri )
throws ForwardRequest
{
logger.debug("receive_request for "+ri.operation());
//if (ri.operation().equals("_is_a")) return;
//if (ri.operation().equals("_non_existent")) return;
if (sasContext == null) return;
GIO... |
diff --git a/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java
index 4a7b01e41..be50dfea0 100644
--- a/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java
+++ b/lucene/src/test-framework/java/org/ap... | true | true | public static void beforeClassLuceneTestCaseJ4() {
initRandom();
state = State.INITIAL;
tempDirs.clear();
stores = Collections.synchronizedMap(new IdentityHashMap<MockDirectoryWrapper,StackTraceElement[]>());
// enable this by default, for IDE consistency with ant tests (as its the default fr... | public static void beforeClassLuceneTestCaseJ4() {
initRandom();
state = State.INITIAL;
tempDirs.clear();
stores = Collections.synchronizedMap(new IdentityHashMap<MockDirectoryWrapper,StackTraceElement[]>());
// enable this by default, for IDE consistency with ant tests (as its the default fr... |
diff --git a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataType.java b/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataType.java
index 8b4d02c..29d0f21 100644
--- a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataType.java
+++ b/plugins/org.eclipse.birt.core/src/org/... | true | true | public static boolean isValidDataType( Class objClass )
{
for ( int i = 0; i < classes.length; i++ )
{
if ( classes[i].equals( objClass ) )
{
return true;
}
}
return true;
}
| public static boolean isValidDataType( Class objClass )
{
for ( int i = 0; i < classes.length; i++ )
{
if ( classes[i].equals( objClass ) )
{
return true;
}
}
return false;
}
|
diff --git a/src/com/jidesoft/converter/DateConverter.java b/src/com/jidesoft/converter/DateConverter.java
index 3504aac1..4f47d63e 100644
--- a/src/com/jidesoft/converter/DateConverter.java
+++ b/src/com/jidesoft/converter/DateConverter.java
@@ -1,239 +1,239 @@
/*
* @(#) DateConverter.java
*
* Copyright 2002 -... | true | true | public Object fromString(String string, ConverterContext context) {
if (string == null || string.trim().length() == 0) {
return null;
}
try {
Object userObject = context.getUserObject();
if (userObject instanceof DateFormat) {
return ((Dat... | public Object fromString(String string, ConverterContext context) {
if (string == null || string.trim().length() == 0) {
return null;
}
try {
Object userObject = context != null ? context.getUserObject() : null;
if (userObject instanceof DateFormat) {
... |
diff --git a/workspace/org.grammaticalframework.eclipse.ui/src/org/grammaticalframework/eclipse/ui/perspectives/GFPerspectiveFactory.java b/workspace/org.grammaticalframework.eclipse.ui/src/org/grammaticalframework/eclipse/ui/perspectives/GFPerspectiveFactory.java
index b50b8299..7cde2890 100644
--- a/workspace/org.gra... | true | true | public void createInitialLayout(IPageLayout layout) {
// Get the editor area.
String editorArea = layout.getEditorArea();
// Top left: Resource Navigator view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f, editorArea);
topLeft.addView(IPageLayo... | public void createInitialLayout(IPageLayout layout) {
// Get the editor area.
String editorArea = layout.getEditorArea();
// Top left: Resource Navigator view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f, editorArea);
topLeft.addView(IPageLayo... |
diff --git a/core/components/descriptors/src/main/java/org/mobicents/slee/container/component/ComponentClassLoader.java b/core/components/descriptors/src/main/java/org/mobicents/slee/container/component/ComponentClassLoader.java
index 115490921..6753e528c 100644
--- a/core/components/descriptors/src/main/java/org/mobic... | true | true | public boolean equals(Object obj) {
if (obj != null) {
return false;
}
if (obj == this) {
return true;
}
if (obj.getClass() == this.getClass()) {
return componentID.equals(((ComponentClassLoader) obj).componentID);
} else {
return false;
}
}
| public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (obj == this) {
return true;
}
if (obj.getClass() == this.getClass()) {
return componentID.equals(((ComponentClassLoader) obj).componentID);
} else {
return false;
}
}
|
diff --git a/src/main/java/com/sebprunier/jobboard/rest/JobServiceRest.java b/src/main/java/com/sebprunier/jobboard/rest/JobServiceRest.java
index ca687d0..5961d3b 100644
--- a/src/main/java/com/sebprunier/jobboard/rest/JobServiceRest.java
+++ b/src/main/java/com/sebprunier/jobboard/rest/JobServiceRest.java
@@ -1,32 +1... | true | true | public Response getAllJobs() {
// Create mocks
Job[] jobs = new Job[2];
Job job1 = new Job();
job1.setId(1L);
job1.setTitle("Job 1");
Job job2 = new Job();
job2.setId(2L);
job2.setTitle("Job 2");
jobs[1] = job1;
jobs[2] = job2;
// Return mocks
return Response.ok(jobs).build();
}
| public Response getAllJobs() {
// Create mocks
Job[] jobs = new Job[2];
Job job1 = new Job();
job1.setId(1L);
job1.setTitle("Job 1");
Job job2 = new Job();
job2.setId(2L);
job2.setTitle("Job 2");
jobs[0] = job1;
jobs[1] = job2;
// Return mocks
return Response.ok(jobs).build();
}
|
diff --git a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionInfo.java b/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionInfo.java
index ebc7014..6a493c0 100644
--- a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionInfo.java
+++ b/src/net/invisioncraft/plugins/salesman... | true | true | public boolean execute(CommandSender sender, Command command, String label, String[] args) {
Locale locale = localeHandler.getLocale(sender);
List<String> infoList = locale.getMessageList("Auction.info");
infoList = plugin.getAuction().infoReplace(infoList);
infoList = plugin.getAuct... | public boolean execute(CommandSender sender, Command command, String label, String[] args) {
Locale locale = localeHandler.getLocale(sender);
if(!plugin.getAuction().isRunning()) {
sender.sendMessage(locale.getMessage("Auction.notRunning"));
return false;
}
Li... |
diff --git a/src/com/sun/gi/apps/battleboard/client/BattleBoardPlayer.java b/src/com/sun/gi/apps/battleboard/client/BattleBoardPlayer.java
index 3911eb775..7196745ce 100644
--- a/src/com/sun/gi/apps/battleboard/client/BattleBoardPlayer.java
+++ b/src/com/sun/gi/apps/battleboard/client/BattleBoardPlayer.java
@@ -1,461 +... | true | true | private boolean moveEnded(String[] args) {
if (playerNames == null) {
log.severe("setTurnOrder has not yet been done");
return false;
}
if (args.length < 3) {
log.severe("moveEnded: " +
"incorrect number of args: " + args.length + " < 3");
}
String currPlayer = args[1];
String action =... | private boolean moveEnded(String[] args) {
if (playerNames == null) {
log.severe("setTurnOrder has not yet been done");
return false;
}
if (args.length < 3) {
log.severe("moveEnded: " +
"incorrect number of args: " + args.length + " < 3");
}
String currPlayer = args[1];
String action =... |
diff --git a/JavaJPS/src/com/unreal/jps/PathFinder.java b/JavaJPS/src/com/unreal/jps/PathFinder.java
index c5e71fb..00524f8 100644
--- a/JavaJPS/src/com/unreal/jps/PathFinder.java
+++ b/JavaJPS/src/com/unreal/jps/PathFinder.java
@@ -1,118 +1,118 @@
/*
* To change this license header, choose License Headers in Projec... | false | true | public static GridNode[] findForcedNeighbors(Grid myGrid, GridNode origin, Vector2 direction) {
GridNode[] pathNodes = new GridNode[2];
int numNodes = 0;
if (direction.x == 0) {
//Direction is vertical
if (!myGrid.getNode(origin.getX() + 1, origin.getY()).isPassable()... | public static GridNode[] findForcedNeighbors(Grid myGrid, GridNode origin, Vector2 direction) {
GridNode[] pathNodes = new GridNode[2];
int numNodes = 0;
if (direction.x == 0) {
//Direction is vertical
if (!myGrid.getNode(origin.getX() + 1, origin.getY()).isPassable()... |
diff --git a/sip-core/src/main/java/eu/delving/LaunchFile.java b/sip-core/src/main/java/eu/delving/LaunchFile.java
index 2d7f2ced..36dfc5ce 100644
--- a/sip-core/src/main/java/eu/delving/LaunchFile.java
+++ b/sip-core/src/main/java/eu/delving/LaunchFile.java
@@ -1,96 +1,96 @@
/*
* Copyright 2011, 2012 Delving BV
*... | true | true | public static String createJNLP(String homeUrl, String codeBaseUrl, String user) {
StringBuilder out = new StringBuilder();
for (String line : PRE_DEPENDENCIES) {
line = replace(line, HOME_URL, homeUrl);
line = replace(line, CODE_BASE_URL, codeBaseUrl);
out.append... | public static String createJNLP(String homeUrl, String codeBaseUrl, String user) {
StringBuilder out = new StringBuilder();
for (String line : PRE_DEPENDENCIES) {
line = replace(line, HOME_URL, homeUrl);
line = replace(line, CODE_BASE_URL, codeBaseUrl);
out.append... |
diff --git a/nardiff/src/nardiff/DataOutputFile.java b/nardiff/src/nardiff/DataOutputFile.java
index 8defc9d..b708858 100644
--- a/nardiff/src/nardiff/DataOutputFile.java
+++ b/nardiff/src/nardiff/DataOutputFile.java
@@ -1,171 +1,171 @@
package nardiff;
import java.io.BufferedOutputStream;
import java.io.File;
im... | true | true | public DataOutputFile(String fileName, String[] colNames) {
this.fileName = fileName;
queue = new ArrayBlockingQueue<Object[]>(queueSize);
try {
outFile = new File(fileName);
FileOutputStream fos = new FileOutputStream(outFile);
OutputStream bos = new BufferedOutputStream(fos, fileBufferSize);
out =... | public DataOutputFile(String fileName, String[] colNames) {
this.fileName = fileName;
queue = new ArrayBlockingQueue<Object[]>(queueSize);
try {
outFile = new File(fileName);
FileOutputStream fos = new FileOutputStream(outFile);
OutputStream bos = new BufferedOutputStream(fos, fileBufferSize);
out =... |
diff --git a/src/ussr/physics/jme/pickers/CustomizedPicker.java b/src/ussr/physics/jme/pickers/CustomizedPicker.java
index 15086fa2..14917ff1 100644
--- a/src/ussr/physics/jme/pickers/CustomizedPicker.java
+++ b/src/ussr/physics/jme/pickers/CustomizedPicker.java
@@ -1,145 +1,147 @@
package ussr.physics.jme.pickers;
... | true | true | public void performAction( InputActionEvent evt ) {
if ( evt.getTriggerPressed() ) {
DisplaySystem.getDisplaySystem().getWorldCoordinates( mousePosition, 0, pickRay.origin );
DisplaySystem.getDisplaySystem().getWorldCoordinates( mousePosition, 0.3f, pickRay.direction ... | public void performAction( InputActionEvent evt ) {
if ( evt.getTriggerPressed() ) {
DisplaySystem.getDisplaySystem().getWorldCoordinates( mousePosition, 0, pickRay.origin );
DisplaySystem.getDisplaySystem().getWorldCoordinates( mousePosition, 0.3f, pickRay.direction ... |
diff --git a/utils/MakeTestOmeTiff.java b/utils/MakeTestOmeTiff.java
index d0a11e7f2..18529ca5e 100644
--- a/utils/MakeTestOmeTiff.java
+++ b/utils/MakeTestOmeTiff.java
@@ -1,555 +1,555 @@
//
// MakeTestOmeTiff.java
//
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.geom.Rectangle2D;
im... | true | true | public static void main(String[] args) throws FormatException, IOException {
boolean usage = false;
// parse command line arguments
String name = null;
String dist = null;
boolean scramble = false;
int numImages = 0;
int[] numPixels = null;
int[][] sizeX = null, sizeY = null;
... | public static void main(String[] args) throws FormatException, IOException {
boolean usage = false;
// parse command line arguments
String name = null;
String dist = null;
boolean scramble = false;
int numImages = 0;
int[] numPixels = null;
int[][] sizeX = null, sizeY = null;
... |
diff --git a/src/org/ohmage/domain/campaign/Campaign.java b/src/org/ohmage/domain/campaign/Campaign.java
index 84a2ff6a..68667579 100644
--- a/src/org/ohmage/domain/campaign/Campaign.java
+++ b/src/org/ohmage/domain/campaign/Campaign.java
@@ -1,4208 +1,4208 @@
/*********************************************************... | true | true | private static Prompt processPrompt(
final String containerId,
final Node prompt,
final int index,
final List<SurveyItem> alreadyProcessedItemsInSurveyItemGroup)
throws DomainException {
Nodes ids = prompt.query(XML_PROMPT_ID);
if(ids.size() == 0) {
throw new DomainException(
"The prom... | private static Prompt processPrompt(
final String containerId,
final Node prompt,
final int index,
final List<SurveyItem> alreadyProcessedItemsInSurveyItemGroup)
throws DomainException {
Nodes ids = prompt.query(XML_PROMPT_ID);
if(ids.size() == 0) {
throw new DomainException(
"The prom... |
diff --git a/src/frontend/functions/LessThanFunction.java b/src/frontend/functions/LessThanFunction.java
index cf80cc0..00de89b 100644
--- a/src/frontend/functions/LessThanFunction.java
+++ b/src/frontend/functions/LessThanFunction.java
@@ -1,33 +1,33 @@
package frontend.functions;
import java.io.PrintStream;
impo... | true | true | public Variable<BoolData> compile_checked( Variable<IntTypeData>[] args, Statement owner ) throws CompileException {
PrintStream ps = ProgramTree.output;
boolean signed = false;
for( int i = 0; i < args.length; i++){
if( args[i].getData().signed() ){
signed = true;
}
}
Variable<BoolDa... | public Variable<BoolData> compile_checked( Variable<IntTypeData>[] args, Statement owner ) throws CompileException {
PrintStream ps = ProgramTree.output;
boolean signed = false;
for( int i = 0; i < args.length; i++){
if( args[i].getData().signed() ){
signed = true;
}
}
Variable<BoolDa... |
diff --git a/modules/plugin/jdbc/jdbc-teradata/src/main/java/org/geotools/data/teradata/TeradataFilterToSQL.java b/modules/plugin/jdbc/jdbc-teradata/src/main/java/org/geotools/data/teradata/TeradataFilterToSQL.java
index e0ab0c3ee..77c96b396 100644
--- a/modules/plugin/jdbc/jdbc-teradata/src/main/java/org/geotools/data... | true | true | boolean encodeIndexPredicate(PropertyName property, Literal geometry) throws IOException {
TessellationInfo tinfo =
(TessellationInfo) currentGeometry.getUserData().get(TessellationInfo.KEY);
if (tinfo == null) {
LOGGER.info("Tessellation info not available for " + ... | boolean encodeIndexPredicate(PropertyName property, Literal geometry) throws IOException {
TessellationInfo tinfo =
(TessellationInfo) currentGeometry.getUserData().get(TessellationInfo.KEY);
if (tinfo == null) {
LOGGER.info("Tessellation info not available for " + ... |
diff --git a/cli/cli-server/src/main/java/org/infinispan/cli/interpreter/LifecycleCallbacks.java b/cli/cli-server/src/main/java/org/infinispan/cli/interpreter/LifecycleCallbacks.java
index 8aebf3f6b6..1b0d2af1e9 100644
--- a/cli/cli-server/src/main/java/org/infinispan/cli/interpreter/LifecycleCallbacks.java
+++ b/cli/c... | true | true | public void cacheManagerStarted(GlobalComponentRegistry gcr) {
GlobalConfiguration globalCfg = gcr.getGlobalConfiguration();
MBeanServer mbeanServer = JmxUtil.lookupMBeanServer(globalCfg);
String groupName = getGroupName(globalCfg);
String jmxDomain = globalCfg.globalJmxStatistics().domain();... | public void cacheManagerStarted(GlobalComponentRegistry gcr) {
GlobalConfiguration globalCfg = gcr.getGlobalConfiguration();
MBeanServer mbeanServer = JmxUtil.lookupMBeanServer(globalCfg);
String groupName = getGroupName(globalCfg);
String jmxDomain = globalCfg.globalJmxStatistics().domain();... |
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java
index f005f8b9d4..f0ac86ae8c 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/o... | false | true | public NameNodeRpcServer(Configuration conf, NameNode nn)
throws IOException {
this.nn = nn;
this.namesystem = nn.getNamesystem();
this.metrics = NameNode.getNameNodeMetrics();
int handlerCount =
conf.getInt(DFS_DATANODE_HANDLER_COUNT_KEY,
DFS_DATANODE_HANDLER_COUN... | public NameNodeRpcServer(Configuration conf, NameNode nn)
throws IOException {
this.nn = nn;
this.namesystem = nn.getNamesystem();
this.metrics = NameNode.getNameNodeMetrics();
int handlerCount =
conf.getInt(DFS_DATANODE_HANDLER_COUNT_KEY,
DFS_DATANODE_HANDLER_COUN... |
diff --git a/ini/trakem2/display/NonLinearTransformMode.java b/ini/trakem2/display/NonLinearTransformMode.java
index 17e21fcb..6a783264 100644
--- a/ini/trakem2/display/NonLinearTransformMode.java
+++ b/ini/trakem2/display/NonLinearTransformMode.java
@@ -1,624 +1,624 @@
package ini.trakem2.display;
import ij.ImageP... | true | true | public boolean apply()
{
/* Set undo step to reflect initial state before any transformations */
setUndoState();
Bureaucrat.createAndStart( new Worker.Task( "Applying transformations" )
{
public void exec()
{
final ArrayList< Future > futures = new ArrayList< Future >();
synchronized ( upda... | public boolean apply()
{
/* Set undo step to reflect initial state before any transformations */
setUndoState();
Bureaucrat.createAndStart( new Worker.Task( "Applying transformations" )
{
public void exec()
{
final ArrayList< Future > futures = new ArrayList< Future >();
synchronized ( upda... |
diff --git a/PBox2D/src/pbox2d/PBox2D.java b/PBox2D/src/pbox2d/PBox2D.java
index 10fccd9..d6aebaf 100644
--- a/PBox2D/src/pbox2d/PBox2D.java
+++ b/PBox2D/src/pbox2d/PBox2D.java
@@ -1,176 +1,176 @@
/**
* PBox2d
* This is a simple little wrapper to help integrate JBox2d with Processing
* It doesn't do much right n... | true | true | public void createWorld(float lx,float ly, float ux, float uy) {
AABB worldAABB = new AABB();
worldAABB.lowerBound.set(lx, ly);
worldAABB.upperBound.set(ux, ux);
Vec2 gravity = new Vec2(0.0f, -10.0f);
boolean doSleep = true;
world = new World(worldAABB, gravity, doSleep);
}
| public void createWorld(float lx,float ly, float ux, float uy) {
AABB worldAABB = new AABB();
worldAABB.lowerBound.set(lx, ly);
worldAABB.upperBound.set(ux, uy);
Vec2 gravity = new Vec2(0.0f, -10.0f);
boolean doSleep = true;
world = new World(worldAABB, gravity, doSleep);
}
|
diff --git a/src/main/java/org/suite/node/Vector.java b/src/main/java/org/suite/node/Vector.java
index ea913b913..e9fa4a6d1 100755
--- a/src/main/java/org/suite/node/Vector.java
+++ b/src/main/java/org/suite/node/Vector.java
@@ -1,120 +1,119 @@
package org.suite.node;
import org.util.Util;
public class Vector ex... | true | true | public boolean equals(Object object) {
boolean result = false;
if (object instanceof Node) {
Node node = ((Node) object).finalNode();
if (node instanceof Vector) {
Vector v = (Vector) node;
result = end - start == v.end - v.start;
int si = start + data.startUsed;
int di = v.start + v.data.st... | public boolean equals(Object object) {
boolean result = false;
if (object instanceof Node) {
Node node = ((Node) object).finalNode();
if (node instanceof Vector) {
Vector v = (Vector) node;
result = end - start == v.end - v.start;
int si = start, di = v.start;
while (result && si < end)
... |
diff --git a/ninja-core/src/main/java/ninja/NinjaImpl.java b/ninja-core/src/main/java/ninja/NinjaImpl.java
index 343bd2ce4..37b555ed1 100644
--- a/ninja-core/src/main/java/ninja/NinjaImpl.java
+++ b/ninja-core/src/main/java/ninja/NinjaImpl.java
@@ -1,128 +1,128 @@
package ninja;
import java.lang.annotation.Annotati... | true | true | public boolean processAnnotations(Route route, Context context) {
boolean continueExecution = true;
Class controller = route.getController();
String controllerMethod = route.getControllerMethod();
try {
for (Annotation annotation : controller.getMethod(controllerMethod,
Context.class).getAnnot... | public boolean processAnnotations(Route route, Context context) {
boolean continueExecution = true;
Class controller = route.getController();
String controllerMethod = route.getControllerMethod();
try {
for (Annotation annotation : controller.getMethod(controllerMethod,
Context.class).getAnnot... |
diff --git a/core/java/android/content/UriMatcher.java b/core/java/android/content/UriMatcher.java
index a98e6d57..c28ecac2 100644
--- a/core/java/android/content/UriMatcher.java
+++ b/core/java/android/content/UriMatcher.java
@@ -1,262 +1,263 @@
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licens... | false | true | public int match(Uri uri)
{
final int li = uri.getPathSegments().size();
UriMatcher node = this;
if (li == 0 && uri.getAuthority() == null) {
return this.mCode;
}
for (int i=-1; i<li; i++) {
String u = i < 0 ? uri.getAuthority() : uri.getPathSeg... | public int match(Uri uri)
{
final List<String> pathSegments = uri.getPathSegments();
final int li = pathSegments.size();
UriMatcher node = this;
if (li == 0 && uri.getAuthority() == null) {
return this.mCode;
}
for (int i=-1; i<li; i++) {
... |
diff --git a/base/org.eclipse.jdt.groovy.core/src/org/eclipse/jdt/groovy/search/TypeReferenceSearchRequestor.java b/base/org.eclipse.jdt.groovy.core/src/org/eclipse/jdt/groovy/search/TypeReferenceSearchRequestor.java
index 7d80faf05..ae2922736 100644
--- a/base/org.eclipse.jdt.groovy.core/src/org/eclipse/jdt/groovy/sea... | true | true | public VisitStatus acceptASTNode(ASTNode node, TypeLookupResult result, IJavaElement enclosingElement) {
// don't do constructor calls. They are found through the class node inside of it
if (node instanceof ClassExpression || node instanceof ClassNode || node instanceof ImportNode
|| node instanceof Annotation... | public VisitStatus acceptASTNode(ASTNode node, TypeLookupResult result, IJavaElement enclosingElement) {
// don't do constructor calls. They are found through the class node inside of it
if (node instanceof ClassExpression || node instanceof ClassNode || node instanceof ImportNode
|| node instanceof Annotation... |
diff --git a/test/core/011-rosetta-staging-site/RosettaDAX.java b/test/core/011-rosetta-staging-site/RosettaDAX.java
index 4989a334c..3d07b5c83 100644
--- a/test/core/011-rosetta-staging-site/RosettaDAX.java
+++ b/test/core/011-rosetta-staging-site/RosettaDAX.java
@@ -1,173 +1,173 @@
/**
* Copyright 2007-2008 Unive... | true | true | public void constructDAX(String daxfile){
try{
java.io.File cwdFile = new java.io.File (".");
String cwd = cwdFile.getCanonicalPath();
// construct a dax object
ADAG dax = new ADAG("rosetta");
// executables and transformations
// ... | public void constructDAX(String daxfile){
try{
java.io.File cwdFile = new java.io.File (".");
String cwd = cwdFile.getCanonicalPath();
// construct a dax object
ADAG dax = new ADAG("rosetta");
// executables and transformations
// ... |
diff --git a/labs/joyent-cloudapi/src/main/java/org/jclouds/joyent/cloudapi/v6_5/compute/functions/DatasetToOperatingSystem.java b/labs/joyent-cloudapi/src/main/java/org/jclouds/joyent/cloudapi/v6_5/compute/functions/DatasetToOperatingSystem.java
index 7353f3c418..332ad65347 100644
--- a/labs/joyent-cloudapi/src/main/j... | false | true | public OperatingSystem apply(Dataset from) {
Builder builder = OperatingSystem.builder();
builder.name(from.getName());
builder.description(from.getUrn());
builder.is64Bit(true);// TODO: verify
OsFamily family = UNRECOGNIZED;
String version = "";
List<String> pieces = Immuta... | public OperatingSystem apply(Dataset from) {
Builder builder = OperatingSystem.builder();
builder.name(from.getName());
builder.description(from.getUrn());
builder.is64Bit(true);// TODO: verify
String os = from.getOs();
OsFamily family = UNRECOGNIZED;
String version = "";
... |
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/templates/persistence/TemplateReaderWriter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/templates/persistence/TemplateReaderWriter.java
index 2f4d38bd9..12bae5a77 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/templates/persisten... | true | true | private void save(TemplatePersistenceData[] templates, StreamResult result) throws IOException {
try {
DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
DocumentBuilder builder= factory.newDocumentBuilder();
Document document= builder.newDocument();
Node root= document.createElement(... | private void save(TemplatePersistenceData[] templates, StreamResult result) throws IOException {
try {
DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
DocumentBuilder builder= factory.newDocumentBuilder();
Document document= builder.newDocument();
Node root= document.createElement(... |
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/GitHistoryPage.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/GitHistoryPage.java
index b84727f5..9bcae19a 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/GitHistoryPage.java
+++ b/org.spearce.egit.u... | true | true | public boolean inputSet() {
cancelRefreshJob();
if (graph == null)
return false;
final IResource[] in = ((ResourceList) super.getInput()).getItems();
if (in == null || in.length == 0)
return false;
Repository db = null;
final ArrayList<String> paths = new ArrayList<String>(in.length);
for (final... | public boolean inputSet() {
cancelRefreshJob();
if (graph == null)
return false;
final IResource[] in = ((ResourceList) super.getInput()).getItems();
if (in == null || in.length == 0)
return false;
Repository db = null;
final ArrayList<String> paths = new ArrayList<String>(in.length);
for (final... |
diff --git a/milton-api/src/main/java/com/bradmcevoy/http/values/SupportedLockValueWriter.java b/milton-api/src/main/java/com/bradmcevoy/http/values/SupportedLockValueWriter.java
index d7fa665..9fecd7e 100644
--- a/milton-api/src/main/java/com/bradmcevoy/http/values/SupportedLockValueWriter.java
+++ b/milton-api/src/ma... | true | true | public void writeValue(XmlWriter writer, String nsUri, String prefix, String localName, Object val, String href, Map<String, String> nsPrefixes) {
Element supportedLocks = writer.begin("D:supportedlock").open();
SupportedLocks slocks = (SupportedLocks) val;
if (slocks.getResource() instanceof LockableResource) {... | public void writeValue(XmlWriter writer, String nsUri, String prefix, String localName, Object val, String href, Map<String, String> nsPrefixes) {
Element supportedLocks = writer.begin("D:supportedlock").open();
SupportedLocks slocks = (SupportedLocks) val;
if (slocks != null && slocks.getResource() instanceof L... |
diff --git a/modules/resin/src/com/caucho/soa/encoding/SoapEncoding.java b/modules/resin/src/com/caucho/soa/encoding/SoapEncoding.java
index 51e11b230..9bd9e3543 100644
--- a/modules/resin/src/com/caucho/soa/encoding/SoapEncoding.java
+++ b/modules/resin/src/com/caucho/soa/encoding/SoapEncoding.java
@@ -1,119 +1,119 @@... | true | true | private DirectSkeleton getSkeleton()
throws JAXBException, IOException
{
if (_skeleton == null) {
_skeleton =
new WebServiceIntrospector().introspect(_class, _wsdlLocation);
}
return _skeleton;
}
| private DirectSkeleton getSkeleton()
throws JAXBException, IOException
{
if (_skeleton == null) {
_skeleton =
WebServiceIntrospector.introspect(_class, _wsdlLocation, null);
}
return _skeleton;
}
|
diff --git a/src/instructions/UIG_IO.java b/src/instructions/UIG_IO.java
index 5a6b425..1274461 100644
--- a/src/instructions/UIG_IO.java
+++ b/src/instructions/UIG_IO.java
@@ -1,203 +1,203 @@
package instructions;
import static assemblernator.ErrorReporting.makeError;
import static assemblernator.OperandChecker.i... | true | true | public final boolean check(ErrorHandler hErr, Module module) {
boolean isValid = true;
//checks for operand combos and assigns OperandType.
if(!this.hasOperand("NW")) {
isValid = false;
hErr.reportError(makeError("instructionMissingOp", this.getOpId(), "NW"), this.lineNum, -1);
} else if(this.operands... | public final boolean check(ErrorHandler hErr, Module module) {
boolean isValid = true;
//checks for operand combos and assigns OperandType.
if(!this.hasOperand("NW")) {
isValid = false;
hErr.reportError(makeError("instructionMissingOp", this.getOpId(), "NW"), this.lineNum, -1);
} else if(this.operands... |
diff --git a/sql12/test/src/net/sourceforge/squirrel_sql/client/db/AliasGroupTest.java b/sql12/test/src/net/sourceforge/squirrel_sql/client/db/AliasGroupTest.java
index d6fb07428..5d0dc5d54 100644
--- a/sql12/test/src/net/sourceforge/squirrel_sql/client/db/AliasGroupTest.java
+++ b/sql12/test/src/net/sourceforge/squirr... | true | true | public void testEqualsObject() throws Exception {
IIdentifier id1 = new IntegerIdentifier(1);
IIdentifier id2 = new IntegerIdentifier(2);
String name1 = new String("NameTest");
String name2 = new String("NameTest2");
AliasGroup ag1 = new AliasGroup();
ag1.set... | public void testEqualsObject() throws Exception {
IIdentifier id1 = new IntegerIdentifier(1);
IIdentifier id2 = new IntegerIdentifier(2);
String name1 = "NameTest";
String name2 = "NameTest2";
AliasGroup ag1 = new AliasGroup();
ag1.setIdentifier(id1);
... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/provider/EsbPropertySource.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/provider/EsbPropertySou... | true | true | protected IPropertyDescriptor createPropertyDescriptor(
IItemPropertyDescriptor itemPropertyDescriptor) {
EsbPackage pkg = EsbPackage.eINSTANCE;
Object feature = itemPropertyDescriptor.getFeature(object);
if (pkg.getLogMediator_Properties().equals(feature)) {
return new LogConfigurationPropertyDescriptor(o... | protected IPropertyDescriptor createPropertyDescriptor(
IItemPropertyDescriptor itemPropertyDescriptor) {
EsbPackage pkg = EsbPackage.eINSTANCE;
Object feature = itemPropertyDescriptor.getFeature(object);
if (pkg.getLogMediator_Properties().equals(feature)) {
return new LogConfigurationPropertyDescriptor(o... |
diff --git a/Echode/src/com/base/echode/Echode.java b/Echode/src/com/base/echode/Echode.java
index 6d995dd..9eda32c 100644
--- a/Echode/src/com/base/echode/Echode.java
+++ b/Echode/src/com/base/echode/Echode.java
@@ -1,99 +1,99 @@
package com.base.echode;
import java.text.SimpleDateFormat;
import java.util.Calenda... | true | true | private static void parse(String in2) {
/**
* Commented this out, in case needed.
*
* if (in2.equalsIgnoreCase("about")) { System.out.println(
* "Echode version 0.2.2\nMade by Erik Konijn and Marks Polakovs"); }
* else { if (in2.equalsIgnoreCase("kill")){
* System.out.println("Echode shut down suc... | private static void parse(String in2) {
/**
* Commented this out, in case needed.
*
* if (in2.equalsIgnoreCase("about")) { System.out.println(
* "Echode version 0.2.2\nMade by Erik Konijn and Marks Polakovs"); }
* else { if (in2.equalsIgnoreCase("kill")){
* System.out.println("Echode shut down suc... |
diff --git a/src/main/java/net/pms/dlna/DLNAMediaDatabase.java b/src/main/java/net/pms/dlna/DLNAMediaDatabase.java
index bdd64911..998c4985 100644
--- a/src/main/java/net/pms/dlna/DLNAMediaDatabase.java
+++ b/src/main/java/net/pms/dlna/DLNAMediaDatabase.java
@@ -1,733 +1,733 @@
/*
* PS3 Media Server, for streaming a... | true | true | public void init(boolean force) {
dbCount = -1;
String version = null;
Connection conn = null;
ResultSet rs = null;
Statement stmt = null;
// Check whether the database is not severely damaged, corrupted or wrong version
boolean force_delete = false;
try {
conn = getConnection();
} catch... | public void init(boolean force) {
dbCount = -1;
String version = null;
Connection conn = null;
ResultSet rs = null;
Statement stmt = null;
// Check whether the database is not severely damaged, corrupted or wrong version
boolean force_delete = false;
try {
conn = getConnection();
} catch... |
diff --git a/src/main/java/uk/ac/cam/signups/util/Util.java b/src/main/java/uk/ac/cam/signups/util/Util.java
index 97d1d9f..a834360 100644
--- a/src/main/java/uk/ac/cam/signups/util/Util.java
+++ b/src/main/java/uk/ac/cam/signups/util/Util.java
@@ -1,85 +1,85 @@
package uk.ac.cam.signups.util;
import java.text.Pars... | true | true | public static Date convertToDay(Date time) {
Calendar cal = Calendar.getInstance();
cal.setTime(time);
cal.set(Calendar.MILLISECOND,0);
cal.set(Calendar.SECOND,0);
cal.set(Calendar.MINUTE,0);
cal.set(Calendar.HOUR,0);
return cal.getTime();
}
| public static Date convertToDay(Date time) {
Calendar cal = Calendar.getInstance();
cal.setTime(time);
cal.set(Calendar.MILLISECOND,0);
cal.set(Calendar.SECOND,0);
cal.set(Calendar.MINUTE,0);
cal.set(Calendar.HOUR_OF_DAY,0);
return cal.getTime();
}
|
diff --git a/implementation/src/main/java/com/sigma/qsab/glitches/GlitchLoader.java b/implementation/src/main/java/com/sigma/qsab/glitches/GlitchLoader.java
index 7452771..1ccb35e 100644
--- a/implementation/src/main/java/com/sigma/qsab/glitches/GlitchLoader.java
+++ b/implementation/src/main/java/com/sigma/qsab/glitch... | false | true | private static ArrayList<Glitch> loadGlitchesFromJar(String path) throws IOException {
ArrayList<Glitch> glitchList = new ArrayList<Glitch>();
ClassLoader loader = new URLClassLoader(new URL[]{}, Glitch.class.getClassLoader());
JarFile jar = new JarFile(path);
Enumeration<JarEntry> e... | private static ArrayList<Glitch> loadGlitchesFromJar(String path) throws IOException {
ArrayList<Glitch> glitchList = new ArrayList<Glitch>();
ClassLoader loader = new URLClassLoader(new URL[]{}, Glitch.class.getClassLoader());
JarFile jar = new JarFile(path);
Enumeration<JarEntry> e... |
diff --git a/integration/src/main/java/org/apache/mahout/text/SequenceFilesFromDirectory.java b/integration/src/main/java/org/apache/mahout/text/SequenceFilesFromDirectory.java
index e0572b2f5..9cd4f8b94 100644
--- a/integration/src/main/java/org/apache/mahout/text/SequenceFilesFromDirectory.java
+++ b/integration/src/... | true | true | public int run(String[] args) throws Exception {
addOptions();
if (parseArguments(args) == null) {
return -1;
}
Map<String, String> options = parseOptions();
Path input = getInputPath();
Path output = getOutputPath();
if (hasOption(DefaultOptionCreator.OVERWRITE_OPTION))... | public int run(String[] args) throws Exception {
addOptions();
if (parseArguments(args) == null) {
return -1;
}
Map<String, String> options = parseOptions();
Path input = getInputPath();
Path output = getOutputPath();
if (hasOption(DefaultOptionCreator.OVERWRITE_OPTION))... |
diff --git a/src/ru/spbau/bioinf/tagfinder/Analyzer.java b/src/ru/spbau/bioinf/tagfinder/Analyzer.java
index 180a3a9..83ad88a 100644
--- a/src/ru/spbau/bioinf/tagfinder/Analyzer.java
+++ b/src/ru/spbau/bioinf/tagfinder/Analyzer.java
@@ -1,186 +1,186 @@
package ru.spbau.bioinf.tagfinder;
import org.jdom.Document;
i... | false | true | public void showPasses(Scan scan) throws IOException {
double precursorMassShift = PrecursorMassShiftFinder.getPrecursorMassShift(conf, scan);
List<Peak> peaks = scan.createSpectrumWithYPeaks(precursorMassShift);
int n = peaks.size();
for (int i = 0; i < n; i++) {
peaks.... | public void showPasses(Scan scan) throws IOException {
double precursorMassShift = PrecursorMassShiftFinder.getPrecursorMassShift(conf, scan);
List<Peak> peaks = scan.createSpectrumWithYPeaks(precursorMassShift);
int n = peaks.size();
for (int i = 0; i < n; i++) {
peaks.... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java
index f488db339..0f5bf7833 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tas... | true | true | public void setInput(TaskRepository taskRepository, TaskEditorOutlineNode rootNode) {
if (rootNode != null) {
this.model = new TaskEditorOutlineModel(rootNode);
} else {
this.model = null;
}
if (viewer != null) {
viewer.setInput(this.model);
viewer.expandAll();
viewer.refresh(true);
}
}
| public void setInput(TaskRepository taskRepository, TaskEditorOutlineNode rootNode) {
if (rootNode != null) {
this.model = new TaskEditorOutlineModel(rootNode);
} else {
this.model = null;
}
if (viewer != null && viewer.getControl() != null && !viewer.getControl().isDisposed()) {
viewer.setInput(this.... |
diff --git a/servicemix-wsn2005/src/main/java/org/servicemix/wsn/component/WSNEndpoint.java b/servicemix-wsn2005/src/main/java/org/servicemix/wsn/component/WSNEndpoint.java
index faa3f7c97..b358d2070 100644
--- a/servicemix-wsn2005/src/main/java/org/servicemix/wsn/component/WSNEndpoint.java
+++ b/servicemix-wsn2005/src... | true | true | public void process(MessageExchange exchange) throws Exception {
if (exchange.getStatus() == ExchangeStatus.DONE) {
return;
} else if (exchange.getStatus() == ExchangeStatus.ERROR) {
exchange.setStatus(ExchangeStatus.DONE);
channel.send(exchange);
return;
}
Object input = jaxbContext.createUnmarsha... | public void process(MessageExchange exchange) throws Exception {
if (exchange.getStatus() == ExchangeStatus.DONE) {
return;
} else if (exchange.getStatus() == ExchangeStatus.ERROR) {
exchange.setStatus(ExchangeStatus.DONE);
channel.send(exchange);
return;
}
Object input = jaxbContext.createUnmarsha... |
diff --git a/WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java b/WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java
index ab21aa75..125c3a2f 100644
--- a/WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java
+++ b/WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java
@@ -1,2753 +1,2755 @@... | true | true | SimpleNode translateFunctionInternal(SimpleNode node, boolean useName, SimpleNode[] children) {
// ast can be any of:
// FunctionDefinition(name, args, body)
// FunctionDeclaration(name, args, body)
// FunctionDeclaration(args, body)
// Handle the two arities:
String functionName = null;... | SimpleNode translateFunctionInternal(SimpleNode node, boolean useName, SimpleNode[] children) {
// ast can be any of:
// FunctionDefinition(name, args, body)
// FunctionDeclaration(name, args, body)
// FunctionDeclaration(args, body)
// Handle the two arities:
String functionName = null;... |
diff --git a/utilities/xmlpg/trunk/src/edu/nps/moves/xmlpg/Xmlpg.java b/utilities/xmlpg/trunk/src/edu/nps/moves/xmlpg/Xmlpg.java
index 2b7ea289..ba356ef1 100644
--- a/utilities/xmlpg/trunk/src/edu/nps/moves/xmlpg/Xmlpg.java
+++ b/utilities/xmlpg/trunk/src/edu/nps/moves/xmlpg/Xmlpg.java
@@ -1,636 +1,636 @@
package edu.... | true | true | public void startElement(String uri, String localName, String qName, Attributes attributes)
{
// Lanaguage-specific elements. All the properties needed to generate code specific
// to a language should be included in the properties list for that language.
... | public void startElement(String uri, String localName, String qName, Attributes attributes)
{
// Lanaguage-specific elements. All the properties needed to generate code specific
// to a language should be included in the properties list for that language.
... |
diff --git a/src/main/java/org/bukkit/event/Event.java b/src/main/java/org/bukkit/event/Event.java
index 2d25bec3..6f27a4a2 100644
--- a/src/main/java/org/bukkit/event/Event.java
+++ b/src/main/java/org/bukkit/event/Event.java
@@ -1,56 +1,56 @@
package org.bukkit.event;
import java.io.Serializable;
import org.ap... | true | true | protected Event(final String name) {
Validate.notNull(name, "name is cannot be null");
this.name = name;
}
| protected Event(final String name) {
Validate.notNull(name, "name cannot be null");
this.name = name;
}
|
diff --git a/QuizWebsite/src/servlets/ModifyQuiz.java b/QuizWebsite/src/servlets/ModifyQuiz.java
index 20d883d..4249ba1 100644
--- a/QuizWebsite/src/servlets/ModifyQuiz.java
+++ b/QuizWebsite/src/servlets/ModifyQuiz.java
@@ -1,101 +1,101 @@
package servlets;
import java.io.IOException;
import java.sql.Connection;
... | true | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Connection conn = MyDB.getConnection();
String id = request.getParameter("quiz");
String radio = request.getParameter("group1");
if (radio.equals("history")) {
Statement stmt;
try {
... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Connection conn = MyDB.getConnection();
String id = request.getParameter("quiz");
String radio = request.getParameter("group1");
if (radio.equals("history")) {
Statement stmt;
try {
... |
diff --git a/src/com/koletar/jj/chestkeeper/CKUser.java b/src/com/koletar/jj/chestkeeper/CKUser.java
index 972a349..03772b0 100644
--- a/src/com/koletar/jj/chestkeeper/CKUser.java
+++ b/src/com/koletar/jj/chestkeeper/CKUser.java
@@ -1,216 +1,216 @@
package com.koletar.jj.chestkeeper;
import org.bukkit.configuration... | true | true | public void fromVC(BufferedReader chestYml, String defaultChest) {
String currentChest = null;
boolean isLargeChest = false;
boolean areReadingItems = false;
ItemStack currentItem = null;
List<ItemStack> items = new LinkedList<ItemStack>();
try {
boolean d... | public void fromVC(BufferedReader chestYml, String defaultChest) {
String currentChest = null;
boolean isLargeChest = false;
boolean areReadingItems = false;
ItemStack currentItem = null;
List<ItemStack> items = new LinkedList<ItemStack>();
try {
boolean d... |
diff --git a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/router/RouterImpl.java b/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/router/RouterImpl.java
index c7a4eeff..9be1cdb7 100644
--- a/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/router/RouterImpl.java
+++ b/core/jdiamet... | true | true | public IPeer getPeer(IMessage message, IPeerTable manager) throws RouteException, AvpDataException {
logger.debug("Getting a peer for message [{}]", message);
//FIXME: add ability to send without matching realm+peer pair?, that is , route based on peer table entries?
//that is, if msg.destHost != null > g... | public IPeer getPeer(IMessage message, IPeerTable manager) throws RouteException, AvpDataException {
logger.debug("Getting a peer for message [{}]", message);
//FIXME: add ability to send without matching realm+peer pair?, that is , route based on peer table entries?
//that is, if msg.destHost != null > g... |
diff --git a/main/src/main/java/com/bloatit/framework/utils/i18n/Localizator.java b/main/src/main/java/com/bloatit/framework/utils/i18n/Localizator.java
index dfe6491b3..644ce9ff5 100644
--- a/main/src/main/java/com/bloatit/framework/utils/i18n/Localizator.java
+++ b/main/src/main/java/com/bloatit/framework/utils/i18n/... | true | true | private static Locale browserLocaleHeuristic(final List<String> browserLangs) {
Locale currentLocale = null;
float currentWeigth = 0;
Locale favLanguage = null;
float favLanguageWeigth = 0;
Locale favCountry = null;
float favCountryWeigth = 0;
for (final Stri... | private static Locale browserLocaleHeuristic(final List<String> browserLangs) {
Locale currentLocale = null;
float currentWeigth = 0;
Locale favLanguage = null;
float favLanguageWeigth = 0;
Locale favCountry = null;
float favCountryWeigth = 0;
for (final Stri... |
diff --git a/org.eclipse.mylyn.team.ui/src/org/eclipse/mylyn/internal/team/ui/actions/AddToTaskContextAction.java b/org.eclipse.mylyn.team.ui/src/org/eclipse/mylyn/internal/team/ui/actions/AddToTaskContextAction.java
index 0956817e0..2f032d402 100644
--- a/org.eclipse.mylyn.team.ui/src/org/eclipse/mylyn/internal/team/u... | false | true | private void run(StructuredSelection selection) {
if (!ContextCore.getContextManager().isContextActive()) {
MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.AddToTaskContextAction_Add_to_Task_Context,
Messages.AddToTaskContextAction_ACTIVATE_TASK_TO_ADD_... | private void run(StructuredSelection selection) {
if (!ContextCore.getContextManager().isContextActive()) {
MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
Messages.AddToTaskContextAction_Add_to_Task_Context,
Messages.AddToTaskContextAction_ACTIVATE_TASK_TO... |
diff --git a/jblog-view/jblog-web-controller/src/main/java/com/github/aint/jblog/web/controller/EditArticle.java b/jblog-view/jblog-web-controller/src/main/java/com/github/aint/jblog/web/controller/EditArticle.java
index 6ffec20..68b7eaa 100755
--- a/jblog-view/jblog-web-controller/src/main/java/com/github/aint/jblog/w... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Article article = null;
try {
article = new ArticleServiceImpl(new ArticleHibernateDao(HibernateUtil.getSessionFactory()))
.get(Long.parse... | protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Article article = null;
try {
article = new ArticleServiceImpl(new ArticleHibernateDao(HibernateUtil.getSessionFactory()))
.get(Long.parse... |
diff --git a/h2/src/main/org/h2/command/Command.java b/h2/src/main/org/h2/command/Command.java
index e7b6f2695..f2fffaf3e 100644
--- a/h2/src/main/org/h2/command/Command.java
+++ b/h2/src/main/org/h2/command/Command.java
@@ -1,275 +1,275 @@
/*
* Copyright 2004-2009 H2 Group. Multiple-Licensed under the H2 License,
... | true | true | public int executeUpdate() throws SQLException {
long start = startTime = System.currentTimeMillis();
Database database = session.getDatabase();
MemoryUtils.allocateReserveMemory();
Object sync = database.isMultiThreaded() ? (Object) session : (Object) database;
session.waitI... | public int executeUpdate() throws SQLException {
long start = startTime = System.currentTimeMillis();
Database database = session.getDatabase();
MemoryUtils.allocateReserveMemory();
Object sync = database.isMultiThreaded() ? (Object) session : (Object) database;
session.waitI... |
diff --git a/us9098/client/src/main/java/com/funambol/client/controller/SourceThumbnailsViewController.java b/us9098/client/src/main/java/com/funambol/client/controller/SourceThumbnailsViewController.java
index 257c02a4..50158b16 100644
--- a/us9098/client/src/main/java/com/funambol/client/controller/SourceThumbnailsVi... | false | true | public void onOpen() {
Table metadata = appSource.getMetadataTable();
if (metadata == null) {
if (Log.isLoggable(Log.ERROR)) {
Log.error(TAG_LOG, "Source does not provide metadata " + appSource.getName());
}
... | public void onOpen() {
Table metadata = appSource.getMetadataTable();
if (metadata == null) {
if (Log.isLoggable(Log.ERROR)) {
Log.error(TAG_LOG, "Source does not provide metadata " + appSource.getName());
}
... |
diff --git a/touchyfeely/src/main/java/net/zombiehookers/Twitter2Image.java b/touchyfeely/src/main/java/net/zombiehookers/Twitter2Image.java
index 11c14a2..02eb791 100644
--- a/touchyfeely/src/main/java/net/zombiehookers/Twitter2Image.java
+++ b/touchyfeely/src/main/java/net/zombiehookers/Twitter2Image.java
@@ -1,45 +1... | true | true | public void updateTweets(double lat, double lng, double radius) {
GeoLocation g = new GeoLocation(lat, lng);
Query query = new Query();
query.setGeoCode(g, radius, Query.MILES);
List<Tweet> tweets;
try {
tweets = t.search(query).getTweets();
} catch (TwitterException e) {
tweets = new ArrayList<Tw... | public void updateTweets(double lat, double lng, double radius) {
GeoLocation g = new GeoLocation(lat, lng);
Query query = new Query();
query.setGeoCode(g, radius, Query.MILES);
List<Tweet> tweets;
try {
tweets = t.search(query).getTweets();
} catch (TwitterException e) {
tweets = new ArrayList<Tw... |
diff --git a/ace/component/src/org/icefaces/ace/component/dataexporter/Exporter.java b/ace/component/src/org/icefaces/ace/component/dataexporter/Exporter.java
index 72c016baa..c1871e2e8 100644
--- a/ace/component/src/org/icefaces/ace/component/dataexporter/Exporter.java
+++ b/ace/component/src/org/icefaces/ace/componen... | true | true | protected String exportValue(FacesContext context, UIComponent component) {
if (shouldExcludeFromExport(component)) return "";
if (component instanceof CellEditor) {
UIComponent facet = component.getFacet("output");
if (facet != null) {
component = facet;
} else {
facet = component.getFacet("in... | protected String exportValue(FacesContext context, UIComponent component) {
if (shouldExcludeFromExport(component) || !component.isRendered()) return "";
if (component instanceof CellEditor) {
UIComponent facet = component.getFacet("output");
if (facet != null) {
component = facet;
} else {
fac... |
diff --git a/src/uk/co/uwcs/choob/ChoobDecoderTask.java b/src/uk/co/uwcs/choob/ChoobDecoderTask.java
index 3b5d1ff..5cc0d52 100644
--- a/src/uk/co/uwcs/choob/ChoobDecoderTask.java
+++ b/src/uk/co/uwcs/choob/ChoobDecoderTask.java
@@ -1,151 +1,157 @@
package uk.co.uwcs.choob;
import uk.co.uwcs.choob.plugins.*;
impor... | false | true | public synchronized void run()
{
List<ChoobTask> tasks = new LinkedList<ChoobTask>();
if (event instanceof NickChange)
{
// FIXME: There is no way I can see to make this work here.
// It needs to pick up when the BOT changes name, even through
// external forces, and poke UtilModule about it.
//Ni... | public synchronized void run()
{
List<ChoobTask> tasks = new LinkedList<ChoobTask>();
if (event instanceof NickChange)
{
// FIXME: There is no way I can see to make this work here.
// It needs to pick up when the BOT changes name, even through
// external forces, and poke UtilModule about it.
//Ni... |
diff --git a/src/java/com/rapleaf/jack/DatabaseConnection.java b/src/java/com/rapleaf/jack/DatabaseConnection.java
index 8ab93a80..66598a00 100644
--- a/src/java/com/rapleaf/jack/DatabaseConnection.java
+++ b/src/java/com/rapleaf/jack/DatabaseConnection.java
@@ -1,107 +1,107 @@
//
// Copyright 2011 Rapleaf
//
// Li... | true | true | public DatabaseConnection(String dbname_key, long expiration) {
Map<String, String> db_info = null;
try {
// load database info from config folder
Map env_info = (Map)YAML.load(new FileReader("config/environment.yml"));
String db_info_name = (String)env_info.get(dbname_key);
Map db_inf... | public DatabaseConnection(String dbname_key, long expiration) {
Map<String, String> db_info = null;
try {
// load database info from config folder
Map env_info = (Map)YAML.load(new FileReader("config/environment.yml"));
String db_info_name = (String)env_info.get(dbname_key);
Map db_inf... |
diff --git a/src/minecraft/biomesoplenty/configuration/BOPBlocks.java b/src/minecraft/biomesoplenty/configuration/BOPBlocks.java
index 3ea116af0..20a589d09 100644
--- a/src/minecraft/biomesoplenty/configuration/BOPBlocks.java
+++ b/src/minecraft/biomesoplenty/configuration/BOPBlocks.java
@@ -1,384 +1,384 @@
package bi... | true | true | private static void registerNames()
{
// Add block names
LanguageRegistry.addName(Blocks.mud.get(), "Mud");
LanguageRegistry.addName(Blocks.driedDirt.get(), "Dried Dirt");
LanguageRegistry.addName(new ItemStack(Blocks.redRock.get(),1,0), "Red Rock");
LanguageRegistry.addName(Block... | private static void registerNames()
{
// Add block names
LanguageRegistry.addName(Blocks.mud.get(), "Mud");
LanguageRegistry.addName(Blocks.driedDirt.get(), "Dried Dirt");
LanguageRegistry.addName(new ItemStack(Blocks.redRock.get(),1,0), "Red Rock");
LanguageRegistry.addName(Block... |
diff --git a/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java b/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java
index f17c645..61aa09e 100644
--- a/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java
+++ b/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java
@@ -1,1386 ... | true | true | private void changeCurrentDir(
final String newDir, final boolean addToHistory,
final boolean reload, final boolean useCurrent,
final SearchInfoParcelable searchInfo, final FileSystemObject scrollTo) {
// Check navigation security (don't allow to go outside the ChRooted ... | private void changeCurrentDir(
final String newDir, final boolean addToHistory,
final boolean reload, final boolean useCurrent,
final SearchInfoParcelable searchInfo, final FileSystemObject scrollTo) {
// Check navigation security (don't allow to go outside the ChRooted ... |
diff --git a/src/org/joval/scap/oval/engine/OperatorData.java b/src/org/joval/scap/oval/engine/OperatorData.java
index 3cd66ac5..2b63b1b7 100755
--- a/src/org/joval/scap/oval/engine/OperatorData.java
+++ b/src/org/joval/scap/oval/engine/OperatorData.java
@@ -1,137 +1,137 @@
// Copyright (C) 2011 jOVAL.org. All rights... | false | true | ResultEnumeration getResult(OperatorEnumeration op) throws OvalException {
ResultEnumeration result = ResultEnumeration.UNKNOWN;
switch(op) {
case AND:
if (t > 0 && f == 0 && e == 0 && u == 0 && ne == 0 && na >= 0) {
return ResultEnumeration.TRUE;
} else if (t >= 0 && f > 0 && e >= 0 && u >=... | ResultEnumeration getResult(OperatorEnumeration op) throws OvalException {
ResultEnumeration result = ResultEnumeration.UNKNOWN;
switch(op) {
case AND:
if (t > 0 && f == 0 && e == 0 && u == 0 && ne == 0 && na >= 0) {
return ResultEnumeration.TRUE;
} else if (t >= 0 && f > 0 && e >= 0 && u >=... |
diff --git a/src/main/java/it/polimi/elet/servlet/SelfletLogRetriever.java b/src/main/java/it/polimi/elet/servlet/SelfletLogRetriever.java
index 713dbc9..51aaf30 100644
--- a/src/main/java/it/polimi/elet/servlet/SelfletLogRetriever.java
+++ b/src/main/java/it/polimi/elet/servlet/SelfletLogRetriever.java
@@ -1,93 +1,93 ... | false | true | protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String ipAddressesList = nullToEmpty(request.getParameter("ipAddressesList"));
String getAllLogs = nullToEmpty(request.getParameter("getLogs"));
String clearLogs = nullToEmpty(request.getPara... | protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String ipAddressesList = nullToEmpty(request.getParameter("ipAddressesList"));
String getAllLogs = nullToEmpty(request.getParameter("getLogs"));
String clearLogs = nullToEmpty(request.getPara... |
diff --git a/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java b/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java
index 2c8fd50..18910f9 100644
--- a/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java
+++ b/app/src/nl/digitalica/skydivekompasroos/CalculateActivity.java
@@ -1,579 +... | true | true | private void calculate() {
// get weight and set text
SeekBar sbWeight = (SeekBar) findViewById(R.id.seekBarWeight);
int weightInKg = sbWeight.getProgress() + WEIGHT_MIN;
SeekBar sbTotalJumps = (SeekBar) findViewById(R.id.seekBarTotalJumps);
int totalJumps = sbTotalJumps.getProgress();
SeekBar sbJumpsLas... | private void calculate() {
// get weight and set text
SeekBar sbWeight = (SeekBar) findViewById(R.id.seekBarWeight);
int weightInKg = sbWeight.getProgress() + WEIGHT_MIN;
SeekBar sbTotalJumps = (SeekBar) findViewById(R.id.seekBarTotalJumps);
int totalJumps = sbTotalJumps.getProgress();
SeekBar sbJumpsLas... |
diff --git a/src/main/java/com/aphyr/riemann/client/RiemannRetryingTcpClient.java b/src/main/java/com/aphyr/riemann/client/RiemannRetryingTcpClient.java
index e2c00ab..6366f4a 100644
--- a/src/main/java/com/aphyr/riemann/client/RiemannRetryingTcpClient.java
+++ b/src/main/java/com/aphyr/riemann/client/RiemannRetryingTc... | true | true | public void reconnect() throws IOException {
synchronized (reconnectionLock) {
long lastestAttempt = System.currentTimeMillis() - lastReconnectionAttempt;
if (!reconnecting && lastestAttempt > minimumReconnectInterval) {
reconnecting = true;
lastRecon... | public void reconnect() throws IOException {
synchronized (reconnectionLock) {
long latestAttempt = System.currentTimeMillis() - lastReconnectionAttempt;
if (!reconnecting && latestAttempt > minimumReconnectInterval) {
reconnecting = true;
lastReconne... |
diff --git a/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java b/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlSshDriver.java
index cb9fc3caa..617e177d4 100644
--- a/software/database/src/main/java/brooklyn/entity/database/postgresql/PostgreSqlS... | true | true | public void install() {
DynamicTasks.queueIfPossible(SshTasks.dontRequireTtyForSudo(getMachine(),
// sudo is absolutely required here, in customize we set user to postgres
true)).orSubmitAndBlock();
// Check whether we can find a usable pg_ctl, and if not in... | public void install() {
DynamicTasks.queueIfPossible(SshTasks.dontRequireTtyForSudo(getMachine(),
// sudo is absolutely required here, in customize we set user to postgres
true)).orSubmitAndBlock();
// Check whether we can find a usable pg_ctl, and if not in... |
diff --git a/src/edu/agh/tunev/model/Common.java b/src/edu/agh/tunev/model/Common.java
index 91f1211..c86a125 100644
--- a/src/edu/agh/tunev/model/Common.java
+++ b/src/edu/agh/tunev/model/Common.java
@@ -1,101 +1,101 @@
package edu.agh.tunev.model;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
imp... | false | true | public static double intersectionArea(Shape s1, Shape s2) {
// poniższe liczby definiują wymiary siatki na którą zostanie
// przeskalowana (rozciągnięta) część wspólna kształtów s1, s2
//
// oczywiście im większa siatka, tym dłużej zajmie policzenie tego
//
// złożoność tej funkcji to O(w*h)
final int w ... | public static double intersectionArea(Shape s1, Shape s2) {
// poniższe liczby definiują wymiary siatki na którą zostanie
// przeskalowana (rozciągnięta) część wspólna kształtów s1, s2
//
// oczywiście im większa siatka, tym dłużej zajmie policzenie tego
//
// złożoność tej funkcji to O(w*h)
final int w ... |
diff --git a/src/mulan/classifier/transformation/LabelPowerset.java b/src/mulan/classifier/transformation/LabelPowerset.java
index 7e86853..429aa35 100644
--- a/src/mulan/classifier/transformation/LabelPowerset.java
+++ b/src/mulan/classifier/transformation/LabelPowerset.java
@@ -1,221 +1,221 @@
/*
* This program... | true | true | protected MultiLabelOutput makePredictionInternal(Instance instance) throws Exception {
boolean bipartition[] = null;
double confidences[] = null;
// check for unary class
if (transformation.getTransformedFormat().classAttribute().numValues() == 1) {
String strClass = tr... | protected MultiLabelOutput makePredictionInternal(Instance instance) throws Exception {
boolean bipartition[] = null;
double confidences[] = null;
// check for unary class
if (transformation.getTransformedFormat().classAttribute().numValues() == 1) {
String strClass = tr... |
diff --git a/sobiohazardous/minestrappolation/extradecor/lib/EDBlockManager.java b/sobiohazardous/minestrappolation/extradecor/lib/EDBlockManager.java
index c43e8172..34066ca9 100644
--- a/sobiohazardous/minestrappolation/extradecor/lib/EDBlockManager.java
+++ b/sobiohazardous/minestrappolation/extradecor/lib/EDBlockMa... | false | true | public static void addNames()
{
LanguageRegistry.addName(refinedRoad, "Refined Road");
LanguageRegistry.addName(infertileDirt, "Infertile Dirt");
LanguageRegistry.addName(edgeStoneBrick, "Edge Stone Bricks");
LanguageRegistry.addName(Tiles, "Tiles");
LanguageRegistry.addName(snowBrick, "Snow Bricks");
Lan... | public static void addNames()
{
LanguageRegistry.addName(refinedRoad, "Refined Road");
LanguageRegistry.addName(infertileDirt, "Infertile Dirt");
LanguageRegistry.addName(edgeStoneBrick, "Edge Stone Bricks");
LanguageRegistry.addName(Tiles, "Tiles");
LanguageRegistry.addName(snowBrick, "Snow Bricks");
Lan... |
diff --git a/src/com/voracious/dragons/client/screens/StatScreen.java b/src/com/voracious/dragons/client/screens/StatScreen.java
index 3755f74..e8239e6 100644
--- a/src/com/voracious/dragons/client/screens/StatScreen.java
+++ b/src/com/voracious/dragons/client/screens/StatScreen.java
@@ -1,142 +1,142 @@
package com.vo... | true | true | public void onStatRecieved(char type, String data){
switch(type){
case StatisticsPacket.FINISHED_CODE:
this.finished = Integer.parseInt(data);
this.finishedT.setText(this.finished+"");
break;
case StatisticsPacket.CURRENT_CODE:
this.current = Integer.parseInt(data);
... | public void onStatRecieved(char type, String data){
switch(type){
case StatisticsPacket.FINISHED_CODE:
this.finished = Integer.parseInt(data);
this.finishedT.setText(this.finished+"");
break;
case StatisticsPacket.CURRENT_CODE:
this.current = Integer.parseInt(data);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.