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/balle/strategy/planner/GoToBallM3.java b/src/balle/strategy/planner/GoToBallM3.java
index f6e418c..572e005 100644
--- a/src/balle/strategy/planner/GoToBallM3.java
+++ b/src/balle/strategy/planner/GoToBallM3.java
@@ -1,206 +1,206 @@
package balle.strategy.planner;
import java.awt.Color;
import or... | true | true | protected void onStep(Controller controller, Snapshot snapshot) {
Robot ourRobot = snapshot.getBalle();
Ball ball = snapshot.getBall();
if ((ourRobot.getPosition() == null)
|| (ourRobot.getOrientation() == null)
|| (ball.getPosition() == null))
return;
... | protected void onStep(Controller controller, Snapshot snapshot) {
Robot ourRobot = snapshot.getBalle();
Ball ball = snapshot.getBall();
if ((ourRobot.getPosition() == null)
|| (ourRobot.getOrientation() == null)
|| (ball.getPosition() == null))
return;
... |
diff --git a/plugins/hooks/conext-login-hook/docroot/WEB-INF/src/nl/proteon/liferay/surfnet/security/auth/ConextAutoLogin.java b/plugins/hooks/conext-login-hook/docroot/WEB-INF/src/nl/proteon/liferay/surfnet/security/auth/ConextAutoLogin.java
index d125f5a..62698b4 100644
--- a/plugins/hooks/conext-login-hook/docroot/W... | false | true | public String[] login(HttpServletRequest request, HttpServletResponse response)
throws AutoLoginException {
String[] credentials = null;
try {
long companyId = PortalUtil.getCompanyId(request);
String emailAddress = StringPool.BLANK;
String firstName = StringPool.BLANK;
String lastName = Str... | public String[] login(HttpServletRequest request, HttpServletResponse response)
throws AutoLoginException {
String[] credentials = null;
try {
long companyId = PortalUtil.getCompanyId(request);
String emailAddress = StringPool.BLANK;
String firstName = StringPool.BLANK;
String lastName = Str... |
diff --git a/src/main/java/org/freecode/irc/votebot/PollExpiryAnnouncer.java b/src/main/java/org/freecode/irc/votebot/PollExpiryAnnouncer.java
index 9136f77..35a1e79 100644
--- a/src/main/java/org/freecode/irc/votebot/PollExpiryAnnouncer.java
+++ b/src/main/java/org/freecode/irc/votebot/PollExpiryAnnouncer.java
@@ -1,7... | true | true | public void run() {
long ttl = expiry - System.currentTimeMillis();
if ((hasAnnounced & 1) == 0 && ttl <= 2 * 300000 && ttl >= 0) {
hasAnnounced |= 1;
fvb.sendMsg(String.format("Poll #%d has less than 10 minutes remaining!", id));
} else if ((hasAnnounced & 3) == 0 &&... | public void run() {
long ttl = expiry - System.currentTimeMillis();
if ((hasAnnounced & 1) == 0 && ttl <= 2 * 300000 && ttl >= 0) {
hasAnnounced |= 1;
fvb.sendMsg(String.format("Poll #%d has less than 10 minutes remaining!", id));
} else if ((hasAnnounced & 3) == 0 &&... |
diff --git a/hale/eu.esdihumboldt.hale/src/eu/esdihumboldt/hale/models/project/ProjectParser.java b/hale/eu.esdihumboldt.hale/src/eu/esdihumboldt/hale/models/project/ProjectParser.java
index 567bc08c3..58f3a412a 100644
--- a/hale/eu.esdihumboldt.hale/src/eu/esdihumboldt/hale/models/project/ProjectParser.java
+++ b/hale... | true | true | private static void load(HaleProject project, final IProgressMonitor monitor) {
// get service references as required.
ProjectService projectService =
(ProjectService) PlatformUI.getWorkbench().getService(
ProjectService.class);
InstanceService instanceService =
(InstanceService) PlatformUI.getWo... | private static void load(HaleProject project, final IProgressMonitor monitor) {
// get service references as required.
ProjectService projectService =
(ProjectService) PlatformUI.getWorkbench().getService(
ProjectService.class);
InstanceService instanceService =
(InstanceService) PlatformUI.getWo... |
diff --git a/VAGGS/src/com/vaggs/Servlets/TowerServ.java b/VAGGS/src/com/vaggs/Servlets/TowerServ.java
index d222283..33ed0de 100644
--- a/VAGGS/src/com/vaggs/Servlets/TowerServ.java
+++ b/VAGGS/src/com/vaggs/Servlets/TowerServ.java
@@ -1,38 +1,40 @@
package com.vaggs.Servlets;
import static com.vaggs.Utils.OfyServ... | false | true | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
//for debugging purposes, logout via /tower?logout
if(req.getParameter("logout") != null) {
... | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
//for debugging purposes, logout via /tower?logout
if(req.getParameter("logout") != null) {
... |
diff --git a/src/java/fedora/server/storage/types/DatastreamReferencedContent.java b/src/java/fedora/server/storage/types/DatastreamReferencedContent.java
index e01b30c0f..32de82f3b 100755
--- a/src/java/fedora/server/storage/types/DatastreamReferencedContent.java
+++ b/src/java/fedora/server/storage/types/DatastreamRe... | true | true | public InputStream getContentStream()
throws StreamIOException {
HttpInputStream contentStream = null;
try {
contentStream = s_http.get(DSLocation, true, null, null);
DSSize = new Long(contentStream.getResponseHeaderValue("content-length","0")).longValue();
... | public InputStream getContentStream()
throws StreamIOException {
HttpInputStream contentStream = null;
try {
contentStream = s_http.get(DSLocation, true);
DSSize = new Long(contentStream.getResponseHeaderValue("content-length","0")).longValue();
} catch (Thr... |
diff --git a/src/main/java/org/apache/hive/ptest/conf/Configuration.java b/src/main/java/org/apache/hive/ptest/conf/Configuration.java
index 67e4ede..ae10765 100644
--- a/src/main/java/org/apache/hive/ptest/conf/Configuration.java
+++ b/src/main/java/org/apache/hive/ptest/conf/Configuration.java
@@ -1,154 +1,155 @@
/*... | true | true | public Configuration(Context context) {
this.context = context;
hosts = Sets.newHashSet();
for(String alias : Splitter.on(" ").omitEmptyStrings().split(context.getString("hosts", ""))) {
Context hostContext = new Context(context.getSubProperties(
Joiner.on(".").join("host", alias, "")));
... | public Configuration(Context context) {
this.context = context;
hosts = Sets.newHashSet();
for(String alias : Splitter.on(" ").omitEmptyStrings().split(context.getString("hosts", ""))) {
Context hostContext = new Context(context.getSubProperties(
Joiner.on(".").join("host", alias, "")));
... |
diff --git a/To_DoList/src/csci422/CandN/to_dolist/OnBootReceiver.java b/To_DoList/src/csci422/CandN/to_dolist/OnBootReceiver.java
index 9920d7d..34932e3 100644
--- a/To_DoList/src/csci422/CandN/to_dolist/OnBootReceiver.java
+++ b/To_DoList/src/csci422/CandN/to_dolist/OnBootReceiver.java
@@ -1,168 +1,169 @@
/*
* Chr... | true | true | public static void setAlarm(Context ctxt, ToDoHelper h, Cursor c)
{
nowDate = Calendar.getInstance();
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
AlarmManager mgr = (AlarmManager)ctxt.getSystemService(Context.ALARM_SERVICE);
if(!h.getDate(c).isEmpty())
{
String words[] = h... | public static void setAlarm(Context ctxt, ToDoHelper h, Cursor c)
{
nowDate = Calendar.getInstance();
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
AlarmManager mgr = (AlarmManager)ctxt.getSystemService(Context.ALARM_SERVICE);
if(!h.getDate(c).isEmpty())
{
String words[] = h... |
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java
index 85b69f10..ee1623be 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/... | true | true | public void setGroup(Group group) {
if (!this.getDataSource().groupExists(group.getName())) {
getDataSource().addGroup(group);
}
group = getDataSource().getGroup(group.getName());
// Do we notify of the group change?
String defaultGroupName = getDataSource().getDe... | public void setGroup(Group group) {
if (!this.getDataSource().groupExists(group.getName())) {
getDataSource().addGroup(group);
}
group = getDataSource().getGroup(group.getName());
// Do we notify of the group change?
String defaultGroupName = getDataSource().getDe... |
diff --git a/org.eclipse.virgo.ide.runtime.ui/src/org/eclipse/virgo/ide/runtime/internal/ui/projects/ProjectFileReference.java b/org.eclipse.virgo.ide.runtime.ui/src/org/eclipse/virgo/ide/runtime/internal/ui/projects/ProjectFileReference.java
index d087e0f..5cb5760 100644
--- a/org.eclipse.virgo.ide.runtime.ui/src/org/... | true | true | public ProjectFileReference(ProjectFileContainer container, ILocalArtefact artefact) {
super();
this.container = container;
this.library = artefact;
runtimeFile = artefact.getFile();
String artefactRelative = runtimeFile.getAbsolutePath().replaceAll(
((LocalArtefactSet) artefact.getSet()).getFile().getA... | public ProjectFileReference(ProjectFileContainer container, ILocalArtefact artefact) {
super();
this.container = container;
this.library = artefact;
runtimeFile = artefact.getFile();
String artefactRelative = runtimeFile.getAbsolutePath().replace(
((LocalArtefactSet) artefact.getSet()).getFile().getAbso... |
diff --git a/src/main/java/org/cloudbees/literate/jenkins/promotions/setup/RestoreArchivedFiles.java b/src/main/java/org/cloudbees/literate/jenkins/promotions/setup/RestoreArchivedFiles.java
index a60d133..ed9a12e 100644
--- a/src/main/java/org/cloudbees/literate/jenkins/promotions/setup/RestoreArchivedFiles.java
+++ b... | true | true | public boolean setup(PromotionBuild promotionBuild, BuildListener listener) throws InterruptedException {
FilePath ws = promotionBuild.getWorkspace();
if (ws == null) { // #3330: slave down?
listener.fatalError(Messages.RestoreArchivedFiles_workspaceMissing());
return false;
... | public boolean setup(PromotionBuild promotionBuild, BuildListener listener) throws InterruptedException {
FilePath ws = promotionBuild.getWorkspace();
if (ws == null) { // #3330: slave down?
listener.fatalError(Messages.RestoreArchivedFiles_workspaceMissing());
return false;
... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/GadgetRenderer.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/GadgetRenderer.java
index d5eb988ac..968f428a7 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/GadgetRenderer.java
+++ b/java/gadgets/src/main/... | true | true | private void outputHtmlGadget(Gadget gadget, View view)
throws IOException, GadgetException {
response.setContentType("text/html; charset=UTF-8");
StringBuilder markup = new StringBuilder();
if (!view.getQuirks()) {
markup.append(STRICT_MODE_DOCTYPE);
}
// TODO: Substitute gadgets.sk... | private void outputHtmlGadget(Gadget gadget, View view)
throws IOException, GadgetException {
response.setContentType("text/html; charset=UTF-8");
StringBuilder markup = new StringBuilder();
if (!view.getQuirks()) {
markup.append(STRICT_MODE_DOCTYPE);
}
// TODO: Substitute gadgets.sk... |
diff --git a/org.iucn.sis.client/src/org/iucn/sis/client/tabs/WorkingSetPage.java b/org.iucn.sis.client/src/org/iucn/sis/client/tabs/WorkingSetPage.java
index fd2a0cd1..3a2b4b47 100644
--- a/org.iucn.sis.client/src/org/iucn/sis/client/tabs/WorkingSetPage.java
+++ b/org.iucn.sis.client/src/org/iucn/sis/client/tabs/Worki... | true | true | protected void drawOptions(DrawsLazily.DoneDrawingCallback callback) {
//final WorkingSet item = WorkingSetCache.impl.getWorkingSet(getSelectedItem());
if (optionsContainer.getItemCount() == 0) {
final TableLayout layout = new TableLayout(1);
layout.setCellHorizontalAlign(HorizontalAlignment.CENTER);
l... | protected void drawOptions(DrawsLazily.DoneDrawingCallback callback) {
//final WorkingSet item = WorkingSetCache.impl.getWorkingSet(getSelectedItem());
if (optionsContainer.getItemCount() == 0) {
final TableLayout layout = new TableLayout(1);
layout.setCellHorizontalAlign(HorizontalAlignment.CENTER);
l... |
diff --git a/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java b/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java
index 9dff938..c1482a6 100644
--- a/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java
+++ b... | true | true | public List<Object> bulkDocs(String database, List<Map<String, Object>> docs) throws UnavailableException {
// check to see if too many requests are already active
if(activeBulkDocsRequests.count() + activeRevsDiffRequests.count() >= maxConcurrentRequests) {
totalTooManyConcurrentRequest... | public List<Object> bulkDocs(String database, List<Map<String, Object>> docs) throws UnavailableException {
// check to see if too many requests are already active
if(activeBulkDocsRequests.count() + activeRevsDiffRequests.count() >= maxConcurrentRequests) {
totalTooManyConcurrentRequest... |
diff --git a/RequirementManager/src/edu/wpi/cs/wpisuitetng/modules/requirementmanager/models/Requirement.java b/RequirementManager/src/edu/wpi/cs/wpisuitetng/modules/requirementmanager/models/Requirement.java
index 7e1d74b6..3d3e807d 100644
--- a/RequirementManager/src/edu/wpi/cs/wpisuitetng/modules/requirementmanager/... | true | true | public void setIteration(String newIterationName, boolean created) {
if(newIterationName.trim().length() == 0) newIterationName = "Backlog";
String curIter = this.iteration;
Iteration oldIteration = IterationModel.getInstance().getIteration(curIter);
Iteration newIteration = IterationModel.getInstance().getIt... | public void setIteration(String newIterationName, boolean created) {
if(newIterationName.trim().length() == 0) newIterationName = "Backlog";
String curIter = this.iteration;
Iteration oldIteration = IterationModel.getInstance().getIteration(curIter);
Iteration newIteration = IterationModel.getInstance().getIt... |
diff --git a/illacommon/src/illarion/common/data/SkillLoader.java b/illacommon/src/illarion/common/data/SkillLoader.java
index 9932872f..433283f6 100644
--- a/illacommon/src/illarion/common/data/SkillLoader.java
+++ b/illacommon/src/illarion/common/data/SkillLoader.java
@@ -1,133 +1,131 @@
/*
* This file is part of ... | false | true | static void load() {
synchronized (SkillLoader.class) {
if (loadingStarted) {
return;
}
loadingStarted = true;
}
final InputStream skillXmlStream = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("skills... | static synchronized void load() {
if (loadingStarted) {
return;
}
loadingStarted = true;
final InputStream skillXmlStream = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("skills.xml");
if (skillXmlStream == null) {
... |
diff --git a/src/org/apache/xalan/templates/FuncDocument.java b/src/org/apache/xalan/templates/FuncDocument.java
index 2e54c341..ab970651 100644
--- a/src/org/apache/xalan/templates/FuncDocument.java
+++ b/src/org/apache/xalan/templates/FuncDocument.java
@@ -1,453 +1,453 @@
/*
* The Apache Software License, Version ... | true | true | Node getDoc(XPathContext xctxt, Node context, String uri, String base)
throws javax.xml.transform.TransformerException
{
// System.out.println("base: "+base+", uri: "+uri);
SourceTreeManager treeMgr = xctxt.getSourceTreeManager();
Node newDoc;
try
{
Source source = treeMgr.... | Node getDoc(XPathContext xctxt, Node context, String uri, String base)
throws javax.xml.transform.TransformerException
{
// System.out.println("base: "+base+", uri: "+uri);
SourceTreeManager treeMgr = xctxt.getSourceTreeManager();
Node newDoc;
try
{
Source source = treeMgr.... |
diff --git a/app/controllers/Authentication.java b/app/controllers/Authentication.java
index aa1ca00..0ee78c1 100644
--- a/app/controllers/Authentication.java
+++ b/app/controllers/Authentication.java
@@ -1,47 +1,48 @@
package controllers;
import play.data.validation.Required;
import play.libs.OpenID;
import play... | true | true | public static void authenticate(String user) {
if(OpenID.isAuthenticationResponse()) {
UserInfo verifiedUser = OpenID.getVerifiedID();
if(verifiedUser == null) {
flash.error("Oops. Authentication has failed");
login();
}
session.put("user", verifiedUser.... | public static void authenticate(String user) {
if(OpenID.isAuthenticationResponse()) {
UserInfo verifiedUser = OpenID.getVerifiedID();
if(verifiedUser == null) {
flash.error("Oops. Authentication has failed");
login();
}
//FIX ME: Add a if-condition, whi... |
diff --git a/src/com/vloxlands/util/MediaAssistant.java b/src/com/vloxlands/util/MediaAssistant.java
index 2110300..e30921a 100644
--- a/src/com/vloxlands/util/MediaAssistant.java
+++ b/src/com/vloxlands/util/MediaAssistant.java
@@ -1,22 +1,23 @@
package com.vloxlands.util;
import java.io.File;
import com.vloxla... | true | true | public static boolean needMediaUpdate(String folder)
{
try
{
boolean need = !Assistant.getFolderChecksum(new File(CFG.DIR, folder)).equals(CFG.class.getField(folder.toUpperCase() + "_CS").get(null));
return need;
}
catch (Exception e)
{
e.printStackTrace();
return true;
}
}
| public static boolean needMediaUpdate(String folder)
{
try
{
new File(CFG.DIR, folder).mkdirs();
boolean need = !Assistant.getFolderChecksum(new File(CFG.DIR, folder)).equals(CFG.class.getField(folder.toUpperCase() + "_CS").get(null));
return need;
}
catch (Exception e)
{
e.printStackTrace();
... |
diff --git a/src/java/main/esg/node/components/monitoring/MonitorDAO.java b/src/java/main/esg/node/components/monitoring/MonitorDAO.java
index 9c99152..f9b2bdd 100644
--- a/src/java/main/esg/node/components/monitoring/MonitorDAO.java
+++ b/src/java/main/esg/node/components/monitoring/MonitorDAO.java
@@ -1,457 +1,458 @@... | true | true | private void setDiskInfo(MonitorInfo info) {
if(info.diskInfo == null) {
info.diskInfo = new HashMap<String,Map<String,String>>();
}
info.diskInfo.clear();
if(disk_info_byte_buffer == null) {
log.warn("Disk Info Byte Buffer is : ["+disk_info_byte_buffer+"] cannot provide disk information!");
... | private void setDiskInfo(MonitorInfo info) {
if(info.diskInfo == null) {
info.diskInfo = new HashMap<String,Map<String,String>>();
}
info.diskInfo.clear();
if(disk_info_byte_buffer == null) {
log.warn("Disk Info Byte Buffer is : ["+disk_info_byte_buffer+"] cannot provide disk information!");
... |
diff --git a/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java b/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java
index 54491f305..b95cb53e2 100644
--- a/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java
@@ -1,420 +1,419 @@... | true | true | protected void insert(Widget widget, Direction direction, double size,
Widget before) {
assertIsChild(before);
// Validation.
if (before == null) {
assert center == null : "No widget may be added after the CENTER widget";
} else {
assert direction != Direction.CENTER : "A CENTER wid... | protected void insert(Widget widget, Direction direction, double size,
Widget before) {
assertIsChild(before);
// Validation.
if (before == null) {
assert center == null : "No widget may be added after the CENTER widget";
} else {
assert direction != Direction.CENTER : "A CENTER wid... |
diff --git a/x10.compiler/src/x10/ast/X10MethodDecl_c.java b/x10.compiler/src/x10/ast/X10MethodDecl_c.java
index d5d976b20..4d58a6b0e 100644
--- a/x10.compiler/src/x10/ast/X10MethodDecl_c.java
+++ b/x10.compiler/src/x10/ast/X10MethodDecl_c.java
@@ -1,1225 +1,1225 @@
/*
* This file is part of the X10 project (http:/... | false | true | public Node typeCheckOverride(Node parent, ContextVisitor tc) {
X10MethodDecl nn = this;
X10MethodDecl old = nn;
TypeSystem xts = (TypeSystem) tc.typeSystem();
// Step 0. Process annotations.
TypeChecker childtc = (TypeChecker) tc.enter(parent, nn);
nn = (X10MethodDecl) X10Del_c.visitA... | public Node typeCheckOverride(Node parent, ContextVisitor tc) {
X10MethodDecl nn = this;
X10MethodDecl old = nn;
TypeSystem xts = (TypeSystem) tc.typeSystem();
// Step 0. Process annotations.
TypeChecker childtc = (TypeChecker) tc.enter(parent, nn);
nn = (X10MethodDecl) X10Del_c.visitA... |
diff --git a/common/plugins/eu.esdihumboldt.hale.common.align/src/eu/esdihumboldt/hale/common/align/io/impl/DefaultAlignmentWriter.java b/common/plugins/eu.esdihumboldt.hale.common.align/src/eu/esdihumboldt/hale/common/align/io/impl/DefaultAlignmentWriter.java
index 7beaa9a5f..f399ca5e2 100644
--- a/common/plugins/eu.e... | true | true | protected IOReport execute(ProgressIndicator progress, IOReporter reporter)
throws IOProviderConfigurationException, IOException {
progress.begin("Load HALE alignment", ProgressIndicator.UNKNOWN);
OutputStream out = getTarget().getOutput();
try {
DefaultAlignmentIO.save(getAlignment(), out);
} catch (Ex... | protected IOReport execute(ProgressIndicator progress, IOReporter reporter)
throws IOProviderConfigurationException, IOException {
progress.begin("Save HALE alignment", ProgressIndicator.UNKNOWN);
OutputStream out = getTarget().getOutput();
try {
DefaultAlignmentIO.save(getAlignment(), out);
} catch (Ex... |
diff --git a/sos/sos-platform/src/main/java/sorcer/jini/lookup/ProviderID.java b/sos/sos-platform/src/main/java/sorcer/jini/lookup/ProviderID.java
index 5f3c8695..87766912 100644
--- a/sos/sos-platform/src/main/java/sorcer/jini/lookup/ProviderID.java
+++ b/sos/sos-platform/src/main/java/sorcer/jini/lookup/ProviderID.ja... | true | true | public int compareTo(Object arg) {
if (arg instanceof ProviderID) {
long l1 = serviceID.getMostSignificantBits();
long l2 = ((ServiceID) arg).getMostSignificantBits();
if ((l1 - l2) == 0) {
return 0;
} else if ((l1 - l2) > 0) {
return 1;
} else {
return -1;
}
}
throw new RuntimeExce... | public int compareTo(Object arg) {
if (arg instanceof ProviderID) {
long l1 = serviceID.getMostSignificantBits();
long l2 = ((ProviderID) arg).serviceID.getMostSignificantBits();
if ((l1 - l2) == 0) {
return 0;
} else if ((l1 - l2) > 0) {
return 1;
} else {
return -1;
}
}
throw new ... |
diff --git a/BoggleClient.java b/BoggleClient.java
index fe38bc9..58e1ce6 100644
--- a/BoggleClient.java
+++ b/BoggleClient.java
@@ -1,87 +1,87 @@
import java.io.*;
import java.net.*;
import java.util.Scanner;
public class BoggleClient {
static int SIDE_LENGTH;
static Scanner in = new Scanner(System.in);
st... | false | true | public static void main(String[] args) throws IOException {
String path = "words.txt";
SIDE_LENGTH = 4;
System.out.println("Started client.");
// make a board so we can get its dictionaries
Dictionary dict = new Dictionary();
dict.buildDictionary(path);
// make a BogglePopulation
... | public static void main(String[] args) throws IOException {
String path = "words.txt";
SIDE_LENGTH = 4;
System.out.println("Started client.");
// make a board so we can get its dictionaries
Dictionary dict = new Dictionary();
dict.buildDictionary(path);
// make a BogglePopulation
... |
diff --git a/mmtk/java/src/org/j3/mmtk/BuildTimeConfig.java b/mmtk/java/src/org/j3/mmtk/BuildTimeConfig.java
index 8dc8f822..9f90b8ea 100644
--- a/mmtk/java/src/org/j3/mmtk/BuildTimeConfig.java
+++ b/mmtk/java/src/org/j3/mmtk/BuildTimeConfig.java
@@ -1,127 +1,127 @@
//===---------------------- BuildTimeConfig.java ---... | false | true | private Properties getProperties(String property_file_property, String default_property_file) {
Properties props = new Properties();
String propFileName;
if (default_property_file == null) {
propFileName = System.getProperty(property_file_property);
if (propFileName == null) {
System.e... | private Properties getProperties(String property_file_property, String default_property_file) {
Properties props = new Properties();
String propFileName;
if (default_property_file == null) {
propFileName = System.getProperty(property_file_property);
if (propFileName == null) {
//System... |
diff --git a/src/com/orangeleap/tangerine/web/customization/tag/fields/SectionFieldTag.java b/src/com/orangeleap/tangerine/web/customization/tag/fields/SectionFieldTag.java
index 4807d535..f2a82c3d 100644
--- a/src/com/orangeleap/tangerine/web/customization/tag/fields/SectionFieldTag.java
+++ b/src/com/orangeleap/tange... | false | true | protected void writeSections(List<SectionDefinition> sectionDefinitions) throws Exception {
if (sectionDefinitions != null) {
int oneColumnCount = 0;
for (int x = 0; x < sectionDefinitions.size(); x++) {
SectionDefinition sectionDef = sectionDefinitions.get(x);
List<SectionField> sectionFields = page... | protected void writeSections(List<SectionDefinition> sectionDefinitions) throws Exception {
if (sectionDefinitions != null) {
int oneColumnCount = 0;
for (int x = 0; x < sectionDefinitions.size(); x++) {
SectionDefinition sectionDef = sectionDefinitions.get(x);
List<SectionField> sectionFields = page... |
diff --git a/src/services/BuffService.java b/src/services/BuffService.java
index 158429c3..57bd4bd9 100644
--- a/src/services/BuffService.java
+++ b/src/services/BuffService.java
@@ -1,314 +1,313 @@
/*******************************************************************************
* Copyright (c) 2013 <Project SWG>
... | true | true | public Buff doAddBuff(final CreatureObject target, String buffName, final CreatureObject buffer) {
if (target.getPosition().getDistance(buffer.getPosition()) > 20) {
return null;
}
if (target != buffer && !core.simulationService.checkLineOfSight(buffer, target)) {
return null;
}
final Buff buf... | public Buff doAddBuff(final CreatureObject target, String buffName, final CreatureObject buffer) {
if (target.getPosition().getDistance(buffer.getPosition()) > 20) {
return null;
}
if (target != buffer && !core.simulationService.checkLineOfSight(buffer, target)) {
return null;
}
final Buff buf... |
diff --git a/uk.ac.gda.epics/src/gda/device/continuouscontroller/EpicsTrajectoryMoveControllerAdapter.java b/uk.ac.gda.epics/src/gda/device/continuouscontroller/EpicsTrajectoryMoveControllerAdapter.java
index a850facf..b33ee1ff 100644
--- a/uk.ac.gda.epics/src/gda/device/continuouscontroller/EpicsTrajectoryMoveControll... | true | true | public void prepareForMove() throws DeviceException, InterruptedException {
// note: these methods all work with no points (they clear in this case)
pushNumberOfElementsAndPulses();
pushPathsFromPoints();
controller.setTrajectoryTime(getTotalTime());
List<Integer> motorsToMove = pushEnableAxisSetting... | public void prepareForMove() throws DeviceException, InterruptedException {
// note: these methods all work with no points (they clear in this case)
pushNumberOfElementsAndPulses();
pushPathsFromPoints();
controller.setTrajectoryTime(getTotalTime());
List<Integer> motorsToMove = pushEnableAxisSetting... |
diff --git a/src/views/ResultatenScherm.java b/src/views/ResultatenScherm.java
index a4e4424..713346c 100644
--- a/src/views/ResultatenScherm.java
+++ b/src/views/ResultatenScherm.java
@@ -1,159 +1,159 @@
package views;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.GroupLayout;
import... | true | true | public ResultatenScherm(final MainWindow mainWindow) {
txtAthene = new JTextField();
txtAthene.setEditable(false);
txtAthene.setText("Athene");
txtAthene.setColumns(10);
txtAthene_1 = new JTextField();
txtAthene_1.setEditable(false);
txtAthene_1.setText("Athene");
txtAthene_1.setColumns(10);
... | public ResultatenScherm(final MainWindow mainWindow) {
txtAthene = new JTextField();
txtAthene.setEditable(false);
txtAthene.setText("Athene");
txtAthene.setColumns(10);
txtAthene_1 = new JTextField();
txtAthene_1.setEditable(false);
txtAthene_1.setText("Athene");
txtAthene_1.setColumns(10);
... |
diff --git a/src/com/android/mms/transaction/RetryScheduler.java b/src/com/android/mms/transaction/RetryScheduler.java
index 2929978..76b4be2 100644
--- a/src/com/android/mms/transaction/RetryScheduler.java
+++ b/src/com/android/mms/transaction/RetryScheduler.java
@@ -1,324 +1,325 @@
/*
* Copyright (C) 2008 Esmertec... | true | true | private void scheduleRetry(Uri uri) {
long msgId = ContentUris.parseId(uri);
Uri.Builder uriBuilder = PendingMessages.CONTENT_URI.buildUpon();
uriBuilder.appendQueryParameter("protocol", "mms");
uriBuilder.appendQueryParameter("message", String.valueOf(msgId));
Cursor curso... | private void scheduleRetry(Uri uri) {
long msgId = ContentUris.parseId(uri);
Uri.Builder uriBuilder = PendingMessages.CONTENT_URI.buildUpon();
uriBuilder.appendQueryParameter("protocol", "mms");
uriBuilder.appendQueryParameter("message", String.valueOf(msgId));
Cursor curso... |
diff --git a/newsplus/extensions/NewsblurExtension/src/com/asafge/newsblurplus/SubsStruct.java b/newsplus/extensions/NewsblurExtension/src/com/asafge/newsblurplus/SubsStruct.java
index 70fd859..9f14a24 100644
--- a/newsplus/extensions/NewsblurExtension/src/com/asafge/newsblurplus/SubsStruct.java
+++ b/newsplus/extensio... | true | true | private boolean getFoldersAndFeeds() throws ReaderException {
try {
if (_lastSync != null) {
Calendar tmp = Calendar.getInstance();
tmp.setTimeInMillis(_lastSync.getTimeInMillis());
tmp.add(Calendar.SECOND, 10);
if (tmp.after(Calendar.getInstance()))
return true;
}
APICall ac = new APIC... | private boolean getFoldersAndFeeds() throws ReaderException {
try {
if (_lastSync != null) {
Calendar tmp = Calendar.getInstance();
tmp.setTimeInMillis(_lastSync.getTimeInMillis());
tmp.add(Calendar.SECOND, 10);
if (tmp.after(Calendar.getInstance()))
return true;
}
APICall ac = new APIC... |
diff --git a/src/main/java/net/md_5/specialsource/JarMapping.java b/src/main/java/net/md_5/specialsource/JarMapping.java
index fd25ed4..8f6f1bd 100644
--- a/src/main/java/net/md_5/specialsource/JarMapping.java
+++ b/src/main/java/net/md_5/specialsource/JarMapping.java
@@ -1,419 +1,419 @@
/**
* Copyright (c) 2012-201... | true | true | private void parseSrgLine(String line, JarMappingLoadTransformer inputTransformer, JarMappingLoadTransformer outputTransformer, boolean reverse) throws IOException {
String[] tokens = line.split(" ");
String kind = tokens[0];
if (kind.equals("CL:")) {
String oldClassName = input... | private void parseSrgLine(String line, JarMappingLoadTransformer inputTransformer, JarMappingLoadTransformer outputTransformer, boolean reverse) throws IOException {
String[] tokens = line.split(" ");
String kind = tokens[0];
if (kind.equals("CL:")) {
String oldClassName = input... |
diff --git a/src/main/java/com/vance/quest2012/WebRetriever.java b/src/main/java/com/vance/quest2012/WebRetriever.java
index b5ad3ef..8e75b0c 100644
--- a/src/main/java/com/vance/quest2012/WebRetriever.java
+++ b/src/main/java/com/vance/quest2012/WebRetriever.java
@@ -1,30 +1,31 @@
package com.vance.quest2012;
/**
... | true | true | public WebRetriever(String target) {
this.target = target;
String[] components = target.split(":", 2);
protocol = components[0];
}
| public WebRetriever(String target) {
this.target = target;
String[] components = target.split(":", 2);
protocol = components[0];
host = components[1];
}
|
diff --git a/src/entities/Wall.java b/src/entities/Wall.java
index fed49aa..5eea2f4 100644
--- a/src/entities/Wall.java
+++ b/src/entities/Wall.java
@@ -1,21 +1,21 @@
package entities;
import game.Game;
import graphics.Sprite;
import java.awt.Color;
import java.awt.Graphics;
public class Wall extends Entity... | true | true | public Wall(int x, int y) {
super(x, y);
this.images = Sprite.load("brick_solid_small.png", 100, 100);
}
| public Wall(int x, int y) {
super(x, y);
this.images = Sprite.load("wall.png", 100, 100);
}
|
diff --git a/src/de/fuberlin/wiwiss/ng4j/swp/impl/SWPWarrantImpl.java b/src/de/fuberlin/wiwiss/ng4j/swp/impl/SWPWarrantImpl.java
index 79ea201..89485c2 100644
--- a/src/de/fuberlin/wiwiss/ng4j/swp/impl/SWPWarrantImpl.java
+++ b/src/de/fuberlin/wiwiss/ng4j/swp/impl/SWPWarrantImpl.java
@@ -1,219 +1,219 @@
package de.fub... | false | true | public SWPAuthority getAuthority() throws SWPCertificateException
{
SWPAuthority authority = new SWPAuthorityImpl();
String query = "SELECT * WHERE (<"+warrant.getGraphName().getURI()+"> swp:authority ?authority) (?authority swpX509Certificate ?certificate) USING swp FOR <http://www.w3.org/2004/03/trix/swp-2/>";... | public SWPAuthority getAuthority() throws SWPCertificateException
{
SWPAuthority authority = new SWPAuthorityImpl();
String query = "SELECT * WHERE <"+warrant.getGraphName().getURI()+"> (<"+warrant.getGraphName().getURI()+"> swp:authority ?authority . ?authority swp:X509Certificate ?certificate) USING swp FOR <h... |
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/widgets/WidgetSummary.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/widgets/WidgetSummary.java
index 713fa6fa..0362b65e 100644
--- a/BetterBatteryStats/src/com/asksven/betterbatterystats/widgets/WidgetSummary.java
+++ b/BetterBatteryStats... | false | true | public Bitmap getBitmap(Context ctx)
{
this.initPaints(ctx);
Bitmap bitmap = Bitmap.createBitmap(m_bitmapSizePx, m_bitmapSizePx, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
//////
float centerX, centerY, radius;
centerX = m_bitmapSizePx / 2;
centerY = m_... | public Bitmap getBitmap(Context ctx)
{
this.initPaints(ctx);
Bitmap bitmap = Bitmap.createBitmap(m_bitmapSizePx, m_bitmapSizePx, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
//////
float centerX, centerY, radius;
centerX = m_bitmapSizePx / 2;
centerY = m_... |
diff --git a/Slick/src/org/newdawn/slick/tests/InputTest.java b/Slick/src/org/newdawn/slick/tests/InputTest.java
index 18c2362..aa6b928 100644
--- a/Slick/src/org/newdawn/slick/tests/InputTest.java
+++ b/Slick/src/org/newdawn/slick/tests/InputTest.java
@@ -1,216 +1,217 @@
package org.newdawn.slick.tests;
import ja... | true | true | public void render(GameContainer container, Graphics g) {
g.setColor(Color.white);
g.drawString(message, 10, 50);
g.drawString("Use the primary gamepad to control the blob, and hit a gamepad button to change the color", 10, 90);
for (int i=0;i<lines.size();i++) {
Line line = (Line) lines.get(i);
line.dr... | public void render(GameContainer container, Graphics g) {
g.setColor(Color.white);
g.drawString(message, 10, 50);
g.drawString(""+container.getInput().getMouseY(), 10, 400);
g.drawString("Use the primary gamepad to control the blob, and hit a gamepad button to change the color", 10, 90);
for (int i=0;i<line... |
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java
index 1670b474d..b019db90b 100644
--- a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java
+++ b/src/main/java/com/f... | true | true | protected void addBeanProps(DeserializationContext ctxt,
BeanDescription beanDesc, BeanDeserializerBuilder builder)
throws JsonMappingException
{
final SettableBeanProperty[] creatorProps =
builder.getValueInstantiator().getFromObjectArguments(ctxt.getConfig());
... | protected void addBeanProps(DeserializationContext ctxt,
BeanDescription beanDesc, BeanDeserializerBuilder builder)
throws JsonMappingException
{
final SettableBeanProperty[] creatorProps =
builder.getValueInstantiator().getFromObjectArguments(ctxt.getConfig());
... |
diff --git a/src/main/java/net/praqma/hudson/scm/PucmScm.java b/src/main/java/net/praqma/hudson/scm/PucmScm.java
index 88bb52c..300458b 100644
--- a/src/main/java/net/praqma/hudson/scm/PucmScm.java
+++ b/src/main/java/net/praqma/hudson/scm/PucmScm.java
@@ -1,715 +1,709 @@
package net.praqma.hudson.scm;
import hudso... | false | true | public boolean checkout( AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile ) throws IOException, InterruptedException
{
logger.trace_function();
logger.debug( "PucmSCM checkout" );
boolean result = true;
// consoleOutput Printstream is from Hudson, so it... | public boolean checkout( AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile ) throws IOException, InterruptedException
{
logger.trace_function();
logger.debug( "PucmSCM checkout" );
boolean result = true;
// consoleOutput Printstream is from Hudson, so it... |
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/coordination/CoordinatorCEPMultiplexer.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/coordination/CoordinatorCEPMultiplexer.java
index 20169039..1dc4a3f1 100644
--- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierar... | true | true | public CoordinatorCEPChannel addConnection(ICluster pTargetCluster, ICluster pSourceCluster)
{
HierarchyLevel tSourceClusterHierLvl = new HierarchyLevel(this, pSourceCluster.getHierarchyLevel().getValue() + 1);
HierarchyLevel tTargetClusterHierLvl = new HierarchyLevel(this, pTargetCluster.getHierarchyLevel().getV... | public CoordinatorCEPChannel addConnection(ICluster pTargetCluster, ICluster pSourceCluster)
{
HierarchyLevel tSourceClusterHierLvl = new HierarchyLevel(this, pSourceCluster.getHierarchyLevel().getValue() + 1);
HierarchyLevel tTargetClusterHierLvl = new HierarchyLevel(this, pTargetCluster.getHierarchyLevel().getV... |
diff --git a/application/src/main/java/org/richfaces/tests/metamer/bean/RichCalendarBean.java b/application/src/main/java/org/richfaces/tests/metamer/bean/RichCalendarBean.java
index 1af8d17f..525bc74b 100644
--- a/application/src/main/java/org/richfaces/tests/metamer/bean/RichCalendarBean.java
+++ b/application/src/ma... | false | true | public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
attributes = Attributes.getUIComponentAttributes(UICalendar.class, getClass(), false);
attributes.setAttribute("popup", true);
attributes.setAttribu... | public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
attributes = Attributes.getUIComponentAttributes(UICalendar.class, getClass(), false);
attributes.setAttribute("datePattern", "MMM d, yyyy HH:mm");
... |
diff --git a/Character_Equipment/src/net/sf/anathema/character/equipment/item/OverwriteItemsVetor.java b/Character_Equipment/src/net/sf/anathema/character/equipment/item/OverwriteItemsVetor.java
index b39b467df3..96051e5512 100644
--- a/Character_Equipment/src/net/sf/anathema/character/equipment/item/OverwriteItemsVeto... | true | true | public boolean vetos() {
String messageText = resources.getString("Equipment.Creation.Template.OverwriteMessage"); //$NON-NLS-1$
IMessage message = new Message(messageText, MessageType.WARNING);
MessageUserDialogConfiguration configuration = new MessageUserDialogConfiguration(
message,
new... | public boolean vetos() {
String messageText = resources.getString("Equipment.Creation.OverwriteMessage.Text"); //$NON-NLS-1$
IMessage message = new Message(messageText, MessageType.WARNING);
MessageUserDialogConfiguration configuration = new MessageUserDialogConfiguration(
message,
new Abs... |
diff --git a/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java b/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java
index c56ba9d70..cefeea5fc 100644
--- a/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java
+++ b/index/org/eclipse/c... | true | true | private void addMarkers(IFile tempFile, IFile originator, IProblem problem){
try {
//we only ever add index markers on the file, so DEPTH_ZERO is far enough
IMarker[] markers = tempFile.findMarkers(ICModelMarker.INDEXER_MARKER, true,IResource.DEPTH_ZERO);
boolean newProblem = true;
... | private void addMarkers(IFile tempFile, IFile originator, IProblem problem){
try {
//we only ever add index markers on the file, so DEPTH_ZERO is far enough
IMarker[] markers = tempFile.findMarkers(ICModelMarker.INDEXER_MARKER, true,IResource.DEPTH_ZERO);
boolean newProblem = true;
... |
diff --git a/sky/org.kevoree.library.sky.web/src/main/java/org/kevoree/sky/web/WebFrontend.java b/sky/org.kevoree.library.sky.web/src/main/java/org/kevoree/sky/web/WebFrontend.java
index 371cfb8..99aaee8 100644
--- a/sky/org.kevoree.library.sky.web/src/main/java/org/kevoree/sky/web/WebFrontend.java
+++ b/sky/org.kevore... | true | true | public void startServer() {
try {
mhandler = new ModelServiceSocketHandler(this.getModelService());
int port = Integer.parseInt(getDictionary().get("port").toString());
webServer = WebServers.createWebServer(port)
.add(new MetaDataHandler(this.getMode... | public void startServer() {
try {
mhandler = new ModelServiceSocketHandler(this.getModelService());
int port = Integer.parseInt(getDictionary().get("port").toString());
webServer = WebServers.createWebServer(port)
.add(new MetaDataHandler(this.getMode... |
diff --git a/src/com/RoboMobo/Player.java b/src/com/RoboMobo/Player.java
index a9e74dc..d271b38 100644
--- a/src/com/RoboMobo/Player.java
+++ b/src/com/RoboMobo/Player.java
@@ -1,38 +1,41 @@
package com.RoboMobo;
/**
* Created with IntelliJ IDEA.
* User: Nats
* Date: 31.07.13
* Time: 16:54
* To change thi... | true | true | public void changePos(int[] coord)
{
this.prevPosX = this.posX;
this.prevPosY = this.posY;
posX = coord[0];
posY = coord[1];
//Log.wtf("player","x: "+posX+", y: "+posY);
}
| public void changePos(int[] coord)
{
if ((posX != coord[0]) || (posY != coord[1]))
{
prevPosX = posX;
prevPosY = posY;
posX = coord[0];
posY = coord[1];
}
//Log.wtf("player","x: "+posX+", y: "+posY);
}
|
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java
index ccaed66c5..26ca28e72 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal... | false | true | public IStatus run(IProgressMonitor monitor) {
try {
monitor.beginTask("Processing", 20 + queries.size() * 20 + 40 + 10);
Set<ITask> allTasks;
if (!isFullSynchronization()) {
allTasks = new HashSet<ITask>();
for (RepositoryQuery query : queries) {
allTasks.addAll(query.getChildren());
}
... | public IStatus run(IProgressMonitor monitor) {
try {
monitor.beginTask("Processing", 20 + queries.size() * 20 + 40 + 10);
Set<ITask> allTasks;
if (!isFullSynchronization()) {
allTasks = new HashSet<ITask>();
for (RepositoryQuery query : queries) {
allTasks.addAll(query.getChildren());
}
... |
diff --git a/ant-td/src/com/ai/ant/WorldController.java b/ant-td/src/com/ai/ant/WorldController.java
index 2ccba82..a012cb9 100644
--- a/ant-td/src/com/ai/ant/WorldController.java
+++ b/ant-td/src/com/ai/ant/WorldController.java
@@ -1,199 +1,199 @@
package com.ai.ant;
import java.util.HashMap;
import java.util.Map... | true | true | public void processInput() {
//horizontal first
if(keys.get(Keys.LEFT)) {
character.setState(State.WALKING);
character.getVelocity().x = -Character.SPEED;
}
if(keys.get(Keys.RIGHT)) {
character.setState(State.WALKING);
character.getVelocity().x = Character.SPEED;
}
if ((keys.get(Keys.LEFT... | public void processInput() {
//horizontal first
if(keys.get(Keys.LEFT)) {
character.setState(State.WALKING);
character.getVelocity().x = -Character.SPEED;
}
if(keys.get(Keys.RIGHT)) {
character.setState(State.WALKING);
character.getVelocity().x = Character.SPEED;
}
if ((keys.get(Keys.LEFT... |
diff --git a/src/net/argius/stew/ui/window/Menu.java b/src/net/argius/stew/ui/window/Menu.java
index e97e3f6..acdaf7a 100644
--- a/src/net/argius/stew/ui/window/Menu.java
+++ b/src/net/argius/stew/ui/window/Menu.java
@@ -1,299 +1,300 @@
package net.argius.stew.ui.window;
import static net.argius.stew.ui.window.Menu... | true | true | Menu(final AnyActionListener anyActionListener) {
this.lockingTargets = new ArrayList<JMenuItem>();
this.unlockingTargets = new ArrayList<JMenuItem>();
this.itemToCompMap = new EnumMap<Item, JMenuItem>(Item.class);
Map<String, JMenuItem> itemMap = new HashMap<String, JMenuItem>();
... | Menu(final AnyActionListener anyActionListener) {
this.lockingTargets = new ArrayList<JMenuItem>();
this.unlockingTargets = new ArrayList<JMenuItem>();
this.itemToCompMap = new EnumMap<Item, JMenuItem>(Item.class);
Map<String, JMenuItem> itemMap = new HashMap<String, JMenuItem>();
... |
diff --git a/src/game/Ball.java b/src/game/Ball.java
index 1b29abc..870174a 100644
--- a/src/game/Ball.java
+++ b/src/game/Ball.java
@@ -1,140 +1,140 @@
package game;
import static org.lwjgl.opengl.GL11.glLoadIdentity;
import static org.lwjgl.opengl.GL11.glRotatef;
import static org.lwjgl.opengl.GL11.glTranslatef... | true | true | private void updateNormalBall(float delta, Paddle paddle) {
float newX = x + dx * delta / 300.0f;
float newY = y + dy * delta / 300.0f * speedFactor;
if (!hasBouncedInCurrentFrame) {
if (y - 0.5f * hitR <= paddle.getY() + paddle.getHeight()
&& y > paddle.getY() && x > paddle.getX()
&& x < paddle.ge... | private void updateNormalBall(float delta, Paddle paddle) {
float newX = x + dx * delta / 300.0f;
float newY = y + dy * delta / 300.0f * speedFactor;
if (!hasBouncedInCurrentFrame) {
if (y - 0.5f * hitR <= paddle.getY() + paddle.getHeight()
&& y > paddle.getY() && x > paddle.getX()
&& x < paddle.ge... |
diff --git a/cal10n-api/src/test/java/ch/qos/cal10n/util/AnnotationExtractorTest.java b/cal10n-api/src/test/java/ch/qos/cal10n/util/AnnotationExtractorTest.java
index c700d09..e942123 100644
--- a/cal10n-api/src/test/java/ch/qos/cal10n/util/AnnotationExtractorTest.java
+++ b/cal10n-api/src/test/java/ch/qos/cal10n/util/... | true | true | public void resourcceBundleName() {
String result = AnnotationExtractor.getBaseName(Fruit.class);
assertEquals("fruits", result);
}
| public void resourceBundleName() {
String result = AnnotationExtractor.getBaseName(Fruit.class);
assertEquals("fruits", result);
}
|
diff --git a/tika/src/main/java/org/gagravarr/tika/VorbisParser.java b/tika/src/main/java/org/gagravarr/tika/VorbisParser.java
index 2f41159..77e3dd7 100644
--- a/tika/src/main/java/org/gagravarr/tika/VorbisParser.java
+++ b/tika/src/main/java/org/gagravarr/tika/VorbisParser.java
@@ -1,144 +1,144 @@
/*
* Licensed un... | true | true | protected static void extractComments(Metadata metadata, XHTMLContentHandler xhtml,
VorbisComments comments) throws TikaException, SAXException {
// Get the specific know comments
metadata.set(TikaCoreProperties.TITLE, comments.getTitle());
metadata.set(TikaCoreProperties.AUTHOR, comments.... | protected static void extractComments(Metadata metadata, XHTMLContentHandler xhtml,
VorbisComments comments) throws TikaException, SAXException {
// Get the specific know comments
metadata.set(TikaCoreProperties.TITLE, comments.getTitle());
metadata.set(TikaCoreProperties.CREATOR, comments... |
diff --git a/src/main/java/net/sf/katta/master/Master.java b/src/main/java/net/sf/katta/master/Master.java
index b3a10fa..d63836c 100644
--- a/src/main/java/net/sf/katta/master/Master.java
+++ b/src/main/java/net/sf/katta/master/Master.java
@@ -1,417 +1,417 @@
/**
* Copyright 2008 The Apache Software Foundation
*
... | false | true | private void deployIndex(final String index, final IndexMetaData metaData) throws KattaException {
final ArrayList<AssignedShard> shards = getShardsForIndex(index, metaData);
if (shards.size() == 0) {
throw new IllegalArgumentException("No shards in folder found, this is not a vailid katta virtual index... | private void deployIndex(final String index, final IndexMetaData metaData) throws KattaException {
final ArrayList<AssignedShard> shards = getShardsForIndex(index, metaData);
if (shards.size() == 0) {
throw new IllegalArgumentException("No shards in folder found, this is not a vailid katta virtual index... |
diff --git a/bundles/org.eclipse.equinox.p2.installer/src/org/eclipse/equinox/internal/p2/installer/InstallDescriptionParser.java b/bundles/org.eclipse.equinox.p2.installer/src/org/eclipse/equinox/internal/p2/installer/InstallDescriptionParser.java
index fde724fc1..990f82560 100644
--- a/bundles/org.eclipse.equinox.p2.... | true | true | public static InstallDescription loadFromProperties(InputStream stream, SubMonitor monitor) throws IOException {
BufferedInputStream in = null;
try {
Properties properties = new Properties();
in = new BufferedInputStream(stream);
properties.load(in);
InstallDescription description = new InstallDescript... | public static InstallDescription loadFromProperties(InputStream stream, SubMonitor monitor) throws IOException {
BufferedInputStream in = null;
try {
Properties properties = new Properties();
in = new BufferedInputStream(stream);
properties.load(in);
InstallDescription description = new InstallDescript... |
diff --git a/src-handcoded/com/handcoded/fpml/validation/BrokenSchemeRule.java b/src-handcoded/com/handcoded/fpml/validation/BrokenSchemeRule.java
index bf6843c..26bf0e6 100644
--- a/src-handcoded/com/handcoded/fpml/validation/BrokenSchemeRule.java
+++ b/src-handcoded/com/handcoded/fpml/validation/BrokenSchemeRule.java... | true | true | protected boolean validate (NodeList list, ValidationErrorHandler errorHandler)
{
boolean result = true;
if (list.getLength () > 0) {
Element fpml = DOM.getParent ((Element) list.item(0));
String version = null;
// Find the FpML root node
while ((fpml != null) && !fpml.getLocalName().equals(... | protected boolean validate (NodeList list, ValidationErrorHandler errorHandler)
{
boolean result = true;
if (list.getLength () > 0) {
Element fpml = DOM.getParent ((Element) list.item(0));
String version = null;
// Find the FpML root node
while ((fpml != null) && !fpml.getLocalName().equals(... |
diff --git a/src/main/java/org/infoscoop/request/filter/SearchResultFilter.java b/src/main/java/org/infoscoop/request/filter/SearchResultFilter.java
index f13b2cc9..65dc1c1f 100644
--- a/src/main/java/org/infoscoop/request/filter/SearchResultFilter.java
+++ b/src/main/java/org/infoscoop/request/filter/SearchResultFilte... | true | true | protected InputStream postProcess(ProxyRequest request, InputStream responseStream) throws IOException {
if( !ProxyHtmlUtil.isHtml(request.getResponseHeader("content-type")))
return null;
String collectMethod = "";
String collectValue = null;
String select = request.getRequestHeader("msdportal-select");... | protected InputStream postProcess(ProxyRequest request, InputStream responseStream) throws IOException {
if( !ProxyHtmlUtil.isHtml(request.getResponseHeader("content-type")))
return null;
String collectMethod = "";
String collectValue = null;
String select = request.getRequestHeader("msdportal-select");... |
diff --git a/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/subsnotify/NotifierSipServletTest.java b/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/subsnotify/NotifierSipServletTest.java
index 6a2416f8f..b9f35c226 100644
--- a/sip-servlets-test-s... | true | true | public void testNotify() throws InterruptedException, SipException, ParseException, InvalidArgumentException {
String fromName = "sender";
String fromSipAddress = "sip-servlets.com";
SipURI fromAddress = senderProtocolObjects.addressFactory.createSipURI(
fromName, fromSipAddress);
String toUser = "rec... | public void testNotify() throws InterruptedException, SipException, ParseException, InvalidArgumentException {
String fromName = "sender";
String fromSipAddress = "sip-servlets.com";
SipURI fromAddress = senderProtocolObjects.addressFactory.createSipURI(
fromName, fromSipAddress);
String toUser = "rec... |
diff --git a/api/src/exchangeRate/Calculator.java b/api/src/exchangeRate/Calculator.java
index d456f2f..e11d9d6 100644
--- a/api/src/exchangeRate/Calculator.java
+++ b/api/src/exchangeRate/Calculator.java
@@ -1,78 +1,78 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor... | true | true | public CurrencyValue convert(CurrencyValue from, Currency to) throws CalculatorException {
boolean directionEqualToExchangeRate = getExchangeDirection(to);
verifyCurrencyFrom(directionEqualToExchangeRate, from);
// we're set, lets convert!
double newValue;
if (direct... | public CurrencyValue convert(CurrencyValue from, Currency to) throws ExchangeRateCalculatorException {
boolean directionEqualToExchangeRate = getExchangeDirection(to);
verifyCurrencyFrom(directionEqualToExchangeRate, from);
// we're set, lets convert!
double newValue;
... |
diff --git a/src/plugins/WebOfTrust/WebOfTrust.java b/src/plugins/WebOfTrust/WebOfTrust.java
index 969d3aef..a2637ecc 100644
--- a/src/plugins/WebOfTrust/WebOfTrust.java
+++ b/src/plugins/WebOfTrust/WebOfTrust.java
@@ -1,3572 +1,3573 @@
/* This code is part of WoT, a plugin for Freenet. It is distributed
* under th... | false | true | private synchronized void deleteDuplicateObjects() {
synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity)
synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity)
synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity)
synchronized(Persistent.transaction... | private synchronized void deleteDuplicateObjects() {
synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity)
synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity)
synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity)
synchronized(Persistent.transaction... |
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/view/UserServlet.java b/webapp/WEB-INF/classes/org/makumba/parade/view/UserServlet.java
index 10bc426..b8a62db 100644
--- a/webapp/WEB-INF/classes/org/makumba/parade/view/UserServlet.java
+++ b/webapp/WEB-INF/classes/org/makumba/parade/view/UserServlet.java
@@ -1,1... | true | true | private String getNewUserView(Parade p, String username, String opResult) {
StringWriter result = new StringWriter();
PrintWriter out = new PrintWriter(result);
Template temp = null;
try {
temp = InitServlet.getFreemarkerCfg().getTemplate("newUser.ftl");
... | private String getNewUserView(Parade p, String username, String opResult) {
StringWriter result = new StringWriter();
PrintWriter out = new PrintWriter(result);
Template temp = null;
try {
temp = InitServlet.getFreemarkerCfg().getTemplate("newUser.ftl");
... |
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/listener/FlexoActionButton.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/listener/FlexoActionButton.java
index 87fa1e857..75a62abc2 100644
--- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/listener/FlexoActionButton.java
+... | true | true | public FlexoActionButton(FlexoActionType<?, ?, ?> actionType, String unlocalizedActionName, FlexoActionSource source,
FlexoController controller) {
super();
actionSource = source;
this.controller = controller;
action = new ButtonAction(actionType, unlocalizedActionName);
setText(action.getLocalizedName(th... | public FlexoActionButton(FlexoActionType<?, ?, ?> actionType, String unlocalizedActionName, FlexoActionSource source,
FlexoController controller) {
super();
actionSource = source;
this.controller = controller;
action = new ButtonAction(actionType, unlocalizedActionName);
setText(action.getLocalizedName(th... |
diff --git a/src/com/kurento/kas/mscontrol/internal/MediaSessionImpl.java b/src/com/kurento/kas/mscontrol/internal/MediaSessionImpl.java
index 6e5e8ce..c8085fa 100644
--- a/src/com/kurento/kas/mscontrol/internal/MediaSessionImpl.java
+++ b/src/com/kurento/kas/mscontrol/internal/MediaSessionImpl.java
@@ -1,244 +1,244 @@... | false | true | private MediaSessionConfig getMediaSessionconfigFromParams(Parameters params)
throws MsControlException {
if (params == null)
throw new MsControlException("Parameters are NULL");
Object obj;
obj = params.get(STUN_HOST);
if (obj == null)
throw new MsControlException(
"Params must have MediaSe... | private MediaSessionConfig getMediaSessionconfigFromParams(Parameters params)
throws MsControlException {
if (params == null)
throw new MsControlException("Parameters are NULL");
Object obj;
obj = params.get(STUN_HOST);
if (obj == null)
throw new MsControlException(
"Params must have MediaSe... |
diff --git a/src/main/java/org/concord/sensor/pasco/jna/PascoLibrary.java b/src/main/java/org/concord/sensor/pasco/jna/PascoLibrary.java
index 1ada5ce..cc9b2e8 100644
--- a/src/main/java/org/concord/sensor/pasco/jna/PascoLibrary.java
+++ b/src/main/java/org/concord/sensor/pasco/jna/PascoLibrary.java
@@ -1,198 +1,198 @@... | false | true | static File extractResource(String resourceName, File directory)
throws Error, FileNotFoundException {
URL url = PascoLibrary.class.getResource(getNativeLibraryResourcePath() + "/" + resourceName);
if (url == null) {
throw new FileNotFoundException(resourceName + " not found in resource path");
}
File re... | static File extractResource(String resourceName, File directory)
throws Error, FileNotFoundException {
URL url = PascoLibrary.class.getResource(getNativeLibraryResourcePath() + "/" + resourceName);
if (url == null) {
throw new FileNotFoundException(resourceName + " not found in resource path");
}
File re... |
diff --git a/src/com/android/alarmclock/AlarmReceiver.java b/src/com/android/alarmclock/AlarmReceiver.java
index eed76b6..218db98 100644
--- a/src/com/android/alarmclock/AlarmReceiver.java
+++ b/src/com/android/alarmclock/AlarmReceiver.java
@@ -1,76 +1,78 @@
/*
* Copyright (C) 2007 The Android Open Source Project
... | false | true | public void onReceive(Context context, Intent intent) {
long now = System.currentTimeMillis();
int id = intent.getIntExtra(Alarms.ID, 0);
long setFor = intent.getLongExtra(Alarms.TIME, 0);
/* FIXME Intentionally verbose: always log this until we've
fully debugged the app ... | public void onReceive(Context context, Intent intent) {
long now = System.currentTimeMillis();
int id = intent.getIntExtra(Alarms.ID, 0);
long setFor = intent.getLongExtra(Alarms.TIME, 0);
/* FIXME Intentionally verbose: always log this until we've
fully debugged the app ... |
diff --git a/src/com/android/phone/Use2GOnlyCheckBoxPreference.java b/src/com/android/phone/Use2GOnlyCheckBoxPreference.java
index 1fa83a76..f3a3a956 100644
--- a/src/com/android/phone/Use2GOnlyCheckBoxPreference.java
+++ b/src/com/android/phone/Use2GOnlyCheckBoxPreference.java
@@ -1,112 +1,116 @@
/*
* Copyright (C)... | true | true | private void handleGetPreferredNetworkTypeResponse(Message msg) {
AsyncResult ar = (AsyncResult) msg.obj;
if (ar.exception == null) {
int type = ((int[])ar.result)[0];
Log.i(LOG_TAG, "get preferred network type="+type);
setChecked(type == ... | private void handleGetPreferredNetworkTypeResponse(Message msg) {
AsyncResult ar = (AsyncResult) msg.obj;
if (ar.exception == null) {
int type = ((int[])ar.result)[0];
if (type != Phone.NT_MODE_GSM_ONLY) {
// Allow only NT_MODE_GSM_ONL... |
diff --git a/release-test/src/main/java/org/openmrs/ReportsTransformer.java b/release-test/src/main/java/org/openmrs/ReportsTransformer.java
index 2b9467a6..2c94ebbd 100644
--- a/release-test/src/main/java/org/openmrs/ReportsTransformer.java
+++ b/release-test/src/main/java/org/openmrs/ReportsTransformer.java
@@ -1,77 ... | true | true | public static void tranformReport(File xmlPath) throws TransformerFactoryConfigurationError,
TransformerException, FileNotFoundException {
Source xml = new StreamSource(xmlPath);
Source xslt = new StreamSource(new File(cd,
"src/main/resources/reports/jbehave-3.x-to-junit-... | public static void tranformReport(File xmlPath) throws TransformerFactoryConfigurationError,
TransformerException, FileNotFoundException {
Source xml = new StreamSource(xmlPath);
Source xslt = new StreamSource(new File(cd,
"src/main/resources/reports/jbehave-3.x-to-junit-... |
diff --git a/test/StrictMathTest.java b/test/StrictMathTest.java
index e6768429..55193f73 100644
--- a/test/StrictMathTest.java
+++ b/test/StrictMathTest.java
@@ -1,348 +1,348 @@
// use every strict math function
package test;
import java.util.Arrays;
import java.lang.StrictMath;
public class StrictMathTest {
... | false | true | public static void main(String[] args) {
double[] d_vals = { 2.12345,
-3.256,
0,
Double.MAX_VALUE,
Double.MIN_VALUE,
Double.MIN_NORMAL,
Double.MAX_EXPONENT,
... | public static void main(String[] args) {
double[] d_vals = { 2.12345,
-3.256,
0,
Double.MAX_VALUE,
Double.MIN_VALUE,
Double.MIN_NORMAL,
Double.MAX_EXPONENT,
... |
diff --git a/chordest/src/main/java/chordest/chord/comparison/ComparisonAccumulator.java b/chordest/src/main/java/chordest/chord/comparison/ComparisonAccumulator.java
index 7ef596f..ad255d9 100644
--- a/chordest/src/main/java/chordest/chord/comparison/ComparisonAccumulator.java
+++ b/chordest/src/main/java/chordest/cho... | false | true | public Errors(Map<String, Double> log) {
for (Entry<String, Double> entry : log.entrySet()) {
double time = entry.getValue();
totalLengthInSeconds += time;
String[] str = entry.getKey().split("-");
if (str.length == 2) {
String exp = str[0];
String act = str[1];
if (exp.contains(",")... | public Errors(Map<String, Double> log) {
for (Entry<String, Double> entry : log.entrySet()) {
double time = entry.getValue();
totalLengthInSeconds += time;
String[] str = entry.getKey().split("-");
if (str.length == 2) {
String exp = str[0];
String act = str[1];
if (exp.contains(",")... |
diff --git a/app/controllers/PageController.java b/app/controllers/PageController.java
index da3713b..4bd5bd5 100644
--- a/app/controllers/PageController.java
+++ b/app/controllers/PageController.java
@@ -1,26 +1,26 @@
package controllers;
import java.util.List;
import models.Sponsor;
import play.cache.Cache;
im... | true | true | public static void loadDefaultData() {
List<Sponsor> sponsors = Cache.get("SPONSORS", null);
if (sponsors == null) {
sponsors = Sponsor.findAll();
Cache.add(SPONSORS, sponsors, "2h");
}
renderArgs.put(SPONSORS, sponsors);
}
| public static void loadDefaultData() {
List<Sponsor> sponsors = Cache.get(SPONSORS, null);
if (sponsors == null) {
sponsors = Sponsor.findAll();
Cache.add(SPONSORS, sponsors, "2h");
}
renderArgs.put(SPONSORS, sponsors);
}
|
diff --git a/src/com/tipumc/IsAtPosition.java b/src/com/tipumc/IsAtPosition.java
index 2901f2b..a88002d 100644
--- a/src/com/tipumc/IsAtPosition.java
+++ b/src/com/tipumc/IsAtPosition.java
@@ -1,28 +1,28 @@
package com.tipumc;
public class IsAtPosition implements SearchTest {
/**
*
* @param direc... | true | true | public IsAtPosition(Direction direction, int x, int y)
{
direction.getDirection(position);
position.x += x;
position.y += y;
}
| public IsAtPosition(Direction direction, int x, int y)
{
direction.getDirection(position);
position.x = x - position.x;
position.y = y - position.y;
}
|
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java
index 88f1ad1ee..b60c837f8 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.... | false | true | private void createContents(final Shell shell) {
GridData data;
final int colCount = 4;
shell.setLayout(new GridLayout(colCount, true));
// "refresh" button
Button refresh = new Button(shell, SWT.PUSH);
refresh.setText("Refresh");
data = new GridData(GridDa... | private void createContents(final Shell shell) {
GridData data;
final int colCount = 4;
shell.setLayout(new GridLayout(colCount, true));
// "refresh" button
Button refresh = new Button(shell, SWT.PUSH);
refresh.setText("Refresh");
data = new GridData(GridDa... |
diff --git a/core/src/com/google/zxing/oned/Code128Reader.java b/core/src/com/google/zxing/oned/Code128Reader.java
index b41d954d..e15370ae 100644
--- a/core/src/com/google/zxing/oned/Code128Reader.java
+++ b/core/src/com/google/zxing/oned/Code128Reader.java
@@ -1,473 +1,463 @@
/*
* Copyright 2008 ZXing authors
*
... | false | true | public Result decodeRow(int rowNumber, BitArray row, Hashtable hints)
throws NotFoundException, FormatException, ChecksumException {
int[] startPatternInfo = findStartPattern(row);
int startCode = startPatternInfo[2];
int codeSet;
switch (startCode) {
case CODE_START_A:
codeSet = ... | public Result decodeRow(int rowNumber, BitArray row, Hashtable hints)
throws NotFoundException, FormatException, ChecksumException {
int[] startPatternInfo = findStartPattern(row);
int startCode = startPatternInfo[2];
int codeSet;
switch (startCode) {
case CODE_START_A:
codeSet = ... |
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java
index 1c152788f..a5b590abc 100644
--- a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java
+++ b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java
@@ -1,1049 +1,1049 ... | true | true | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <l@location.biome.formatted>
// @returns Element
// @description
// Returns the formatted biome name at the location.
// -->
if (attribute.... | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <l@location.biome.formatted>
// @returns Element
// @description
// Returns the formatted biome name at the location.
// -->
if (attribute.... |
diff --git a/src/main/java/org/apache/ibatis/scripting/xmltags/XMLScriptBuilder.java b/src/main/java/org/apache/ibatis/scripting/xmltags/XMLScriptBuilder.java
index e649021fcd..6eb5c6359d 100644
--- a/src/main/java/org/apache/ibatis/scripting/xmltags/XMLScriptBuilder.java
+++ b/src/main/java/org/apache/ibatis/scripting... | true | true | private List<SqlNode> parseDynamicTags(XNode node) {
List<SqlNode> contents = new ArrayList<SqlNode>();
NodeList children = node.getNode().getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
XNode child = node.newXNode(children.item(i));
String nodeName = child.getNode().getNodeN... | private List<SqlNode> parseDynamicTags(XNode node) {
List<SqlNode> contents = new ArrayList<SqlNode>();
NodeList children = node.getNode().getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
XNode child = node.newXNode(children.item(i));
String nodeName = child.getNode().getNodeN... |
diff --git a/java-gui/src/main/java/de/iweinzierl/passsafe/gui/util/UiUtils.java b/java-gui/src/main/java/de/iweinzierl/passsafe/gui/util/UiUtils.java
index c89442a..39e9bca 100644
--- a/java-gui/src/main/java/de/iweinzierl/passsafe/gui/util/UiUtils.java
+++ b/java-gui/src/main/java/de/iweinzierl/passsafe/gui/util/UiUt... | true | true | public static void displayError(final Window owner, final String text) {
JLabel label = new JLabel(String.format(ERROR_TEMPLATE, 250, text));
label.setPreferredSize(new Dimension(250, 100));
JPanel panel = new JPanel();
panel.setLayout(new BorderLayout());
panel.add(label);
... | public static void displayError(final Window owner, final String text) {
JLabel label = new JLabel(String.format(ERROR_TEMPLATE, 250, text));
label.setPreferredSize(new Dimension(250, 100));
JPanel panel = new JPanel();
panel.setLayout(new BorderLayout());
panel.add(label);
... |
diff --git a/omod/src/main/java/org/openmrs/module/htmlformflowsheet/web/controller/PatientChartController.java b/omod/src/main/java/org/openmrs/module/htmlformflowsheet/web/controller/PatientChartController.java
index 2e305c9..6a84c69 100644
--- a/omod/src/main/java/org/openmrs/module/htmlformflowsheet/web/controller/... | true | true | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
ModelMap model = new ModelMap();
if (Context.isAuthenticated()){
if (configuration == null) {
throw new RuntimeException("You need to provide a configuration");
}
Integer selectTab... | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
ModelMap model = new ModelMap();
if (Context.isAuthenticated()){
if (configuration == null) {
throw new RuntimeException("You need to provide a configuration");
}
Integer selectTab... |
diff --git a/db/src/main/java/com/psddev/dari/db/ObjectType.java b/db/src/main/java/com/psddev/dari/db/ObjectType.java
index 2c6b3a1b..41726c79 100644
--- a/db/src/main/java/com/psddev/dari/db/ObjectType.java
+++ b/db/src/main/java/com/psddev/dari/db/ObjectType.java
@@ -1,874 +1,874 @@
package com.psddev.dari.db;
i... | true | true | private static void updateFieldsAndIndexes(
ObjectType type,
Database database,
DatabaseEnvironment environment,
TypeDefinition<?> definition,
List<ObjectField> globalFields,
List<ObjectIndex> globalIndexes,
List<ObjectField> localF... | private static void updateFieldsAndIndexes(
ObjectType type,
Database database,
DatabaseEnvironment environment,
TypeDefinition<?> definition,
List<ObjectField> globalFields,
List<ObjectIndex> globalIndexes,
List<ObjectField> localF... |
diff --git a/src/com/redhat/ceylon/compiler/ant/Ceylonc.java b/src/com/redhat/ceylon/compiler/ant/Ceylonc.java
index 509a33a2b..bd69f6233 100644
--- a/src/com/redhat/ceylon/compiler/ant/Ceylonc.java
+++ b/src/com/redhat/ceylon/compiler/ant/Ceylonc.java
@@ -1,199 +1,199 @@
/* Based on the javac task from apache-ant-1.7... | true | true | private void compile() {
if (compileList.length == 0)
return;
Commandline cmd = new Commandline();
cmd.setExecutable(compilerExecutable.getAbsolutePath());
cmd.createArgument().setValue("-d");
cmd.createArgument().setValue(destDir.getAbsolutePath());
cmd.... | private void compile() {
if (compileList.length == 0)
return;
Commandline cmd = new Commandline();
cmd.setExecutable(compilerExecutable.getAbsolutePath());
cmd.createArgument().setValue("-d");
cmd.createArgument().setValue(destDir.getAbsolutePath());
cmd.... |
diff --git a/src/java-common/org/xins/util/io/FileWatcher.java b/src/java-common/org/xins/util/io/FileWatcher.java
index 22a1de6dd..f3928b73d 100644
--- a/src/java-common/org/xins/util/io/FileWatcher.java
+++ b/src/java-common/org/xins/util/io/FileWatcher.java
@@ -1,210 +1,211 @@
/*
* $Id$
*/
package org.xins.uti... | false | true | private void check() {
long lastModified;
try {
// If the file exists, then check when it was last modified...
if (_file.exists()) {
lastModified = _file.lastModified();
// ...otherwise notify the listener and return.
} else {
lastModified = 0... | private void check() {
long lastModified;
try {
// If the file exists, then check when it was last modified...
if (_file.exists()) {
lastModified = _file.lastModified();
// ...otherwise notify the listener and return.
} else {
_lastModified = ... |
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoElementHyperlinkDetector.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoElementHyperlinkDetector.java
index 3d223e09..26cd1411 100644
--- a/plugins/o... | false | true | public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region,
boolean canShowMultipleHyperlinks) {
final ITextEditor textEditor = (ITextEditor)getAdapter(ITextEditor.class);
// shortcut : do not show links for non relevant chars (dot, arrows, ...)
boolean shortcut = false;
if (region == null ... | public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region,
boolean canShowMultipleHyperlinks) {
final ITextEditor textEditor = (ITextEditor)getAdapter(ITextEditor.class);
// shortcut : do not show links for non relevant chars (dot, arrows, ...)
boolean shortcut = false;
if (region == null ... |
diff --git a/dbproject/test/my/triviagame/xmcd/XmcdDiscArchiveTest.java b/dbproject/test/my/triviagame/xmcd/XmcdDiscArchiveTest.java
index 14aba09..778971c 100644
--- a/dbproject/test/my/triviagame/xmcd/XmcdDiscArchiveTest.java
+++ b/dbproject/test/my/triviagame/xmcd/XmcdDiscArchiveTest.java
@@ -1,66 +1,66 @@
package ... | true | true | public void testCompleteArchiveExtraction() throws Throwable {
XmcdDiscArchive xmcdArchive = new XmcdDiscArchive(TestUtilities.getComplete_20120601(), false);
int discsCount = 0;
int badDiscsCount = 0;
int tracksCount = 0;
while (xmcdArchive.hasNext()) {
try {
... | public void testCompleteArchiveExtraction() throws Throwable {
XmcdDiscArchive xmcdArchive = new XmcdDiscArchive(TestUtilities.getComplete_20120601(), false);
int discsCount = 0;
int badDiscsCount = 0;
int tracksCount = 0;
while (xmcdArchive.hasNext()) {
try {
... |
diff --git a/src/main/com/mongodb/ReplicaSetStatus.java b/src/main/com/mongodb/ReplicaSetStatus.java
index 7082b70d8..ee7769ddd 100644
--- a/src/main/com/mongodb/ReplicaSetStatus.java
+++ b/src/main/com/mongodb/ReplicaSetStatus.java
@@ -1,396 +1,397 @@
// ReplicaSetStatus.java
package com.mongodb;
import java.io... | true | true | synchronized void update(Set<String> seenHosts){
try {
long start = System.currentTimeMillis();
CommandResult res = _port.runCommand( "admin" , _isMasterCmd );
_lastCheck = System.currentTimeMillis();
_pingTime = _lastCheck - start;
... | synchronized void update(Set<String> seenHosts){
try {
long start = System.currentTimeMillis();
CommandResult res = _port.runCommand( "admin" , _isMasterCmd );
_lastCheck = System.currentTimeMillis();
_pingTime = _lastCheck - start;
... |
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java
index 18b4f0c33..663a9e3ca 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java
+++ b/gerrit-... | false | true | public void display(final PatchSet.Id patchSetId,
Boolean starred, Boolean canEditCommitMessage, final String commitMessage) {
starPanel.clear();
Change.Id changeId = patchSetId.getParentKey();
if (changeId != null && starred != null && Gerrit.isSignedIn()) {
StarredChanges.Icon star = Starred... | public void display(final PatchSet.Id patchSetId,
Boolean starred, Boolean canEditCommitMessage, final String commitMessage) {
starPanel.clear();
if (patchSetId != null && starred != null && Gerrit.isSignedIn()) {
Change.Id changeId = patchSetId.getParentKey();
StarredChanges.Icon star = Sta... |
diff --git a/src/Generator.java b/src/Generator.java
index a048aca..2c4f008 100644
--- a/src/Generator.java
+++ b/src/Generator.java
@@ -1,160 +1,160 @@
import java.awt.Color;
import java.util.ArrayList;
import se.lth.cs.ptdc.fractal.MandelbrotGUI;
/** Render a mandlebrot in the complex plane */
public class G... | true | true | public void render(MandelbrotGUI gui) {
// Disable GUI input during rendering (might take a while)
gui.disableInput();
/* Get number of iterations from extra parameter field if available
* Default is DEFAULT_ITERATIONS
*/
String extra = gui.getExtraText();
int iterations = DEFAULT_ITERATIONS;
i... | public void render(MandelbrotGUI gui) {
// Disable GUI input during rendering (might take a while)
gui.disableInput();
/* Get number of iterations from extra parameter field if available
* Default is DEFAULT_ITERATIONS
*/
String extra = gui.getExtraText();
int iterations = DEFAULT_ITERATIONS;
i... |
diff --git a/src/main/java/hudson/remoting/Launcher.java b/src/main/java/hudson/remoting/Launcher.java
index ae148ade..fe14efc3 100644
--- a/src/main/java/hudson/remoting/Launcher.java
+++ b/src/main/java/hudson/remoting/Launcher.java
@@ -1,346 +1,347 @@
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Mic... | true | true | public static void main(String[] args) throws Exception {
Mode m = Mode.BINARY;
boolean ping = true;
URL slaveJnlpURL = null;
File tcpPortFile = null;
InetSocketAddress connectionTarget=null;
for(int i=0; i<args.length; i++) {
String arg = args[i];
... | public static void main(String[] args) throws Exception {
Mode m = Mode.BINARY;
boolean ping = true;
URL slaveJnlpURL = null;
File tcpPortFile = null;
InetSocketAddress connectionTarget=null;
for(int i=0; i<args.length; i++) {
String arg = args[i];
... |
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java
index 211c9dc84..d59f94b5c 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debu... | true | true | private void runTest() {
if (bp_id == null) {
bp.set(null, new IBreakpoints.DoneCommand() {
public void doneCommand(IToken token, Exception error) {
if (error != null) {
exit(error);
}
else {
... | private void runTest() {
if (bp_id == null) {
bp.set(null, new IBreakpoints.DoneCommand() {
public void doneCommand(IToken token, Exception error) {
if (error != null) {
exit(error);
}
else {
... |
diff --git a/core/hu.modembed.test/src/hu/modembed/test/ModembedTests.java b/core/hu.modembed.test/src/hu/modembed/test/ModembedTests.java
index d8ba5852..2158626d 100644
--- a/core/hu.modembed.test/src/hu/modembed/test/ModembedTests.java
+++ b/core/hu.modembed.test/src/hu/modembed/test/ModembedTests.java
@@ -1,182 +1,... | true | true | public static IProject loadProject(String testID) throws CoreException{
IncludedProject testp = IncludedProjectsRegistry.getInstance().getProject(testID);
List<IncludedProject> projects = IncludedProjectsRegistry.getInstance().resolveDependencies(Collections.singleton(testp));
//Import projects
for(IncludedPro... | public static IProject loadProject(String testID) throws CoreException{
IncludedProject testp = IncludedProjectsRegistry.getInstance().getProject(testID);
Assert.assertNotNull("Included project "+testID+" does not exists!", testp);
List<IncludedProject> projects = IncludedProjectsRegistry.getInstance().resolveDe... |
diff --git a/src/com/spacejunk/pause/Pause0Options.java b/src/com/spacejunk/pause/Pause0Options.java
index e502081..ad5ef19 100644
--- a/src/com/spacejunk/pause/Pause0Options.java
+++ b/src/com/spacejunk/pause/Pause0Options.java
@@ -1,151 +1,151 @@
/*
* To change this template, choose Tools | Templates
* and open ... | true | true | public void renderScreen() {
Bounds mouse = new Bounds(Mouse.getX(), Display.getDisplayMode().getHeight() - Mouse.getY(), 1, 1);
font.drawString(((Display.getDisplayMode().getWidth() - font.getWidth("MUSIC VOLUME")) / 2) - 100, 100, "MUSIC VOLUME", Color.red);
font.drawString(((Display.getDi... | public void renderScreen() {
Bounds mouse = new Bounds(Mouse.getX(), Display.getDisplayMode().getHeight() - Mouse.getY(), 1, 1);
font.drawString(((Display.getDisplayMode().getWidth() - font.getWidth("MUSIC VOLUME")) / 2) - 100, 100, "MUSIC VOLUME", Color.red);
font.drawString(((Display.getDi... |
diff --git a/src/gov/nih/nci/caintegrator/analysis/server/PrincipalComponentAnalysisTaskR.java b/src/gov/nih/nci/caintegrator/analysis/server/PrincipalComponentAnalysisTaskR.java
index e4d347c..8a24aa7 100755
--- a/src/gov/nih/nci/caintegrator/analysis/server/PrincipalComponentAnalysisTaskR.java
+++ b/src/gov/nih/nci/c... | true | true | public void run() {
PrincipalComponentAnalysisRequest pcaRequest = (PrincipalComponentAnalysisRequest) getRequest();
result = new PrincipalComponentAnalysisResult(getRequest()
.getSessionId(), getRequest().getTaskId());
logger.info(getExecutingThreadName() + " processing principal component analysis reque... | public void run() {
PrincipalComponentAnalysisRequest pcaRequest = (PrincipalComponentAnalysisRequest) getRequest();
result = new PrincipalComponentAnalysisResult(getRequest()
.getSessionId(), getRequest().getTaskId());
logger.info(getExecutingThreadName() + " processing principal component analysis reque... |
diff --git a/components/src/main/java/com/googlecode/wicketelements/components/accordion/DefaultAccordionState.java b/components/src/main/java/com/googlecode/wicketelements/components/accordion/DefaultAccordionState.java
index 38c3bab..ec8f7d8 100644
--- a/components/src/main/java/com/googlecode/wicketelements/componen... | false | true | public final void togglePaneExpanded(final TogglePaneStateEvent stateEventParam) {
//TODO check that the source corresponds to a toggle pane that actually belongs to this accordion
final TogglePaneState state = stateEventParam.getSource();
Reqs.PRE_COND.Logic.requireTrue(isTogglePaneBelongin... | public final void togglePaneExpanded(final TogglePaneStateEvent stateEventParam) {
//TODO check that the source corresponds to a toggle pane that actually belongs to this accordion
final TogglePaneState state = stateEventParam.getSource();
Reqs.PRE_COND.Logic.requireTrue(isTogglePaneBelongin... |
diff --git a/src/java/fedora/client/NewObjectDialog.java b/src/java/fedora/client/NewObjectDialog.java
index 96b59f186..8a37471a8 100755
--- a/src/java/fedora/client/NewObjectDialog.java
+++ b/src/java/fedora/client/NewObjectDialog.java
@@ -1,227 +1,227 @@
/* The contents of this file are subject to the license and co... | true | true | public void actionPerformed(ActionEvent evt) {
try {
String pid = null;
String label = m_labelField.getText();
String cModel = m_cModelField.getText();
boolean ok = true;
if (m_labelField.getText().equals("")) {
JOptionPane.showMessageDialog(Administrator.getDesktop(),
"Label must b... | public void actionPerformed(ActionEvent evt) {
try {
String pid = null;
String label = m_labelField.getText();
String cModel = m_cModelField.getText();
boolean ok = true;
if (m_labelField.getText().equals("")) {
JOptionPane.showMessageDialog(Administrator.getDesktop(),
"Label must b... |
diff --git a/email/src/main/java/com/meltmedia/cadmium/email/jersey/EmailResource.java b/email/src/main/java/com/meltmedia/cadmium/email/jersey/EmailResource.java
index 5036f7c0..6ff61c60 100644
--- a/email/src/main/java/com/meltmedia/cadmium/email/jersey/EmailResource.java
+++ b/email/src/main/java/com/meltmedia/cadmi... | false | true | public Response emailThisPage(@Context HttpServletRequest request,
@FormParam(Constants.DIR) String dir, MultivaluedMap<String, String> formData) {
log.info("Entering Email This Method");
VelocityHtmlTextEmail email = new VelocityHtmlTextEmail();
Yaml yamlParser;
// Setting up... | public Response emailThisPage(@Context HttpServletRequest request,
@FormParam(Constants.DIR) String dir, MultivaluedMap<String, String> formData) {
log.info("Entering Email This Method");
VelocityHtmlTextEmail email = new VelocityHtmlTextEmail();
Yaml yamlParser;
// Setting up... |
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java
index ab316502e..7d2afb08c 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJa... | false | true | CallPeerJabberImpl createOutgoingCall(
CallJabberImpl call,
String calleeAddress,
Iterable<PacketExtension> sessionInitiateExtensions)
throws OperationFailedException
{
if (logger.isInfoEnabled())
logger.info("creating outgoing call...");
i... | CallPeerJabberImpl createOutgoingCall(
CallJabberImpl call,
String calleeAddress,
Iterable<PacketExtension> sessionInitiateExtensions)
throws OperationFailedException
{
if (logger.isInfoEnabled())
logger.info("creating outgoing call...");
i... |
diff --git a/archquery/src/com/android/archquery/Main.java b/archquery/src/com/android/archquery/Main.java
index c76cca122..030cfe598 100644
--- a/archquery/src/com/android/archquery/Main.java
+++ b/archquery/src/com/android/archquery/Main.java
@@ -1,72 +1,72 @@
/*
* Copyright (C) 2009 The Android Open Source Projec... | true | true | public static void main(String[] args) {
for (String arg : args) {
System.out.println(String.format("%1$s: %2$s", arg, System.getProperty(arg)));
}
if (args.length == 0) {
// Values listed from http://lopica.sourceforge.net/os.html
String arch = System.g... | public static void main(String[] args) {
for (String arg : args) {
System.out.println(System.getProperty(arg));
}
if (args.length == 0) {
// Values listed from http://lopica.sourceforge.net/os.html
String arch = System.getProperty("os.arch");
... |
diff --git a/src/mai/icyrain/RouteItineraryDemo.java b/src/mai/icyrain/RouteItineraryDemo.java
index f279c52..d802982 100644
--- a/src/mai/icyrain/RouteItineraryDemo.java
+++ b/src/mai/icyrain/RouteItineraryDemo.java
@@ -1,183 +1,181 @@
package mai.icyrain;
// import static com.mapquest.android.maps.MapActivity.TAG... | false | true | protected void init() {
super.init();
// find the objects we need to interact with
mapView = (MapView) findViewById(R.id.map);
myLocationOverlay = new MyLocationOverlay(this, mapView);
final RelativeLayout mapLayout = (RelativeLayout) findViewById(R.id.mapLayout);
final RelativeLayout itinera... | protected void init() {
super.init();
// find the objects we need to interact with
mapView = (MapView) findViewById(R.id.map);
myLocationOverlay = new MyLocationOverlay(this, mapView);
final RelativeLayout mapLayout = (RelativeLayout) findViewById(R.id.mapLayout);
final RelativeLayout itinera... |
diff --git a/examples/printservices/PrintServices.java b/examples/printservices/PrintServices.java
index 32fddb1b..531a2f95 100644
--- a/examples/printservices/PrintServices.java
+++ b/examples/printservices/PrintServices.java
@@ -1,198 +1,198 @@
/*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* "The contents of this f... | true | true | public static void main(String[] args) {
// setup for input from command line
BufferedReader stdin =
new BufferedReader(new InputStreamReader(System.in));
/**
* Find Available printers
*/
PrintService[] services =
PrintServiceLookup.... | public static void main(String[] args) {
// setup for input from command line
BufferedReader stdin =
new BufferedReader(new InputStreamReader(System.in));
/**
* Find Available printers
*/
PrintService[] services =
PrintServiceLookup.... |
diff --git a/src/com/aokp/romcontrol/fragments/UserInterface.java b/src/com/aokp/romcontrol/fragments/UserInterface.java
index 3ad7cd1..c80608d 100644
--- a/src/com/aokp/romcontrol/fragments/UserInterface.java
+++ b/src/com/aokp/romcontrol/fragments/UserInterface.java
@@ -1,179 +1,179 @@
package com.aokp.romcontrol.fr... | true | true | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mEnableVolumeOptions) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(getActivity().getContentResolver(),
... | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mEnableVolumeOptions) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(getActivity().getContentResolver(),
... |
diff --git a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java
index e8ebd35bd..fde3c9324 100644
--- a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java
+++ b/src/DVN-web/src/edu/harvard/... | true | true | public void service(HttpServletRequest req, HttpServletResponse res) {
VDCUser user = null;
if ( LoginFilter.getLoginBean(req) != null ) {
user= LoginFilter.getLoginBean(req).getUser();
}
VDC vdc = vdcService.getVDCFromRequest(req);
UserGroup ipUserGroup= null;
... | public void service(HttpServletRequest req, HttpServletResponse res) {
VDCUser user = null;
if ( LoginFilter.getLoginBean(req) != null ) {
user= LoginFilter.getLoginBean(req).getUser();
}
VDC vdc = vdcService.getVDCFromRequest(req);
UserGroup ipUserGroup= null;
... |
diff --git a/src/test/java/com/wedlum/styleprofile/business/model/TagAutocompleteTest.java b/src/test/java/com/wedlum/styleprofile/business/model/TagAutocompleteTest.java
index bcb1857..901d529 100644
--- a/src/test/java/com/wedlum/styleprofile/business/model/TagAutocompleteTest.java
+++ b/src/test/java/com/wedlum/styl... | false | true | public void testAutocomplete(){
PhotoSourceMock photoSourceMock = new PhotoSourceMock();
TagAutocomplete subject = TagAutocomplete.on(photoSourceMock);
photoSourceMock.setMetadata("42.png",
"Tag:\n" +
" Sub-Tag: \n" +
" - Tag Value 1\n"... | public void testAutocomplete(){
PhotoSourceMock photoSourceMock = new PhotoSourceMock();
TagAutocomplete subject = TagAutocomplete.on(photoSourceMock);
photoSourceMock.setMetadata("42.png",
"Tag:\n" +
" Sub-Tag: \n" +
" - Tag Value 1\n"... |
diff --git a/src/frontend/org/voltdb/iv2/SpInitiator.java b/src/frontend/org/voltdb/iv2/SpInitiator.java
index 87ef5caaf..2bbe5ee07 100644
--- a/src/frontend/org/voltdb/iv2/SpInitiator.java
+++ b/src/frontend/org/voltdb/iv2/SpInitiator.java
@@ -1,240 +1,240 @@
/* This file is part of VoltDB.
* Copyright (C) 2008-201... | true | true | public void configure(BackendTarget backend, String serializedCatalog,
CatalogContext catalogContext,
SiteTracker siteTracker, int kfactor)
{
try {
boolean isLeader = joinElectoralCollege();
if (isLeader) {
hostL... | public void configure(BackendTarget backend, String serializedCatalog,
CatalogContext catalogContext,
SiteTracker siteTracker, int kfactor)
{
try {
boolean isLeader = joinElectoralCollege();
if (isLeader) {
hostL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.