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/basex-core/src/main/java/org/basex/gui/text/TextPanel.java b/basex-core/src/main/java/org/basex/gui/text/TextPanel.java
index 6927baa19..c109bac2a 100644
--- a/basex-core/src/main/java/org/basex/gui/text/TextPanel.java
+++ b/basex-core/src/main/java/org/basex/gui/text/TextPanel.java
@@ -1,1012 +1,1012 @@
... | true | true | public void keyPressed(final KeyEvent e) {
// ignore modifier keys
if(specialKey(e) || modifier(e)) return;
// re-animate cursor
caret(true);
// operations without cursor movement...
final int fh = rend.fontHeight();
if(SCROLLDOWN.is(e)) {
scroll.pos(scroll.pos() + fh);
retur... | public void keyPressed(final KeyEvent e) {
// ignore modifier keys
if(specialKey(e) || modifier(e)) return;
// re-animate cursor
caret(true);
// operations without cursor movement...
final int fh = rend.fontHeight();
if(SCROLLDOWN.is(e)) {
scroll.pos(scroll.pos() + fh);
retur... |
diff --git a/src/main/java/com/jadventure/game/classes/Recruit.java b/src/main/java/com/jadventure/game/classes/Recruit.java
index 6ddcd24..4a8f0e8 100644
--- a/src/main/java/com/jadventure/game/classes/Recruit.java
+++ b/src/main/java/com/jadventure/game/classes/Recruit.java
@@ -1,17 +1,17 @@
package com.jadventure.g... | true | true | public Recruit() {
this.setClassName("Recruit");
this.setHealth(100);
this.setHealthMax(100);
this.setDamage(50);
this.setArmour(1);
this.setLevel(1);
this.setIntro("Hey... you alive?\n*You let out a groan...*\nHey mate, you need to wake up. The guards will be... | public Recruit() {
this.setClassName("Recruit");
this.setHealth(100);
this.setHealthMax(100);
this.setDamage(50);
this.setArmour(1);
this.setLevel(1);
this.setIntro("Hey... you alive?\n*You let out a groan...*\nHey mate, you need to wake up. The guards will be... |
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java
index 9b68c5c13..4b355f7c9 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java
+++ ... | true | true | private String createNonSequential(String path, byte[] data, List<ACL> acl,
CreateMode createMode) throws KeeperException, InterruptedException {
RetryCounter retryCounter = retryCounterFactory.create();
boolean isRetry = false; // False for first attempt, true for all retries.
while (true) {
... | private String createNonSequential(String path, byte[] data, List<ACL> acl,
CreateMode createMode) throws KeeperException, InterruptedException {
RetryCounter retryCounter = retryCounterFactory.create();
boolean isRetry = false; // False for first attempt, true for all retries.
while (true) {
... |
diff --git a/web-selenium/src/main/java/org/jbehave/web/selenium/RemoteWebDriverProvider.java b/web-selenium/src/main/java/org/jbehave/web/selenium/RemoteWebDriverProvider.java
index e26d901..7eaa65c 100644
--- a/web-selenium/src/main/java/org/jbehave/web/selenium/RemoteWebDriverProvider.java
+++ b/web-selenium/src/mai... | false | true | public void initialize() {
URL url = null;
try {
url = createRemoteURL();
} catch (MalformedURLException e) {
throw new UnsupportedOperationException("Invalid URL " + url + ": " + e.getMessage(), e);
}
WebDriver remoteWebDriver = new ScreenshootingRemo... | public void initialize() {
URL url = null;
WebDriver remoteWebDriver;
try {
url = createRemoteURL();
remoteWebDriver = new ScreenshootingRemoteWebDriver(url, desiredCapabilities);
} catch (Throwable e) {
System.err.println("*******************");
... |
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index ec8fd96a..f17f0e45 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -1,8687 +1,8689 @@
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Versi... | false | true | public View(Context context, AttributeSet attrs, int defStyle) {
this(context);
TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.View,
defStyle, 0);
Drawable background = null;
int leftPadding = -1;
int topPadding = -1;
... | public View(Context context, AttributeSet attrs, int defStyle) {
this(context);
TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.View,
defStyle, 0);
Drawable background = null;
int leftPadding = -1;
int topPadding = -1;
... |
diff --git a/src/diaketas/UI/UI.java b/src/diaketas/UI/UI.java
index 6eb016b..fc1783d 100644
--- a/src/diaketas/UI/UI.java
+++ b/src/diaketas/UI/UI.java
@@ -1,222 +1,222 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package diaketas.UI;
import diaketas.UI... | true | true | private void initComponents() {
jMenuBotones = new javax.swing.JPanel();
botonDiaketas = new javax.swing.JButton();
botonDonantes = new javax.swing.JButton();
botonBeneficiarios = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
botonDonaciones = new ... | private void initComponents() {
jMenuBotones = new javax.swing.JPanel();
botonDiaketas = new javax.swing.JButton();
botonDonantes = new javax.swing.JButton();
botonBeneficiarios = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
botonDonaciones = new ... |
diff --git a/platform/com.subgraph.vega.http.proxy/src/com/subgraph/vega/internal/http/proxy/ProxyRequestHandler.java b/platform/com.subgraph.vega.http.proxy/src/com/subgraph/vega/internal/http/proxy/ProxyRequestHandler.java
index 1ea5c283..1b0e1bf3 100644
--- a/platform/com.subgraph.vega.http.proxy/src/com/subgraph/ve... | true | true | public void handle(HttpRequest request, HttpResponse response, HttpContext context) throws HttpException, IOException {
final ProxyTransaction transaction = new ProxyTransaction(requestEngine, context);
context.setAttribute(HttpProxy.PROXY_HTTP_TRANSACTION, transaction);
try {
if (handleRequest(transaction, ... | public void handle(HttpRequest request, HttpResponse response, HttpContext context) throws HttpException, IOException {
final ProxyTransaction transaction = new ProxyTransaction(requestEngine, context);
context.setAttribute(HttpProxy.PROXY_HTTP_TRANSACTION, transaction);
try {
if (handleRequest(transaction, ... |
diff --git a/src/com/cafeform/esxi/esximonitor/OperationButtonPanel.java b/src/com/cafeform/esxi/esximonitor/OperationButtonPanel.java
index a84eeb8..fa6e317 100644
--- a/src/com/cafeform/esxi/esximonitor/OperationButtonPanel.java
+++ b/src/com/cafeform/esxi/esximonitor/OperationButtonPanel.java
@@ -1,208 +1,209 @@
pa... | false | true | private void doCommand(String command) throws HeadlessException {
esximon.getProgressBar().setIndeterminate(true);
esximon.getStatusLabel().setText("Running " + command + " on " + vm.getName());
try {
Task task = null;
if ("poweroff".equals(command)) {
... | private void doCommand(String command) throws HeadlessException {
esximon.getProgressBar().setIndeterminate(true);
esximon.getStatusLabel().setText("Running " + command + " on " + vm.getName());
try {
Task task = null;
if ("poweroff".equals(command)) {
... |
diff --git a/CodenameG/src/edu/chl/codenameg/model/entity/MovingBlock.java b/CodenameG/src/edu/chl/codenameg/model/entity/MovingBlock.java
index 4e8788e..7356114 100644
--- a/CodenameG/src/edu/chl/codenameg/model/entity/MovingBlock.java
+++ b/CodenameG/src/edu/chl/codenameg/model/entity/MovingBlock.java
@@ -1,48 +1,50 ... | true | true | public MovingBlock(Hitbox hb, Position ps, Position endPos, int travelTime) {
super(hb, ps);
this.startPos=ps;
this.endPos = endPos;
this.travelTime = travelTime;
Tween.registerAccessor(MovingBlock.class, new EntityTweenAccessor());
Tween.to(this, EntityTweenAccessor.POSITION_XY, this.travelTime)
.targ... | public MovingBlock(Hitbox hb, Position ps, Position endPos, int travelTime) {
super(hb, ps);
this.startPos=ps;
this.endPos = endPos;
this.travelTime = travelTime;
Tween.registerAccessor(MovingBlock.class, new EntityTweenAccessor());
Tween.to(this, EntityTweenAccessor.POSITION_XY, this.travelTime)
.targ... |
diff --git a/src/graph/Graph.java b/src/graph/Graph.java
index 6fc3363..9762e8c 100644
--- a/src/graph/Graph.java
+++ b/src/graph/Graph.java
@@ -1,128 +1,130 @@
package graph;
import java.util.Iterator;
import controller.Controller;
import dataStructure.Connection;
import dataStructure.DynArray;
import dataSt... | true | true | public Connection[] shortestPath(Point from, Point to) throws RuntimeException{
//Create Dijkstra
DijkstraSP dijk = new DijkstraSP(g, from.getID());
//If there is no path between points
if(!dijk.hasPathTo(to.getID())) throw new RuntimeException("No path");
//Iterate points on path and get Con... | public Connection[] shortestPath(Point from, Point to) throws RuntimeException{
//Reset values
xMin = 70000; xMax = 0; yMin = 70000; yMax = 0;
//Create Dijkstra
DijkstraSP dijk = new DijkstraSP(g, from.getID());
//If there is no path between points
if(!dijk.hasPathTo(to.getID())) throw new Run... |
diff --git a/Battleship/src/main/java/ch/bfh/bti7301/w2013/battleship/Battleship.java b/Battleship/src/main/java/ch/bfh/bti7301/w2013/battleship/Battleship.java
index aef2ead..fb25b7a 100644
--- a/Battleship/src/main/java/ch/bfh/bti7301/w2013/battleship/Battleship.java
+++ b/Battleship/src/main/java/ch/bfh/bti7301/w201... | true | true | public void start(Stage primaryStage) {
primaryStage.setTitle(labels.getString("title"));
final Group root = new Group();
final Scene scene = new Scene(root, 800, 600, Color.WHITE);
primaryStage.setScene(scene);
final Board playerBoard = game.getLocalPlayer().getBoard();
final BoardView pbv = new BoardVi... | public void start(Stage primaryStage) {
primaryStage.setTitle(labels.getString("title"));
final Group root = new Group();
final Scene scene = new Scene(root, 800, 600, Color.WHITE);
primaryStage.setScene(scene);
final Board playerBoard = game.getLocalPlayer().getBoard();
final BoardView pbv = new BoardVi... |
diff --git a/overthere/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/JdkHttpConnector.java b/overthere/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/JdkHttpConnector.java
index dd32b25..2f9d56e 100644
--- a/overthere/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/JdkHttpConnector.j... | true | true | public Document sendMessage(Document requestDocument, SoapAction soapAction) {
try {
final URLConnection urlConnection = targetURL.openConnection();
HttpURLConnection con = (HttpURLConnection) urlConnection;
con.setDoInput(true);
con.setDoOutput(true);
con.setRequestMethod("POST");
con.setRequestP... | public Document sendMessage(Document requestDocument, SoapAction soapAction) {
try {
final URLConnection urlConnection = targetURL.openConnection();
HttpURLConnection con = (HttpURLConnection) urlConnection;
con.setDoInput(true);
con.setDoOutput(true);
con.setRequestMethod("POST");
con.setRequestP... |
diff --git a/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java b/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java
index 75d8430..e2d4bca 100644
--- a/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java
+++ b/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java
@@ -1,422 +1,422 @@
packag... | false | true | public static void setObservedHasMean(Predicate hasMean, Predicate mean, UniqueID imageID, Database data, int width, int height, int numMeans, double variance, double [] image, boolean [] mask) {
/* Counts the number of observed pixels in the image */
int numObservedPixels = 0;
for (boolean masked : mask)
if ... | public static void setObservedHasMean(Predicate hasMean, Predicate mean, UniqueID imageID, Database data, int width, int height, int numMeans, double variance, double [] image, boolean [] mask) {
/* Counts the number of observed pixels in the image */
int numObservedPixels = 0;
for (boolean masked : mask)
if ... |
diff --git a/src/java/com/threerings/tudey/server/util/SceneTicker.java b/src/java/com/threerings/tudey/server/util/SceneTicker.java
index 801e9e99..369542db 100644
--- a/src/java/com/threerings/tudey/server/util/SceneTicker.java
+++ b/src/java/com/threerings/tudey/server/util/SceneTicker.java
@@ -1,266 +1,266 @@
//
... | false | true | protected long tick ()
{
// compute the elapsed time since the last tick
long now = System.currentTimeMillis();
int elapsed = (int)(now - _lastTick);
// note when we enter or leave a period of overlong ticking
if (elapsed >= _targetInterval*4 && !_lastLong) {
... | protected long tick ()
{
// compute the elapsed time since the last tick
long now = System.currentTimeMillis();
int elapsed = (int)(now - _lastTick);
// note when we enter or leave a period of overlong ticking
if (elapsed >= _targetInterval*5 && !_lastLong) {
... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
index 14385c31e..621c466b0 100755
--- a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
+... | true | true | public final void acknowledge(final ConnectionContext context,final MessageAck ack) throws Exception {
// Handle the standard acknowledgment case.
boolean callDispatchMatched = false;
Destination destination = null;
if (!isSlave()) {
if (!okForAckAsDispatchDone.a... | public final void acknowledge(final ConnectionContext context,final MessageAck ack) throws Exception {
// Handle the standard acknowledgment case.
boolean callDispatchMatched = false;
Destination destination = null;
if (!isSlave()) {
if (!okForAckAsDispatchDone.a... |
diff --git a/wicket-contrib-dojo-examples/src/main/java/wicket/contrib/dojo/examples/SimpleAutoRefreshExample.java b/wicket-contrib-dojo-examples/src/main/java/wicket/contrib/dojo/examples/SimpleAutoRefreshExample.java
index c55d746a8..b95c93179 100644
--- a/wicket-contrib-dojo-examples/src/main/java/wicket/contrib/doj... | true | true | public SimpleAutoRefreshExample() {
timer = 0;
updateTimer();
label.add(new DojoAutoUpdateHandler(1000){
@Override
protected void update(Component component) {
updateTimer();
component.setModel(new Model<String>(display));
}
});
}
| public SimpleAutoRefreshExample() {
timer = 0;
updateTimer();
label = new Label(this, "label");
label.add(new DojoAutoUpdateHandler(1000){
@Override
protected void update(Component component) {
updateTimer();
component.setModel(new Model<String>(display));
}
});
}
|
diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/controlbus/ControlBus.java b/org.springframework.integration/src/main/java/org/springframework/integration/controlbus/ControlBus.java
index ce0e6cc382..a5da45deec 100644
--- a/org.springframework.integration/src/main/java/org/spr... | true | true | public String getBusName();
| public boolean isBusAvailable();
|
diff --git a/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java b/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
index 5997785..af22e43 100644
--- a/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
+++ b/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
@@ -1,4... | true | true | public boolean onCommand(final CommandSender sender, final Command command,
final String commandLabel, final String[] args)
{
if (!(sender instanceof Player)
|| !sender.hasPermission(command.getPermission()))
{
sender.sendMessage(ChatColor.RED + "You canno... | public boolean onCommand(final CommandSender sender, final Command command,
final String commandLabel, final String[] args)
{
if (!(sender instanceof Player)
|| !sender.hasPermission(command.getPermission()))
{
sender.sendMessage(ChatColor.RED + "You canno... |
diff --git a/src/main/java/com/sobey/cmop/mvc/web/operate/OperateController.java b/src/main/java/com/sobey/cmop/mvc/web/operate/OperateController.java
index 214be3b..950ff9c 100644
--- a/src/main/java/com/sobey/cmop/mvc/web/operate/OperateController.java
+++ b/src/main/java/com/sobey/cmop/mvc/web/operate/OperateControl... | true | true | public String update(@PathVariable("id") Integer id, Model model, RedirectAttributes redirectAttributes) {
logger.info("--->工单处理...issueId=" + id);
Issue issue = RedmineService.getIssue(id);
model.addAttribute("issue", issue);
model.addAttribute("user", comm.accountService.getCurrentUser());
RedmineIssue red... | public String update(@PathVariable("id") Integer id, Model model, RedirectAttributes redirectAttributes) {
logger.info("--->工单处理...issueId=" + id);
Issue issue = RedmineService.getIssue(id);
model.addAttribute("issue", issue);
model.addAttribute("user", comm.accountService.getCurrentUser());
RedmineIssue red... |
diff --git a/src/com/android/email/MessagingController.java b/src/com/android/email/MessagingController.java
index 02996f98..a706ab92 100644
--- a/src/com/android/email/MessagingController.java
+++ b/src/com/android/email/MessagingController.java
@@ -1,2107 +1,2112 @@
/*
* Copyright (C) 2008 The Android Open Source ... | true | true | private StoreSynchronizer.SyncResults synchronizeMailboxGeneric(
final EmailContent.Account account, final EmailContent.Mailbox folder)
throws MessagingException {
Log.d(Email.LOG_TAG, "*** synchronizeMailboxGeneric ***");
ContentResolver resolver = mContext.getContentResolv... | private StoreSynchronizer.SyncResults synchronizeMailboxGeneric(
final EmailContent.Account account, final EmailContent.Mailbox folder)
throws MessagingException {
Log.d(Email.LOG_TAG, "*** synchronizeMailboxGeneric ***");
ContentResolver resolver = mContext.getContentResolv... |
diff --git a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/VDCAdminServlet.java b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/VDCAdminServlet.java
index fab64d81d..e147cab31 100644
--- a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/VDCAdminServlet.java
+++ b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/... | true | true | protected void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType("text/html;charset=UTF-8");
PrintWriter out = res.getWriter();
if (isNetworkAdmin(req) || req.getParameter("encryptPasswords")!=null ) {
... | protected void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType("text/html;charset=UTF-8");
PrintWriter out = res.getWriter();
if (isNetworkAdmin(req) || req.getParameter("encryptPasswords")!=null ) {
... |
diff --git a/src/com/sis/util/StringHelper.java b/src/com/sis/util/StringHelper.java
index 32f369d..e837776 100644
--- a/src/com/sis/util/StringHelper.java
+++ b/src/com/sis/util/StringHelper.java
@@ -1,149 +1,149 @@
package com.sis.util;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmExce... | true | true | public static String calculateMD5(java.lang.String input) {
MessageDigest md5;
try {
md5 = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
return null;
}
md5.reset();
md5.update(input.getBytes());
byte[] result = md5.digest();
StringBuffer hexString = new StringBuffer(... | public static String calculateMD5(java.lang.String input) {
MessageDigest md5;
try {
md5 = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
return null;
}
md5.reset();
md5.update(input.getBytes());
byte[] result = md5.digest();
StringBuffer hexString = new StringBuffer(... |
diff --git a/src/main/java/net/pterodactylus/sone/web/CreateReplyPage.java b/src/main/java/net/pterodactylus/sone/web/CreateReplyPage.java
index 8fb44801..420fb86f 100644
--- a/src/main/java/net/pterodactylus/sone/web/CreateReplyPage.java
+++ b/src/main/java/net/pterodactylus/sone/web/CreateReplyPage.java
@@ -1,81 +1,8... | false | true | protected void processTemplate(Request request, Template template) throws RedirectException {
super.processTemplate(request, template);
String postId = request.getHttpRequest().getPartAsStringFailsafe("post", 36);
String text = request.getHttpRequest().getPartAsStringFailsafe("text", 65536).trim();
if (request... | protected void processTemplate(Request request, Template template) throws RedirectException {
super.processTemplate(request, template);
String postId = request.getHttpRequest().getPartAsStringFailsafe("post", 36);
String text = request.getHttpRequest().getPartAsStringFailsafe("text", 65536).trim();
String retu... |
diff --git a/tests/gdx-tests-lwjgl/src/com/badlogic/gdx/tests/lwjgl/LwjglDebugStarter.java b/tests/gdx-tests-lwjgl/src/com/badlogic/gdx/tests/lwjgl/LwjglDebugStarter.java
index e9ba4c22a..e342a7b3f 100644
--- a/tests/gdx-tests-lwjgl/src/com/badlogic/gdx/tests/lwjgl/LwjglDebugStarter.java
+++ b/tests/gdx-tests-lwjgl/src... | true | true | public static void main (String[] argv) {
// this is only here for me to debug native code faster
new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio");
new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image");
new SharedLib... | public static void main (String[] argv) {
// this is only here for me to debug native code faster
new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio");
new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image");
new SharedLib... |
diff --git a/vme-web/src/main/java/org/vme/service/search/vme/VmeSearchService.java b/vme-web/src/main/java/org/vme/service/search/vme/VmeSearchService.java
index f5cff487..d3416343 100644
--- a/vme-web/src/main/java/org/vme/service/search/vme/VmeSearchService.java
+++ b/vme-web/src/main/java/org/vme/service/search/vme... | true | true | private boolean containRelevantText(Vme vme, String text) {
if (StringUtils.containsIgnoreCase(vme.getAreaType(), text)) return true;
if (StringUtils.containsIgnoreCase(vme.getCriteria(), text)) return true;
for (String element : vme.getGeoArea().getStringMap().values()) {
if (StringUtils.containsIgnoreCase(e... | private boolean containRelevantText(Vme vme, String text) {
if (StringUtils.containsIgnoreCase(vme.getAreaType(), text)) return true;
if (StringUtils.containsIgnoreCase(vme.getCriteria(), text)) return true;
for (String element : vme.getGeoArea().getStringMap().values()) {
if (StringUtils.containsIgnoreCase(e... |
diff --git a/bundles/net.i2cat.nexus.resources/src/main/java/net/i2cat/nexus/resources/shell/CreateResourceCommand.java b/bundles/net.i2cat.nexus.resources/src/main/java/net/i2cat/nexus/resources/shell/CreateResourceCommand.java
index cd4e52644..09de9e5dd 100644
--- a/bundles/net.i2cat.nexus.resources/src/main/java/net... | false | true | protected Object doExecute() throws Exception {
initcommand("create resource");
Boolean created = false;
IResourceManager manager = getResourceManager();
ResourceDescriptor descriptor = null;
// For each argument path or URL
for (String filename : paths) {
File file = new File(filename);
// check... | protected Object doExecute() throws Exception {
initcommand("create resource");
Boolean created = false;
IResourceManager manager = getResourceManager();
ResourceDescriptor descriptor = null;
// For each argument path or URL
for (String filename : paths) {
File file = new File(filename);
// check... |
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchCommand.java
index 791145e8..beee9a4a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchComman... | true | true | public Ref call() throws JGitInternalException, RefAlreadyExistsException,
RefNotFoundException, InvalidRefNameException {
checkCallable();
processOptions();
try {
boolean exists = repo.getRef(name) != null;
if (!force && exists)
throw new RefAlreadyExistsException(MessageFormat.format(
JGitTe... | public Ref call() throws JGitInternalException, RefAlreadyExistsException,
RefNotFoundException, InvalidRefNameException {
checkCallable();
processOptions();
try {
Ref refToCheck = repo.getRef(name);
boolean exists = refToCheck != null
&& refToCheck.getName().startsWith(Constants.R_HEADS);
if (!... |
diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java
index 1c77e730..e0a850f4 100644
--- a/android-project/src/org/libsdl/app/SDLActivity.java
+++ b/android-project/src/org/libsdl/app/SDLActivity.java
@@ -1,745 +1,745 @@
package org.libsdl.app;
impor... | false | true | public void surfaceChanged(SurfaceHolder holder,
int format, int width, int height) {
Log.v("SDL", "surfaceChanged()");
int sdlFormat = 0x85151002; // SDL_PIXELFORMAT_RGB565 by default
switch (format) {
case PixelFormat.A_8:
Log.v("SDL", "p... | public void surfaceChanged(SurfaceHolder holder,
int format, int width, int height) {
Log.v("SDL", "surfaceChanged()");
int sdlFormat = 0x15151002; // SDL_PIXELFORMAT_RGB565 by default
switch (format) {
case PixelFormat.A_8:
Log.v("SDL", "p... |
diff --git a/src/thesaurus/gui/window/PopupFactory.java b/src/thesaurus/gui/window/PopupFactory.java
index 6c4da33..8bee1a9 100644
--- a/src/thesaurus/gui/window/PopupFactory.java
+++ b/src/thesaurus/gui/window/PopupFactory.java
@@ -1,247 +1,247 @@
package thesaurus.gui.window;
import java.util.LinkedList;
impor... | true | true | private Pane makeCanvasEdit() {
Pane canvas = getPane(220,230);
Text addWordLabel = getText(35,10,"Edit Word",2);
Text promptWordLabel = getText(5,52,"Word: ",1);
final TextField addWordInput = getTextField(80, 50, 120);
Text promptSynLabel = getText(5,82,"Synonyms: ",1);
final TextField addSynInput = getT... | private Pane makeCanvasEdit() {
Pane canvas = getPane(220,230);
Text addWordLabel = getText(35,10,"Edit Word",2);
Text promptWordLabel = getText(5,52,"Word: ",1);
final TextField addWordInput = getTextField(80, 50, 120);
Text promptSynLabel = getText(5,82,"Synonyms: ",1);
final TextField addSynInput = getT... |
diff --git a/svnkit-cli/src/org/tmatesoft/svn/cli2/SVNCommandLine.java b/svnkit-cli/src/org/tmatesoft/svn/cli2/SVNCommandLine.java
index 6748cf152..2a165039c 100644
--- a/svnkit-cli/src/org/tmatesoft/svn/cli2/SVNCommandLine.java
+++ b/svnkit-cli/src/org/tmatesoft/svn/cli2/SVNCommandLine.java
@@ -1,171 +1,170 @@
/*
*... | false | true | private SVNOptionValue nextOption() throws SVNException {
if (myArgumentPosition == 0) {
while (myArgumentIndex < myInputArguments.length && !myInputArguments[myArgumentIndex].startsWith("-")) {
String argument = myInputArguments[myArgumentIndex];
// this is eithe... | private SVNOptionValue nextOption() throws SVNException {
if (myArgumentPosition == 0) {
while (myArgumentIndex < myInputArguments.length && !myInputArguments[myArgumentIndex].startsWith("-")) {
String argument = myInputArguments[myArgumentIndex];
// this is eithe... |
diff --git a/src/main/java/com/pk/cwierkacz/controller/ErrorServlet.java b/src/main/java/com/pk/cwierkacz/controller/ErrorServlet.java
index 33929f0..2bdd1da 100644
--- a/src/main/java/com/pk/cwierkacz/controller/ErrorServlet.java
+++ b/src/main/java/com/pk/cwierkacz/controller/ErrorServlet.java
@@ -1,67 +1,67 @@
pack... | true | true | public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException {
Throwable throwable = (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
String token = null;
Cookie[] cookies = request.getCookies();
for ( Cookie cookie : cookies )... | public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException {
Throwable throwable = (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
String token = null;
Cookie[] cookies = request.getCookies();
for ( Cookie cookie : cookies )... |
diff --git a/src/main/java/com/eli/web/action/MainSearch.java b/src/main/java/com/eli/web/action/MainSearch.java
index 8a3543a..a3c65be 100644
--- a/src/main/java/com/eli/web/action/MainSearch.java
+++ b/src/main/java/com/eli/web/action/MainSearch.java
@@ -1,94 +1,94 @@
package com.eli.web.action;
import com.el... | true | true | protected void execute() throws IOException {
String token = super.getParam("q", "?");
int offset = Integer.parseInt(super.getParam("offset", "0"));
int limit = Integer.parseInt(super.getParam("limit", "20"));
super.put("query", token);
super.put("offset", offset);
... | protected void execute() throws IOException {
String token = super.getParam("q", "");
int offset = Integer.parseInt(super.getParam("offset", "0"));
int limit = Integer.parseInt(super.getParam("limit", "20"));
super.put("query", token);
super.put("offset", offset);
... |
diff --git a/src/jvm/clojure/lang/ProxyHandler.java b/src/jvm/clojure/lang/ProxyHandler.java
index 2e67d5b4..832deefa 100644
--- a/src/jvm/clojure/lang/ProxyHandler.java
+++ b/src/jvm/clojure/lang/ProxyHandler.java
@@ -1,60 +1,60 @@
/**
* Copyright (c) Rich Hickey. All rights reserved.
* The use and distributi... | true | true | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable{
Class rt = method.getReturnType();
IFn fn = (IFn) fns.valAt(method.getName());
if(fn == null)
{
if(rt == Void.TYPE)
return null;
throw new UnsupportedOperationException();
}
Object ret = fn.applyTo(ArraySeq.create(args));
... | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable{
Class rt = method.getReturnType();
IFn fn = (IFn) fns.valAt(method.getName());
if(fn == null)
{
if(rt == Void.TYPE)
return null;
throw new UnsupportedOperationException();
}
Object ret = fn.applyTo(ArraySeq.create(args));
... |
diff --git a/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelInsert.java b/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelInsert.java
index fe39c84..6f7e830 100644
--- a/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelInsert.java
+++ b/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelInsert.java
@@ -1,107 +1,107 @@
pa... | true | true | public MiddlePanelInsert(MainWindow gui) {
super(gui);
//Inicializar los Labeles
into = new JLabel("INTO Vehiculo :");
nroPatente = new JLabel("nro_patente =");
typo = new JLabel("typo =");
modelo = new JLabel("modelo =");
ano = new JLabel("anos =");
//Inicializar los textFields
try {
txtNroPat... | public MiddlePanelInsert(MainWindow gui) {
super(gui);
//Inicializar los Labeles
into = new JLabel("INTO Vehiculo :");
nroPatente = new JLabel("nro_patente =");
typo = new JLabel("typo =");
modelo = new JLabel("modelo =");
ano = new JLabel("ano =");
//Inicializar los textFields
try {
txtNroPate... |
diff --git a/org/injustice/rawchicken/strategies/WalkBox.java b/org/injustice/rawchicken/strategies/WalkBox.java
index 96a4282..9dfbdb8 100644
--- a/org/injustice/rawchicken/strategies/WalkBox.java
+++ b/org/injustice/rawchicken/strategies/WalkBox.java
@@ -1,63 +1,63 @@
package org.injustice.rawchicken.strategies;
... | true | true | public void execute() {
SceneObject depositbox = SceneEntities.getNearest(Var.DEPOSIT_BOX_ID);
if (!Walking.isRunEnabled() && Walking.getEnergy() > 20) { // if run isn't enabled and energy is more than 20
Var.status = "Setting run"; // change status
... | public void execute() {
SceneObject depositbox = SceneEntities.getNearest(Var.DEPOSIT_BOX_ID);
if (!Walking.isRunEnabled() && Walking.getEnergy() > 20) { // if run isn't enabled and energy is more than 20
Var.status = "Setting run"; // change status
... |
diff --git a/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java b/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java
index 08df629..91395fd 100644
--- a/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java
+++ b/src/chalmers/dax021308/ecosystem/view/OpenGLSimulationView.java
@@ -1,4... | true | true | public void display(GLAutoDrawable drawable) {
increaseUpdateValue();
long start = System.currentTimeMillis();
double frameHeight = (double)getHeight();
double frameWidth = (double)getWidth();
double sc... | public void display(GLAutoDrawable drawable) {
increaseUpdateValue();
long start = System.currentTimeMillis();
double frameHeight = (double)getHeight();
double frameWidth = (double)getWidth();
double sc... |
diff --git a/src/shoddybattleclient/GameVisualisation.java b/src/shoddybattleclient/GameVisualisation.java
index c8990f5..216c28b 100644
--- a/src/shoddybattleclient/GameVisualisation.java
+++ b/src/shoddybattleclient/GameVisualisation.java
@@ -1,870 +1,872 @@
/*
* GameVisualisation.java
*
* Created on Apr 10, 2... | false | true | public GameVisualisation(int view, int n, int length, List<PokemonSpecies> speciesList) {
this.setLayout(null);
m_view = view;
m_active = new VisualPokemon[2][n];
m_parties = new VisualPokemon[2][length];
m_pokeballs = new Pokeball[2][length];
m_speciesList = speciesL... | public GameVisualisation(int view, int n, int length, List<PokemonSpecies> speciesList) {
this.setLayout(null);
m_view = view;
m_active = new VisualPokemon[2][n];
m_parties = new VisualPokemon[2][length];
m_pokeballs = new Pokeball[2][length];
m_speciesList = speciesL... |
diff --git a/src/me/sinnoh/MasterPromote/MPConfig.java b/src/me/sinnoh/MasterPromote/MPConfig.java
index f504f8e..0eb8805 100644
--- a/src/me/sinnoh/MasterPromote/MPConfig.java
+++ b/src/me/sinnoh/MasterPromote/MPConfig.java
@@ -1,157 +1,157 @@
package me.sinnoh.MasterPromote;
import java.io.File;
import java.io.F... | true | true | public static void updateconfig()
{
if(plugin.config.getString("configversion").equals(plugin.getDescription().getVersion()))
{
plugin.config.set("configversion", plugin.getDescription().getVersion());
}
if(plugin.config.getString("Apply.Enabled") == null)
{
plugin.config.set("Apply.Enabled", true);
... | public static void updateconfig()
{
if(!plugin.config.getString("configversion").equals(plugin.getDescription().getVersion()))
{
plugin.config.set("configversion", plugin.getDescription().getVersion());
}
if(plugin.config.getString("Apply.Enabled") == null)
{
plugin.config.set("Apply.Enabled", true);
... |
diff --git a/src/com/contoso/services/TodoServices.java b/src/com/contoso/services/TodoServices.java
index 1ee472a..a685d28 100644
--- a/src/com/contoso/services/TodoServices.java
+++ b/src/com/contoso/services/TodoServices.java
@@ -1,82 +1,82 @@
/* Todo service */
package com.contoso.services;
import java.io.IOEx... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Gson gson = new Gson();
TodoList todoList = new TodoList();
todoList.name = "Personal";
todoList.color = "blue";
todoList.items = getTe... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Gson gson = new Gson();
TodoList todoList = new TodoList();
todoList.name = "Personal";
todoList.color = "purple";
todoList.items = get... |
diff --git a/geogebra/geogebra/kernel/AlgoSolveODE.java b/geogebra/geogebra/kernel/AlgoSolveODE.java
index 5ff758a40..62a811de5 100644
--- a/geogebra/geogebra/kernel/AlgoSolveODE.java
+++ b/geogebra/geogebra/kernel/AlgoSolveODE.java
@@ -1,209 +1,213 @@
package geogebra.kernel;
import geogebra.kernel.arithmetic.Func... | false | true | protected final void compute() {
if (!((GeoElement)f0).isDefined() || !x.isDefined() || !y.isDefined() || !step.isDefined() || !end.isDefined() || kernel.isZero(step.getDouble())) {
//g.setUndefined();
locus.setUndefined();
return;
}
//g... | protected final void compute() {
if (!((GeoElement)f0).isDefined() || !x.isDefined() || !y.isDefined() || !step.isDefined() || !end.isDefined() || kernel.isZero(step.getDouble())) {
//g.setUndefined();
locus.setUndefined();
return;
}
//g... |
diff --git a/src/main/java/org/encog/ml/prg/train/PrgGenetic.java b/src/main/java/org/encog/ml/prg/train/PrgGenetic.java
index 70c3586d2..af89c5551 100644
--- a/src/main/java/org/encog/ml/prg/train/PrgGenetic.java
+++ b/src/main/java/org/encog/ml/prg/train/PrgGenetic.java
@@ -1,377 +1,377 @@
package org.encog.ml.prg.t... | true | true | public void createRandomPopulation(int maxDepth) {
CreateRandom rnd = new CreateRandom(this.context, maxDepth);
Random random = this.randomNumberFactory.factor();
for (int i = 0; i < this.population.getMaxPopulation(); i++) {
EncogProgram prg = new EncogProgram(this.context, new EncogProgramVariables(), this... | public void createRandomPopulation(int maxDepth) {
CreateRandom rnd = new CreateRandom(this.context, maxDepth);
Random random = this.randomNumberFactory.factor();
for (int i = 0; i < this.population.getMaxPopulation(); i++) {
EncogProgram prg = new EncogProgram(this.context, new EncogProgramVariables(), this... |
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/WordRecognizerWrapper.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/WordRecognizerWrapper.java
index ade95f556..ed4ca72d6 100644
--- a/plugins/org.eclipse.birt.report.engine/sr... | true | true | private void keepWithNext( )
{
if ( !genCurrentICUWord( ) )
{
return;
}
// current word is a char must keep with next.
if (currentWord.getLength( ) == 1)
{
if ( KEEP_WITH_NEXT_CHARS.indexOf( currentWord.getValue( ) ) != -1 )
{
end = currentWord.getEnd( );
keepWithNext( );
}
else ... | private void keepWithNext( )
{
if ( !genCurrentICUWord( ) )
{
return;
}
// current word is a char must keep with next.
if (currentWord.getLength( ) == 1)
{
if ( KEEP_WITH_NEXT_CHARS.indexOf( currentWord.getValue( ) ) != -1 )
{
end = currentWord.getEnd( );
keepWithNext( );
}
else ... |
diff --git a/gamelib/test/game/configuration/ConfigurableTestA.java b/gamelib/test/game/configuration/ConfigurableTestA.java
index 0d1bc59..b6feb90 100644
--- a/gamelib/test/game/configuration/ConfigurableTestA.java
+++ b/gamelib/test/game/configuration/ConfigurableTestA.java
@@ -1,42 +1,42 @@
package game.configurati... | true | true | public ConfigurableTestA() {
addOptionBinding("optionA1", "optionA4.optionB1", "optionA5.optionC1");
addOptionBinding("optionA2", "optionA4.optionB2");
addOptionBinding("optionA4.optionB3", "optionA5.optionC2");
addOptionCheck("optionA3", new StringLengthCheck(20));
}
| public ConfigurableTestA() {
addOptionBinding("optionA1", "optionA4.optionB1", "optionA5.optionC1");
addOptionBinding("optionA2", "optionA4.optionB2");
addOptionBinding("optionA4.optionB3", "optionA5.optionC2");
addOptionChecks("optionA3", new StringLengthCheck(20));
}
|
diff --git a/src/main/java/com/philihp/weblabora/action/BaseAction.java b/src/main/java/com/philihp/weblabora/action/BaseAction.java
index 77e1ca3..30ed01b 100644
--- a/src/main/java/com/philihp/weblabora/action/BaseAction.java
+++ b/src/main/java/com/philihp/weblabora/action/BaseAction.java
@@ -1,59 +1,62 @@
package ... | true | true | public ActionForward execute(ActionMapping mapping, ActionForm actionForm,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
System.out.println("Action: "+this.getClass().getCanonicalName());
EntityManager em = (EntityManager)request.getAttribute("em");
User user = (User)requ... | public ActionForward execute(ActionMapping mapping, ActionForm actionForm,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
System.out.println("Action: "+this.getClass().getCanonicalName());
EntityManager em = (EntityManager)request.getAttribute("em");
User user = (User)requ... |
diff --git a/core/src/main/java/org/neociclo/odetteftp/netty/codec/CommandExchangeBufferBuilder.java b/core/src/main/java/org/neociclo/odetteftp/netty/codec/CommandExchangeBufferBuilder.java
index 27ad4b8..86488b9 100644
--- a/core/src/main/java/org/neociclo/odetteftp/netty/codec/CommandExchangeBufferBuilder.java
+++ b... | true | true | public static CommandExchangeBuffer create(CommandFormat format, ChannelBuffer in) {
CommandExchangeBuffer command = new CommandExchangeBuffer(format);
Map<String, ParamsRead> fieldsRead = new HashMap<String, ParamsRead>();
int bufferLength = in.capacity();
for (String fieldName ... | public static CommandExchangeBuffer create(CommandFormat format, ChannelBuffer in) {
CommandExchangeBuffer command = new CommandExchangeBuffer(format);
Map<String, ParamsRead> fieldsRead = new HashMap<String, ParamsRead>();
int bufferLength = in.capacity();
for (String fieldName ... |
diff --git a/public/java/src/org/broadinstitute/sting/gatk/samples/SampleDB.java b/public/java/src/org/broadinstitute/sting/gatk/samples/SampleDB.java
index 9f00257d1..929ad41d1 100644
--- a/public/java/src/org/broadinstitute/sting/gatk/samples/SampleDB.java
+++ b/public/java/src/org/broadinstitute/sting/gatk/samples/S... | true | true | public final Map<String, Set<Sample>> getFamilies(Collection<String> sampleIds) {
final Map<String, Set<Sample>> families = new TreeMap<String, Set<Sample>>();
for ( final Sample sample : samples.values() ) {
if(sampleIds != null && sampleIds.contains(sample.getID())){
f... | public final Map<String, Set<Sample>> getFamilies(Collection<String> sampleIds) {
final Map<String, Set<Sample>> families = new TreeMap<String, Set<Sample>>();
for ( final Sample sample : samples.values() ) {
if(sampleIds == null || sampleIds.contains(sample.getID())){
f... |
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 15e119bbe..c7d6e5169 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ ... | false | true | private void bindData(Contact data) {
mContactData = data;
final ResolveCache cache = ResolveCache.getInstance(this);
final Context context = this;
mOpenDetailsOrAddContactImage.setVisibility(isMimeExcluded(Contacts.CONTENT_ITEM_TYPE) ?
View.GONE : View.VISIBLE);
... | private void bindData(Contact data) {
mContactData = data;
final ResolveCache cache = ResolveCache.getInstance(this);
final Context context = this;
mOpenDetailsOrAddContactImage.setVisibility(isMimeExcluded(Contacts.CONTENT_ITEM_TYPE) ?
View.GONE : View.VISIBLE);
... |
diff --git a/src/com/pentacog/mctracker/GetServerDataTask.java b/src/com/pentacog/mctracker/GetServerDataTask.java
index c39a63e..c0432eb 100644
--- a/src/com/pentacog/mctracker/GetServerDataTask.java
+++ b/src/com/pentacog/mctracker/GetServerDataTask.java
@@ -1,157 +1,157 @@
/*
* This work is licensed under the Cre... | true | true | protected String doInBackground(Void... params) {
String error = null;
String message = "";
short stringLen = -1;
try {
long requestTime = 0;
String[] parts = null;
byte[] bytes = new byte[256];
Socket sock = new Socket(server.address, server.port);
sock.setSoTimeout(SOCKET_TIMEOUT);
Outp... | protected String doInBackground(Void... params) {
String error = null;
String message = "";
short stringLen = -1;
try {
long requestTime = 0;
String[] parts = null;
byte[] bytes = new byte[256];
Socket sock = new Socket(server.address, server.port);
sock.setSoTimeout(SOCKET_TIMEOUT);
Outp... |
diff --git a/src/main/java/org/debox/photo/model/Photo.java b/src/main/java/org/debox/photo/model/Photo.java
index 3996aa3..7dac74e 100644
--- a/src/main/java/org/debox/photo/model/Photo.java
+++ b/src/main/java/org/debox/photo/model/Photo.java
@@ -1,108 +1,108 @@
/*
* #%L
* debox-photos
* %%
* Copyright (C) 2... | true | true | public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object instanceof Photo) {
Photo photo = (Photo) object;
return Objects.equals(this.relativePath + File.separatorChar + this.getId(), photo.getRelativePath() + File.separator... | public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object instanceof Photo) {
Photo photo = (Photo) object;
return Objects.equals(this.relativePath + File.separatorChar + this.getName(), photo.getRelativePath() + File.separat... |
diff --git a/src/cells/Map.java b/src/cells/Map.java
index b3ceb50..03f3b4c 100644
--- a/src/cells/Map.java
+++ b/src/cells/Map.java
@@ -1,90 +1,90 @@
package cells;
import java.awt.Graphics;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import pxlJam.Crayon;
public c... | false | true | public void readMap() {
try {
Scanner scan = new Scanner(file);
width = scan.nextInt();
height = scan.nextInt();
tiles = new Cell[width][height];
int tempInt;
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
if (scan.hasNext()) {
tempInt = scan.nextInt();
... | public void readMap() {
try {
Scanner scan = new Scanner(file);
width = scan.nextInt();
height = scan.nextInt();
tiles = new Cell[width][height];
int tempInt;
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
if (scan.hasNext()) {
tempInt = scan.nextInt();
... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java
index d69cfe778..1934921aa 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tas... | true | true | protected void addComments(final FormToolkit toolkit, final Composite composite, final List<TaskAttribute> comments) {
for (final TaskAttribute commentAttribute : comments) {
boolean hasIncomingChanges = getModel().hasIncomingChanges(commentAttribute);
final TaskComment taskComment = new TaskComment(getModel()... | protected void addComments(final FormToolkit toolkit, final Composite composite, final List<TaskAttribute> comments) {
for (final TaskAttribute commentAttribute : comments) {
boolean hasIncomingChanges = getModel().hasIncomingChanges(commentAttribute);
final TaskComment taskComment = new TaskComment(getModel()... |
diff --git a/net/sourceforge/pinemup/logic/NoteIO.java b/net/sourceforge/pinemup/logic/NoteIO.java
index dd1a56e..1a203bd 100755
--- a/net/sourceforge/pinemup/logic/NoteIO.java
+++ b/net/sourceforge/pinemup/logic/NoteIO.java
@@ -1,300 +1,298 @@
/*
* pin 'em up
*
* Copyright (C) 2007 by Mario Koedding
*
*
... | true | true | public static CategoryList readCategoriesFromFile(UserSettings s) {
CategoryList c = new CategoryList();
Category currentCategory = null;
Note currentNote = null;
boolean defaultNotAdded = true;
try {
InputStream in = new FileInputStream(s.getNotesFile());
XMLInputFact... | public static CategoryList readCategoriesFromFile(UserSettings s) {
CategoryList c = new CategoryList();
Category currentCategory = null;
Note currentNote = null;
boolean defaultNotAdded = true;
try {
InputStream in = new FileInputStream(s.getNotesFile());
XMLInputFact... |
diff --git a/location/src/main/java/org/jahia/modules/location/LocationService.java b/location/src/main/java/org/jahia/modules/location/LocationService.java
index 4519c7fa..13d52bc9 100644
--- a/location/src/main/java/org/jahia/modules/location/LocationService.java
+++ b/location/src/main/java/org/jahia/modules/locatio... | true | true | public void geocodeLocation(AddedNodeFact node, KnowledgeHelper drools) throws RepositoryException {
final Geocoder geocoder = new Geocoder();
JCRNodeWrapper nodeWrapper = node.getNode();
StringBuffer address = new StringBuffer();
address.append(nodeWrapper.getProperty("j:street").g... | public void geocodeLocation(AddedNodeFact node, KnowledgeHelper drools) throws RepositoryException {
final Geocoder geocoder = new Geocoder();
JCRNodeWrapper nodeWrapper = node.getNode();
StringBuffer address = new StringBuffer();
address.append(nodeWrapper.getProperty("j:street").g... |
diff --git a/jamwiki-web/src/main/java/org/jamwiki/servlets/SearchServlet.java b/jamwiki-web/src/main/java/org/jamwiki/servlets/SearchServlet.java
index d150ea42..85316208 100644
--- a/jamwiki-web/src/main/java/org/jamwiki/servlets/SearchServlet.java
+++ b/jamwiki-web/src/main/java/org/jamwiki/servlets/SearchServlet.ja... | false | true | private void search(HttpServletRequest request, ModelAndView next, WikiPageInfo pageInfo) throws Exception {
String virtualWiki = pageInfo.getVirtualWikiName();
String searchField = request.getParameter("text");
if (request.getParameter("text") == null) {
pageInfo.setPageTitle(new WikiMessage("search.title"))... | private void search(HttpServletRequest request, ModelAndView next, WikiPageInfo pageInfo) throws Exception {
String virtualWiki = pageInfo.getVirtualWikiName();
String searchField = request.getParameter("text");
if (request.getParameter("text") == null) {
pageInfo.setPageTitle(new WikiMessage("search.title"))... |
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java
index 07bed72e5..98746809e 100644
--- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java
+++ b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java... | false | true | public static void harvestCommitables(Map commitables, SVNAdminArea dir, File path, SVNEntry parentEntry,
SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly,
boolean justLocked, Map lockTokens, SVNDepth depth, boolean forcedRecursion,
Collection... | public static void harvestCommitables(Map commitables, SVNAdminArea dir, File path, SVNEntry parentEntry,
SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly,
boolean justLocked, Map lockTokens, SVNDepth depth, boolean forcedRecursion,
Collection... |
diff --git a/src_new/org/argouml/ui/AboutBox.java b/src_new/org/argouml/ui/AboutBox.java
index 4bb7eb8..ed0f397 100644
--- a/src_new/org/argouml/ui/AboutBox.java
+++ b/src_new/org/argouml/ui/AboutBox.java
@@ -1,294 +1,297 @@
// Copyright (c) 1996-99 The Regents of the University of California. All
// Rights Reserved.... | false | true | public AboutBox() {
super("About Argo/UML");
String iconName = "Splash";
ImageIcon splashImage = loadIconResource(iconName, iconName);
int imgWidth = splashImage.getIconWidth();
int imgHeight = splashImage.getIconHeight();
Dimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();
se... | public AboutBox() {
super("About Argo/UML");
String iconName = "Splash";
ImageIcon splashImage = loadIconResource(iconName, iconName);
int imgWidth = splashImage.getIconWidth();
int imgHeight = splashImage.getIconHeight();
Dimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();
se... |
diff --git a/src/main/java/org/atlasapi/remotesite/seesaw/SeesawItemContentExtractor.java b/src/main/java/org/atlasapi/remotesite/seesaw/SeesawItemContentExtractor.java
index 6f74c98f7..11162efef 100644
--- a/src/main/java/org/atlasapi/remotesite/seesaw/SeesawItemContentExtractor.java
+++ b/src/main/java/org/atlasapi/r... | true | true | public Episode extract(HtmlNavigator source) {
try {
Episode episode = new Episode();
episode.setPublisher(Publisher.SEESAW);
Version version = new Version();
version.setProvider(Publisher.SEESAW);
Encoding encoding = new Encoding();
... | public Episode extract(HtmlNavigator source) {
try {
Episode episode = new Episode();
episode.setPublisher(Publisher.SEESAW);
Version version = new Version();
version.setProvider(Publisher.SEESAW);
Encoding encoding = new Encoding();
... |
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java
index cbf72103e..931663b06 100644
--- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletReq... | true | true | public void send() {
checkReadOnly();
final Request request = (Request) super.message;
final MobicentsSipSession session = getSipSession();
try {
ProxyImpl proxy = null;
if(session != null) {
proxy = session.getProxy();
}
final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa... | public void send() {
checkReadOnly();
final Request request = (Request) super.message;
final MobicentsSipSession session = getSipSession();
try {
ProxyImpl proxy = null;
if(session != null) {
proxy = session.getProxy();
}
final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa... |
diff --git a/src/main/java/org/dynmap/kzedmap/ZoomedTileRenderer.java b/src/main/java/org/dynmap/kzedmap/ZoomedTileRenderer.java
index 908f1fbf..552e9d21 100644
--- a/src/main/java/org/dynmap/kzedmap/ZoomedTileRenderer.java
+++ b/src/main/java/org/dynmap/kzedmap/ZoomedTileRenderer.java
@@ -1,84 +1,85 @@
package org.dy... | true | true | public void render(KzedZoomedMapTile zt, File outputPath) {
KzedMapTile originalTile = zt.originalTile;
int px = originalTile.px;
int py = originalTile.py;
int zpx = zt.getTileX();
int zpy = zt.getTileY();
BufferedImage image = null;
try {
... | public void render(KzedZoomedMapTile zt, File outputPath) {
KzedMapTile originalTile = zt.originalTile;
int px = originalTile.px;
int py = originalTile.py;
int zpx = zt.getTileX();
int zpy = zt.getTileY();
BufferedImage image = null;
try {
... |
diff --git a/framework/src/play/test/Fixtures.java b/framework/src/play/test/Fixtures.java
index a9f43fe2..63d13236 100644
--- a/framework/src/play/test/Fixtures.java
+++ b/framework/src/play/test/Fixtures.java
@@ -1,451 +1,448 @@
package play.test;
import java.io.IOException;
import java.io.InputStream;
import j... | true | true | public static void loadModels(String name) {
VirtualFile yamlFile = null;
try {
for (VirtualFile vf : Play.javaPath) {
yamlFile = vf.child(name);
if (yamlFile != null && yamlFile.exists()) {
break;
}
}
... | public static void loadModels(String name) {
VirtualFile yamlFile = null;
try {
for (VirtualFile vf : Play.javaPath) {
yamlFile = vf.child(name);
if (yamlFile != null && yamlFile.exists()) {
break;
}
}
... |
diff --git a/src/projectmayhem/MainMenu.java b/src/projectmayhem/MainMenu.java
index e7c139a..b8386ac 100644
--- a/src/projectmayhem/MainMenu.java
+++ b/src/projectmayhem/MainMenu.java
@@ -1,42 +1,42 @@
package projectmayhem;
import misc.Button;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.G... | true | true | public void init(GameContainer gc, StateBasedGame sbg) throws SlickException{
playButtonState = 0;
play = new Button(new Image("graphics/buttons/playbutton.png"), new Image("graphics/buttons/playbuttonhover.png"), Button.LEFTBOT(), Button.LEFTBOT(), gc);
}
| public void init(GameContainer gc, StateBasedGame sbg) throws SlickException{
playButtonState = 0;
play = new Button(new Image("graphics/buttons/textplaybutton.png"), new Image("graphics/buttons/textplaybuttonhover.png"), Button.MID(), Button.MID(), gc);
}
|
diff --git a/src/main/java/hudson/remoting/Which.java b/src/main/java/hudson/remoting/Which.java
index c2196246..35e37510 100644
--- a/src/main/java/hudson/remoting/Which.java
+++ b/src/main/java/hudson/remoting/Which.java
@@ -1,221 +1,227 @@
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, I... | true | true | public static File jarFile(Class clazz) throws IOException {
URL res = jarURL(clazz);
String resURL = res.toExternalForm();
String originalURL = resURL;
if(resURL.startsWith("jar:file:") || resURL.startsWith("wsjar:file:"))
return fromJarUrlToFile(resURL);
if(res... | public static File jarFile(Class clazz) throws IOException {
URL res = jarURL(clazz);
String resURL = res.toExternalForm();
String originalURL = resURL;
if(resURL.startsWith("jar:file:") || resURL.startsWith("wsjar:file:"))
return fromJarUrlToFile(resURL);
if(res... |
diff --git a/src/org/openstreetmap/josm/actions/OpenLocationAction.java b/src/org/openstreetmap/josm/actions/OpenLocationAction.java
index 43713245..1f4e8c09 100644
--- a/src/org/openstreetmap/josm/actions/OpenLocationAction.java
+++ b/src/org/openstreetmap/josm/actions/OpenLocationAction.java
@@ -1,62 +1,63 @@
// Lic... | true | true | public void actionPerformed(ActionEvent e) {
JCheckBox layer = new JCheckBox(tr("Separate Layer"));
layer.setSelected(Main.pref.getBoolean("download.newlayer"));
JPanel all = new JPanel(new GridBagLayout());
all.add(new JLabel(tr("Enter URL to download:")), GBC.eol());
JText... | public void actionPerformed(ActionEvent e) {
JCheckBox layer = new JCheckBox(tr("Separate Layer"));
layer.setSelected(Main.pref.getBoolean("download.newlayer"));
JPanel all = new JPanel(new GridBagLayout());
all.add(new JLabel(tr("Enter URL to download:")), GBC.eol());
JText... |
diff --git a/org.envirocar.app/src/org/envirocar/app/activity/MainActivity.java b/org.envirocar.app/src/org/envirocar/app/activity/MainActivity.java
index 163a714d..28f9f383 100644
--- a/org.envirocar.app/src/org/envirocar/app/activity/MainActivity.java
+++ b/org.envirocar.app/src/org/envirocar/app/activity/MainActivit... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
readSavedState(savedInstanceState);
this.setContentView(R.layout.main_layout);
application = ((ECApplication) getApplication());
preferences = PreferenceManager.getDefaultSharedPreferences(this);
alwaysUpload... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
readSavedState(savedInstanceState);
this.setContentView(R.layout.main_layout);
application = ((ECApplication) getApplication());
preferences = PreferenceManager.getDefaultSharedPreferences(this);
alwaysUpload... |
diff --git a/src/com/madalla/service/blog/BlogService.java b/src/com/madalla/service/blog/BlogService.java
index e0f75651..7b6991cc 100644
--- a/src/com/madalla/service/blog/BlogService.java
+++ b/src/com/madalla/service/blog/BlogService.java
@@ -1,121 +1,121 @@
package com.madalla.service.blog;
import java.io.Seri... | true | true | public int saveBlogEntry(BlogEntry blogEntry) {
int blogId;
if (blogEntry.getId() == 0){
log.debug("saveBlogEntry - inserting "+blogEntry);
blogId = dao.insertBlogEntry(blogEntry);
} else {
log.debug("saveBlogEntry - updating "+blogEntry);
dao.saveBlogEntry(b... | public int saveBlogEntry(BlogEntry blogEntry) {
int blogId;
if (blogEntry.getId() == 0){
log.debug("saveBlogEntry - inserting "+blogEntry);
blogId = dao.insertBlogEntry(blogEntry);
} else {
log.debug("saveBlogEntry - updating "+blogEntry);
dao.saveBlogEntry(b... |
diff --git a/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java b/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java
index 65df15bb5..dd8637545 100644
--- a/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java
+++ b/src/de/uni_koblenz/jgralab/greql2/parser/ManualGreqlLexer.java
@@ -1,3... | true | true | public Token getNextToken() {
TokenTypes recognizedTokenType = null;
Token recognizedToken = null;
int bml = 0; // best match length
skipWs();
// recognize fixed tokens
for (Entry<TokenTypes, String> currentEntry : fixedTokens.entrySet()) {
String currentString = currentEntry.getValue();
int currLen ... | public Token getNextToken() {
TokenTypes recognizedTokenType = null;
Token recognizedToken = null;
int bml = 0; // best match length
skipWs();
// recognize fixed tokens
for (Entry<TokenTypes, String> currentEntry : fixedTokens.entrySet()) {
String currentString = currentEntry.getValue();
int currLen ... |
diff --git a/src/java/org/apache/log4j/xml/XMLLayout.java b/src/java/org/apache/log4j/xml/XMLLayout.java
index 20504e37..8162a4d0 100644
--- a/src/java/org/apache/log4j/xml/XMLLayout.java
+++ b/src/java/org/apache/log4j/xml/XMLLayout.java
@@ -1,169 +1,169 @@
/*
* Copyright 1999-2005 The Apache Software Foundation.
... | true | true | public String format(LoggingEvent event) {
// Reset working buffer. If the buffer is too large, then we need a new
// one in order to avoid the penalty of creating a large array.
if(buf.capacity() > UPPER_LIMIT) {
buf = new StringBuffer(DEFAULT_SIZE);
} else {
buf.setLength(0);
}
... | public String format(LoggingEvent event) {
// Reset working buffer. If the buffer is too large, then we need a new
// one in order to avoid the penalty of creating a large array.
if(buf.capacity() > UPPER_LIMIT) {
buf = new StringBuffer(DEFAULT_SIZE);
} else {
buf.setLength(0);
}
... |
diff --git a/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/file/FileImporterPreparator.java b/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/file/FileImporterPreparator.java
index 54d2e1872..00a52111c 100644
--- a/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/file/FileImpo... | true | true | public <V> ModelOutput<V> createOutput(
DataModelDefinition<V> definition,
FileImporterDescription description,
TestContext context) throws IOException {
LOG.info("インポート元の初期値を設定します: {}", description);
checkType(definition, description);
Set<String> path = ... | public <V> ModelOutput<V> createOutput(
DataModelDefinition<V> definition,
FileImporterDescription description,
TestContext context) throws IOException {
LOG.info("インポート元の初期値を設定します: {}", description);
checkType(definition, description);
Set<String> path = ... |
diff --git a/src/uk/co/uwcs/choob/modules/PluginModule.java b/src/uk/co/uwcs/choob/modules/PluginModule.java
index e5d0004..5c10a24 100644
--- a/src/uk/co/uwcs/choob/modules/PluginModule.java
+++ b/src/uk/co/uwcs/choob/modules/PluginModule.java
@@ -1,364 +1,364 @@
/*
* PluginModule.java
*
* Created on June 16, 2... | true | true | private String[] getPluginList(boolean onlyCore) {
Connection dbCon = null;
try {
dbCon = broker.getConnection();
PreparedStatement sqlPlugins;
if (onlyCore)
sqlPlugins = dbCon.prepareStatement("SELECT PluginName FROM Plugins WHERE CorePlugin = 1");
else
sqlPlugins = dbCon.prepareStatement("SEL... | private String[] getPluginList(boolean onlyCore) {
Connection dbCon = null;
try {
dbCon = broker.getConnection();
PreparedStatement sqlPlugins;
if (onlyCore)
sqlPlugins = dbCon.prepareStatement("SELECT PluginName FROM Plugins WHERE CorePlugin = 1");
else
sqlPlugins = dbCon.prepareStatement("SEL... |
diff --git a/org/xbill/DNS/Name.java b/org/xbill/DNS/Name.java
index d7bc3c7..51ff97e 100644
--- a/org/xbill/DNS/Name.java
+++ b/org/xbill/DNS/Name.java
@@ -1,825 +1,825 @@
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.io.*;
import java.text.*;
import org.xbill.... | false | true | public static Name
fromString(String s, Name origin) throws TextParseException {
Name name = new Name();
if (s.equals(""))
throw parseException(s, "empty name");
else if (s.equals("@")) {
if (origin == null)
return name;
return origin;
} else if (s.equals("."))
return (root);
int labelstart = -1;
int ... | public static Name
fromString(String s, Name origin) throws TextParseException {
Name name = new Name();
if (s.equals(""))
throw parseException(s, "empty name");
else if (s.equals("@")) {
if (origin == null)
return name;
return origin;
} else if (s.equals("."))
return (root);
int labelstart = -1;
int ... |
diff --git a/src/gtna/plot/ConfidenceData1.java b/src/gtna/plot/ConfidenceData1.java
index bf9876f8..d3b0e15e 100644
--- a/src/gtna/plot/ConfidenceData1.java
+++ b/src/gtna/plot/ConfidenceData1.java
@@ -1,85 +1,85 @@
/* ===========================================================
* GTNA : Graph-Theoretic Network Anal... | true | true | public String getEntry(int lt, int lw, double offsetX, double offsetY) {
StringBuffer buff = new StringBuffer();
// 2 avg
// 3 med
// 4 min
// 5 max
// 6 var
// 7 varLow
// 8 varUp
// 9 confLow
// 10 confUp
// X Min 1stQuartile Median 3rdQuartile Max
buff.append("'" + this.data + "' using ($1 +... | public String getEntry(int lt, int lw, double offsetX, double offsetY) {
StringBuffer buff = new StringBuffer();
// 2 avg
// 3 med
// 4 min
// 5 max
// 6 var
// 7 varLow
// 8 varUp
// 9 confLow
// 10 confUp
// X Min 1stQuartile Median 3rdQuartile Max
buff.append("'" + this.data + "' using ($1 +... |
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java
index fdc6c2e7..6f61629c 100755
--- a/services/java/com/android/server/NotificationManagerService.java
+++ b/services/java/com/android/server/NotificationManagerService.java
@... | true | true | public void enqueueNotificationInternal(String pkg, int callingUid, int callingPid,
String tag, int id, Notification notification, int[] idOut)
{
if (DBG) {
Slog.v(TAG, "enqueueNotificationInternal: pkg=" + pkg + " id=" + id + " notification=" + notification);
}
c... | public void enqueueNotificationInternal(String pkg, int callingUid, int callingPid,
String tag, int id, Notification notification, int[] idOut)
{
if (DBG) {
Slog.v(TAG, "enqueueNotificationInternal: pkg=" + pkg + " id=" + id + " notification=" + notification);
}
c... |
diff --git a/src/main/java/cc/twittertools/corpus/data/Status.java b/src/main/java/cc/twittertools/corpus/data/Status.java
index 0a47ece..ff7adc8 100644
--- a/src/main/java/cc/twittertools/corpus/data/Status.java
+++ b/src/main/java/cc/twittertools/corpus/data/Status.java
@@ -1,133 +1,133 @@
package cc.twittertools.co... | true | true | public static Status fromJson(String json) {
JsonObject obj = null;
try {
obj = (JsonObject) JSON_PARSER.parse(json);
} catch (Exception e) {
e.printStackTrace();
// Catch any malformed JSON.
return null;
}
if (obj.get("text") == null) {
return null;
}
Statu... | public static Status fromJson(String json) {
JsonObject obj = null;
try {
obj = (JsonObject) JSON_PARSER.parse(json);
} catch (Exception e) {
e.printStackTrace();
// Catch any malformed JSON.
return null;
}
if (obj.get("text") == null) {
return null;
}
Statu... |
diff --git a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java
index 65fed17f2..5bd803500 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java
@@ -1,361 +1,367 @@
/*
* Cop... | false | true | public void run() {
if( justStarted ) {
justStarted = false;
synchronized (FPSAnimator.this) {
animThread = Thread.currentThread();
if(DEBUG) {
System.err.println("FPSAnimator start/resume:" + Thread.curr... | public void run() {
if( justStarted ) {
justStarted = false;
synchronized (FPSAnimator.this) {
animThread = Thread.currentThread();
if(DEBUG) {
System.err.println("FPSAnimator start/resume:" + Thread.curr... |
diff --git a/src/jvm/clojure/lang/BigNum.java b/src/jvm/clojure/lang/BigNum.java
index 4b36160f..d159335c 100644
--- a/src/jvm/clojure/lang/BigNum.java
+++ b/src/jvm/clojure/lang/BigNum.java
@@ -1,250 +1,250 @@
/**
* Copyright (c) Rich Hickey. All rights reserved.
* The use and distribution terms for this soft... | true | true | public boolean equals(Object arg0){
return arg0 != null
&& arg0 instanceof BigNum
&& ((BigNum) arg0).val == val;
}
| public boolean equals(Object arg0){
return arg0 != null
&& arg0 instanceof BigNum
&& ((BigNum) arg0).val.equals(val);
}
|
diff --git a/src/test/groovy/security/SecurityTestSupport.java b/src/test/groovy/security/SecurityTestSupport.java
index ade59005a..03ee4c933 100644
--- a/src/test/groovy/security/SecurityTestSupport.java
+++ b/src/test/groovy/security/SecurityTestSupport.java
@@ -1,285 +1,285 @@
package groovy.security;
import gro... | true | true | protected void executeTest(Class test, Permission missingPermission) {
TestSuite suite = new TestSuite();
suite.addTestSuite(test);
TestResult result = new TestResult();
suite.run(result);
if (result.wasSuccessful()) {
if (missingPermission == null) {
return;
} e... | protected void executeTest(Class test, Permission missingPermission) {
TestSuite suite = new TestSuite();
suite.addTestSuite(test);
TestResult result = new TestResult();
suite.run(result);
if (result.wasSuccessful()) {
if (missingPermission == null) {
return;
} e... |
diff --git a/src/uk/ac/ebi/sampletab/STLoader.java b/src/uk/ac/ebi/sampletab/STLoader.java
index 49e2764..caeeac6 100644
--- a/src/uk/ac/ebi/sampletab/STLoader.java
+++ b/src/uk/ac/ebi/sampletab/STLoader.java
@@ -1,422 +1,422 @@
package uk.ac.ebi.sampletab;
import java.io.ByteArrayInputStream;
import java.io.ByteA... | true | true | public static void main(String[] args)
{
Options options = new Options();
CmdLineParser parser = new CmdLineParser(options);
try
{
parser.parseArgument(args);
}
catch(CmdLineException e)
{
System.err.println(e.getMessage());
System.err.println(usage);
parser.printUsage(System.err);
retur... | public static void main(String[] args)
{
Options options = new Options();
CmdLineParser parser = new CmdLineParser(options);
try
{
parser.parseArgument(args);
}
catch(CmdLineException e)
{
System.err.println(e.getMessage());
System.err.println(usage);
parser.printUsage(System.err);
retur... |
diff --git a/util/src/main/java/com/psddev/dari/util/IoUtils.java b/util/src/main/java/com/psddev/dari/util/IoUtils.java
index 35b2f74e..096be555 100644
--- a/util/src/main/java/com/psddev/dari/util/IoUtils.java
+++ b/util/src/main/java/com/psddev/dari/util/IoUtils.java
@@ -1,350 +1,350 @@
package com.psddev.dari.util... | true | true | public static File toFile(URL url, Charset charset) {
if (url == null || !"file".equalsIgnoreCase(url.getProtocol())) {
return null;
}
byte[] encoded = url.getFile().replace('/', File.separatorChar).getBytes(StringUtils.US_ASCII);
int length = encoded.length;
byt... | public static File toFile(URL url, Charset charset) {
if (url == null || !"file".equalsIgnoreCase(url.getProtocol())) {
return null;
}
byte[] encoded = url.getFile().replace('/', File.separatorChar).getBytes(StringUtils.US_ASCII);
int length = encoded.length;
byt... |
diff --git a/src/com/sabayrean/hangman/TextResult.java b/src/com/sabayrean/hangman/TextResult.java
index b860500..dcb42c0 100644
--- a/src/com/sabayrean/hangman/TextResult.java
+++ b/src/com/sabayrean/hangman/TextResult.java
@@ -1,19 +1,19 @@
package com.sabayrean.hangman;
import java.util.ArrayList;
import java.u... | true | true | public List<Integer> getIndexes(char c){
List<Integer> indexes = new ArrayList<Integer>();
for(int i = 0; i < this.getText().length(); i++){
indexes.add(i);
}
return indexes;
}
| public List<Integer> getIndexes(char c){
List<Integer> indexes = new ArrayList<Integer>();
for(int i = 0; i < this.getText().length(); i++){
if(this.getText().charAt(i) == c) indexes.add(i);
}
return indexes;
}
|
diff --git a/src/Semester.java b/src/Semester.java
index b115616..69919ba 100644
--- a/src/Semester.java
+++ b/src/Semester.java
@@ -1,325 +1,330 @@
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Scann... | false | true | public static void main(Semester sem, School school, SaveData data, Scanner scan) {
int choice = 0;
int studentID = 0;
int courseID = 0;
boolean done = false;
while(!done) {
System.out.println("Semester Registration Manager.");
System.out.println("\t1. Add a course to current semester.");
System.... | public static void main(Semester sem, School school, SaveData data, Scanner scan) {
int choice = 0;
int studentID = 0;
int courseID = 0;
boolean done = false;
while(!done) {
System.out.println("Semester Registration Manager.");
System.out.println("\t1. Add a course to current semester.");
System.... |
diff --git a/src/main/java/org/basex/query/expr/CElem.java b/src/main/java/org/basex/query/expr/CElem.java
index 5cbf811c8..d4b50e636 100644
--- a/src/main/java/org/basex/query/expr/CElem.java
+++ b/src/main/java/org/basex/query/expr/CElem.java
@@ -1,173 +1,173 @@
package org.basex.query.expr;
import static org.bas... | true | true | public FElem item(final QueryContext ctx, final InputInfo ii)
throws QueryException {
final Item it = checkItem(tag, ctx);
final int s = ctx.ns.size();
addNS(ctx);
// clone namespaces for context sensitive operations
final Atts nsc = new Atts();
for(int i = 0; i < nsp.size; ++i) nsc.ad... | public FElem item(final QueryContext ctx, final InputInfo ii)
throws QueryException {
final Item it = checkItem(tag, ctx);
final int s = ctx.ns.size();
addNS(ctx);
// clone namespaces for context sensitive operations
final Atts nsc = new Atts();
for(int i = 0; i < nsp.size; ++i) nsc.ad... |
diff --git a/src/java/macromedia/asc/parser/Scanner.java b/src/java/macromedia/asc/parser/Scanner.java
index eb1ba99..8e38a8b 100644
--- a/src/java/macromedia/asc/parser/Scanner.java
+++ b/src/java/macromedia/asc/parser/Scanner.java
@@ -1,1619 +1,1619 @@
////////////////////////////////////////////////////////////////... | true | true | public int nexttoken(boolean resetState)
{
String doctagname = "description";
StringBuilder doctextbuf = null;
int startofxml = pos();
StringBuilder blockcommentbuf = null;
char regexp_flags = 0; // used to track option flags encountered in a regexp expression. Initializ... | public int nexttoken(boolean resetState)
{
String doctagname = "description";
StringBuilder doctextbuf = null;
int startofxml = pos();
StringBuilder blockcommentbuf = null;
char regexp_flags = 0; // used to track option flags encountered in a regexp expression. Initializ... |
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/services/impl/UiService.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/services/impl/UiService.java
index 3a9da266..cf4459c3 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/se... | true | true | public void startSaveAsImageDialog(GraphicalViewer graphicalViewer) {
final String METHOD = "startSaveAsImageDialog(graphicalViewer)"; //$NON-NLS-1$
// check extension point for exporters
Map<String, Boolean> diagramExporterTypes = ExtensionManager.getSingleton().getDiagramExporterTypes();
// configure dialo... | public void startSaveAsImageDialog(GraphicalViewer graphicalViewer) {
final String METHOD = "startSaveAsImageDialog(graphicalViewer)"; //$NON-NLS-1$
// check extension point for exporters
Map<String, Boolean> diagramExporterTypes = ExtensionManager.getSingleton().getDiagramExporterTypes();
// configure dialo... |
diff --git a/src/com/fernferret/wolfpound/WPPlayerListener.java b/src/com/fernferret/wolfpound/WPPlayerListener.java
index a19b55c..65bca5a 100644
--- a/src/com/fernferret/wolfpound/WPPlayerListener.java
+++ b/src/com/fernferret/wolfpound/WPPlayerListener.java
@@ -1,72 +1,72 @@
package com.fernferret.wolfpound;
imp... | true | true | public void onPlayerInteract(PlayerInteractEvent event) {
Player p = event.getPlayer();
if (event.getClickedBlock().getState() instanceof Sign && event.getAction() == Action.RIGHT_CLICK_BLOCK) {
if (plugin.blockIsValidWolfSign(event.getClickedBlock()) && plugin.hasPermission(p, "wolfpound.use")) {
// We ... | public void onPlayerInteract(PlayerInteractEvent event) {
Player p = event.getPlayer();
if (event.hasBlock() && event.getClickedBlock().getState() instanceof Sign && event.getAction() == Action.RIGHT_CLICK_BLOCK) {
if (plugin.blockIsValidWolfSign(event.getClickedBlock()) && plugin.hasPermission(p, "wolfpound... |
diff --git a/src/com/epam/memegen/MemesServlet.java b/src/com/epam/memegen/MemesServlet.java
index a6d542f..bac1ea7 100644
--- a/src/com/epam/memegen/MemesServlet.java
+++ b/src/com/epam/memegen/MemesServlet.java
@@ -1,30 +1,30 @@
package com.epam.memegen;
import java.io.IOException;
import java.util.logging.Logge... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
resp.setContentType("application/json");
resp.setCharacterEncoding("UTF-8");
resp.setHeader("X-Chrome-Exponential-Throttling", "disable");
String filter = req.getParameter("filter");
if (filter.isEmpty()) {
... | public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
resp.setContentType("application/json");
resp.setCharacterEncoding("UTF-8");
resp.setHeader("X-Chrome-Exponential-Throttling", "disable");
String filter = req.getParameter("filter");
if (Util.isNullOrEmpty(fi... |
diff --git a/library/src/main/java/net/sourceforge/cilib/entity/operators/crossover/real/UnimodalNormalDistributionCrossoverStrategy.java b/library/src/main/java/net/sourceforge/cilib/entity/operators/crossover/real/UnimodalNormalDistributionCrossoverStrategy.java
index dc499e50..b01f0c97 100644
--- a/library/src/main/... | false | true | public <E extends Entity> List<E> crossover(List<E> parentCollection) {
checkState(parentCollection.size() >= 3, "There must be a minimum of three parents to perform UNDX crossover.");
checkState(numberOfOffspring.getParameter() > 0, "At least one offspring must be generated. Check 'numberOfOffsprin... | public <E extends Entity> List<E> crossover(List<E> parentCollection) {
checkState(parentCollection.size() >= 3, "There must be a minimum of three parents to perform UNDX crossover.");
checkState(numberOfOffspring.getParameter() > 0, "At least one offspring must be generated. Check 'numberOfOffsprin... |
diff --git a/src/ru/leks13/jabbertimer/UserCommand.java b/src/ru/leks13/jabbertimer/UserCommand.java
index 601b1c5..bb916d4 100644
--- a/src/ru/leks13/jabbertimer/UserCommand.java
+++ b/src/ru/leks13/jabbertimer/UserCommand.java
@@ -1,186 +1,186 @@
/*
* Leks13
* GPL v3
*/
package ru.leks13.jabbertimer;
impo... | true | true | public static Boolean doUserCommand(String command, String jid, String admin) throws XMPPException, IOException, NumberFormatException, ClassNotFoundException, SQLException, ParseException {
Boolean ans = false;
String msg = null;
if (command.startsWith("!report") && !ans) {
com... | public static Boolean doUserCommand(String command, String jid, String admin) throws XMPPException, IOException, NumberFormatException, ClassNotFoundException, SQLException, ParseException {
Boolean ans = false;
String msg = null;
if (command.startsWith("!report") && !ans) {
com... |
diff --git a/WebService/src/edu/cmu/ebiz/task8/formbean/SimpleSearchForm.java b/WebService/src/edu/cmu/ebiz/task8/formbean/SimpleSearchForm.java
index 712a052..642b1ae 100644
--- a/WebService/src/edu/cmu/ebiz/task8/formbean/SimpleSearchForm.java
+++ b/WebService/src/edu/cmu/ebiz/task8/formbean/SimpleSearchForm.java
@@ ... | true | true | public void setSearchLocation(String searchLocation) {
this.searchLocation = trimAndConvert(searchLocation.trim(), "<>\"");
String[] tmp = searchLocation.split(" ");
for (String term : tmp){
this.searchLocation += term;
}
}
| public void setSearchLocation(String searchLocation) {
this.searchLocation = trimAndConvert(searchLocation.trim(), "<>\"");
String[] tmp = searchLocation.split(" ");
for (String term : tmp){
this.searchLocation += "%20" + term ;
}
}
|
diff --git a/content/src/org/riotfamily/pages/mapping/PageResolver.java b/content/src/org/riotfamily/pages/mapping/PageResolver.java
index 6978f69f9..caa9c3877 100644
--- a/content/src/org/riotfamily/pages/mapping/PageResolver.java
+++ b/content/src/org/riotfamily/pages/mapping/PageResolver.java
@@ -1,149 +1,149 @@
/*... | true | true | private static Page resolvePage(HttpServletRequest request) {
Site site = getSite(request);
if (site == null) {
return null;
}
String lookupPath = getLookupPath(request);
Page page = ContentPage.loadBySiteAndPath(site, lookupPath);
if (page == null) {
... | private static Page resolvePage(HttpServletRequest request) {
Site site = getSite(request);
if (site == null) {
return null;
}
String lookupPath = getLookupPath(request);
Page page = ContentPage.loadBySiteAndPath(site, lookupPath);
if (page == null) {
... |
diff --git a/src/org/intellij/plugins/ceylon/psi/CeylonFile.java b/src/org/intellij/plugins/ceylon/psi/CeylonFile.java
index 1d8e7cd6..0920be7e 100644
--- a/src/org/intellij/plugins/ceylon/psi/CeylonFile.java
+++ b/src/org/intellij/plugins/ceylon/psi/CeylonFile.java
@@ -1,72 +1,72 @@
package org.intellij.plugins.ceylo... | true | true | public String getPackageName() {
if (packageName != null) {
return packageName;
}
Node userData = getNode().getUserData(CeylonIdeaParser.CEYLON_NODE_KEY);
if (!(userData instanceof Tree.CompilationUnit)) {
return null;// TODO is always null :(
}
... | public String getPackageName() {
if (packageName != null) {
return packageName;
}
Node userData = getNode().getUserData(CeylonIdeaParser.CEYLON_NODE_KEY);
if (!(userData instanceof Tree.CompilationUnit)) {
return null;// TODO is always null :(
}
... |
diff --git a/src/main/java/org/bonitasoft/theme/css/impl/CSSPropertiesImpl.java b/src/main/java/org/bonitasoft/theme/css/impl/CSSPropertiesImpl.java
index 2791dd9..27322d4 100644
--- a/src/main/java/org/bonitasoft/theme/css/impl/CSSPropertiesImpl.java
+++ b/src/main/java/org/bonitasoft/theme/css/impl/CSSPropertiesImpl.... | true | true | public void load(final InputStream input) throws IOException {
if (input == null) {
throw new IOException("Input is null");
}
rules.clear();
String cssContent = getCSSContent(input);
// remove media sections are they are not handled by the theme parser
css... | public void load(final InputStream input) throws IOException {
if (input == null) {
throw new IOException("Input is null");
}
rules.clear();
String cssContent = getCSSContent(input);
// remove media sections are they are not handled by the theme parser
css... |
diff --git a/proxy/src/main/java/net/md_5/bungee/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/EntityMap.java
index 50b06f9d..518a59fe 100644
--- a/proxy/src/main/java/net/md_5/bungee/EntityMap.java
+++ b/proxy/src/main/java/net/md_5/bungee/EntityMap.java
@@ -1,164 +1,175 @@
package net.md_5.bungee;
/**
* ... | true | true | public static void rewrite(byte[] packet, int oldId, int newId)
{
int packetId = packet[0] & 0xFF;
if ( packetId == 0x1D )
{ // bulk entity
for ( int pos = 2; pos < packet.length; pos += 4 )
{
int readId = readInt( packet, pos );
if... | public static void rewrite(byte[] packet, int oldId, int newId)
{
int packetId = packet[0] & 0xFF;
if ( packetId == 0x1D )
{ // bulk entity
for ( int pos = 2; pos < packet.length; pos += 4 )
{
int readId = readInt( packet, pos );
if... |
diff --git a/src/com/android/im/app/SimpleInputActivity.java b/src/com/android/im/app/SimpleInputActivity.java
index 84e3bad..d4e239e 100644
--- a/src/com/android/im/app/SimpleInputActivity.java
+++ b/src/com/android/im/app/SimpleInputActivity.java
@@ -1,98 +1,98 @@
/*
* Copyright (C) 2007 Esmertec AG.
* Copyright... | false | true | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setTheme(android.R.style.Theme_Dialog);
setContentView(R.layout.simple_input_activity);
Bundle extras = getIntent().getExtras();
CharSequence title = extras.getCharSequence(EXTRA_TITLE);
if (title != nul... | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setTheme(android.R.style.Theme_Dialog);
setContentView(R.layout.simple_input_activity);
Bundle extras = getIntent().getExtras();
CharSequence title = extras.getCharSequence(EXTRA_TITLE);
if (title != nul... |
diff --git a/src/com/modcrafting/ultrabans/commands/Fine.java b/src/com/modcrafting/ultrabans/commands/Fine.java
index 0227473..bdef342 100644
--- a/src/com/modcrafting/ultrabans/commands/Fine.java
+++ b/src/com/modcrafting/ultrabans/commands/Fine.java
@@ -1,125 +1,130 @@
package com.modcrafting.ultrabans.commands;
... | true | true | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
boolean auth = false;
Player player = null;
String admin = "server";
String perms = "ultraban.fine";
if (sender instanceof Player){
player = (Player)sender;
//new permissions test before reconstruc... | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
boolean auth = false;
Player player = null;
String admin = "server";
String perms = "ultraban.fine";
if (sender instanceof Player){
player = (Player)sender;
//new permissions test before reconstruc... |
diff --git a/src/id.java b/src/id.java
index 7938b6f..36ae603 100644
--- a/src/id.java
+++ b/src/id.java
@@ -1,1110 +1,1110 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Level;
import java.util.logging.... | false | true | private void d(String paramString) {
try {
String[] split = paramString.split(" ");
if (!etc.getInstance().canUseCommand(e.aq, split[0]) && !split[0].startsWith("/#")) {
msg(Colors.Rose + "Unknown command.");
return;
}
if (split... | private void d(String paramString) {
try {
String[] split = paramString.split(" ");
if (!etc.getInstance().canUseCommand(e.aq, split[0]) && !split[0].startsWith("/#")) {
msg(Colors.Rose + "Unknown command.");
return;
}
if (split... |
diff --git a/src/main/java/edu/northwestern/bioinformatics/studycalendar/dao/ChangeableDao.java b/src/main/java/edu/northwestern/bioinformatics/studycalendar/dao/ChangeableDao.java
index 5ae27c449..eb1482813 100644
--- a/src/main/java/edu/northwestern/bioinformatics/studycalendar/dao/ChangeableDao.java
+++ b/src/main/j... | true | true | protected void deleteOrphans(String className, String parentName, String classNameDelta, String parentDeltaTypeCode) {
List<T> listOfOrphans = getHibernateTemplate().find("from "+ className +
" orphan where orphan." + parentName + " is null " +
... | protected void deleteOrphans(String className, String parentName, String classNameDelta, String parentDeltaTypeCode) {
List<T> listOfOrphans = getHibernateTemplate().find("from "+ className +
" orphan where orphan." + parentName + " is null " +
... |
diff --git a/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java b/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java
index 63f1996..42c0365 100644
--- a/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java
+++ b/flume-core/src/main/java/com/cloudera/flume/core/EventImpl.java
@@ -1,2... | true | true | public EventImpl(byte[] s, long timestamp, Priority pri, long nanoTime,
String host, Map<String, byte[]> fields) {
super(fields);
Preconditions.checkNotNull(s,
"Failed when attempting to create event with null body");
Preconditions.checkArgument(s.length <= MAX_BODY_SIZE, "Failed when "
... | public EventImpl(byte[] s, long timestamp, Priority pri, long nanoTime,
String host, Map<String, byte[]> fields) {
super(fields);
Preconditions.checkNotNull(s,
"Failed when attempting to create event with null body");
Preconditions.checkArgument(s.length <= MAX_BODY_SIZE, "Failed when "
... |
diff --git a/src/haven/LocalMiniMap.java b/src/haven/LocalMiniMap.java
index d5eb58db..8b469d49 100644
--- a/src/haven/LocalMiniMap.java
+++ b/src/haven/LocalMiniMap.java
@@ -1,129 +1,129 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
... | false | true | public void draw(GOut g) {
Gob pl = ui.sess.glob.oc.getgob(mv.plgob);
if(pl == null)
return;
Coord plt = pl.rc.div(tilesz);
Coord plg = plt.div(cmaps);
if((cgrid == null) || !plg.equals(cgrid)) {
try {
Coord ul = plg.mul(cmaps).sub(cmaps).add(1, 1);
Tex prev = this.mapimg;
this.mapimg = new Tex... | public void draw(GOut g) {
Gob pl = ui.sess.glob.oc.getgob(mv.plgob);
if(pl == null)
return;
Coord plt = pl.rc.div(tilesz);
Coord plg = plt.div(cmaps);
if((cgrid == null) || !plg.equals(cgrid)) {
try {
Coord ul = plg.mul(cmaps).sub(cmaps).add(1, 1);
Tex prev = this.mapimg;
this.mapimg = new Tex... |
diff --git a/jabox-persistence/src/main/java/org/jabox/environment/Environment.java b/jabox-persistence/src/main/java/org/jabox/environment/Environment.java
index ddbfa0e6..fa7bf434 100644
--- a/jabox-persistence/src/main/java/org/jabox/environment/Environment.java
+++ b/jabox-persistence/src/main/java/org/jabox/enviro... | false | true | protected static String getHomeDir() {
String env = System.getenv(JABOX_ENV);
String property = System.getProperty(JABOX_PROPERTY);
if (env != null) {
return env;
} else if (property != null) {
return property;
}
String homeDir = System.getProperty("user.home") + File.separatorChar
+ ".jabox" + F... | protected static String getHomeDir() {
String env = System.getenv(JABOX_ENV);
String property = System.getProperty(JABOX_PROPERTY);
if (env != null) {
return env + File.separatorChar;
} else if (property != null) {
return property + File.separatorChar;
}
String homeDir = System.getProperty("user.home... |
diff --git a/asm/src/org/objectweb/asm/optimizer/JarOptimizer.java b/asm/src/org/objectweb/asm/optimizer/JarOptimizer.java
index ac32692c..a754a4ad 100644
--- a/asm/src/org/objectweb/asm/optimizer/JarOptimizer.java
+++ b/asm/src/org/objectweb/asm/optimizer/JarOptimizer.java
@@ -1,88 +1,89 @@
/***
* ASM: a very small... | true | true | static void optimize (final File f) throws IOException {
if (f.isDirectory()) {
File[] files = f.listFiles();
for (int i = 0; i < files.length; ++i) {
optimize(files[i]);
}
} else if (f.getName().endsWith(".jar")) {
File g = new File(f.getParentFile(), f.getName() + ".new");
... | static void optimize (final File f) throws IOException {
if (f.isDirectory()) {
File[] files = f.listFiles();
for (int i = 0; i < files.length; ++i) {
optimize(files[i]);
}
} else if (f.getName().endsWith(".jar")) {
File g = new File(f.getParentFile(), f.getName() + ".new");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.