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/trunk/src/org/obdreader/io/ObdConnectThread.java b/trunk/src/org/obdreader/io/ObdConnectThread.java
index 2ff628d..f877508 100644
--- a/trunk/src/org/obdreader/io/ObdConnectThread.java
+++ b/trunk/src/org/obdreader/io/ObdConnectThread.java
@@ -1,147 +1,152 @@
package org.obdreader.io;
import java.io.IO... | false | true | public void run() {
try {
startDevice();
for (int i = 0; i < cmds.size(); i++) {
results.put(cmds.get(i).getDesc(),"");
}
for (int i = 0; !stop; i = ((i+1) % cmds.size())) {
if (i == 0) {
results.put("Obs Time", Long.toString(... | public void run() {
try {
startDevice();
for (int i = 0; i < cmds.size(); i++) {
results.put(cmds.get(i).getDesc(),"");
}
for (int i = 0; !stop; i = ((i+1) % cmds.size())) {
if (i == 0) {
results.put("Obs Time", Long.toString(... |
diff --git a/java/src/test/java/org/craftedsw/tictactoe/strategy/MarkWinningStrategyShould.java b/java/src/test/java/org/craftedsw/tictactoe/strategy/MarkWinningStrategyShould.java
index deee990..2c9e1ff 100644
--- a/java/src/test/java/org/craftedsw/tictactoe/strategy/MarkWinningStrategyShould.java
+++ b/java/src/test/... | true | true | public static Iterable<Object[]> marks() {
return Arrays.asList(new Object[][]{
{new String[]{"X", "X", " ", " ", " ", " ", " ", " ", " "}, CELL_3},
{new String[]{"0", "0", " ", " ", " ", " ", " ", " ", " "}, CELL_3},
{new String[]{" ", " ", " ", "X", " ", "X"... | public static Iterable<Object[]> marks() {
return Arrays.asList(new Object[][]{
{new String[]{"X", "X", " ", " ", " ", " ", " ", " ", " "}, CELL_3},
{new String[]{"0", "0", " ", " ", " ", " ", " ", " ", " "}, CELL_3},
{new String[]{" ", " ", " ", "X", " ", "X"... |
diff --git a/omod/src/test/java/org/openmrs/module/patientregistration/controller/workflow/PrimaryCareReceptionEncounterControllerTest.java b/omod/src/test/java/org/openmrs/module/patientregistration/controller/workflow/PrimaryCareReceptionEncounterControllerTest.java
index 6728fd5..af2fa39 100644
--- a/omod/src/test/j... | true | true | public void processPayment_shouldCreateVisitAndCheckInPatient() throws Exception {
Patient patient = Context.getPatientService().getPatient(7);
String listOfObs = "CODED,11,Medical certificate without diagnosis,1000;NUMERIC,50,50 Gourdes,1001;NON-CODED,0,12345,1002;";
PrimaryCareReceptionEncounterController c... | public void processPayment_shouldCreateVisitAndCheckInPatient() throws Exception {
Patient patient = Context.getPatientService().getPatient(7);
String listOfObs = "CODED,11,Medical certificate without diagnosis,1000;NUMERIC,50,50 Gourdes,1001;NON-CODED,0,12345,1002;";
PrimaryCareReceptionEncounterController c... |
diff --git a/src/main/java/org/thymeleaf/standard/processor/attr/AbstractStandardCaseAttrProcessor.java b/src/main/java/org/thymeleaf/standard/processor/attr/AbstractStandardCaseAttrProcessor.java
index e0cc1db8..24467643 100644
--- a/src/main/java/org/thymeleaf/standard/processor/attr/AbstractStandardCaseAttrProcessor... | true | true | protected boolean isVisible(final Arguments arguments, final Element element, final String attributeName) {
if (!arguments.hasLocalVariable(AbstractStandardSwitchStructureAttrProcessor.SWITCH_VARIABLE_NAME)) {
throw new TemplateProcessingException(
"Cannot specify a ... | protected boolean isVisible(final Arguments arguments, final Element element, final String attributeName) {
if (!arguments.hasLocalVariable(AbstractStandardSwitchStructureAttrProcessor.SWITCH_VARIABLE_NAME)) {
throw new TemplateProcessingException(
"Cannot specify a ... |
diff --git a/basiclti-portlet/src/java/org/sakaiproject/portlets/IMSBLTIPortlet.java b/basiclti-portlet/src/java/org/sakaiproject/portlets/IMSBLTIPortlet.java
index 4f70043..39d4226 100644
--- a/basiclti-portlet/src/java/org/sakaiproject/portlets/IMSBLTIPortlet.java
+++ b/basiclti-portlet/src/java/org/sakaiproject/port... | false | true | public void processActionSave(String action,ActionRequest request, ActionResponse response)
throws PortletException, IOException {
PortletSession pSession = request.getPortletSession(true);
Properties sakaiProperties = getSakaiProperties();
String imsType = getFormParameter(request,sakaiPro... | public void processActionSave(String action,ActionRequest request, ActionResponse response)
throws PortletException, IOException {
PortletSession pSession = request.getPortletSession(true);
Properties sakaiProperties = getSakaiProperties();
String imsType = getFormParameter(request,sakaiPro... |
diff --git a/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java b/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java
index aceabb70..91599ce1 100644
--- a/hazelcast-client/src/main/java/com/hazelcast/client/MapClientProxy.java
+++ b/hazelcast-client/src/main/java/com/hazelcast/... | true | true | public Map<K, V> getAll(Set<K> setKeys) {
check(setKeys);
Keys keys = new Keys();
for (K key : setKeys) {
keys.add(toData(key));
}
Pairs pairs = (Pairs) proxyHelper.doOp(ClusterOperation.CONCURRENT_MAP_GET_ALL, keys, null);
List<KeyValue> lsKeyValues = pai... | public Map<K, V> getAll(Set<K> setKeys) {
Keys keys = new Keys();
for (K key : setKeys) {
keys.add(toData(key));
}
Pairs pairs = (Pairs) proxyHelper.doOp(ClusterOperation.CONCURRENT_MAP_GET_ALL, keys, null);
List<KeyValue> lsKeyValues = pairs.getKeyValues();
... |
diff --git a/src/java/org/infoglue/deliver/jobs/ExpireCacheJob.java b/src/java/org/infoglue/deliver/jobs/ExpireCacheJob.java
index ed39ac349..bf3164309 100755
--- a/src/java/org/infoglue/deliver/jobs/ExpireCacheJob.java
+++ b/src/java/org/infoglue/deliver/jobs/ExpireCacheJob.java
@@ -1,217 +1,217 @@
/* ===============... | false | true | public synchronized void execute(JobExecutionContext context) throws JobExecutionException
{
try
{
CacheController.evictWaitingCache();
}
catch (Exception e)
{
e.printStackTrace();
}
logger.info("---" + context.getJobDetail().getFu... | public synchronized void execute(JobExecutionContext context) throws JobExecutionException
{
try
{
CacheController.evictWaitingCache();
}
catch (Exception e)
{
e.printStackTrace();
}
logger.info("---" + context.getJobDetail().getFu... |
diff --git a/Framework/java/com/xaf/sql/query/ResultSetNavigatorButtonsField.java b/Framework/java/com/xaf/sql/query/ResultSetNavigatorButtonsField.java
index 56d8945d..f2654e00 100644
--- a/Framework/java/com/xaf/sql/query/ResultSetNavigatorButtonsField.java
+++ b/Framework/java/com/xaf/sql/query/ResultSetNavigatorBut... | false | true | public String getControlHtml(DialogContext dc)
{
String attrs = dc.getSkin().getDefaultControlAttrs();
QuerySelectScrollState state = (QuerySelectScrollState) dc.getRequest().getAttribute(dc.getTransactionId() + "_state");
if(state == null)
return "QuerySelectScrollState not found.";
boolean isScrollable ... | public String getControlHtml(DialogContext dc)
{
String attrs = dc.getSkin().getDefaultControlAttrs();
QuerySelectScrollState state = (QuerySelectScrollState) dc.getRequest().getAttribute(dc.getTransactionId() + "_state");
if(state == null)
return "QuerySelectScrollState not found.";
boolean isScrollable ... |
diff --git a/plugins/diagram/com.vectorsf.jvoice.diagram.core/src/com/vectorsf/jvoice/diagram/core/diagram/CreateDiagramJVoice.java b/plugins/diagram/com.vectorsf.jvoice.diagram.core/src/com/vectorsf/jvoice/diagram/core/diagram/CreateDiagramJVoice.java
index 7f1a4463..4ff8f3d2 100644
--- a/plugins/diagram/com.vectorsf.... | false | true | public boolean performFinish() {
final String diagramName = ((DiagramNameWizardPage) getPage(PAGE_NAME_DIAGRAM_NAME))
.getText();
IProject project = null;
Object element = getSelection().getFirstElement();
if (element instanceof IProject) {
project = (IProject) element;
} else if (element instanceo... | public boolean performFinish() {
final String diagramName = ((DiagramNameWizardPage) getPage(PAGE_NAME_DIAGRAM_NAME))
.getText();
IProject project = null;
IFolder diagramFolder = null;
Object element = getSelection().getFirstElement();
if (element instanceof IProject) {
project = (IProject) element... |
diff --git a/src/com/android/settings/DateTimeSettingsSetupWizard.java b/src/com/android/settings/DateTimeSettingsSetupWizard.java
index 3a977633f..7fd7ef758 100644
--- a/src/com/android/settings/DateTimeSettingsSetupWizard.java
+++ b/src/com/android/settings/DateTimeSettingsSetupWizard.java
@@ -1,242 +1,243 @@
/*
*... | true | true | public void initUiForXl() {
// Currently just comment out codes related to auto timezone.
// TODO: Remove them when we are sure they are unnecessary.
/*
final boolean autoTimeZoneEnabled = isAutoTimeZoneEnabled();
mAutoTimeZoneButton = (CompoundButton)findViewById(R.id.time_z... | public void initUiForXl() {
// Currently just comment out codes related to auto timezone.
// TODO: Remove them when we are sure they are unnecessary.
/*
final boolean autoTimeZoneEnabled = isAutoTimeZoneEnabled();
mAutoTimeZoneButton = (CompoundButton)findViewById(R.id.time_z... |
diff --git a/beam-meris-radiometry/src/main/java/org/esa/beam/meris/radiometry/MerisRadiometryCorrectionOp.java b/beam-meris-radiometry/src/main/java/org/esa/beam/meris/radiometry/MerisRadiometryCorrectionOp.java
index 4dd888042..169c5ec13 100644
--- a/beam-meris-radiometry/src/main/java/org/esa/beam/meris/radiometry/M... | false | true | protected void configureTargetProduct(ProductConfigurer productConfigurer) {
productConfigurer.copyMetadata();
productConfigurer.copyTimeCoding();
productConfigurer.copyGeoCoding();
productConfigurer.copyTiePointGrids();
Product targetProduct = productConfigurer.getTargetPr... | protected void configureTargetProduct(ProductConfigurer productConfigurer) {
productConfigurer.copyMetadata();
productConfigurer.copyTimeCoding();
productConfigurer.copyTiePointGrids(); // fixme: always need to copy tie-points before copying geo-coding (nf)
productConfigurer.copyGeo... |
diff --git a/ini/trakem2/display/Align.java b/ini/trakem2/display/Align.java
index 62d5822c..9a89fa1b 100644
--- a/ini/trakem2/display/Align.java
+++ b/ini/trakem2/display/Align.java
@@ -1,524 +1,526 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) 2005, 2006 Albert Cardona and Rodney Douglas.
This program... | true | true | public void apply(final boolean post_register) {
// check preconditions
if (null == l1) {
Utils.showMessage("Click to add landmarks in two different layers.");
return;
}
if (null == l2) {
Utils.showMessage("Need landmarks in a second layer as well.");
return;
}
if (l1.size() != l2.size()) {
... | public void apply(final boolean post_register) {
// check preconditions
if (null == l1) {
Utils.showMessage("Click to add landmarks in two different layers.");
return;
}
if (null == l2) {
Utils.showMessage("Need landmarks in a second layer as well.");
return;
}
if (l1.size() != l2.size()) {
... |
diff --git a/frost-wot/source/frost/Core.java b/frost-wot/source/frost/Core.java
index 2284eac7..9005c740 100644
--- a/frost-wot/source/frost/Core.java
+++ b/frost-wot/source/frost/Core.java
@@ -1,551 +1,551 @@
/*
* Created on Sep 10, 2003
*/
package frost;
import frost.FcpTools.*;
import java.util.*;
impo... | true | true | protected void loadIdentities() {
goodIds = new Hashtable();
badIds = new Hashtable();
myBatches = new Hashtable();
File identities = new File("identities");
//File contacts = new File("contacts");
out.println("trying to create/load ids");
try {
if (identities.length() == 0)
identities.delete();
... | protected void loadIdentities() {
goodIds = new Hashtable();
badIds = new Hashtable();
myBatches = new Hashtable();
File identities = new File("identities");
//File contacts = new File("contacts");
out.println("trying to create/load ids");
try {
if (identities.length() == 0)
identities.delete();
... |
diff --git a/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/rendering/render/confluence/ConfluenceResourceReferenceSerializer.java b/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/rendering/render/confluence/ConfluenceResourceReferenceSerializer.java
index 668df2cba..f94017109 100644
---... | true | true | public String serialize(ResourceReference reference) {
return COMPONENT_PREFIX + "/" + reference.getType().getScheme();
}
| public String serialize(ResourceReference reference) {
String ref = reference.getReference();
return ref != null ? ref.replace("|", "~|") : "";
}
|
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java
index 53204114..4d7ced47 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpo.java
@@ -1... | true | true | public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
switch (args.length)
{
case 0:
throw new NotEnoughArgumentsException();
case 1:
final User player = getPlayer(server, args, 0, true);
if (!player.isOnline() || (player.isHidden() ... | public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
switch (args.length)
{
case 0:
throw new NotEnoughArgumentsException();
case 1:
final User player = getPlayer(server, args, 0, true);
if (!player.isOnline() || (player.isHidden() ... |
diff --git a/src/main/battlecode/doc/Doclet.java b/src/main/battlecode/doc/Doclet.java
index 605376fb..97fbe9b8 100644
--- a/src/main/battlecode/doc/Doclet.java
+++ b/src/main/battlecode/doc/Doclet.java
@@ -1,47 +1,47 @@
package battlecode.doc;
import com.sun.javadoc.*;
import com.sun.tools.doclets.standard.Standa... | true | true | public static boolean start(RootDoc root) {
// Due to various issues with the javadoc api we have to
// use some bad hacks to tell the bytecode cost taglet the
// method names.
StringBuilder methodBuilder = new StringBuilder();
StringBuilder memberBuilder = new StringBuilder();
ClassDoc [] doc = root.class... | public static boolean start(RootDoc root) {
// Due to various issues with the javadoc api we have to
// use some bad hacks to tell the bytecode cost taglet the
// method names.
StringBuilder methodBuilder = new StringBuilder();
StringBuilder memberBuilder = new StringBuilder();
ClassDoc [] doc = root.class... |
diff --git a/src/main/java/org/bukkit/util/permissions/CommandPermissions.java b/src/main/java/org/bukkit/util/permissions/CommandPermissions.java
index 33c38ac3..6c23b51a 100644
--- a/src/main/java/org/bukkit/util/permissions/CommandPermissions.java
+++ b/src/main/java/org/bukkit/util/permissions/CommandPermissions.ja... | true | true | public static Permission registerPermissions(Permission parent) {
Permission commands = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all CraftBukkit commands", parent);
registerWhitelist(commands);
registerBan(commands);
registerUnban(commands);
... | public static Permission registerPermissions(Permission parent) {
Permission commands = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all CraftBukkit commands", parent);
registerWhitelist(commands);
registerBan(commands);
registerUnban(commands);
... |
diff --git a/src/com/jidesoft/swing/SearchableBar.java b/src/com/jidesoft/swing/SearchableBar.java
index 9f64f9a6..0012f4e1 100644
--- a/src/com/jidesoft/swing/SearchableBar.java
+++ b/src/com/jidesoft/swing/SearchableBar.java
@@ -1,742 +1,742 @@
/*
* @(#)FirefoxSearchBar.java 10/11/2005
*
* Copyright 2002 - 200... | true | true | private void initComponents(String initialText) {
AbstractAction closeAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (getInstaller() != null) {
getInstaller().closeSearchBar(SearchableBar.this);
}
}
... | private void initComponents(String initialText) {
AbstractAction closeAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (getInstaller() != null) {
getInstaller().closeSearchBar(SearchableBar.this);
}
}
... |
diff --git a/src/uq/deco7381/runspyrun/activity/DashboardActivity.java b/src/uq/deco7381/runspyrun/activity/DashboardActivity.java
index 433b312..d3bec63 100644
--- a/src/uq/deco7381/runspyrun/activity/DashboardActivity.java
+++ b/src/uq/deco7381/runspyrun/activity/DashboardActivity.java
@@ -1,327 +1,327 @@
package uq... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dashboard);
dao = new ParseDAO();
isCurrLocExist = false;
progressDialog = new ProgressDialog(this);
progressDialog.setTitle("Loading...");
progressDialog.setCancelable(f... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dashboard);
dao = new ParseDAO();
isCurrLocExist = false;
progressDialog = new ProgressDialog(this);
progressDialog.setTitle("Loading...");
progressDialog.setCancelable(f... |
diff --git a/src/test/java/com/tacitknowledge/util/migration/builders/MockBuilder.java b/src/test/java/com/tacitknowledge/util/migration/builders/MockBuilder.java
index 73d3143..a7cb74d 100644
--- a/src/test/java/com/tacitknowledge/util/migration/builders/MockBuilder.java
+++ b/src/test/java/com/tacitknowledge/util/mig... | true | true | public static Properties getPropertiesWithSystemConfiguration( String system, String strategy ){
Properties properties = new Properties();
properties.setProperty(system + ".patch.path", "systemPath");
properties.setProperty(system + ".jdbc.driver", "jdbcDriver");
properties.setProper... | public static Properties getPropertiesWithSystemConfiguration( String system, String strategy ){
Properties properties = new Properties();
properties.setProperty(system + ".jdbc.database.type", "hsqldb");
properties.setProperty(system + ".patch.path", "systemPath");
properties.setPro... |
diff --git a/app/src/processing/app/SerialMonitor.java b/app/src/processing/app/SerialMonitor.java
index 6eebf539..1f34e8f7 100644
--- a/app/src/processing/app/SerialMonitor.java
+++ b/app/src/processing/app/SerialMonitor.java
@@ -1,231 +1,231 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*... | false | true | public SerialMonitor(String port) {
super(port);
this.port = port;
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
closeSerialPort();
}
});
// obvious, no?
KeyStroke wc = Editor.WINDOW_CLOSE_KEYSTROKE;
getRootPan... | public SerialMonitor(String port) {
super(port);
this.port = port;
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
closeSerialPort();
}
});
// obvious, no?
KeyStroke wc = Editor.WINDOW_CLOSE_KEYSTROKE;
getRootPan... |
diff --git a/xchange_pc_client/src/nl/groep5/xchange/controllers/SettingsController.java b/xchange_pc_client/src/nl/groep5/xchange/controllers/SettingsController.java
index 9d50177..db87081 100644
--- a/xchange_pc_client/src/nl/groep5/xchange/controllers/SettingsController.java
+++ b/xchange_pc_client/src/nl/groep5/xch... | false | true | protected void saveClick(ActionEvent actionEvent) {
Settings settings = Settings.getInstance();
try {
if (fieldsAreEmpty()) {
Main.showDialog("One or more fields are empty!");
} else if (!settings.validate()) {
Main.showDialog("Settings not valid");
} else {
settings.setNameServerIp(nameServer... | protected void saveClick(ActionEvent actionEvent) {
if (fieldsAreEmpty()) {
Main.showDialog("One or more fields are empty!");
return;
}
Settings settings = Settings.getInstance();
String tempNameServerIP = settings.getNameServerIp();
String tempStorageServerIP = settings.getStorageServerIp();
String... |
diff --git a/trunk/core/src/test/java/org/apache/commons/vfs2/provider/url/test/UrlProviderHttpTestCase.java b/trunk/core/src/test/java/org/apache/commons/vfs2/provider/url/test/UrlProviderHttpTestCase.java
index 28e1478..537bbce 100644
--- a/trunk/core/src/test/java/org/apache/commons/vfs2/provider/url/test/UrlProvide... | true | true | public static Test suite() throws Exception
{
if (System.getProperty(TEST_URI) != null)
{
return new ProviderTestSuite(new UrlProviderTestCase());
}
else
{
return notConfigured(UrlProviderTestCase.class);
}
}
| public static Test suite() throws Exception
{
if (System.getProperty(TEST_URI) != null)
{
return new ProviderTestSuite(new UrlProviderTestCase());
}
else
{
return notConfigured(UrlProviderHttpTestCase.class);
}
}
|
diff --git a/src/core/java/org/wyona/yanel/core/util/ConfigurationUtil.java b/src/core/java/org/wyona/yanel/core/util/ConfigurationUtil.java
index a8a4b5347..3e8795194 100644
--- a/src/core/java/org/wyona/yanel/core/util/ConfigurationUtil.java
+++ b/src/core/java/org/wyona/yanel/core/util/ConfigurationUtil.java
@@ -1,1... | true | true | public static Document getCustomConfiguration(Configuration repoConfigElement, String rootName, String rootNamespace) {
try {
if (repoConfigElement == null || repoConfigElement.getChildren() == null || repoConfigElement.getChildren().length == 0) {
if (repoConfigElement.getValue(... | public static Document getCustomConfiguration(Configuration repoConfigElement, String rootName, String rootNamespace) {
try {
if (repoConfigElement == null || repoConfigElement.getChildren() == null || repoConfigElement.getChildren().length == 0) {
if (repoConfigElement.getValue(... |
diff --git a/Client/Bootstrap/src/main/java/me/footlights/boot/JARLoader.java b/Client/Bootstrap/src/main/java/me/footlights/boot/JARLoader.java
index dd58efcf..0e43a77f 100644
--- a/Client/Bootstrap/src/main/java/me/footlights/boot/JARLoader.java
+++ b/Client/Bootstrap/src/main/java/me/footlights/boot/JARLoader.java
@... | true | true | public Bytecode readBytecode(String className)
throws ClassNotFoundException, IOException
{
for (Enumeration<JarEntry> i = jar.entries() ; i.hasMoreElements() ;)
{
JarEntry entry = i.nextElement();
if (entry.isDirectory()) continue;
if (entry.getName().startsWith("META-INF/")) continue;
// read th... | public Bytecode readBytecode(String className)
throws ClassNotFoundException, IOException
{
for (Enumeration<JarEntry> i = jar.entries() ; i.hasMoreElements() ;)
{
JarEntry entry = i.nextElement();
if (entry.isDirectory()) continue;
if (entry.getName().startsWith("META-INF/")) continue;
// read th... |
diff --git a/src/com/android/camera/ui/ScrollerView.java b/src/com/android/camera/ui/ScrollerView.java
index 37ba8c0a..0552516f 100644
--- a/src/com/android/camera/ui/ScrollerView.java
+++ b/src/com/android/camera/ui/ScrollerView.java
@@ -1,1849 +1,1851 @@
/*
* Copyright (C) 2012 The Android Open Source Project
*
... | true | true | public boolean onTouchEvent(MotionEvent ev) {
initVelocityTrackerIfNotExists();
mVelocityTracker.addMovement(ev);
final int action = ev.getAction();
switch (action & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN: {
mIsBeingDragged = getChildCoun... | public boolean onTouchEvent(MotionEvent ev) {
initVelocityTrackerIfNotExists();
mVelocityTracker.addMovement(ev);
final int action = ev.getAction();
switch (action & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN: {
mIsBeingDragged = getChildCoun... |
diff --git a/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java b/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java
index 0e18d165..9b435a75 100644
--- a/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java
+++ b/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java
@@ -1... | true | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// Map data from the inbound request to our internal format
AwRequest awRequest = _awRequestCreator.createFrom(request);
Writer writer = new BufferedWriter(new OutputStreamWrite... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// Map data from the inbound request to our internal format
AwRequest awRequest = _awRequestCreator.createFrom(request);
Writer writer = new BufferedWriter(new OutputStreamWrite... |
diff --git a/src/com/contoso/services/TodoServices.java b/src/com/contoso/services/TodoServices.java
index 8638dc7..8ad03db 100644
--- a/src/com/contoso/services/TodoServices.java
+++ b/src/com/contoso/services/TodoServices.java
@@ -1,80 +1,80 @@
/* Todo service */
package com.contoso.services;
import java.io.IOEx... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Gson gson = new Gson();
TodoList todoList = new TodoList();
todoList.name = "Personal";
todoList.color = "red";
todoList.items = getTes... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Gson gson = new Gson();
TodoList todoList = new TodoList();
todoList.name = "Personal";
todoList.color = "green";
todoList.items = getT... |
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetBase.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetBase.java
index a045358b2..044daf716 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetBase.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetBase.java... | true | true | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
// Ensure correct implementation and don't let ApplicationConnection
// handle component caption
if (client.updateComponent(this, uidl, false)) {
return;
}
// Update member references
... | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
// Ensure correct implementation
if (client.updateComponent(this, uidl, true)) {
return;
}
// Update member references
this.client = client;
id = uidl.getId();
disabled = uidl.... |
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java
index 27bdf92f3..79f3d45f0 100644
--- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.... | true | true | public void testHtmlJavaScriptMapping_AllJavaScriptClassesArePresent() {
final Map<Class < ? extends HtmlElement>, Class < ? extends SimpleScriptable>> map =
JavaScriptConfiguration.getHtmlJavaScriptMapping();
final String directoryName = "../../../src/main/java/com/gargoylesoftware/html... | public void testHtmlJavaScriptMapping_AllJavaScriptClassesArePresent() {
final Map<Class < ? extends HtmlElement>, Class < ? extends SimpleScriptable>> map =
JavaScriptConfiguration.getHtmlJavaScriptMapping();
final String directoryName = "../../../src/main/java/com/gargoylesoftware/html... |
diff --git a/src/com/primoberti/simpleandroidtest/ResultsActivity.java b/src/com/primoberti/simpleandroidtest/ResultsActivity.java
index 0f9de6b..2f4859e 100644
--- a/src/com/primoberti/simpleandroidtest/ResultsActivity.java
+++ b/src/com/primoberti/simpleandroidtest/ResultsActivity.java
@@ -1,69 +1,69 @@
/*
* Copyr... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.results);
Bundle extras = getIntent().getExtras();
int totalQuestions = extras.getInt(TestActivity.EXTRA_TOTAL_QUESTIONS);
int correctAnswers = extras.getInt(TestActivity.EXTRA_CORRECT_ANSWERS);
... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.results);
Bundle extras = getIntent().getExtras();
int totalQuestions = extras.getInt(TestActivity.EXTRA_TOTAL_QUESTIONS);
int correctAnswers = extras.getInt(TestActivity.EXTRA_CORRECT_ANSWERS);
... |
diff --git a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java
index e0c4f6d..dcb1e98 100644
--- a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java
+++ b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java
@@ -1,531 +1,531 @@
packag... | true | true | public Boolean urace(CommandSender sender, String[] args, Player player) {
if (args.length < 1) {
return false;
}
String command = args[0];
if (command.equalsIgnoreCase("list")) {
int page = 1;
if (args.length > 1) {
try {
page = Integer.parseInt(args[1]);
} catch (NumberFormatException e... | public Boolean urace(CommandSender sender, String[] args, Player player) {
if (args.length < 1) {
return false;
}
String command = args[0];
if (command.equalsIgnoreCase("list")) {
int page = 1;
if (args.length > 1) {
try {
page = Integer.parseInt(args[1]);
} catch (NumberFormatException e... |
diff --git a/src/jp/muo/smsproxy/SmsProxyManager.java b/src/jp/muo/smsproxy/SmsProxyManager.java
index 8207342..f33f38a 100644
--- a/src/jp/muo/smsproxy/SmsProxyManager.java
+++ b/src/jp/muo/smsproxy/SmsProxyManager.java
@@ -1,84 +1,87 @@
package jp.muo.smsproxy;
import android.content.Context;
import android.cont... | true | true | public boolean send(Mode smsMode, String msgText) {
if (this.ctx == null || prefs == null || msgText.equals("")) {
return false;
}
this.sendMode = smsMode;
String msgSucceeded = "";
String msgFailed = "";
switch (this.sendMode) {
case SMS:
msgSucceeded = this.ctx.getString(R.string.forward_sm... | public boolean send(Mode smsMode, String msgText) {
if (this.ctx == null || prefs == null || msgText.equals("")) {
return false;
}
this.sendMode = smsMode;
String msgSucceeded = "";
String msgFailed = "";
switch (this.sendMode) {
case SMS:
msgSucceeded = this.ctx.getString(R.string.forward_sm... |
diff --git a/frost-wot/source/frost/threads/GetRequestsThread.java b/frost-wot/source/frost/threads/GetRequestsThread.java
index 10e7a3ab..dfa55892 100644
--- a/frost-wot/source/frost/threads/GetRequestsThread.java
+++ b/frost-wot/source/frost/threads/GetRequestsThread.java
@@ -1,213 +1,214 @@
/*
GetRequestsThread.... | true | true | public void run()
{
// notifyThreadStarted(this);
try {
// Wait some random time to speed up the update of the TOF table
// ... and to not to flood the node
int waitTime = (int)(Math.random() * 5000); // wait a max. of 5 seconds between start of threads
mixed.wait... | public void run()
{
// notifyThreadStarted(this);
try {
// Wait some random time to speed up the update of the TOF table
// ... and to not to flood the node
int waitTime = (int)(Math.random() * 5000); // wait a max. of 5 seconds between start of threads
mixed.wait... |
diff --git a/test/service/org/appfuse/service/UserExistsExceptionTest.java b/test/service/org/appfuse/service/UserExistsExceptionTest.java
index dde160fe..da206e70 100644
--- a/test/service/org/appfuse/service/UserExistsExceptionTest.java
+++ b/test/service/org/appfuse/service/UserExistsExceptionTest.java
@@ -1,42 +1,4... | true | true | public void testAddExistingUser() throws Exception {
logger.debug("entered 'testAddExistingUser' method");
User user = manager.getUser("1");
// create new object with null id - Hibernate doesn't like setId(null)
User user2 = new User();
BeanUtils.copyProperties(user... | public void testAddExistingUser() throws Exception {
logger.debug("entered 'testAddExistingUser' method");
User user = manager.getUser("1");
// create new object with null id - Hibernate doesn't like setId(null)
User user2 = new User();
BeanUtils.copyProperties(user... |
diff --git a/src/de/xgme/webcms/plugin/SimplePluginManager.java b/src/de/xgme/webcms/plugin/SimplePluginManager.java
index c18e481..aa374cc 100644
--- a/src/de/xgme/webcms/plugin/SimplePluginManager.java
+++ b/src/de/xgme/webcms/plugin/SimplePluginManager.java
@@ -1,265 +1,266 @@
package de.xgme.webcms.plugin;
impo... | true | true | public Plugin[] loadPlugins(final File directory) {
if (!directory.isDirectory()) {
logger.warning("Plugin directory "+directory+" is not a directory");
return new Plugin[0];
}
// get plug-in files to load
final Map<File,PluginLoader> fileLoaders = new HashMap<File,PluginLoader>();
{
File[] files... | public Plugin[] loadPlugins(final File directory) {
if (!directory.isDirectory()) {
logger.warning("Plugin directory "+directory+" is not a directory");
return new Plugin[0];
}
// get plug-in files to load
final Map<File,PluginLoader> fileLoaders = new HashMap<File,PluginLoader>();
{
File[] files... |
diff --git a/src/agent/Agent.java b/src/agent/Agent.java
index 75dd20a..1d77113 100644
--- a/src/agent/Agent.java
+++ b/src/agent/Agent.java
@@ -1,305 +1,306 @@
package agent;
import java.util.HashMap;
import java.util.Map;
import agent.Neighborhood.Direction;
import board.Board;
import board.Cell;
public ... | true | true | private HashMap<Direction, Double> createMoveOptions() {
HashMap<Direction, Double> move_options = new HashMap<Direction, Double>();
for (Map.Entry<Direction, Neighborhood> entry : neighborhood.entrySet()) {
Cell first = entry.getValue().getFirstCell();
if (first != null && !first.isOccupied())
move_op... | private HashMap<Direction, Double> createMoveOptions() {
HashMap<Direction, Double> move_options = new HashMap<Direction, Double>();
for (Map.Entry<Direction, Neighborhood> entry : neighborhood.entrySet()) {
Cell first = entry.getValue().getFirstCell();
if (first != null && !first.isOccupied())
move_op... |
diff --git a/eu/icecraft/iceban/commands/BanCommands.java b/eu/icecraft/iceban/commands/BanCommands.java
index 8dc789a..a8c3c56 100644
--- a/eu/icecraft/iceban/commands/BanCommands.java
+++ b/eu/icecraft/iceban/commands/BanCommands.java
@@ -1,130 +1,130 @@
package eu.icecraft.iceban.commands;
import java.util.regex... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String cmdLbl, String[] args) {
if(!sender.hasPermission("iceban." + cmdLbl)) return false;
if(cmdLbl.equals("ban") || cmdLbl.equals("sbh")) {
boolean forceBan = false;
boolean permanent = false;
boolean silent = false;
String nick = "";
... | public boolean onCommand(CommandSender sender, Command cmd, String cmdLbl, String[] args) {
if(!sender.hasPermission("iceban." + cmdLbl)) return false;
if(cmdLbl.equals("ban") || cmdLbl.equals("sbh")) {
boolean forceBan = false;
boolean permanent = false;
boolean silent = false;
String nick = "";
... |
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/LocalTemplateLogic.java b/tool/src/java/org/sakaiproject/evaluation/tool/LocalTemplateLogic.java
index 1b4ca927..40d3f54b 100644
--- a/tool/src/java/org/sakaiproject/evaluation/tool/LocalTemplateLogic.java
+++ b/tool/src/java/org/sakaiproject/evaluation/tool/L... | true | true | public void deleteTemplateItem(Long templateItemId) {
String currentUserId = external.getCurrentUserId();
if (! authoringService.canControlTemplateItem(currentUserId, templateItemId)) {
throw new SecurityException("User ("+currentUserId+") cannot control this template item ("+templateItemId+")")... | public void deleteTemplateItem(Long templateItemId) {
String currentUserId = external.getCurrentUserId();
if (! authoringService.canControlTemplateItem(currentUserId, templateItemId)) {
throw new SecurityException("User ("+currentUserId+") cannot control this template item ("+templateItemId+")")... |
diff --git a/araqne-logapi-nio/src/main/java/org/araqne/log/api/nio/RecursiveDirectoryWatchLoggerFactory.java b/araqne-logapi-nio/src/main/java/org/araqne/log/api/nio/RecursiveDirectoryWatchLoggerFactory.java
index 410a5e90..70e04da6 100644
--- a/araqne-logapi-nio/src/main/java/org/araqne/log/api/nio/RecursiveDirectory... | true | true | public Collection<LoggerConfigOption> getConfigOptions() {
LoggerConfigOption basePath = new MutableStringConfigType("base_path", t("Directory path", "디렉터리 경로", "ディレクトリ経路", "目录"),
t(
"Base log file directory path", "로그 파일을 수집할 대상 디렉터리 경로", "ログファイルを収集する対象ディレクトリ経路", "要采集的日志文件所在目录"), true);
LoggerConfigOpt... | public Collection<LoggerConfigOption> getConfigOptions() {
LoggerConfigOption basePath = new MutableStringConfigType("base_path", t("Directory path", "디렉터리 경로", "ディレクトリ経路", "目录"),
t(
"Base log file directory path", "로그 파일을 수집할 대상 디렉터리 경로", "ログファイルを収集する対象ディレクトリ経路", "要采集的日志文件所在目录"), true);
LoggerConfigOpt... |
diff --git a/src/java/edu/osu/picola/beans/LoginBean.java b/src/java/edu/osu/picola/beans/LoginBean.java
index c2a63ce..6489fa7 100644
--- a/src/java/edu/osu/picola/beans/LoginBean.java
+++ b/src/java/edu/osu/picola/beans/LoginBean.java
@@ -1,211 +1,212 @@
package edu.osu.picola.beans;
import edu.osu.picola.dao.Cou... | true | true | public String loginUser() {
System.out.println("Username: " + username);
System.out.println("Password: " + password);
boolean wasLogged = false;
user = UserDAO.getUserByLoginInfo(username);
System.out.println("User Object: " + user);
// check user exists
if (u... | public String loginUser() {
System.out.println("Username: " + username);
System.out.println("Password: " + password);
boolean wasLogged = false;
user = UserDAO.getUserByLoginInfo(username);
System.out.println("User Object: " + user);
// check user exists
if (u... |
diff --git a/bennu-core/src/main/java/pt/ist/bennu/core/filters/CharsetEncodingFilter.java b/bennu-core/src/main/java/pt/ist/bennu/core/filters/CharsetEncodingFilter.java
index 76907bb7..9c7eebe6 100644
--- a/bennu-core/src/main/java/pt/ist/bennu/core/filters/CharsetEncodingFilter.java
+++ b/bennu-core/src/main/java/pt... | false | true | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
ServletException {
if (request.getCharacterEncoding() == null) {
request.setCharacterEncoding(defaultCharset);
}
if (response.getCharacterEncoding() == null) ... | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
ServletException {
if (request.getCharacterEncoding() == null) {
request.setCharacterEncoding(defaultCharset);
}
chain.doFilter(request, response);
if... |
diff --git a/src/com/aragaer/reminder/ReminderService.java b/src/com/aragaer/reminder/ReminderService.java
index 87a700c..25f129a 100644
--- a/src/com/aragaer/reminder/ReminderService.java
+++ b/src/com/aragaer/reminder/ReminderService.java
@@ -1,120 +1,120 @@
package com.aragaer.reminder;
import java.util.ArrayLis... | true | true | private static Notification buildNotification(Context ctx) {
List<Pair<Bitmap, PendingIntent>> list = new ArrayList<Pair<Bitmap, PendingIntent>>();
Resources r = ctx.getResources();
int height = r.getDimensionPixelSize(R.dimen.notification_height);
int margin = r.getDimensionPixelSize(R.dimen.notification_glyp... | private static Notification buildNotification(Context ctx) {
List<Pair<Bitmap, PendingIntent>> list = new ArrayList<Pair<Bitmap, PendingIntent>>();
Resources r = ctx.getResources();
int height = r.getDimensionPixelSize(R.dimen.notification_height);
int margin = r.getDimensionPixelSize(R.dimen.notification_glyp... |
diff --git a/src/main/java/suite/rt/RayTracer.java b/src/main/java/suite/rt/RayTracer.java
index 00686345b..8cb1ea3f2 100644
--- a/src/main/java/suite/rt/RayTracer.java
+++ b/src/main/java/suite/rt/RayTracer.java
@@ -1,144 +1,144 @@
package suite.rt;
import java.awt.Color;
import java.awt.image.BufferedImage;
imp... | true | true | private Vector trace(int depth, Ray ray) {
Vector color;
RayHit rayHit;
if (depth > 0 && (rayHit = scene.hit(ray)) != null) {
RayHitDetail d = rayHit.detail();
Vector hitPoint = d.hitPoint();
Vector lightColor = Vector.origin;
for (LightSource lightSource : lightSources) {
Vector lightDir = Vec... | private Vector trace(int depth, Ray ray) {
Vector color;
RayHit rayHit;
if (depth > 0 && (rayHit = scene.hit(ray)) != null) {
RayHitDetail d = rayHit.detail();
Vector hitPoint = d.hitPoint();
Vector lightColor = Vector.origin;
for (LightSource lightSource : lightSources) {
Vector lightDir = Vec... |
diff --git a/ccw.core/src/ccw/launching/LaunchUtils.java b/ccw.core/src/ccw/launching/LaunchUtils.java
index 462ac02a..312c3a86 100644
--- a/ccw.core/src/ccw/launching/LaunchUtils.java
+++ b/ccw.core/src/ccw/launching/LaunchUtils.java
@@ -1,209 +1,214 @@
/***************************************************************... | true | true | private static String fileArg(IProject project, IFile file) {
String FILE_ARG_ERROR_PREFIX = "When trying to create clojure.main "
+ "file arg to launch, was " + "unable to ";
IPath filePath = file.getLocation();
IJavaProject javaProject = ClojureCore.getJavaProject(project);
... | private static String fileArg(IProject project, IFile file) {
String FILE_ARG_ERROR_PREFIX = "When trying to create clojure.main "
+ "file arg to launch, was " + "unable to ";
IPath filePath = file.getLocation();
IJavaProject javaProject = ClojureCore.getJavaProject(project);
... |
diff --git a/common/src/test/java/com/vmware/bdd/apitypes/AppConfigValidationFactoryTest.java b/common/src/test/java/com/vmware/bdd/apitypes/AppConfigValidationFactoryTest.java
index b8473a05..a2a0dc92 100644
--- a/common/src/test/java/com/vmware/bdd/apitypes/AppConfigValidationFactoryTest.java
+++ b/common/src/test/ja... | true | true | public void setup(){
cluster=new ClusterCreate();
Map<String,Object> hadoopMap=new HashMap<String,Object>();
Map<String,Object> hadoopFileMap=new HashMap<String,Object>();
Map<String,Object> corePopertysMap=new HashMap<String,Object>();
Map<String,Object> hdfsPopertysMap=new HashMap<Str... | public void setup(){
cluster=new ClusterCreate();
Map<String,Object> hadoopMap=new HashMap<String,Object>();
Map<String,Object> hadoopFileMap=new HashMap<String,Object>();
Map<String,Object> corePopertysMap=new HashMap<String,Object>();
Map<String,Object> hdfsPopertysMap=new HashMap<Str... |
diff --git a/tools/host/src/com/android/cts/CtsTestResult.java b/tools/host/src/com/android/cts/CtsTestResult.java
index 0aea74b3..851b07d3 100644
--- a/tools/host/src/com/android/cts/CtsTestResult.java
+++ b/tools/host/src/com/android/cts/CtsTestResult.java
@@ -1,203 +1,209 @@
/*
* Copyright (C) 2009 The Android Op... | false | true | public void setResult(TestResult testResult) {
int resCode = CODE_PASS;
String failedMessage = null;
String stackTrace = null;
if ((testResult != null) && (testResult.failureCount() > 0)) {
resCode = CODE_FAIL;
Enumeration<TestFailure> failures = testResult.fa... | public void setResult(TestResult testResult) {
int resCode = CODE_PASS;
String failedMessage = null;
String stackTrace = null;
if ((testResult != null) && (testResult.failureCount() > 0 || testResult.errorCount() > 0)) {
resCode = CODE_FAIL;
Enumeration<TestFa... |
diff --git a/src/java/ru/yinfag/chitose/TokyotoshoMessageProcessor.java b/src/java/ru/yinfag/chitose/TokyotoshoMessageProcessor.java
index 385fd5e..f64fd8a 100644
--- a/src/java/ru/yinfag/chitose/TokyotoshoMessageProcessor.java
+++ b/src/java/ru/yinfag/chitose/TokyotoshoMessageProcessor.java
@@ -1,112 +1,108 @@
packag... | false | true | public CharSequence process(final Message message) throws MessageProcessingException {
if (!enabled) {
return null;
}
final Matcher m1 = p1.matcher(message.getBody());
final Matcher m2 = p2.matcher(message.getBody());
final Matcher m3 = p3.matcher(message.getBody());
if (m1.matches()){
final... | public CharSequence process(final Message message) throws MessageProcessingException {
if (!enabled) {
return null;
}
final Matcher m1 = p1.matcher(message.getBody());
final Matcher m2 = p2.matcher(message.getBody());
final Matcher m3 = p3.matcher(message.getBody());
if (m1.matches()){
final... |
diff --git a/spring-data-simpledb-impl/src/main/java/org/springframework/data/simpledb/repository/support/SimpleDbRepositoryImpl.java b/spring-data-simpledb-impl/src/main/java/org/springframework/data/simpledb/repository/support/SimpleDbRepositoryImpl.java
index 040252d..9cc234e 100644
--- a/spring-data-simpledb-impl/s... | true | true | public void delete(ID id, boolean consistentRead) {
Assert.notNull(id, "The given id must not be null!");
SimpleDbEntity sdbEntity = null;
if (consistentRead) {
T entity = findOne(id, consistentRead);
if (entity == null) {
throw new EmptyResultDataA... | public void delete(ID id, boolean consistentRead) {
Assert.notNull(id, "The given id must not be null!");
SimpleDbEntity sdbEntity = null;
if (consistentRead) {
T entity = findOne(id, consistentRead);
if (entity == null) {
throw new EmptyResultDataA... |
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
index 135dc83..df8b265 100755
--- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -1,2230 ... | false | true | public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) {
int result = ACTION_PASS_TO_USER;
final boolean isWakeKey = isWakeKeyTq(event);
final boolean keyguardShowing = keyguardIsShowingTq();
if (false) {
Log.d(TAG, "interceptKeyTq event=" + event + " keycode... | public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) {
int result = ACTION_PASS_TO_USER;
final boolean isWakeKey = isWakeKeyTq(event);
final boolean keyguardShowing = keyguardIsShowingTq();
if (false) {
Log.d(TAG, "interceptKeyTq event=" + event + " keycode... |
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java
index 36cb83db..9118194b 100644
--- a/src/main/java/org/bukkit/inventory/ItemStack.java
+++ b/src/main/java/org/bukkit/inventory/ItemStack.java
@@ -1,409 +1,409 @@
package org.bukkit.inventory;
import ... | true | true | public static ItemStack deserialize(Map<String, Object> args) {
Material type = Material.getMaterial((String) args.get("type"));
short damage = 0;
int amount = 1;
if (args.containsKey("damage")) {
damage = ((Number) args.get("damage")).shortValue();
}
if... | public static ItemStack deserialize(Map<String, Object> args) {
Material type = Material.getMaterial((String) args.get("type"));
short damage = 0;
int amount = 1;
if (args.containsKey("damage")) {
damage = ((Number) args.get("damage")).shortValue();
}
if... |
diff --git a/src/main/java/net/ae97/totalpermissions/lang/Cipher.java b/src/main/java/net/ae97/totalpermissions/lang/Cipher.java
index 860c769..af59e0f 100644
--- a/src/main/java/net/ae97/totalpermissions/lang/Cipher.java
+++ b/src/main/java/net/ae97/totalpermissions/lang/Cipher.java
@@ -1,75 +1,75 @@
/*
* Copyright... | true | true | public Cipher(String language) {
language += ".yml";
try {
InputStream temp = TotalPermissions.getPlugin().getResource(language);
this.setLangFile(YamlConfiguration.loadConfiguration(temp));
} catch (NullPointerException e) {
TotalPermissions.getPlugin().g... | public Cipher(String language) {
language += ".yml";
try {
InputStream temp = TotalPermissions.getPlugin().getResource(language);
this.setLangFile(YamlConfiguration.loadConfiguration(temp));
} catch (IllegalArgumentException e) {
TotalPermissions.getPlugin... |
diff --git a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/validation/UniqueConstraint.java b/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/validation/UniqueConstraint.java
index 121104c3e..051a72f03 100644
--- a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/validation/UniqueConstraint.... | true | true | protected void processValidate(final Object target, final Object propertyValue, Errors errors) {
if(unique) {
final Object id;
try {
id = InvokerHelper.invokeMethod(target, "ident",null);
}
catch (Exception e) {
throw new Grail... | protected void processValidate(final Object target, final Object propertyValue, Errors errors) {
if(unique) {
final Object id;
try {
id = InvokerHelper.invokeMethod(target, "ident",null);
}
catch (Exception e) {
throw new Grail... |
diff --git a/src/main/java/com/stonepeak/monkey/data/GlobalConfig.java b/src/main/java/com/stonepeak/monkey/data/GlobalConfig.java
index a500ddb..44308b0 100644
--- a/src/main/java/com/stonepeak/monkey/data/GlobalConfig.java
+++ b/src/main/java/com/stonepeak/monkey/data/GlobalConfig.java
@@ -1,22 +1,22 @@
package com.... | true | true | public static String getGtestAppPath() {
return System.getProperty("user.dir") + System.getProperty("file.separator") + gtestAppName;
}
| public static String getGtestAppPath() {
return gtestAppName;
}
|
diff --git a/src/org/springframework/richclient/form/builder/GridBagLayoutFormBuilder.java b/src/org/springframework/richclient/form/builder/GridBagLayoutFormBuilder.java
index fc80c793..56e7a308 100644
--- a/src/org/springframework/richclient/form/builder/GridBagLayoutFormBuilder.java
+++ b/src/org/springframework/ric... | false | true | public GridBagLayoutFormBuilder appendLabeledField(String propertyName,
final JComponent field,
LabelOrientation labelOrientation,
int colSpan,
... | public GridBagLayoutFormBuilder appendLabeledField(String propertyName,
final JComponent field,
LabelOrientation labelOrientation,
int colSpan,
... |
diff --git a/org.eclipse.jubula.rc.common/src/org/eclipse/jubula/rc/common/tester/ButtonTester.java b/org.eclipse.jubula.rc.common/src/org/eclipse/jubula/rc/common/tester/ButtonTester.java
index 535ad54b4..64c14fa50 100644
--- a/org.eclipse.jubula.rc.common/src/org/eclipse/jubula/rc/common/tester/ButtonTester.java
+++ ... | true | true | public String[] getTextArrayFromComponent() {
String[] textArray = null;
try {
textArray = new String[] { getButtonAdapter().getText() };
} catch (StepExecutionException e) {
// ok here - getText() might be an unsupported action
}
return textArray;
... | public String[] getTextArrayFromComponent() {
String[] textArray = null;
try {
if (getComponent() instanceof IButtonComponent) {
// This is needed because the observation modus try to use a MenuItem as Button.
// Because in Swing the MenuItem is a child of... |
diff --git a/src/togos/noise2/function/FractalDaDaDa_Da.java b/src/togos/noise2/function/FractalDaDaDa_Da.java
index 7994c1d..464269b 100644
--- a/src/togos/noise2/function/FractalDaDaDa_Da.java
+++ b/src/togos/noise2/function/FractalDaDaDa_Da.java
@@ -1,42 +1,45 @@
package togos.noise2.function;
public class Fract... | true | true | public void apply(int count, double[] inX, double[] inY, double[] inZ, double[] out) {
double[] xfX = new double[count];
double[] xfY = new double[count];
double[] xfZ = new double[count];
double[] subOut = new double[count];
double hs = this.inithscale;
double vs = this.initvscale;
for( int i=0; i<itera... | public void apply(int count, double[] inX, double[] inY, double[] inZ, double[] out) {
double[] xfX = new double[count];
double[] xfY = new double[count];
double[] xfZ = new double[count];
double[] subOut = new double[count];
double hs = this.inithscale;
double vs = this.initvscale;
for( int j=0; j<count... |
diff --git a/src/com/sbezboro/standardplugin/listeners/PlayerJoinListener.java b/src/com/sbezboro/standardplugin/listeners/PlayerJoinListener.java
index 4847883..801e300 100644
--- a/src/com/sbezboro/standardplugin/listeners/PlayerJoinListener.java
+++ b/src/com/sbezboro/standardplugin/listeners/PlayerJoinListener.java... | true | true | private void broadcastRank(final StandardPlayer player) {
RankHttpRequest request = new RankHttpRequest(player.getName(), true);
request.start(new HttpRequestListener() {
@Override
public void requestSuccess(HttpResponse response) {
int result = response.getInt("result");
if (result == 1) {... | private void broadcastRank(final StandardPlayer player) {
RankHttpRequest request = new RankHttpRequest(player.getName(), true);
request.start(new HttpRequestListener() {
@Override
public void requestSuccess(HttpResponse response) {
int result = response.getInt("result");
if (result == 1) {... |
diff --git a/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java b/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java
index 2220f459..92f318b3 100644
--- a/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java
+++ b/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java
@@ -1,99 +1,99 @@
package de.ueller.gps.tools;
/*
... | true | true | public String readLine() throws IOException{
sb.setLength(0);
while (bufferlen >= 0) {
if (idx >= bufferlen) {
idx = 0;
bufferlen = r.read(buffer);
}
for (int i = idx; i < bufferlen; i++) {
char c = buffer[idx++];
if (c == '\r') {
if (idx < bufferlen) {
if (buffer[idx + 1] == '\... | public String readLine() throws IOException{
sb.setLength(0);
while (bufferlen >= 0) {
if (idx >= bufferlen) {
idx = 0;
bufferlen = r.read(buffer);
}
for (int i = idx; i < bufferlen; i++) {
char c = buffer[idx++];
if (c == '\r') {
if (idx < bufferlen) {
if (buffer[idx] == '\n') ... |
diff --git a/api/src/main/java/org/openmrs/api/handler/OpenmrsObjectSaveHandler.java b/api/src/main/java/org/openmrs/api/handler/OpenmrsObjectSaveHandler.java
index c06bebcb..c2422606 100644
--- a/api/src/main/java/org/openmrs/api/handler/OpenmrsObjectSaveHandler.java
+++ b/api/src/main/java/org/openmrs/api/handler/Ope... | true | true | public void handle(OpenmrsObject openmrsObject, User creator, Date dateCreated, String reason) {
if (openmrsObject.getUuid() == null)
openmrsObject.setUuid(UUID.randomUUID().toString());
//Set all empty string properties, that do not have the AllowEmptyStrings annotation, to null.
//And also trim leading a... | public void handle(OpenmrsObject openmrsObject, User creator, Date dateCreated, String reason) {
if (openmrsObject.getUuid() == null)
openmrsObject.setUuid(UUID.randomUUID().toString());
//Set all empty string properties, that do not have the AllowEmptyStrings annotation, to null.
//And also trim leading a... |
diff --git a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/wizard/createview/presenter/EvaluateScriptPresenter.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/wizard/createview/presenter/EvaluateScriptPresenter.java
index 52a8464a9..c200f4276 100644
--- a/opal-gwt-client/src/mai... | true | true | private void evaluateScript(String variablesResource, String transientVariableResource, String entitiesResource) {
String selectedScript = URL.encodeQueryString(getDisplay().getSelectedScript());
if(selectedScript.isEmpty()) {
String script = URL.encodeQueryString(getScript());
if(evalua... | private void evaluateScript(String variablesResource, String transientVariableResource, String entitiesResource) {
String selectedScript = URL.encodeQueryString(getDisplay().getSelectedScript());
if(selectedScript.isEmpty()) {
String script = URL.encodeQueryString(getScript());
if(evalua... |
diff --git a/src/main/net/polydawn/mdm/commands/MdmAddCommand.java b/src/main/net/polydawn/mdm/commands/MdmAddCommand.java
index 511aa42..26e8382 100644
--- a/src/main/net/polydawn/mdm/commands/MdmAddCommand.java
+++ b/src/main/net/polydawn/mdm/commands/MdmAddCommand.java
@@ -1,197 +1,198 @@
/*
* Copyright 2012 - 20... | true | true | public MdmExitMessage call() throws IOException, ConfigInvalidException, MdmException {
try {
assertInRepoRoot();
} catch (MdmExitMessage e) { return e; }
// git's behavior of assuming relative urls should be relative to the remote origin instead of relative to the local filesystem is almost certainly not wh... | public MdmExitMessage call() throws IOException, ConfigInvalidException, MdmException {
try {
assertInRepoRoot();
} catch (MdmExitMessage e) { return e; }
// git's behavior of assuming relative urls should be relative to the remote origin instead of relative to the local filesystem is almost certainly not wh... |
diff --git a/src/fr/neamar/cinetime/objects/Movie.java b/src/fr/neamar/cinetime/objects/Movie.java
index 3f24b00..415aadc 100644
--- a/src/fr/neamar/cinetime/objects/Movie.java
+++ b/src/fr/neamar/cinetime/objects/Movie.java
@@ -1,122 +1,122 @@
package fr.neamar.cinetime.objects;
import java.util.Calendar;
publi... | true | true | public String getDisplay() {
String optimisedDisplay = display;
// "Séances du"
optimisedDisplay = optimisedDisplay.replaceAll(
"Séances du ([a-z]{2})[a-z]+ ([0-9]+) [a-zéû]+ 20[0-9]{2} :", "$1 $2 :");
// "(film à ..)"
optimisedDisplay = optimisedDisplay.replaceAll(" \\([^\\)]+\\)", "");
// "15:30, "... | public String getDisplay() {
String optimisedDisplay = display;
// "Séances du"
optimisedDisplay = optimisedDisplay.replaceAll(
"Séances du ([a-z]{2})[a-z]+ ([0-9]+) [a-zéû]+ 20[0-9]{2} :", "$1 $2 :");
// "(film à ..)"
optimisedDisplay = optimisedDisplay.replaceAll(" \\([^\\)]+\\)", "");
// "15:30, "... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/peer/PeerTransportFactory.java b/activemq-core/src/main/java/org/apache/activemq/transport/peer/PeerTransportFactory.java
index 3c908c936..fef19c797 100755
--- a/activemq-core/src/main/java/org/apache/activemq/transport/peer/PeerTransportFactory.jav... | true | true | private VMTransportFactory createTransportFactory(URI location) throws IOException {
try {
String group = location.getHost();
String broker = URISupport.stripPrefix(location.getPath(), "/");
if (group == null) {
group = "default";
}
... | private VMTransportFactory createTransportFactory(URI location) throws IOException {
try {
String group = location.getHost();
String broker = URISupport.stripPrefix(location.getPath(), "/");
if (group == null) {
group = "default";
}
... |
diff --git a/src/main/java/me/tehbeard/BeardAch/dataSource/AbstractDataSource.java b/src/main/java/me/tehbeard/BeardAch/dataSource/AbstractDataSource.java
index f0e9e96..c02f899 100644
--- a/src/main/java/me/tehbeard/BeardAch/dataSource/AbstractDataSource.java
+++ b/src/main/java/me/tehbeard/BeardAch/dataSource/Abstrac... | true | true | public void loadAchievements() {
// TODO Auto-generated method stub
//BeardAch.config.getList("achievements");
try {
BeardAch.config.load(new File(BeardAch.self.getDataFolder(),"BeardAch.yml"));
Set<String> achs = BeardAch.config.getConfigurationSection("achievements").getKeys(false);
if(achs==null){
... | public void loadAchievements() {
// TODO Auto-generated method stub
//BeardAch.config.getList("achievements");
try {
BeardAch.config.load(new File(BeardAch.self.getDataFolder(),"BeardAch.yml"));
Set<String> achs = BeardAch.config.getConfigurationSection("achievements").getKeys(false);
if(achs==null){
... |
diff --git a/src/main/java/caja/jcastulo/gui/Main.java b/src/main/java/caja/jcastulo/gui/Main.java
index c353d82..25e7332 100644
--- a/src/main/java/caja/jcastulo/gui/Main.java
+++ b/src/main/java/caja/jcastulo/gui/Main.java
@@ -1,274 +1,274 @@
/*
* To change this template, choose Tools | Templates
* and open the ... | false | true | private void initComponents() {
horizontalSplit = new javax.swing.JSplitPane();
consolePanel = new caja.gui.log.ConsolePanel();
verticalSplit = new javax.swing.JSplitPane();
topLeftPanel = new javax.swing.JPanel();
serverPanel = new caja.jcastulo.gui.ServerPanel();
s... | private void initComponents() {
horizontalSplit = new javax.swing.JSplitPane();
consolePanel = new caja.gui.log.ConsolePanel();
verticalSplit = new javax.swing.JSplitPane();
topLeftPanel = new javax.swing.JPanel();
serverPanel = new caja.jcastulo.gui.ServerPanel();
s... |
diff --git a/src/gov/nist/javax/sip/stack/SIPDialog.java b/src/gov/nist/javax/sip/stack/SIPDialog.java
index 74f9e3de..b4b17c60 100755
--- a/src/gov/nist/javax/sip/stack/SIPDialog.java
+++ b/src/gov/nist/javax/sip/stack/SIPDialog.java
@@ -1,4395 +1,4395 @@
/*
* Conditions Of Use
*
* This software was developed b... | true | true | public void setLastResponse(SIPTransaction transaction,
SIPResponse sipResponse) {
this.callIdHeader = sipResponse.getCallId();
final int statusCode = sipResponse.getStatusCode();
if (statusCode == 100) {
if (logger.isLoggingEnabled())
logger
... | public void setLastResponse(SIPTransaction transaction,
SIPResponse sipResponse) {
this.callIdHeader = sipResponse.getCallId();
final int statusCode = sipResponse.getStatusCode();
if (statusCode == 100) {
if (logger.isLoggingEnabled())
logger
... |
diff --git a/src/com/banzz/lifecounter/activities/TournamentActivity.java b/src/com/banzz/lifecounter/activities/TournamentActivity.java
index a8e8d5d..8023762 100644
--- a/src/com/banzz/lifecounter/activities/TournamentActivity.java
+++ b/src/com/banzz/lifecounter/activities/TournamentActivity.java
@@ -1,90 +1,90 @@
... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tournament);
TournamentPlayer Alex = new TournamentPlayer(0, "Alex", new ArrayList<Game>());
playerList.add(Alex);
TournamentPlayer Andrew = new TournamentPlayer(1, "Andrew", new Ar... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tournament);
TournamentPlayer Alex = new TournamentPlayer(0, "Alex", new ArrayList<Game>());
playerList.add(Alex);
TournamentPlayer Olivier = new TournamentPlayer(1, "Olivier", new ... |
diff --git a/cocos2d-android/src/org/cocos2d/nodes/CCSprite.java b/cocos2d-android/src/org/cocos2d/nodes/CCSprite.java
index 058f1d2..d744001 100644
--- a/cocos2d-android/src/org/cocos2d/nodes/CCSprite.java
+++ b/cocos2d-android/src/org/cocos2d/nodes/CCSprite.java
@@ -1,1104 +1,1104 @@
package org.cocos2d.nodes;
im... | true | true | public void updateTransform() {
tmpMatrix.setToIdentity();
// Optimization: if it is not visible, then do nothing
if( ! visible_ ) {
Arrays.fill(tmpV, 0);
textureAtlas_.putVertex(textureAtlas_.getVertexBuffer(), tmpV, atlasIndex);
dirty_ = recursiveDirty_ = false;
... | public void updateTransform() {
tmpMatrix.setToIdentity();
// Optimization: if it is not visible, then do nothing
if( ! visible_ ) {
Arrays.fill(tmpV, 0);
textureAtlas_.putVertex(textureAtlas_.getVertexBuffer(), tmpV, atlasIndex);
dirty_ = recursiveDirty_ = false;
... |
diff --git a/enduro-project/test/unittest/MarathonSorterTest.java b/enduro-project/test/unittest/MarathonSorterTest.java
index 14eb37d..d2831c3 100644
--- a/enduro-project/test/unittest/MarathonSorterTest.java
+++ b/enduro-project/test/unittest/MarathonSorterTest.java
@@ -1,86 +1,86 @@
package unittest;
import stat... | true | true | public void testReadingFiles() {
try {
sorter.readStartFile("./unit-test-files/fakeStart.txt");
sorter.readFinishFile("./unit-test-files/fakeFinish.txt");
sorter.readNameFile("./unit-test-files/fakeName.txt");
sorter.createResultFile("./unit-test-files/fakesortertestresult.txt");
ArrayList<String[]>... | public void testReadingFiles() {
try {
sorter.readStartFile("./test/unit-test-files/fakeStart.txt");
sorter.readFinishFile("./test/unit-test-files/fakeFinish.txt");
sorter.readNameFile("./test/unit-test-files/fakeName.txt");
sorter.createResultFile("./test/unit-test-files/fakesortertestresult.txt");
... |
diff --git a/modules/org.restlet/src/org/restlet/engine/converter/ConverterUtils.java b/modules/org.restlet/src/org/restlet/engine/converter/ConverterUtils.java
index 7d2c4b68d..94678ca3e 100644
--- a/modules/org.restlet/src/org/restlet/engine/converter/ConverterUtils.java
+++ b/modules/org.restlet/src/org/restlet/engi... | true | true | public static List<VariantInfo> getVariants(Class<?> sourceClass,
Variant targetVariant) {
List<VariantInfo> result = null;
List<VariantInfo> helperVariants = null;
for (ConverterHelper ch : Engine.getInstance()
.getRegisteredConverters()) {
// List o... | public static List<VariantInfo> getVariants(Class<?> sourceClass,
Variant targetVariant) {
List<VariantInfo> result = null;
List<VariantInfo> helperVariants = null;
for (ConverterHelper ch : Engine.getInstance()
.getRegisteredConverters()) {
// List o... |
diff --git a/src/jdbc/JdbcSqlDriver.java b/src/jdbc/JdbcSqlDriver.java
index dba8cc4f..e559fefc 100644
--- a/src/jdbc/JdbcSqlDriver.java
+++ b/src/jdbc/JdbcSqlDriver.java
@@ -1,127 +1,132 @@
package csql.jdbc;
import java.util.Properties;
import java.util.StringTokenizer;
import java.sql.Driver;
import java.sql.Dr... | true | true | public boolean acceptsURL(String url)
{
//pattern jdbc:csql:
String trimURL = url.toLowerCase().trim();
StringTokenizer tokens = new StringTokenizer(trimURL, ":", false);
int tokenNo =1;
while(tokens.hasMoreTokens())
{
String t = tokens.nextToken().tri... | public boolean acceptsURL(String url)
{
//pattern jdbc:csql:
String trimURL = url.toLowerCase().trim();
StringTokenizer tokens = new StringTokenizer(trimURL, ":", false);
int tokenNo =1;
while(tokens.hasMoreTokens())
{
String t = tokens.nextToken().tri... |
diff --git a/htroot/yacy/search.java b/htroot/yacy/search.java
index d03365985..1b1f87cb1 100644
--- a/htroot/yacy/search.java
+++ b/htroot/yacy/search.java
@@ -1,306 +1,314 @@
// search.java
// (C) 2004 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany
// first published on http://yacy.net
//
// Th... | true | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
if ((post == null) || (env == null)) return ... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
if ((post == null) || (env == null)) return ... |
diff --git a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/query/Query.java b/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/query/Query.java
index 3e85c171..def851a9 100644
--- a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/query/Query.java
+++ b/grails-da... | false | true | public List list() {
uniqueResult = false;
flushBeforeQuery();
ApplicationEventPublisher publisher = session.getDatastore().getApplicationEventPublisher();
publisher.publishEvent(new PreQueryEvent(this));
List results = executeQuery(entity, criteria);
PostQueryEven... | public List list() {
uniqueResult = false;
flushBeforeQuery();
ApplicationEventPublisher publisher = session.getDatastore().getApplicationEventPublisher();
if(publisher != null) {
publisher.publishEvent(new PreQueryEvent(this));
}
List results = executeQ... |
diff --git a/application/src/com.phdroid/smsb/storage/dao/DatabaseOpenHelper.java b/application/src/com.phdroid/smsb/storage/dao/DatabaseOpenHelper.java
index 439f7e8..563136a 100644
--- a/application/src/com.phdroid/smsb/storage/dao/DatabaseOpenHelper.java
+++ b/application/src/com.phdroid/smsb/storage/dao/DatabaseOpe... | true | true | public void onCreate(SQLiteDatabase db) {
String sql = "CREATE TABLE " + SenderContentProvider.TABLE_NAME + " (" +
SmsMessageSenderEntry._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
SmsMessageSenderEntry.VALUE + " NVARCHAR(255)," + //todo:check for unique con... | public void onCreate(SQLiteDatabase db) {
String sql = "CREATE TABLE " + SenderContentProvider.TABLE_NAME + " (" +
SmsMessageSenderEntry._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
SmsMessageSenderEntry.VALUE + " NVARCHAR(255)," + //todo:check for unique con... |
diff --git a/src/com/palmergames/bukkit/towny/command/PlotCommand.java b/src/com/palmergames/bukkit/towny/command/PlotCommand.java
index 466a83d..39112f7 100644
--- a/src/com/palmergames/bukkit/towny/command/PlotCommand.java
+++ b/src/com/palmergames/bukkit/towny/command/PlotCommand.java
@@ -1,528 +1,528 @@
package co... | true | true | public boolean parsePlotCommand(Player player, String[] split) throws TownyException {
if (split.length == 0 || split[0].equalsIgnoreCase("?")) {
for (String line : output)
player.sendMessage(line);
} else {
/*
* check we have the right permission node for this command.
*/
if ((!TownyUnivers... | public boolean parsePlotCommand(Player player, String[] split) throws TownyException {
if (split.length == 0 || split[0].equalsIgnoreCase("?")) {
for (String line : output)
player.sendMessage(line);
} else {
/*
* check we have the right permission node for this command.
*/
if ((!TownyUnivers... |
diff --git a/perf/src/main/java/org/adbcj/perf/PipelineTest.java b/perf/src/main/java/org/adbcj/perf/PipelineTest.java
index c8fc015..b3077c2 100644
--- a/perf/src/main/java/org/adbcj/perf/PipelineTest.java
+++ b/perf/src/main/java/org/adbcj/perf/PipelineTest.java
@@ -1,50 +1,50 @@
package org.adbcj.perf;
import st... | true | true | public static void main(String[] args) throws Exception {
final String host;
if (args.length > 0) {
host = args[0];
} else {
host = "localhost";
//host = "10.108.37.24"; // rldb
//host = "192.168.0.15";
}
System.out.println("Database Host: " + host);
System.out.println(System.getProperty("java... | public static void main(String[] args) throws Exception {
final String host;
if (args.length > 0) {
host = args[0];
} else {
host = "localhost";
//host = "10.108.37.24"; // rldb
//host = "192.168.0.15";
}
System.out.println("Database Host: " + host);
System.out.println(System.getProperty("java... |
diff --git a/src/com/oresomecraft/maps/arcade/maps/Raceway_alpha.java b/src/com/oresomecraft/maps/arcade/maps/Raceway_alpha.java
index 9ef74fa..f144327 100755
--- a/src/com/oresomecraft/maps/arcade/maps/Raceway_alpha.java
+++ b/src/com/oresomecraft/maps/arcade/maps/Raceway_alpha.java
@@ -1,128 +1,121 @@
package com.or... | false | true | public void moveChecker(final PlayerMoveEvent event) {
final Player p = event.getPlayer();
if (!p.getWorld().getName().equals("raceway_alpha")) return;
if (contains(p.getLocation(), -17, -15, 81, 59, -27, 5)) {
p.sendMessage(ChatColor.RED + "You can't go here!!");
p.t... | public void moveChecker(final PlayerMoveEvent event) {
final Player p = event.getPlayer();
if (!p.getWorld().getName().equals("raceway_alpha")) return;
if (contains(p.getLocation(), -17, -15, 81, 59, -27, 5)) {
p.sendMessage(ChatColor.RED + "You can't go here!!");
p.t... |
diff --git a/jwic.samples/src/de/jwic/ecolib/samples/controls/AsyncDemo.java b/jwic.samples/src/de/jwic/ecolib/samples/controls/AsyncDemo.java
index f2f80b1b..0e2b8933 100644
--- a/jwic.samples/src/de/jwic/ecolib/samples/controls/AsyncDemo.java
+++ b/jwic.samples/src/de/jwic/ecolib/samples/controls/AsyncDemo.java
@@ -1... | true | true | private void init() {
btRun = new Button(this, "btRun");
btRun.setTitle("Run");
btRun.addSelectionListener(new SelectionListener() {
public void objectSelected(SelectionEvent event) {
startProcess();
}
});
infoContainer = new AsyncInfoContainer(this, "async");
infoContainer.setInfoMessage("... | private void init() {
btRun = new Button(this, "btRun");
btRun.setTitle("Run");
btRun.addSelectionListener(new SelectionListener() {
public void objectSelected(SelectionEvent event) {
startProcess();
}
});
infoContainer = new AsyncInfoContainer(this, "async");
infoContainer.setInfoMessage("... |
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/keymap/vim/SimpleKeyStroke.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/keymap/vim/SimpleKeyStroke.java
index 5c8af1b0..c1f45fca 100644
--- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/keymap/vim/SimpleKeyStroke.java
... | true | true | public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof KeyStroke)) {
return false;
}
KeyStroke other = (KeyStroke) obj;
if (character != other.ge... | public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof KeyStroke)) {
return false;
}
KeyStroke other = (KeyStroke) obj;
if (character != other.ge... |
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachManagerLite.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachManagerLite.java
index 6289e0485..9f97fc0ac 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachManagerLite.java
+++ b/openjpa-kernel/src/main/j... | true | true | private void detachProxyField(FieldMetaData fmd, PersistenceCapable pc, StateManagerImpl sm, TransferFieldManager fm) {
int fieldIndex = fmd.getIndex();
if (fmd.isLRS() == true) {
// need to null out LRS fields.
nullField(fieldIndex, pc, sm, fm);
} else {
... | private void detachProxyField(FieldMetaData fmd, PersistenceCapable pc,
StateManagerImpl sm, TransferFieldManager fm) {
int fieldIndex = fmd.getIndex();
if (fmd.isLRS() == true) {
// need to null out LRS fields.
nullField(fieldIndex, pc, sm, fm);
} else {
... |
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/validation/internal/strategy/AttributeValidatingStrategy.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/validation/internal/strategy/AttributeValidatingStrategy.java
index e921d48b8..f30a5c445 100644
--- a/jsf/plugins/org.ecl... | true | true | private boolean checkIfELAndValidate(final Region2ElementAdapter elementAdapter,
final Region2AttrAdapter attrAdapter,
final IStructuredDocumentContext context)
{
int offsetOfFirstEL = -1;
final String attrValue = attrAdapter.getValue();
// TODO: should find and ... | private boolean checkIfELAndValidate(final Region2ElementAdapter elementAdapter,
final Region2AttrAdapter attrAdapter,
final IStructuredDocumentContext context)
{
int offsetOfFirstEL = -1;
final String attrValue = attrAdapter.getValue();
// TODO: should find and ... |
diff --git a/freeplane/src/org/freeplane/features/common/attribute/NodeAttributeTableModel.java b/freeplane/src/org/freeplane/features/common/attribute/NodeAttributeTableModel.java
index 30eb992d0..0be81a2ec 100644
--- a/freeplane/src/org/freeplane/features/common/attribute/NodeAttributeTableModel.java
+++ b/freeplane/... | true | true | protected void setTooltip() {
final int rowCount = getRowCount();
if(rowCount == 0){
node.setToolTip(ATTRIBUTE_TOOLTIP, null);
return;
}
if(rowCount == 1){
node.setToolTip(ATTRIBUTE_TOOLTIP, new ITooltipProvider(){
public String getTooltip() {
final AttributeRegistry registry = AttributeRegis... | protected void setTooltip() {
final int rowCount = getRowCount();
if(rowCount == 0){
node.setToolTip(ATTRIBUTE_TOOLTIP, null);
return;
}
if(rowCount == 1){
node.setToolTip(ATTRIBUTE_TOOLTIP, new ITooltipProvider(){
public String getTooltip() {
final AttributeRegistry registry = AttributeRegis... |
diff --git a/nexus-gwt-ui/sonatype-ext-gwt-nexus-client/src/main/java/org/sonatype/nexus/ext/gwt/ui/client/NexusUI.java b/nexus-gwt-ui/sonatype-ext-gwt-nexus-client/src/main/java/org/sonatype/nexus/ext/gwt/ui/client/NexusUI.java
index 438b740e0..6642a788e 100644
--- a/nexus-gwt-ui/sonatype-ext-gwt-nexus-client/src/main... | false | true | private void showLoginWindow() {
final Window loginWindow = new Window() {
{
setHeading("Nexus Log In");
setAutoWidth(false);
setWidth(350);
setAutoHeight(true);
setModal(true);
setResizable(false);
... | private void showLoginWindow() {
final Window loginWindow = new Window() {
{
setHeading("Nexus Log In");
setAutoWidth(false);
setWidth(350);
setAutoHeight(true);
setModal(true);
setResizable(false);
... |
diff --git a/src/Tutorial_0_1/Main.java b/src/Tutorial_0_1/Main.java
index f0f02b3..f669238 100644
--- a/src/Tutorial_0_1/Main.java
+++ b/src/Tutorial_0_1/Main.java
@@ -1,49 +1,49 @@
package Tutorial_0_1;
import com.gmail.robmadeyou.Screen;
import com.gmail.robmadeyou.Screen.GameType;
import com.gmail.robmadeyou.... | true | true | public static void main(String[] args) {
//Creating screen as previously seen again
Screen.create(640, 640, "Name", GameType.SIDE_SCROLLER, false);
/*
* This is new. We are creating a new Entity called Player. The new entity
* is called player. Java is case sensetive so we are able to do this.
*
* a... | public static void main(String[] args) {
//Creating screen as previously seen again
Screen.create(640, 640, "Name", GameType.SIDE_SCROLLER, false);
/*
* This is new. We are creating a new Entity called Player. The new entity
* is called player. Java is case sensetive so we are able to do this.
*
* a... |
diff --git a/src/jfmi/gui/FileSearchDialog.java b/src/jfmi/gui/FileSearchDialog.java
index 54a4a77..2bcf311 100644
--- a/src/jfmi/gui/FileSearchDialog.java
+++ b/src/jfmi/gui/FileSearchDialog.java
@@ -1,135 +1,138 @@
package jfmi.gui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import... | true | true | public FileSearchDialog(
JFrame parent,
String title,
ActionListener searchListener,
FormBox form,
ListSelectionBox<T> list
)
{
// Initialize instance
super(parent, title, IS_MODAL);
setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
setVisible(false);
formBox = form;
listBox = list;
/... | public FileSearchDialog(
JFrame parent,
String title,
ActionListener searchListener,
FormBox form,
ListSelectionBox<T> list
)
{
// Initialize instance
super(parent, title, IS_MODAL);
setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
setVisible(false);
formBox = form;
listBox = list;
/... |
diff --git a/test/src/framework/FXCompilerTest.java b/test/src/framework/FXCompilerTest.java
index 63386ee94..36f547c51 100644
--- a/test/src/framework/FXCompilerTest.java
+++ b/test/src/framework/FXCompilerTest.java
@@ -1,181 +1,181 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTE... | true | true | private static void findTests(File dir, List<Test> tests, Set<String> orphanFiles) throws Exception {
String pattern = System.getProperty(TEST_FX_INCLUDES);
DirectoryScanner ds = new DirectoryScanner();
ds.setIncludes(new String[] { (pattern == null ? "**/*.fx" : pattern) });
ds.setB... | private static void findTests(File dir, List<Test> tests, Set<String> orphanFiles) throws Exception {
String pattern = System.getProperty(TEST_FX_INCLUDES);
DirectoryScanner ds = new DirectoryScanner();
ds.setIncludes(new String[] { (pattern == null ? "**/*.fx" : pattern) });
ds.setB... |
diff --git a/src/main/java/config/FileManager.java b/src/main/java/config/FileManager.java
index bd41b17..24e94bb 100644
--- a/src/main/java/config/FileManager.java
+++ b/src/main/java/config/FileManager.java
@@ -1,258 +1,260 @@
package config;
import java.io.IOException;
import java.nio.file.DirectoryStream;
i... | false | true | public void replaceAll() {
if (!Files.exists(configBackupPath)) {
try {
// backup tf/cfg and copy lawena's cfg
Files.move(configPath, configBackupPath);
Files.createDirectories(configPath);
copy(Paths.get("cfg"), configPath);
... | public void replaceAll() {
if (!Files.exists(configBackupPath)) {
try {
// backup tf/cfg and copy lawena's cfg
configPath.toFile().setWritable(true);
Files.move(configPath, configBackupPath);
Files.createDirectories(configPath);
... |
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/FileModificationValidator.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/FileModificationValidator.java
index 6a2b790f1..3b2ef9a6b 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/c... | true | true | private IStatus edit(final IFile[] files, final Shell shell) {
try {
if (shell != null && !promptToEditFiles(files, shell)) {
// The user didn't want to edit.
// OK is returned but the file remains read-only
throw new InterruptedException();
}
// Run the edit in a runnable in order to get a ... | private IStatus edit(final IFile[] files, final Shell shell) {
try {
if (shell != null && !promptToEditFiles(files, shell)) {
// The user didn't want to edit.
// OK is returned but the file remains read-only
throw new InterruptedException();
}
// Run the edit in a runnable in order to get a ... |
diff --git a/src/edu/ames/frc/robot/RobotProject.java b/src/edu/ames/frc/robot/RobotProject.java
index 39f19c5..25a412c 100644
--- a/src/edu/ames/frc/robot/RobotProject.java
+++ b/src/edu/ames/frc/robot/RobotProject.java
@@ -1,69 +1,69 @@
/*----------------------------------------------------------------------------*/... | true | true | public void autonomousPeriodic() {
//Tarun example
/* double[] example = new double[3];
example[0] = 0;
example[1] = 1;
example[2] = 2;
MC.drive(example);
*/
}
| public void autonomousPeriodic() {
//Tarun example
/* double[] example = new double[3];
example[0] = 0;
example[1] = 1;
example[2] = 1;
MC.drive(example);
*/
}
|
diff --git a/Model/src/java/fr/cg95/cvq/service/request/impl/AutofillService.java b/Model/src/java/fr/cg95/cvq/service/request/impl/AutofillService.java
index 037ef2450..197802881 100644
--- a/Model/src/java/fr/cg95/cvq/service/request/impl/AutofillService.java
+++ b/Model/src/java/fr/cg95/cvq/service/request/impl/Auto... | true | true | public Map<String, String> getValues(String triggerName, Long id, Map<String, String> keys)
throws CvqObjectNotFoundException {
Object trigger = TriggerType.valueOf(triggerName.toUpperCase()).getService().getById(id);
Object currentObject;
Map<String, String> values = new HashMap<Str... | public Map<String, String> getValues(String triggerName, Long id, Map<String, String> keys)
throws CvqObjectNotFoundException {
Object trigger = TriggerType.valueOf(triggerName.toUpperCase()).getService().getById(id);
Object currentObject;
Map<String, String> values = new HashMap<Str... |
diff --git a/wiki30-realtime-wysiwyg/wiki30-realtime-wysiwyg-plugin/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/rt/RealTimePlugin.java b/wiki30-realtime-wysiwyg/wiki30-realtime-wysiwyg-plugin/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/rt/RealTimePlugin.java
index 318b1e4..0ed03c0 100644
--- a/wiki30-realti... | true | true | public void onKeyDown(KeyDownEvent event) {
final int keyCode = event.getNativeKeyCode();
log.fine("onKeyDown: " + keyCode + ", native evt.keyCode" + event.getNativeEvent().getKeyCode());
Selection selection = getTextArea().getDocument().getSelection();
if (selection.getRangeCount() ... | public void onKeyDown(KeyDownEvent event) {
final int keyCode = event.getNativeKeyCode();
log.fine("onKeyDown: " + keyCode + ", native evt.keyCode" + event.getNativeEvent().getKeyCode());
Selection selection = getTextArea().getDocument().getSelection();
if (selection.getRangeCount() ... |
diff --git a/ghana-national-core/src/test/java/org/motechproject/ghana/national/handler/MobileMidwifeCampaignEventHandlerTest.java b/ghana-national-core/src/test/java/org/motechproject/ghana/national/handler/MobileMidwifeCampaignEventHandlerTest.java
index fd48c119..e21eb17b 100644
--- a/ghana-national-core/src/test/ja... | true | true | public void shouldPlaceCallWhenTheIVRCallEventIsReceived() {
ServiceType serviceType = ServiceType.PREGNANCY;
String patientId = "1234568";
final String url = "http://ivr";
Language language = Language.EN;
String campaignName = "PREGNANCY_VOICE";
DateTime enrollmentDa... | public void shouldPlaceCallWhenTheIVRCallEventIsReceived() {
ServiceType serviceType = ServiceType.PREGNANCY;
String patientId = "1234568";
final String url = "http://ivr";
Language language = Language.EN;
String campaignName = "PREGNANCY_VOICE";
DateTime enrollmentDa... |
diff --git a/spring-security-oauth/src/main/java/org/springframework/security/oauth/config/ConsumerServiceBeanDefinitionParser.java b/spring-security-oauth/src/main/java/org/springframework/security/oauth/config/ConsumerServiceBeanDefinitionParser.java
index 1a59249d..4afeb49f 100644
--- a/spring-security-oauth/src/mai... | false | true | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
List consumerElements = DomUtils.getChildElementsByTagName(element, "consumer");
Map<String, BaseConsumerDetails> consumers = new TreeMap<String, BaseConsumerDetails>();
for (Object item : consumerElement... | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
List consumerElements = DomUtils.getChildElementsByTagName(element, "consumer");
Map<String, BaseConsumerDetails> consumers = new TreeMap<String, BaseConsumerDetails>();
for (Object item : consumerElement... |
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
index d5297904d..74712be47 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
@@ ... | false | true | public void prepare(Bitmap bitmap, float scaleFactor, int quality) {
if (sOldBitmap == null
|| (bitmap.getWidth() != sOldBitmap.getWidth())
|| (bitmap.getHeight() != sOldBitmap.getHeight())) {
if (mInPixelsAllocation != null) {
mInPixelsAllocation.... | public void prepare(Bitmap bitmap, float scaleFactor, int quality) {
if (sOldBitmap == null
|| (bitmap.getWidth() != sOldBitmap.getWidth())
|| (bitmap.getHeight() != sOldBitmap.getHeight())) {
if (mInPixelsAllocation != null) {
mInPixelsAllocation.... |
diff --git a/src/net/specialattack/modjam/block/BlockController.java b/src/net/specialattack/modjam/block/BlockController.java
index 5610607..d65161f 100644
--- a/src/net/specialattack/modjam/block/BlockController.java
+++ b/src/net/specialattack/modjam/block/BlockController.java
@@ -1,109 +1,112 @@
package net.spec... | true | true | public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float posX, float posY, float posZ) {
TileEntity tile = world.getBlockTileEntity(x, y, z);
if (tile != null && tile instanceof TileEntityController) {
TileEntityController controller = (Tile... | public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float posX, float posY, float posZ) {
TileEntity tile = world.getBlockTileEntity(x, y, z);
if (tile != null && tile instanceof TileEntityController) {
TileEntityController controller = (Tile... |
diff --git a/src/com/jpii/navalbattle/game/turn/Player.java b/src/com/jpii/navalbattle/game/turn/Player.java
index a77c0e6e..d72f69f3 100644
--- a/src/com/jpii/navalbattle/game/turn/Player.java
+++ b/src/com/jpii/navalbattle/game/turn/Player.java
@@ -1,131 +1,134 @@
package com.jpii.navalbattle.game.turn;
import ja... | false | true | public void nextEntity(Entity e){
Entity temp = null;
if(e==null){
temp = entities.get(0);
}
else{
if(entities.contains(e)){
temp = entities.get(entities.indexOf(e)+1);
}
else{
entities.get(0);
}
}
if(temp == null)
return;
temp.getManager().getWorld().animatedSetLoc(temp.getLoca... | public void nextEntity(Entity e){
Entity temp = null;
if(e==null){
temp = entities.get(0);
}
else{
if(entities.contains(e)){
int index = entities.indexOf(e)+1;
if(index>=entities.size())
index -= entities.size();
temp = entities.get(1);
}
else{
temp = entities.get(0);
}
}
... |
diff --git a/TFC_Shared/src/TFC/Items/Pottery/ItemPotterySmallVessel.java b/TFC_Shared/src/TFC/Items/Pottery/ItemPotterySmallVessel.java
index 79b1e4a88..7a8e3b065 100644
--- a/TFC_Shared/src/TFC/Items/Pottery/ItemPotterySmallVessel.java
+++ b/TFC_Shared/src/TFC/Items/Pottery/ItemPotterySmallVessel.java
@@ -1,248 +1,24... | false | true | public void onDoneCooking(World world, ItemStack is, Alloy.EnumTier furnaceTier)
{
ItemStack[] bag = loadBagInventory(is);
boolean canCookAlloy = true;
for(int i = 0; i < 4; i++)
{
if(bag[i] != null)
{
if(!(bag[i].getItem() instanceof ItemOreSmall) && !(bag[i].getItem() instanceof ItemOre))
{
... | public void onDoneCooking(World world, ItemStack is, Alloy.EnumTier furnaceTier)
{
ItemStack[] bag = loadBagInventory(is);
boolean canCookAlloy = true;
for(int i = 0; i < 4; i++)
{
if(bag[i] != null)
{
if(!(bag[i].getItem() instanceof ItemOreSmall) && !(bag[i].getItem() instanceof ItemOre))
{
... |
diff --git a/src/instructions/UIG_ShiftManipulate.java b/src/instructions/UIG_ShiftManipulate.java
index 7948b50..662afae 100644
--- a/src/instructions/UIG_ShiftManipulate.java
+++ b/src/instructions/UIG_ShiftManipulate.java
@@ -1,172 +1,173 @@
package instructions;
import static assemblernator.ErrorReporting.makeE... | true | true | public final boolean check(ErrorHandler hErr, Module module){
boolean isValid = true;
int value;
//The only possible combination has 2 operands
if(this.operands.size() > 2){
isValid = false;
hErr.reportError(makeError("extraOperandsIns", this.getOpId()), this.lineNum, -1);
} else if(this.operands.size(... | public final boolean check(ErrorHandler hErr, Module module){
boolean isValid = true;
int value;
//The only possible combination has 2 operands
if(this.operands.size() > 2){
isValid = false;
hErr.reportError(makeError("extraOperandsIns", this.getOpId()), this.lineNum, -1);
} else if(this.operands.size(... |
diff --git a/tests/java/axis/testcases/RaisesExceptionTestCase.java b/tests/java/axis/testcases/RaisesExceptionTestCase.java
index 7cb5e4d..3e36fbd 100644
--- a/tests/java/axis/testcases/RaisesExceptionTestCase.java
+++ b/tests/java/axis/testcases/RaisesExceptionTestCase.java
@@ -1,20 +1,20 @@
package testcases;
im... | true | true | public void test() {
try {
System.out.println(port.raises_exception());
} catch (com.example.types.Error e) {
Assert.assertTrue(e.toString().equals("hello error"));
return;
} catch (RemoteException e) {}
Assert.assertTrue("Exception hasn't been thr... | public void test() {
try {
System.out.println(port.raises_exception("hello"));
} catch (com.example.types.Error e) {
Assert.assertTrue(e.toString().equals("hello error"));
return;
} catch (RemoteException e) {}
Assert.assertTrue("Exception hasn't b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.