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/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java b/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java
index ab708975..caa33bef 100644
--- a/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java
+++ b/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java
@@ -1,799 +1,799 @@
package edu.... | true | true | public Configurable getComponent(String name) throws PropertyException {
S4PropWrapper s4PropWrapper = getProperty(name, S4Component.class);
S4Component s4Component = (S4Component) s4PropWrapper.getAnnotation();
Class expectedType = s4Component.type();
Object propVal = propValues.g... | public Configurable getComponent(String name) throws PropertyException {
S4PropWrapper s4PropWrapper = getProperty(name, S4Component.class);
S4Component s4Component = (S4Component) s4PropWrapper.getAnnotation();
Class expectedType = s4Component.type();
Object propVal = propValues.g... |
diff --git a/src/solandra/SolandraDispatchFilter.java b/src/solandra/SolandraDispatchFilter.java
index a6f81c7..b0d9717 100644
--- a/src/solandra/SolandraDispatchFilter.java
+++ b/src/solandra/SolandraDispatchFilter.java
@@ -1,206 +1,206 @@
/**
* Copyright T Jake Luciani
*
* Licensed to the Apache Software Foun... | true | true | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
ServletException
{
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;
String indexName = "";
... | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
ServletException
{
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;
String indexName = "";
... |
diff --git a/Builder/src/UnpackBinaryResources.java b/Builder/src/UnpackBinaryResources.java
index e36d9df..7b6c37f 100644
--- a/Builder/src/UnpackBinaryResources.java
+++ b/Builder/src/UnpackBinaryResources.java
@@ -1,150 +1,152 @@
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
imp... | true | true | public static void main(String[] args) throws Exception {
readTranslationInfo();
// process binary zips
zips = new File(args[0]).listFiles(new FileFilter() {
public boolean accept(File pathname) {
return pathname.getName().endsWith(".zip");
}
... | public static void main(String[] args) throws Exception {
readTranslationInfo();
// process binary zips
zips = new File(args[0]).listFiles(new FileFilter() {
public boolean accept(File pathname) {
return pathname.getName().endsWith(".zip");
}
... |
diff --git a/src/main/java/org/zkoss/fiddle/composer/SourceCodeEditorInsertComposer.java b/src/main/java/org/zkoss/fiddle/composer/SourceCodeEditorInsertComposer.java
index 5bd1ed5..8185f20 100755
--- a/src/main/java/org/zkoss/fiddle/composer/SourceCodeEditorInsertComposer.java
+++ b/src/main/java/org/zkoss/fiddle/comp... | true | true | public void onClick$insert(Event e) {
String fileNameStr = fileName.getValue();
if ("".equals(fileNameStr)) {
alert("file name cannot be empty!");
return;
}
String selected = type.getSelectedItem().getLabel();
int typeVal = getType(selected);
String fileNameVal = fileNameStr + getTypeExtension(select... | public void onClick$insert(Event e) {
String fileNameStr = fileName.getValue();
if ("".equals(fileNameStr)) {
alert("file name cannot be empty!");
return;
}
String selected = type.getSelectedItem().getLabel();
int typeVal = getType(selected);
String fileNameVal = fileNameStr + getTypeExtension(select... |
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java
index 85a29bf6..e2375e5f 100644
--- a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tool... | true | true | public void createApplicationResources(IProject project,
IProgressMonitor monitor) {
Map<String, String> map = fApplicationPage.getData();
if (map == null
|| map.get(NewApplicationWizardPage.PRODUCT_NAME) == null)
return;
String projectName = map.get(NewApplicationWizardPage.PRODUCT_NAME);
String xm... | public void createApplicationResources(IProject project,
IProgressMonitor monitor) {
Map<String, String> map = fApplicationPage.getData();
if (map == null
|| map.get(NewApplicationWizardPage.PRODUCT_NAME) == null)
return;
String projectName = map.get(NewApplicationWizardPage.PRODUCT_NAME);
String xm... |
diff --git a/src/pl/xsolve/verfluchter/tools/AutoSettingsImpl.java b/src/pl/xsolve/verfluchter/tools/AutoSettingsImpl.java
index b853874..ef33ec2 100644
--- a/src/pl/xsolve/verfluchter/tools/AutoSettingsImpl.java
+++ b/src/pl/xsolve/verfluchter/tools/AutoSettingsImpl.java
@@ -1,155 +1,155 @@
/*
* This file is part o... | true | true | private AutoSettingsImpl(SharedPreferences preferences, PasswdUtil passwdUtil) {
this.preferences = preferences;
this.passwdUtil = passwdUtil;
//default values and automatic setting+loading setup
settings.put(SERVER_DOMAIN_S, Constants.DEFAULT.SERVER_DOMAIN);
settings.put(MY... | public AutoSettingsImpl(SharedPreferences preferences, PasswdUtil passwdUtil) {
this.preferences = preferences;
this.passwdUtil = passwdUtil;
//default values and automatic setting+loading setup
settings.put(SERVER_DOMAIN_S, Constants.DEFAULT.SERVER_DOMAIN);
settings.put(MY_... |
diff --git a/src/biz/bokhorst/xprivacy/PrivacyService.java b/src/biz/bokhorst/xprivacy/PrivacyService.java
index 189fd597..22e78e75 100644
--- a/src/biz/bokhorst/xprivacy/PrivacyService.java
+++ b/src/biz/bokhorst/xprivacy/PrivacyService.java
@@ -1,2174 +1,2178 @@
package biz.bokhorst.xprivacy;
import java.io.File;... | false | true | public List<PRestriction> getUsageList(int uid, String restrictionName) throws RemoteException {
List<PRestriction> result = new ArrayList<PRestriction>();
try {
enforcePermission();
SQLiteDatabase dbUsage = getDbUsage();
mLockUsage.readLock().lock();
dbUsage.beginTransaction();
try {
... | public List<PRestriction> getUsageList(int uid, String restrictionName) throws RemoteException {
List<PRestriction> result = new ArrayList<PRestriction>();
try {
enforcePermission();
SQLiteDatabase dbUsage = getDbUsage();
mLockUsage.readLock().lock();
dbUsage.beginTransaction();
try {
... |
diff --git a/apps/animaldb/test/AnimaldbSeleniumTest.java b/apps/animaldb/test/AnimaldbSeleniumTest.java
index 564b4c153..5d1c5cf8f 100644
--- a/apps/animaldb/test/AnimaldbSeleniumTest.java
+++ b/apps/animaldb/test/AnimaldbSeleniumTest.java
@@ -1,496 +1,494 @@
package test;
import java.util.Calendar;
import org.... | false | true | public void breedingWorkflow() throws Exception {
// Go to Breeding line plugin
selenium.click("id=Settings_tab_button");
selenium.waitForPageToLoad(pageLoadTimeout);
selenium.click("id=ManageLines_tab_button");
selenium.waitForPageToLoad(pageLoadTimeout);
Assert.assertTrue(selenium.isTextPresent("Breeding... | public void breedingWorkflow() throws Exception {
// Go to Breeding line plugin
selenium.click("id=Settings_tab_button");
selenium.waitForPageToLoad(pageLoadTimeout);
selenium.click("id=ManageLines_tab_button");
selenium.waitForPageToLoad(pageLoadTimeout);
Assert.assertTrue(selenium.isTextPresent("Breeding... |
diff --git a/src/main/java/de/groupon/hcktn/groupong/service/impl/ScoreServiceImpl.java b/src/main/java/de/groupon/hcktn/groupong/service/impl/ScoreServiceImpl.java
index 2e0ec16..2fc4820 100644
--- a/src/main/java/de/groupon/hcktn/groupong/service/impl/ScoreServiceImpl.java
+++ b/src/main/java/de/groupon/hcktn/groupon... | false | true | public void score(Match match, MatchDTO matchDTO) {
if ((match.getStatusId()==4 || match.getStatusId()==5) && matchDTO.getStatusId()==6) {
User user1 = myUserDAO.retrieve(matchDTO.getUser1Id());
User user2 = myUserDAO.retrieve(matchDTO.getUser2Id());
Integer user1ActualSc... | public void score(Match match, MatchDTO matchDTO) {
if ((match.getStatusId()==4 || match.getStatusId()==5) && matchDTO.getStatusId()==6) {
User user1 = myUserDAO.retrieve(match.getUser1Id());
User user2 = myUserDAO.retrieve(match.getUser2Id());
Integer user1ActualScore = ... |
diff --git a/project/gncandroid/src/rednus/gncandroid/AccountsActivity.java b/project/gncandroid/src/rednus/gncandroid/AccountsActivity.java
index 0f6dae8..f9e7601 100644
--- a/project/gncandroid/src/rednus/gncandroid/AccountsActivity.java
+++ b/project/gncandroid/src/rednus/gncandroid/AccountsActivity.java
@@ -1,279 +... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
AccountItem item;
Account account;
// always create new view
convertView = mInflater.inflate(R.layout.account_item, null);
item = new AccountItem();
item.btnExpand = (ImageView) convertView
.findViewById(R.id.acc_more);
... | public View getView(int position, View convertView, ViewGroup parent) {
AccountItem item;
Account account;
// always create new view
convertView = mInflater.inflate(R.layout.account_item, null);
item = new AccountItem();
item.btnExpand = (ImageView) convertView
.findViewById(R.id.acc_more);
... |
diff --git a/deployables/serviceengines/servicemix-cxf-se/src/test/java/org/apache/servicemix/cxfse/CxfSeClientProxyTest.java b/deployables/serviceengines/servicemix-cxf-se/src/test/java/org/apache/servicemix/cxfse/CxfSeClientProxyTest.java
index d1d8c5b06..05780179f 100644
--- a/deployables/serviceengines/servicemix-c... | true | true | public void testClientProxy() throws Exception {
CxfSeComponent component = new CxfSeComponent();
container.activateComponent(component, "CxfSeComponent");
// Start container
container.start();
// Deploy SU
component.getServiceUnitManager().deploy("... | public void testClientProxy() throws Exception {
CxfSeComponent component = new CxfSeComponent();
container.activateComponent(component, "CxfSeComponent");
// Start container
container.start();
// Deploy SU
component.getServiceUnitManager().deploy("... |
diff --git a/servers/src/org/xtreemfs/new_mrc/operations/UpdateFileSizeOperation.java b/servers/src/org/xtreemfs/new_mrc/operations/UpdateFileSizeOperation.java
index 3fa24a9f..04f04488 100644
--- a/servers/src/org/xtreemfs/new_mrc/operations/UpdateFileSizeOperation.java
+++ b/servers/src/org/xtreemfs/new_mrc/operation... | true | true | public void startRequest(MRCRequest rq) {
try {
String capString = rq.getPinkyRequest().requestHeaders
.getHeader(HTTPHeaders.HDR_XCAPABILITY);
String newSizeString = rq.getPinkyRequest().requestHeaders
.getHeader(HTTPHead... | public void startRequest(MRCRequest rq) {
try {
String capString = rq.getPinkyRequest().requestHeaders
.getHeader(HTTPHeaders.HDR_XCAPABILITY);
String newSizeString = rq.getPinkyRequest().requestHeaders
.getHeader(HTTPHead... |
diff --git a/Core/SDK/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/util/EclipseProxyGenerator.java b/Core/SDK/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/util/EclipseProxyGenerator.java
index f19e142b1..58e9a056d 100644
--- a/Core/SDK/org.emftext.... | false | true | private void addAddStatusMethod(JavaComposite sc) {
sc.add("public void addStatus(" +
I_STATUS + " status, " +
iTextResourceClassName + " resource, " +
E_OBJECT + " root, " +
eProblemTypeClassName + " problemType) {");
sc.add(LIST + "<" + E_OBJECT + "> causes = new " + ARRAY_LIST + "<"
+ E_O... | private void addAddStatusMethod(JavaComposite sc) {
sc.add("public void addStatus(" +
I_STATUS + " status, " +
iTextResourceClassName + " resource, " +
E_OBJECT + " root, " +
eProblemTypeClassName + " problemType) {");
sc.add(LIST + "<" + E_OBJECT + "> causes = new " + ARRAY_LIST + "<"
+ E_O... |
diff --git a/ttt2/src/java/capstone/server/util/GameRecorder.java b/ttt2/src/java/capstone/server/util/GameRecorder.java
index 66027e4..09ebfac 100644
--- a/ttt2/src/java/capstone/server/util/GameRecorder.java
+++ b/ttt2/src/java/capstone/server/util/GameRecorder.java
@@ -1,71 +1,71 @@
/*
* To change this template, ... | true | true | public static void record(String gameID, String player, String coords) {
if (!gameIDs.containsKey(player)) {
gameIDs.put(player, new ArrayList<String>());
//gameIDs.get(player).add(gameID);
}
if (gameIDs.get(player).indexOf(gameID) == -1) {
GameRecord gam... | public static void record(String gameID, String player, String coords) {
if (!gameIDs.containsKey(player)) {
gameIDs.put(player, new ArrayList<String>());
//gameIDs.get(player).add(gameID);
}
if (gameIDs.get(player).indexOf(gameID) == -1) {
GameRecord gam... |
diff --git a/src/com/essiembre/eclipse/rbe/ui/editor/i18n/BundleEntryComposite.java b/src/com/essiembre/eclipse/rbe/ui/editor/i18n/BundleEntryComposite.java
index f8158b1..e4a9b3b 100644
--- a/src/com/essiembre/eclipse/rbe/ui/editor/i18n/BundleEntryComposite.java
+++ b/src/com/essiembre/eclipse/rbe/ui/editor/i18n/Bundl... | false | true | private void createLabelRow() {
Composite labelComposite = new Composite(this, SWT.NONE);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 6;
gridLayout.horizontalSpacing = 5;
gridLayout.verticalSpacing = 0;
gridLayout.marginWidth = 0;
gridLay... | private void createLabelRow() {
Composite labelComposite = new Composite(this, SWT.NONE);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 6;
gridLayout.horizontalSpacing = 5;
gridLayout.verticalSpacing = 0;
gridLayout.marginWidth = 0;
gridLay... |
diff --git a/src/watson/glen/pseudocode/constructs/MethodSignature.java b/src/watson/glen/pseudocode/constructs/MethodSignature.java
index 0ec0501..7dddc62 100644
--- a/src/watson/glen/pseudocode/constructs/MethodSignature.java
+++ b/src/watson/glen/pseudocode/constructs/MethodSignature.java
@@ -1,93 +1,93 @@
package ... | true | true | public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append("\t");
sb.append(modifier);
if(isStatic)
{
sb.append("static ");
}
sb.append(returnType);
sb.append(" ");
sb.append(methodName);
sb.append("(");
int beforeLength = sb.length();
sb.append(parameters);
sb.delete(be... | public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append("\t");
sb.append(modifier);
if(isStatic)
{
sb.append("static ");
}
sb.append(returnType);
sb.append(" ");
sb.append(methodName);
sb.append("(");
int beforeLength = sb.length();
sb.append(parameters);
sb.delete(be... |
diff --git a/src/main/java/org/spout/vanilla/protocol/handler/PlayerDiggingMessageHandler.java b/src/main/java/org/spout/vanilla/protocol/handler/PlayerDiggingMessageHandler.java
index eeab8057..dd1a023c 100644
--- a/src/main/java/org/spout/vanilla/protocol/handler/PlayerDiggingMessageHandler.java
+++ b/src/main/java/o... | false | true | public void handleServer(Session session, Player player, PlayerDiggingMessage message) {
if (player == null || player.getEntity() == null) {
return;
}
int x = message.getX();
int y = message.getY();
int z = message.getZ();
World w = player.getEntity().getWorld();
Block block = w.getBlock(x, y, z, pl... | public void handleServer(Session session, Player player, PlayerDiggingMessage message) {
if (player == null || player.getEntity() == null) {
return;
}
int x = message.getX();
int y = message.getY();
int z = message.getZ();
World w = player.getEntity().getWorld();
Block block = w.getBlock(x, y, z, pl... |
diff --git a/contentconnector-core/src/main/java/com/gentics/cr/monitoring/MonitorFactory.java b/contentconnector-core/src/main/java/com/gentics/cr/monitoring/MonitorFactory.java
index ed75f374..d312fbd7 100644
--- a/contentconnector-core/src/main/java/com/gentics/cr/monitoring/MonitorFactory.java
+++ b/contentconnecto... | true | true | public static UseCase startUseCase(String identifyer)
{
if(monitorenabled)
{
return new UseCase(com.jamonapi.MonitorFactory.start(identifyer),monitorenabled);
}
return null;
}
| public static UseCase startUseCase(String identifyer)
{
if(monitorenabled)
{
return new UseCase(com.jamonapi.MonitorFactory.start(identifyer),monitorenabled);
}
return new UseCase(null,monitorenabled);
}
|
diff --git a/test/unit/edu/northwestern/bioinformatics/studycalendar/web/StudyListControllerTest.java b/test/unit/edu/northwestern/bioinformatics/studycalendar/web/StudyListControllerTest.java
index 1f832b3a5..84f0708d1 100644
--- a/test/unit/edu/northwestern/bioinformatics/studycalendar/web/StudyListControllerTest.jav... | false | true | public void testModelAndView() throws Exception {
Study complete = Fixtures.createSingleEpochStudy("Complete", "E1");
complete.getPlannedCalendar().setComplete(true);
Study incomplete = Fixtures.createSingleEpochStudy("Incomplete", "E1");
incomplete.getPlannedCalendar().setComplete(f... | public void testModelAndView() throws Exception {
Study complete = Fixtures.createSingleEpochStudy("Complete", "E1");
complete.setAmended(false);
complete.getPlannedCalendar().setComplete(true);
Study incomplete = Fixtures.createSingleEpochStudy("Incomplete", "E1");
incomplet... |
diff --git a/Flags/src/alshain01/Flags/Registrar.java b/Flags/src/alshain01/Flags/Registrar.java
index a2332e0..13a6f45 100644
--- a/Flags/src/alshain01/Flags/Registrar.java
+++ b/Flags/src/alshain01/Flags/Registrar.java
@@ -1,146 +1,146 @@
package alshain01.Flags;
import java.util.Collection;
import java.util.Col... | true | true | public Flag register(String name, String description, boolean def, String group, String areaMessage, String worldMessage) {
if(!flagStore.containsKey(name)) {
Flag flag = new Flag(name, description, def, group, true, areaMessage, worldMessage);
flagStore.put(name, flag);
//Add the permission for the fla... | public Flag register(String name, String description, boolean def, String group, String areaMessage, String worldMessage) {
if(!flagStore.containsKey(name)) {
Flag flag = new Flag(name, description, def, group, true, areaMessage, worldMessage);
flagStore.put(name, flag);
//Add the permission for the fla... |
diff --git a/maven-aidl-plugin/src/main/java/org/jvending/masa/plugin/aidl/AidlGeneratorMojo.java b/maven-aidl-plugin/src/main/java/org/jvending/masa/plugin/aidl/AidlGeneratorMojo.java
index 4cb76cf..d3058bf 100644
--- a/maven-aidl-plugin/src/main/java/org/jvending/masa/plugin/aidl/AidlGeneratorMojo.java
+++ b/maven-ai... | true | true | public void execute() throws MojoExecutionException, MojoFailureException {
DirectoryScanner directoryScanner = new DirectoryScanner();
directoryScanner.setBasedir(project.getBuild().getSourceDirectory());
List<String> excludeList = new ArrayList<String>();
//target files
ex... | public void execute() throws MojoExecutionException, MojoFailureException {
DirectoryScanner directoryScanner = new DirectoryScanner();
directoryScanner.setBasedir(project.getBuild().getSourceDirectory());
List<String> excludeList = new ArrayList<String>();
//target files
ex... |
diff --git a/src/test/java/com/grayjay/javaUtilities/javaUtilities/UpgradableLockPerformance.java b/src/test/java/com/grayjay/javaUtilities/javaUtilities/UpgradableLockPerformance.java
index ea35cf1..c532343 100644
--- a/src/test/java/com/grayjay/javaUtilities/javaUtilities/UpgradableLockPerformance.java
+++ b/src/test... | true | true | public static void main(String[] aArgs) throws InterruptedException {
printColumn("ReentrantReadWriteLock");
printColumn("UpgradableLock");
printColumn("ReentrantLock)");
System.out.println();
System.out.println();
System.out.printf("%,d trials with %,d threads and %,d total locks per trial (n... | public static void main(String[] aArgs) throws InterruptedException {
printColumn("ReentrantReadWriteLock");
printColumn("UpgradableLock");
printColumn("ReentrantLock");
System.out.println();
System.out.println();
System.out.printf("%,d trials with %,d threads and %,d total locks per trial (ns... |
diff --git a/src/main/org/python/core/ImportHelper.java b/src/main/org/python/core/ImportHelper.java
index 5c46b5d4e..0aeaf3434 100644
--- a/src/main/org/python/core/ImportHelper.java
+++ b/src/main/org/python/core/ImportHelper.java
@@ -1,111 +1,106 @@
// ImportHelper.java
package org.python.core;
import java.io... | true | true | public static PyObject loadFromDirectory(PySystemState sys, String name, String modName, String entry){
String sourceName = "__init__.py";
String compiledName = "__init__$py.class";
String directoryName = sys.getPath(entry);
// displayDirName is for identification purposes (e.g.
... | public static PyObject loadFromDirectory(PySystemState sys, String name, String modName, String entry){
String sourceName = "__init__.py";
String compiledName = "__init__$py.class";
String directoryName = sys.getPath(entry);
// displayDirName is for identification purposes (e.g.
... |
diff --git a/src/me/corriekay/pppopp3/utils/PSCmdExe.java b/src/me/corriekay/pppopp3/utils/PSCmdExe.java
index 2f45e82..4bb7fdc 100644
--- a/src/me/corriekay/pppopp3/utils/PSCmdExe.java
+++ b/src/me/corriekay/pppopp3/utils/PSCmdExe.java
@@ -1,310 +1,310 @@
package me.corriekay.pppopp3.utils;
import java.io.File;
i... | true | true | protected String getSinglePlayer(String pName, CommandSender requester){
pName = pName.toLowerCase();
ArrayList<String> player = new ArrayList<String>();
File dir = new File(Mane.getInstance().getDataFolder()+File.separator+"Players");
if(!dir.isDirectory()){
sendMessage(requester,"I looked high and low, bu... | protected String getSinglePlayer(String pName, CommandSender requester){
pName = pName.toLowerCase();
ArrayList<String> player = new ArrayList<String>();
File dir = new File(Mane.getInstance().getDataFolder()+File.separator+"Players");
if(!dir.isDirectory()){
sendMessage(requester,"I looked high and low, bu... |
diff --git a/src/xutil/src/com/vangent/hieos/xutil/hl7/date/Hl7Date.java b/src/xutil/src/com/vangent/hieos/xutil/hl7/date/Hl7Date.java
index 9827274e..f00716d4 100644
--- a/src/xutil/src/com/vangent/hieos/xutil/hl7/date/Hl7Date.java
+++ b/src/xutil/src/com/vangent/hieos/xutil/hl7/date/Hl7Date.java
@@ -1,127 +1,127 @@
... | false | true | public static Date getDateFromHL7Format(String hl7date) {
// TBD: FIXUP/MOVE CODE
Date date = null;
if (hl7date != null) {
String formatString = "yyyyMMdd";
int len = hl7date.length();
if (len > 12) {
hl7date = hl7date.substring(0, 12);
... | public static Date getDateFromHL7Format(String hl7date) {
// TBD: FIXUP/MOVE CODE
Date date = null;
if (hl7date != null) {
String formatString = "yyyyMMdd";
int len = hl7date.length();
if (len >= 12) {
hl7date = hl7date.substring(0, 12);
... |
diff --git a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/listeners/PSPlayerListener.java b/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/listeners/PSPlayerListener.java
index 17b4be4..d616040 100644
--- a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/listeners/PSPlayerListener.java
+++ b/sr... | true | true | public void onPlayerInteract(PlayerInteractEvent event)
{
if (plugin.getSettingsManager().isBlacklistedWorld(event.getPlayer().getLocation().getWorld()))
{
return;
}
final Player player = event.getPlayer();
Block block = event.getClickedBlock();
ItemS... | public void onPlayerInteract(PlayerInteractEvent event)
{
if (plugin.getSettingsManager().isBlacklistedWorld(event.getPlayer().getLocation().getWorld()))
{
return;
}
final Player player = event.getPlayer();
Block block = event.getClickedBlock();
ItemS... |
diff --git a/core/src/com/shafiq/myfeedle/core/OAuthLogin.java b/core/src/com/shafiq/myfeedle/core/OAuthLogin.java
index a110d58..2ced0ff 100644
--- a/core/src/com/shafiq/myfeedle/core/OAuthLogin.java
+++ b/core/src/com/shafiq/myfeedle/core/OAuthLogin.java
@@ -1,1027 +1,1027 @@
/*
* Myfeedle - Android Social Network... | true | true | public MyfeedleWebView() {
mWebView = new WebView(OAuthLogin.this);
OAuthLogin.this.setContentView(mWebView);
mWebView.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
mLoadingDialog.dismiss();
if (url != null) {
Uri uri = Uri.pa... | public MyfeedleWebView() {
mWebView = new WebView(OAuthLogin.this);
OAuthLogin.this.setContentView(mWebView);
mWebView.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
mLoadingDialog.dismiss();
if (url != null) {
Uri uri = Uri.pa... |
diff --git a/acceptance-webapp/src/main/java/org/exoplatform/acceptance/frontend/security/CrowdAuthenticationProviderMock.java b/acceptance-webapp/src/main/java/org/exoplatform/acceptance/frontend/security/CrowdAuthenticationProviderMock.java
index 7c77126..213262a 100644
--- a/acceptance-webapp/src/main/java/org/exopl... | true | true | public Authentication authenticate(Authentication authentication) throws AuthenticationException {
String name = authentication.getName();
String password = authentication.getCredentials().toString();
try {
UserDetails user = crowdUserDetailsServiceMock.loadUserByUsername(name);
if (user.getPa... | public Authentication authenticate(Authentication authentication) throws AuthenticationException {
String name = authentication.getName();
String password = authentication.getCredentials().toString();
try {
UserDetails user = crowdUserDetailsServiceMock.loadUserByUsername(name);
if (user.getPa... |
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelEmitter.java b/plugins/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelEmitter.java
index d9eb6e626..1d5244dd6 100644
--- a/plugi... | true | true | protected Data addDataContent( IDataContent data )
{
HyperlinkDef url = parseHyperLink( data );
BookmarkDef bookmark = getBookmark( data );
Data excelData = null;
Object generateBy = data.getGenerateBy( );
IStyle style = data.getComputedStyle( );
DataFormatValue dataformat = style.getDataFormat( );
Data... | protected Data addDataContent( IDataContent data )
{
HyperlinkDef url = parseHyperLink( data );
BookmarkDef bookmark = getBookmark( data );
Data excelData = null;
Object generateBy = data.getGenerateBy( );
IStyle style = data.getComputedStyle( );
DataFormatValue dataformat = style.getDataFormat( );
MapD... |
diff --git a/loci/MultiLUT.java b/loci/MultiLUT.java
index c69893e..21b3b34 100644
--- a/loci/MultiLUT.java
+++ b/loci/MultiLUT.java
@@ -1,479 +1,479 @@
//
// MultiLUT.java
//
package loci;
import visad.*;
import visad.data.*;
import visad.util.*;
import visad.bom.*;
import visad.java3d.*;
import java.a... | true | true | public void go(String[] args) throws IOException, VisADException {
String dir = "";
String slash = System.getProperty("file.separator");
if (args.length > 0) {
dir = args[0];
if (!dir.endsWith(slash)) dir = dir + slash;
}
RealTupleType domain = null;
Unit unit = null;
String n... | public void go(String[] args) throws IOException, VisADException {
String dir = "";
String slash = System.getProperty("file.separator");
if (args.length > 0) {
dir = args[0];
if (!dir.endsWith(slash)) dir = dir + slash;
}
RealTupleType domain = null;
Unit unit = null;
String n... |
diff --git a/src/main/java/org/mctourney/AutoReferee/AutoReferee.java b/src/main/java/org/mctourney/AutoReferee/AutoReferee.java
index 9eba6f4..e729655 100644
--- a/src/main/java/org/mctourney/AutoReferee/AutoReferee.java
+++ b/src/main/java/org/mctourney/AutoReferee/AutoReferee.java
@@ -1,1037 +1,1037 @@
package org.... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
{
World world = null;
Player player = null;
if (sender instanceof Player)
{
player = (Player) sender;
world = player.getWorld();
}
else world = consoleWorld;
AutoRefMatch match = getMatch(world);
// re... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
{
World world = null;
Player player = null;
if (sender instanceof Player)
{
player = (Player) sender;
world = player.getWorld();
}
else world = consoleWorld;
AutoRefMatch match = getMatch(world);
// re... |
diff --git a/src/main/java/org/basex/query/util/pkg/ModuleLoader.java b/src/main/java/org/basex/query/util/pkg/ModuleLoader.java
index 3f1c776d8..e0907a6e9 100644
--- a/src/main/java/org/basex/query/util/pkg/ModuleLoader.java
+++ b/src/main/java/org/basex/query/util/pkg/ModuleLoader.java
@@ -1,342 +1,342 @@
package or... | true | true | public boolean addImport(final byte[] uri, final InputInfo ii, final QueryParser qp)
throws QueryException {
// add EXPath package
final TokenSet pkgs = context.repo.nsDict().get(uri);
if(pkgs != null) {
Version ver = null;
byte[] nm = null;
for(final byte[] name : pkgs) {
... | public boolean addImport(final byte[] uri, final InputInfo ii, final QueryParser qp)
throws QueryException {
// add EXPath package
final TokenSet pkgs = context.repo.nsDict().get(uri);
if(pkgs != null) {
Version ver = null;
byte[] nm = null;
for(final byte[] name : pkgs) {
... |
diff --git a/src/lib/com/izforge/izpack/util/MultiLineLabel.java b/src/lib/com/izforge/izpack/util/MultiLineLabel.java
index 42fcdf40..c56cde6e 100644
--- a/src/lib/com/izforge/izpack/util/MultiLineLabel.java
+++ b/src/lib/com/izforge/izpack/util/MultiLineLabel.java
@@ -1,645 +1,645 @@
/*
* $Id$
* IzPack version
... | true | true | private void divideLabel ()
{
int width;
int startPos;
int currentPos;
int lastPos;
int endPos;
line.clear ();
FontMetrics fm = this.getFontMetrics (this.getFont ());
startPos = 0;
currentPos = startPos;
lastPos = currentPos;
endPos ... | private void divideLabel ()
{
int width;
int startPos;
int currentPos;
int lastPos;
int endPos;
line.clear ();
FontMetrics fm = this.getFontMetrics (this.getFont ());
startPos = 0;
currentPos = startPos;
lastPos = currentPos;
endPos ... |
diff --git a/src/edu/msu/egit/training/Nick.java b/src/edu/msu/egit/training/Nick.java
index 9b83538..c5ce8b8 100644
--- a/src/edu/msu/egit/training/Nick.java
+++ b/src/edu/msu/egit/training/Nick.java
@@ -1,8 +1,8 @@
package edu.msu.egit.training;
public class Nick {
public static void main(String[] args){
- Syst... | true | true | public static void main(String[] args){
System.out.println("Hey Doctor Nick!");
System.out.println("There is no java, only Zuul!");
}
| public static void main(String[] args){
System.out.println("Hey Doctor Nick!");
System.out.println("There is no java, only Zuul!");
}
|
diff --git a/src/fi/helsinki/cs/tmc/actions/SubmitExerciseAction.java b/src/fi/helsinki/cs/tmc/actions/SubmitExerciseAction.java
index 841076c..87988c6 100644
--- a/src/fi/helsinki/cs/tmc/actions/SubmitExerciseAction.java
+++ b/src/fi/helsinki/cs/tmc/actions/SubmitExerciseAction.java
@@ -1,174 +1,175 @@
package fi.hel... | true | true | private void submitProject(final TmcProjectInfo project) {
final Exercise exercise = projectMediator.tryGetExerciseForProject(project, courseDb);
if (exercise == null || !exercise.isReturnable()) {
return;
}
projectMediator.saveAllFiles();
// Oh ... | private void submitProject(final TmcProjectInfo project) {
final Exercise exercise = projectMediator.tryGetExerciseForProject(project, courseDb);
if (exercise == null || !exercise.isReturnable()) {
return;
}
projectMediator.saveAllFiles();
// Oh ... |
diff --git a/src/org/iplant/pipeline/client/dnd/DragCreator.java b/src/org/iplant/pipeline/client/dnd/DragCreator.java
index 6a06910..02fdc63 100644
--- a/src/org/iplant/pipeline/client/dnd/DragCreator.java
+++ b/src/org/iplant/pipeline/client/dnd/DragCreator.java
@@ -1,257 +1,257 @@
/* * Copyright 2012 Oregon State U... | true | true | public static native void addDrag(Element element, IPCType rec, DragListener listener) /*-{
function handleDragStart(e) {
var dragIcon = listener.@org.iplant.pipeline.client.dnd.DragListener::getDragImage(Lorg/iplant/pipeline/client/json/IPCType;)(rec);
e.dataTransfer.setDragImage(dragIcon, -10, -10);
//e.... | public static native void addDrag(Element element, IPCType rec, DragListener listener) /*-{
function handleDragStart(e) {
var dragIcon = listener.@org.iplant.pipeline.client.dnd.DragListener::getDragImage(Lorg/iplant/pipeline/client/json/IPCType;)(rec);
e.dataTransfer.setDragImage(dragIcon, -10, -10);
//e.... |
diff --git a/nuxeo-platform-forms-layout-client/src/main/java/org/nuxeo/ecm/platform/forms/layout/facelets/DocumentLayoutTagHandler.java b/nuxeo-platform-forms-layout-client/src/main/java/org/nuxeo/ecm/platform/forms/layout/facelets/DocumentLayoutTagHandler.java
index 02769021..6f1847b4 100644
--- a/nuxeo-platform-form... | true | true | public void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, FaceletException, ELException {
Object document = value.getObject(ctx, DocumentModel.class);
if (!(document instanceof DocumentModel)) {
return;
}
TypeInfo typeInfo ... | public void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, FaceletException, ELException {
Object document = value.getObject(ctx, DocumentModel.class);
if (!(document instanceof DocumentModel)) {
return;
}
TypeInfo typeInfo ... |
diff --git a/src/main/java/tconstruct/modifiers/armor/ActiveTinkerArmor.java b/src/main/java/tconstruct/modifiers/armor/ActiveTinkerArmor.java
index b4c3c4bb0..f8dafd30b 100644
--- a/src/main/java/tconstruct/modifiers/armor/ActiveTinkerArmor.java
+++ b/src/main/java/tconstruct/modifiers/armor/ActiveTinkerArmor.java
@@ ... | true | true | public void onArmorTick (World world, EntityPlayer player, ItemStack itemStack, ArmorCore armor, ArmorPart type)
{
NBTTagCompound tag = itemStack.getTagCompound().getCompoundTag(((IModifyable) itemStack.getItem()).getBaseTagName());
if (tag.hasKey("Moss"))
{
int chance = tag.... | public void onArmorTick (World world, EntityPlayer player, ItemStack itemStack, ArmorCore armor, ArmorPart type)
{
NBTTagCompound tag = itemStack.getTagCompound().getCompoundTag(((IModifyable) itemStack.getItem()).getBaseTagName());
if (tag.hasKey("Moss"))
{
int chance = tag.... |
diff --git a/generator/org.eclipse.emf.texo.generator/src/org/eclipse/emf/texo/generator/SourceMerger.java b/generator/org.eclipse.emf.texo.generator/src/org/eclipse/emf/texo/generator/SourceMerger.java
index 3df003d5..5a2e6acc 100755
--- a/generator/org.eclipse.emf.texo.generator/src/org/eclipse/emf/texo/generator/Sou... | true | true | private void mergeImportAndFormat(final FileHandle fileHandle, final File targetFile) throws Exception {
final String targetLocation = targetFile.getAbsolutePath();
final JControlModel localJControlModel = getJControlModel();
final JMerger jMerger = new JMerger(localJControlModel);
jMerger.setFixInte... | private void mergeImportAndFormat(final FileHandle fileHandle, final File targetFile) throws Exception {
final String targetLocation = targetFile.getAbsolutePath();
final JControlModel localJControlModel = getJControlModel();
final JMerger jMerger = new JMerger(localJControlModel);
jMerger.setFixInte... |
diff --git a/src/main/java/net/krinsoft/killsuite/listeners/EntityListener.java b/src/main/java/net/krinsoft/killsuite/listeners/EntityListener.java
index 7101bbb..7d8bc8a 100644
--- a/src/main/java/net/krinsoft/killsuite/listeners/EntityListener.java
+++ b/src/main/java/net/krinsoft/killsuite/listeners/EntityListener.... | true | true | void entityDeath(EntityDeathEvent event) {
long n = System.nanoTime();
String world = event.getEntity().getWorld().getName();
if (!plugin.validWorld(world)) { return; }
if (!(event.getEntity() instanceof LivingEntity)) { return; }
// see if the event was an entity killing ano... | void entityDeath(EntityDeathEvent event) {
long n = System.nanoTime();
String world = event.getEntity().getWorld().getName();
if (!plugin.validWorld(world)) { return; }
if (!(event.getEntity() instanceof LivingEntity)) { return; }
// see if the event was an entity killing ano... |
diff --git a/src/de/schauderhaft/degraph/demo/person/persistence/DBPersonRepository.java b/src/de/schauderhaft/degraph/demo/person/persistence/DBPersonRepository.java
index f9e7082..bb4c064 100644
--- a/src/de/schauderhaft/degraph/demo/person/persistence/DBPersonRepository.java
+++ b/src/de/schauderhaft/degraph/demo/pe... | true | true | public void saveOrUpdate(List<Person> persons) {
// new Order();
}
| public void saveOrUpdate(List<Person> persons) {
// new Order();
// new ConsolePersonView();
}
|
diff --git a/framework/src/play/db/DBPlugin.java b/framework/src/play/db/DBPlugin.java
index 991028d1..9fe11aec 100644
--- a/framework/src/play/db/DBPlugin.java
+++ b/framework/src/play/db/DBPlugin.java
@@ -1,172 +1,172 @@
package play.db;
import com.mchange.v2.c3p0.ConnectionCustomizer;
import play.Play;
import ... | true | true | public boolean rawInvocation(Request request, Response response) throws Exception {
if (Play.mode.isDev() && request.path.equals("/@db")) {
response.status = Http.StatusCode.MOVED;
String serverOptions[] = new String[] { };
// For H2 embeded database, we'll also start th... | public boolean rawInvocation(Request request, Response response) throws Exception {
if (Play.mode.isDev() && request.path.equals("/@db")) {
response.status = Http.StatusCode.FOUND;
String serverOptions[] = new String[] { };
// For H2 embeded database, we'll also start th... |
diff --git a/src/main/java/org/trancecode/xproc/PipelineFactory.java b/src/main/java/org/trancecode/xproc/PipelineFactory.java
index c053b792..0308a2c9 100644
--- a/src/main/java/org/trancecode/xproc/PipelineFactory.java
+++ b/src/main/java/org/trancecode/xproc/PipelineFactory.java
@@ -1,224 +1,224 @@
/*
* Copyright... | true | true | private static Map<QName, StepFactory> newDefaultLibrary()
{
final Map<QName, StepFactory> library = Maps.newHashMap();
// Core steps
library.put(XProcSteps.CHOOSE, Choose.FACTORY);
library.put(XProcSteps.FOR_EACH, ForEach.FACTORY);
library.put(XProcSteps.OTHERWISE, Otherwise.FACTORY);
library.put(XProcS... | private static Map<QName, StepFactory> newDefaultLibrary()
{
final Map<QName, StepFactory> library = Maps.newHashMap();
// Core steps
library.put(XProcSteps.CHOOSE, Choose.FACTORY);
library.put(XProcSteps.FOR_EACH, ForEach.FACTORY);
library.put(XProcSteps.OTHERWISE, Otherwise.FACTORY);
library.put(XProcS... |
diff --git a/src/net/sf/freecol/client/control/InGameController.java b/src/net/sf/freecol/client/control/InGameController.java
index 2dc940459..1280f8a56 100644
--- a/src/net/sf/freecol/client/control/InGameController.java
+++ b/src/net/sf/freecol/client/control/InGameController.java
@@ -1,3574 +1,3574 @@
package net.... | true | true | public void buildColony() {
if (freeColClient.getGame().getCurrentPlayer() != freeColClient.getMyPlayer()) {
freeColClient.getCanvas().showInformationMessage("notYourTurn");
return;
}
Client client = freeColClient.getClient();
Game game = freeColClient.getGam... | public void buildColony() {
if (freeColClient.getGame().getCurrentPlayer() != freeColClient.getMyPlayer()) {
freeColClient.getCanvas().showInformationMessage("notYourTurn");
return;
}
Client client = freeColClient.getClient();
Game game = freeColClient.getGam... |
diff --git a/src/main/java/de/lessvoid/nifty/effects/impl/Move.java b/src/main/java/de/lessvoid/nifty/effects/impl/Move.java
index d37af916..c089efdc 100644
--- a/src/main/java/de/lessvoid/nifty/effects/impl/Move.java
+++ b/src/main/java/de/lessvoid/nifty/effects/impl/Move.java
@@ -1,130 +1,130 @@
package de.lessvoid.... | true | true | public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
String mode = parameter.getProperty("mode");
direction = parameter.getProperty("direction");
if (LEFT.equals(direction)) {
offset = element.getX() + element.getWidth();
} else if (RIGHT.equals(dire... | public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
String mode = parameter.getProperty("mode");
direction = parameter.getProperty("direction");
if (LEFT.equals(direction)) {
offset = element.getX() + element.getWidth();
} else if (RIGHT.equals(dire... |
diff --git a/webit-script/src/main/java/webit/script/resolvers/impl/IterGetResolver.java b/webit-script/src/main/java/webit/script/resolvers/impl/IterGetResolver.java
index 4f48f1b1..2d1264c4 100644
--- a/webit-script/src/main/java/webit/script/resolvers/impl/IterGetResolver.java
+++ b/webit-script/src/main/java/webit/... | false | true | public Object get(Object object, Object property) {
Iter iter = (Iter) object;
switch (property.hashCode()) {
case 696759469:
if ("hasNext".equals(property)) {
return iter.hasNext();
}
break;
case 100346066:... | public Object get(Object object, Object property) {
Iter iter = (Iter) object;
switch (property.hashCode()) {
case 696759469:
if ("hasNext".equals(property)) {
return iter.hasNext();
}
break;
case 100346066:... |
diff --git a/java/marytts/features/FeatureDefinition.java b/java/marytts/features/FeatureDefinition.java
index e80e901c6..952aac3df 100644
--- a/java/marytts/features/FeatureDefinition.java
+++ b/java/marytts/features/FeatureDefinition.java
@@ -1,1723 +1,1722 @@
/**
* Copyright 2006 DFKI GmbH.
* All Rights Reserve... | true | true | public FeatureDefinition(BufferedReader input, boolean readWeights)
throws IOException
{
// Section BYTEFEATURES
String line = input.readLine();
if (line == null) throw new IOException("Could not read from input");
while ( line.matches("^\\s*#.*") || line.matches("\\s*") ) {
... | public FeatureDefinition(BufferedReader input, boolean readWeights)
throws IOException
{
// Section BYTEFEATURES
String line = input.readLine();
if (line == null) throw new IOException("Could not read from input");
while ( line.matches("^\\s*#.*") || line.matches("\\s*") ) {
... |
diff --git a/src/org/python/parser/TreeBuilder.java b/src/org/python/parser/TreeBuilder.java
index b64eb3ae..831d7ae3 100644
--- a/src/org/python/parser/TreeBuilder.java
+++ b/src/org/python/parser/TreeBuilder.java
@@ -1,694 +1,698 @@
package org.python.parser;
import org.python.parser.ast.*;
import org.python.cor... | true | true | public SimpleNode closeNode(SimpleNode n, int arity) throws Exception {
exprType value;
exprType[] exprs;
switch (n.getId()) {
case -1:
System.out.println("Illegal node");
case JJTSINGLE_INPUT:
return new Interactive(makeStmts(arity));
case JJ... | public SimpleNode closeNode(SimpleNode n, int arity) throws Exception {
exprType value;
exprType[] exprs;
switch (n.getId()) {
case -1:
System.out.println("Illegal node");
case JJTSINGLE_INPUT:
return new Interactive(makeStmts(arity));
case JJ... |
diff --git a/repose-aggregator/services/service-client/impl/src/main/java/com/rackspace/papi/service/serviceclient/akka/AkkaServiceClientImpl.java b/repose-aggregator/services/service-client/impl/src/main/java/com/rackspace/papi/service/serviceclient/akka/AkkaServiceClientImpl.java
index 08b7765a1e..4dd262a381 100644
-... | false | true | public AkkaServiceClientImpl(HttpClientService httpClientService) {
this.serviceClient = getServiceClient(httpClientService);
numberOfActors = serviceClient.getPoolSize();
Config customConf = ConfigFactory.parseString(
"akka { actor { default-dispatcher {throughput = 10} } }... | public AkkaServiceClientImpl(HttpClientService httpClientService) {
this.serviceClient = getServiceClient(httpClientService);
numberOfActors = serviceClient.getPoolSize();
Config customConf = ConfigFactory.load();
Config baseConf = ConfigFactory.defaultReference();
Config co... |
diff --git a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java b/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckAsynchronous.java
index 24d65e68a..b41ed4ef5 100644
--- a/openejb3/container/openejb-core/src/main/java/org/apache/openej... | true | true | public void validate(EjbModule module) {
Set<String> applicationExceptions = new HashSet<String>();
for (ApplicationException applicationException : module.getEjbJar().getAssemblyDescriptor().getApplicationException()) {
applicationExceptions.add(applicationException.getExceptionClass())... | public void validate(EjbModule module) {
Set<String> applicationExceptions = new HashSet<String>();
for (ApplicationException applicationException : module.getEjbJar().getAssemblyDescriptor().getApplicationException()) {
applicationExceptions.add(applicationException.getExceptionClass())... |
diff --git a/src/test/java/com/wikia/webdriver/Common/Core/CommonFunctions.java b/src/test/java/com/wikia/webdriver/Common/Core/CommonFunctions.java
index e898987..6bbf6a7 100644
--- a/src/test/java/com/wikia/webdriver/Common/Core/CommonFunctions.java
+++ b/src/test/java/com/wikia/webdriver/Common/Core/CommonFunctions.... | true | true | public static String logInCookie(String userName, String password,
WebDriver driver) {
try {
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(
"http://mediawiki119.wikia.com/api.php");
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
nvps.add(ne... | public static String logInCookie(String userName, String password,
WebDriver driver) {
try {
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(
"http://mediawiki119.wikia.com/api.php");
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
nvps.add(ne... |
diff --git a/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java b/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java
index 037a0aa0..cb389721 100644
--- a/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java
+++ b/src/main/java/org/codehaus/gmavenplus/mojo/ExecuteMojo.java
@@ -1,166 +1,171 @@
... | true | true | public void execute() throws MojoExecutionException, MojoFailureException {
if (groovyVersionSupportsAction()) {
logGroovyVersion("execute");
if (scripts == null || scripts.length == 0) {
getLog().info("No scripts specified for execution. Skipping.");
... | public void execute() throws MojoExecutionException, MojoFailureException {
if (groovyVersionSupportsAction()) {
logGroovyVersion("execute");
if (scripts == null || scripts.length == 0) {
getLog().info("No scripts specified for execution. Skipping.");
... |
diff --git a/astrid/plugin-src/com/todoroo/astrid/core/CoreFilterExposer.java b/astrid/plugin-src/com/todoroo/astrid/core/CoreFilterExposer.java
index 1cf0b2df4..fe8f5e3bb 100644
--- a/astrid/plugin-src/com/todoroo/astrid/core/CoreFilterExposer.java
+++ b/astrid/plugin-src/com/todoroo/astrid/core/CoreFilterExposer.java... | true | true | public void onReceive(Context context, Intent intent) {
Resources r = context.getResources();
// core filters
Filter inbox = buildInboxFilter(r);
SearchFilter searchFilter = new SearchFilter(CorePlugin.IDENTIFIER,
r.getString(R.string.BFE_Search));
searchFil... | public void onReceive(Context context, Intent intent) {
Resources r = context.getResources();
// core filters
Filter inbox = buildInboxFilter(r);
SearchFilter searchFilter = new SearchFilter(CorePlugin.IDENTIFIER,
r.getString(R.string.BFE_Search));
searchFil... |
diff --git a/src/contributions/resources/yanel-user/src/java/org/wyona/yanel/impl/resources/yaneluser/EditYanelUserProfileResource.java b/src/contributions/resources/yanel-user/src/java/org/wyona/yanel/impl/resources/yaneluser/EditYanelUserProfileResource.java
index 4892e784c..2e0c3417c 100644
--- a/src/contributions/r... | false | true | private String getUserId() throws Exception {
// 1)
if (getEnvironment().getRequest().getParameter("id") != null) {
return getEnvironment().getRequest().getParameter("id");
}
// 2)
ResourceConfiguration resConfig = getConfiguration();
String userId = nul... | private String getUserId() throws Exception {
String userId = null;
// 1)
userId = getEnvironment().getRequest().getParameter("id");
if (userId != null) {
if (getRealm().getPolicyManager().authorize("/yanel/users/" + userId + ".html", getEnvironment().getIdentity(), new ... |
diff --git a/storage/memory/src/main/java/eu/europeana/uim/store/memory/MemoryMetaDataRecord.java b/storage/memory/src/main/java/eu/europeana/uim/store/memory/MemoryMetaDataRecord.java
index 86a76569..a7cdbf6d 100644
--- a/storage/memory/src/main/java/eu/europeana/uim/store/memory/MemoryMetaDataRecord.java
+++ b/storag... | true | true | public <N, T extends Serializable> List<T> getField(TKey<N, T> nttKey) {
List<T> result = new ArrayList<T>();
if (fields.containsKey(nttKey)) {
result.addAll(((ArrayList<T>) fields.get(nttKey)));
}
for (TKey<?, ?> qkey : qFields.keySet()) {
if (qkey.equals(nttKey)) {
result.addAll((Collection<? exte... | public <N, T extends Serializable> List<T> getField(TKey<N, T> nttKey) {
List<T> result = new ArrayList<T>();
if (fields.containsKey(nttKey)) {
result.addAll(((ArrayList<T>) fields.get(nttKey)));
}
for (TKey<?, ?> qkey : qFields.keySet()) {
if (qkey.equals(nttKey)) {
Collection<Object> values = qFie... |
diff --git a/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java b/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java
index e9e54f84f..54ef4b655 100644
--- a/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java
+++ b/src/net/java/sip/communicator/impl... | false | true | static CallRecord convertHistoryRecordToCallRecord(HistoryRecord hr)
{
CallRecordImpl result = new CallRecordImpl();
List<String> callPeerIDs = null;
List<String> callPeerStart = null;
List<String> callPeerEnd = null;
List<CallPeerState> callPeerStates = null;
/... | static CallRecord convertHistoryRecordToCallRecord(HistoryRecord hr)
{
CallRecordImpl result = new CallRecordImpl();
List<String> callPeerIDs = null;
List<String> callPeerStart = null;
List<String> callPeerEnd = null;
List<CallPeerState> callPeerStates = null;
/... |
diff --git a/components/bio-formats/src/loci/formats/in/SlidebookReader.java b/components/bio-formats/src/loci/formats/in/SlidebookReader.java
index 71176e529..506f854a7 100644
--- a/components/bio-formats/src/loci/formats/in/SlidebookReader.java
+++ b/components/bio-formats/src/loci/formats/in/SlidebookReader.java
@@ ... | false | true | protected void initFile(String id) throws FormatException, IOException {
if (debug) debug("SlidebookReader.initFile(" + id + ")");
super.initFile(id);
in = new RandomAccessStream(id);
status("Finding offsets to pixel data");
// Slidebook files appear to be comprised of four types of blocks:
... | protected void initFile(String id) throws FormatException, IOException {
if (debug) debug("SlidebookReader.initFile(" + id + ")");
super.initFile(id);
in = new RandomAccessStream(id);
status("Finding offsets to pixel data");
// Slidebook files appear to be comprised of four types of blocks:
... |
diff --git a/h2/src/main/org/h2/command/Command.java b/h2/src/main/org/h2/command/Command.java
index 2a52599cb..e6cfe2885 100644
--- a/h2/src/main/org/h2/command/Command.java
+++ b/h2/src/main/org/h2/command/Command.java
@@ -1,254 +1,268 @@
/*
* Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License,
... | false | true | public int executeUpdate() throws SQLException {
long start = startTime = System.currentTimeMillis();
Database database = session.getDatabase();
database.allocateReserveMemory();
Object sync = database.isMultiThreaded() ? (Object) session : (Object) database;
session.waitIfEx... | public int executeUpdate() throws SQLException {
long start = startTime = System.currentTimeMillis();
Database database = session.getDatabase();
database.allocateReserveMemory();
Object sync = database.isMultiThreaded() ? (Object) session : (Object) database;
session.waitIfEx... |
diff --git a/WEB-INF/src/hygeia/Algorithm.java b/WEB-INF/src/hygeia/Algorithm.java
index 66b1776..8bdb9e8 100644
--- a/WEB-INF/src/hygeia/Algorithm.java
+++ b/WEB-INF/src/hygeia/Algorithm.java
@@ -1,145 +1,145 @@
package hygeia;
import java.sql.*;
import java.security.*;
import java.util.StringTokenizer;
import ... | true | true | public static Meal suggestMeal0(User u, int type) throws SQLException {
if (u == null) {
return null;
}
Database db = u.getDb();
//pulls all meals from the universal meal list and the user's personal meals
ResultSet rs = db.execute("select mid from meals w... | public static Meal suggestMeal0(User u, int type) throws SQLException {
if (u == null) {
return null;
}
Database db = u.getDb();
//pulls all meals from the universal meal list and the user's personal meals
ResultSet rs = db.execute("select mid from meals w... |
diff --git a/Oberien/src/controller/Options.java b/Oberien/src/controller/Options.java
index 8e7c97b..571572d 100644
--- a/Oberien/src/controller/Options.java
+++ b/Oberien/src/controller/Options.java
@@ -1,302 +1,305 @@
package controller;
import java.io.File;
import java.io.FileInputStream;
import java.io.Fil... | false | true | public static void applySettings() throws SlickException, IllegalStateException {
if (game == null) {
throw new IllegalStateException("AppGameContainer in Options not initialized. Please use Options.init(AppGameContainer) first.");
}
if (resolutionChanged) {
game.setDisplayMode(resolution.getWidth(), resol... | public static void applySettings() throws SlickException, IllegalStateException {
if (game == null) {
throw new IllegalStateException("AppGameContainer in Options not initialized. Please use Options.init(AppGameContainer) first.");
}
if (resolutionChanged) {
game.setDisplayMode(resolution.getWidth(), resol... |
diff --git a/src/com/google/android/apps/dashclock/ui/SwipeDismissListViewTouchListener.java b/src/com/google/android/apps/dashclock/ui/SwipeDismissListViewTouchListener.java
index 6243489..1b1df4c 100644
--- a/src/com/google/android/apps/dashclock/ui/SwipeDismissListViewTouchListener.java
+++ b/src/com/google/android/... | true | true | public boolean onTouch(View view, MotionEvent motionEvent) {
if (mViewWidth < 2) {
mViewWidth = mListView.getWidth();
}
switch (motionEvent.getActionMasked()) {
case MotionEvent.ACTION_DOWN: {
if (mPaused) {
return false;
... | public boolean onTouch(View view, MotionEvent motionEvent) {
if (mViewWidth < 2) {
mViewWidth = mListView.getWidth();
}
switch (motionEvent.getActionMasked()) {
case MotionEvent.ACTION_DOWN: {
if (mPaused) {
return false;
... |
diff --git a/src/main/org/jboss/jms/server/connectionfactory/ConnectionFactory.java b/src/main/org/jboss/jms/server/connectionfactory/ConnectionFactory.java
index b5f07719d..fac86c93b 100644
--- a/src/main/org/jboss/jms/server/connectionfactory/ConnectionFactory.java
+++ b/src/main/org/jboss/jms/server/connectionfactor... | true | true | public synchronized void startService() throws Exception
{
try
{
log.debug(this + " starting");
started = true;
if (connectorObjectName == null)
{
throw new IllegalArgumentException("A Connector must be specified for " +
... | public synchronized void startService() throws Exception
{
try
{
log.debug(this + " starting");
started = true;
if (connectorObjectName == null)
{
throw new IllegalArgumentException("A Connector must be specified for " +
... |
diff --git a/plugin-manager/src/main/java/org/orbisgis/pluginManager/ui/SaveFilePanel.java b/plugin-manager/src/main/java/org/orbisgis/pluginManager/ui/SaveFilePanel.java
index 78b4c7237..4a7d5d8f0 100644
--- a/plugin-manager/src/main/java/org/orbisgis/pluginManager/ui/SaveFilePanel.java
+++ b/plugin-manager/src/main/j... | true | true | public File getSelectedFile() {
File ret;
JFileChooser fc = getFileChooser();
FileChooserUI ui = fc.getUI();
if (ui instanceof BasicFileChooserUI) {
BasicFileChooserUI basicUI = (BasicFileChooserUI) ui;
String fileName = basicUI.getFileName();
if ((fileName == null) || (fileName.length() == 0)) {
... | public File getSelectedFile() {
File ret;
JFileChooser fc = getFileChooser();
FileChooserUI ui = fc.getUI();
if (ui instanceof BasicFileChooserUI) {
BasicFileChooserUI basicUI = (BasicFileChooserUI) ui;
String fileName = basicUI.getFileName();
if ((fileName == null) || (fileName.length() == 0)) {
... |
diff --git a/j--/src/jminusminus/Scanner.java b/j--/src/jminusminus/Scanner.java
index c73a588..9ac5f9d 100644
--- a/j--/src/jminusminus/Scanner.java
+++ b/j--/src/jminusminus/Scanner.java
@@ -1,540 +1,538 @@
// Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas
package jminusminus;
import java.io.... | true | true | public TokenInfo getNextToken() {
StringBuffer buffer;
boolean moreWhiteSpace = true;
while (moreWhiteSpace) {
while (isWhitespace(ch)) {
nextCh();
}
if (ch == '/') {
nextCh();
if (ch == '/') {
... | public TokenInfo getNextToken() {
StringBuffer buffer;
boolean moreWhiteSpace = true;
while (moreWhiteSpace) {
while (isWhitespace(ch)) {
nextCh();
}
if (ch == '/') {
nextCh();
if (ch == '/') {
... |
diff --git a/src/main/java/io/qdb/server/databind/DataBinder.java b/src/main/java/io/qdb/server/databind/DataBinder.java
index af949b6..fea06a5 100644
--- a/src/main/java/io/qdb/server/databind/DataBinder.java
+++ b/src/main/java/io/qdb/server/databind/DataBinder.java
@@ -1,101 +1,111 @@
package io.qdb.server.databind... | false | true | public DataBinder bind(Map map, Object dto) {
Class<?> cls = dto.getClass();
for (Object o : map.entrySet()) {
Map.Entry e = (Map.Entry)o;
String key = (String)e.getKey();
Object v = e.getValue();
Field f;
try {
f = cls.getF... | public DataBinder bind(Map map, Object dto) {
Class<?> cls = dto.getClass();
for (Object o : map.entrySet()) {
Map.Entry e = (Map.Entry)o;
String key = (String)e.getKey();
Object v = e.getValue();
Field f;
try {
f = cls.getF... |
diff --git a/src/cs4120/der34dlc287lg342/xi/Driver.java b/src/cs4120/der34dlc287lg342/xi/Driver.java
index fafb79d..1e21cbc 100644
--- a/src/cs4120/der34dlc287lg342/xi/Driver.java
+++ b/src/cs4120/der34dlc287lg342/xi/Driver.java
@@ -1,97 +1,98 @@
package cs4120.der34dlc287lg342.xi;
import java.io.BufferedReader;
i... | false | true | public static void main(String[] args){
AbstractSyntaxTree.PA3 = false;
boolean PA4 = false;
boolean optimization = true;
String file = null;
for (String arg : args){
if (arg.equals("--dump_ast")){
AbstractSyntaxTree.PA3 = true;
} else if (arg.equals("--dump_ir")){
PA4 = true;
} else if (arg... | public static void main(String[] args){
AbstractSyntaxTree.PA3 = false;
boolean PA4 = false;
boolean optimization = true;
String file = null;
for (String arg : args){
if (arg.equals("--dump_ast")){
AbstractSyntaxTree.PA3 = true;
} else if (arg.equals("--dump_ir")){
PA4 = true;
} else if (arg... |
diff --git a/editor/server/src/de/hpi/epc2pn/PetriNetConverter.java b/editor/server/src/de/hpi/epc2pn/PetriNetConverter.java
index 17559dec..6d8f3a83 100644
--- a/editor/server/src/de/hpi/epc2pn/PetriNetConverter.java
+++ b/editor/server/src/de/hpi/epc2pn/PetriNetConverter.java
@@ -1,214 +1,212 @@
/**
* Copyright (c... | true | true | protected void handleControlFlow(PetriNet net, ControlFlow f, ConversionContext c) {
Node source = c.getConversionMapOut().get(f.getSource());
Node target = c.getConversionMapIn().get(f.getTarget());
/*
* In certain cases the straight-forward mapping of a flow arc
* between an XOR split (a place) and an A... | protected void handleControlFlow(PetriNet net, ControlFlow f, ConversionContext c) {
Node source = c.getConversionMapOut().get(f.getSource());
Node target = c.getConversionMapIn().get(f.getTarget());
/*
* In certain cases the straight-forward mapping of a flow arc
* between an XOR split (a place) and an A... |
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/config/EjbModule.java b/container/openejb-core/src/main/java/org/apache/openejb/config/EjbModule.java
index 998b459181..5a5f95124c 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/config/EjbModule.java
+++ b/container/openejb-core/... | false | true | public EjbModule(ClassLoader classLoader, String moduleId, String jarURI, EjbJar ejbJar, OpenejbJar openejbJar) {
if (classLoader == null) {
throw new NullPointerException("classLoader is null");
}
this.classLoader = classLoader;
this.ejbJar = ejbJar;
this.openejb... | public EjbModule(ClassLoader classLoader, String moduleId, String jarURI, EjbJar ejbJar, OpenejbJar openejbJar) {
if (classLoader == null) {
throw new NullPointerException("classLoader is null");
}
this.classLoader = classLoader;
this.ejbJar = ejbJar;
this.openejb... |
diff --git a/src/com/jidesoft/plaf/LookAndFeelFactory.java b/src/com/jidesoft/plaf/LookAndFeelFactory.java
index c171c27b..ae54f64c 100644
--- a/src/com/jidesoft/plaf/LookAndFeelFactory.java
+++ b/src/com/jidesoft/plaf/LookAndFeelFactory.java
@@ -1,1698 +1,1699 @@
/*
* @(#)LookAndFeelFactory.java 5/28/2005
*
* C... | true | true | public void customize(UIDefaults defaults) {
try {
Class syntheticaClass = Class.forName(SYNTHETICA_LNF);
Class syntheticaFrameBorder = Class.forName("com.jidesoft.plaf.synthetica.SyntheticaFrameBorder");
Class syntheticaPopupBorder = Class.forName("co... | public void customize(UIDefaults defaults) {
try {
Class syntheticaClass = Class.forName(SYNTHETICA_LNF);
Class syntheticaFrameBorder = Class.forName("com.jidesoft.plaf.synthetica.SyntheticaFrameBorder");
Class syntheticaPopupBorder = Class.forName("co... |
diff --git a/src/com/authdb/listeners/AuthDBEntityListener.java b/src/com/authdb/listeners/AuthDBEntityListener.java
index f8fd9fc..bc5c93a 100644
--- a/src/com/authdb/listeners/AuthDBEntityListener.java
+++ b/src/com/authdb/listeners/AuthDBEntityListener.java
@@ -1,100 +1,100 @@
/** (C) Copyright 2011 Contex... | true | true | public void onEntityDamage(EntityDamageEvent event)
{
if (event.getEntity() instanceof Player)
{
if(event.getCause().name().equals("FALL"))
{
Player p = (Player)event.getEntity();
if (!CheckGuest(p,Config.guests_health))
{
event.setCancelled(true);
}
}
... | public void onEntityDamage(EntityDamageEvent event)
{
if (event.getEntity() instanceof Player)
{
if(event.getCause().name().equals("FALL"))
{
Player p = (Player)event.getEntity();
if (!CheckGuest(p,Config.guests_health))
{
event.setCancelled(true);
}
}
... |
diff --git a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/serviceruntime/Protocol1RuntimeGoalStateClientTests.java b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/serviceruntime/Protocol1RuntimeGoalStateClientTests.java
index 00a669a080..903dc9756f 100644
--- a/microsoft-azure-api/src/tes... | true | true | public void goalStateClientRestartsThread() {
Protocol1RuntimeCurrentStateClient currentStateClient = new Protocol1RuntimeCurrentStateClient(null, null);
GoalStateDeserializer goalStateDeserializer = new GoalStateDeserializer() {
private final ChunkedGoalStateDeserializer deserializer =... | public void goalStateClientRestartsThread() {
Protocol1RuntimeCurrentStateClient currentStateClient = new Protocol1RuntimeCurrentStateClient(null, null);
GoalStateDeserializer goalStateDeserializer = new GoalStateDeserializer() {
private final ChunkedGoalStateDeserializer deserializer =... |
diff --git a/MyParser.java b/MyParser.java
index cb62ff8..2542228 100755
--- a/MyParser.java
+++ b/MyParser.java
@@ -1,794 +1,796 @@
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
import java_cup.runtime.*;
impo... | false | true | STO
DoFuncCall(STO sto, Vector<ExprSTO> args)
{
if(!sto.isFunc())
{
m_nNumErrors++;
m_errors.print(Formatter.toString(ErrorMsg.not_function, sto.getName()));
return (new ErrorSTO(sto.getName()));
}
// We know it's a function, do functi... | STO
DoFuncCall(STO sto, Vector<ExprSTO> args)
{
if(!sto.isFunc())
{
m_nNumErrors++;
m_errors.print(Formatter.toString(ErrorMsg.not_function, sto.getName()));
return (new ErrorSTO(sto.getName()));
}
// We know it's a function, do functi... |
diff --git a/Sweng2012QuizAppTest/src/epfl/sweng/test/QuizQuestionTest.java b/Sweng2012QuizAppTest/src/epfl/sweng/test/QuizQuestionTest.java
index 92a5b38..886e6c5 100644
--- a/Sweng2012QuizAppTest/src/epfl/sweng/test/QuizQuestionTest.java
+++ b/Sweng2012QuizAppTest/src/epfl/sweng/test/QuizQuestionTest.java
@@ -1,77 +1... | true | true | public void testQuestionOK() throws JSONException {
String json = VALID_QUESTION_JSON;
QuizQuestion result = new QuizQuestion(json);
assertNotNull(result);
String q = "The Question...";
List<String> answers = new ArrayList<String>();
answers.add("Answer 0");
... | public void testQuestionOK() throws JSONException {
String json = VALID_QUESTION_JSON;
QuizQuestion result = new QuizQuestion(json);
assertNotNull(result);
String q = "The Question...";
List<String> answers = new ArrayList<String>();
answers.add("Answer 0");
... |
diff --git a/src/markehme/factionsplus/Cmds/CmdWarp.java b/src/markehme/factionsplus/Cmds/CmdWarp.java
index c923a8f..364c161 100644
--- a/src/markehme/factionsplus/Cmds/CmdWarp.java
+++ b/src/markehme/factionsplus/Cmds/CmdWarp.java
@@ -1,205 +1,205 @@
package markehme.factionsplus.Cmds;
import java.io.BufferedRead... | true | true | public void perform() {
String warpname = this.argAsString(0);
String setPassword = null;
if(this.argAsString(1) != null) {
setPassword = this.argAsString(1);
} else {
setPassword = "nullvalue";
}
if(!FactionsPlus.permission.has(sender, "factionsplus.warp")) {
sender.sendMessage(ChatColor.RED + ... | public void perform() {
String warpname = this.argAsString(0);
String setPassword = null;
if(this.argAsString(1) != null) {
setPassword = this.argAsString(1);
} else {
setPassword = "nullvalue";
}
if(!FactionsPlus.permission.has(sender, "factionsplus.warp")) {
sender.sendMessage(ChatColor.RED + ... |
diff --git a/FRC2013/src/edu/wpi/first/wpilibj/templates/Think.java b/FRC2013/src/edu/wpi/first/wpilibj/templates/Think.java
index 3e6df0b..0601d0c 100644
--- a/FRC2013/src/edu/wpi/first/wpilibj/templates/Think.java
+++ b/FRC2013/src/edu/wpi/first/wpilibj/templates/Think.java
@@ -1,88 +1,88 @@
/*
* To change this te... | true | true | public static void robotThink(){
double[] temp = new double[2];
temp= processJoystick(Input.rightY, Input.leftY);
newJoystickLeft= temp[0];
newJoystickRight= temp[1];
bShooterOn = Input.bTriggerDown;
if (Input.bSlowSpeedRight||Input.bSlowSpeedLef... | public static void robotThink(){
double[] temp = new double[2];
temp= processJoystick(Input.rightY, Input.leftY);
newJoystickLeft= temp[0];
newJoystickRight= temp[1];
bShooterOn = Input.bTriggerDown;
if (Input.bSlowSpeedRight||Input.bSlowSpeedLef... |
diff --git a/chordest/src/test/java/chordest/chord/recognition/TemplateProducerTest.java b/chordest/src/test/java/chordest/chord/recognition/TemplateProducerTest.java
index 617bcf1..fec9966 100644
--- a/chordest/src/test/java/chordest/chord/recognition/TemplateProducerTest.java
+++ b/chordest/src/test/java/chordest/cho... | true | true | public void testTemplateProducerSmoke() {
TemplateProducer p = new TemplateProducer(Note.A, true);
double[] template = p.getTemplateFor(Chord.major(Note.A));
Assert.assertEquals(12, template.length);
System.out.println(Arrays.toString(template));
template = p.getTemplateFor(Chord.major(Note.D));
System.out... | public void testTemplateProducerSmoke() {
TemplateProducer p = new TemplateProducer(Note.A);
double[] template = p.getTemplateFor(Chord.major(Note.A));
Assert.assertEquals(12, template.length);
System.out.println(Arrays.toString(template));
template = p.getTemplateFor(Chord.major(Note.D));
System.out.print... |
diff --git a/src/com/github/noxan/aves/demo/AuthServer.java b/src/com/github/noxan/aves/demo/AuthServer.java
index 706a5b9..5040ed7 100644
--- a/src/com/github/noxan/aves/demo/AuthServer.java
+++ b/src/com/github/noxan/aves/demo/AuthServer.java
@@ -1,71 +1,71 @@
/*
* Copyright (c) 2012, noxan
* See LICENSE for de... | false | true | public void readData(Connection connection, Object data) {
String parts[] = ((String)data).trim().split(" ");
String message = parts[0].toUpperCase();
String[] args = new String[parts.length - 1];
System.arraycopy(parts, 1, args, 0, args.length);
try {
switch(mess... | public void readData(Connection connection, Object data) {
String parts[] = ((String)data).trim().split(" ");
String message = parts[0].toUpperCase();
String[] args = new String[parts.length - 1];
System.arraycopy(parts, 1, args, 0, args.length);
try {
switch(mess... |
diff --git a/src/main/java/com/ngdb/entities/Market.java b/src/main/java/com/ngdb/entities/Market.java
index 1eec4e2..5bbfac5 100644
--- a/src/main/java/com/ngdb/entities/Market.java
+++ b/src/main/java/com/ngdb/entities/Market.java
@@ -1,220 +1,220 @@
package com.ngdb.entities;
import com.google.common.base.Predic... | true | true | public List<ShopItem> findRandomForSaleItems(int count) {
List<ShopItem> forSaleItems = new ArrayList<ShopItem>(getShopItemsWithCover());
List<ShopItem> randomItems = new ArrayList<ShopItem>();
Set<Integer> ids = new HashSet<Integer>();
if(currentUser.isLogged()) {
User ... | public List<ShopItem> findRandomForSaleItems(int count) {
List<ShopItem> forSaleItems = new ArrayList<ShopItem>(getShopItemsWithCover());
List<ShopItem> randomItems = new ArrayList<ShopItem>();
Set<Integer> ids = new HashSet<Integer>();
if(currentUser.isLogged()) {
User ... |
diff --git a/src/Galaxy/Visitor/GalaxyToLoniConverter.java b/src/Galaxy/Visitor/GalaxyToLoniConverter.java
index f27b0e4..405e6ae 100644
--- a/src/Galaxy/Visitor/GalaxyToLoniConverter.java
+++ b/src/Galaxy/Visitor/GalaxyToLoniConverter.java
@@ -1,156 +1,159 @@
package Galaxy.Visitor;
import java.util.ArrayList;
im... | false | true | public Pair<Module, List<Connection>> visit(Step step){
Module genModule;
List<Connection> genConnection = new LinkedList<Connection>();
Tool details = GalaxySpecification.getDatabase().getTool(step.getToolId());
String description;
int posX;
int posY;
String id;
String name;
... | public Pair<Module, List<Connection>> visit(Step step){
Module genModule;
List<Connection> genConnection = new LinkedList<Connection>();
Tool details = GalaxySpecification.getDatabase().getTool(step.getToolId());
String description;
int posX;
int posY;
String id;
String name;
... |
diff --git a/trunk/org.mwc.asset.legacy/src/ASSET/Models/Movement/OnTopWaypoint.java b/trunk/org.mwc.asset.legacy/src/ASSET/Models/Movement/OnTopWaypoint.java
index 9a1d19c5d..e6acb7fb4 100644
--- a/trunk/org.mwc.asset.legacy/src/ASSET/Models/Movement/OnTopWaypoint.java
+++ b/trunk/org.mwc.asset.legacy/src/ASSET/Models... | false | true | public Status step(HighLevelDemandedStatus highLevelDemStatus,
Status current,
long newTime,
MovementCharacteristics moves,
TurnAlgorithm turner)
{
// ok, loop through the available time
while (current.getTime() < newTime)
... | public Status step(HighLevelDemandedStatus highLevelDemStatus,
Status current,
long newTime,
MovementCharacteristics moves,
TurnAlgorithm turner)
{
// ok, loop through the available time
while (current.getTime() < newTime)
... |
diff --git a/src/test/org/apache/commons/codec/language/SoundexTest.java b/src/test/org/apache/commons/codec/language/SoundexTest.java
index 33c8bb7d..426732d2 100755
--- a/src/test/org/apache/commons/codec/language/SoundexTest.java
+++ b/src/test/org/apache/commons/codec/language/SoundexTest.java
@@ -1,382 +1,390 @@
... | false | true | public void testEncodeIgnoreApostrophes() {
this.encodeAll(new String[] { "OBrien", "'OBrien", "O'Brien", "OB'rien", "OBr'ien", "OBri'en", "OBrie'n", "OBrien'" }, "O165");
}
/**
* Test data from http://www.myatt.demon.co.uk/sxalg.htm
*/
public void testEncodeIgnoreHyphens() {
this.e... | public void testEncodeIgnoreApostrophes() {
this.encodeAll(new String[] { "OBrien", "'OBrien", "O'Brien", "OB'rien", "OBr'ien", "OBri'en", "OBrie'n", "OBrien'" }, "O165");
}
/**
* Test data from http://www.myatt.demon.co.uk/sxalg.htm
*/
public void testEncodeIgnoreHyphens() {
this.e... |
diff --git a/src/main/java/com/github/ucchyocean/et/ExpTimer.java b/src/main/java/com/github/ucchyocean/et/ExpTimer.java
index 4d6f643..a7dd0ed 100644
--- a/src/main/java/com/github/ucchyocean/et/ExpTimer.java
+++ b/src/main/java/com/github/ucchyocean/et/ExpTimer.java
@@ -1,437 +1,446 @@
/*
* @author ucchy
* @... | false | true | public boolean onCommand(
CommandSender sender, Command command, String label, String[] args) {
// 引数がない場合は実行しない
if ( args.length <= 0 ) {
return false;
}
if ( args[0].equalsIgnoreCase("start") ) {
// タイマーをスタートする
if ( runnable == nul... | public boolean onCommand(
CommandSender sender, Command command, String label, String[] args) {
// 引数がない場合は実行しない
if ( args.length <= 0 ) {
return false;
}
if ( args[0].equalsIgnoreCase("start") ) {
// タイマーをスタートする
if ( runnable == nul... |
diff --git a/src/main/java/com/github/signed/mp3/Mp3Album.java b/src/main/java/com/github/signed/mp3/Mp3Album.java
index d0511dc..d1eb7f7 100644
--- a/src/main/java/com/github/signed/mp3/Mp3Album.java
+++ b/src/main/java/com/github/signed/mp3/Mp3Album.java
@@ -1,62 +1,63 @@
package com.github.signed.mp3;
import com... | false | true | public void forEachMp3File(Callback<Context> callback){
try (DirectoryStream<Path> ds = Files.newDirectoryStream(path, "*.samples")) {
List<Path> allPath = Lists.newArrayList(ds);
Collections.sort(allPath, new Comparator<Path>() {
@Override
public int ... | public void forEachMp3File(Callback<Context> callback){
System.out.println("process album at '"+path+"'");
try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(path, "*.mp3")) {
List<Path> allPath = Lists.newArrayList(directoryStream);
Collections.sort(allPat... |
diff --git a/Datamining/src/datamining/Utils.java b/Datamining/src/datamining/Utils.java
index 47a636b..7c03104 100644
--- a/Datamining/src/datamining/Utils.java
+++ b/Datamining/src/datamining/Utils.java
@@ -1,56 +1,59 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor... | true | true | public static String getOption(String flag, String[] options) throws Exception {
int i = 0;
String readFlag = options[i];
while ((i < options.length) && !readFlag.equals("-" + flag)) {
readFlag = options[i];
i = i + 2;
}
if (!readFlag.equals("-" + fl... | public static String getOption(String flag, String[] options) throws Exception {
if (options.length == 0) {
throw new Exception("Nenhuma opcao foi definida!");
}
int i = 0;
String readFlag = options[i];
while ((i < options.length) && !readFlag.equals("-" + flag))... |
diff --git a/src/com/googlecode/jmxtrans/model/output/GraphiteWriter.java b/src/com/googlecode/jmxtrans/model/output/GraphiteWriter.java
index 8a6fe2935..a519f90c3 100644
--- a/src/com/googlecode/jmxtrans/model/output/GraphiteWriter.java
+++ b/src/com/googlecode/jmxtrans/model/output/GraphiteWriter.java
@@ -1,189 +1,19... | false | true | public void internalWrite(Server server, Query query, ImmutableList<Result> results) throws Exception {
Socket socket = null;
try {
socket = pool.borrowObject(address);
PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream(), UTF_8), true);
List<String> typeNames = this.getT... | public void internalWrite(Server server, Query query, ImmutableList<Result> results) throws Exception {
Socket socket = null;
PrintWriter writer = null;
try {
socket = pool.borrowObject(address);
writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream(), UTF_8), true);
List<String> type... |
diff --git a/WeCharades/src/com/example/wecharades/model/DataController.java b/WeCharades/src/com/example/wecharades/model/DataController.java
index 3ffba16..d57f4b0 100644
--- a/WeCharades/src/com/example/wecharades/model/DataController.java
+++ b/WeCharades/src/com/example/wecharades/model/DataController.java
@@ -1,5... | true | true | private ArrayList<Game> parseUpdatedGameList(TreeMap<Game, ArrayList<Turn>> dbGames) {
Game localGame;
for(Map.Entry<Game, ArrayList<Turn>> gameMap : dbGames.entrySet()){
localGame = m.getGame(gameMap.getKey().getGameId());
if(localGame == null || m.getTurns(localGame) == null){
//If the local game does ... | private ArrayList<Game> parseUpdatedGameList(TreeMap<Game, ArrayList<Turn>> dbGames) {
Game localGame;
for(Map.Entry<Game, ArrayList<Turn>> gameMap : dbGames.entrySet()){
localGame = m.getGame(gameMap.getKey().getGameId());
if(localGame == null || m.getTurns(localGame) == null){
//If the local game does ... |
diff --git a/Asteroids/src/core/Game.java b/Asteroids/src/core/Game.java
index 7205bd8..2c13435 100644
--- a/Asteroids/src/core/Game.java
+++ b/Asteroids/src/core/Game.java
@@ -1,104 +1,105 @@
/**
*
*/
package core;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.... | true | true | public void update(GameContainer container, int delta)
throws SlickException {
Input input = container.getInput();
ship.update(input.getMouseX(), input.getMouseY(), delta);
if (input.isMouseButtonDown(Input.MOUSE_LEFT_BUTTON)) {
ship.thrust();
}
if (input.isMousePressed(Input.MOUSE_RIGHT_BUTTON)... | public void update(GameContainer container, int delta)
throws SlickException {
Input input = container.getInput();
ship.update(input.getMouseX(), input.getMouseY(), delta);
if (input.isMouseButtonDown(Input.MOUSE_LEFT_BUTTON)) {
ship.thrust();
}
if (input.isMousePressed(Input.MOUSE_RIGHT_BUTTON)... |
diff --git a/test-src/org/pentaho/platform/dataaccess/catalog/impl/DatasourceChildTest.java b/test-src/org/pentaho/platform/dataaccess/catalog/impl/DatasourceChildTest.java
index 4d56cb13..1c6a6a14 100644
--- a/test-src/org/pentaho/platform/dataaccess/catalog/impl/DatasourceChildTest.java
+++ b/test-src/org/pentaho/pla... | true | true | public void setUp() throws Exception {
datasourceChild = new DatasourceChild( );
datasourceChild.setId( "1" );
datasourceChild.setName( "testDatasource1" );
DatasourceChild datasourceChild2 = new DatasourceChild( );
datasourceChild2.setId( "2" );
datasourceChild2.setName( "testDatasource2" ... | public void setUp() throws Exception {
datasourceChild = new DatasourceChild( );
datasourceChild.setId( "1" );
datasourceChild.setName( "testDatasource1" );
DatasourceChild datasourceChild2 = new DatasourceChild( );
datasourceChild2.setId( "2" );
datasourceChild2.setName( "testDatasource2" ... |
diff --git a/OpenLogJava/WebContent/WEB-INF/src/com/paulwithers/openLog/OpenLogItem.java b/OpenLogJava/WebContent/WEB-INF/src/com/paulwithers/openLog/OpenLogItem.java
index 3de8a0b..7f9d1e3 100644
--- a/OpenLogJava/WebContent/WEB-INF/src/com/paulwithers/openLog/OpenLogItem.java
+++ b/OpenLogJava/WebContent/WEB-INF/src/... | true | true | public static boolean writeToLog() {
// exit early if there is no database
Database db = null;
boolean retval = false;
Document logDoc = null;
RichTextItem rtitem = null;
Database docDb = null;
try {
if (StringUtil.isEmpty(getLogEmail())) {
db = getLogDb();
} else {
db = getSession().getDa... | public static boolean writeToLog() {
// exit early if there is no database
Database db = null;
boolean retval = false;
Document logDoc = null;
RichTextItem rtitem = null;
Database docDb = null;
try {
if (StringUtil.isEmpty(getLogEmail())) {
db = getLogDb();
} else {
db = getSession().getDa... |
diff --git a/extrabiomes/src/extrabiomes/module/amica/forestry/ForestryPlugin.java b/extrabiomes/src/extrabiomes/module/amica/forestry/ForestryPlugin.java
index 70acf212..be57c715 100644
--- a/extrabiomes/src/extrabiomes/module/amica/forestry/ForestryPlugin.java
+++ b/extrabiomes/src/extrabiomes/module/amica/forestry/F... | false | true | public void preInit(PluginEvent.Pre event) {
if (!isEnabled()) return;
ExtrabiomesLog.info("Initializing Forestry plugin.");
try {
liquidStack = Class
.forName("buildcraft.api.liquids.LiquidStack");
liquidStackConstructor = Optional.fromNullable(liquidStack
.getConstructor(int.class, int.class, i... | public void preInit(PluginEvent.Pre event) {
if (!isEnabled()) return;
ExtrabiomesLog.info("Initializing Forestry plugin.");
try {
liquidStack = Class
.forName("buildcraft.api.liquids.LiquidStack");
liquidStackConstructor = Optional.fromNullable(liquidStack
.getConstructor(int.class, int.class, i... |
diff --git a/src/com/mojang/mojam/resources/Texts.java b/src/com/mojang/mojam/resources/Texts.java
index f28f45ca..5375c547 100644
--- a/src/com/mojang/mojam/resources/Texts.java
+++ b/src/com/mojang/mojam/resources/Texts.java
@@ -1,77 +1,77 @@
package com.mojang.mojam.resources;
import java.text.MessageFormat;
im... | true | true | public String playerName(int team) {
switch (team) {
case 1:
return player1Name();
case 2:
return player1Name();
}
return "";
}
| public String playerName(int team) {
switch (team) {
case 1:
return player1Name();
case 2:
return player2Name();
}
return "";
}
|
diff --git a/javamelody-swing/src/main/java/net/bull/javamelody/ChartsPanel.java b/javamelody-swing/src/main/java/net/bull/javamelody/ChartsPanel.java
index a1ba6f17..3794e8d9 100644
--- a/javamelody-swing/src/main/java/net/bull/javamelody/ChartsPanel.java
+++ b/javamelody-swing/src/main/java/net/bull/javamelody/Charts... | true | true | ChartsPanel(RemoteCollector remoteCollector) {
super(remoteCollector);
final JLabel throbberLabel = new JLabel(THROBBER_ICON);
add(throbberLabel, BorderLayout.NORTH);
add(createButtonsPanel(), BorderLayout.CENTER);
// SwingWorker pour afficher le reste de l'écran et pour éviter de faire attendre rien que p... | ChartsPanel(RemoteCollector remoteCollector) {
super(remoteCollector);
final JLabel throbberLabel = new JLabel(THROBBER_ICON);
add(throbberLabel, BorderLayout.NORTH);
add(createButtonsPanel(), BorderLayout.CENTER);
// SwingWorker pour afficher le reste de l'écran et pour éviter de faire attendre rien que p... |
diff --git a/GlassLineFactory/src/engine/sky/agent/SkyPopUpAgent.java b/GlassLineFactory/src/engine/sky/agent/SkyPopUpAgent.java
index c007590..6d96c06 100755
--- a/GlassLineFactory/src/engine/sky/agent/SkyPopUpAgent.java
+++ b/GlassLineFactory/src/engine/sky/agent/SkyPopUpAgent.java
@@ -1,497 +1,498 @@
package engine... | false | true | public boolean pickAndExecuteAnAction() {
System.out.println(this + " Scheduler with state = " +myState + " target = " + target);
if (currentGlass != null && target == Target.None && myState == State.Up) {
if (firstMachine.state == MachineState.Idle) {
target = Target.Machine1;
passToMachine(firstMach... | public boolean pickAndExecuteAnAction() {
System.out.println(this + " Scheduler with state = " +myState + " target = " + target);
if (currentGlass != null && target == Target.None && myState == State.Up) {
if (firstMachine.state == MachineState.Idle) {
target = Target.Machine1;
passToMachine(firstMach... |
diff --git a/src/rabbitmish/coloringchickens/MainThread.java b/src/rabbitmish/coloringchickens/MainThread.java
index 5a0a720..952d208 100644
--- a/src/rabbitmish/coloringchickens/MainThread.java
+++ b/src/rabbitmish/coloringchickens/MainThread.java
@@ -1,89 +1,91 @@
/* -*- mode:java; coding:utf-8; -*- Time-stamp: <Mai... | true | true | public void run()
{
final long start_time = System.currentTimeMillis();
long skip_interval = 0;
while (_running)
{
final long frame_time = (start_time + (System.currentTimeMillis() - start_time) / FRAME_DURATION * FRAME_DURATION + skip_interval);
_view.... | public void run()
{
final long start_time = System.currentTimeMillis();
long skip_interval = 0;
while (_running)
{
final long frame_time = (start_time
+ (System.currentTimeMillis() - start_time) / FRAME_DURATION * FRAME_DURATION
... |
diff --git a/src/main/java/hudson/plugins/blazemeter/api/BlazemeterApi.java b/src/main/java/hudson/plugins/blazemeter/api/BlazemeterApi.java
index 2d55742..f74ce59 100644
--- a/src/main/java/hudson/plugins/blazemeter/api/BlazemeterApi.java
+++ b/src/main/java/hudson/plugins/blazemeter/api/BlazemeterApi.java
@@ -1,636 +... | true | true | public synchronized ArrayList<TestInfo> getTests(String userKey) throws JSONException, IOException {
if (userKey.trim().isEmpty()) {
logger.println("getTests userKey is empty");
return null;
}
String url =getUrlForTestList(APP_KEY, userKey);
JSONObject jo = get... | public synchronized ArrayList<TestInfo> getTests(String userKey) throws JSONException, IOException {
if (userKey.trim().isEmpty()) {
logger.println("getTests userKey is empty");
return null;
}
String url =getUrlForTestList(APP_KEY, userKey);
JSONObject jo = get... |
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/InterventionView.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/InterventionView.java
index 2ea75823..9b066d08 100644
--- a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/InterventionView.java
+++ b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/Int... | false | true | public boolean configure(Element element, ClientFactory clientFactory,
Arguments args) {
String height = args.getArg(0);
EventBus eventBus = clientFactory.getEventBus(args.getArg(1));
table.setSize("100%", height);
table.setEmptyTableWidget(new Label("No Interventions"));
pager = new SimplePager(TextL... | public boolean configure(Element element, ClientFactory clientFactory,
Arguments args) {
String height = args.getArg(0);
EventBus eventBus = clientFactory.getEventBus(args.getArg(1));
table.setSize("100%", height);
table.setEmptyTableWidget(new Label("No Interventions"));
pager = new SimplePager(TextL... |
diff --git a/org.dawnsci.plotting/src/org/dawnsci/plotting/expression/ExpressionLazyDataset.java b/org.dawnsci.plotting/src/org/dawnsci/plotting/expression/ExpressionLazyDataset.java
index 78fc2bb91..8aa124363 100644
--- a/org.dawnsci.plotting/src/org/dawnsci/plotting/expression/ExpressionLazyDataset.java
+++ b/org.daw... | true | true | public void setShapeSilently(final int[] shape) {
this.shape = shape;
try {
size = AbstractDataset.calcSize(shape);
} catch (IllegalArgumentException e) {
size = Integer.MAX_VALUE; // this indicates that the entire dataset cannot be read in!
}
if (lazyErrorDeligate!=null) lazyErrorDeligate.setShape(sh... | public void setShapeSilently(final int[] shape) {
this.shape = shape;
try {
size = AbstractDataset.calcSize(shape);
} catch (IllegalArgumentException e) {
size = Integer.MAX_VALUE; // this indicates that the entire dataset cannot be read in!
}
if (lazyErrorDelegate!=null) lazyErrorDelegate.setShape(sh... |
diff --git a/src/ui/side/TimeWavePanel.java b/src/ui/side/TimeWavePanel.java
index 276d12c..3af40f1 100644
--- a/src/ui/side/TimeWavePanel.java
+++ b/src/ui/side/TimeWavePanel.java
@@ -1,168 +1,169 @@
package src.ui.side;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;... | true | true | public TimeWavePanel(GameController controller, boolean isMultiplayer) {
super(new GridBagLayout());
this.gc = controller;
waveNumberLabel = new JLabel(waveText);
waveNumberValueLabel = new JLabel(Integer.toString(gc.getGame().getWavesSent()));
nextWaveLabel = new JLabel(nextWaveText);
nextWaveVal... | public TimeWavePanel(GameController controller, boolean isMultiplayer) {
super(new GridBagLayout());
this.gc = controller;
waveNumberLabel = new JLabel(waveText);
waveNumberValueLabel = new JLabel(Integer.toString(gc.getGame().getWavesSent()));
nextWaveLabel = new JLabel(nextWaveText);
nextWaveVal... |
diff --git a/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java b/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java
index 41faff52c..96c6eae12 100644
--- a/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java
+++ b/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java
@@ -1,36 +1,40 @@
/* Generated By:JJTree: Do not edit this... | true | true | public void discardIfNecessary() {
SimpleNode parent = (SimpleNode)jjtGetParent();
if (jjtGetNumChildren() > 0 && jjtGetChild(0) instanceof ASTAnnotation) {
super.discardIfNecessary();
} else if (parent.jjtGetNumChildren() == 2) {
parent.children = new Node[] {parent... | public void discardIfNecessary() {
SimpleNode parent = (SimpleNode)jjtGetParent();
if (jjtGetNumChildren() > 0 && jjtGetChild(0) instanceof ASTAnnotation) {
super.discardIfNecessary();
} else if (parent.jjtGetNumChildren() == 2) {
parent.children = new Node[] {parent... |
diff --git a/src/com/sun/gi/framework/status/ReportUpdater.java b/src/com/sun/gi/framework/status/ReportUpdater.java
index 65c5c630d..12c497ee2 100644
--- a/src/com/sun/gi/framework/status/ReportUpdater.java
+++ b/src/com/sun/gi/framework/status/ReportUpdater.java
@@ -1,121 +1,121 @@
/*
* Copyright © 2006 Sun Micros... | true | true | public ReportUpdater(ReportManager mgr) {
reportManager = mgr;
updateTime = mgr.getReportTTL();
thread = new Thread(new Runnable() {
public void run() {
lastUpdate = System.currentTimeMillis();
while (true) {
try {
... | public ReportUpdater(ReportManager mgr) {
reportManager = mgr;
updateTime = mgr.getReportTTL();
thread = new Thread(new Runnable() {
public void run() {
lastUpdate = System.currentTimeMillis();
while (true) {
try {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.