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/application/src/main/java/dk/hlyh/hudson/tools/jobcreator/Resolver.java b/application/src/main/java/dk/hlyh/hudson/tools/jobcreator/Resolver.java
index 5b5238e..dac0e10 100644
--- a/application/src/main/java/dk/hlyh/hudson/tools/jobcreator/Resolver.java
+++ b/application/src/main/java/dk/hlyh/hudson/tools/... | true | true | public void resolve() throws IOException, TemplateException {
// Find the active environment
Environment activeEnvironment = findEnvironment();
if (activeEnvironment == null) {
return;
}
LOGGER.info("Active environment: " + activeEnvironment);
// get The list of jobs
IncludedJobsVi... | public void resolve() throws IOException, TemplateException,ImportException {
// Find the active environment
Environment activeEnvironment = findEnvironment();
if (activeEnvironment == null) {
return;
}
LOGGER.info("Active environment: " + activeEnvironment);
// get The list of jobs
... |
diff --git a/src/main/java/org/primefaces/mobile/renderkit/CommandButtonRenderer.java b/src/main/java/org/primefaces/mobile/renderkit/CommandButtonRenderer.java
index 337e447..79591d6 100644
--- a/src/main/java/org/primefaces/mobile/renderkit/CommandButtonRenderer.java
+++ b/src/main/java/org/primefaces/mobile/renderki... | false | true | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
CommandButton button = (CommandButton) component;
String clientId = button.getClientId(context);
String type = button.getType();
write... | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
CommandButton button = (CommandButton) component;
String clientId = button.getClientId(context);
String type = button.getType();
Map<St... |
diff --git a/dbflute/src/main/java/org/seasar/dbflute/properties/assistant/classification/DfClassificationAllInOneSqlExecutor.java b/dbflute/src/main/java/org/seasar/dbflute/properties/assistant/classification/DfClassificationAllInOneSqlExecutor.java
index c9eb88843..312ff6b93 100644
--- a/dbflute/src/main/java/org/sea... | true | true | public List<Map<String, String>> executeAllInOneSql(Connection conn, String sql) {
Statement stmt = null;
ResultSet rs = null;
final List<Map<String, String>> elementList = new ArrayList<Map<String, String>>();
try {
stmt = conn.createStatement();
_log.debug("... | public List<Map<String, String>> executeAllInOneSql(Connection conn, String sql) {
Statement stmt = null;
ResultSet rs = null;
final List<Map<String, String>> elementList = new ArrayList<Map<String, String>>();
try {
stmt = conn.createStatement();
_log.debug("... |
diff --git a/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/translator/PropertyReadExpander.java b/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/translator/PropertyReadExpander.java
index ef5dfbf4f..6bb9cbc7c 100644
--- a/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/translator/PropertyReadExpander.java
+++ b/c... | true | true | protected CAstNode copyNodes(CAstNode root, RewriteContext context, Map nodeMap) {
int kind = root.getKind();
if (kind == CAstNode.OBJECT_REF && context.inRead()) {
CAstNode readLoop;
CAstNode receiver = copyNodes(root.getChild(0), READ, nodeMap);
CAstNode element = copyNodes(root.getChild(... | protected CAstNode copyNodes(CAstNode root, RewriteContext context, Map<Pair,CAstNode> nodeMap) {
int kind = root.getKind();
if (kind == CAstNode.OBJECT_REF && context.inRead()) {
CAstNode readLoop;
CAstNode receiver = copyNodes(root.getChild(0), READ, nodeMap);
CAstNode element = copyNodes... |
diff --git a/openFaces/source/org/openfaces/renderkit/panel/BorderLayoutPanelRenderer.java b/openFaces/source/org/openfaces/renderkit/panel/BorderLayoutPanelRenderer.java
index eb57b24b1..902d885df 100644
--- a/openFaces/source/org/openfaces/renderkit/panel/BorderLayoutPanelRenderer.java
+++ b/openFaces/source/org/open... | false | true | public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
if (!component.isRendered()) return;
super.encodeBegin(context, component);
ResponseWriter writer = context.getResponseWriter();
BorderLayoutPanel borderLayoutPanel = (BorderLayoutPanel) compone... | public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
if (!component.isRendered()) return;
super.encodeBegin(context, component);
ResponseWriter writer = context.getResponseWriter();
BorderLayoutPanel borderLayoutPanel = (BorderLayoutPanel) compone... |
diff --git a/src/org/rascalmpl/parser/gtd/result/uptr/action/BootRascalActionExecutor.java b/src/org/rascalmpl/parser/gtd/result/uptr/action/BootRascalActionExecutor.java
index 50d2a52261..61761f2b0c 100644
--- a/src/org/rascalmpl/parser/gtd/result/uptr/action/BootRascalActionExecutor.java
+++ b/src/org/rascalmpl/parse... | true | true | private IConstructor filterArg(IConstructor tree, IConstructor prod, String father, int pos, String... children) {
String cons = ProductionAdapter.getConstructorName(prod);
if (cons.equals(father)) {
IConstructor arg = (IConstructor) TreeAdapter.getArgs(tree).get(pos);
if (TreeAdapter.isAppl(arg)) {
... | private IConstructor filterArg(IConstructor tree, IConstructor prod, String father, int pos, String... children) {
String cons = ProductionAdapter.getConstructorName(prod);
if (cons.equals(father)) {
IConstructor arg = (IConstructor) TreeAdapter.getArgs(tree).get(pos);
if (TreeAdapter.isAppl(arg)) {
... |
diff --git a/src/org/bouncycastle/cms/SignerInformation.java b/src/org/bouncycastle/cms/SignerInformation.java
index 2fe34e49..0239b04c 100644
--- a/src/org/bouncycastle/cms/SignerInformation.java
+++ b/src/org/bouncycastle/cms/SignerInformation.java
@@ -1,534 +1,534 @@
package org.bouncycastle.cms;
import java.io.... | true | true | private boolean doVerify(
PublicKey key,
AttributeTable signedAttrTable,
String sigProvider)
throws CMSException, NoSuchAlgorithmException, NoSuchProviderException
{
String digestName = CMSSignedHelper.INSTANCE.getDigestAlgName(this.getDigestAlgOI... | private boolean doVerify(
PublicKey key,
AttributeTable signedAttrTable,
String sigProvider)
throws CMSException, NoSuchAlgorithmException, NoSuchProviderException
{
String digestName = CMSSignedHelper.INSTANCE.getDigestAlgName(this.getDigestAlgOI... |
diff --git a/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/db2/DB2ExceptionSorter.java b/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/db2/DB2ExceptionSorter.java
index 3e900bf74..b0dbe6deb 100644
--- a/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/db2/DB2ExceptionSorter.... | true | true | public boolean isExceptionFatal(final SQLException e)
{
final int code = Math.abs(e.getErrorCode());
boolean isFatal = false;
if (code == 4499)
{
isFatal = true;
}
if (trace)
{
logger.trace("Evaluated SQL error code " + code + " isException... | public boolean isExceptionFatal(final SQLException e)
{
final int code = Math.abs(e.getErrorCode());
boolean isFatal = false;
if (code == 4470)
{
isFatal = true;
}
else if (code == 4499)
{
isFatal = true;
}
if (trace)
{
... |
diff --git a/com.ggasoftware.indigo.knime.plugin/src/com/ggasoftware/indigo/knime/convert/base/IndigoSaverNodeModel.java b/com.ggasoftware.indigo.knime.plugin/src/com/ggasoftware/indigo/knime/convert/base/IndigoSaverNodeModel.java
index c4ae669..e629dec 100644
--- a/com.ggasoftware.indigo.knime.plugin/src/com/ggasoftwa... | true | true | public DataCell getCell (final DataRow row)
{
DataCell cell = row.getCell(_colIndex);
if (cell.isMissing())
{
return cell;
}
else
{
IndigoObject io = ((IndigoDataValue)cell).getIndigoObject();
try
{
... | public DataCell getCell (final DataRow row)
{
DataCell cell = row.getCell(_colIndex);
if (cell.isMissing())
{
return cell;
}
else
{
IndigoObject io = ((IndigoDataValue)cell).getIndigoObject();
try
{
... |
diff --git a/src/se/danielduner/minesweeper/client/StupidAI.java b/src/se/danielduner/minesweeper/client/StupidAI.java
index 135f2be..790cac7 100644
--- a/src/se/danielduner/minesweeper/client/StupidAI.java
+++ b/src/se/danielduner/minesweeper/client/StupidAI.java
@@ -1,110 +1,110 @@
package se.danielduner.minesweeper... | false | true | public void updateSuggestion() {
if (field.getGameStatus()!=GameStatus.PLAYING) {
return;
}
Queue<Coordinate> coordinateQueue = new LinkedList<Coordinate>();
Coordinate stupidGuess = null;
int width = field.getWidth();
int height = field.getHeight();
boolean[][] explored = new boolean[width][height];
... | public void updateSuggestion() {
if (field.getGameStatus()!=GameStatus.PLAYING) {
return;
}
Queue<Coordinate> coordinateQueue = new LinkedList<Coordinate>();
Coordinate stupidGuess = null;
int width = field.getWidth();
int height = field.getHeight();
boolean[][] explored = new boolean[width][height];
... |
diff --git a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java b/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfiguration.java
index 9b101897..1d8387f3 100644
--- a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConf... | true | true | private boolean checkConfig() throws Exception {
if (java != null)
checkDirExists(java.javaHome);
if (seam != null)
checkDirExists(seam.seamHome);
if (server != null)
checkDirExists(server.runtimeHome);
if (esb != null)
checkDirExists(esb.esbHome);
// special checks capturing dependency ... | private boolean checkConfig() throws Exception {
if (java != null)
checkDirExists(java.javaHome);
if (seam != null)
checkDirExists(seam.seamHome);
if (server != null)
checkDirExists(server.runtimeHome);
if (esb != null)
checkDirExists(esb.esbHome);
// special checks capturing dependency ... |
diff --git a/src/org/python/core/PyJavaType.java b/src/org/python/core/PyJavaType.java
index 386b3e8b..aec0042b 100644
--- a/src/org/python/core/PyJavaType.java
+++ b/src/org/python/core/PyJavaType.java
@@ -1,554 +1,557 @@
package org.python.core;
import java.lang.reflect.Constructor;
import java.lang.reflect.Fiel... | true | true | protected void init() {
name = underlying_class.getName();
// Strip the java fully qualified class name from Py classes in core
if (name.startsWith("org.python.core.Py")) {
name = name.substring("org.python.core.Py".length()).toLowerCase();
}
dict = new PyStringMa... | protected void init() {
name = underlying_class.getName();
// Strip the java fully qualified class name from Py classes in core
if (name.startsWith("org.python.core.Py")) {
name = name.substring("org.python.core.Py".length()).toLowerCase();
}
dict = new PyStringMa... |
diff --git a/tests/integration/router.capability.staticroute/src/test/java/org/opennaas/router/tests/capability/staticroute/StaticRouteCapabilityIntegrationTest.java b/tests/integration/router.capability.staticroute/src/test/java/org/opennaas/router/tests/capability/staticroute/StaticRouteCapabilityIntegrationTest.java... | true | true | public void createStaticRouteTest()
throws ProtocolException, ResourceException {
startResource();
StaticRouteCapability staticRouteCapability = (StaticRouteCapability) routerResource
.getCapability(getInformation(STATIC_ROUTE_CAPABILITY_TYPE));
staticRouteCapability.create("0.0.0.0", "0.0.0.0", "192.168... | public void createStaticRouteTest()
throws ProtocolException, ResourceException {
startResource();
StaticRouteCapability staticRouteCapability = (StaticRouteCapability) routerResource
.getCapability(getInformation(STATIC_ROUTE_CAPABILITY_TYPE));
staticRouteCapability.createStaticRoute("0.0.0.0", "0.0.0.0... |
diff --git a/BankClient.java b/BankClient.java
index 2eb53a6..e8a2007 100644
--- a/BankClient.java
+++ b/BankClient.java
@@ -1,132 +1,127 @@
import java.io.*;
import java.net.*;
import java.util.*;
public class BankClient {
final static int portNumber = 2048;
public static void main(String[] args)
... | true | true | public static void main(String[] args)
throws IOException, UnknownHostException, Exception {
// check for hostname
if (args.length != 1){
System.out.println("Usage: java BankClient hostname");
System.exit(1);
}
String hostname = args[0];
// set up socket for network I/O
Socket clien... | public static void main(String[] args)
throws IOException, UnknownHostException, Exception {
// check for hostname
if (args.length != 1){
System.out.println("Usage: java BankClient hostname");
System.exit(1);
}
String hostname = args[0];
// set up socket for network I/O
Socket clien... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/SynapseXMLConfigurationFactory.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/SynapseXMLConfigurationFactory.java
index ae2d2add7..c97bd40cc 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/config/xml/Synapse... | false | true | public SynapseConfiguration getConfiguration(OMElement definitions) {
if (!definitions.getQName().equals(XMLConfigConstants.DEFINITIONS_ELT)) {
throw new SynapseException(
"Wrong QName for this config factory " + definitions.getQName());
}
SynapseCon... | public SynapseConfiguration getConfiguration(OMElement definitions) {
if (!definitions.getQName().equals(XMLConfigConstants.DEFINITIONS_ELT)) {
throw new SynapseException(
"Wrong QName for this config factory " + definitions.getQName());
}
SynapseCon... |
diff --git a/loci/visbio/util/VisUtil.java b/loci/visbio/util/VisUtil.java
index b091a72..9a193c1 100644
--- a/loci/visbio/util/VisUtil.java
+++ b/loci/visbio/util/VisUtil.java
@@ -1,568 +1,568 @@
//
// VisUtil.java
//
/*
VisBio application for visualization of multidimensional
biological image data. Copyright ... | false | true | public static DisplayImpl makeDisplay(String name,
boolean threeD, GraphicsConfiguration config)
{
DisplayImpl d = null;
try {
// determine whether Java3D is available
boolean ok3D = canDo3D();
// create display
if (threeD) {
if (!ok3D) return null;
// keep class... | public static DisplayImpl makeDisplay(String name,
boolean threeD, GraphicsConfiguration config)
{
DisplayImpl d = null;
try {
// determine whether Java3D is available
boolean ok3D = canDo3D();
// create display
if (threeD) {
if (!ok3D) return null;
// keep class... |
diff --git a/media/java/android/media/AudioManager.java b/media/java/android/media/AudioManager.java
index 95d7054f..af09fb7f 100644
--- a/media/java/android/media/AudioManager.java
+++ b/media/java/android/media/AudioManager.java
@@ -1,2533 +1,2550 @@
/*
* Copyright (C) 2007 The Android Open Source Project
*
* ... | true | true | public void handleKeyDown(KeyEvent event, int stream) {
int keyCode = event.getKeyCode();
switch (keyCode) {
case KeyEvent.KEYCODE_VOLUME_UP:
case KeyEvent.KEYCODE_VOLUME_DOWN:
/*
* Adjust the volume in on key down since it is more
... | public void handleKeyDown(KeyEvent event, int stream) {
int keyCode = event.getKeyCode();
switch (keyCode) {
case KeyEvent.KEYCODE_VOLUME_UP:
case KeyEvent.KEYCODE_VOLUME_DOWN:
/*
* Adjust the volume in on key down since it is more
... |
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java
index 2dd7ff5f..9d4d44d7 100644
--- a/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java
+++ b/src/java/org/jivesoftware/sparkimpl/plu... | true | true | public void initialize() {
// Listen for right-clicks on ContactItem
final ContactList contactList = SparkManager.getWorkspace().getContactList();
final Action listenAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
ContactItem item = (... | public void initialize() {
// Listen for right-clicks on ContactItem
final ContactList contactList = SparkManager.getWorkspace().getContactList();
final Action listenAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
ContactItem item = (... |
diff --git a/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java b/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java
index 27f4f8626..e878f4975 100644
--- a/cdi/plugins/org.jboss.tools.cdi.core/sr... | true | true | void loadParamDefinitions(IType contextType, IRootDefinitionContext context, int flags) throws CoreException {
if(method == null) return;
ILocalVariable[] ps = method.getParameters();
boolean loadAll = (flags & FLAG_ALL_MEMBERS) > 0;
boolean parametersAreInjectionPoints = parametersAreInjectionPoints();
... | void loadParamDefinitions(IType contextType, IRootDefinitionContext context, int flags) throws CoreException {
if(method == null) return;
ILocalVariable[] ps = method.getParameters();
boolean loadAll = (flags & FLAG_ALL_MEMBERS) > 0;
boolean parametersAreInjectionPoints = parametersAreInjectionPoints();
... |
diff --git a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/commands/CheckinHandler.java b/com.uwusoft.timesheet/src/com/uwusoft/timesheet/commands/CheckinHandler.java
index 31194b4..bf85609 100644
--- a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/commands/CheckinHandler.java
+++ b/com.uwusoft.timesheet/src/com/uw... | true | true | public Object execute(ExecutionEvent event) throws ExecutionException {
IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
String startTime = event.getParameter("Timesheet.commands.startTime");
StorageService storageService = new ExtensionManager<StorageService>(StorageService.SERVIC... | public Object execute(ExecutionEvent event) throws ExecutionException {
IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
String startTime = event.getParameter("Timesheet.commands.startTime");
StorageService storageService = new ExtensionManager<StorageService>(StorageService.SERVIC... |
diff --git a/FuncBlock.java b/FuncBlock.java
index adb91b2..e0c22b4 100644
--- a/FuncBlock.java
+++ b/FuncBlock.java
@@ -1,49 +1,49 @@
import java.util.ArrayList;
public class FuncBlock extends Block
{
public ArrayList<String> locals;
public Block exit;
public FuncBlock()
{
super();
locals ... | true | true | public String getInstructions(boolean sparc)
{
String rstring = "";
if(sparc){
int stackSize = 92 + (locals.size() * 4);
rstring += name + ":\n !#PROLOGUE# 0\n save %sp, -" + stackSize + ", %sp\n !#PROLOGUE# 1\n";
}
else{
rstring += name + ":\n";
}
for(Instruction i :... | public String getInstructions(boolean sparc)
{
String rstring = "";
if(sparc){
int stackSize = 112 + (locals.size() * 4 + ((locals.size() * 4) % 8));
rstring += name + ":\n !#PROLOGUE# 0\n save %sp, -" + stackSize + ", %sp\n !#PROLOGUE# 1\n";
}
else{
rstring += name + ":\n";
... |
diff --git a/GDCalaga/src/org/gdc/gdcalaga/Collision.java b/GDCalaga/src/org/gdc/gdcalaga/Collision.java
index fc28931..8696ce5 100644
--- a/GDCalaga/src/org/gdc/gdcalaga/Collision.java
+++ b/GDCalaga/src/org/gdc/gdcalaga/Collision.java
@@ -1,46 +1,46 @@
package org.gdc.gdcalaga;
import java.util.ArrayList;
publ... | true | true | public static void checkCollisions(ArrayList<Entity> ents)
{
//Very inefficient, but should work fine for now
for(int entA = 0; entA < ents.size(); entA++)
{
Entity A = ents.get(entA);
if(A.shape != null && A.shape.type ... | public static void checkCollisions(ArrayList<Entity> ents)
{
//Very inefficient, but should work fine for now
for(int entA = 0; entA < ents.size(); entA++)
{
Entity A = ents.get(entA);
if(A.shape != null && A.shape.type ... |
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/typeinference/TypeInferencer.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/typeinference/TypeInferencer.java
index 48181269..bbd05be0 100644
--- a/plugins/org.eclipse.dltk.javascript... | true | true | private void internalProcessFunctionNode(Object arg,
FunctionNode functionNode, Node function) {
if (functionNode.getEncodedSourceStart() >= position)
throw new PositionReachedException(context);
HostCollection parent = collection;
functionContexts.addLast(collection);
contexts.push(parent);
c... | private void internalProcessFunctionNode(Object arg,
FunctionNode functionNode, Node function) {
if (functionNode.getEncodedSourceStart() >= position)
throw new PositionReachedException(context);
HostCollection parent = collection;
functionContexts.addLast(collection);
contexts.push(parent);
c... |
diff --git a/src/Main.java b/src/Main.java
index 5b2b206..d2e0060 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,40 +1,40 @@
import gameLogic.Session;
import userInterface.SettingsWindow;
import userInterface.MainWindow;
class Main
{
public static void main(String[] args)
{
SettingsWindow settin... | false | true | private static void runGame(Session session)
{
MainWindow mainWindow = new MainWindow(session);
while(true)
{
session.tick();
mainWindow.repaint();
try
{
Thread.currentThread().sleep(500);
}
catch (InterruptedException e)
{
break;
}
}
}
| private static void runGame(Session session)
{
MainWindow mainWindow = new MainWindow(session, 12);
while(true)
{
session.tick();
mainWindow.repaint();
try
{
Thread.currentThread().sleep(400);
}
catch (InterruptedException e)
{
break;
}
}
}
|
diff --git a/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java b/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java
index b8f6fbaf..10ca53b7 100644
--- a/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java
+++ b/src/sphinx4/edu/cmu/sphinx/decoder/FrameDecoder.java
@@ -1,89 +1,90 @@
/*
*
* Copyright 1999-2004... | true | true | public Data getData() throws DataProcessingException {
Data d = getPredecessor().getData();
if (isRecognizing && (d instanceof FloatData || d instanceof DoubleData || d instanceof SpeechEndSignal)) {
result = decode(null);
if (result != null) {
fireResultLis... | public Data getData() throws DataProcessingException {
Data d = getPredecessor().getData();
if (isRecognizing && (d instanceof FloatData || d instanceof DoubleData || d instanceof SpeechEndSignal)) {
result = decode(null);
if (result != null) {
fireResultLis... |
diff --git a/modules/drake-genetics-server/src/java/org/jax/drakegenetics/server/PhenoService.java b/modules/drake-genetics-server/src/java/org/jax/drakegenetics/server/PhenoService.java
index 0c2a50d..f2c7dfe 100644
--- a/modules/drake-genetics-server/src/java/org/jax/drakegenetics/server/PhenoService.java
+++ b/modul... | true | true | private String getScaleColor(Map<String, List<String>> alleles) throws LethalAlleleCombinationException
{
List<String> colorlessAlleles = alleles.get("Tyr");
List<String> metalicAlleles = alleles.get("M");
List<String> diluteAlleles = alleles.get("Myo5a");
List<String> brownAllel... | private String getScaleColor(Map<String, List<String>> alleles) throws LethalAlleleCombinationException
{
List<String> colorlessAlleles = alleles.get("Tyr");
List<String> metalicAlleles = alleles.get("M");
List<String> diluteAlleles = alleles.get("Myo5a");
List<String> brownAllel... |
diff --git a/src/uk/org/ponder/rsf/components/UIBranchContainer.java b/src/uk/org/ponder/rsf/components/UIBranchContainer.java
index f46a013..fda17dd 100644
--- a/src/uk/org/ponder/rsf/components/UIBranchContainer.java
+++ b/src/uk/org/ponder/rsf/components/UIBranchContainer.java
@@ -1,235 +1,235 @@
/*
* Created on ... | true | true | public void addComponent(UIComponent toadd) {
toadd.parent = this;
SplitID split = new SplitID(toadd.ID);
String childkey = split.prefix;
if (toadd.ID != null && split.suffix == null) {
childmap.put(childkey, toadd);
}
else {
List children = (List) childmap.get(childkey);
if... | public void addComponent(UIComponent toadd) {
toadd.parent = this;
SplitID split = new SplitID(toadd.ID);
String childkey = split.prefix;
if (toadd.ID != null && split.suffix == null) {
childmap.put(childkey, toadd);
}
else {
List children = (List) childmap.get(childkey);
if... |
diff --git a/CSipSimple/src/com/csipsimple/service/Downloader.java b/CSipSimple/src/com/csipsimple/service/Downloader.java
index c8f35d34..1e706c84 100644
--- a/CSipSimple/src/com/csipsimple/service/Downloader.java
+++ b/CSipSimple/src/com/csipsimple/service/Downloader.java
@@ -1,233 +1,233 @@
/**
* Copyright (C) 20... | false | true | protected void onHandleIntent(Intent intent) {
HttpGet getMethod = new HttpGet(intent.getData().toString());
int result = Activity.RESULT_CANCELED;
String outPath = intent.getStringExtra(EXTRA_OUTPATH);
boolean checkMd5 = intent.getBooleanExtra(EXTRA_CHECK_MD5, false);
int icon = intent.getIntExtra(EXTRA_ICO... | protected void onHandleIntent(Intent intent) {
HttpGet getMethod = new HttpGet(intent.getData().toString());
int result = Activity.RESULT_CANCELED;
String outPath = intent.getStringExtra(EXTRA_OUTPATH);
boolean checkMd5 = intent.getBooleanExtra(EXTRA_CHECK_MD5, false);
int icon = intent.getIntExtra(EXTRA_ICO... |
diff --git a/debug/org.eclipse.ptp.debug.sdm.core/cdi/org/eclipse/ptp/debug/external/cdi/event/AbstractEvent.java b/debug/org.eclipse.ptp.debug.sdm.core/cdi/org/eclipse/ptp/debug/external/cdi/event/AbstractEvent.java
index 1bea97b5a..52ae4c0a0 100644
--- a/debug/org.eclipse.ptp.debug.sdm.core/cdi/org/eclipse/ptp/debug/... | true | true | public BitList getAllRegisteredProcesses() {
int[] registeredTargets = session.getRegisteredTargetIds();
int[] regTasks = new int[registeredTargets.length];
int index = 0;
for (int i = 0; i < registeredTargets.length; i++) {
if (tasks.get(registeredTargets[i])) {
regTasks[index] = registeredTargets[i];
... | public BitList getAllRegisteredProcesses() {
int[] registeredTargets = session.getRegisteredTargetIds();
int[] regTasks = new int[registeredTargets.length];
int index = 0;
for (int i = 0; i < registeredTargets.length; i++) {
if (tasks.get(registeredTargets[i])) {
regTasks[index] = registeredTargets[i];
... |
diff --git a/dinaBOT/navigation/Map.java b/dinaBOT/navigation/Map.java
index 3be24cb..a93cd0f 100755
--- a/dinaBOT/navigation/Map.java
+++ b/dinaBOT/navigation/Map.java
@@ -1,323 +1,323 @@
package dinaBOT.navigation;
//leJOS imports
import lejos.nxt.*;
import java.lang.Math;
//dinaBOT imports
import dinaBOT.m... | false | true | public void newValues(int[] new_values, USSensor sensor) { //This is only called by the high sensor because we didn't register with the low one
double[] coord = new double[2];
int[] node = new int[2];
int distance = 255;
int[] curr_node = new int[2]; //node at which the robot is currently at
double[] curr_co... | public void newValues(int[] new_values, USSensor sensor) { //This is only called by the high sensor because we didn't register with the low one
double[] coord = new double[2];
int[] node = new int[2];
int distance = 255;
int[] curr_node = new int[2]; //node at which the robot is currently at
double[] curr_co... |
diff --git a/demos/src/main/java/com/datatorrent/demos/visualdata/Application.java b/demos/src/main/java/com/datatorrent/demos/visualdata/Application.java
index 2287fe046..a5157c566 100644
--- a/demos/src/main/java/com/datatorrent/demos/visualdata/Application.java
+++ b/demos/src/main/java/com/datatorrent/demos/visuald... | true | true | public void populateDAG(DAG dag, Configuration conf) {
dag.setAttribute(DAG.APPLICATION_NAME, "VisualDataDemo");
int maxValue = 30000;
RandomEventGenerator rand = dag.addOperator("random", new RandomEventGenerator());
rand.setMinvalue(0);
rand.setMaxvalue(maxValue);
... | public void populateDAG(DAG dag, Configuration conf) {
dag.setAttribute(DAG.APPLICATION_NAME, "VisualDataDemo");
int maxValue = 30000;
RandomEventGenerator rand = dag.addOperator("random", new RandomEventGenerator());
rand.setMinvalue(0);
rand.setMaxvalue(maxValue);
... |
diff --git a/kendzi.josm.plugin3d/src/kendzi/josm/kendzi3d/jogl/model/export/ExportWorker.java b/kendzi.josm.plugin3d/src/kendzi/josm/kendzi3d/jogl/model/export/ExportWorker.java
index b0466e1..c77f96c 100644
--- a/kendzi.josm.plugin3d/src/kendzi/josm/kendzi3d/jogl/model/export/ExportWorker.java
+++ b/kendzi.josm.plugi... | true | true | public void run() {
createLogUi();
TextExport exporter = new ColladaExport();
// if (conf.type == "obj") {
// saveToObjFile(ei);
// }
File file = getFile(this.conf.getFilePattern(), 0, this.conf.getExportType());
int c = 0;
int count = this.it... | public void run() {
createLogUi();
TextExport exporter = new ColladaExport();
// if (conf.type == "obj") {
// saveToObjFile(ei);
// }
File file = getFile(this.conf.getFilePattern(), 0, this.conf.getExportType());
int c = 0;
int count = this.it... |
diff --git a/src/com/bretth/osmosis/core/filter/common/BitSetIdTracker.java b/src/com/bretth/osmosis/core/filter/common/BitSetIdTracker.java
index f99e0424..2d25b1a9 100644
--- a/src/com/bretth/osmosis/core/filter/common/BitSetIdTracker.java
+++ b/src/com/bretth/osmosis/core/filter/common/BitSetIdTracker.java
@@ -1,195... | true | true | public boolean hasNext() {
if (!nextIdAvailable) {
if (!readingPositive) {
// Create a negative set iterator if one doesn't already exist.
if (!(negativeIterator == null)) {
negativeIterator = negativeSet.iterator();
}
// Get data from the negative iterator if available, if not
... | public boolean hasNext() {
if (!nextIdAvailable) {
if (!readingPositive) {
// Create a negative set iterator if one doesn't already exist.
if (negativeIterator == null) {
negativeIterator = negativeSet.iterator();
}
// Get data from the negative iterator if available, if not
... |
diff --git a/src/com/designs_1393/connactiv/connactiv.java b/src/com/designs_1393/connactiv/connactiv.java
index 0777102..09d38cc 100644
--- a/src/com/designs_1393/connactiv/connactiv.java
+++ b/src/com/designs_1393/connactiv/connactiv.java
@@ -1,175 +1,176 @@
package com.designs_1393.connactiv;
import android.app.... | false | true | protected Integer doInBackground(String... strings)
{
try {
/* stackoverflow question 2999945 */
HttpPost post = new HttpPost("http://connactiv.com/test/index.php");
post.getParams().setParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE, Boolean.FALSE);
DefaultHttpClient client = new DefaultHttpCli... | protected Integer doInBackground(String... strings)
{
try {
/* stackoverflow question 2999945 */
HttpPost post = new HttpPost("http://connactiv.nfshost.com/test/index.php");
post.getParams().setParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE, Boolean.FALSE);
DefaultHttpClient client = new Defaul... |
diff --git a/Test.java b/Test.java
index ecceea6..7484e3a 100644
--- a/Test.java
+++ b/Test.java
@@ -1,114 +1,114 @@
import java.lang.reflect.Method;
import java.util.ArrayList;
/*
* Simple Java test Framework
*
*
* Created by Michael Lyons <mdl0394@gmail.com>
*/
public abstract class Test {
pri... | true | true | public boolean run() {
try {
Method m[] = this.getClass().getDeclaredMethods();
for( Method i : m ) {
if( i.getName().startsWith("test") ) {
currentTest = true;
Boolean thrown = false;
try {
i.invoke(this);
} catch( Throwable t ) {
thrown = true;
System.out.print("E")... | public boolean run() {
try {
Method m[] = this.getClass().getDeclaredMethods();
for( Method i : m ) {
if( i.getName().startsWith("test") ) {
currentTest = true;
Boolean thrown = false;
try {
i.invoke(this);
} catch( Throwable t ) {
thrown = true;
System.out.print("E")... |
diff --git a/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java b/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java
index e50121b..2e83944 100644
--- a/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java
+++ b/src/net/miz_hi/smileessence/listener/TimelineScrollListener.java
@@ ... | false | true | public void onScrollStateChanged(AbsListView view, int scrollState)
{
adapter.setCanNotifyOnChange(false);
if (view.getFirstVisiblePosition() == 0 && view.getChildAt(0) != null && view.getChildAt(0).getTop() == 0)
{
if (scrollState == SCROLL_STATE_IDLE)
{
... | public void onScrollStateChanged(AbsListView view, int scrollState)
{
adapter.setCanNotifyOnChange(false);
if (view.getFirstVisiblePosition() == 0 && view.getChildAt(0) != null && view.getChildAt(0).getTop() == 0)
{
if (scrollState == SCROLL_STATE_IDLE)
{
... |
diff --git a/src/edgruberman/bukkit/doorman/Main.java b/src/edgruberman/bukkit/doorman/Main.java
index 8d61c21..99ef1ff 100644
--- a/src/edgruberman/bukkit/doorman/Main.java
+++ b/src/edgruberman/bukkit/doorman/Main.java
@@ -1,71 +1,73 @@
package edgruberman.bukkit.doorman;
import java.util.HashMap;
import java.ut... | true | true | public void onEnable() {
this.reloadConfig();
Main.courier = ConfigurationCourier.Factory.create(this).setPath("language").setColorCode("color-code").build();
final Map<String, String> switches = new HashMap<String, String>();
final ConfigurationSection section = this.getConfig().ge... | public void onEnable() {
this.reloadConfig();
Main.courier = ConfigurationCourier.Factory.create(this).setPath("language").setColorCode("color-code").build();
final Map<String, String> switches = new HashMap<String, String>();
final ConfigurationSection section = this.getConfig().ge... |
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencer2.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencer2.java
index 56e94789..d7b132ff 100644
--- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclips... | true | true | public EObject copy(EObject eObject) {
if (eObject == null) {
return null;
} else {
final EObject copyEObject;
final EClass eClass;
if (eObject == genericType) {
final EClass genericClass = genericType.eClass();
final String parametererizedType = EcoreUtil.getAnnotation(
generic... | public EObject copy(EObject eObject) {
if (eObject == null) {
return null;
} else {
final EObject copyEObject;
final EClass eClass;
if (eObject == genericType) {
final EClass genericClass = genericType.eClass();
final String parametererizedType = EcoreUtil.getAnnotation(
generic... |
diff --git a/src/com/themagpi/api/NewsFactory.java b/src/com/themagpi/api/NewsFactory.java
index 007257a..0e16854 100644
--- a/src/com/themagpi/api/NewsFactory.java
+++ b/src/com/themagpi/api/NewsFactory.java
@@ -1,23 +1,24 @@
package com.themagpi.api;
import java.text.SimpleDateFormat;
import java.util.ArrayList;... | true | true | public static ArrayList<News> buildFromRSSFeed(RSSFeed feed) {
ArrayList<News> news = new ArrayList<News>();
for(RSSItem item : feed.getItems()) {
SimpleDateFormat formatter = new SimpleDateFormat("d MMM yyyy HH:mm");
String pubDateText = formatter.format(it... | public static ArrayList<News> buildFromRSSFeed(RSSFeed feed) {
ArrayList<News> news = new ArrayList<News>();
for(RSSItem item : feed.getItems()) {
SimpleDateFormat formatter = new SimpleDateFormat("d MMM yyyy HH:mm");
String pubDateText = formatter.format(it... |
diff --git a/SurroundedRegions/Solution.java b/SurroundedRegions/Solution.java
index 0aea3c8..be43ca8 100644
--- a/SurroundedRegions/Solution.java
+++ b/SurroundedRegions/Solution.java
@@ -1,88 +1,85 @@
public class Solution {
private int getX (int index, int width){
return index%width;
}
pr... | true | true | public void solve(char[][] board) {
// Start typing your Java solution below
// DO NOT write main() function
Set<Integer> whiteList = new HashSet<Integer>();
List<Integer> starts = new LinkedList<Integer>();
if (board == null || board.length ==0 || board[0].len... | public void solve(char[][] board) {
// Start typing your Java solution below
// DO NOT write main() function
Set<Integer> whiteList = new HashSet<Integer>();
List<Integer> starts = new LinkedList<Integer>();
if (board == null || board.length ==0 || board[0].len... |
diff --git a/src/test/java/com/github/moolah/FXRateTest.java b/src/test/java/com/github/moolah/FXRateTest.java
index fbe1536..437826c 100644
--- a/src/test/java/com/github/moolah/FXRateTest.java
+++ b/src/test/java/com/github/moolah/FXRateTest.java
@@ -1,55 +1,55 @@
/* Copyright 2013 Shaolang Ai
*
* Licensed under... | true | true | public void adheres_to_value_object_contract() {
FXRate same = new FXRate(USDSGD, USDSGD_BID, USDSGD_ASK,
USDSGD_UNIT);
FXRate different = new FXRate(CurrencyPair.getInstance("EUR", "JPY"),
USDSGD_BID, USDSGD_ASK, USDSGD_UNIT);
assertThat(new FXRate(USDSGD, U... | public void adheres_to_value_object_contract() {
FXRate same = new FXRate(USDSGD, USDSGD_BID, USDSGD_ASK,
USDSGD_UNIT);
FXRate different = new FXRate(CurrencyPair.getInstance("EUR", "JPY"),
USDSGD_BID, USDSGD_ASK, USDSGD_UNIT);
assertThat(new FXRate(USDSGD, U... |
diff --git a/clojure/src/java/mod_Clojurecraft.java b/clojure/src/java/mod_Clojurecraft.java
index 45f0129..f24a768 100644
--- a/clojure/src/java/mod_Clojurecraft.java
+++ b/clojure/src/java/mod_Clojurecraft.java
@@ -1,26 +1,26 @@
package net.minecraft.src;
import java.io.File;
import java.io.IOException;
publi... | true | true | public void load() {
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
try {
File file = new File(new File(System.getProperty("user.home"), "clojurecraft"), "clojurecraft_main.clj");
clojure.lang.Compiler.loadFile(file.getAbsolutePath());
clojure.lang.RT.var("minecraftcl", "call")... | public void load() {
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
try {
File file = new File(new File(System.getProperty("user.home"), "clojurecraft"), "clojurecraft_main.clj");
clojure.lang.Compiler.loadFile(file.getAbsolutePath());
clojure.lang.RT.var("clojurecraft", "call"... |
diff --git a/src/main/java/de/derflash/plugins/cnwarn/commands/WarnAddCommand.java b/src/main/java/de/derflash/plugins/cnwarn/commands/WarnAddCommand.java
index 8e27018..ca8310c 100644
--- a/src/main/java/de/derflash/plugins/cnwarn/commands/WarnAddCommand.java
+++ b/src/main/java/de/derflash/plugins/cnwarn/commands/War... | true | true | public void addWarning(Player player, String[] args) {
warnService.clearOld();
LinkedList<String> argList = new LinkedList<String>(Arrays.asList(args));
String playerName = argList.pollFirst();
String rate = argList.pollLast();
String message = "";
Integer rating;
... | public void addWarning(Player player, String[] args) {
warnService.clearOld();
LinkedList<String> argList = new LinkedList<String>(Arrays.asList(args));
String playerName = argList.pollFirst();
String rate = argList.pollLast();
String message = "";
Integer rating;
... |
diff --git a/srcj/com/sun/electric/database/text/Pref.java b/srcj/com/sun/electric/database/text/Pref.java
index 6f106bc1f..97b7e800b 100644
--- a/srcj/com/sun/electric/database/text/Pref.java
+++ b/srcj/com/sun/electric/database/text/Pref.java
@@ -1,985 +1,985 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI Desi... | true | true | public static void exportPrefs(String fileName, Preferences prefRoot) {
if (fileName == null) {
return;
}
// save preferences there
try {
// dump the preferences as a giant XML string (unformatted)
ByteArrayOutputStream bs = new ByteArrayOutputStr... | public static void exportPrefs(String fileName, Preferences prefRoot) {
if (fileName == null) {
return;
}
// save preferences there
try {
// dump the preferences as a giant XML string (unformatted)
ByteArrayOutputStream bs = new ByteArrayOutputStr... |
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DeleteLineTarget.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DeleteLineTarget.java
index d95789bfb..5c23da568 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DeleteLineTarget.java
+... | true | true | private static IRegion getDeleteRegion(IDocument document, int offset, int length, int type) throws BadLocationException {
int line= document.getLineOfOffset(offset);
int resultOffset= 0;
int resultLength= 0;
switch (type) {
case DeleteLineAction.WHOLE:
resultOffset= document.getLineOffset(line);
in... | private static IRegion getDeleteRegion(IDocument document, int offset, int length, int type) throws BadLocationException {
int line= document.getLineOfOffset(offset);
int resultOffset= 0;
int resultLength= 0;
switch (type) {
case DeleteLineAction.WHOLE:
resultOffset= document.getLineOffset(line);
in... |
diff --git a/modules/resin/src/com/caucho/jms/connection/JmsSession.java b/modules/resin/src/com/caucho/jms/connection/JmsSession.java
index 43076c555..0a789cc42 100644
--- a/modules/resin/src/com/caucho/jms/connection/JmsSession.java
+++ b/modules/resin/src/com/caucho/jms/connection/JmsSession.java
@@ -1,1372 +1,1372 ... | true | true | public void send(AbstractDestination queue,
Message appMessage,
int deliveryMode,
int priority,
long timeout)
throws JMSException
{
checkOpen();
if (queue == null)
throw new UnsupportedOperationException(L.l("empty qu... | public void send(AbstractDestination queue,
Message appMessage,
int deliveryMode,
int priority,
long timeout)
throws JMSException
{
checkOpen();
if (queue == null)
throw new UnsupportedOperationException(L.l("empty qu... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/EnrichMediatorTransformer.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/Enri... | true | true | private org.apache.synapse.mediators.elementary.EnrichMediator createEnrichMediator(EsbNode subject) throws Exception{
// Check subject.
Assert.isTrue(subject instanceof EnrichMediator, "Invalid subject.");
EnrichMediator visualEnrich = (EnrichMediator) subject;
// Configure Enrich mediator.
org.apache... | private org.apache.synapse.mediators.elementary.EnrichMediator createEnrichMediator(EsbNode subject) throws Exception{
// Check subject.
Assert.isTrue(subject instanceof EnrichMediator, "Invalid subject.");
EnrichMediator visualEnrich = (EnrichMediator) subject;
// Configure Enrich mediator.
org.apache... |
diff --git a/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java b/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java
index 0f667ca..1440113 100644
--- a/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java
+++ b/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java... | true | true | public void onEntityDamage(EntityDamageEvent event) {
if (event instanceof EntityDamageByEntityEvent) {
EntityDamageByEntityEvent edbe = (EntityDamageByEntityEvent) event;
Player player;
if (edbe.getDamager() instanceof Player) { // Prevent from damaging by player
player = (Player) edbe.getDamager();
... | public void onEntityDamage(EntityDamageEvent event) {
if (event instanceof EntityDamageByEntityEvent) {
EntityDamageByEntityEvent edbe = (EntityDamageByEntityEvent) event;
Player player;
if (edbe.getDamager() instanceof Player) { // Prevent from damaging by player
player = (Player) edbe.getDamager();
... |
diff --git a/TargetClassification/src/featureselection/Boruta.java b/TargetClassification/src/featureselection/Boruta.java
index a261c20..a843c7f 100644
--- a/TargetClassification/src/featureselection/Boruta.java
+++ b/TargetClassification/src/featureselection/Boruta.java
@@ -1,569 +1,569 @@
package featureselection;
... | true | true | public static void main(String[] args)
{
// Required inputs.
String inputLocation = args[0]; // The location of the file containing the data to use in the feature selection.
File inputFile = new File(inputLocation);
if (!inputFile.isFile())
{
System.out.println("The first argument must be a valid file l... | public static void main(String[] args)
{
// Required inputs.
String inputLocation = args[0]; // The location of the file containing the data to use in the feature selection.
File inputFile = new File(inputLocation);
if (!inputFile.isFile())
{
System.out.println("The first argument must be a valid file l... |
diff --git a/src/org/testng/internal/ObjectFactoryImpl.java b/src/org/testng/internal/ObjectFactoryImpl.java
index 63a35197..61386871 100755
--- a/src/org/testng/internal/ObjectFactoryImpl.java
+++ b/src/org/testng/internal/ObjectFactoryImpl.java
@@ -1,38 +1,34 @@
package org.testng.internal;
import java.lang.refle... | true | true | public Object newInstance(Constructor constructor, Object... params) {
Class[] paramClasses = new Class[params.length];
for(int i = 0; i < params.length; i++) {
paramClasses[i] = params[i].getClass();
}
try {
return constructor.newInstance(params);
}
catch (IllegalAccessException e... | public Object newInstance(Constructor constructor, Object... params) {
try {
return constructor.newInstance(params);
}
catch (IllegalAccessException ex) {
return ClassHelper.tryOtherConstructor(constructor.getDeclaringClass());
}
catch (InstantiationException ex) {
return ClassHe... |
diff --git a/java/com/adaptionsoft/games/uglytrivia/Game.java b/java/com/adaptionsoft/games/uglytrivia/Game.java
index c8f0c1a..b295f34 100755
--- a/java/com/adaptionsoft/games/uglytrivia/Game.java
+++ b/java/com/adaptionsoft/games/uglytrivia/Game.java
@@ -1,180 +1,180 @@
package com.adaptionsoft.games.uglytrivia;
... | true | true | public boolean wasCorrectlyAnswered() {
if (inPenaltyBox[currentPlayer]){
if (isGettingOutOfPenaltyBox) {
System.out.println(messageAnswerWasCorrect());
purses[currentPlayer]++;
System.out.println(players.get(currentPlayer)
+ " now has "
+ purses[currentPlayer]
+ " Gold Coins.");
... | public boolean wasCorrectlyAnswered() {
if (inPenaltyBox[currentPlayer]){
if (isGettingOutOfPenaltyBox) {
System.out.println(messageAnswerWasCorrect());
purses[currentPlayer]++;
System.out.println(players.get(currentPlayer)
+ " now has "
+ purses[currentPlayer]
+ " Gold Coins.");
... |
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java
index 8461a3ef..c866cf9b 100644
--- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java
+++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/CreateGpsMidData.java
@@ -1,1548 +1,1551 @@
/*... | true | true | private void exportLegend(String path) {
FileOutputStream foi;
String outputMedia;
try {
foi = new FileOutputStream(path + "/legend.dat");
DataOutputStream dsi = new DataOutputStream(foi);
dsi.writeShort(Configuration.MAP_FORMAT_VERSION);
Configuration config = Configuration.getConfiguration();
/*... | private void exportLegend(String path) {
FileOutputStream foi;
String outputMedia;
try {
foi = new FileOutputStream(path + "/legend.dat");
DataOutputStream dsi = new DataOutputStream(foi);
dsi.writeShort(Configuration.MAP_FORMAT_VERSION);
Configuration config = Configuration.getConfiguration();
/*... |
diff --git a/src/test/java/com/vertixtech/antiquity/graph/NonTransactionalLongTypeVersionedGraphTest.java b/src/test/java/com/vertixtech/antiquity/graph/NonTransactionalLongTypeVersionedGraphTest.java
index c7b2279..61fedd2 100644
--- a/src/test/java/com/vertixtech/antiquity/graph/NonTransactionalLongTypeVersionedGraph... | true | true | public void doTestSuite(final TestSuite testSuite) throws Exception {
for (Method method : testSuite.getClass().getDeclaredMethods()) {
if (method.getName().startsWith("test")) {
System.out.println("Testing " + method.getName() + "...");
testSuite.run();
}
}
}
| public void doTestSuite(final TestSuite testSuite) throws Exception {
for (Method method : testSuite.getClass().getDeclaredMethods()) {
if (method.getName().startsWith("test")) {
System.out.println("Testing " + method.getName() + "...");
method.invoke(testSuite);
}
}
}
|
diff --git a/src/org/fox/ttrss/Article.java b/src/org/fox/ttrss/Article.java
index c26e2cf..05ddcb4 100644
--- a/src/org/fox/ttrss/Article.java
+++ b/src/org/fox/ttrss/Article.java
@@ -1,87 +1,87 @@
package org.fox.ttrss;
import java.util.ArrayList;
import java.util.List;
import android.os.Parcel;
import android... | true | true | public void readFromParcel(Parcel in) {
id = in.readInt();
unread = in.readInt() == 1;
marked = in.readInt() == 1;
published = in.readInt() == 1;
updated = in.readInt();
is_updated = in.readInt() == 1;
title = in.readString();
link = in.readString();
feed_id = in.readInt();
if (tags == null) tag... | public void readFromParcel(Parcel in) {
id = in.readInt();
unread = in.readInt() == 1;
marked = in.readInt() == 1;
published = in.readInt() == 1;
updated = in.readInt();
is_updated = in.readInt() == 1;
title = in.readString();
link = in.readString();
feed_id = in.readInt();
if (tags == null) tag... |
diff --git a/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java b/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java
index 29ef0efd..ad348e8a 100644
--- a/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java
+++ b/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java
@@ -1,222 +1,221 @@
package pl.psnc.... | false | true | public void execute(JobStatus status)
throws OperationFailedException {
HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
try {
URI target = status.getCopyfrom().resolve("../" + id + "/");
int i = 1;
String sufix = "";
... | public void execute(JobStatus status)
throws OperationFailedException {
HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
try {
URI target = status.getCopyfrom().resolve("../" + id + "/");
int i = 1;
String sufix = "";
... |
diff --git a/choco-solver/src/main/java/solver/constraints/propagators/reified/PropImplied.java b/choco-solver/src/main/java/solver/constraints/propagators/reified/PropImplied.java
index 6c0f73d5e..3720cd8f0 100644
--- a/choco-solver/src/main/java/solver/constraints/propagators/reified/PropImplied.java
+++ b/choco-solv... | false | true | public void propagate(int evtmask) throws ContradictionException {
if (bVar.instantiated()) {
if (bVar.getBooleanValue() == ESat.TRUE) {
reifCons.activate(0);
} else {
reifCons.activate(1);
}
setPassive();
} else {
... | public void propagate(int evtmask) throws ContradictionException {
if (bVar.instantiated()) {
if (bVar.getBooleanValue() == ESat.TRUE) {
reifCons.activate(0);
} else {
reifCons.activate(1);
}
setPassive();
} else {
... |
diff --git a/operational/src/main/java/org/esa/beam/occci/merging/PostMergingProcessor.java b/operational/src/main/java/org/esa/beam/occci/merging/PostMergingProcessor.java
index 7a93d7f..63af0fc 100644
--- a/operational/src/main/java/org/esa/beam/occci/merging/PostMergingProcessor.java
+++ b/operational/src/main/java/... | true | true | public void compute(Vector inputVector, WritableVector outputVector) {
for (int i = 0; i < rrs.length; i++) {
rrs[i] = inputVector.get(rrsBandIndices[i]);
if (Float.isNaN(rrs[i])) {
BinningUtils.setToInvalid(outputVector);
return;
}
... | public void compute(Vector inputVector, WritableVector outputVector) {
for (int i = 0; i < rrs.length; i++) {
rrs[i] = inputVector.get(rrsBandIndices[i]);
if (Float.isNaN(rrs[i])) {
BinningUtils.setToInvalid(outputVector);
return;
}
... |
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/presentationTier/widgets/PendingSimplifiedWidget.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/presentationTier/widgets/PendingSimplifiedWidget.java
index e6845fa5..dd59839f 100644
--- a/expenditure-tracking/src/pt/ist/expenditure... | false | true | public void doView(WidgetRequest request) {
Map<AcquisitionProcessStateType, MultiCounter<AcquisitionProcessStateType>> simplifiedMap = ProcessMapGenerator
.generateAcquisitionMap(Person.getLoggedPerson());
List<Counter<AcquisitionProcessStateType>> counters = new ArrayList<Counter<AcquisitionProcessStateType>>... | public void doView(WidgetRequest request) {
Person loggedPerson = Person.getLoggedPerson();
Map<AcquisitionProcessStateType, MultiCounter<AcquisitionProcessStateType>> simplifiedMap = ProcessMapGenerator
.generateAcquisitionMap(loggedPerson);
List<Counter<AcquisitionProcessStateType>> counters = new ArrayList<... |
diff --git a/src/test/unit/gov/nist/javax/sip/stack/ctx491/Shootist.java b/src/test/unit/gov/nist/javax/sip/stack/ctx491/Shootist.java
index 8b3a8683..76dfccfd 100644
--- a/src/test/unit/gov/nist/javax/sip/stack/ctx491/Shootist.java
+++ b/src/test/unit/gov/nist/javax/sip/stack/ctx491/Shootist.java
@@ -1,428 +1,428 @@
... | true | true | public void sendInvite() {
try {
// Note that a provider has multiple listening points.
// all the listening points must have the same IP address
// and port but differ in their transport parameters.
String fromName = "BigGuy";
String fromSipAdd... | public void sendInvite() {
try {
// Note that a provider has multiple listening points.
// all the listening points must have the same IP address
// and port but differ in their transport parameters.
String fromName = "BigGuy";
String fromSipAdd... |
diff --git a/src/gui/MailEntryComponent.java b/src/gui/MailEntryComponent.java
index 903db58..a029f03 100644
--- a/src/gui/MailEntryComponent.java
+++ b/src/gui/MailEntryComponent.java
@@ -1,116 +1,117 @@
package gui;
import icm.dao.UserMail;
import javax.swing.*;
import javax.swing.event.ListSelectionListener;
... | false | true | public static void main(String args[])
{
UserMail u=new UserMail();
u.setText("this is a text");
u.setTitle("title 1");
u.setSentAt(System.currentTimeMillis());
UserMail u1=new UserMail();
u1.setText("some text");
u1.setTitle("title 2");
u1.setSentAt(System.currentTimeMillis());
vc=new Vector... | public static void main(String args[])
{
UserMail u=new UserMail();
u.setText("this is a text");
u.setTitle("title 1");
u.setSentAt(System.currentTimeMillis());
UserMail u1=new UserMail();
u1.setText("some text");
u1.setTitle("title 2");
u1.setSentAt(System.currentTimeMillis());
vc=new Vector... |
diff --git a/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java b/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java
index 265186d7..f01f8650 100644
--- a/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java
+++ b/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java
@@ -1,160 +1,... | true | true | public void execute(final CommandSender sender, final CommandArgs args) {
final Player toBan = Utils.getPlayer(args.getString(0));
final HashMap<String, String> replace = new HashMap<String, String>();
String message = "";
String banPlayerString;
if (toBan != null) {
banPlayerString = toBan.getName();
... | public void execute(final CommandSender sender, final CommandArgs args) {
final Player toBan = Utils.getPlayer(args.getString(0));
final HashMap<String, String> replace = new HashMap<String, String>();
String message = "";
String banPlayerString;
if (toBan != null) {
banPlayerString = toBan.getName();
... |
diff --git a/Generator/src/java/fr/cg95/cvq/generator/plugins/fo/ElementFo.java b/Generator/src/java/fr/cg95/cvq/generator/plugins/fo/ElementFo.java
index 65896a35b..24da8f140 100644
--- a/Generator/src/java/fr/cg95/cvq/generator/plugins/fo/ElementFo.java
+++ b/Generator/src/java/fr/cg95/cvq/generator/plugins/fo/Elemen... | true | true | private void setHtmlClass() {
this.htmlClass = getConditionsClass() + " " + getAutofillClass() + " ";
if (jsRegexp != null)
this.htmlClass += "validate-regex";
else if (widget == null)
return;
else if (widget.equals("select"))
this.htmlClass += "va... | private void setHtmlClass() {
this.htmlClass = getConditionsClass() + " " + getAutofillClass() + " ";
if (jsRegexp != null)
this.htmlClass += "validate-regex";
else if (widget == null)
return;
else if (widget.equals("select"))
this.htmlClass += "va... |
diff --git a/modules/org.restlet/src/org/restlet/resource/DomRepresentation.java b/modules/org.restlet/src/org/restlet/resource/DomRepresentation.java
index f869d5899..59b45caac 100644
--- a/modules/org.restlet/src/org/restlet/resource/DomRepresentation.java
+++ b/modules/org.restlet/src/org/restlet/resource/DomReprese... | true | true | public void write(OutputStream outputStream) throws IOException {
try {
Transformer transformer = TransformerFactory.newInstance()
.newTransformer();
transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,
getDocument().getDoctype().getSystemI... | public void write(OutputStream outputStream) throws IOException {
try {
Transformer transformer = TransformerFactory.newInstance()
.newTransformer();
transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,
getDocument().getDoctype().getSystemI... |
diff --git a/src/edu/berkeley/gcweb/gui/gamescubeman/PuzzleUtils/CornerChooser.java b/src/edu/berkeley/gcweb/gui/gamescubeman/PuzzleUtils/CornerChooser.java
index f4e6816..2220d05 100644
--- a/src/edu/berkeley/gcweb/gui/gamescubeman/PuzzleUtils/CornerChooser.java
+++ b/src/edu/berkeley/gcweb/gui/gamescubeman/PuzzleUtil... | true | true | protected void paintComponent(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
if(isOpaque()) {
g2d.setColor(Color.BLACK);
g2d.fillRect(0, 0, getWidth(), getHeight());
}
double gap = (double) getWidth() / 15;
int x = 40;
drawCorner(g2d,x,PREFERRED_HEIGHT/2,"U","L","B");
paintkeyChar("A", x, ... | protected void paintComponent(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
if(isOpaque()) {
g2d.setColor(Color.BLACK);
g2d.fillRect(0, 0, getWidth(), getHeight());
}
double gap = (double) getWidth() / 15;
int x = 40;
drawCorner(g2d,x,PREFERRED_HEIGHT/2,"U","L","B");
paintkeyChar("A", x, ... |
diff --git a/staging/maven-plugin/src/main/java/org/sonatype/nexus/maven/staging/workflow/AbstractStagingBuildActionMojo.java b/staging/maven-plugin/src/main/java/org/sonatype/nexus/maven/staging/workflow/AbstractStagingBuildActionMojo.java
index e294b6f..6c8bfe6 100644
--- a/staging/maven-plugin/src/main/java/org/sona... | true | true | protected String[] getStagingRepositoryIds()
throws MojoExecutionException
{
String[] result = null;
if ( stagingRepositoryId != null )
{
// explicitly configured either via config or CLI, use that
result = Iterables.toArray( Splitter.on( "," ).split( stag... | protected String[] getStagingRepositoryIds()
throws MojoExecutionException
{
String[] result = null;
if ( stagingRepositoryId != null )
{
// explicitly configured either via config or CLI, use that
result = Iterables.toArray( Splitter.on( "," ).split( stag... |
diff --git a/src/main/java/net/croxis/plugins/research/Research.java b/src/main/java/net/croxis/plugins/research/Research.java
index 3281839..62342f3 100644
--- a/src/main/java/net/croxis/plugins/research/Research.java
+++ b/src/main/java/net/croxis/plugins/research/Research.java
@@ -1,181 +1,181 @@
package net.croxis... | true | true | public void onEnable() {
logger = Logger.getLogger(JavaPlugin.class.getName());
techManager = new TechManager(this);
// Set up default systems
useSpout = this.getConfig().getBoolean("useSpout", false);
permissions = (ArrayList<String>) this.getConfig().getStringList("default.permissions");
... | public void onEnable() {
logger = Logger.getLogger(JavaPlugin.class.getName());
techManager = new TechManager(this);
// Set up default systems
useSpout = this.getConfig().getBoolean("useSpout", false);
permissions = (ArrayList<String>) this.getConfig().getStringList("default.permissions");
... |
diff --git a/Mutation/src/main/java/mut/mutantgen/bcel/BCELMutantCreator.java b/Mutation/src/main/java/mut/mutantgen/bcel/BCELMutantCreator.java
index 261338c..daab33d 100644
--- a/Mutation/src/main/java/mut/mutantgen/bcel/BCELMutantCreator.java
+++ b/Mutation/src/main/java/mut/mutantgen/bcel/BCELMutantCreator.java
@@ ... | true | true | private List<Mutant> generateMutants(JavaClass clazz, Method bcelMethod, String byteCodeInstruction)
throws ClassNotFoundException {
List<Mutant> mutants = new ArrayList<Mutant>();
Code code = bcelMethod.getCode();
if (code == null) {
return mutants;
}
InstructionList instructions = new Instruction... | private List<Mutant> generateMutants(JavaClass clazz, Method bcelMethod, String byteCodeInstruction)
throws ClassNotFoundException {
List<Mutant> mutants = new ArrayList<Mutant>();
Code code = bcelMethod.getCode();
if (code == null) {
return mutants;
}
InstructionList instructions = new Instruction... |
diff --git a/auth-plugin/src/main/java/com/atlassian/refapp/auth/internal/AuthenticationContextCopyFilter.java b/auth-plugin/src/main/java/com/atlassian/refapp/auth/internal/AuthenticationContextCopyFilter.java
index f8d3764..046eec9 100644
--- a/auth-plugin/src/main/java/com/atlassian/refapp/auth/internal/Authenticati... | true | true | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
{
authenticationContext.setUser(securityConfig.getAuthenticationContext().getUser());
try
{
chain.doFilter(request, response);
} catch (Excep... | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
{
authenticationContext.setUser(securityConfig.getAuthenticationContext().getUser());
try
{
chain.doFilter(request, response);
} finally
... |
diff --git a/tools/makedict/src/com/android/tools/dict/MakeBinaryDictionary.java b/tools/makedict/src/com/android/tools/dict/MakeBinaryDictionary.java
old mode 100755
new mode 100644
index ca6de56e..51e20384
--- a/tools/makedict/src/com/android/tools/dict/MakeBinaryDictionary.java
+++ b/tools/makedict/src/com/android/t... | true | true | private void populateDictionary(String filename) {
roots = new ArrayList<CharNode>();
mDictionary = new HashMap<String, Integer>();
try {
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
parser.parse(new File(filename), new DefaultHandler() {
... | private void populateDictionary(String filename) {
roots = new ArrayList<CharNode>();
mDictionary = new HashMap<String, Integer>();
try {
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
parser.parse(new File(filename), new DefaultHandler() {
... |
diff --git a/extensions/main/src/test/java/org/apache/abdera/test/ext/features/FeatureTest.java b/extensions/main/src/test/java/org/apache/abdera/test/ext/features/FeatureTest.java
index 72e0204e..4aad6ab4 100644
--- a/extensions/main/src/test/java/org/apache/abdera/test/ext/features/FeatureTest.java
+++ b/extensions/m... | true | true | public static void testSelectors() throws Exception {
Abdera abdera = new Abdera();
Service service = abdera.newService();
Workspace workspace = service.addWorkspace("a");
Collection collection1 = workspace.addCollection("a1","a1");
collection1.setAcceptsEntry();
FeaturesHelper.addFeature... | public static void testSelectors() throws Exception {
Abdera abdera = new Abdera();
Service service = abdera.newService();
Workspace workspace = service.addWorkspace("a");
Collection collection1 = workspace.addCollection("a1","a1");
collection1.setAcceptsEntry();
FeaturesHelper.addFeature... |
diff --git a/pn-jndi/src/main/java/info/papyri/util/JetspeedUrlRewriter.java b/pn-jndi/src/main/java/info/papyri/util/JetspeedUrlRewriter.java
index 5258115b..21c3ee45 100644
--- a/pn-jndi/src/main/java/info/papyri/util/JetspeedUrlRewriter.java
+++ b/pn-jndi/src/main/java/info/papyri/util/JetspeedUrlRewriter.java
@@ -1... | true | true | public String rewriteUrl(Object in) {
//TODO: Add support for rewriting min/max links
StringBuffer result = new StringBuffer();
try {
URL url = new URL(in.toString());
// "http://localhost:80/navigator/portal/apisfull.psml?controlName=oai:papyri.info:id... | public String rewriteUrl(Object in) {
//TODO: Add support for rewriting min/max links
StringBuffer result = new StringBuffer();
try {
URL url = new URL(in.toString());
// "http://localhost:80/navigator/portal/apisfull.psml?controlName=oai:papyri.info:id... |
diff --git a/src/main/java/hudson/plugins/jwsdp_sqe/PluginImpl.java b/src/main/java/hudson/plugins/jwsdp_sqe/PluginImpl.java
index f9c1fd4..5fb88e4 100644
--- a/src/main/java/hudson/plugins/jwsdp_sqe/PluginImpl.java
+++ b/src/main/java/hudson/plugins/jwsdp_sqe/PluginImpl.java
@@ -1,15 +1,15 @@
package hudson.plugins.j... | true | true | public void start() throws Exception {
// make sure it comes before the mailer
BuildStep.PUBLISHERS.add(0,SQETestResultPublisher.DescriptorImpl.DESCRIPTOR);
}
| public void start() throws Exception {
// make sure it comes before the mailer
BuildStep.PUBLISHERS.addRecorder(SQETestResultPublisher.DescriptorImpl.DESCRIPTOR);
}
|
diff --git a/libraries/javalib/java/security/SecureRandom.java b/libraries/javalib/java/security/SecureRandom.java
index e6d9db719..c1f1c10f1 100644
--- a/libraries/javalib/java/security/SecureRandom.java
+++ b/libraries/javalib/java/security/SecureRandom.java
@@ -1,100 +1,100 @@
/*
* Java core library component.
... | true | true | protected final int next(int numBits) {
byte[] res = new byte[(numBits + 7) / 8];
int lpc, retval = 0;
nextBytes(res);
for( lpc = res.length - 1; lpc >= 0; lpc-- )
{
retval |= (res[res.length - lpc - 1] << (8 * lpc)) & 0xFF;
}
return retval >> (res.length * 8 - numBits);
}
| protected final int next(int numBits) {
byte[] res = new byte[(numBits + 7) / 8];
int lpc, retval = 0;
nextBytes(res);
for( lpc = res.length - 1; lpc >= 0; lpc-- )
{
retval |= ((res[res.length - lpc - 1] & 0xFF) << (8 * lpc));
}
return retval >> (res.length * 8 - numBits);
}
|
diff --git a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/inbound/SftpInboundRemoteFileSystemSynchronizerTests.java b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/inbound/SftpInboundRemoteFileSystemSynchronizerTests.java
index 7de5d9f219..dd0f6ef2c4 100644
---... | true | true | public void testCopyFileToLocalDir() throws Exception {
File file = new File(System.getProperty("java.io.tmpdir") + "/foo.txt");
if (file.exists()){
file.delete();
}
SftpInboundRemoteFileSystemSynchronizer syncronizer = new SftpInboundRemoteFileSystemSynchronizer();
syncronizer.setLocalDirectory(new FileS... | public void testCopyFileToLocalDir() throws Exception {
File file = new File(System.getProperty("java.io.tmpdir") + "/foo.txt");
if (file.exists()){
file.delete();
}
SftpInboundRemoteFileSystemSynchronizer syncronizer = new SftpInboundRemoteFileSystemSynchronizer();
syncronizer.setLocalDirectory(new FileS... |
diff --git a/src/cm/model/Stats.java b/src/cm/model/Stats.java
index eac68c4..7269447 100644
--- a/src/cm/model/Stats.java
+++ b/src/cm/model/Stats.java
@@ -1,2696 +1,2720 @@
package cm.model;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Hashtable;
import java.ut... | false | true | public Boolean loadFromCBFile(String filename) {
File dnd4e = new File(filename);
Node node = null;
NodeList nodelist = null;
if (dnd4e.exists()) {
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
domFactory.setNamespaceAware(true);
try {
DocumentBuilder builder = domFact... | public Boolean loadFromCBFile(String filename) {
File dnd4e = new File(filename);
Node node = null;
NodeList nodelist = null;
if (dnd4e.exists()) {
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
domFactory.setNamespaceAware(true);
try {
DocumentBuilder builder = domFact... |
diff --git a/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java b/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
index 340b13580..2c5a7e3e8 100644
--- a/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
+++ b/core/ui/src/main/java/org/richfaces/rend... | true | true | protected void doEncodeEnd(ResponseWriter writer, FacesContext context,
UIComponent component) throws IOException {
AbstractPoll poll = (AbstractPoll) component;
writer.startElement(HtmlConstants.SPAN_ELEM, component);
writer.writeAttribute(HtmlConstants.STYLE_... | protected void doEncodeEnd(ResponseWriter writer, FacesContext context,
UIComponent component) throws IOException {
AbstractPoll poll = (AbstractPoll) component;
writer.startElement(HtmlConstants.SPAN_ELEM, component);
writer.writeAttribute(HtmlConstants.STYLE_... |
diff --git a/samba/src/test/java/org/rhq/plugins/samba/SambaComponentTest.java b/samba/src/test/java/org/rhq/plugins/samba/SambaComponentTest.java
index 82b527b0a2..f36253eb70 100644
--- a/samba/src/test/java/org/rhq/plugins/samba/SambaComponentTest.java
+++ b/samba/src/test/java/org/rhq/plugins/samba/SambaComponentTes... | true | true | protected Configuration getExpectedResourceConfig() {
Configuration config = new Configuration();
config.put(new PropertySimple("workgroup", "SCOOBY"));
config.put(new PropertySimple("server string", "MysteryMachine"));
config.put(new PropertySimple("security", "user"));
con... | protected Configuration getExpectedResourceConfig() {
Configuration config = new Configuration();
config.put(new PropertySimple("workgroup", "SCOOBY"));
config.put(new PropertySimple("server string", "MysteryMachine"));
config.put(new PropertySimple("security", "user"));
con... |
diff --git a/plugin/src/main/java/hudson/plugins/findbugs/parser/Bug.java b/plugin/src/main/java/hudson/plugins/findbugs/parser/Bug.java
index 30e9436..4cb8072 100644
--- a/plugin/src/main/java/hudson/plugins/findbugs/parser/Bug.java
+++ b/plugin/src/main/java/hudson/plugins/findbugs/parser/Bug.java
@@ -1,318 +1,318 @@... | true | true | private String getCloudInformation() {
if (!shouldBeInCloud && !inCloud && detailsUrl == null) {
return StringUtils.EMPTY;
}
StringBuilder cloudMessage = new StringBuilder();
appendFirstSeenMessage(cloudMessage);
int id = RANDOM.nextInt();
String onclic... | private String getCloudInformation() {
if (!shouldBeInCloud || (!inCloud && detailsUrl == null)) {
return StringUtils.EMPTY;
}
StringBuilder cloudMessage = new StringBuilder();
appendFirstSeenMessage(cloudMessage);
int id = RANDOM.nextInt();
String oncl... |
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/ProjectPreferences.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/ProjectPreferences.java
index 3bfe3b10d..90d636793 100644
--- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/re... | false | true | protected void save() throws BackingStoreException {
final IFile fileInWorkspace = getFile();
if (fileInWorkspace == null) {
if (Policy.DEBUG_PREFERENCES)
Policy.debug("Not saving preferences since there is no file for node: " + absolutePath()); //$NON-NLS-1$
return;
}
Properties table = convertToPro... | protected void save() throws BackingStoreException {
final IFile fileInWorkspace = getFile();
if (fileInWorkspace == null) {
if (Policy.DEBUG_PREFERENCES)
Policy.debug("Not saving preferences since there is no file for node: " + absolutePath()); //$NON-NLS-1$
return;
}
Properties table = convertToPro... |
diff --git a/iudex-core/src/test/java/iudex/core/DomainTest.java b/iudex-core/src/test/java/iudex/core/DomainTest.java
index a8bc5cfe..54bbbf09 100644
--- a/iudex-core/src/test/java/iudex/core/DomainTest.java
+++ b/iudex-core/src/test/java/iudex/core/DomainTest.java
@@ -1,73 +1,73 @@
/*
* Copyright (c) 2008-2013 Dav... | true | true | public void testRegistrationLevelDomain()
{
assertEquals( "timesonline.co.uk", rld( "m.w.timesonline.co.uk" ) );
assertEquals( "timesonline.co.uk", rld( "w.timesonline.co.uk" ) );
assertEquals( "timesonline.co.uk", rld( "timesonline.co.uk" ) );
assertEquals( null, ... | public void testRegistrationLevelDomain()
{
assertEquals( "timesonline.co.uk", rld( "m.w.timesonline.co.uk" ) );
assertEquals( "timesonline.co.uk", rld( "w.timesonline.co.uk" ) );
assertEquals( "timesonline.co.uk", rld( "timesonline.co.uk" ) );
assertEquals( null, ... |
diff --git a/E-EYE-O_Example-VaadinJerseyJacksonJava/src/com/jtbdevelopment/e_eye_o/DAO/helpers/example/NewUserHelperImpl.java b/E-EYE-O_Example-VaadinJerseyJacksonJava/src/com/jtbdevelopment/e_eye_o/DAO/helpers/example/NewUserHelperImpl.java
index 36e3fac..6d927db 100644
--- a/E-EYE-O_Example-VaadinJerseyJacksonJava/s... | true | true | public void initializeNewUser(final AppUser newUser) {
createDefaultCategoriesForUser(newUser);
Map<String, ObservationCategory> map = observationCategoryHelper.getObservationCategoriesAsMap(newUser);
ClassList cl = readWriteDAO.create(idObjectFactory.newClassListBuilder(newUser).withDescri... | public void initializeNewUser(final AppUser newUser) {
createDefaultCategoriesForUser(newUser);
Map<String, ObservationCategory> map = observationCategoryHelper.getObservationCategoriesAsMap(newUser);
ClassList cl = readWriteDAO.create(idObjectFactory.newClassListBuilder(newUser).withDescri... |
diff --git a/src/com/tulskiy/musique/audio/formats/mp3/MP3Decoder.java b/src/com/tulskiy/musique/audio/formats/mp3/MP3Decoder.java
index 0a50d0d..1476ee7 100755
--- a/src/com/tulskiy/musique/audio/formats/mp3/MP3Decoder.java
+++ b/src/com/tulskiy/musique/audio/formats/mp3/MP3Decoder.java
@@ -1,351 +1,351 @@
/*
* Cop... | true | true | public boolean open(final Track track) {
if (track == null)
return false;
this.inputFile = track;
try {
URI location = track.getLocation();
InputStream fis;
if (location.getScheme().equals("file")) {
logger.info("Opening file: "... | public boolean open(final Track track) {
if (track == null)
return false;
this.inputFile = track;
try {
URI location = track.getLocation();
InputStream fis;
if (location.getScheme().equals("file")) {
logger.info("Opening file: "... |
diff --git a/src/web/org/openmrs/web/OpenmrsFilter.java b/src/web/org/openmrs/web/OpenmrsFilter.java
index d85e6483..a33d849c 100644
--- a/src/web/org/openmrs/web/OpenmrsFilter.java
+++ b/src/web/org/openmrs/web/OpenmrsFilter.java
@@ -1,157 +1,159 @@
/**
* The contents of this file are subject to the OpenMRS Public ... | true | true | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest)request;
HttpSession httpSession = httpRequest.getSession();
UserContext userContext = null;
Object val = httpRequest.getAtt... | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest)request;
HttpSession httpSession = httpRequest.getSession();
UserContext userContext = null;
Object val = httpRequest.getAtt... |
diff --git a/src/org/wfp/vam/intermap/services/wmc/SetWmcFromURL.java b/src/org/wfp/vam/intermap/services/wmc/SetWmcFromURL.java
index 19292e6395..e9ad420d69 100644
--- a/src/org/wfp/vam/intermap/services/wmc/SetWmcFromURL.java
+++ b/src/org/wfp/vam/intermap/services/wmc/SetWmcFromURL.java
@@ -1,211 +1,211 @@
//======... | true | true | public Element exec(Element params, ServiceContext context) throws Exception
{
String url = params.getChildText("url");
URL u = new URL(url);
HttpURLConnection conn = (HttpURLConnection)u.openConnection();
BufferedInputStream is = new BufferedInputStream(conn.getInputStream());
Element mapContext = Xml.loa... | public Element exec(Element params, ServiceContext context) throws Exception
{
String url = params.getChildText("url");
URL u = new URL(url);
HttpURLConnection conn = (HttpURLConnection)u.openConnection();
BufferedInputStream is = new BufferedInputStream(conn.getInputStream());
Element mapContext = Xml.loa... |
diff --git a/factoryboy-core/src/test/java/org/factoryboy/core/MockFooDAOTest.java b/factoryboy-core/src/test/java/org/factoryboy/core/MockFooDAOTest.java
index 2d15d0f..a3fdbbc 100644
--- a/factoryboy-core/src/test/java/org/factoryboy/core/MockFooDAOTest.java
+++ b/factoryboy-core/src/test/java/org/factoryboy/core/Moc... | true | true | public void testFindById() throws Exception {
when(fooDAO.findById(eq(9527L))).thenReturn(fooFactory.name("周星星").age(51).build());
Foo zxx = fooDAO.findById(9527L);
assertThat(zxx.getName()).isEqualTo("周星星");
assertThat(zxx.getAge()).isEqualTo(51);
verify(fooDAO, times(1)).fi... | public void testFindById() throws Exception {
when(fooDAO.findById(eq(9527L))).thenReturn(fooFactory.name("周星星").age(51).build());
Foo zxx = fooDAO.findById(9527L);
assertThat(zxx.getName()).isEqualTo("周星星");
assertThat(zxx.getAge()).isEqualTo(51);
verify(fooDAO, times(1)).fi... |
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/model/managers/MakumbaManager.java b/webapp/WEB-INF/classes/org/makumba/parade/model/managers/MakumbaManager.java
index 7aa54ab..a6a6c97 100644
--- a/webapp/WEB-INF/classes/org/makumba/parade/model/managers/MakumbaManager.java
+++ b/webapp/WEB-INF/classes/org/makum... | true | true | public String getMakumbaVersion(String p, Row r) {
final String path = p;
String version = "No makumba.jar";
try {
java.io.File fl = new java.io.File((path + "/WEB-INF/lib/makumba.jar").replace('/',
java.io.File.separatorChar));
if (!fl.exists())... | public String getMakumbaVersion(String p, Row r) {
final String path = p;
String version = "No makumba.jar";
try {
java.io.File fl = new java.io.File((path + "/WEB-INF/lib/makumba.jar").replace('/',
java.io.File.separatorChar));
if (!fl.exists())... |
diff --git a/src/org/griphyn/cPlanner/transfer/refiner/Bundle.java b/src/org/griphyn/cPlanner/transfer/refiner/Bundle.java
index 40221882f..3fac12606 100644
--- a/src/org/griphyn/cPlanner/transfer/refiner/Bundle.java
+++ b/src/org/griphyn/cPlanner/transfer/refiner/Bundle.java
@@ -1,1232 +1,1237 @@
/**
* Copyright 2... | true | true | public void addStageInXFERNodes( SubInfo job,
Collection files,
int type,
Map<String,PoolTransfer> stageInMap,
BundleValue bundleValue,
... | public void addStageInXFERNodes( SubInfo job,
Collection files,
int type,
Map<String,PoolTransfer> stageInMap,
BundleValue bundleValue,
... |
diff --git a/main/src/cgeo/geocaching/AboutActivity.java b/main/src/cgeo/geocaching/AboutActivity.java
index 1d7e169fe..663abc8e4 100644
--- a/main/src/cgeo/geocaching/AboutActivity.java
+++ b/main/src/cgeo/geocaching/AboutActivity.java
@@ -1,86 +1,86 @@
package cgeo.geocaching;
import cgeo.geocaching.activity.Abst... | true | true | private void init() {
try {
final PackageInfo info = getPackageManager().getPackageInfo(this.getPackageName(), 0);
setTitle(res.getString(R.string.about) + " (ver. " + info.versionName + ")");
((TextView) findViewById(R.id.contributors)).setMovementMethod(LinkMovementMet... | private void init() {
try {
final PackageInfo info = getPackageManager().getPackageInfo(this.getPackageName(), 0);
((TextView) findViewById(R.id.about_version_string)).setText(info.versionName);
((TextView) findViewById(R.id.contributors)).setMovementMethod(LinkMovementM... |
diff --git a/tests/frontend/org/voltdb/ReplicatedProcedure.java b/tests/frontend/org/voltdb/ReplicatedProcedure.java
index fd1269f79..367403a12 100644
--- a/tests/frontend/org/voltdb/ReplicatedProcedure.java
+++ b/tests/frontend/org/voltdb/ReplicatedProcedure.java
@@ -1,51 +1,51 @@
/* This file is part of VoltDB.
* ... | true | true | public VoltTable run(long id, String desc) {
if (id != 1 || !desc.equals("haha")) {
throw new VoltAbortException();
}
VoltTable result = new VoltTable(new ColumnInfo("txnId", VoltType.BIGINT),
new ColumnInfo("timestamp", VoltType.BIGINT))... | public VoltTable run(long id, String desc) {
if (id != 1 || !desc.equals("haha")) {
throw new VoltAbortException();
}
VoltTable result = new VoltTable(new ColumnInfo("txnId", VoltType.BIGINT),
new ColumnInfo("timestamp", VoltType.BIGINT))... |
diff --git a/selenium2/src/at/mannaz/socialsnapshot/SocialSnapshot.java b/selenium2/src/at/mannaz/socialsnapshot/SocialSnapshot.java
index 5ad6016..0be7e24 100644
--- a/selenium2/src/at/mannaz/socialsnapshot/SocialSnapshot.java
+++ b/selenium2/src/at/mannaz/socialsnapshot/SocialSnapshot.java
@@ -1,484 +1,483 @@
packag... | true | true | public static void main(String[] args) {
String mail, password, cookie;
ArrayList<String> friendUrls = null, friendNames = null;
mail = password = cookie = null;
Properties config = new Properties();
try {
// Load the SocialSnapshot config file
config.load(new FileInputStream("socialsnapshot.config"... | public static void main(String[] args) {
String mail, password, cookie;
ArrayList<String> friendUrls = null, friendNames = null;
mail = password = cookie = null;
Properties config = new Properties();
try {
// Load the SocialSnapshot config file
config.load(new FileInputStream("socialsnapshot.config"... |
diff --git a/src/java/fedora/common/PID.java b/src/java/fedora/common/PID.java
index 8d9d275f7..4bafe9e85 100755
--- a/src/java/fedora/common/PID.java
+++ b/src/java/fedora/common/PID.java
@@ -1,242 +1,242 @@
package fedora.common;
import java.io.*; // BufferedReader, InputStreamReader
/**
* A persistent iden... | true | true | public static String normalize(String pidString)
throws MalformedPIDException {
// First, do null & length checks
if (pidString == null) {
throw new MalformedPIDException("PID is null.");
}
if (pidString.length() > MAX_LENGTH) {
throw new Malforme... | public static String normalize(String pidString)
throws MalformedPIDException {
// First, do null & length checks
if (pidString == null) {
throw new MalformedPIDException("PID is null.");
}
if (pidString.length() > MAX_LENGTH) {
throw new Malforme... |
diff --git a/trunk/GeoBeagle/src/com/google/code/geobeagle/database/TagWriterImpl.java b/trunk/GeoBeagle/src/com/google/code/geobeagle/database/TagWriterImpl.java
index b1b0e06a..eb0ade7e 100644
--- a/trunk/GeoBeagle/src/com/google/code/geobeagle/database/TagWriterImpl.java
+++ b/trunk/GeoBeagle/src/com/google/code/geo... | true | true | public boolean hasTag(CharSequence geocacheId, Tag tag) {
ISQLiteDatabase mDatabase = null;
try {
mDatabase = databaseProvider.get();
} catch (ProvisionException e) {
Log.e("GeoBeagle", "Provision exception");
return false;
}
final boolean ... | public boolean hasTag(CharSequence geocacheId, Tag tag) {
ISQLiteDatabase mDatabase = null;
try {
mDatabase = databaseProvider.get();
} catch (ProvisionException e) {
Log.e("GeoBeagle", "Provision exception");
return false;
}
final boolean ... |
diff --git a/src/org/apache/xerces/impl/xpath/regex/RegexParser.java b/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
index 8ff291f0..f0247c68 100644
--- a/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
+++ b/src/org/apache/xerces/impl/xpath/regex/RegexParser.java
@@ -1,1086 +1,1100 @@
/*
* License... | true | true | final void next() {
if (this.offset >= this.regexlen) {
this.chardata = -1;
this.nexttoken = T_EOF;
return;
}
int ret;
int ch = this.regex.charAt(this.offset++);
this.chardata = ch;
if (this.context == S_INBRACKETS) {
... | final void next() {
if (this.offset >= this.regexlen) {
this.chardata = -1;
this.nexttoken = T_EOF;
return;
}
int ret;
int ch = this.regex.charAt(this.offset++);
this.chardata = ch;
if (this.context == S_INBRACKETS) {
... |
diff --git a/plugins/org.eclipse.dltk.javascript.ui/src/org/eclipse/dltk/javascript/internal/ui/wizards/JavascriptProjectCreationWizard.java b/plugins/org.eclipse.dltk.javascript.ui/src/org/eclipse/dltk/javascript/internal/ui/wizards/JavascriptProjectCreationWizard.java
index 7f45e973..421249f9 100644
--- a/plugins/org... | true | true | public void addPages() {
super.addPages();
fFirstPage = new ProjectWizardFirstPage() {
JavascriptInterpreterGroup fInterpreterGroup;
final class JavascriptInterpreterGroup extends
AbstractInterpreterGroup {
public JavascriptInterpreterGroup(Composite composite) {
super(composite);
}
... | public void addPages() {
super.addPages();
fFirstPage = new ProjectWizardFirstPage() {
JavascriptInterpreterGroup fInterpreterGroup;
final class JavascriptInterpreterGroup extends
AbstractInterpreterGroup {
public JavascriptInterpreterGroup(Composite composite) {
super(composite);
}
... |
diff --git a/src/main/java/org/jboss/qa/jdg/messageflow/PrintTrace.java b/src/main/java/org/jboss/qa/jdg/messageflow/PrintTrace.java
index 0b95e1e..0cc9fa3 100644
--- a/src/main/java/org/jboss/qa/jdg/messageflow/PrintTrace.java
+++ b/src/main/java/org/jboss/qa/jdg/messageflow/PrintTrace.java
@@ -1,190 +1,191 @@
/*
*... | true | true | public void process(Trace trace) {
outLine++;
if (trace.events.size() > 100) {
System.err.printf("Long trace %d (%d events, %d messages) on line %d\n",
traceCounter, trace.events.size(), trace.messages.size(), outLine);
}
out.printf("TRACE %d: %d msg\n", tr... | public void process(Trace trace) {
outLine++;
if (trace.events.size() > 100) {
System.err.printf("Long trace %d (%d events, %d messages) on line %d\n",
traceCounter, trace.events.size(), trace.messages.size(), outLine);
}
out.printf("TRACE %d: %d msg\n", tr... |
diff --git a/LaundryView/src/main/java/net/danopia/mobile/laundryview/FindCampusActivity.java b/LaundryView/src/main/java/net/danopia/mobile/laundryview/FindCampusActivity.java
index fbbc6a7..4f3275d 100644
--- a/LaundryView/src/main/java/net/danopia/mobile/laundryview/FindCampusActivity.java
+++ b/LaundryView/src/main... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
final Location loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
final Location loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
... |
diff --git a/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/test/ConfigurationManagerTest.java b/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/test/ConfigurationManagerTest.java
index ebe8a257f..ec51898cb 100644
--- a/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/test/ConfigurationManagerTest.java
+++ b/sphinx4/src/sphi... | true | true | public void testXmlExtendedConfiguration() {
ConfigurationManager cm = new ConfigurationManager("../../sphinx4/tests/other/extendconfig.sxl");
String instanceName = "duco";
Assert.assertTrue(cm.getPropertySheet(instanceName) != null);
Assert.assertTrue(cm.lookup(instanceName) != nul... | public void testXmlExtendedConfiguration() {
ConfigurationManager cm = new ConfigurationManager("../tests/other/extendconfig.sxl");
String instanceName = "duco";
Assert.assertTrue(cm.getPropertySheet(instanceName) != null);
Assert.assertTrue(cm.lookup(instanceName) != null);
... |
diff --git a/backend/src/generateimages.java b/backend/src/generateimages.java
index 7154dce..cc85290 100644
--- a/backend/src/generateimages.java
+++ b/backend/src/generateimages.java
@@ -1,231 +1,231 @@
//based on https://github.com/callison-burch/crowdsourcing-translation/blob/master/scripts/Str2ImgDemo.java
imp... | false | true | static public void main(String[] args) throws Exception
{
//fix for indic glyph substitution/ligatures - http://stackoverflow.com/questions/5994815/rendering-devanagari-ligatures-unicode-in-java-swing-jcomponent-on-mac-os-x/6407206#6407206
if (System.getProperty("os.name").startsWith("Mac OS X")) {
System.set... | static public void main(String[] args) throws Exception
{
//fix for indic glyph substitution/ligatures - http://stackoverflow.com/questions/5994815/rendering-devanagari-ligatures-unicode-in-java-swing-jcomponent-on-mac-os-x/6407206#6407206
if (System.getProperty("os.name").startsWith("Mac OS X")) {
System.set... |
diff --git a/shell/src/main/java/org/apache/karaf/cellar/shell/group/GroupPickCommand.java b/shell/src/main/java/org/apache/karaf/cellar/shell/group/GroupPickCommand.java
index a99743bf..ef26cf87 100644
--- a/shell/src/main/java/org/apache/karaf/cellar/shell/group/GroupPickCommand.java
+++ b/shell/src/main/java/org/apa... | false | true | protected Object doExecute() throws Exception {
Group sourceGroup = groupManager.findGroupByName(sourceGroupName);
if (sourceGroup != null) {
Set<Node> groupMembers = sourceGroup.getNodes();
for (Node node : groupMembers) {
List<String> recipients = new Linke... | protected Object doExecute() throws Exception {
Group sourceGroup = groupManager.findGroupByName(sourceGroupName);
if (sourceGroup != null) {
Set<Node> groupMembers = sourceGroup.getNodes();
int i = 0;
for (Node node : groupMembers) {
if (i >= cou... |
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/SendSmsDialog.java b/src/net/java/sip/communicator/impl/gui/main/chat/SendSmsDialog.java
index f44d2fdec..1aacfc21a 100644
--- a/src/net/java/sip/communicator/impl/gui/main/chat/SendSmsDialog.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/SendSm... | true | true | private void sendSmsMessage(String phoneNumber, Message message)
{
metaContact.addDetail("mobile", phoneNumber);
try
{
smsOpSet.sendSmsMessage(phoneNumber, message);
}
catch (IllegalStateException ex)
{
logger.error("Failed to send... | private void sendSmsMessage(String phoneNumber, Message message)
{
metaContact.addDetail("mobile", phoneNumber);
try
{
smsOpSet.sendSmsMessage(phoneNumber, message);
}
catch (IllegalStateException ex)
{
logger.error("Failed to send... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.