diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/biz/bokhorst/xprivacy/XPrivacyProvider.java b/src/biz/bokhorst/xprivacy/XPrivacyProvider.java
index fa54f9b5..20ffa2c2 100644
--- a/src/biz/bokhorst/xprivacy/XPrivacyProvider.java
+++ b/src/biz/bokhorst/xprivacy/XPrivacyProvider.java
@@ -1,123 +1,123 @@
package biz.bokhorst.xprivacy;
import java.ut... | true | true | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
if (selectionArgs != null) {
// Get arguments
String permissionName = selection;
SharedPreferences prefs = getContext().getSharedPreferences(AUTHORITY, Context.MODE_PRIVATE);
if (sUriMatcher.m... | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
if (selectionArgs != null) {
// Get arguments
String permissionName = selection;
SharedPreferences prefs = getContext().getSharedPreferences(AUTHORITY, Context.MODE_PRIVATE);
if (sUriMatcher.m... |
diff --git a/src/org/gridlab/gridsphere/portlet/jsrimpl/PersistencePreferenceAttribute.java b/src/org/gridlab/gridsphere/portlet/jsrimpl/PersistencePreferenceAttribute.java
index 79837bfd4..8cad68daf 100644
--- a/src/org/gridlab/gridsphere/portlet/jsrimpl/PersistencePreferenceAttribute.java
+++ b/src/org/gridlab/gridsp... | true | true | public void setAValues(String[] values) {
this.values = new ArrayList();
for (int i = 0; i < values.length; i++) {
this.values.add(values[i]);
}
}
| public void setAValues(String[] values) {
this.values = new ArrayList();
if (values != null) {
for (int i = 0; i < values.length; i++) {
this.values.add(values[i]);
}
}
}
|
diff --git a/src/org/jruby/ast/executable/YARVCompiledRunner.java b/src/org/jruby/ast/executable/YARVCompiledRunner.java
index ae72f2fca..742bfb1f2 100644
--- a/src/org/jruby/ast/executable/YARVCompiledRunner.java
+++ b/src/org/jruby/ast/executable/YARVCompiledRunner.java
@@ -1,217 +1,217 @@
/***** BEGIN LICENSE BLOCK... | true | true | private YARVMachine.InstructionSequence transformIntoSequence(IRubyObject arr) {
if(!(arr instanceof RubyArray)) {
throw new RuntimeException("Error when reading compiled YARV file");
}
labels.clear();
jumps.clear();
YARVMachine.InstructionSequence seq = new YARV... | private YARVMachine.InstructionSequence transformIntoSequence(IRubyObject arr) {
if(!(arr instanceof RubyArray)) {
throw new RuntimeException("Error when reading compiled YARV file");
}
labels.clear();
jumps.clear();
YARVMachine.InstructionSequence seq = new YARV... |
diff --git a/src/com/eteks/sweethome3d/io/HomeFileRecorder.java b/src/com/eteks/sweethome3d/io/HomeFileRecorder.java
index 85a3612a..31b385dc 100644
--- a/src/com/eteks/sweethome3d/io/HomeFileRecorder.java
+++ b/src/com/eteks/sweethome3d/io/HomeFileRecorder.java
@@ -1,188 +1,189 @@
/*
* HomeFileRecorder.java 30 aout... | false | true | public void writeHome(Home home, String name) throws RecorderException {
File homeFile = new File(name);
if (homeFile.exists()
&& !homeFile.canWrite()) {
throw new RecorderException("Can't write over file " + name);
}
DefaultHomeOutputStream homeOut = null;
File tempFile = null;... | public void writeHome(Home home, String name) throws RecorderException {
File homeFile = new File(name);
if (homeFile.exists()
&& !homeFile.canWrite()) {
throw new RecorderException("Can't write over file " + name);
}
DefaultHomeOutputStream homeOut = null;
File tempFile = null;... |
diff --git a/src/main/java/com/ushahidi/java/sdk/api/json/Comments.java b/src/main/java/com/ushahidi/java/sdk/api/json/Comments.java
index b8fe884..3693747 100644
--- a/src/main/java/com/ushahidi/java/sdk/api/json/Comments.java
+++ b/src/main/java/com/ushahidi/java/sdk/api/json/Comments.java
@@ -1,63 +1,65 @@
/*******... | true | true | public List<Comment> getComments() {
List<Comment> comt = new ArrayList<Comment>();
if (payload != null) {
// check if There are no results to show.
if ( !error.code.equals("007")) {
for (Payload._Comment item : payload.comments) {
Comment c = item.comment;
comt.add(c);
}
}
}
return ... | public List<Comment> getComments() {
List<Comment> comt = new ArrayList<Comment>();
if (payload != null) {
// check if There are no results to show.
if (!error.code.equals("007")) {
if ((payload.comments != null) && (payload.comments.size() > 0)) {
for (Payload._Comment item : payload.comments) {
... |
diff --git a/server/src/main/java/org/openqa/selenium/server/browserlaunchers/LauncherUtils.java b/server/src/main/java/org/openqa/selenium/server/browserlaunchers/LauncherUtils.java
index 4a241cf8..2e7c10d4 100644
--- a/server/src/main/java/org/openqa/selenium/server/browserlaunchers/LauncherUtils.java
+++ b/server/sr... | true | true | protected static void generatePacAndPrefJs(File customProfileDir, int port, boolean proxySeleniumTrafficOnly, String homePage) throws FileNotFoundException {
// TODO Do we want to make these preferences configurable somehow?
// TODO: there is redundancy between these settings in the settings in
// FirefoxChromeL... | protected static void generatePacAndPrefJs(File customProfileDir, int port, boolean proxySeleniumTrafficOnly, String homePage) throws FileNotFoundException {
// TODO Do we want to make these preferences configurable somehow?
// TODO: there is redundancy between these settings in the settings in
// FirefoxChromeL... |
diff --git a/java/src/com/android/inputmethod/keyboard/PopupMiniKeyboardView.java b/java/src/com/android/inputmethod/keyboard/PopupMiniKeyboardView.java
index fa2aa874..60d87f78 100644
--- a/java/src/com/android/inputmethod/keyboard/PopupMiniKeyboardView.java
+++ b/java/src/com/android/inputmethod/keyboard/PopupMiniKey... | true | true | public void showPanel(KeyboardView parentKeyboardView, Key parentKey,
PointerTracker tracker, int keyPreviewY, PopupWindow window) {
final View container = (View)getParent();
final MiniKeyboard miniKeyboard = (MiniKeyboard)getKeyboard();
final Keyboard parentKeyboard = parentKeyb... | public void showPanel(KeyboardView parentKeyboardView, Key parentKey,
PointerTracker tracker, int keyPreviewY, PopupWindow window) {
final View container = (View)getParent();
final MiniKeyboard miniKeyboard = (MiniKeyboard)getKeyboard();
final Keyboard parentKeyboard = parentKeyb... |
diff --git a/src/com/android/calendar/event/EventColorPickerDialog.java b/src/com/android/calendar/event/EventColorPickerDialog.java
index 7eac6b0e..6826c796 100644
--- a/src/com/android/calendar/event/EventColorPickerDialog.java
+++ b/src/com/android/calendar/event/EventColorPickerDialog.java
@@ -1,67 +1,65 @@
/*
*... | true | true | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
final Activity activity = getActivity();
mAlertDialog.setButton(DialogInterface.BUTTON_NEUTRAL,
activity.getString(R.string.event_color_set_to_default),
new... | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
final Activity activity = getActivity();
mAlertDialog.setButton(DialogInterface.BUTTON_NEUTRAL,
activity.getString(R.string.event_color_set_to_default),
new... |
diff --git a/src/no/hials/muldvarp/v2/QuizActivity.java b/src/no/hials/muldvarp/v2/QuizActivity.java
index 0e8295e..06f1f5f 100644
--- a/src/no/hials/muldvarp/v2/QuizActivity.java
+++ b/src/no/hials/muldvarp/v2/QuizActivity.java
@@ -1,198 +1,202 @@
/*
* To change this template, choose Tools | Templates
* and open ... | true | true | public void setupQuiz(){
//Change content view with animation
LayoutInflater inflator = getLayoutInflater();
holderQuizView = inflator.inflate(R.layout.activity_quiz_question_holder, null, false);
holderQuizView.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_i... | public void setupQuiz(){
//Change content view with animation
LayoutInflater inflator = getLayoutInflater();
holderQuizView = inflator.inflate(R.layout.activity_quiz_question_holder, null, false);
holderQuizView.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_i... |
diff --git a/seide-core/src/main/java/net/sf/seide/stages/impl/StageStatisticsImpl.java b/seide-core/src/main/java/net/sf/seide/stages/impl/StageStatisticsImpl.java
index 6fb4010..5b81a6b 100644
--- a/seide-core/src/main/java/net/sf/seide/stages/impl/StageStatisticsImpl.java
+++ b/seide-core/src/main/java/net/sf/seide/... | false | true | public void trackTimeAndExecution(long time) {
this.totalExecutions.incrementAndGet();
this.totalExecutionTime.addAndGet(time);
// FIXME: buggy... someone could change the value while I'm writting...
if (!this.minExecutionTime.compareAndSet(-1, time)) {
long safe = this.... | public void trackTimeAndExecution(long time) {
this.totalExecutions.incrementAndGet();
this.totalExecutionTime.addAndGet(time);
// FIXME: buggy... someone could change the value while I'm writting...
if (!this.minExecutionTime.compareAndSet(-1, time)) {
long safe = this.... |
diff --git a/amibe/src/org/jcae/mesh/amibe/algos2d/Insertion.java b/amibe/src/org/jcae/mesh/amibe/algos2d/Insertion.java
index e5bdddb5..fa862712 100644
--- a/amibe/src/org/jcae/mesh/amibe/algos2d/Insertion.java
+++ b/amibe/src/org/jcae/mesh/amibe/algos2d/Insertion.java
@@ -1,472 +1,466 @@
/* jCAE stand for Java Compu... | false | true | public final void compute()
{
int nrIter = 0;
LOGGER.config("Enter compute()");
LOGGER.fine(" Insert inner nodes");
ArrayList<Vertex2D> nodes = new ArrayList<Vertex2D>();
ArrayList<Vertex2D> triNodes = new ArrayList<Vertex2D>();
VirtualHalfEdge2D sym = new VirtualHalfEdge2D();
VirtualHalfEdge2D ot = new... | public final void compute()
{
int nrIter = 0;
LOGGER.config("Enter compute()");
LOGGER.fine(" Insert inner nodes");
ArrayList<Vertex2D> nodes = new ArrayList<Vertex2D>();
ArrayList<Vertex2D> triNodes = new ArrayList<Vertex2D>();
VirtualHalfEdge2D sym = new VirtualHalfEdge2D();
VirtualHalfEdge2D ot = new... |
diff --git a/src/tesseract/forces/AirDrag.java b/src/tesseract/forces/AirDrag.java
index b6f0dbd..2f652be 100644
--- a/src/tesseract/forces/AirDrag.java
+++ b/src/tesseract/forces/AirDrag.java
@@ -1,200 +1,200 @@
package tesseract.forces;
import java.util.ArrayList;
import java.util.Collections;
import java.util.... | true | true | protected Vector3f calculateForce(PhysicalObject obj) {
if (obj.isNodeNull() || obj.getVelocity().length() == 0) {
return new Vector3f();
}
Vector3f v = new Vector3f(obj.getVelocity());
Vector3f p = new Vector3f(obj.getPosition());
p.negate();
Vector3f c = new Vector3f();
c.sub(new Vector3f(0... | protected Vector3f calculateForce(PhysicalObject obj) {
if (obj.isNodeNull() || obj.getVelocity().length() == 0) {
return new Vector3f();
}
Vector3f v = new Vector3f(obj.getVelocity());
Vector3f p = new Vector3f(obj.getPosition());
p.negate();
Vector3f c = new Vector3f();
c.sub(new Vector3f(0... |
diff --git a/src/Window.java b/src/Window.java
index 9a2668b..bfb2141 100644
--- a/src/Window.java
+++ b/src/Window.java
@@ -1,84 +1,80 @@
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.... | true | true | public Window(){
prefs = Preferences.userRoot().node(this.getClass().getName());
JFrame window = new JFrame();
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// window.setSize(380, 100);
window.setTitle("RPlay");
java.awt.Container contenu = window.getContentPane();
contenu.setLayout(ne... | public Window(){
prefs = Preferences.userRoot().node(this.getClass().getName());
JFrame window = new JFrame();
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// window.setSize(380, 100);
window.setTitle("RPlay");
java.awt.Container contenu = window.getContentPane();
contenu.setLayout(ne... |
diff --git a/src/main/java/net/floodlightcontroller/core/internal/Controller.java b/src/main/java/net/floodlightcontroller/core/internal/Controller.java
index e5d7ad2..3890de0 100644
--- a/src/main/java/net/floodlightcontroller/core/internal/Controller.java
+++ b/src/main/java/net/floodlightcontroller/core/internal/Con... | false | true | protected void processOFMessage(OFMessage m)
throws IOException, SwitchStateException {
boolean shouldHandleMessage = false;
switch (m.getType()) {
case HELLO:
if (log.isTraceEnabled())
log.trace("HE... | protected void processOFMessage(OFMessage m)
throws IOException, SwitchStateException {
boolean shouldHandleMessage = false;
switch (m.getType()) {
case HELLO:
if (log.isTraceEnabled())
log.trace("HE... |
diff --git a/src/java/org/apache/commons/logging/LogFactory.java b/src/java/org/apache/commons/logging/LogFactory.java
index 9fb1a3c..81c1338 100644
--- a/src/java/org/apache/commons/logging/LogFactory.java
+++ b/src/java/org/apache/commons/logging/LogFactory.java
@@ -1,1432 +1,1432 @@
/*
* Copyright 2001-2006 The A... | true | true | public static LogFactory getFactory() throws LogConfigurationException {
// Identify the class loader we will be using
ClassLoader contextClassLoader = getContextClassLoader();
if (contextClassLoader == null) {
// This is an odd enough situation to report about. This
... | public static LogFactory getFactory() throws LogConfigurationException {
// Identify the class loader we will be using
ClassLoader contextClassLoader = getContextClassLoader();
if (contextClassLoader == null) {
// This is an odd enough situation to report about. This
... |
diff --git a/src/no/runsafe/framework/server/player/RunsafeAmbiguousPlayer.java b/src/no/runsafe/framework/server/player/RunsafeAmbiguousPlayer.java
index 21583c2c..14597e07 100644
--- a/src/no/runsafe/framework/server/player/RunsafeAmbiguousPlayer.java
+++ b/src/no/runsafe/framework/server/player/RunsafeAmbiguousPlaye... | true | true | public RunsafeAmbiguousPlayer(OfflinePlayer toWrap, List<String> ambiguous)
{
super(toWrap);
}
| public RunsafeAmbiguousPlayer(OfflinePlayer toWrap, List<String> ambiguous)
{
super(toWrap);
ambiguity = ambiguous;
}
|
diff --git a/src/ca/eandb/util/args/ArgumentProcessor.java b/src/ca/eandb/util/args/ArgumentProcessor.java
index 0f1ba1e..abb01a1 100644
--- a/src/ca/eandb/util/args/ArgumentProcessor.java
+++ b/src/ca/eandb/util/args/ArgumentProcessor.java
@@ -1,545 +1,548 @@
/*
* Copyright (c) 2008 Bradley W. Kimmel
*
* Permis... | false | true | private void processMethod(final Method method) {
CommandArgument annotation = method.getAnnotation(CommandArgument.class);
if (annotation != null) {
final String name = method.getName();
final Class<?>[] paramTypes = method.getParameterTypes();
final Annotation[][] paramAnnotations = method.getParameterA... | private void processMethod(final Method method) {
CommandArgument annotation = method.getAnnotation(CommandArgument.class);
if (annotation != null) {
final String name = method.getName();
final Class<?>[] paramTypes = method.getParameterTypes();
final Annotation[][] paramAnnotations = method.getParameterA... |
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/dto/AfterTheFactAcquisitionsImportBean.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/dto/AfterTheFactAcquisitionsImportBean.java
index c7e8678c..97bfaa15 100644
--- a/expenditure-tracking/src/pt/ist/expenditureTracki... | false | true | public void importAcquisitions() {
final String[] lines = getContents().split("\n");
final ImportFile file = new ImportFile(getContents().getBytes());
for (int i = 0; i < lines.length; i++) {
final String line = lines[i];
if (line.isEmpty()) {
registerIssue(IssueType.EMPTY_LINE, i);
} else {
f... | public void importAcquisitions() {
final String[] lines = getContents().split("\n");
final ImportFile file = new ImportFile(getContents().getBytes());
for (int i = 0; i < lines.length; i++) {
final String line = lines[i];
if (line.isEmpty()) {
registerIssue(IssueType.EMPTY_LINE, i);
} else {
f... |
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java
index c730db62..df51a20e 100644
--- a/src/main/java/org/bukkit/inventory/ItemStack.java
+++ b/src/main/java/org/bukkit/inventory/ItemStack.java
@@ -1,391 +1,391 @@
package org.bukkit.inventory;
import ... | true | true | public static ItemStack deserialize(Map<String, Object> args) {
Material type = Material.getMaterial((String) args.get("type"));
short damage = 0;
int amount = 1;
if (args.containsKey("damage")) {
damage = (Short) args.get("damage");
}
if (args.containsK... | public static ItemStack deserialize(Map<String, Object> args) {
Material type = Material.getMaterial((String) args.get("type"));
short damage = 0;
int amount = 1;
if (args.containsKey("damage")) {
damage = ((Number) args.get("damage")).shortValue();
}
if... |
diff --git a/src/uk/co/oliwali/MultiHome/MultiHome.java b/src/uk/co/oliwali/MultiHome/MultiHome.java
index c79b2c7..6e76ab6 100644
--- a/src/uk/co/oliwali/MultiHome/MultiHome.java
+++ b/src/uk/co/oliwali/MultiHome/MultiHome.java
@@ -1,132 +1,132 @@
package uk.co.oliwali.MultiHome;
import java.util.ArrayList;
impor... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String args[]) {
String prefix = cmd.getName();
Player player = (Player) sender;
World world = player.getWorld();
if (prefix.equalsIgnoreCase("home") && permissions.home(player)) {
if (args.length > 0) {
String comm... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String args[]) {
String prefix = cmd.getName();
Player player = (Player) sender;
World world = player.getWorld();
if (prefix.equalsIgnoreCase("home") && permissions.home(player)) {
if (args.length > 0) {
String comm... |
diff --git a/src/main/java/net/stormdev/ucars/shops/CarShop.java b/src/main/java/net/stormdev/ucars/shops/CarShop.java
index ba462ed..513dc77 100644
--- a/src/main/java/net/stormdev/ucars/shops/CarShop.java
+++ b/src/main/java/net/stormdev/ucars/shops/CarShop.java
@@ -1,113 +1,115 @@
package net.stormdev.ucars.shops;
... | true | true | public void buyCar(Player player){
if(main.economy == null){
main.plugin.setupEconomy();
if(main.economy == null){
player.sendMessage(main.colors.getError()+"No economy plugin found! Error!");
return;
}
}
double bal = main.economy.getBalance(player.getName());
double cost = value;
if(cost < ... | public void buyCar(Player player){
if(main.economy == null){
main.plugin.setupEconomy();
if(main.economy == null){
player.sendMessage(main.colors.getError()+"No economy plugin found! Error!");
return;
}
}
double bal = main.economy.getBalance(player.getName());
double cost = value;
if(cost < ... |
diff --git a/src/java/org/apache/cassandra/net/IncomingTcpConnection.java b/src/java/org/apache/cassandra/net/IncomingTcpConnection.java
index dcc0f0e2..07f38bd0 100644
--- a/src/java/org/apache/cassandra/net/IncomingTcpConnection.java
+++ b/src/java/org/apache/cassandra/net/IncomingTcpConnection.java
@@ -1,71 +1,71 @@... | true | true | public void run()
{
while (true)
{
try
{
MessagingService.validateMagic(input.readInt());
int header = input.readInt();
int type = MessagingService.getBits(header, 1, 2);
boolean isStream = MessagingService.g... | public void run()
{
while (true)
{
try
{
MessagingService.validateMagic(input.readInt());
int header = input.readInt();
int type = MessagingService.getBits(header, 1, 2);
boolean isStream = MessagingService.g... |
diff --git a/java/src/ch/dritz/zhaw/ci/evolutionstrategy/Individual.java b/java/src/ch/dritz/zhaw/ci/evolutionstrategy/Individual.java
index a4f9316..93cbbbd 100644
--- a/java/src/ch/dritz/zhaw/ci/evolutionstrategy/Individual.java
+++ b/java/src/ch/dritz/zhaw/ci/evolutionstrategy/Individual.java
@@ -1,139 +1,139 @@
pa... | true | true | public boolean fitness()
{
double d = UNIT * param[IDX_PARAM_D];
double h = UNIT * param[IDX_PARAM_H];
fitness = Math.PI * d * d / 2 + Math.PI * d * h;
g = Math.PI * d * d * h / 4;
fitnessOk = g >= MIN_G;
return fitnessOk;
}
| public boolean fitness()
{
double d = UNIT * param[IDX_PARAM_D];
double h = UNIT * param[IDX_PARAM_H];
fitness = Math.PI * d * d / 2 + Math.PI * d * h;
g = Math.PI * d * d * h / 4;
fitnessOk = (g >= MIN_G) && (d > 0D) && (h > 0D);
return fitnessOk;
}
|
diff --git a/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.common.ui.services/src/org/eclipse/gmf/runtime/common/ui/services/parser/GetParserOperation.java b/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.common.ui.services/src/org/eclipse/gmf/runtime/common/ui/services/parser/GetParserOperation.java... | true | true | protected GetParserOperation(IAdaptable hint) {
assert null!=hint : "GetParserOperation constoructor received NULL as argument"; //$NON-NLS-1$
this.hint = hint;
}
| protected GetParserOperation(IAdaptable hint) {
assert null!=hint : "GetParserOperation constructor received NULL as argument"; //$NON-NLS-1$
this.hint = hint;
}
|
diff --git a/illacommon/src/illarion/common/data/BookPage.java b/illacommon/src/illarion/common/data/BookPage.java
index 97b9a785..a026c1d6 100644
--- a/illacommon/src/illarion/common/data/BookPage.java
+++ b/illacommon/src/illarion/common/data/BookPage.java
@@ -1,88 +1,88 @@
/*
* This file is part of the Illarion C... | false | true | public BookPage(final Node source) {
this();
final NodeList children = source.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
final Node child = children.item(i);
if ("headline".equals(child.getNodeName())) {
entries.add(new BookPageE... | public BookPage(final Node source) {
this();
final NodeList children = source.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
final Node child = children.item(i);
if ("headline".equals(child.getNodeName())) {
entries.add(new BookPageE... |
diff --git a/projects/connector-manager/source/java/com/google/enterprise/connector/servlet/ServletUtil.java b/projects/connector-manager/source/java/com/google/enterprise/connector/servlet/ServletUtil.java
index 5026d07a..45cd0b94 100644
--- a/projects/connector-manager/source/java/com/google/enterprise/connector/serv... | true | true | public static String filterSensitiveData(String formSnippet) {
boolean valueObfuscated = false;
// Wrap the given form in a temporary root.
String rootSnippet = DOCTYPE
+ TEMP_ROOT_BEGIN_ELEMENT + formSnippet + TEMP_ROOT_END_ELEMENT;
// Convert to DOM tree and obfuscated values if needed.
... | public static String filterSensitiveData(String formSnippet) {
boolean valueObfuscated = false;
// Wrap the given form in a temporary root.
String rootSnippet = DOCTYPE
+ TEMP_ROOT_BEGIN_ELEMENT + formSnippet + TEMP_ROOT_END_ELEMENT;
// Convert to DOM tree and obfuscated values if needed.
... |
diff --git a/src/org/servalproject/LogActivity.java b/src/org/servalproject/LogActivity.java
index 325ec976..111b11d8 100644
--- a/src/org/servalproject/LogActivity.java
+++ b/src/org/servalproject/LogActivity.java
@@ -1,187 +1,187 @@
/**
* Copyright (C) 2011 The Serval Project
*
* This file is part of Serval So... | true | true | private String readLogfile(){
FileInputStream fis = null;
InputStreamReader isr = null;
String data = "";
List<String> logfiles = ChipsetDetection
.getList("/data/data/org.servalproject/conf/logfiles.list");
for (String l : logfiles) {
if (l.indexOf(":") == -1)
continu... | private String readLogfile(){
FileInputStream fis = null;
InputStreamReader isr = null;
String data = "";
List<String> logfiles = ChipsetDetection
.getList("/data/data/org.servalproject/conf/logfiles.list");
for (String l : logfiles) {
if (l.indexOf(":") == -1)
continu... |
diff --git a/src/main/java/pl/psnc/dl/wf4ever/dlibra/UserProfile.java b/src/main/java/pl/psnc/dl/wf4ever/dlibra/UserProfile.java
index b642603..0e9da42 100644
--- a/src/main/java/pl/psnc/dl/wf4ever/dlibra/UserProfile.java
+++ b/src/main/java/pl/psnc/dl/wf4ever/dlibra/UserProfile.java
@@ -1,141 +1,143 @@
/**
*
*/
... | true | true | public static URI generateAbsoluteURI(URI uri, String login)
{
if (uri == null) {
uri = URI.create(login);
if (uri == null) {
try {
uri = new URI(null, login, null);
}
catch (URISyntaxException e) {
try {
uri = new URI(null, login.replaceAll("\\W", ""), null);
}
catch (UR... | public static URI generateAbsoluteURI(URI uri, String login)
{
if (uri == null) {
try {
uri = new URI(login);
}
catch (URISyntaxException e2) {
try {
uri = new URI(null, login, null);
}
catch (URISyntaxException e) {
try {
uri = new URI(null, login.replaceAll("\\W", ""), nul... |
diff --git a/src/main/java/servlet/UploadServlet.java b/src/main/java/servlet/UploadServlet.java
index c77531a..0a5708d 100644
--- a/src/main/java/servlet/UploadServlet.java
+++ b/src/main/java/servlet/UploadServlet.java
@@ -1,82 +1,82 @@
package servlet;
import java.io.File;
import java.io.FileOutputStream;
impo... | true | true | protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
//add to db - check task in db, add to subtasks,
... | protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
//add to db - check task in db, add to subtasks,
... |
diff --git a/src/api/org/openmrs/util/OpenmrsConstants.java b/src/api/org/openmrs/util/OpenmrsConstants.java
index 5e982526..38da0e1d 100644
--- a/src/api/org/openmrs/util/OpenmrsConstants.java
+++ b/src/api/org/openmrs/util/OpenmrsConstants.java
@@ -1,1207 +1,1204 @@
/**
* The contents of this file are subject to t... | true | true | public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() {
List<GlobalProperty> props = new Vector<GlobalProperty>();
props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false",
"Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient... | public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() {
List<GlobalProperty> props = new Vector<GlobalProperty>();
props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false",
"Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient... |
diff --git a/xml/src/main/java/org/openstreetmap/osmosis/xml/v0_6/impl/BoundWriter.java b/xml/src/main/java/org/openstreetmap/osmosis/xml/v0_6/impl/BoundWriter.java
index c8b04ca8..4bce565d 100644
--- a/xml/src/main/java/org/openstreetmap/osmosis/xml/v0_6/impl/BoundWriter.java
+++ b/xml/src/main/java/org/openstreetmap/... | false | true | private void processRegular(Bound bound) {
String format = "%.5f";
beginOpenElement();
addAttribute(XmlConstants.ATTRIBUTE_NAME_MINLON,
String.format(format, Locale.US, bound.getLeft()));
addAttribute(XmlConstants.ATTRIBUTE_NAME_MINLAT,
String.format(format, Locale.US, bound.getBottom()));
addAtt... | private void processRegular(Bound bound) {
String format = "%.5f";
beginOpenElement();
addAttribute(XmlConstants.ATTRIBUTE_NAME_MINLON,
String.format(Locale.US, format, bound.getLeft()));
addAttribute(XmlConstants.ATTRIBUTE_NAME_MINLAT,
String.format(Locale.US, format, bound.getBottom()));
addAtt... |
diff --git a/chapter7/file/src/main/java/camelinaction/FileSaverWithFileName.java b/chapter7/file/src/main/java/camelinaction/FileSaverWithFileName.java
index a03dcab..436770a 100644
--- a/chapter7/file/src/main/java/camelinaction/FileSaverWithFileName.java
+++ b/chapter7/file/src/main/java/camelinaction/FileSaverWithF... | true | true | public static void main(String args[]) throws Exception {
// create CamelContext
CamelContext context = new DefaultCamelContext();
// add our route to the CamelContext
context.addRoutes(new RouteBuilder() {
public void configure() {
from("stream:in?prompt... | public static void main(String args[]) throws Exception {
// create CamelContext
CamelContext context = new DefaultCamelContext();
// add our route to the CamelContext
context.addRoutes(new RouteBuilder() {
public void configure() {
from("stream:in?prompt... |
diff --git a/src/to/joe/j2mc/info/command/PlayerListCommand.java b/src/to/joe/j2mc/info/command/PlayerListCommand.java
index e937f7f..ef70f8f 100644
--- a/src/to/joe/j2mc/info/command/PlayerListCommand.java
+++ b/src/to/joe/j2mc/info/command/PlayerListCommand.java
@@ -1,97 +1,97 @@
package to.joe.j2mc.info.command;
... | false | true | public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) {
if (!sender.hasPermission("j2mc.core.admin")) {
int total = 0;
for(Player derp : plugin.getServer().getOnlinePlayers()){
if(!J2MC_Manager.getVisibility().isVan... | public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) {
if (!sender.hasPermission("j2mc.core.admin")) {
int total = 0;
for(Player derp : plugin.getServer().getOnlinePlayers()){
if(!J2MC_Manager.getVisibility().isVan... |
diff --git a/src/main/edu/iastate/music/marching/attendance/servlets/FormsServlet.java b/src/main/edu/iastate/music/marching/attendance/servlets/FormsServlet.java
index b7888e3b..a7842d06 100644
--- a/src/main/edu/iastate/music/marching/attendance/servlets/FormsServlet.java
+++ b/src/main/edu/iastate/music/marching/att... | true | true | private void handleFormB(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String department = null;
String course = null;
String section = null;
String building = null;
Date startDate = null;
Date endDate = null;
Date fromTime = null;
Date toTime = null;
int... | private void handleFormB(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String department = null;
String course = null;
String section = null;
String building = null;
Date startDate = null;
Date endDate = null;
Date fromTime = null;
Date toTime = null;
int... |
diff --git a/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/Alkis_buchungsblattRenderer.java b/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/Alkis_buchungsblattRenderer.java
index 10448fa8..924f3d4f 100644
--- a/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/Alkis_buchungsb... | true | true | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
panTitle = new javax.swing.JPanel();
panFooter = new javax.swing.JPanel();
lblTxtBuchungsblattcode = new javax.swing.JLabel();
... | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
panTitle = new javax.swing.JPanel();
panFooter = new javax.swing.JPanel();
lblTxtBuchungsblattcode = new javax.swing.JLabel();
... |
diff --git a/android/src/net/noraisin/android_aurena/AndroidAurena.java b/android/src/net/noraisin/android_aurena/AndroidAurena.java
index 2da86a2..aa80527 100644
--- a/android/src/net/noraisin/android_aurena/AndroidAurena.java
+++ b/android/src/net/noraisin/android_aurena/AndroidAurena.java
@@ -1,238 +1,238 @@
packag... | true | true | public void initializeDiscoveryListener() {
mDiscoveryListener = new NsdManager.DiscoveryListener() {
@Override
public void onDiscoveryStarted(String regType) {
Log.d(TAG, "Service discovery started");
}
@Override
public void onServiceFound(N... | public void initializeDiscoveryListener() {
mDiscoveryListener = new NsdManager.DiscoveryListener() {
@Override
public void onDiscoveryStarted(String regType) {
Log.d(TAG, "Service discovery started");
}
@Override
public void onServiceFound(N... |
diff --git a/src/com/ichi2/anki/Statistics.java b/src/com/ichi2/anki/Statistics.java
index b8416674..43b71d0f 100644
--- a/src/com/ichi2/anki/Statistics.java
+++ b/src/com/ichi2/anki/Statistics.java
@@ -1,248 +1,248 @@
/*****************************************************************************************
* Copyr... | false | true | public static double[][] getSeriesList(Context context, int type, int period) {
double[][] seriesList;
AnkiDb ankiDB = AnkiDatabaseManager.getDatabase(sDeck.getDeckPath());
ankiDB.getDatabase().beginTransaction();
try {
switch (type) {
case TYPE_DUE:
se... | public static double[][] getSeriesList(Context context, int type, int period) {
double[][] seriesList;
AnkiDb ankiDB = AnkiDatabaseManager.getDatabase(sDeck.getDeckPath());
ankiDB.getDatabase().beginTransaction();
try {
switch (type) {
case TYPE_DUE:
se... |
diff --git a/flexodesktop/model/flexoutils/src/main/java/org/openflexo/toolbox/ResourceLocator.java b/flexodesktop/model/flexoutils/src/main/java/org/openflexo/toolbox/ResourceLocator.java
index 60e46c1b7..d8ebbff22 100644
--- a/flexodesktop/model/flexoutils/src/main/java/org/openflexo/toolbox/ResourceLocator.java
+++ ... | true | true | private static Vector<File> getDirectoriesSearchOrder() {
if (directoriesSearchOrder == null) {
synchronized (ResourceLocator.class) {
if (directoriesSearchOrder == null) {
if (logger.isLoggable(Level.INFO)) {
logger.info("Initializing directories search order");
}
directoriesSearchOrder ... | private static Vector<File> getDirectoriesSearchOrder() {
if (directoriesSearchOrder == null) {
synchronized (ResourceLocator.class) {
if (directoriesSearchOrder == null) {
if (logger.isLoggable(Level.INFO)) {
logger.info("Initializing directories search order");
}
directoriesSearchOrder ... |
diff --git a/projects/framework/test-contract/src/org/identityconnectors/contract/data/macro/Expression.java b/projects/framework/test-contract/src/org/identityconnectors/contract/data/macro/Expression.java
index 15aeaf2e..32e281bf 100644
--- a/projects/framework/test-contract/src/org/identityconnectors/contract/data/m... | true | true | private Object processMacro(ExpressionContext context, String macroText) {
int index = 0;
int embeddedMacroLevel = 0;
List<String> parametersStrings = new ArrayList<String>();
// make sure it's a valid macro
Assert.assertTrue("Macro text not properly formated ${<macr... | private Object processMacro(ExpressionContext context, String macroText) {
int index = 0;
int embeddedMacroLevel = 0;
List<String> parametersStrings = new ArrayList<String>();
// make sure it's a valid macro
Assert.assertTrue("Macro text not properly formated ${<macr... |
diff --git a/test/web/org/appfuse/webapp/action/LoginServletTest.java b/test/web/org/appfuse/webapp/action/LoginServletTest.java
index aa2079a8..073dce28 100644
--- a/test/web/org/appfuse/webapp/action/LoginServletTest.java
+++ b/test/web/org/appfuse/webapp/action/LoginServletTest.java
@@ -1,116 +1,116 @@
package org.... | false | true | public void testInit() throws Exception {
// check all parameters from web.xml
String authURL = config.getInitParameter(Constants.AUTH_URL);
log.debug("authURL: " + authURL);
assertTrue((authURL != null) &&
authURL.equals(rb.getString("authURL")));
Map con... | public void testInit() throws Exception {
// check all parameters from web.xml
String authURL = config.getInitParameter(Constants.AUTH_URL);
log.debug("authURL: " + authURL);
assertTrue((authURL != null) &&
authURL.equals(rb.getString("authURL")));
Map con... |
diff --git a/src/com/novell/android/yastroid/YastroidOpenHelper.java b/src/com/novell/android/yastroid/YastroidOpenHelper.java
index 3e4c036..3445583 100644
--- a/src/com/novell/android/yastroid/YastroidOpenHelper.java
+++ b/src/com/novell/android/yastroid/YastroidOpenHelper.java
@@ -1,83 +1,83 @@
package com.novell.a... | true | true | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.w(TAG, "Upgrading database from version " + oldVersion + "to "
+ newVersion);
// Any changes to the database structure should occur here.
// This is called if the DATABASE_VERSION installed is older
// than the new version.
//... | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.w(TAG, "Upgrading database from version " + oldVersion + "to "
+ newVersion);
// Any changes to the database structure should occur here.
// This is called if the DATABASE_VERSION installed is older
// than the new version.
//... |
diff --git a/src/fitnesse/responders/editing/SymbolicLinkResponder.java b/src/fitnesse/responders/editing/SymbolicLinkResponder.java
index 9e4af9e..5d3fd94 100644
--- a/src/fitnesse/responders/editing/SymbolicLinkResponder.java
+++ b/src/fitnesse/responders/editing/SymbolicLinkResponder.java
@@ -1,126 +1,126 @@
// Cop... | true | true | private void addSymbolicLink(Request request, WikiPage page) throws Exception
{
String linkName = (String) request.getInput("linkName");
String linkPath = (String) request.getInput("linkPath");
if(isFilePath(linkPath) && !isValidDirectoryPath(linkPath))
{
String message = "Cannot create link to the file s... | private void addSymbolicLink(Request request, WikiPage page) throws Exception
{
String linkName = (String) request.getInput("linkName");
String linkPath = (String) request.getInput("linkPath");
if(isFilePath(linkPath) && !isValidDirectoryPath(linkPath))
{
String message = "Cannot create link to the file s... |
diff --git a/src/java/com/eviware/soapui/support/jdbc/JdbcUtils.java b/src/java/com/eviware/soapui/support/jdbc/JdbcUtils.java
index 56166e5d3..c6a57637d 100644
--- a/src/java/com/eviware/soapui/support/jdbc/JdbcUtils.java
+++ b/src/java/com/eviware/soapui/support/jdbc/JdbcUtils.java
@@ -1,79 +1,79 @@
/*
* soapUI, ... | false | true | public static Connection initConnection( PropertyExpansionContext context, String driver, String connectionString,
String password ) throws SQLException, SoapUIException
{
if( JdbcUtils.missingConnSettings( driver, connectionString, password ) )
{
throw new SoapUIException( "Some connections settings are mi... | public static Connection initConnection( PropertyExpansionContext context, String driver, String connectionString,
String password ) throws SQLException, SoapUIException
{
if( JdbcUtils.missingConnSettings( driver, connectionString, password ) )
{
throw new SoapUIException( "Some connections settings are mi... |
diff --git a/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/SpoofaxTestingJSGLRI.java b/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/SpoofaxTestingJSGLRI.java
index 5f3293f..9cc768c 100644
--- a/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/SpoofaxTestingJSGLR... | true | true | private IStrategoTerm parseTestedFragments(final IStrategoTerm root) {
final Tokenizer oldTokenizer = (Tokenizer) getTokenizer(root);
final Retokenizer retokenizer = new Retokenizer(oldTokenizer);
final ITermFactory nonParentFactory = Environment.getTermFactory();
final ITermFactory factory = new ParentTermFac... | private IStrategoTerm parseTestedFragments(final IStrategoTerm root) {
final Tokenizer oldTokenizer = (Tokenizer) getTokenizer(root);
final Retokenizer retokenizer = new Retokenizer(oldTokenizer);
final ITermFactory nonParentFactory = Environment.getTermFactory();
final ITermFactory factory = new ParentTermFac... |
diff --git a/code/mobile/smartFridge/src/edu/rit/smartFridge/ListRemoveActivity.java b/code/mobile/smartFridge/src/edu/rit/smartFridge/ListRemoveActivity.java
index 2ce6a56..4493ac0 100644
--- a/code/mobile/smartFridge/src/edu/rit/smartFridge/ListRemoveActivity.java
+++ b/code/mobile/smartFridge/src/edu/rit/smartFridge... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// get the extras and the connector
Bundle extras = getIntent().getExtras();
final DataConnect connector = Connector.getInstance();
ShoppingList list;
final String itemName;
... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// get the extras and the connector
Bundle extras = getIntent().getExtras();
final DataConnect connector = Connector.getInstance();
ShoppingList list;
final String itemName;
... |
diff --git a/src/net/reichholf/dreamdroid/fragment/dialogs/ActionDialog.java b/src/net/reichholf/dreamdroid/fragment/dialogs/ActionDialog.java
index 0038c093..643b7016 100644
--- a/src/net/reichholf/dreamdroid/fragment/dialogs/ActionDialog.java
+++ b/src/net/reichholf/dreamdroid/fragment/dialogs/ActionDialog.java
@@ -1... | true | true | protected void finishDialog(int action, Object details) {
((DialogActionListener) getActivity()).onDialogAction(action, details, getTag());
dismiss();
}
| protected void finishDialog(int action, Object details) {
DialogActionListener listener = (DialogActionListener) getActivity();
if(listener != null)
listener.onDialogAction(action, details, getTag());
dismiss();
}
|
diff --git a/forumlistener/XenForo.java b/forumlistener/XenForo.java
index 8f7e14f..4595a0d 100644
--- a/forumlistener/XenForo.java
+++ b/forumlistener/XenForo.java
@@ -1,107 +1,105 @@
import java.security.NoSuchAlgorithmException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;... | false | true | public boolean accountExist(String username, String password)
{
String encpass = "nope";
boolean exist = false;
try
{
ResultSet rs = OKBWebsiteDB.dbm.prepare("SELECT data FROM " + (String) OKConfig.tablePrefix + "xf_user_authenticate," + (String) OKConfig.tablePrefix
... | public boolean accountExist(String username, String password)
{
boolean exist = false;
try
{
ResultSet rs = OKBWebsiteDB.dbm.prepare("SELECT data FROM " + (String) OKConfig.tablePrefix + "xf_user_authenticate," + (String) OKConfig.tablePrefix
+ "xf_user WH... |
diff --git a/src/org/broad/igv/ui/action/FitDataToWindowMenuAction.java b/src/org/broad/igv/ui/action/FitDataToWindowMenuAction.java
index 7399282c2..1ced49afa 100644
--- a/src/org/broad/igv/ui/action/FitDataToWindowMenuAction.java
+++ b/src/org/broad/igv/ui/action/FitDataToWindowMenuAction.java
@@ -1,125 +1,125 @@
/*... | true | true | private boolean fitTracksToPanel(DataPanelContainer dataPanel) {
boolean success = true;
int availableHeight = dataPanel.getVisibleHeight();
int visibleTrackCount = 0;
// Process data tracks first
Collection<TrackGroup> groups = dataPanel.getTrackGroups();
// Cou... | private boolean fitTracksToPanel(DataPanelContainer dataPanel) {
boolean success = true;
int availableHeight = dataPanel.getVisibleHeight();
int visibleTrackCount = 0;
// Process data tracks first
Collection<TrackGroup> groups = dataPanel.getTrackGroups();
// Cou... |
diff --git a/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track/SeqBlockTrack.java b/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track/SeqBlockTrack.java
index b5640b684..5d2cef61c 100644
--- a/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track... | true | true | public Collection<Drawable> getDrawables() {
Collection<Drawable> drawables = getEmptyDrawCollection();
occupiedSpace.clear();
// If SNP highlight mode is on, we need reference sequence data
char[] refSeq = highlightSNP ? getReferenceArray(refReads, view, strand) : null;
// Main loop: Iterate over RegionC... | public Collection<Drawable> getDrawables() {
Collection<Drawable> drawables = getEmptyDrawCollection();
occupiedSpace.clear();
// If SNP highlight mode is on, we need reference sequence data
char[] refSeq = highlightSNP ? getReferenceArray(refReads, view, strand) : null;
// Main loop: Iterate over RegionC... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/helpers/ArgumentHelper.java b/src/main/java/net/aufdemrand/denizen/scripts/helpers/ArgumentHelper.java
index eb937a0d2..ad2820a1d 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/helpers/ArgumentHelper.java
+++ b/src/main/java/net/aufdemrand/denizen/scr... | true | true | public boolean matchesValueArg(String argumentName, String argument, ArgumentType type) {
if (argument == null) return false;
if (argument.split(":").length == 1) return false;
if (!argument.toUpperCase().contains(argumentName.toUpperCase() + ":")) return false;
argument = argument.s... | public boolean matchesValueArg(String argumentName, String argument, ArgumentType type) {
if (argument == null) return false;
if (argument.split(":").length == 1) return false;
if (!argument.split(":")[0].equalsIgnoreCase(argumentName)) return false;
argument = argument.split(":", 2)... |
diff --git a/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java b/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java
index 75744e4..e2e7c80 100644
--- a/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java
+++ b/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java
@@ -1,264 +1,265 @@
//
// CppWrap... | true | true | private List<String> getLibraryJars() throws MojoExecutionException {
final List<String> jars = new ArrayList<String>();
// add project artifact
final File projectArtifact = project.getArtifact().getFile();
if (projectArtifact == null || !projectArtifact.exists()) {
throw new MojoExecutionException(
"M... | private List<String> getLibraryJars() throws MojoExecutionException {
final List<String> jars = new ArrayList<String>();
// add project artifact
// TODO: Try project.getArtifacts()?
final File projectArtifact = project.getArtifact().getFile();
if (projectArtifact == null || !projectArtifact.exists()) {
t... |
diff --git a/pa1/src/to/richard/tsp/ReplaceWorstSurvivorSelection.java b/pa1/src/to/richard/tsp/ReplaceWorstSurvivorSelection.java
index 4676c27..93466f6 100644
--- a/pa1/src/to/richard/tsp/ReplaceWorstSurvivorSelection.java
+++ b/pa1/src/to/richard/tsp/ReplaceWorstSurvivorSelection.java
@@ -1,55 +1,55 @@
package to.r... | false | true | public List<Genotype> replace(List<Genotype> parents, List<Genotype> offspring) {
int populationSize = parents.size();
int totalPopulation = populationSize * 2;
ArrayList<Pair<Double, Genotype>> fitnessGenotypes = new ArrayList<Pair<Double, Genotype>>();
ArrayList<Genotype> nextGen... | public List<Genotype> replace(List<Genotype> parents, List<Genotype> offspring) {
int populationSize = parents.size();
int totalPopulation = populationSize * 2;
ArrayList<Pair<Double, Genotype>> fitnessGenotypes = new ArrayList<Pair<Double, Genotype>>();
ArrayList<Genotype> nextGen... |
diff --git a/src/main/java/eu/doppel_helix/netbeans/mantisintegration/query/MantisQueryTableCellRenderer.java b/src/main/java/eu/doppel_helix/netbeans/mantisintegration/query/MantisQueryTableCellRenderer.java
index 96f89c0..e6f8b0a 100644
--- a/src/main/java/eu/doppel_helix/netbeans/mantisintegration/query/MantisQueryT... | false | true | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
Object originalValue = value;
Color overrideColor = Color.WHITE;
if(value instanceof IssueNode.IssueProperty) {
try {
if ("manti... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
Object originalValue = value;
Color overrideColor = Color.WHITE;
if(value instanceof IssueNode.IssueProperty) {
try {
if (((IssueNode.IssuePro... |
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/EmailDigester.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/EmailDigester.java
index 55f969b9..c33d4527 100644
--- a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/EmailDigester.java
+++ b/expenditu... | true | true | public void executeTask() {
for (final VirtualHost virtualHost : MyOrg.getInstance().getVirtualHostsSet()) {
if (!virtualHost.getHostname().startsWith("dot")) {
continue;
}
try {
VirtualHost.setVirtualHostForThread(virtualHost);
EmailDigesterUtil.executeTask();
} finally {
VirtualHost.r... | public void executeTask() {
for (final VirtualHost virtualHost : MyOrg.getInstance().getVirtualHostsSet()) {
if (!virtualHost.hasSystemSender() || !virtualHost.getHostname().startsWith("dot")) {
continue;
}
try {
VirtualHost.setVirtualHostForThread(virtualHost);
EmailDigesterUtil.executeTask()... |
diff --git a/src/main/java/amber/gui/MainContentPanel.java b/src/main/java/amber/gui/MainContentPanel.java
index 6dedf21..3cd8c21 100644
--- a/src/main/java/amber/gui/MainContentPanel.java
+++ b/src/main/java/amber/gui/MainContentPanel.java
@@ -1,208 +1,210 @@
package amber.gui;
import amber.Amber;
import amber.da... | false | true | public CloseableTabbedPane getFilesTabbedPane() {
if (activeFilesTabbedPane == null) {
activeFilesTabbedPane = new CloseableTabbedPane();
activeFilesTabbedPane.addTabCloseListener(new TabCloseListener() {
public boolean tabClosed(String title, Component comp, Closeabl... | public CloseableTabbedPane getFilesTabbedPane() {
if (activeFilesTabbedPane == null) {
activeFilesTabbedPane = new CloseableTabbedPane();
activeFilesTabbedPane.addTabCloseListener(new TabCloseListener() {
public boolean tabClosed(String title, Component comp, Closeabl... |
diff --git a/extensions/bundles/sdnnetwork/src/main/java/org/opennaas/extensions/sdnnetwork/driver/internal/actionsets/actions/AllocateFlowAction.java b/extensions/bundles/sdnnetwork/src/main/java/org/opennaas/extensions/sdnnetwork/driver/internal/actionsets/actions/AllocateFlowAction.java
index 48baf7541..e86083769 10... | true | true | private FloodlightOFFlow generateOFFlow(NetworkConnection connection, SDNNetworkOFFlow sdnNetworkOFFlow, boolean keepActions)
throws ActionException {
Port source = connection.getSource();
Port destination = connection.getDestination();
FloodlightOFFlow flow = new FloodlightOFFlow(sdnNetworkOFFlow, connecti... | private FloodlightOFFlow generateOFFlow(NetworkConnection connection, SDNNetworkOFFlow sdnNetworkOFFlow, boolean keepActions)
throws ActionException {
Port source = connection.getSource();
Port destination = connection.getDestination();
FloodlightOFFlow flow = new FloodlightOFFlow(sdnNetworkOFFlow, null);
... |
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java
index d3b2a947..8771a3ec 100644
--- a/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -1,608... | false | true | private void startInstallConfirm() {
TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);
tabHost.setup();
ViewPager viewPager = (ViewPager)findViewById(R.id.pager);
TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager);
boolean permVisible = false;
... | private void startInstallConfirm() {
TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);
tabHost.setup();
ViewPager viewPager = (ViewPager)findViewById(R.id.pager);
TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager);
boolean permVisible = false;
... |
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
index eb2f29c..6dec019 100644
--- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
+++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
@@ -1,187 +1,187 @@
package uk.ac.gla.dcs.tp3.w.algorithm;
import java.util.Lin... | true | true | public Graph(League l, Team t) {
if (l == null || t == null)
return;
// Number of team nodes is one less than total number of teams.
// The team nodes do not include the team being tested for elimination.
int teamTotal = l.getTeams().length;
// The r-combination of teamTotal for length 2 is the number of ... | public Graph(League l, Team t) {
if (l == null || t == null)
return;
// Number of team nodes is one less than total number of teams.
// The team nodes do not include the team being tested for elimination.
int teamTotal = l.getTeams().length;
// The r-combination of teamTotal for length 2 is the number of ... |
diff --git a/src/org/harleydroid/J1850.java b/src/org/harleydroid/J1850.java
index e26cce2..8c377cb 100644
--- a/src/org/harleydroid/J1850.java
+++ b/src/org/harleydroid/J1850.java
@@ -1,196 +1,186 @@
//
// HarleyDroid: Harley Davidson J1850 Data Analyser for Android.
//
// Copyright (C) 2010,2011 Stelian Pop <stel... | false | true | public static void parse(byte[] buffer, HarleyData hd) throws Exception {
byte[] in;
int x;
int y;
in = bytes_to_hex(buffer);
/*
System.out.print("BUF: ");
for (int i = 0; i < in.length; i++)
System.out.print(Integer.toHexString(in[i]) + " ");
System.out.println("");
*/
if (crc(in) != (byte)0... | public static void parse(byte[] buffer, HarleyData hd) throws Exception {
byte[] in;
int x;
int y;
in = bytes_to_hex(buffer);
/*
System.out.print("BUF: ");
for (int i = 0; i < in.length; i++)
System.out.print(Integer.toHexString(in[i]) + " ");
System.out.println("");
*/
if (crc(in) != (byte)0... |
diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageHandlingCommandBase.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageHandlingCommandBase.java
index ccbe69d8..c74b1af5 100644
--- a/backend/manager/modules/bll/src/main/java/org/ovirt... | true | true | protected void CalcStoragePoolStatusByDomainsStatus() {
List<storage_domains> domains = DbFacade.getInstance().getStorageDomainDAO().getAllForStoragePool(
getStoragePool().getId());
// storage_domains masterDomain = null; //LINQ 31899 domains.Where(a =>
// a.storage_domain_ty... | protected void CalcStoragePoolStatusByDomainsStatus() {
List<storage_domains> domains = DbFacade.getInstance().getStorageDomainDAO().getAllForStoragePool(
getStoragePool().getId());
// storage_domains masterDomain = null; //LINQ 31899 domains.Where(a =>
// a.storage_domain_ty... |
diff --git a/app/src/main/java/com/donnfelker/android/bootstrap/BootstrapServiceProvider.java b/app/src/main/java/com/donnfelker/android/bootstrap/BootstrapServiceProvider.java
index 6d03c8e..75797ff 100644
--- a/app/src/main/java/com/donnfelker/android/bootstrap/BootstrapServiceProvider.java
+++ b/app/src/main/java/co... | true | true | public BootstrapService getService(Activity activity) throws IOException, AccountsException {
return new BootstrapService(keyProvider.getAuthKey(), userAgentProvider);
}
| public BootstrapService getService(Activity activity) throws IOException, AccountsException {
return new BootstrapService(keyProvider.getAuthKey(activity), userAgentProvider);
}
|
diff --git a/smos-dgg/src/main/java/org/esa/beam/smos/dgg/SmosDggTilizer.java b/smos-dgg/src/main/java/org/esa/beam/smos/dgg/SmosDggTilizer.java
index 287c0cf2..211b29a7 100644
--- a/smos-dgg/src/main/java/org/esa/beam/smos/dgg/SmosDggTilizer.java
+++ b/smos-dgg/src/main/java/org/esa/beam/smos/dgg/SmosDggTilizer.java
@... | false | true | private void doIt(File inputLevel0Dir, File outputDir) throws IOException {
//noinspection ResultOfMethodCallIgnored
outputDir.mkdir();
final TiledFileOpImage opImage = TiledFileOpImage.create(inputLevel0Dir, null);
final int dataType = opImage.getSampleModel().getDataType();
... | private void doIt(File inputLevel0Dir, File outputDir) throws IOException {
if (!outputDir.exists() && !outputDir.mkdir()) {
throw new IOException("Failed to create directory: "+outputDir.getAbsolutePath());
}
final TiledFileOpImage opImage = TiledFileOpImage.create(inputLevel0D... |
diff --git a/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java b/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java
index 6b6660216..1e64fdd15 100644
--- a/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java
+++ b/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java... | false | true | public IToken nextToken( boolean pasting ) throws ScannerException, EndOfFileException
{
if( ! initialContextInitialized )
setupInitialContext();
if( cachedToken != null ){
setCurrentToken( cachedToken );
cachedToken = null;
return currentToken;
}
IToken token;
count++;
int c = getC... | public IToken nextToken( boolean pasting ) throws ScannerException, EndOfFileException
{
if( ! initialContextInitialized )
setupInitialContext();
if( cachedToken != null ){
setCurrentToken( cachedToken );
cachedToken = null;
return currentToken;
}
IToken token;
count++;
int c = getC... |
diff --git a/cobertura/src/net/sourceforge/cobertura/reporting/ComplexityCalculator.java b/cobertura/src/net/sourceforge/cobertura/reporting/ComplexityCalculator.java
index 252c5e9..01e07de 100644
--- a/cobertura/src/net/sourceforge/cobertura/reporting/ComplexityCalculator.java
+++ b/cobertura/src/net/sourceforge/cober... | true | true | private Complexity getAccumlatedCCNForSource(String sourceFileName, Source source) {
if (source == null)
{
return ZERO_COMPLEXITY;
}
Javancss javancss = new Javancss(source.getInputStream());
if (javancss.getLastErrorMessage() != null)
{
//there is an error while parsing the java file. log it
log... | private Complexity getAccumlatedCCNForSource(String sourceFileName, Source source) {
if (source == null)
{
return ZERO_COMPLEXITY;
}
if (!sourceFileName.endsWith(".java"))
{
return ZERO_COMPLEXITY;
}
Javancss javancss = new Javancss(source.getInputStream());
if (javancss.getLastErrorMessage() !=... |
diff --git a/quadrotor/ControlTerminal/src/javiator/terminal/UDPTransceiver.java b/quadrotor/ControlTerminal/src/javiator/terminal/UDPTransceiver.java
index 55566a7..7fc9a06 100644
--- a/quadrotor/ControlTerminal/src/javiator/terminal/UDPTransceiver.java
+++ b/quadrotor/ControlTerminal/src/javiator/terminal/UDPTranscei... | false | true | public void receive()
{
while (isConnected() && !isHalt()) {
byte[] buffer = new byte[Packet.MAX_SIZE];
DatagramPacket recvPacket = new DatagramPacket(buffer, 0, buffer.length);
try {
if (!haveTraffic) {
System.err.println("Waiting for messages from JControl");
}
if (DEBUG) {
Sy... | public void receive()
{
while (isConnected() && !isHalt()) {
byte[] buffer = new byte[Packet.MAX_SIZE];
DatagramPacket recvPacket = new DatagramPacket(buffer, 0, buffer.length);
try {
if (!haveTraffic) {
System.err.println("Waiting for messages from control application");
}
if (DEBUG... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageWatchpointAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageWatchpointAction.java
index 8f0f9ff63..77ace001a 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions... | true | true | protected List searchForDeclaringType(IJavaFieldVariable variable) {
List types= new ArrayList();
ILaunch launch = variable.getDebugTarget().getLaunch();
if (launch == null) {
return types;
}
ILaunchConfiguration configuration= launch.getLaunchConfiguration();
IJavaProject javaProject = null;
IW... | protected List searchForDeclaringType(IJavaFieldVariable variable) {
List types= new ArrayList();
ILaunch launch = variable.getDebugTarget().getLaunch();
if (launch == null) {
return types;
}
ILaunchConfiguration configuration= launch.getLaunchConfiguration();
IJavaProject javaProject = null;
IW... |
diff --git a/sirocco-cimi-command-line-tools/src/main/java/org/ow2/sirocco/apis/rest/cimi/tools/MachineCreateCommand.java b/sirocco-cimi-command-line-tools/src/main/java/org/ow2/sirocco/apis/rest/cimi/tools/MachineCreateCommand.java
index 61eab5e..00fc873 100644
--- a/sirocco-cimi-command-line-tools/src/main/java/org/o... | true | true | public void execute(final CimiClient cimiClient) throws CimiException {
if (this.templateId == null && (this.configId == null && this.imageId == null)) {
throw new CimiException("You need to specify either a template id or both a config id and an image id");
}
MachineCreate machi... | public void execute(final CimiClient cimiClient) throws CimiException {
if (this.templateId == null && (this.configId == null || this.imageId == null)) {
throw new CimiException("You need to specify either a template id or both a config id and an image id");
}
MachineCreate machi... |
diff --git a/src/il/technion/ewolf/server/handlers/JsonHandler.java b/src/il/technion/ewolf/server/handlers/JsonHandler.java
index db7b773..79e2c9f 100644
--- a/src/il/technion/ewolf/server/handlers/JsonHandler.java
+++ b/src/il/technion/ewolf/server/handlers/JsonHandler.java
@@ -1,103 +1,106 @@
package il.technion.ew... | true | true | public void handle(HttpRequest req, HttpResponse res,
HttpContext context) throws HttpException, IOException {
boolean authorized = (Boolean) context.getAttribute("authorized");
String jsonReqAsString = EntityUtils.toString(((HttpEntityEnclosingRequest)req).getEntity());
JsonParser parser = new JsonParser()... | public void handle(HttpRequest req, HttpResponse res,
HttpContext context) throws HttpException, IOException {
boolean authorized = (Boolean) context.getAttribute("authorized");
String jsonReqAsString = EntityUtils.toString(((HttpEntityEnclosingRequest)req).getEntity());
JsonParser parser = new JsonParser()... |
diff --git a/IndexWriter.java b/IndexWriter.java
index aec413a..a75b7aa 100644
--- a/IndexWriter.java
+++ b/IndexWriter.java
@@ -1,469 +1,469 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for ... | false | true | private boolean generateXML(PerstRoot perstRoot, String prefix) throws IOException {
final Config config = perstRoot.getConfig();
final long MAX_SIZE = config.getIndexSubindexMaxSize();
final int MAX_ENTRIES = config.getIndexMaxEntries();
File outputFile = new File(config.getIndexDir() + "index_" + prefix +... | private boolean generateXML(PerstRoot perstRoot, String prefix) throws IOException {
final Config config = perstRoot.getConfig();
final long MAX_SIZE = config.getIndexSubindexMaxSize();
final int MAX_ENTRIES = config.getIndexMaxEntries();
File outputFile = new File(config.getIndexDir() + "index_" + prefix +... |
diff --git a/api/test/exchangeRate/Task1Test.java b/api/test/exchangeRate/Task1Test.java
index a0e2318..4ab8a33 100644
--- a/api/test/exchangeRate/Task1Test.java
+++ b/api/test/exchangeRate/Task1Test.java
@@ -1,134 +1,134 @@
package exchangeRate;
import junit.framework.TestCase;
/** Finish the Calculator API, an... | false | true | public void testExchangeCZKUSD() throws Exception {
Currency usd = new Currency("USD");
Currency czk = new Currency("CZK");
Calculator c = createCZKtoUSD();
// convert $5 to CZK using c:
// assertEquals("Result is 85 CZK");
CurrencyValue result = c.co... | public void testExchangeCZKUSD() throws Exception {
Currency usd = new Currency("USD");
Currency czk = new Currency("CZK");
Calculator c = createCZKtoUSD();
// convert $5 to CZK using c:
// assertEquals("Result is 85 CZK");
CurrencyValue result = c.co... |
diff --git a/ant/host-source/source/project/src/moai/google-billing/MoaiGoogleBillingSecurity.java b/ant/host-source/source/project/src/moai/google-billing/MoaiGoogleBillingSecurity.java
index cbce19f7..f6439ac5 100644
--- a/ant/host-source/source/project/src/moai/google-billing/MoaiGoogleBillingSecurity.java
+++ b/ant... | true | true | public static ArrayList < VerifiedPurchase > verifyPurchase ( String signedData, String signature ) {
if ( sBase64EncodedPublicKey == null ) {
MoaiLog.e ( "MoaiGoogleBillingSecurity verifyPurchase: please specify your Android Market public key using MOAIBilling.setMarketPublicKey ()" );
... | public static ArrayList < VerifiedPurchase > verifyPurchase ( String signedData, String signature ) {
if ( sBase64EncodedPublicKey == null ) {
MoaiLog.e ( "MoaiGoogleBillingSecurity verifyPurchase: please specify your Android Market public key using MOAIBilling.setMarketPublicKey ()" );
... |
diff --git a/src/edu/jhu/thrax/extraction/HieroRuleExtractor.java b/src/edu/jhu/thrax/extraction/HieroRuleExtractor.java
index 79f291d..3ef67a1 100644
--- a/src/edu/jhu/thrax/extraction/HieroRuleExtractor.java
+++ b/src/edu/jhu/thrax/extraction/HieroRuleExtractor.java
@@ -1,178 +1,179 @@
package edu.jhu.thrax.extracti... | true | true | protected Set<Rule> processQueue(Queue<Rule> q, PhrasePair [][] phrasesByStart)
{
Set<Rule> rules = new HashSet<Rule>();
while (q.peek() != null) {
Rule r = q.poll();
if (isWellFormed(r)) {
for (Rule s : getLabelVariants(r)) {
... | protected Set<Rule> processQueue(Queue<Rule> q, PhrasePair [][] phrasesByStart)
{
Set<Rule> rules = new HashSet<Rule>();
while (q.peek() != null) {
Rule r = q.poll();
if (isWellFormed(r)) {
for (Rule s : getLabelVariants(r)) {
... |
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java
index 8643a9c0c..23f297031 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web... | false | true | public void renderSummaryHTML(Writer out) throws IOException {
StringBuilder buf = new StringBuilder(8*1024);
buf.append("<a href=\"/index.jsp\" target=\"_top\"><img src=\"/themes/console/images/i2plogo.png\" alt=\"")
.append(_("I2P Router Console"))
.append("\" title=\"")
... | public void renderSummaryHTML(Writer out) throws IOException {
StringBuilder buf = new StringBuilder(8*1024);
buf.append("<a href=\"/index.jsp\" target=\"_top\"><img src=\"/themes/console/images/i2plogo.png\" alt=\"")
.append(_("I2P Router Console"))
.append("\" title=\"")
... |
diff --git a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java
index f9bb528..80c0737 100644
--- a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java
+++ b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java
@@ -1,157 +1,157 @@
packag... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (cmd.getName().equalsIgnoreCase("vote")) {
sender.sendMessage(plugin.strings.get("voteinfo"));
for (String s : plugin.voteSites) {
sender.sendMessage(ChatColor.GREEN + s);
return true;
}
} else if ... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (cmd.getName().equalsIgnoreCase("vote")) {
sender.sendMessage(plugin.strings.get("voteinfo"));
for (String s : plugin.voteSites) {
sender.sendMessage(ChatColor.GREEN + s);
return true;
}
} else if ... |
diff --git a/trunk/java/com/tigervnc/network/TcpListener.java b/trunk/java/com/tigervnc/network/TcpListener.java
index afe80753..d6e92ab9 100644
--- a/trunk/java/com/tigervnc/network/TcpListener.java
+++ b/trunk/java/com/tigervnc/network/TcpListener.java
@@ -1,167 +1,165 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All... | true | true | public TcpListener(String listenaddr, int port, boolean localhostOnly,
SocketDescriptor sock, boolean close_) throws Exception {
closeFd = close_;
if (sock != null) {
fd = sock;
return;
}
TcpSocket.initSockets();
try {
channel = ServerSocketChannel.open();
... | public TcpListener(String listenaddr, int port, boolean localhostOnly,
SocketDescriptor sock, boolean close_) throws Exception {
closeFd = close_;
if (sock != null) {
fd = sock;
return;
}
TcpSocket.initSockets();
try {
channel = ServerSocketChannel.open();
... |
diff --git a/src/org/odk/collect/android/activities/FormHierarchyActivity.java b/src/org/odk/collect/android/activities/FormHierarchyActivity.java
index 568917b..e4ee6d4 100644
--- a/src/org/odk/collect/android/activities/FormHierarchyActivity.java
+++ b/src/org/odk/collect/android/activities/FormHierarchyActivity.java... | true | true | public void refreshView() {
formList = new ArrayList<HierarchyElement>();
FormIndex currentIndex = mCurrentIndex;
// would like to use this, but it's broken and changes the currentIndex
// TODO: fix in javarosa.
/*
* FormIndex startTest = stepIndexOut(currentIndex); Log.e("carl",
* "starttest = " + s... | public void refreshView() {
formList = new ArrayList<HierarchyElement>();
FormIndex currentIndex = mCurrentIndex;
// would like to use this, but it's broken and changes the currentIndex
// TODO: fix in javarosa.
/*
* FormIndex startTest = stepIndexOut(currentIndex); Log.e("carl",
* "starttest = " + s... |
diff --git a/src/powercrystals/minefactoryreloaded/gui/control/ButtonLogicPinSelect.java b/src/powercrystals/minefactoryreloaded/gui/control/ButtonLogicPinSelect.java
index e5034f38..af606695 100644
--- a/src/powercrystals/minefactoryreloaded/gui/control/ButtonLogicPinSelect.java
+++ b/src/powercrystals/minefactoryrelo... | true | true | public void drawForeground(int mouseX, int mouseY)
{
if(_buffer < 12)
{
if(!MineFactoryReloadedCore.colorblindMode.getBoolean(false))
{
GuiRender.drawRect(x + 3, y + 3, x + width - 3, y + height - 3, _pinColors[_pin].getColor());
}
else
{
GuiRender.drawCenteredString(containerScreen.fontRe... | public void drawForeground(int mouseX, int mouseY)
{
if(_buffer < 12)
{
if(!MineFactoryReloadedCore.colorblindMode.getBoolean(false))
{
GuiRender.drawRect(x + 3, y + 3, x + width - 3, y + height - 3, _pinColors[_pin].getColor());
}
else
{
GuiRender.drawCenteredString(containerScreen.fontRe... |
diff --git a/mad_schuelerturnier_dataloader/src/main/java/com/googlecode/madschuelerturnier/business/dataloader/CVSMannschaftParser.java b/mad_schuelerturnier_dataloader/src/main/java/com/googlecode/madschuelerturnier/business/dataloader/CVSMannschaftParser.java
index 540cd6f4..6439f05c 100644
--- a/mad_schuelerturnier... | true | true | public Mannschaft parseLine(String[] myEntry) {
Long id = null;
Mannschaft mann = new Mannschaft();
// 0 Id
if (myEntry[0] != null && !"".equals(myEntry[0])) {
id = Long.parseLong(myEntry[0]);
}
// 1 Spieljahr
try {
mann.setSpielJah... | private Mannschaft parseLine(String[] myEntry) {
Long id = null;
Mannschaft mann = new Mannschaft();
// 0 Id
if (myEntry[0] != null && !"".equals(myEntry[0])) {
id = Long.parseLong(myEntry[0]);
}
// 1 Spieljahr
try {
mann.setSpielJa... |
diff --git a/src/com/android/music/MediaPlaybackActivityStarter.java b/src/com/android/music/MediaPlaybackActivityStarter.java
index 373c61c..248a5f1 100644
--- a/src/com/android/music/MediaPlaybackActivityStarter.java
+++ b/src/com/android/music/MediaPlaybackActivityStarter.java
@@ -1,40 +1,41 @@
/*
* Copyright (C)... | true | true | public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
Intent i = new Intent(this, MediaPlaybackActivity.class);
startActivity(i);
finish();
}
| public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
Intent i = new Intent(getIntent());
i.setClass(this, MediaPlaybackActivity.class);
startActivity(i);
finish();
}
|
diff --git a/beanmodeller-maven-plugin/src/main/java/com/coremedia.beanmodeller/processors/doctypegenerator/XSDCopyier.java b/beanmodeller-maven-plugin/src/main/java/com/coremedia.beanmodeller/processors/doctypegenerator/XSDCopyier.java
index eea0a93..62c5574 100644
--- a/beanmodeller-maven-plugin/src/main/java/com/cor... | false | true | private void copySchema(Map<String, GrammarInformation> schemas, File targetDir, String schemaName) throws DocTypeMarshallerException {
GrammarInformation grammarInformation = schemas.get(schemaName);
URL schemaUrl = grammarInformation.getGrammarURL();
if (schemaUrl != null && ("file".equals(schemaUrl.get... | private void copySchema(Map<String, GrammarInformation> schemas, File targetDir, String schemaName) throws DocTypeMarshallerException {
GrammarInformation grammarInformation = schemas.get(schemaName);
URL schemaUrl = grammarInformation.getGrammarURL();
String schemaLocation = grammarInformation.getGrammar... |
diff --git a/src/uk/co/mindtrains/Layout.java b/src/uk/co/mindtrains/Layout.java
index 4870091..afb3674 100644
--- a/src/uk/co/mindtrains/Layout.java
+++ b/src/uk/co/mindtrains/Layout.java
@@ -1,261 +1,261 @@
/*
* Copyright (c) 2006 Andy Wood
*/
package uk.co.mindtrains;
import java.awt.Component;
import java... | true | true | public Layout( Point start, PropertySheetTableModel m, final PropertyEditorRegistry registry )
{
model = m;
setLayout( null );
addMouseListener( new MouseAdapter()
{
public void mousePressed( MouseEvent e )
{
Component piece = findComponentAt( e.getPoint() );
if ( piece != null && piece in... | public Layout( Point start, PropertySheetTableModel m, final PropertyEditorRegistry registry )
{
model = m;
setLayout( null );
addMouseListener( new MouseAdapter()
{
public void mousePressed( MouseEvent e )
{
Component piece = findComponentAt( e.getPoint() );
if ( piece != null && piece in... |
diff --git a/org.seasar.kijimuna.ui/src/org/seasar/kijimuna/ui/internal/preference/ProjectPreferencePage.java b/org.seasar.kijimuna.ui/src/org/seasar/kijimuna/ui/internal/preference/ProjectPreferencePage.java
index 254f186..b9295bf 100644
--- a/org.seasar.kijimuna.ui/src/org/seasar/kijimuna/ui/internal/preference/Proje... | false | true | protected Control createContents(Composite parent) {
IPreferenceStore store = PreferencesUtil.getPreferenceStoreOfProject(getProject());
setPreferenceStore(store);
GridLayout layout = new GridLayout(1, true);
layout.marginHeight = 0;
layout.marginWidth = 0;
parent.setLayout(layout);
// nature checkbo... | protected Control createContents(Composite parent) {
IPreferenceStore store = PreferencesUtil.getPreferenceStoreOfProject(getProject());
setPreferenceStore(store);
GridLayout layout = new GridLayout(1, true);
layout.marginHeight = 0;
layout.marginWidth = 0;
parent.setLayout(layout);
// nature checkbo... |
diff --git a/query/src/main/java/org/infinispan/query/clustered/ISPNPriorityQueueFactory.java b/query/src/main/java/org/infinispan/query/clustered/ISPNPriorityQueueFactory.java
index 9c91993ebe..af1693a5b0 100644
--- a/query/src/main/java/org/infinispan/query/clustered/ISPNPriorityQueueFactory.java
+++ b/query/src/main... | true | true | public static PriorityQueue<FieldDoc> getFieldDocSortedHitQueue(int size, SortField[] sort) {
String className = "org.apache.lucene.search.FieldDocSortedHitQueue";
Object[] constructorArgument = new Object[]{ size };
Class[] types = new Class[]{ int.class };
PriorityQueue<FieldDoc> queue = bu... | public static PriorityQueue<FieldDoc> getFieldDocSortedHitQueue(int size, SortField[] sort) {
String className = "org.apache.lucene.search.FieldDocSortedHitQueue";
Object[] constructorArgument = new Object[]{ size };
Class[] types = new Class[]{ int.class };
PriorityQueue<FieldDoc> queue = bu... |
diff --git a/Tron/src/com/tfuruya/tron/TronGame.java b/Tron/src/com/tfuruya/tron/TronGame.java
index 905bae7..3b8dc64 100644
--- a/Tron/src/com/tfuruya/tron/TronGame.java
+++ b/Tron/src/com/tfuruya/tron/TronGame.java
@@ -1,68 +1,70 @@
package com.tfuruya.tron;
public class TronGame {
private int numPlayer;
... | true | true | public TronData update(TronData data, TronAction[] action) {
int x[] = new int[numPlayer];
int y[] = new int[numPlayer];
for (int i=0; i<numPlayer; i++) {
// Initialize x, y
x[i] = data.getX()[i];
y[i] = data.getY()[i];
// If d... | public TronData update(TronData data, TronAction[] action) {
int x[] = new int[numPlayer];
int y[] = new int[numPlayer];
for (int i=0; i<numPlayer; i++) {
// Initialize x, y
x[i] = data.getX()[i];
y[i] = data.getY()[i];
// If d... |
diff --git a/ExtensibleCoreServer/src/main/java/es/gob/catastro/service/core/aop/LoggerInterceptor.java b/ExtensibleCoreServer/src/main/java/es/gob/catastro/service/core/aop/LoggerInterceptor.java
index d53eb51..b25cc51 100644
--- a/ExtensibleCoreServer/src/main/java/es/gob/catastro/service/core/aop/LoggerInterceptor.j... | false | true | public Object executeCall(ProceedingJoinPoint pjp) throws Throwable {
String call = pjp.getTarget().getClass().getName()+"."+pjp.getSignature().getName();
log.debug("CALL: " + call);
try {
long ini = System.currentTimeMillis();
Object obj = pjp.proceed();
long fin = System.currentTimeMillis();
log.i... | public Object executeCall(ProceedingJoinPoint pjp) throws Throwable {
String call = pjp.getTarget().getClass().getName()+"."+pjp.getSignature().getName();
log.debug("CALL: " + call);
try {
long ini = System.currentTimeMillis();
Object obj = pjp.proceed();
long fin = System.currentTimeMillis();
log.i... |
diff --git a/src/com/ichi2/anki/Lookup.java b/src/com/ichi2/anki/Lookup.java
index cc013aed..7e7647cc 100644
--- a/src/com/ichi2/anki/Lookup.java
+++ b/src/com/ichi2/anki/Lookup.java
@@ -1,183 +1,183 @@
package com.ichi2.anki;
import com.ichi2.themes.StyledDialog;
import com.tomgibara.android.veecheck.util.PrefSet... | true | true | public static boolean lookUp(String text, Card card) {
mCurrentCard = card;
// clear text from leading and closing dots, commas, brackets etc.
text = text.trim().replaceAll("[,;:\\s\\(\\[\\)\\]\\.]*$", "").replaceAll("^[,;:\\s\\(\\[\\)\\]\\.]*", "");
switch (mDictionary) {
case DICTIONARY_AEDICT:
In... | public static boolean lookUp(String text, Card card) {
mCurrentCard = card;
// clear text from leading and closing dots, commas, brackets etc.
text = text.trim().replaceAll("[,;:\\s\\(\\[\\)\\]\\.]*$", "").replaceAll("^[,;:\\s\\(\\[\\)\\]\\.]*", "");
switch (mDictionary) {
case DICTIONARY_AEDICT:
In... |
diff --git a/gwtpplugin/src/com/gwtplatform/plugin/wizard/NewPresenterWizardPage.java b/gwtpplugin/src/com/gwtplatform/plugin/wizard/NewPresenterWizardPage.java
index b706181..3fc3cac 100644
--- a/gwtpplugin/src/com/gwtplatform/plugin/wizard/NewPresenterWizardPage.java
+++ b/gwtpplugin/src/com/gwtplatform/plugin/wizard... | false | true | private void createPlaceControls(Composite composite, int nColumns) {
Label label = new Label(composite, SWT.NULL);
label.setText("Place:");
GridData gd = new GridData(GridData.FILL);
gd.horizontalSpan = nColumns - 1;
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.ve... | private void createPlaceControls(Composite composite, int nColumns) {
Label label = new Label(composite, SWT.NULL);
label.setText("Place:");
GridData gd = new GridData(GridData.FILL);
gd.horizontalSpan = nColumns - 1;
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.ve... |
diff --git a/source/yacy.java b/source/yacy.java
index 6716d994a..2f8b57d12 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -1,1045 +1,1046 @@
// yacy.java
// -----------------------
// (C) by Michael Peter Christen; mc@anomic.de
// first published on http://www.yacy.net
// Frankfurt, Germany, 2004, 2005
... | true | true | private static void startup(File homePath, long startupMemFree, long startupMemTotal) {
int oldRev=0;
int newRev=0;
try {
// start up
System.out.println(copyright);
System.out.println(hline);
// check java version
try {
... | private static void startup(File homePath, long startupMemFree, long startupMemTotal) {
int oldRev=0;
int newRev=0;
try {
// start up
System.out.println(copyright);
System.out.println(hline);
// check java version
try {
... |
diff --git a/Enemy.java b/Enemy.java
index a4f0712..16fbd2d 100644
--- a/Enemy.java
+++ b/Enemy.java
@@ -1,17 +1,17 @@
import java.awt.Color;
import java.awt.Graphics2D;
public class Enemy extends Item {
public Enemy() {
super(0,300,50,50);
}
public void move(boolean[] keys){
dx=5;
super.move(new bool... | true | true | public void move(boolean[] keys){
dx=5;
super.move(new boolean[] {false,false,false,false,false,false,false});
if (xpos>600)
xpos=0;
}
| public void move(boolean[] keys){
dx=5;
super.move(new boolean[] {false,false,false,false,false,false,false});
if (x>600)
x=0;
}
|
diff --git a/src/org/broad/igv/sam/reader/ReadGroupFilter.java b/src/org/broad/igv/sam/reader/ReadGroupFilter.java
index cbab828a..4db08f38 100644
--- a/src/org/broad/igv/sam/reader/ReadGroupFilter.java
+++ b/src/org/broad/igv/sam/reader/ReadGroupFilter.java
@@ -1,90 +1,90 @@
/*
* Copyright (c) 2007-2011 by The Broa... | false | true | public static synchronized ReadGroupFilter getFilter() {
PreferenceManager samPrefs = PreferenceManager.getInstance();
if (samPrefs.getAsBoolean(PreferenceManager.SAM_FILTER_ALIGNMENTS)) {
String filterURL = samPrefs.get(PreferenceManager.SAM_FILTER_URL);
ReadGroupFilter ... | public static synchronized ReadGroupFilter getFilter() {
PreferenceManager samPrefs = PreferenceManager.getInstance();
if (samPrefs.getAsBoolean(PreferenceManager.SAM_FILTER_ALIGNMENTS)) {
String filterURL = samPrefs.get(PreferenceManager.SAM_FILTER_URL);
ReadGroupFilter ... |
diff --git a/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/businesslogic/jms/JmsPainter.java b/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/businesslogic/jms/JmsPainter.java
index b6ea398..7afc533 100644
--- a/Exercise1/src/main/java/at/ac/tuwien/complang/carfactory/businesslogic/jms/JmsPainter.j... | false | true | public void startWorkLoop() {
//the assembly loop never terminates. As long as the assembler is running, it will paint cars and bodys.
while(true) {
try {
ObjectMessage objectMessage = null;
while(objectMessage == null) {
//Try to get a car from the car Queue (one which is not yet painted)
obj... | public void startWorkLoop() {
//the assembly loop never terminates. As long as the assembler is running, it will paint cars and bodys.
while(true) {
try {
ObjectMessage objectMessage = null;
while(objectMessage == null) {
//Try to get a car from the car Queue (one which is not yet painted)
obj... |
diff --git a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java
index 9d191ef..0999ff2 100644
--- a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java
+++ b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java
@@ -1,362 +1,362 @@
packag... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (cmd.getName().equalsIgnoreCase("vote")) {
sender.sendMessage(plugin.strings.get("voteinfo"));
for (String s : plugin.voteSites.split("~")) {
sender.sendMessage(ChatColor.GREEN + s);
return true;
}
... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (cmd.getName().equalsIgnoreCase("vote")) {
sender.sendMessage(plugin.strings.get("voteinfo"));
for (String s : plugin.voteSites.split("~")) {
sender.sendMessage(ChatColor.GREEN + s);
return true;
}
... |
diff --git a/src/main/java/org/osaf/cosmo/cmp/UserResource.java b/src/main/java/org/osaf/cosmo/cmp/UserResource.java
index f4fa78c7b..2612845d0 100644
--- a/src/main/java/org/osaf/cosmo/cmp/UserResource.java
+++ b/src/main/java/org/osaf/cosmo/cmp/UserResource.java
@@ -1,302 +1,303 @@
/*
* Copyright 2005-2006 Open So... | false | true | protected void setUser(Document doc) {
if (doc == null) {
return;
}
Element root = doc.getDocumentElement();
if (! DomUtil.matches(root, EL_USER, NS_CMP)) {
throw new CmpException("root element not user");
}
for (ElementIterator i=DomUtil.get... | protected void setUser(Document doc) {
if (doc == null) {
return;
}
Element root = doc.getDocumentElement();
if (! DomUtil.matches(root, EL_USER, NS_CMP)) {
throw new CmpException("root element not user");
}
for (ElementIterator i=DomUtil.get... |
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java
index 2147bf549..18e02e222 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccv... | false | true | protected Control createContents(Composite parent) {
initialize();
Composite composite = new Composite(parent, SWT.NULL);
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
GridLayout layout = new GridLayout();
layout.numColumns = 2;
composite.setLayout(layout);
Label label = createLabel(co... | protected Control createContents(Composite parent) {
initialize();
Composite composite = new Composite(parent, SWT.NULL);
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
GridLayout layout = new GridLayout();
layout.numColumns = 2;
composite.setLayout(layout);
Label label = createLabel(co... |
diff --git a/source/java/org/encuestame/core/persistence/util/EnMeSchemaExport.java b/source/java/org/encuestame/core/persistence/util/EnMeSchemaExport.java
index 387a66e45..eb2eb1fcf 100644
--- a/source/java/org/encuestame/core/persistence/util/EnMeSchemaExport.java
+++ b/source/java/org/encuestame/core/persistence/ut... | true | true | public void create() {
final FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(
SPRING_CONFIG_FILES);
final AnnotationSessionFactoryBean annotationSF = (AnnotationSessionFactoryBean) appContext
.getBean("&sessionFactory");
annota... | public void create() {
final FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(
SPRING_CONFIG_FILES);
final AnnotationSessionFactoryBean annotationSF = (AnnotationSessionFactoryBean) appContext
.getBean("&sessionFactory");
annota... |
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index b43cf2a70..506d1ca6f 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -1,1496 +1,1498 @@
/*
* Copyright (C) 2010 The Android Open Source Projec... | true | true | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... |
diff --git a/src/master/src/org/drftpd/vfs/VirtualFileSystemDirectory.java b/src/master/src/org/drftpd/vfs/VirtualFileSystemDirectory.java
index aa198ee0..4cd36904 100644
--- a/src/master/src/org/drftpd/vfs/VirtualFileSystemDirectory.java
+++ b/src/master/src/org/drftpd/vfs/VirtualFileSystemDirectory.java
@@ -1,310 +1,... | true | true | protected synchronized VirtualFileSystemInode getInodeByName(String name)
throws FileNotFoundException {
name = VirtualFileSystem.fixPath(name);
if (name.startsWith(VirtualFileSystem.separator)) {
return VirtualFileSystem.getVirtualFileSystem().getInodeByPath(name);
}
if (name.indexOf(VirtualFileSystem.s... | protected synchronized VirtualFileSystemInode getInodeByName(String name)
throws FileNotFoundException {
name = VirtualFileSystem.fixPath(name);
if (name.startsWith(VirtualFileSystem.separator)) {
return VirtualFileSystem.getVirtualFileSystem().getInodeByPath(name);
}
if (name.indexOf(VirtualFileSystem.s... |
diff --git a/war-core/src/main/java/com/silverpeas/socialnetwork/myContactProfil/servlets/MyContactProfilRequestRouter.java b/war-core/src/main/java/com/silverpeas/socialnetwork/myContactProfil/servlets/MyContactProfilRequestRouter.java
index 90d67fccee..28ffb2d60c 100644
--- a/war-core/src/main/java/com/silverpeas/soc... | false | true | public String getDestination(String function, MyContactProfilSessionController sc,
HttpServletRequest request) {
String destination = "#";
String userId = request.getParameter("userId");
if (function.equalsIgnoreCase("Infos")) {
request.setAttribute("View", function);
destination = "/soc... | public String getDestination(String function, MyContactProfilSessionController sc,
HttpServletRequest request) {
String destination = "#";
String userId = request.getParameter("userId");
if (function.equalsIgnoreCase("Infos")) {
request.setAttribute("View", function);
destination = "/soc... |
diff --git a/ide/eclipse/registry/org.wso2.carbonstudio.eclipse.greg.manager.local/src/org/wso2/carbonstudio/eclipse/greg/manager/local/ui/remoteviewer/actions/CheckoutActionContributor.java b/ide/eclipse/registry/org.wso2.carbonstudio.eclipse.greg.manager.local/src/org/wso2/carbonstudio/eclipse/greg/manager/local/ui/r... | true | true | private void checkoutRegistryPath() throws Exception {
String checkoutPath = "";
if (getSelectedObj() instanceof RegistryResourceNode) {
RegistryResourceNode r = (RegistryResourceNode) getSelectedObj();
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
ContainerSelectionDialog dialog = new C... | private void checkoutRegistryPath() throws Exception {
String checkoutPath = "";
if (getSelectedObj() instanceof RegistryResourceNode) {
RegistryResourceNode r = (RegistryResourceNode) getSelectedObj();
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
ContainerSelectionDialog dialog = new C... |
diff --git a/src/main/java/com/tek42/perforce/parse/Workspaces.java b/src/main/java/com/tek42/perforce/parse/Workspaces.java
index 176416e..7ac4436 100644
--- a/src/main/java/com/tek42/perforce/parse/Workspaces.java
+++ b/src/main/java/com/tek42/perforce/parse/Workspaces.java
@@ -1,167 +1,178 @@
/*
* P4Java - java i... | false | true | public StringBuilder syncTo(String path, boolean forceSync) throws PerforceException {
ResponseFilter filter = new ResponseFilter(){
private int count=0;
@Override
public boolean accept(String line) {
count++;
... | public StringBuilder syncTo(String path, boolean forceSync) throws PerforceException {
final StringBuilder errors = new StringBuilder();
ResponseFilter filter = new ResponseFilter(){
private int count=0;
@Override
public boolea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.