diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/org/pentaho/agilebi/pdi/wizard/ui/xul/steps/DataSourceAndQueryStep.java b/src/org/pentaho/agilebi/pdi/wizard/ui/xul/steps/DataSourceAndQueryStep.java
index 9ae06f0..8a98c12 100644
--- a/src/org/pentaho/agilebi/pdi/wizard/ui/xul/steps/DataSourceAndQueryStep.java
+++ b/src/org/pentaho/agilebi/pdi/wizard/... | true | true | public void stepActivating()
{
super.stepActivating();
if (model != null && df == null) {
// Populate a PmdDataFactoryClass for the report definition to use
File modelsDir = new File("models"); //$NON-NLS-1$
modelsDir.mkdirs();
int idx = 1;
boolean looking = true;
... | public void stepActivating()
{
super.stepActivating();
if (model != null && df == null) {
// Populate a PmdDataFactoryClass for the report definition to use
File modelsDir = new File("models"); //$NON-NLS-1$
modelsDir.mkdirs();
int idx = 1;
boolean looking = true;
... |
diff --git a/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java b/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java
index 6e19971..1b12cf5 100644
--- a/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java
+++ b/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java
@@ -1,1... | false | true | public void writeFile(String arg0, Map result) {
// Initial variables
HashMap expData = (HashMap) result;
ArrayList<HashMap> soilArr = readSWData(expData, "soil");
// ArrayList<HashMap> wthArr = readSWData(expData, "weather");
HashMap soilData;
// HashMap wthData;
... | public void writeFile(String arg0, Map result) {
// Initial variables
HashMap expData = (HashMap) result;
ArrayList<HashMap> soilArr = readSWData(expData, "soil");
// ArrayList<HashMap> wthArr = readSWData(expData, "weather");
HashMap soilData;
// HashMap wthData;
... |
diff --git a/web/modules/src/java/org/jdesktop/wonderland/modules/servlets/ModuleUploadServlet.java b/web/modules/src/java/org/jdesktop/wonderland/modules/servlets/ModuleUploadServlet.java
index 52e3b01c4..f7bd40a5d 100644
--- a/web/modules/src/java/org/jdesktop/wonderland/modules/servlets/ModuleUploadServlet.java
+++ ... | true | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
/*
* Create a factory for disk-base file items to handle the request. Also
* place the file in add/.
*/
PrintWriter writer = response.getWriter();
... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
/*
* Create a factory for disk-base file items to handle the request. Also
* place the file in add/.
*/
PrintWriter writer = response.getWriter();
... |
diff --git a/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java b/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java
index 9af2e88ed..ca024e4ea 100644
--- a/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java
+++ b/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java
@@ -1,230 +1,230 @@... | true | true | public RequestFilter[] generateRequest(EventAccessOperations event,
NetworkAccess network,
Channel channel,
CookieJar cookies) throws Exception{
Origin origin = null;
double arrivalStartTime = -100.0;
double arrivalEndTime = -100.0;
origin = event.get_preferred_origin();
Properties props = St... | public RequestFilter[] generateRequest(EventAccessOperations event,
NetworkAccess network,
Channel channel,
CookieJar cookies) throws Exception{
Origin origin = null;
double arrivalStartTime = -100.0;
double arrivalEndTime = -100.0;
origin = event.get_preferred_origin();
Properties props = St... |
diff --git a/libs/lint_checks/src/main/java/com/android/tools/lint/checks/FragmentDetector.java b/libs/lint_checks/src/main/java/com/android/tools/lint/checks/FragmentDetector.java
index 43d7e80..04e04c5 100644
--- a/libs/lint_checks/src/main/java/com/android/tools/lint/checks/FragmentDetector.java
+++ b/libs/lint_chec... | true | true | public void checkClass(@NonNull ClassContext context, @NonNull ClassNode classNode) {
if ((classNode.access & Opcodes.ACC_ABSTRACT) != 0) {
// Ignore abstract classes since they are clearly (and by definition) not intended to
// be instantiated. We're looking for accidental non-stati... | public void checkClass(@NonNull ClassContext context, @NonNull ClassNode classNode) {
if ((classNode.access & Opcodes.ACC_ABSTRACT) != 0) {
// Ignore abstract classes since they are clearly (and by definition) not intended to
// be instantiated. We're looking for accidental non-stati... |
diff --git a/classpath/java/io/BufferedInputStream.java b/classpath/java/io/BufferedInputStream.java
index b20309fd..67ac256a 100644
--- a/classpath/java/io/BufferedInputStream.java
+++ b/classpath/java/io/BufferedInputStream.java
@@ -1,88 +1,89 @@
/* Copyright (c) 2008-2010, Avian Contributors
Permission to use... | true | true | public int read(byte[] b, int offset, int length) throws IOException {
int count = 0;
if (position < limit) {
int remaining = limit - position;
if (remaining > length) {
remaining = length;
}
System.arraycopy(buffer, position, b, offset, remaining);
count += remaining;... | public int read(byte[] b, int offset, int length) throws IOException {
int count = 0;
if (position < limit) {
int remaining = limit - position;
if (remaining > length) {
remaining = length;
}
System.arraycopy(buffer, position, b, offset, remaining);
count += remaining;... |
diff --git a/src/ua/in/leopard/androidCoocooAfisha/EditPreferences.java b/src/ua/in/leopard/androidCoocooAfisha/EditPreferences.java
index 6c02b75..157cfce 100644
--- a/src/ua/in/leopard/androidCoocooAfisha/EditPreferences.java
+++ b/src/ua/in/leopard/androidCoocooAfisha/EditPreferences.java
@@ -1,141 +1,146 @@
packag... | true | true | public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (key.equals(OPT_CITY_ID)) {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString(OPT_CITY, cities_lp.getEntry().toString());
editor.commit();
setDefUrls(sharedPrefer... | public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (key.equals(OPT_CITY_ID)) {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString(OPT_CITY, cities_lp.getEntry().toString());
editor.commit();
setDefUrls(sharedPrefer... |
diff --git a/src/com/android/email/mail/transport/SmtpSender.java b/src/com/android/email/mail/transport/SmtpSender.java
index 71a86306..a9b13a66 100644
--- a/src/com/android/email/mail/transport/SmtpSender.java
+++ b/src/com/android/email/mail/transport/SmtpSender.java
@@ -1,334 +1,334 @@
/*
* Copyright (C) 2008 Th... | true | true | public void open() throws MessagingException {
try {
mTransport.open();
// Eat the banner
executeSimpleCommand(null);
String localHost = "localhost";
// Try to get local address in the proper format.
InetAddress localAddress = mTransp... | public void open() throws MessagingException {
try {
mTransport.open();
// Eat the banner
executeSimpleCommand(null);
String localHost = "localhost";
// Try to get local address in the proper format.
InetAddress localAddress = mTransp... |
diff --git a/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java b/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
index 599ff051d..6954581b7 100644
--- a/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBot... | false | true | protected final void waitForBlockingJobsAcomplished(final long timeOut,
final String... jobNames) {
if (jobNames == null) {
return;
} else {
Map<String, Boolean> runningProcessesMap = new HashMap<String, Boolean>();
for (int i = 0; i < jobNames.length; i++) {
runningProcessesMap.put(jobNames[i], fa... | protected final void waitForBlockingJobsAcomplished(final long timeOut,
final String... jobNames) {
if (jobNames == null) {
return;
} else {
log.info("Entering waitForBlockingJobsAcomplished method");
Map<String, Boolean> runningProcessesMap = new HashMap<String, Boolean>();
for (int i = 0; i < job... |
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java
index 5a315b752..68644297b 100644
--- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java
+++ b/org.eclipse.jdt.debug/model/org/eclip... | true | true | public static IJavaLineBreakpoint lineBreakpointExists(String typeName, int lineNumber) throws CoreException {
String modelId= getPluginIdentifier();
String markerType= JavaLineBreakpoint.getMarkerType();
IBreakpointManager manager= DebugPlugin.getDefault().getBreakpointManager();
IBreakpoint[] breakpoints= ma... | public static IJavaLineBreakpoint lineBreakpointExists(String typeName, int lineNumber) throws CoreException {
String modelId= getPluginIdentifier();
String markerType= JavaLineBreakpoint.getMarkerType();
IBreakpointManager manager= DebugPlugin.getDefault().getBreakpointManager();
IBreakpoint[] breakpoints= ma... |
diff --git a/src/main/java/com/seitenbau/micgwaf/component/InputComponent.java b/src/main/java/com/seitenbau/micgwaf/component/InputComponent.java
index 4eeac74..3af39ca 100644
--- a/src/main/java/com/seitenbau/micgwaf/component/InputComponent.java
+++ b/src/main/java/com/seitenbau/micgwaf/component/InputComponent.java... | true | true | public Component processRequest(HttpServletRequest request)
{
System.out.println(request.getParameterMap());
String nameAttr = attributes.get("name");
if (value != null)
{
value = request.getParameter(nameAttr);
if (value != null)
{
submitted = true;
}
}
retur... | public Component processRequest(HttpServletRequest request)
{
System.out.println(request.getParameterMap());
String nameAttr = attributes.get("name");
if (nameAttr != null)
{
value = request.getParameter(nameAttr);
if (value != null)
{
submitted = true;
}
}
re... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java b/modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java
index 5a74c3035..88eaaf937 100644
--- a/modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java
+++ b/modules/cpr/s... | true | true | public void close(WebSocket webSocket, int closeCode) {
logger.trace("WebSocket closed with {}", closeCode);
WebSocketHandler webSocketHandler = webSocket.webSocketHandler();
// A message might be in the process of being processed and the websocket gets closed. In that corner
// cas... | public void close(WebSocket webSocket, int closeCode) {
logger.trace("WebSocket closed with {}", closeCode);
WebSocketHandler webSocketHandler = webSocket.webSocketHandler();
// A message might be in the process of being processed and the websocket gets closed. In that corner
// cas... |
diff --git a/src/main/java/com/github/fge/msgsimple/provider/LoadingMessageSourceProvider.java b/src/main/java/com/github/fge/msgsimple/provider/LoadingMessageSourceProvider.java
index d8384d6..81efc45 100644
--- a/src/main/java/com/github/fge/msgsimple/provider/LoadingMessageSourceProvider.java
+++ b/src/main/java/com... | true | true | public MessageSource getMessageSource(final Locale locale)
{
/*
* Set up expiry, if necessary
*/
if (!expiryEnabled.getAndSet(true))
setupExpiry(expiryDuration, expiryUnit);
FutureTask<MessageSource> task;
/*
* The algorithm is as follows:... | public MessageSource getMessageSource(final Locale locale)
{
/*
* Set up expiry, if necessary
*/
if (!expiryEnabled.getAndSet(true))
setupExpiry(expiryDuration, expiryUnit);
FutureTask<MessageSource> task;
/*
* The algorithm is as follows:... |
diff --git a/r/src/main/java/edu/dfci/cccb/mev/r/mock/cli/CliRScriptEngine.java b/r/src/main/java/edu/dfci/cccb/mev/r/mock/cli/CliRScriptEngine.java
index dc35de8c..c8284620 100644
--- a/r/src/main/java/edu/dfci/cccb/mev/r/mock/cli/CliRScriptEngine.java
+++ b/r/src/main/java/edu/dfci/cccb/mev/r/mock/cli/CliRScriptEngin... | true | true | public Object eval (Reader reader, ScriptContext context) throws ScriptException {
try {
File script = createTempFile ("mev-r-", ".R");
try {
script.createNewFile ();
try (Writer writer = new BufferedWriter (new FileWriter (script))) {
for (int c; (c = reader.read ()) >= 0; w... | public Object eval (Reader reader, ScriptContext context) throws ScriptException {
try {
File script = createTempFile ("mev-r-", ".R");
try {
script.createNewFile ();
try (Writer writer = new BufferedWriter (new FileWriter (script))) {
for (int c; (c = reader.read ()) >= 0; w... |
diff --git a/srcj/com/sun/electric/technology/TechFactory.java b/srcj/com/sun/electric/technology/TechFactory.java
index f5e2f8a79..0d68c41ea 100644
--- a/srcj/com/sun/electric/technology/TechFactory.java
+++ b/srcj/com/sun/electric/technology/TechFactory.java
@@ -1,349 +1,349 @@
/* -*- tab-width: 4 -*-
*
* Electr... | true | true | public Technology newInstance(Generic generic, Map<Param,Object> paramValues) {
try {
Map<Param,Object> fixedParamValues = new HashMap<Param,Object>();
for (Param param: techParams) {
Object value = paramValues.get(param);
if (value == null || value.ge... | public Technology newInstance(Generic generic, Map<Param,Object> paramValues) {
try {
Map<Param,Object> fixedParamValues = new HashMap<Param,Object>();
for (Param param: techParams) {
Object value = paramValues.get(param);
if (value == null || value.ge... |
diff --git a/src/com/dmdirc/ui/swing/components/TextFrame.java b/src/com/dmdirc/ui/swing/components/TextFrame.java
index c4c7c4eab..4b1483e2d 100644
--- a/src/com/dmdirc/ui/swing/components/TextFrame.java
+++ b/src/com/dmdirc/ui/swing/components/TextFrame.java
@@ -1,872 +1,873 @@
/*
* Copyright (c) 2006-2008 Chris S... | true | true | public TextFrame(final FrameContainer owner) {
super();
final ConfigManager config = owner.getConfigManager();
final Boolean pref = config.getOptionBool("ui", "maximisewindows",
false);
frameBufferSize = config.getOptionInt("ui", "frameBufferSize",
Int... | public TextFrame(final FrameContainer owner) {
super();
final ConfigManager config = owner.getConfigManager();
final Boolean pref = config.getOptionBool("ui", "maximisewindows",
false);
frameBufferSize = config.getOptionInt("ui", "frameBufferSize",
Int... |
diff --git a/src/main/java/net/daboross/bungeedev/nchat/JoinListener.java b/src/main/java/net/daboross/bungeedev/nchat/JoinListener.java
index 258d698..ba4328c 100644
--- a/src/main/java/net/daboross/bungeedev/nchat/JoinListener.java
+++ b/src/main/java/net/daboross/bungeedev/nchat/JoinListener.java
@@ -1,35 +1,35 @@
... | true | true | public void onJoin(ServerConnectedEvent evt) {
final ProxiedPlayer p = evt.getPlayer();
String name = plugin.getDisplayNameDatabase().getDisplayName(p.getName());
if (name == null) {
name = ChatColor.BLUE + p.getName();
}
p.setDisplayName(name);
ConnectorU... | public void onJoin(ServerConnectedEvent evt) {
final ProxiedPlayer p = evt.getPlayer();
String name = plugin.getDisplayNameDatabase().getDisplayName(p.getName());
if (name == null) {
name = ChatSensor.formatPlayerDisplayname(name);
}
p.setDisplayName(name);
... |
diff --git a/appinventor/components/src/com/google/appinventor/components/runtime/ReplForm.java b/appinventor/components/src/com/google/appinventor/components/runtime/ReplForm.java
index c4262f95..44af4449 100644
--- a/appinventor/components/src/com/google/appinventor/components/runtime/ReplForm.java
+++ b/appinventor/... | true | true | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
if (IsUSBRepl) {
PackageManager packageManager = this.$context().getPackageManager();
// the following is intended to prevent the application from being restarted
// once it has ever run (so it can be run only once after it is in... | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
if (IsUSBRepl) {
PackageManager packageManager = this.$context().getPackageManager();
// the following is intended to prevent the application from being restarted
// once it has ever run (so it can be run only once after it is in... |
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Alert.java b/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Alert.java
index b7a8d8d90..e830ad971 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Alert.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Al... | true | true | public JSONObject toJSON()
{
JSONObject result = new JSONObject("message", message,
"severity", severity.name().toLowerCase() );
if (duration == Duration.TRANSIENT)
{
result.put("transient", true);
}
if (duration.persistent)
{
... | public JSONObject toJSON()
{
JSONObject result = new JSONObject("message", message,
"severity", severity.name().toLowerCase() );
if (duration == Duration.TRANSIENT)
{
result.put("ephemeral", true);
}
if (duration.persistent)
{
... |
diff --git a/app/src/processing/app/syntax/PdeTextAreaDefaults.java b/app/src/processing/app/syntax/PdeTextAreaDefaults.java
index e6e1babee..d6d2ad3a6 100644
--- a/app/src/processing/app/syntax/PdeTextAreaDefaults.java
+++ b/app/src/processing/app/syntax/PdeTextAreaDefaults.java
@@ -1,201 +1,201 @@
/* -*- mode: java;... | true | true | public PdeTextAreaDefaults() {
inputHandler = new DefaultInputHandler();
//inputHandler.addDefaultKeyBindings(); // 0122
// use option on mac for things that are ctrl on windows/linux
String mod = Base.isMacOS() ? "A" : "C";
// right now, ctrl-up/down is select up/down, but mod should be
/... | public PdeTextAreaDefaults() {
inputHandler = new DefaultInputHandler();
//inputHandler.addDefaultKeyBindings(); // 0122
// use option on mac for things that are ctrl on windows/linux
String mod = Base.isMacOS() ? "A" : "C";
// right now, ctrl-up/down is select up/down, but mod should be
/... |
diff --git a/srcj/com/sun/electric/database/hierarchy/RTNode.java b/srcj/com/sun/electric/database/hierarchy/RTNode.java
index 1a08e1f5e..3784bc868 100644
--- a/srcj/com/sun/electric/database/hierarchy/RTNode.java
+++ b/srcj/com/sun/electric/database/hierarchy/RTNode.java
@@ -1,794 +1,794 @@
/* -*- tab-width: 4 -*-
... | true | true | private void addToRTNode(Object rtnInsert, Cell cell)
{
// see if there is room in the R-tree node
if (getTotal() >= MAXRTNODESIZE)
{
// no room: copy list to temp one
RTNode temp = new RTNode();
temp.setTotal(getTotal());
temp.setFlag(getFlag());
for(int i=0; i<getTotal(); i++)
temp.setChild... | private void addToRTNode(Object rtnInsert, Cell cell)
{
// see if there is room in the R-tree node
if (getTotal() >= MAXRTNODESIZE)
{
// no room: copy list to temp one
RTNode temp = new RTNode();
temp.setTotal(getTotal());
temp.setFlag(getFlag());
for(int i=0; i<getTotal(); i++)
temp.setChild... |
diff --git a/hk2/config/src/main/java/org/jvnet/hk2/config/MessageInterpolatorImpl.java b/hk2/config/src/main/java/org/jvnet/hk2/config/MessageInterpolatorImpl.java
index b21c41709..012f18780 100644
--- a/hk2/config/src/main/java/org/jvnet/hk2/config/MessageInterpolatorImpl.java
+++ b/hk2/config/src/main/java/org/jvnet... | true | true | public String interpolate(String message, Context context, Locale locale) {
Map<String, Object> annotationParameters = context.getConstraintDescriptor().getAttributes();
LocalisedMessage localisedMessage = new LocalisedMessage(message, locale);
String resolvedMessage = null;
if (cac... | public String interpolate(String message, Context context, Locale locale) {
Map<String, Object> annotationParameters = context.getConstraintDescriptor().getAttributes();
LocalisedMessage localisedMessage = new LocalisedMessage(message, locale);
String resolvedMessage = null;
if (cac... |
diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java
index 7e4cc892..32810082 100644
--- a/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java
+++ b/doxia-core/src/... | true | true | protected static Map getAllTestDocuments()
throws IOException
{
if ( CACHE_DOXIA_TEST_DOCUMENTS != null && !CACHE_DOXIA_TEST_DOCUMENTS.isEmpty() )
{
return CACHE_DOXIA_TEST_DOCUMENTS;
}
URL testJar = AbstractXmlValidatorTest.class.getClassLoader().getResource... | protected static Map getAllTestDocuments()
throws IOException
{
if ( CACHE_DOXIA_TEST_DOCUMENTS != null && !CACHE_DOXIA_TEST_DOCUMENTS.isEmpty() )
{
return CACHE_DOXIA_TEST_DOCUMENTS;
}
URL testJar = AbstractXmlValidatorTest.class.getClassLoader().getResource... |
diff --git a/MPDroid/src/com/namelessdev/mpdroid/fragments/NowPlayingSmallFragment.java b/MPDroid/src/com/namelessdev/mpdroid/fragments/NowPlayingSmallFragment.java
index bc951709..fc4b91c1 100644
--- a/MPDroid/src/com/namelessdev/mpdroid/fragments/NowPlayingSmallFragment.java
+++ b/MPDroid/src/com/namelessdev/mpdroid/... | true | true | protected void onPostExecute(Boolean result) {
if (result != null && result) {
String albumartist = null;
String artist = null;
String artistlabel = null;
String title = null;
String album = null;
boolean... | protected void onPostExecute(Boolean result) {
if (result != null && result) {
String albumartist = null;
String artist = null;
String artistlabel = null;
String title = null;
String album = null;
boolean... |
diff --git a/patcher/BTWTweaker.java b/patcher/BTWTweaker.java
index 0f5f9fc..3f726c1 100644
--- a/patcher/BTWTweaker.java
+++ b/patcher/BTWTweaker.java
@@ -1,305 +1,304 @@
import java.io.*;
import java.util.*;
import java.util.zip.*;
import org.objectweb.asm.*;
import org.objectweb.asm.tree.*;
import static ... | true | true | public static void tweak(String jarname, int jartype) throws Exception
{
try
{
engine = new RhinoScriptEngine();
engine.put("__main_class__", MAIN_CLASS);
execResource("scripts/opcodes.js");
execResource("scripts/tweaks.js");
}
catch(RhinoException e)
{
logRh... | public static void tweak(String jarname, int jartype) throws Exception
{
try
{
engine = new RhinoScriptEngine();
execResource("scripts/opcodes.js");
execResource("scripts/tweaks.js");
}
catch(RhinoException e)
{
logRhinoException(e);
}
File jar = new File(... |
diff --git a/org.kompiro.jamcircle.kanban.ui.test/src_ui/org/kompiro/jamcircle/kanban/ui/internal/figure/LaneCustomizedIconFigureTest.java b/org.kompiro.jamcircle.kanban.ui.test/src_ui/org/kompiro/jamcircle/kanban/ui/internal/figure/LaneCustomizedIconFigureTest.java
index 6d3b0eff..65977aa0 100644
--- a/org.kompiro.jam... | true | true | public void createFigure() throws Exception {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
LightweightSystem lws = new LightweightSystem(shell);
LaneCustomizedIconFigure figure = new LaneCustomizedIconFigure();
figure.setStatus("test");
ImageLoader... | public void createFigure() throws Exception {
Display display = Display.getDefault();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
LightweightSystem lws = new LightweightSystem(shell);
LaneCustomizedIconFigure figure = new LaneCustomizedIconFigure();
figure.setStatus("test");
Imag... |
diff --git a/myGov/src/com/scottcaruso/mygov/MainActivity.java b/myGov/src/com/scottcaruso/mygov/MainActivity.java
index a4e2b6d..fc2e61b 100644
--- a/myGov/src/com/scottcaruso/mygov/MainActivity.java
+++ b/myGov/src/com/scottcaruso/mygov/MainActivity.java
@@ -1,321 +1,322 @@
/* Scott Caruso
* Java 1 - 1307
* Week... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null)
{
boolean displayExists = savedInstanceState.getBoolean("display exists");
if (displayExists)
{
try {
JSONObject savedObject = ne... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null)
{
boolean displayExists = savedInstanceState.getBoolean("display exists");
if (displayExists)
{
try {
currentContext = this... |
diff --git a/maven/tests/org.jboss.tools.maven.configurators.tests/src/org/jboss/tools/maven/configurators/tests/JpaConfiguratorTest.java b/maven/tests/org.jboss.tools.maven.configurators.tests/src/org/jboss/tools/maven/configurators/tests/JpaConfiguratorTest.java
index 86e9c7d6..e55c6c52 100644
--- a/maven/tests/org.j... | true | true | public void testSimpleJavaProjects() throws Exception {
IProject project = importProject( "projects/jpa/simple-2.0/pom.xml");
waitForJobsToComplete();
if (ResourceLocatorManager.instance().getResourceLocator(project) == null) {
//FIXME : JPT randomly decides to not pick up the
//MavenResourceLocator fr... | public void testSimpleJavaProjects() throws Exception {
IProject project = importProject( "projects/jpa/simple-2.0/pom.xml");
waitForJobsToComplete();
if (ResourceLocatorManager.instance().getResourceLocator(project) == null) {
//FIXME : JPT randomly decides to not pick up the
//MavenResourceLocator fr... |
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/DeleteCommand.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/DeleteCommand.java
index 8a5308171..500110456 100644
--- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/e... | true | true | public void execute()
{
XSDVisitor visitor = new XSDVisitor()
{
public void visitElementDeclaration(org.eclipse.xsd.XSDElementDeclaration element)
{
if (element.getTypeDefinition() == target)
{
XSDSimpleTypeDefinition type = target.getSchema().getSchemaForSchema().resol... | public void execute()
{
XSDVisitor visitor = new XSDVisitor()
{
public void visitElementDeclaration(org.eclipse.xsd.XSDElementDeclaration element)
{
if (element.getTypeDefinition() == target)
{
XSDSimpleTypeDefinition type = target.getSchema().getSchemaForSchema().resol... |
diff --git a/src/com/nononsenseapps/notepad/NotesListFragment.java b/src/com/nononsenseapps/notepad/NotesListFragment.java
index 71185710..b76a87bb 100644
--- a/src/com/nononsenseapps/notepad/NotesListFragment.java
+++ b/src/com/nononsenseapps/notepad/NotesListFragment.java
@@ -1,2023 +1,2023 @@
/*
* Copyright (C) 2... | true | true | private void reCalculateValidValuesAfterDelete() {
int index = mActivatedPosition;
if (mSectionAdapter != null) {
index = index >= mSectionAdapter.getCount() ? mSectionAdapter
.getCount() - 1 : index;
Log.d(TAG, "ReCalculate valid index is: " + index);
if (index == -1) {
// Completely empty list... | private void reCalculateValidValuesAfterDelete() {
int index = mActivatedPosition;
if (mSectionAdapter != null) {
index = index >= mSectionAdapter.getCount() ? mSectionAdapter
.getCount() - 1 : index;
Log.d(TAG, "ReCalculate valid index is: " + index);
if (index == -1) {
// Completely empty list... |
diff --git a/src/nl/astraeus/persistence/SimpleList.java b/src/nl/astraeus/persistence/SimpleList.java
index a9805a8..4c6a628 100644
--- a/src/nl/astraeus/persistence/SimpleList.java
+++ b/src/nl/astraeus/persistence/SimpleList.java
@@ -1,258 +1,260 @@
package nl.astraeus.persistence;
import java.io.Serializable;
... | true | true | public Iterator<M> iterator() {
return new Iterator<M>() {
Iterator<Long> it = list.iterator();
M next = null;
public boolean hasNext() {
while (next == null && it.hasNext()) {
long id = it.next();
next = incoming.... | public Iterator<M> iterator() {
return new Iterator<M>() {
Iterator<Long> it = list.iterator();
M next = null;
public boolean hasNext() {
while (next == null && it.hasNext()) {
long id = it.next();
if (incoming != ... |
diff --git a/trunk/examples/src/main/java/org/apache/commons/vfs2/libcheck/FtpCheck.java b/trunk/examples/src/main/java/org/apache/commons/vfs2/libcheck/FtpCheck.java
index 175688c..bd5d507 100644
--- a/trunk/examples/src/main/java/org/apache/commons/vfs2/libcheck/FtpCheck.java
+++ b/trunk/examples/src/main/java/org/ap... | true | true | public static void main(String args[]) throws Exception
{
if (args.length < 3)
{
throw new IllegalArgumentException("Usage: FtpCheck user pass host dir");
}
String user = args[0];
String pass = args[1];
String host = args[2];
String dir = null;... | public static void main(String args[]) throws Exception
{
if (args.length < 3)
{
throw new IllegalArgumentException("Usage: FtpCheck user pass host dir");
}
String user = args[0];
String pass = args[1];
String host = args[2];
String dir = null;... |
diff --git a/src/de/ub0r/android/websms/connector/sipgate/ConnectorSipgate.java b/src/de/ub0r/android/websms/connector/sipgate/ConnectorSipgate.java
index 222eddb..566916a 100644
--- a/src/de/ub0r/android/websms/connector/sipgate/ConnectorSipgate.java
+++ b/src/de/ub0r/android/websms/connector/sipgate/ConnectorSipgate.... | true | true | protected final void doSend(final Context context, final Intent intent)
throws WebSMSException {
Log.d(TAG, "doSend()");
Object back;
try {
XMLRPCClient client = this.init(context);
Vector<String> remoteUris = new Vector<String>();
ConnectorCommand command = new ConnectorCommand(intent);
for (Str... | protected final void doSend(final Context context, final Intent intent)
throws WebSMSException {
Log.d(TAG, "doSend()");
Object back;
try {
XMLRPCClient client = this.init(context);
Vector<String> remoteUris = new Vector<String>();
ConnectorCommand command = new ConnectorCommand(intent);
for (Str... |
diff --git a/src/main/java/rinde/evo4mas/gendreau06/Gendreau06Evaluator.java b/src/main/java/rinde/evo4mas/gendreau06/Gendreau06Evaluator.java
index b481a54..59e2ae1 100644
--- a/src/main/java/rinde/evo4mas/gendreau06/Gendreau06Evaluator.java
+++ b/src/main/java/rinde/evo4mas/gendreau06/Gendreau06Evaluator.java
@@ -1,1... | true | true | public void setup(final EvolutionState state, final Parameter base) {
super.setup(state, base);
final String testSetDir = state.parameters.getString(base.push(P_TEST_SET_DIR), null);
checkArgument(testSetDir != null && new File(testSetDir).isDirectory(), "A valid test set directory should be specified, "
+ b... | public void setup(final EvolutionState state, final Parameter base) {
super.setup(state, base);
final String testSetDir = state.parameters.getString(base.push(P_TEST_SET_DIR), null);
checkArgument(testSetDir != null && new File(testSetDir).isDirectory(), "A valid test set directory should be specified, "
+ b... |
diff --git a/src/java/org/apache/ftpserver/command/AUTH.java b/src/java/org/apache/ftpserver/command/AUTH.java
index 08f819fc..b88fdb15 100644
--- a/src/java/org/apache/ftpserver/command/AUTH.java
+++ b/src/java/org/apache/ftpserver/command/AUTH.java
@@ -1,93 +1,94 @@
// $Id$
/*
* Copyright 2004 The Apache Software... | true | true | public void execute(RequestHandler handler,
FtpRequestImpl request,
FtpWriter out) throws IOException, FtpException {
// reset state variables
request.resetState();
// argument check
if(!request.hasArgument()) {
... | public void execute(RequestHandler handler,
FtpRequestImpl request,
FtpWriter out) throws IOException, FtpException {
// reset state variables
request.resetState();
// argument check
if(!request.hasArgument()) {
... |
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/startup/SipProtocolHandler.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/startup/SipProtocolHandler.java
index 47c3999fd..475321b1d 100644
--- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/startup/SipProtocolHandler.... | true | true | public void start() throws Exception {
if(logger.isDebugEnabled()) {
logger.debug("Starting a sip protocol handler");
}
final String ipAddress = sipConnector.getIpAddress();
final int port = sipConnector.getPort();
final String signalingTransport = sipConnector.getTransport();
try {
//check... | public void start() throws Exception {
if(logger.isDebugEnabled()) {
logger.debug("Starting a sip protocol handler");
}
Integer portFromConfig = sipConnector.getPort();
String set = System.getProperty("jboss.service.binding.set");
int setIncrememt = 0;
if(set != null) {
int setNumber = set.charAt(... |
diff --git a/src/org/mozilla/javascript/ScriptableObject.java b/src/org/mozilla/javascript/ScriptableObject.java
index da9b29fd..094fbd60 100644
--- a/src/org/mozilla/javascript/ScriptableObject.java
+++ b/src/org/mozilla/javascript/ScriptableObject.java
@@ -1,2414 +1,2414 @@
/* -*- Mode: java; tab-width: 8; indent-ta... | true | true | private Slot accessSlot(String name, int index, int accessType)
{
int indexOrHash = (name != null ? name.hashCode() : index);
if (accessType == SLOT_QUERY ||
accessType == SLOT_MODIFY ||
accessType == SLOT_MODIFY_CONST ||
accessType == SLOT_MODIFY_GETTER_SETT... | private Slot accessSlot(String name, int index, int accessType)
{
int indexOrHash = (name != null ? name.hashCode() : index);
if (accessType == SLOT_QUERY ||
accessType == SLOT_MODIFY ||
accessType == SLOT_MODIFY_CONST ||
accessType == SLOT_MODIFY_GETTER_SETT... |
diff --git a/src/net/sf/freecol/client/gui/panel/MapEditorTransformPanel.java b/src/net/sf/freecol/client/gui/panel/MapEditorTransformPanel.java
index 2a35d0fae..5c85b3a71 100644
--- a/src/net/sf/freecol/client/gui/panel/MapEditorTransformPanel.java
+++ b/src/net/sf/freecol/client/gui/panel/MapEditorTransformPanel.java... | true | true | public void transform(Tile tile) {
if (tile.getType().canHaveRiver()) {
TileItemContainer tic = tile.getTileItemContainer();
if (tic == null) {
tile.setTileItemContainer(new TileItemContainer(tile.getGame(), tile));
}
... | public void transform(Tile tile) {
if (tile.getType().canHaveRiver()) {
TileItemContainer tic = tile.getTileItemContainer();
if (tic == null) {
tic = new TileItemContainer(tile.getGame(), tile);
tile.setTileItemContainer(tic);
... |
diff --git a/src/com/modcrafting/ultrabans/commands/Fine.java b/src/com/modcrafting/ultrabans/commands/Fine.java
index 3342917..5159d0a 100644
--- a/src/com/modcrafting/ultrabans/commands/Fine.java
+++ b/src/com/modcrafting/ultrabans/commands/Fine.java
@@ -1,145 +1,147 @@
package com.modcrafting.ultrabans.commands;
... | false | true | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
YamlConfiguration config = (YamlConfiguration) plugin.getConfig();
boolean auth = false;
Player player = null;
String admin = "server";
String perms = "ultraban.fine";
if (sender instanceof Player){
pla... | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
YamlConfiguration config = (YamlConfiguration) plugin.getConfig();
boolean auth = false;
Player player = null;
String admin = "server";
String perms = "ultraban.fine";
if (sender instanceof Player){
pla... |
diff --git a/src/org/proofpad/Acl2Parser.java b/src/org/proofpad/Acl2Parser.java
index 7300c85..5c0b384 100644
--- a/src/org/proofpad/Acl2Parser.java
+++ b/src/org/proofpad/Acl2Parser.java
@@ -1,684 +1,684 @@
package org.proofpad;
import java.awt.Color;
import java.io.File;
import java.io.FileNotFoundException;
... | true | true | public ParseResult parse(RSyntaxDocument doc, String style /* ignored */) {
DefaultParseResult result = new DefaultParseResult(this);
int lines = doc.getDefaultRootElement().getElementCount();
result.setParsedLines(0, lines);
functions = new HashSet<String>();
macros = new HashSet<String>(Arrays.asList(new S... | public ParseResult parse(RSyntaxDocument doc, String style /* ignored */) {
DefaultParseResult result = new DefaultParseResult(this);
int lines = doc.getDefaultRootElement().getElementCount();
result.setParsedLines(0, lines);
functions = new HashSet<String>();
macros = new HashSet<String>(Arrays.asList(new S... |
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/ui/listeners/SubtitleSpinnerOnItemSelectedListener.java b/serenity-app/src/main/java/us/nineworlds/serenity/ui/listeners/SubtitleSpinnerOnItemSelectedListener.java
index 2e98580c..907f4e81 100644
--- a/serenity-app/src/main/java/us/nineworlds/serenity/ui/li... | false | true | public void onItemSelected(AdapterView<?> parent, View view, int position,
long id) {
Subtitle subtitle = null;
if (firstSelection) {
boolean automaticallySelectSubtitle = preferences.getBoolean(
"automatic_subtitle_selection", false);
if (automaticallySelectSubtitle) {
String languageCode = pref... | public void onItemSelected(AdapterView<?> parent, View view, int position,
long id) {
Subtitle subtitle = null;
if (firstSelection) {
boolean automaticallySelectSubtitle = preferences.getBoolean(
"automatic_subtitle_selection", false);
if (automaticallySelectSubtitle) {
String languageCode = pref... |
diff --git a/pipe-gui/src/test/java/pipe/actions/type/AnnotationActionTest.java b/pipe-gui/src/test/java/pipe/actions/type/AnnotationActionTest.java
index e96a9ee8..ffb722b4 100644
--- a/pipe-gui/src/test/java/pipe/actions/type/AnnotationActionTest.java
+++ b/pipe-gui/src/test/java/pipe/actions/type/AnnotationActionTes... | true | true | public void createsAnnotationOnClick() {
Point point = new Point(10, 20);
MouseEvent mockEvent = mock(MouseEvent.class);
when(mockEvent.getClickCount()).thenReturn(1);
when(mockEvent.getPoint()).thenReturn(point);
action.doAction(mockEvent, mockController);
verify(... | public void createsAnnotationOnClick() {
Point point = new Point(10, 20);
MouseEvent mockEvent = mock(MouseEvent.class);
when(mockEvent.getClickCount()).thenReturn(1);
when(mockEvent.getPoint()).thenReturn(point);
action.doAction(mockEvent, mockController);
verify(... |
diff --git a/merger/src/main/java/com/metamx/druid/merger/worker/executor/ExecutorMain.java b/merger/src/main/java/com/metamx/druid/merger/worker/executor/ExecutorMain.java
index b55060b3f1..f495aad646 100644
--- a/merger/src/main/java/com/metamx/druid/merger/worker/executor/ExecutorMain.java
+++ b/merger/src/main/java... | true | true | public static void main(String[] args) throws Exception
{
LogLevelAdjuster.register();
if (args.length != 3) {
log.info("Usage: ExecutorMain <task.json> <status.json>");
System.exit(2);
}
Iterator<String> arguments = Arrays.asList(args).iterator();
final String taskJsonFile = argum... | public static void main(String[] args) throws Exception
{
LogLevelAdjuster.register();
if (args.length != 2) {
log.info("Usage: ExecutorMain <task.json> <status.json>");
System.exit(2);
}
Iterator<String> arguments = Arrays.asList(args).iterator();
final String taskJsonFile = argum... |
diff --git a/src/com/titanium/ebaybottom/controller/PrivateMessage.java b/src/com/titanium/ebaybottom/controller/PrivateMessage.java
index 0ed94e7..eab987c 100644
--- a/src/com/titanium/ebaybottom/controller/PrivateMessage.java
+++ b/src/com/titanium/ebaybottom/controller/PrivateMessage.java
@@ -1,178 +1,178 @@
packag... | false | true | public static void sendMessagesInQueue(
Pair<String, String> selectedUserAccount) {
UI.printUI("Starting private message sending setup...");
// if (driver == null)
driver = Network.logIn(selectedUserAccount);
for (int i = 0; i < items.size(); i++) {
Item selectedItem = items.get(i);
Pair<String, S... | public static void sendMessagesInQueue(
Pair<String, String> selectedUserAccount) {
UI.printUI("Starting private message sending setup...");
// if (driver == null)
driver = Network.logIn(selectedUserAccount);
for (int i = 0; i < items.size(); i++) {
Item selectedItem = items.get(i);
Pair<String, S... |
diff --git a/tests/src/cgeo/geocaching/files/SimpleDirChooserUITest.java b/tests/src/cgeo/geocaching/files/SimpleDirChooserUITest.java
index 1fe473ca2..b1a464948 100644
--- a/tests/src/cgeo/geocaching/files/SimpleDirChooserUITest.java
+++ b/tests/src/cgeo/geocaching/files/SimpleDirChooserUITest.java
@@ -1,61 +1,62 @@
... | true | true | public void testSingleSelection() throws InterruptedException {
final ArrayList<CheckBox> boxes = solo.getCurrentCheckBoxes();
final int lastIndex = boxes.size() - 1;
assertChecked("Newly opened activity", 0);
solo.scrollToBottom();
solo.clickOnCheckBox(lastIndex);
a... | public void testSingleSelection() throws InterruptedException {
final ArrayList<CheckBox> boxes = solo.getCurrentCheckBoxes();
final int lastIndex = boxes.size() - 1;
assertChecked("Newly opened activity", 0);
solo.scrollToBottom();
solo.clickOnCheckBox(lastIndex);
a... |
diff --git a/common/cpw/mods/fml/common/modloader/ModLoaderConnectionHandler.java b/common/cpw/mods/fml/common/modloader/ModLoaderConnectionHandler.java
index 22df7691..f3eadd90 100644
--- a/common/cpw/mods/fml/common/modloader/ModLoaderConnectionHandler.java
+++ b/common/cpw/mods/fml/common/modloader/ModLoaderConnecti... | true | true | public void connectionClosed(INetworkManager manager)
{
if (!ModLoaderHelper.sidedHelper.clientConnectionClosed(manager, mod))
{
mod.serverDisconnect();
mod.onClientLogout(manager);
}
}
| public void connectionClosed(INetworkManager manager)
{
if (ModLoaderHelper.sidedHelper==null || !ModLoaderHelper.sidedHelper.clientConnectionClosed(manager, mod))
{
mod.serverDisconnect();
mod.onClientLogout(manager);
}
}
|
diff --git a/hazelcast/src/main/java/com/hazelcast/osgi/OSGiScriptEngineManager.java b/hazelcast/src/main/java/com/hazelcast/osgi/OSGiScriptEngineManager.java
index f33cd0a157..37ee653509 100644
--- a/hazelcast/src/main/java/com/hazelcast/osgi/OSGiScriptEngineManager.java
+++ b/hazelcast/src/main/java/com/hazelcast/osg... | true | true | private List<String> findFactoryCandidates(BundleContext context) throws IOException {
Bundle[] bundles = context.getBundles();
List<String> factoryCandidates = new ArrayList<String>();
for (Bundle bundle : bundles) {
if (bundle.getSymbolicName().equals("system.bundle")) {
... | private List<String> findFactoryCandidates(BundleContext context) throws IOException {
Bundle[] bundles = context.getBundles();
List<String> factoryCandidates = new ArrayList<String>();
for (Bundle bundle : bundles) {
if (bundle.getSymbolicName().equals("system.bundle")) {
... |
diff --git a/src/main/java/org/klco/email2html/OutputWriter.java b/src/main/java/org/klco/email2html/OutputWriter.java
index 2fadd5d..ba00b13 100644
--- a/src/main/java/org/klco/email2html/OutputWriter.java
+++ b/src/main/java/org/klco/email2html/OutputWriter.java
@@ -1,455 +1,455 @@
/*
* Copyright (C) 2012 Dan Klco... | true | true | public boolean writeAttachment(EmailMessage containingMessage, Part part)
throws IOException, MessagingException {
log.trace("writeAttachment");
File attachmentFolder;
File attachmentFile;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream in = null;
try {
in = part.getInputStream... | public boolean writeAttachment(EmailMessage containingMessage, Part part)
throws IOException, MessagingException {
log.trace("writeAttachment");
File attachmentFolder;
File attachmentFile;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream in = null;
try {
in = part.getInputStream... |
diff --git a/src/ramirez57/CLIShop/Main.java b/src/ramirez57/CLIShop/Main.java
index 9c3cfbb..52df66a 100644
--- a/src/ramirez57/CLIShop/Main.java
+++ b/src/ramirez57/CLIShop/Main.java
@@ -1,302 +1,304 @@
package ramirez57.CLIShop;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
impor... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
if(cmd.getName().equalsIgnoreCase("cshop")){
if(isplayer(sender)) {
player = (Player)sender;
if(args.length > 0) {
if(args[0].equalsIgnoreCase("help")) {
sender.sendMessage(ChatColor.G... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
if(cmd.getName().equalsIgnoreCase("cshop")){
if(isplayer(sender)) {
player = (Player)sender;
if(args.length > 0) {
if(args[0].equalsIgnoreCase("help")) {
sender.sendMessage(ChatColor.G... |
diff --git a/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/TestVersion.java b/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/TestVersion.java
index f2ef03805a..5e23b7ad1c 100644
--- a/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/TestVersion.java
+++ b/tests/or... | true | true | public void testNewProcessVersionMatchesProduct() throws Exception {
String version = "6.0.1";//TO BE MODIFIED AT EACH RELEASE
NewDiagramCommandHandler command = new NewDiagramCommandHandler();
command.execute(null);
ProcessDiagramEditor editor = (ProcessDiagramEditor)PlatformUI.getWorkbench().getActiveWorkben... | public void testNewProcessVersionMatchesProduct() throws Exception {
String version = "6.1.0";//TO BE MODIFIED AT EACH RELEASE
NewDiagramCommandHandler command = new NewDiagramCommandHandler();
command.execute(null);
ProcessDiagramEditor editor = (ProcessDiagramEditor)PlatformUI.getWorkbench().getActiveWorkben... |
diff --git a/jabox-persistence/src/main/java/org/jabox/environment/Environment.java b/jabox-persistence/src/main/java/org/jabox/environment/Environment.java
index fa7bf434..50dd3d8a 100644
--- a/jabox-persistence/src/main/java/org/jabox/environment/Environment.java
+++ b/jabox-persistence/src/main/java/org/jabox/enviro... | false | true | protected static String getHomeDir() {
String env = System.getenv(JABOX_ENV);
String property = System.getProperty(JABOX_PROPERTY);
if (env != null) {
return env + File.separatorChar;
} else if (property != null) {
return property + File.separatorChar;
}
String homeDir = System.getProperty("user.home... | protected static String getHomeDir() {
String env = System.getenv(JABOX_ENV);
String property = System.getProperty(JABOX_PROPERTY);
if (env != null) {
return new File(env).getAbsolutePath() + File.separator;
} else if (property != null) {
return new File(property).getAbsolutePath() + File.separator;
}
... |
diff --git a/src/gwtbootstrap3/src/main/java/com/svenjacobs/gwtbootstrap3/client/ui/PageHeader.java b/src/gwtbootstrap3/src/main/java/com/svenjacobs/gwtbootstrap3/client/ui/PageHeader.java
index a020d45..690c5dc 100644
--- a/src/gwtbootstrap3/src/main/java/com/svenjacobs/gwtbootstrap3/client/ui/PageHeader.java
+++ b/sr... | true | true | private void render() {
final SafeHtmlBuilder builder = new SafeHtmlBuilder();
builder.appendHtmlConstant("<h1>");
builder.appendEscaped(heading == null ? "" : heading);
if (subText != null && !subText.isEmpty()) {
builder.appendEscaped(" ");
builder.appendH... | private void render() {
final SafeHtmlBuilder builder = new SafeHtmlBuilder();
builder.appendHtmlConstant("<h1>");
builder.appendEscaped(heading == null ? "" : heading);
if (subText != null && !subText.isEmpty()) {
builder.appendEscaped(" ");
builder.appendH... |
diff --git a/crypto/test/src/org/bouncycastle/sasn1/test/ParseTest.java b/crypto/test/src/org/bouncycastle/sasn1/test/ParseTest.java
index d61aa189..d63858ab 100644
--- a/crypto/test/src/org/bouncycastle/sasn1/test/ParseTest.java
+++ b/crypto/test/src/org/bouncycastle/sasn1/test/ParseTest.java
@@ -1,300 +1,300 @@
pack... | true | true | private void parseEnveloped(byte[] data) throws IOException
{
Asn1InputStream aIn = new Asn1InputStream(data);
ContentInfoParser cP = new ContentInfoParser((Asn1Sequence)aIn.readObject());
EnvelopedDataParser eP = new EnvelopedDataParser((Asn1Sequence)cP.getContent(BerT... | private void parseEnveloped(byte[] data) throws IOException
{
Asn1InputStream aIn = new Asn1InputStream(data);
ContentInfoParser cP = new ContentInfoParser((Asn1Sequence)aIn.readObject());
EnvelopedDataParser eP = new EnvelopedDataParser((Asn1Sequence)cP.getContent(BerT... |
diff --git a/src/r/data/internal/TracingView.java b/src/r/data/internal/TracingView.java
index a505db1..614b78c 100644
--- a/src/r/data/internal/TracingView.java
+++ b/src/r/data/internal/TracingView.java
@@ -1,465 +1,465 @@
package r.data.internal;
import java.lang.reflect.*;
import java.util.*;
import r.*;
i... | true | true | private static void dumpView(int depth, ViewTrace trace) {
printed.add(trace);
System.err.println(trace.realView + " size = " + trace.realView.size());
indent(depth);
System.err.print(" allocationSite = ");
printElement(trace.allocationSite, 4);
... | private static void dumpView(int depth, ViewTrace trace) {
printed.add(trace);
System.err.println(trace.realView + " size = " + trace.realView.size());
indent(depth);
System.err.print(" allocationSite = ");
printElement(trace.allocationSite, 4);
... |
diff --git a/FFDot.java b/FFDot.java
index 1c303c6..1099f12 100644
--- a/FFDot.java
+++ b/FFDot.java
@@ -1,41 +1,41 @@
//////////////////////////////////////////////////////////////////////////////////
// Class: FFDot
//
// Purpose: This class encapsulates the functionality of the small particles used
// in our... | true | true | public FFDot(Rectangle boundary, int diameter)
{
this.diameter = diameter;
int height = (int) boundary.getHeight();
int width = (int) boundary.getWidth();
y = rando.nextInt((int)(height - diameter )) ;
x = rando.nextInt((int)(width - diameter )) ;
}
| public FFDot(Rectangle boundary, int diameter)
{
this.diameter = diameter;
int height = (int) boundary.getHeight();
int width = (int) boundary.getWidth();
y = rando.nextInt((int)(height - diameter + 1)) ;
x = rando.nextInt((int)(width - diameter + 1)) ;
}
|
diff --git a/service/src/main/java/de/schildbach/pte/service/ConnectionController.java b/service/src/main/java/de/schildbach/pte/service/ConnectionController.java
index ba43dbf7..18960d90 100644
--- a/service/src/main/java/de/schildbach/pte/service/ConnectionController.java
+++ b/service/src/main/java/de/schildbach/pte... | true | true | public QueryConnectionsResult connection(@RequestParam(value = "fromType", required = false, defaultValue = "ANY") final LocationType fromType,
@RequestParam(value = "from", required = false) final String from,
@RequestParam(value = "fromId", required = false, defaultValue = "0") final int fromId,
@RequestPar... | public QueryConnectionsResult connection(@RequestParam(value = "fromType", required = false, defaultValue = "ANY") final LocationType fromType,
@RequestParam(value = "from", required = false) final String from,
@RequestParam(value = "fromId", required = false, defaultValue = "0") final int fromId,
@RequestPar... |
diff --git a/src/main/java/org/junit/experimental/ParallelComputer.java b/src/main/java/org/junit/experimental/ParallelComputer.java
index 34ed52f9..96271e7d 100644
--- a/src/main/java/org/junit/experimental/ParallelComputer.java
+++ b/src/main/java/org/junit/experimental/ParallelComputer.java
@@ -1,67 +1,67 @@
packag... | true | true | private static Runner parallelize(Runner runner) {
if (runner instanceof ParentRunner) {
((ParentRunner<?>) runner).setScheduler(new RunnerScheduler() {
private final ExecutorService fService = Executors.newCachedThreadPool();
public void schedule(Runnable childS... | private static Runner parallelize(Runner runner) {
if (runner instanceof ParentRunner) {
((ParentRunner<?>) runner).setScheduler(new RunnerScheduler() {
private final ExecutorService fService = Executors.newCachedThreadPool();
public void schedule(Runnable childS... |
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdSelector.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdSelector.java
index ae499e9d0..bbf17fa8c 100644
--- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdSelector.java
+++ b/sdkmana... | true | true | public AvdSelector(Composite parent,
String osSdkPath,
AvdManager manager,
IAvdFilter filter,
DisplayMode displayMode,
ISdkLog sdkLog) {
mOsSdkPath = osSdkPath;
mAvdManager = manager;
mTargetFilter = filter;
mDisplayMode = d... | public AvdSelector(Composite parent,
String osSdkPath,
AvdManager manager,
IAvdFilter filter,
DisplayMode displayMode,
ISdkLog sdkLog) {
mOsSdkPath = osSdkPath;
mAvdManager = manager;
mTargetFilter = filter;
mDisplayMode = d... |
diff --git a/grid-incubation/incubator/projects/sdkQuery42/src/java/processor/org/cagrid/data/sdkquery42/processor/SDK42QueryProcessor.java b/grid-incubation/incubator/projects/sdkQuery42/src/java/processor/org/cagrid/data/sdkquery42/processor/SDK42QueryProcessor.java
index 0e22bca6..13bad17d 100644
--- a/grid-incubati... | true | true | public CQLQueryResults processQuery(CQLQuery cqlQuery) throws MalformedQueryException, QueryProcessingException {
try {
cqlQuery = CQLAttributeDefaultPredicateUtil.checkDefaultPredicates(cqlQuery);
} catch (Exception ex) {
throw new QueryProcessingException(
"... | public CQLQueryResults processQuery(CQLQuery cqlQuery) throws MalformedQueryException, QueryProcessingException {
try {
cqlQuery = CQLAttributeDefaultPredicateUtil.checkDefaultPredicates(cqlQuery);
} catch (Exception ex) {
throw new QueryProcessingException(
"... |
diff --git a/src/test/java/org/lastbamboo/common/stun/client/StunClientTest.java b/src/test/java/org/lastbamboo/common/stun/client/StunClientTest.java
index 6d55305..c18a82d 100644
--- a/src/test/java/org/lastbamboo/common/stun/client/StunClientTest.java
+++ b/src/test/java/org/lastbamboo/common/stun/client/StunClientT... | false | true | public void testDifferentServers() throws Exception {
final int port = StunConstants.STUN_PORT;
// See http://www.voip-info.org/wiki/view/STUN
final InetSocketAddress[] servers = {
new InetSocketAddress("stun.l.google.com", 19302),
//new InetSocketAddress("st... | public void testDifferentServers() throws Exception {
final int port = StunConstants.STUN_PORT;
// See http://www.voip-info.org/wiki/view/STUN
final InetSocketAddress[] servers = {
new InetSocketAddress("stun.l.google.com", 19302),
//new InetSocketAddress("st... |
diff --git a/CS5430/src/database/SocialNetworkDatabasePosts.java b/CS5430/src/database/SocialNetworkDatabasePosts.java
index 11153d9..54c1bf2 100644
--- a/CS5430/src/database/SocialNetworkDatabasePosts.java
+++ b/CS5430/src/database/SocialNetworkDatabasePosts.java
@@ -1,420 +1,420 @@
package database;
import java.s... | true | true | public static String createPost(Connection conn, String username, String content,
String boardName, String regionName) {
PreparedStatement createPstmt = null;
String createPost = "";
/*Have to retrieve the pid that is generated for the post*/
PreparedStatement getPstmt = null;
String getPost = "";
R... | public static String createPost(Connection conn, String username, String content,
String boardName, String regionName) {
PreparedStatement createPstmt = null;
String createPost = "";
/*Have to retrieve the pid that is generated for the post*/
PreparedStatement getPstmt = null;
String getPost = "";
R... |
diff --git a/Allelon/src/main/java/com/ciplogic/allelon/songname/CurrentSongNameProvider.java b/Allelon/src/main/java/com/ciplogic/allelon/songname/CurrentSongNameProvider.java
index bcb6f36..bc41bef 100644
--- a/Allelon/src/main/java/com/ciplogic/allelon/songname/CurrentSongNameProvider.java
+++ b/Allelon/src/main/jav... | true | true | public void setUrl(String url) {
currentTitle = "..."; // when the URL changes, we need to reload the title.
if (currentSongFetcherThread != null) {
currentSongFetcherThread.stop();
currentSongFetcherThread = null;
}
if (url != null) {
String tit... | public void setUrl(String url) {
currentTitle = url == null? "" : "..."; // when the URL changes, we need to reload the title.
if (currentSongFetcherThread != null) {
currentSongFetcherThread.stop();
currentSongFetcherThread = null;
}
if (url != null) {
... |
diff --git a/src/main/java/net/spy/memcached/tapmessage/TapFlag.java b/src/main/java/net/spy/memcached/tapmessage/TapFlag.java
index 1fe786d..867f7d4 100644
--- a/src/main/java/net/spy/memcached/tapmessage/TapFlag.java
+++ b/src/main/java/net/spy/memcached/tapmessage/TapFlag.java
@@ -1,71 +1,71 @@
package net.spy.memc... | false | true | boolean hasFlag(int f) {
if ((f & (int) flag) == 1) {
return false;
}
return true;
}
| boolean hasFlag(int f) {
if ((f & (int) flag) > 0) {
return true;
}
return false;
}
|
diff --git a/src/org/jruby/runtime/CallAdapter.java b/src/org/jruby/runtime/CallAdapter.java
index 20c736281..9e6cefd6f 100644
--- a/src/org/jruby/runtime/CallAdapter.java
+++ b/src/org/jruby/runtime/CallAdapter.java
@@ -1,190 +1,191 @@
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The... | false | true | public IRubyObject call(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) {
while (true) {
try {
RubyClass selfType = self.getMetaClass();
DynamicMethod cMethod = this.cachedMethod;
RubyModule cType ... | public IRubyObject call(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) {
while (true) {
try {
RubyClass selfType = self.getMetaClass();
byte[] cTable = this.cachedTable;
DynamicMethod cMethod = th... |
diff --git a/databus-audit/src/main/java/com/inmobi/databus/audit/AuditStats.java b/databus-audit/src/main/java/com/inmobi/databus/audit/AuditStats.java
index e1bb799f..8e01724b 100644
--- a/databus-audit/src/main/java/com/inmobi/databus/audit/AuditStats.java
+++ b/databus-audit/src/main/java/com/inmobi/databus/audit/A... | true | true | private void loadConfigFiles(String databusConfFolder) {
File folder = new File(databusConfFolder);
File[] xmlFiles = folder.listFiles(new FileFilter() {
@Override
public boolean accept(File file) {
if (file.getName().toLowerCase().endsWith(".xml")) {
return true;
}
... | private void loadConfigFiles(String databusConfFolder) {
File folder = new File(databusConfFolder);
File[] xmlFiles = folder.listFiles(new FileFilter() {
@Override
public boolean accept(File file) {
if (file.getName().toLowerCase().endsWith(".xml")) {
return true;
}
... |
diff --git a/Fanorona.java b/Fanorona.java
index 8455d6b..5f10473 100644
--- a/Fanorona.java
+++ b/Fanorona.java
@@ -1,506 +1,506 @@
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
import java.util.Timer;
import javax.sound.midi.*;
import javax.swing.JOptionPane;
impo... | true | true | public Fanorona() {//{{{
setLayout(null);
askServerClientInfo();
ObjectOutputStream socketOut = null;
ObjectInputStream socketIn = null;
if(networkSetting == "Server") {
getServerConfig();
askGridSize();
askTimePerTurn();
Socket acceptSocket = null;
try {
acceptSocket = setupServerSockets... | public Fanorona() {//{{{
setLayout(null);
askServerClientInfo();
ObjectOutputStream socketOut = null;
ObjectInputStream socketIn = null;
if(networkSetting == "Server") {
getServerConfig();
askGridSize();
askTimePerTurn();
Socket acceptSocket = null;
try {
acceptSocket = setupServerSockets... |
diff --git a/src/org/flowvisor/message/actions/FVActionStripVirtualLan.java b/src/org/flowvisor/message/actions/FVActionStripVirtualLan.java
index f6917cd..d799f04 100644
--- a/src/org/flowvisor/message/actions/FVActionStripVirtualLan.java
+++ b/src/org/flowvisor/message/actions/FVActionStripVirtualLan.java
@@ -1,50 +1... | true | true | public void slice(List<OFAction> approvedActions, OFMatch match,
FVClassifier fvClassifier, FVSlicer fvSlicer)
throws ActionDisallowedException {
FVMatch neoMatch = new FVMatch(match);
match.setDataLayerVirtualLan(FlowSpaceRuleStore.ANY_VLAN_ID);
List<FlowEntry> flowEntries = fvClassifier.getSwitchFlowMap(... | public void slice(List<OFAction> approvedActions, OFMatch match,
FVClassifier fvClassifier, FVSlicer fvSlicer)
throws ActionDisallowedException {
FVMatch neoMatch = new FVMatch(match);
match.setDataLayerVirtualLan(FlowSpaceRuleStore.ANY_VLAN_ID);
List<FlowEntry> flowEntries = fvClassifier.getSwitchFlowMap(... |
diff --git a/src/main/java/org/jboss/as/weld/WeldSubsystemAdd.java b/src/main/java/org/jboss/as/weld/WeldSubsystemAdd.java
index 66a3c74..67aa3f7 100644
--- a/src/main/java/org/jboss/as/weld/WeldSubsystemAdd.java
+++ b/src/main/java/org/jboss/as/weld/WeldSubsystemAdd.java
@@ -1,99 +1,99 @@
/*
* JBoss, Home of Profes... | false | true | public OperationResult execute(final OperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
context.getSubModel().setEmptyObject();
if (context instanceof BootOperationContext) {
final BootOperationContext bootContext = (BootOperationContext) context;... | public OperationResult execute(final OperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
context.getSubModel().setEmptyObject();
if (context instanceof BootOperationContext) {
final BootOperationContext bootContext = (BootOperationContext) context;... |
diff --git a/src/com/bergerkiller/bukkit/nolagg/NoLaggUtil.java b/src/com/bergerkiller/bukkit/nolagg/NoLaggUtil.java
index a7206c0..d63e3ad 100644
--- a/src/com/bergerkiller/bukkit/nolagg/NoLaggUtil.java
+++ b/src/com/bergerkiller/bukkit/nolagg/NoLaggUtil.java
@@ -1,84 +1,99 @@
package com.bergerkiller.bukkit.nolagg;
... | false | true | public static Plugin[] findPlugins(List<StackTraceElement> stackTrace) {
Plugin[] plugins = Bukkit.getServer().getPluginManager().getPlugins();
String[] packages = new String[plugins.length];
int i;
for (i = 0; i < plugins.length; i++) {
packages[i] = plugins[i].getDescription().getMain().toLowerCase();
... | public static Plugin[] findPlugins(List<StackTraceElement> stackTrace) {
Plugin[] plugins = Bukkit.getServer().getPluginManager().getPlugins();
String[] packages = new String[plugins.length];
// Generate package paths
int i;
for (i = 0; i < plugins.length; i++) {
packages[i] = plugins[i].getDescription().... |
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/employee/panes/EmployeePane.java b/OpERP/src/main/java/devopsdistilled/operp/client/employee/panes/EmployeePane.java
index 5d121b6d..fd0626f1 100644
--- a/OpERP/src/main/java/devopsdistilled/operp/client/employee/panes/EmployeePane.java
+++ b/OpERP/src/main/... | true | true | public EmployeePane() {
pane = new JPanel();
pane.setLayout(new MigLayout("", "[][grow]", "[][][][][][][][]"));
lblEmployeeId = new JLabel("Employee ID");
pane.add(lblEmployeeId, "cell 0 0,alignx trailing");
employeeIdField = new JTextField();
employeeIdField.setEditable(false);
pane.add(employeeIdFiel... | public EmployeePane() {
pane = new JPanel();
pane.setLayout(new MigLayout("", "[][grow]", "[][][][][][][][]"));
lblEmployeeId = new JLabel("Employee ID");
pane.add(lblEmployeeId, "cell 0 0,alignx trailing");
employeeIdField = new JTextField();
employeeIdField.setEditable(false);
pane.add(employeeIdFiel... |
diff --git a/src/main/java/com/santoris/bsimple/axa/dao/bank/AxaCustomerBankDAO.java b/src/main/java/com/santoris/bsimple/axa/dao/bank/AxaCustomerBankDAO.java
index e378205..b61a49c 100644
--- a/src/main/java/com/santoris/bsimple/axa/dao/bank/AxaCustomerBankDAO.java
+++ b/src/main/java/com/santoris/bsimple/axa/dao/bank... | false | true | public AxaCustomer getCustomerById(Long customerId) {
AxaCustomer customer = restTemplate.getForObject(baseUrl + "/customers/{customerId}?client_id={clientId}&access_token={accessToken}",
AxaCustomer.class,
customerId,clientId,accessToken);
List<AxaAccount> accounts = accountDAO.getAllAccountsByCustomer... | public AxaCustomer getCustomerById(Long customerId) {
AxaCustomer customer = restTemplate.getForObject(baseUrl + "/customers/{customerId}?client_id={clientId}&access_token={accessToken}&customer_id={customerId}",
AxaCustomer.class,
customerId,clientId,accessToken,customerId);
List<AxaAccount> accounts =... |
diff --git a/src/no/ntnu/stud/flatcraft/music/MusicPlayer.java b/src/no/ntnu/stud/flatcraft/music/MusicPlayer.java
index faaa298..2413ea6 100644
--- a/src/no/ntnu/stud/flatcraft/music/MusicPlayer.java
+++ b/src/no/ntnu/stud/flatcraft/music/MusicPlayer.java
@@ -1,121 +1,121 @@
package no.ntnu.stud.flatcraft.music;
i... | true | true | public void update(int delta) {
if (enabled) {
if (musicPlaying == null) {
musicDelay -= delta;
if (musicDelay <= 0) {
musicPlaying = music.get((int)(Math.random()*music.size()));
musicPlaying.playAsMusic(1.0f, 1.0f, false);
soundStore.setSoundVolume(0.75f);
}
} else if (!soundS... | public void update(int delta) {
if (enabled) {
if (musicPlaying == null) {
musicDelay -= delta;
if (musicDelay <= 0) {
musicPlaying = music.get((int)(Math.random()*music.size()));
musicPlaying.playAsMusic(1.0f, 1.0f, false);
soundStore.setSoundVolume(0.75f);
}
} else if (!soundS... |
diff --git a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/impl/ComponentInstanceImpl.java b/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/impl/ComponentInstanceImpl.java
index 74477e0c..fbd3b02a 100644
--- a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/im... | false | true | public void dispose() {
if (scp == null) {
// already disposed!
return;
}
if (Activator.DEBUG) {
Activator.log.debug("ComponentInstanceImpl.dispose(): disposing instance of component " + scp.name, null); //$NON-NLS-1$
}
if (!scp.isComponentFactory() && scp.serviceComponent.factory != null) {
// t... | public void dispose() {
if (scp == null) {
// already disposed!
return;
}
if (Activator.DEBUG) {
Activator.log.debug("ComponentInstanceImpl.dispose(): disposing instance of component " + scp.name, null); //$NON-NLS-1$
}
if (!scp.isComponentFactory() && scp.serviceComponent.factory != null) {
// t... |
diff --git a/modules/org.restlet/src/org/restlet/engine/http/adapter/ServerAdapter.java b/modules/org.restlet/src/org/restlet/engine/http/adapter/ServerAdapter.java
index 253c902fa..be05215a2 100644
--- a/modules/org.restlet/src/org/restlet/engine/http/adapter/ServerAdapter.java
+++ b/modules/org.restlet/src/org/restle... | false | true | public void commit(HttpResponse response) {
try {
if ((response.getRequest().getMethod() != null)
&& response.getRequest().getMethod().equals(Method.HEAD)) {
addEntityHeaders(response);
response.setEntity(null);
} else if (Method.GE... | public void commit(HttpResponse response) {
try {
if ((response.getRequest().getMethod() != null)
&& response.getRequest().getMethod().equals(Method.HEAD)) {
addEntityHeaders(response);
response.setEntity(null);
} else if (Method.GE... |
diff --git a/src/org/jdominion/effects/darkAges/VagrantEffect.java b/src/org/jdominion/effects/darkAges/VagrantEffect.java
index ef7a14a..89609fa 100644
--- a/src/org/jdominion/effects/darkAges/VagrantEffect.java
+++ b/src/org/jdominion/effects/darkAges/VagrantEffect.java
@@ -1,24 +1,27 @@
package org.jdominion.effect... | true | true | public boolean execute(Player activePlayer, Turn currentTurn, Supply supply) {
Card revealedCard = activePlayer.revealCard();
if (revealedCard.isOfType(Type.CURSE) || revealedCard.isOfType(Type.RUINS) || revealedCard.isOfType(Type.SHELTER)
|| revealedCard.isOfType(Type.VICTORY)) {
activePlayer.getHand().add... | public boolean execute(Player activePlayer, Turn currentTurn, Supply supply) {
Card revealedCard = activePlayer.revealCard();
if (revealedCard == null) {
return false;
}
if (revealedCard.isOfType(Type.CURSE) || revealedCard.isOfType(Type.RUINS) || revealedCard.isOfType(Type.SHELTER)
|| revealedCard.isOf... |
diff --git a/src/swing/org/pathvisio/gex/GexTxtImporter.java b/src/swing/org/pathvisio/gex/GexTxtImporter.java
index 3e367835..27901ccd 100644
--- a/src/swing/org/pathvisio/gex/GexTxtImporter.java
+++ b/src/swing/org/pathvisio/gex/GexTxtImporter.java
@@ -1,313 +1,313 @@
// PathVisio,
// a tool for data visualization ... | true | true | public static void importFromTxt(ImportInformation info, ProgressKeeper p, IDMapperRdb currentGdb, GexManager gexManager)
{
SimpleGex result = null;
int importWork = 0;
int finalizeWork = 0;
if (p != null)
{
importWork = (int)(p.getTotalWork() * 0.8);
finalizeWork = (int)(p.getTotalWork() * 0.2);
}
... | public static void importFromTxt(ImportInformation info, ProgressKeeper p, IDMapperRdb currentGdb, GexManager gexManager)
{
SimpleGex result = null;
int importWork = 0;
int finalizeWork = 0;
if (p != null)
{
importWork = (int)(p.getTotalWork() * 0.8);
finalizeWork = (int)(p.getTotalWork() * 0.2);
}
... |
diff --git a/src/edu/first/util/Strings.java b/src/edu/first/util/Strings.java
index dab69a2..58f1070 100644
--- a/src/edu/first/util/Strings.java
+++ b/src/edu/first/util/Strings.java
@@ -1,627 +1,630 @@
package edu.first.util;
import edu.first.util.list.ArrayList;
/**
* A set of utility methods to manipulate... | true | true | public static String[] split(String string, String split) {
if (string == null) {
return null;
}
if (split == null) {
throw new NullPointerException();
}
if (string.indexOf(split) < 0) {
return new String[]{string};
}
ArrayL... | public static String[] split(String string, String split) {
if (string == null) {
return null;
}
if (split == null) {
throw new NullPointerException();
}
if (isEmpty(string)) {
return new String[0];
}
if (string.indexOf(spli... |
diff --git a/search-impl/impl/src/java/org/sakaiproject/search/component/service/impl/SearchIndexBuilderImpl.java b/search-impl/impl/src/java/org/sakaiproject/search/component/service/impl/SearchIndexBuilderImpl.java
index f12223ea..5db14eff 100644
--- a/search-impl/impl/src/java/org/sakaiproject/search/component/servi... | true | true | public void addResource(Notification notification, Event event)
{
log.debug("Add resource " + notification + "::" + event);
String resourceName = event.getResource();
if (resourceName == null)
{
// default if null
resourceName = "";
}
if (resourceName.length() > 255)
{
log
.warn("Entity Re... | public void addResource(Notification notification, Event event)
{
log.debug("Add resource " + notification + "::" + event);
String resourceName = event.getResource();
if (resourceName == null)
{
// default if null
resourceName = "";
}
if (resourceName.length() > 255)
{
log
.warn("Entity Re... |
diff --git a/trunk/CruxModulesCompiler/src/br/com/sysmap/crux/tools/compile/SchemaGeneratorModulesTask.java b/trunk/CruxModulesCompiler/src/br/com/sysmap/crux/tools/compile/SchemaGeneratorModulesTask.java
index fc594f8be..7a94cec2b 100644
--- a/trunk/CruxModulesCompiler/src/br/com/sysmap/crux/tools/compile/SchemaGenera... | false | true | protected void generateSchemas(File baseDir, String outputDir) throws Exception
{
CruxModuleBridge.getInstance().registerCurrentModule(moduleName);
super.generateSchemas(baseDir, outputDir);
}
| protected void generateSchemas(File baseDir, File outputDir, File webDir) throws Exception
{
CruxModuleBridge.getInstance().registerCurrentModule(moduleName);
super.generateSchemas(baseDir, outputDir, webDir);
}
|
diff --git a/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/html/DojoLink.java b/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/html/DojoLink.java
index 256d5eb78..bcf306b9b 100644
--- a/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/html/DojoLink.java
+++ b/wicket-contrib-dojo... | true | true | public DojoLink(final String id, final IModel model)
{
super(id, model);
add(new AbstractDefaultDojoBehavior()
{
private static final long serialVersionUID = 1L;
protected void onComponentTag(ComponentTag tag)
{
// return false to end event processing in case the DojoLink is bound to a <button> c... | public DojoLink(final String id, final IModel model)
{
super(id, model);
add(new AbstractDefaultDojoBehavior()
{
private static final long serialVersionUID = 1L;
protected void onComponentTag(ComponentTag tag)
{
// return false to end event processing in case the DojoLink is bound to a <button> c... |
diff --git a/src/main/java/com/minesnap/dcpu/assembler/AssemblerLauncher.java b/src/main/java/com/minesnap/dcpu/assembler/AssemblerLauncher.java
index af04fe0..51291f1 100644
--- a/src/main/java/com/minesnap/dcpu/assembler/AssemblerLauncher.java
+++ b/src/main/java/com/minesnap/dcpu/assembler/AssemblerLauncher.java
@@ ... | false | true | public static void main(String[] args) {
boolean endianDecided = false;
boolean littleEndian = true;
boolean optimize = true;
List<String> argsList = new ArrayList<String>(2);
Map<String, Integer> newNBOpcodes = new HashMap<String, Integer>();
for(int i=0; i<args.len... | public static void main(String[] args) {
boolean endianDecided = false;
boolean littleEndian = true;
boolean optimize = true;
List<String> argsList = new ArrayList<String>(2);
Map<String, Integer> newNBOpcodes = new HashMap<String, Integer>();
for(int i=0; i<args.len... |
diff --git a/src/main/java/org/psjava/algo/math/numbertheory/PrimalityTesterByPreparedPrimeDivision.java b/src/main/java/org/psjava/algo/math/numbertheory/PrimalityTesterByPreparedPrimeDivision.java
index b0f35ab..d2512cd 100644
--- a/src/main/java/org/psjava/algo/math/numbertheory/PrimalityTesterByPreparedPrimeDivisio... | false | true | public static PrimalityTester getInstance(long max, PrimeNumberSieve sieve) {
final Array<Integer> primes = sieve.calcList((int) Math.sqrt(max) + 1);
return new PrimalityTester() {
@Override
public boolean isPrime(long longv) {
int v = (int) longv;
if (v <= 1)
return false;
for (int p : pri... | public static PrimalityTester getInstance(long max, PrimeNumberSieve sieve) {
final Array<Integer> primes = sieve.calcList((int) Math.sqrt(max) + 1);
return new PrimalityTester() {
@Override
public boolean isPrime(long v) {
if (v <= 1)
return false;
for (long p : primes) {
if (p * p <= v) ... |
diff --git a/src/main/java/hudson/plugins/perforce/PerforceSCM.java b/src/main/java/hudson/plugins/perforce/PerforceSCM.java
index d8cf54e..0a39f00 100644
--- a/src/main/java/hudson/plugins/perforce/PerforceSCM.java
+++ b/src/main/java/hudson/plugins/perforce/PerforceSCM.java
@@ -1,487 +1,486 @@
package hudson.plugins... | true | true | public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException {
try {
listener.getLogger().println("Performing sync with Perforce for: " + projectPath);
// Check to make sure our client is mapped t... | public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException {
try {
listener.getLogger().println("Performing sync with Perforce for: " + projectPath);
// Check to make sure our client is mapped t... |
diff --git a/src/main/java/no/steria/quizzical/SubmitServlet.java b/src/main/java/no/steria/quizzical/SubmitServlet.java
index ac0b9ba..12f659b 100644
--- a/src/main/java/no/steria/quizzical/SubmitServlet.java
+++ b/src/main/java/no/steria/quizzical/SubmitServlet.java
@@ -1,66 +1,67 @@
package no.steria.quizzical;
... | false | true | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
ObjectMapper mapper = new ObjectMapper();
JsonNode rootNode = mapper.readTree(req.getReader().readLine());
int quizId=0;
String name="", email="";
HashMap<String,Integer> answersToDB = new Ha... | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
ObjectMapper mapper = new ObjectMapper();
JsonNode rootNode = mapper.readTree(req.getReader().readLine());
System.out.println();
int quizId=0;
String name="", email="";
HashMap<String,Integ... |
diff --git a/src/com/android/apps/tag/MyTagList.java b/src/com/android/apps/tag/MyTagList.java
index e4541c5..9186389 100644
--- a/src/com/android/apps/tag/MyTagList.java
+++ b/src/com/android/apps/tag/MyTagList.java
@@ -1,661 +1,661 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under t... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_tag_activity);
if (savedInstanceState != null) {
mTagIdInEdit = savedInstanceState.getLong(BUNDLE_KEY_TAG_ID_IN_EDIT, -1);
}
// Set up the check box... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_tag_activity);
if (savedInstanceState != null) {
mTagIdInEdit = savedInstanceState.getLong(BUNDLE_KEY_TAG_ID_IN_EDIT, -1);
}
// Set up the check box... |
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java
index 099a2cb30..6e08e1de5 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java
+++ b/s... | true | true | private void checkThrowsTags(List aTags, List aThrows)
{
// Loop over the tags, checking to see they exist in the throws.
final Set foundThrows = new HashSet(); //used for performance only
final ListIterator tagIt = aTags.listIterator();
while (tagIt.hasNext()) {
fina... | private void checkThrowsTags(List aTags, List aThrows)
{
// Loop over the tags, checking to see they exist in the throws.
final Set foundThrows = new HashSet(); //used for performance only
final ListIterator tagIt = aTags.listIterator();
while (tagIt.hasNext()) {
fina... |
diff --git a/amibe/src/org/jcae/mesh/bora/ds/BCADGraphCell.java b/amibe/src/org/jcae/mesh/bora/ds/BCADGraphCell.java
index 3f82127b..cb32f6dd 100644
--- a/amibe/src/org/jcae/mesh/bora/ds/BCADGraphCell.java
+++ b/amibe/src/org/jcae/mesh/bora/ds/BCADGraphCell.java
@@ -1,441 +1,441 @@
/* jCAE stand for Java Computer Aide... | true | true | protected void addImplicitConstraints(CADShapeEnum cse, boolean recursive)
{
for (BDiscretization discr : discrete)
{
Iterator<BCADGraphCell> itc;
if (recursive)
itc = shapesExplorer(cse);
else
itc = shapesIterator();
while (itc.hasNext())
{
BCADGraphCell child = itc.next();
if (!r... | protected void addImplicitConstraints(CADShapeEnum cse, boolean recursive)
{
for (BDiscretization discr : discrete)
{
Iterator<BCADGraphCell> itc;
if (recursive)
itc = shapesExplorer(cse);
else
itc = shapesIterator();
while (itc.hasNext())
{
BCADGraphCell child = itc.next();
if (!r... |
diff --git a/src/main/java/org/mozilla/gecko/sync/syncadapter/SyncAdapter.java b/src/main/java/org/mozilla/gecko/sync/syncadapter/SyncAdapter.java
index 91f8d8cab..4107a2615 100644
--- a/src/main/java/org/mozilla/gecko/sync/syncadapter/SyncAdapter.java
+++ b/src/main/java/org/mozilla/gecko/sync/syncadapter/SyncAdapter.... | true | true | public void onPerformSync(final Account account,
final Bundle extras,
final String authority,
final ContentProviderClient provider,
final SyncResult syncResult) {
Log.i(LOG_TAG, "Got onPerformSync:");
... | public void onPerformSync(final Account account,
final Bundle extras,
final String authority,
final ContentProviderClient provider,
final SyncResult syncResult) {
Log.i(LOG_TAG, "Got onPerformSync:");
... |
diff --git a/src/powercrystals/minefactoryreloaded/farmables/plantables/PlantableStandard.java b/src/powercrystals/minefactoryreloaded/farmables/plantables/PlantableStandard.java
index a4522970..2199cd7e 100644
--- a/src/powercrystals/minefactoryreloaded/farmables/plantables/PlantableStandard.java
+++ b/src/powercrysta... | true | true | public boolean canBePlantedHere(World world, int x, int y, int z, ItemStack stack)
{
int groundId = world.getBlockId(x, y - 1, z);
if(!world.isAirBlock(x, y, z))
{
return false;
}
return
Block.blocksList[_plantedBlockId].canPlaceBlockAt(world, x, y, z) ||
(Block.blocksList[_plantedBlockId] insta... | public boolean canBePlantedHere(World world, int x, int y, int z, ItemStack stack)
{
int groundId = world.getBlockId(x, y - 1, z);
if(!world.isAirBlock(x, y, z))
{
return false;
}
return
Block.blocksList[_plantedBlockId].canPlaceBlockAt(world, x, y, z) ||
(Block.blocksList[_plantedBlockId] insta... |
diff --git a/src/main/java/org/mobicents/tools/http/balancer/HttpRequestHandler.java b/src/main/java/org/mobicents/tools/http/balancer/HttpRequestHandler.java
index 01a8e85..83a34a5 100644
--- a/src/main/java/org/mobicents/tools/http/balancer/HttpRequestHandler.java
+++ b/src/main/java/org/mobicents/tools/http/balancer... | true | true | public void messageReceived(ChannelHandlerContext ctx, final MessageEvent e) throws Exception {
if (!readingChunks) {
request = (HttpRequest) e.getMessage();
if(logger.isLoggable(Level.FINE)) {
logger.fine("Request URI accessed: " + request.getUri() + " channel " + e.ge... | public void messageReceived(ChannelHandlerContext ctx, final MessageEvent e) throws Exception {
if (!readingChunks) {
request = (HttpRequest) e.getMessage();
if(logger.isLoggable(Level.FINE)) {
logger.fine("Request URI accessed: " + request.getUri() + " channel " + e.ge... |
diff --git a/src/main/java/com/ledstyles/jtpm2/TPM2Protocol.java b/src/main/java/com/ledstyles/jtpm2/TPM2Protocol.java
index c259408..8a69428 100644
--- a/src/main/java/com/ledstyles/jtpm2/TPM2Protocol.java
+++ b/src/main/java/com/ledstyles/jtpm2/TPM2Protocol.java
@@ -1,84 +1,85 @@
/*
* Copyright (C) 2011 McGyver, m... | true | true | private static byte[] do_protocol(int[] frame) {
byte[] output_buffer = new byte[frame.length * 3 + 5];
int frame_size = frame.length;
byte frame_size_byte_high;
byte frame_size_byte_low;
int index;
index = 0;
//Start-Byte
output_buffer[index] = ST... | private static byte[] do_protocol(int[] frame) {
byte[] output_buffer = new byte[frame.length * 3 + 5];
//3 colors per pixel
int frame_size = frame.length * 3;
byte frame_size_byte_high;
byte frame_size_byte_low;
int index;
index = 0;
//Start-Byte
... |
diff --git a/SpagoBIQbeEngine/src/it/eng/spagobi/engines/qbe/services/core/catalogue/SetCatalogueAction.java b/SpagoBIQbeEngine/src/it/eng/spagobi/engines/qbe/services/core/catalogue/SetCatalogueAction.java
index 04825fd0a..b1aab7380 100644
--- a/SpagoBIQbeEngine/src/it/eng/spagobi/engines/qbe/services/core/catalogue/S... | false | true | public void service(SourceBean request, SourceBean response) {
Monitor totalTimeMonitor = null;
Monitor errorHitsMonitor = null;
String jsonEncodedCatalogue = null;
JSONArray queries;
JSONObject queryJSON;
Query query;
QueryGraph oldQueryGraph = null;
String roleSelection = null;
boolean i... | public void service(SourceBean request, SourceBean response) {
Monitor totalTimeMonitor = null;
Monitor errorHitsMonitor = null;
String jsonEncodedCatalogue = null;
JSONArray queries;
JSONObject queryJSON;
Query query;
QueryGraph oldQueryGraph = null;
String roleSelectionFromTheSavedQuery = ... |
diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/step/TaskletStep.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/step/TaskletStep.java
index 8a618797c..5339b1ee7 100644
--- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/st... | true | true | public void execute(StepExecution stepExecution) throws JobInterruptedException, BatchCriticalException {
stepExecution.setStartTime(new Date());
updateStatus(stepExecution, BatchStatus.STARTED);
ExitStatus exitStatus = ExitStatus.FAILED;
Exception fatalException = null;
try {
listener.open(stepExecutio... | public void execute(StepExecution stepExecution) throws JobInterruptedException, BatchCriticalException {
stepExecution.setStartTime(new Date());
updateStatus(stepExecution, BatchStatus.STARTED);
ExitStatus exitStatus = ExitStatus.FAILED;
Exception fatalException = null;
try {
listener.open(stepExecutio... |
diff --git a/beanstalk-maven-plugin-it/src/test/java/br/com/ingenieux/beanstalker/it/BaseBeanstalkIntegrationTest.java b/beanstalk-maven-plugin-it/src/test/java/br/com/ingenieux/beanstalker/it/BaseBeanstalkIntegrationTest.java
index 5a25a4a..a02ff07 100644
--- a/beanstalk-maven-plugin-it/src/test/java/br/com/ingenieux/... | true | true | public void setUpProject() throws Exception {
Guice.createInjector(new CoreModule()).injectMembers(this);
invoker = new DefaultInvoker();
projectDir = new File(r("${user.dir}/target/${beanstalk.project.name}"));
if (!projectDir.exists()) {
File baseDir = projectDir.getParentFile();
bas... | public void setUpProject() throws Exception {
Guice.createInjector(new CoreModule()).injectMembers(this);
invoker = new DefaultInvoker();
projectDir = new File(r("${user.dir}/target/${beanstalk.project.name}"));
if (!projectDir.exists()) {
File baseDir = projectDir.getParentFile();
bas... |
diff --git a/core/src/test/java/io/undertow/test/handlers/ChunkedRequestTransferCodingTestCase.java b/core/src/test/java/io/undertow/test/handlers/ChunkedRequestTransferCodingTestCase.java
index b6703bc46..892367a8f 100644
--- a/core/src/test/java/io/undertow/test/handlers/ChunkedRequestTransferCodingTestCase.java
+++ ... | true | true | public void testChunkedRequest() throws IOException {
connection = null;
HttpPost post = new HttpPost(DefaultServer.getDefaultServerURL() + "/path");
TestHttpClient client = new TestHttpClient();
try {
generateMessage(1);
post.setEntity(new StringEntity(messag... | public void testChunkedRequest() throws IOException {
connection = null;
HttpPost post = new HttpPost(DefaultServer.getDefaultServerURL() + "/path");
TestHttpClient client = new TestHttpClient();
try {
generateMessage(1);
post.setEntity(new StringEntity(messag... |
diff --git a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/libgdx/view/DeckView.java b/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/libgdx/view/DeckView.java
index 20da518..7e4feb3 100644
--- a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/libgdx/view/DeckView.java
+++ b/AndroidRall... | true | true | public DeckView(List<RobotView> robots, int robotID, int roundTime) {
super();
this.roundTime = roundTime;
Texture deckTexture = new Texture(
Gdx.files.internal("textures/woodenDeck.png"));
deckTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
Texture compTexture = new Texture(
Gdx.files... | public DeckView(List<RobotView> robots, int robotID, int roundTime) {
super();
this.roundTime = roundTime;
Texture deckTexture = new Texture(
Gdx.files.internal("textures/woodenDeck.png"));
deckTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
Texture compTexture = new Texture(
Gdx.files... |
diff --git a/src/tsa2035/game/engine/scene/Player.java b/src/tsa2035/game/engine/scene/Player.java
index b2dde13..30de770 100644
--- a/src/tsa2035/game/engine/scene/Player.java
+++ b/src/tsa2035/game/engine/scene/Player.java
@@ -1,163 +1,163 @@
package tsa2035.game.engine.scene;
import java.util.Iterator;
import... | false | true | public void render(Scene scene)
{
Iterator<Sprite> sceneObjects = scene.iterator();
boolean hitSides[] = new boolean[4];
boolean freefall = false;
boolean allowJumping = false;
boolean interactPressed = interactKey.check();
while ( sceneObjects.hasNext() )
{
Sprite thisObj = sceneObjects.next();
... | public void render(Scene scene)
{
Iterator<Sprite> sceneObjects = scene.iterator();
boolean hitSides[] = new boolean[4];
boolean freefall = false;
boolean allowJumping = false;
boolean interactPressed = interactKey.check();
while ( sceneObjects.hasNext() )
{
Sprite thisObj = sceneObjects.next();
... |
diff --git a/src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java b/src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java
index c9e8ac07c..e642b2680 100644
--- a/src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java
+++ b/src/share/classes/sun/tools/jconsole/resources/JC... | false | true | protected Object[][] getContents0() {
Object[][] temp = new Object[][] {
// NOTE 1: The value strings in this file containing "{0}" are
// processed by the java.text.MessageFormat class. Any
// single quotes appearing in these strings need to be
// ... | protected Object[][] getContents0() {
Object[][] temp = new Object[][] {
// NOTE 1: The value strings in this file containing "{0}" are
// processed by the java.text.MessageFormat class. Any
// single quotes appearing in these strings need to be
// ... |
diff --git a/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java b/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java
index 2afa527..d6f11f1 100755
--- a/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java
+++ b/src/main/java/com/prealpha/dcputil/emulator/NewBaseMachine.java
@@ -1,5... | false | true | public void step() throws EmulatorException {
char instruction = memory[pc++];
char opcode = clear(instruction, A_SIZE+B_SIZE, 0);
char opA = clear(instruction, 0, B_SIZE+OP_SIZE);
char opB = clear(instruction, A_SIZE, B_SIZE);
int offset = 0;
Pointer pa ... | public void step() throws EmulatorException {
char instruction = memory[pc++];
char opcode = clear(instruction, A_SIZE+B_SIZE, 0);
char opA = clear(instruction, 0, B_SIZE+OP_SIZE);
char opB = clear(instruction, A_SIZE, B_SIZE);
int offset = 0;
Pointer pa ... |
diff --git a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/io/DataInputStream.java b/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/io/DataInputStream.java
index a89ea4b98..1c3b504c3 100644
--- a/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/io/DataInp... | false | true | private int readUtfChar (StringBuilder sb) throws IOException {
int a = readUnsignedByte();
if ((a & 0x80) == 0) {
sb.append((char)a);
return 1;
}
if ((a & 0xe0) == 0xb0) {
int b = readUnsignedByte();
sb.append((char)(((a & 0x1F) << 6) | (b & 0x3F)));
return 2;
}
if ((a & 0xf0) == 0xe0) {
... | private int readUtfChar (StringBuilder sb) throws IOException {
int a = readUnsignedByte();
if ((a & 0x80) == 0) {
sb.append((char)a);
return 1;
}
if ((a & 0xe0) == 0xc0) {
int b = readUnsignedByte();
sb.append((char)(((a & 0x1F) << 6) | (b & 0x3F)));
return 2;
}
if ((a & 0xf0) == 0xe0) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.