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/xfire-jaxb2/src/main/org/codehaus/xfire/jaxb2/JaxbWSDLBuilder.java b/xfire-jaxb2/src/main/org/codehaus/xfire/jaxb2/JaxbWSDLBuilder.java
index 09918e5e..aa6de5f2 100755
--- a/xfire-jaxb2/src/main/org/codehaus/xfire/jaxb2/JaxbWSDLBuilder.java
+++ b/xfire-jaxb2/src/main/org/codehaus/xfire/jaxb2/JaxbWSDLBuilde... | true | true | private void generateJaxbSchemas()
{
try
{
JAXBContext context = JAXBContext.newInstance(classes.toArray(new Class[0]));
final List<DOMResult> results = new ArrayList<DOMResult>();
context.generateSchema(new SchemaOutputResolver() {
@Ov... | private void generateJaxbSchemas()
{
try
{
JAXBContext context = JAXBContext.newInstance(classes.toArray(new Class[0]));
final List<DOMResult> results = new ArrayList<DOMResult>();
context.generateSchema(new SchemaOutputResolver() {
@Ov... |
diff --git a/src/icloude/request_handlers/BaseRequestHandler.java b/src/icloude/request_handlers/BaseRequestHandler.java
index 9b8aba4..d683ddb 100644
--- a/src/icloude/request_handlers/BaseRequestHandler.java
+++ b/src/icloude/request_handlers/BaseRequestHandler.java
@@ -1,82 +1,82 @@
/**
*
*/
package icloude.r... | true | true | protected final String getResponce(String json) {
BaseResponse response;
if (json == null) {
response = new StandartResponse("Error", false,
"No 'json' parameter in http request.");
} else
try {
BaseRequest fromJSON = jsonToRequest(json);
if (requestTypeCheck(fromJSON.getRequestType())) {
... | protected final String getResponce(String json) {
BaseResponse response;
if (json == null) {
response = new StandartResponse("Error", false,
"No 'json' parameter in http request.");
} else
try {
BaseRequest fromJSON = jsonToRequest(json);
if (requestTypeCheck(fromJSON.getRequestType())) {
... |
diff --git a/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java b/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java
index 55de1acd4..89063f9f2 100644
--- a/dnd/ui/src/main/java/org/richfaces/renderkit/DropTargetRenderer.java
+++ b/dnd/ui/src/main/java/org/richfaces/renderkit/DropTar... | true | true | public Map<String, Object> getOptions(FacesContext facesContext, UIComponent component) {
Map<String, Object> options = new HashMap<String, Object>();
if(component instanceof AbstractDropTarget) {
JSReference dragSourceId = new JSReference("dragSourceId");
JSFunctionDefiniti... | public Map<String, Object> getOptions(FacesContext facesContext, UIComponent component) {
Map<String, Object> options = new HashMap<String, Object>();
if(component instanceof AbstractDropTarget) {
JSReference dragSourceId = new JSReference("dragSourceId");
JSFunctionDefiniti... |
diff --git a/src/main/java/fr/binome/elevator/server/ElevatorServer.java b/src/main/java/fr/binome/elevator/server/ElevatorServer.java
index f3d6491..54f3d92 100644
--- a/src/main/java/fr/binome/elevator/server/ElevatorServer.java
+++ b/src/main/java/fr/binome/elevator/server/ElevatorServer.java
@@ -1,92 +1,92 @@
pack... | true | true | public static void main(String[] args) {
setPort(PORT);
// final Elevator elevator = new BasicElevator();
final Elevator elevator = new CleverElevator();
get(new Route("/hello") {
@Override
public Object handle(Request request, Response response) {
... | public static void main(String[] args) {
setPort(PORT);
// final Elevator elevator = new BasicElevator();
final Elevator elevator = new CleverElevator();
get(new Route("/hello") {
@Override
public Object handle(Request request, Response response) {
... |
diff --git a/src/main/java/org/spoutcraft/launcher/MinecraftYML.java b/src/main/java/org/spoutcraft/launcher/MinecraftYML.java
index ec96c55..3c323a5 100644
--- a/src/main/java/org/spoutcraft/launcher/MinecraftYML.java
+++ b/src/main/java/org/spoutcraft/launcher/MinecraftYML.java
@@ -1,81 +1,83 @@
package org.spoutcra... | true | true | public static void updateMinecraftYMLCache() {
if (!updated || !getConfigFile().exists()) {
synchronized (key) {
String current = null;
if (getConfigFile().exists()) {
try {
current = getConfig().getString("current");
} catch (Exception ex) {
ex.printStackTrace();
}
}
i... | public static void updateMinecraftYMLCache() {
if (!updated || !getConfigFile().exists()) {
synchronized (key) {
String current = null;
if (getConfigFile().exists()) {
try {
current = getConfig().getString("current");
} catch (Exception ex) {
ex.printStackTrace();
}
}
i... |
diff --git a/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java b/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java
index 4c9f0d2..3c18836 100644
--- a/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java
+++ b/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java
@@ -1,181 +1,181 @@
/* -*-mode:jav... | true | true | protected int deflate(int flush) throws IOException {
deflater.setOutput(buffer, 0, buffer.length);
int err = deflater.deflate(flush);
switch(err) {
case JZlib.Z_OK:
case JZlib.Z_STREAM_END:
break;
case JZlib.Z_BUF_ERROR:
if(deflater.avail_in<=0 && flush!=JZlib.Z_FINISH){... | protected int deflate(int flush) throws IOException {
deflater.setOutput(buffer, 0, buffer.length);
int err = deflater.deflate(flush);
switch(err) {
case JZlib.Z_OK:
case JZlib.Z_STREAM_END:
break;
case JZlib.Z_BUF_ERROR:
if(deflater.avail_in<=0 && flush!=JZlib.Z_FINISH){... |
diff --git a/src/com/modcrafting/ultrabans/commands/Unban.java b/src/com/modcrafting/ultrabans/commands/Unban.java
index db82cd1..38bff87 100644
--- a/src/com/modcrafting/ultrabans/commands/Unban.java
+++ b/src/com/modcrafting/ultrabans/commands/Unban.java
@@ -1,160 +1,160 @@
/* COPYRIGHT (c) 2013 Deathmarine (Joshua ... | true | true | public String command(CommandSender sender, Command command, String[] args) {
if (args.length < 1)
return lang.getString("Ban.Arguments");
boolean broadcast = true;
String admin = Ultrabans.DEFAULT_ADMIN;
String reason;
if (sender instanceof Player)
admin = sender.getName();
String name = Formatting.... | public String command(CommandSender sender, Command command, String[] args) {
if (args.length < 1)
return lang.getString("Unban.Arguments");
boolean broadcast = true;
String admin = Ultrabans.DEFAULT_ADMIN;
String reason;
if (sender instanceof Player)
admin = sender.getName();
String name = Formattin... |
diff --git a/src/chalmers/TDA367/B17/weaponPickups/AbstractWeaponPickup.java b/src/chalmers/TDA367/B17/weaponPickups/AbstractWeaponPickup.java
index 81629ce..9fc4fb6 100644
--- a/src/chalmers/TDA367/B17/weaponPickups/AbstractWeaponPickup.java
+++ b/src/chalmers/TDA367/B17/weaponPickups/AbstractWeaponPickup.java
@@ -1,5... | true | true | public AbstractWeaponPickup(Vector2f position) {
super();
absTank = null;
Vector2f size = new Vector2f(60f, 25f);
setShape(new Rectangle(position.getX()-size.getX()/2, position.getY()-size.getY()/2, size.getX(), size.getY()));
}
| public AbstractWeaponPickup(Vector2f position) {
super();
absTank = null;
Vector2f size = new Vector2f(64f, 64f);
setShape(new Rectangle(position.getX()-size.getX()/2, position.getY()-size.getY()/2, size.getX(), size.getY()));
}
|
diff --git a/src/main/java/com/ning/Li3TestMojo.java b/src/main/java/com/ning/Li3TestMojo.java
index 5d3b16f..d44db80 100644
--- a/src/main/java/com/ning/Li3TestMojo.java
+++ b/src/main/java/com/ning/Li3TestMojo.java
@@ -1,116 +1,115 @@
package com.ning;
import org.apache.maven.plugin.AbstractMojo;
import org.apac... | true | true | public void execute() throws MojoExecutionException, MojoFailureException
{
boolean failed = false;
List<String> command = new ArrayList<String>();
try {
command.add(baseDir.getCanonicalPath() + "/libraries/lithium/console/li3");
}
catch (IOException e) {
... | public void execute() throws MojoExecutionException, MojoFailureException
{
boolean failed = false;
List<String> command = new ArrayList<String>();
try {
command.add(baseDir.getCanonicalPath() + "/libraries/lithium/console/li3");
}
catch (IOException e) {
... |
diff --git a/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java b/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java
index b621f1677..e126e5dc3 100644
--- a/opentripplanner-graph-bui... | false | true | public WayPropertySet getWayPropertySet() {
WayPropertySet props = new WayPropertySet();
/* no bicycle tags */
/* NONE */
setProperties(props, "highway=raceway",
StreetTraversalPermission.NONE);
setProperties(props, "highway=construction",
... | public WayPropertySet getWayPropertySet() {
WayPropertySet props = new WayPropertySet();
/* no bicycle tags */
/* NONE */
setProperties(props, "highway=raceway",
StreetTraversalPermission.NONE);
setProperties(props, "highway=construction",
... |
diff --git a/hazelcast/src/main/java/com/hazelcast/queue/tx/TransactionalQueueProxySupport.java b/hazelcast/src/main/java/com/hazelcast/queue/tx/TransactionalQueueProxySupport.java
index 174bd58c2e..e3ddc10cb0 100644
--- a/hazelcast/src/main/java/com/hazelcast/queue/tx/TransactionalQueueProxySupport.java
+++ b/hazelcas... | true | true | public Data pollInternal(long timeout) {
QueueItem reservedOffer = offeredQueue.peek();
TxnReservePollOperation operation = new TxnReservePollOperation(name, timeout, reservedOffer == null ? -1 : reservedOffer.getItemId());
try {
Invocation invocation = getNodeEngine().getOperati... | public Data pollInternal(long timeout) {
QueueItem reservedOffer = offeredQueue.peek();
TxnReservePollOperation operation = new TxnReservePollOperation(name, timeout, reservedOffer == null ? -1 : reservedOffer.getItemId());
try {
Invocation invocation = getNodeEngine().getOperati... |
diff --git a/src/de/ueller/midlet/iconmenu/IconMenuWithPagesGui.java b/src/de/ueller/midlet/iconmenu/IconMenuWithPagesGui.java
index 04da0f92..2007c4c3 100644
--- a/src/de/ueller/midlet/iconmenu/IconMenuWithPagesGui.java
+++ b/src/de/ueller/midlet/iconmenu/IconMenuWithPagesGui.java
@@ -1,687 +1,687 @@
/*
* GpsMid - ... | true | true | public void pointerReleased(int x, int y) {
getActiveMenuPage().clearTouchedElement();
tabButtonManager.clearTouchedElement();
tabDirectionButtonManager.clearTouchedElement();
pointerPressedDown = false;
if (Math.abs(x - touchX) < 10) { // if this is no drag action
//#debug debug
logger.debug("pointer ... | public void pointerReleased(int x, int y) {
getActiveMenuPage().clearTouchedElement();
tabButtonManager.clearTouchedElement();
tabDirectionButtonManager.clearTouchedElement();
pointerPressedDown = false;
if (Math.abs(x - touchX) < 10 && Math.abs(y - touchY) < 10) { // if this is no drag action
//#debug de... |
diff --git a/search/src/java/cz/incad/Kramerius/views/item/menu/ContextMenuItemsHolder.java b/search/src/java/cz/incad/Kramerius/views/item/menu/ContextMenuItemsHolder.java
index d8866ee49..3ab183bdd 100644
--- a/search/src/java/cz/incad/Kramerius/views/item/menu/ContextMenuItemsHolder.java
+++ b/search/src/java/cz/inc... | true | true | public void init() {
String i18nServlet ="i18n";
String pid = this.requestProvider.get().getParameter(PID_PARAMETER);
try {
boolean imgfullAvailable = (pid != null && !pid.trim().equals("")) ? this.fedoraAccess.isImageFULLAvailable(pid) : false;
String m... | public void init() {
String i18nServlet ="i18n";
String pid = this.requestProvider.get().getParameter(PID_PARAMETER);
try {
boolean imgfullAvailable = (pid != null && !pid.trim().equals("")) ? this.fedoraAccess.isImageFULLAvailable(pid) : false;
String m... |
diff --git a/src/main/java/org/scale7/cassandra/pelops/Operand.java b/src/main/java/org/scale7/cassandra/pelops/Operand.java
index b254a9f..ff9d9f8 100644
--- a/src/main/java/org/scale7/cassandra/pelops/Operand.java
+++ b/src/main/java/org/scale7/cassandra/pelops/Operand.java
@@ -1,78 +1,78 @@
package org.scale7.cassa... | true | true | protected <ReturnType> ReturnType tryOperation(IOperation<ReturnType> operation) throws Exception {
String lastNode = null;
Exception lastException = null;
int retries = 0;
do {
// Get a connection to a Cassandra node
IConnection conn = thrift.getConnectionExcept(lastNode);
lastNode ... | protected <ReturnType> ReturnType tryOperation(IOperation<ReturnType> operation) throws Exception {
String lastNode = null;
Exception lastException = null;
int retries = 0;
do {
// Get a connection to a Cassandra node
IConnection conn = thrift.getConnectionExcept(lastNode);
lastNode ... |
diff --git a/holmes-core/src/main/java/net/holmes/core/service/airplay/AirplayServer.java b/holmes-core/src/main/java/net/holmes/core/service/airplay/AirplayServer.java
index 2c610641..43acce33 100644
--- a/holmes-core/src/main/java/net/holmes/core/service/airplay/AirplayServer.java
+++ b/holmes-core/src/main/java/net/... | true | true | public void start() {
if (configurationDao.getParameter(AIRPLAY_STREAMING_ENABLE)) {
LOGGER.info("Starting Airplay server");
try {
// Create JmDNS
jmDNS = JmDNS.create(localAddress);
// Loop up for available devices
for... | public void start() {
if (configurationDao.getParameter(AIRPLAY_STREAMING_ENABLE)) {
LOGGER.info("Starting Airplay server");
try {
// Create JmDNS
jmDNS = JmDNS.create(localAddress);
// Look up for available devices
for... |
diff --git a/patch/patch-core/src/test/java/org/fusesource/patch/impl/ServiceImplTest.java b/patch/patch-core/src/test/java/org/fusesource/patch/impl/ServiceImplTest.java
index 42070f255..d965760eb 100644
--- a/patch/patch-core/src/test/java/org/fusesource/patch/impl/ServiceImplTest.java
+++ b/patch/patch-core/src/test... | false | true | public void testPatch() throws Exception {
BundleContext bundleContext = createMock(BundleContext.class);
Bundle sysBundle = createMock(Bundle.class);
BundleContext sysBundleContext = createMock(BundleContext.class);
Bundle bundle = createMock(Bundle.class);
Bundle bundle2 =... | public void testPatch() throws Exception {
BundleContext bundleContext = createMock(BundleContext.class);
Bundle sysBundle = createMock(Bundle.class);
BundleContext sysBundleContext = createMock(BundleContext.class);
Bundle bundle = createMock(Bundle.class);
Bundle bundle2 =... |
diff --git a/src/main/java/cellHTS/classes/RInterface.java b/src/main/java/cellHTS/classes/RInterface.java
index 15845fb..f8760e2 100755
--- a/src/main/java/cellHTS/classes/RInterface.java
+++ b/src/main/java/cellHTS/classes/RInterface.java
@@ -1,781 +1,781 @@
/*
* //
* // Copyright (C) 2009 Boutros-Labs(German ca... | true | true | public void run() {
String queueFullMsg;
queueFullMsg="99_queue is full, waiting for a free slot...hold on! (dont close the window)!";
threadID = getId();
//check if we still have place before running
semaphore.p(progressPercentage,queueFullMsg,threadID);
... | public void run() {
String queueFullMsg;
queueFullMsg="99_queue is full, waiting for a free slot...hold on! (dont close the window)!";
threadID = getId();
//check if we still have place before running
semaphore.p(progressPercentage,queueFullMsg,threadID);
... |
diff --git a/src/test/java/com/camilolopes/readerweb/services/impl/UserServiceimImplTest.java b/src/test/java/com/camilolopes/readerweb/services/impl/UserServiceimImplTest.java
index 4bf56ac..fea27a0 100644
--- a/src/test/java/com/camilolopes/readerweb/services/impl/UserServiceimImplTest.java
+++ b/src/test/java/com/ca... | true | true | public void testUpdateDataOfTheUser(){
User user = (User) getSessionFactory().getCurrentSession().get(User.class, 2L);
String expectedNameUser = "joão";
assertEquals(expectedNameUser, user.getName());
user.setName("Pedro");
user.setLastname("Leão");
user.setRegisterDate(new Date());
user.setStatus(Stat... | public void testUpdateDataOfTheUser(){
User user = (User) getSessionFactory().getCurrentSession().get(User.class, 2L);
String expectedNameUser = "joao";
assertEquals(expectedNameUser, user.getName());
user.setName("Pedro");
user.setLastname("Leão");
user.setRegisterDate(new Date());
user.setStatus(Stat... |
diff --git a/core/src/main/java/org/papoose/core/resolver/DefaultResolver.java b/core/src/main/java/org/papoose/core/resolver/DefaultResolver.java
index 1994761..aeb955d 100644
--- a/core/src/main/java/org/papoose/core/resolver/DefaultResolver.java
+++ b/core/src/main/java/org/papoose/core/resolver/DefaultResolver.java... | true | true | private CheckPoint resolveWires(CheckPoint checkPoint)
{
assert checkPoint != null;
assert checkPoint.getResolving() != null;
List<ImportDescriptionWrapper> imports = checkPoint.getResolving().getImports();
if (!imports.isEmpty())
{
ImportDescriptionWrapper ... | private CheckPoint resolveWires(CheckPoint checkPoint)
{
assert checkPoint != null;
assert checkPoint.getResolving() != null;
List<ImportDescriptionWrapper> imports = checkPoint.getResolving().getImports();
if (!imports.isEmpty())
{
ImportDescriptionWrapper ... |
diff --git a/src/test/java/dungeon/models/PlayerTest.java b/src/test/java/dungeon/models/PlayerTest.java
index 195b3f1..436fa79 100644
--- a/src/test/java/dungeon/models/PlayerTest.java
+++ b/src/test/java/dungeon/models/PlayerTest.java
@@ -1,67 +1,67 @@
package dungeon.models;
import org.junit.Before;
import org.... | true | true | public void teleportTransformUpdatesPosition () {
Player teleported = this.player.apply(new Player.TeleportTransform("another-room", 5, 1));
assertEquals("another-room", teleported.getRoomId());
assertEquals(5, teleported.getPosition().getX());
assertEquals(1, teleported.getPosition().getY());
}
| public void teleportTransformUpdatesPosition () {
Player teleported = this.player.apply(new Player.TeleportTransform("another-room", new Position(5, 1)));
assertEquals("another-room", teleported.getRoomId());
assertEquals(5, teleported.getPosition().getX());
assertEquals(1, teleported.getPosition().g... |
diff --git a/src/com/android/mms/data/Conversation.java b/src/com/android/mms/data/Conversation.java
index 1cf48ccd..ba8d89b3 100644
--- a/src/com/android/mms/data/Conversation.java
+++ b/src/com/android/mms/data/Conversation.java
@@ -1,1110 +1,1110 @@
package com.android.mms.data;
import java.util.ArrayList;
impo... | true | true | private static void cacheAllThreads(Context context) {
if (Log.isLoggable(LogTag.THREAD_CACHE, Log.VERBOSE)) {
LogTag.debug("[Conversation] cacheAllThreads: begin");
}
synchronized (Cache.getInstance()) {
if (mLoadingThreads) {
return;
... | private static void cacheAllThreads(Context context) {
if (Log.isLoggable(LogTag.THREAD_CACHE, Log.VERBOSE)) {
LogTag.debug("[Conversation] cacheAllThreads: begin");
}
synchronized (Cache.getInstance()) {
if (mLoadingThreads) {
return;
... |
diff --git a/de.unisiegen.tpml.ui/source/de/unisiegen/tpml/ui/GeneralLaTex.java b/de.unisiegen.tpml.ui/source/de/unisiegen/tpml/ui/GeneralLaTex.java
index 5b5a10e3..f98df457 100644
--- a/de.unisiegen.tpml.ui/source/de/unisiegen/tpml/ui/GeneralLaTex.java
+++ b/de.unisiegen.tpml.ui/source/de/unisiegen/tpml/ui/GeneralLaTe... | true | true | public void export ( )
{
this.dialog = new TexDialog (
( JFrame ) this.parent.getTopLevelAncestor ( ) , true ) ;
Preferences preferences = Preferences.userNodeForPackage ( Outline.class ) ;
this.dialog.filechooser.setCurrentDirectory ( new File ( preferences.get (
"lastDir" , "." ) ) ) ;... | public void export ( )
{
this.dialog = new TexDialog (
( JFrame ) this.parent.getTopLevelAncestor ( ) , true ) ;
Preferences preferences = Preferences.userNodeForPackage ( GeneralLaTex.class ) ;
this.dialog.filechooser.setCurrentDirectory ( new File ( preferences.get (
"lastDir" , "." ) ... |
diff --git a/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java b/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java
index 19061b36..d1908982 100644
--- a/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java
+++ b/src/com/sk89q/worldguard/protection/ApplicableRegionSet.java
@@ -1,326 +1,323 ... | false | true | private boolean internalGetState(StateFlag flag, LocalPlayer player) {
boolean found = false;
boolean allowed = false; // Used for ALLOW override
boolean def = false;
// Handle defaults
if (globalRegion != null) {
State globalState = globalRegion.getFlag(... | private boolean internalGetState(StateFlag flag, LocalPlayer player) {
boolean found = false;
boolean allowed = false; // Used for ALLOW override
boolean def = flag.getDefault();
// Handle defaults
if (globalRegion != null) {
State globalState = globalReg... |
diff --git a/geobatch/csvingest/src/main/java/it/geosolutions/geobatch/opensdi/csvingest/CSVIngestAction.java b/geobatch/csvingest/src/main/java/it/geosolutions/geobatch/opensdi/csvingest/CSVIngestAction.java
index 5ed56ec..edd3e43 100644
--- a/geobatch/csvingest/src/main/java/it/geosolutions/geobatch/opensdi/csvingest... | true | true | private void processCSVFile(File file) throws ActionException {
LOGGER.info("Processing input file " + file);
String[] headers = null;
CSVReader reader = null;
try {
reader = new CSVReader(new FileReader(file), ',');
headers = reader.readNext();
} cat... | private void processCSVFile(File file) throws ActionException {
LOGGER.info("Processing input file " + file);
String[] headers = null;
CSVReader reader = null;
try {
reader = new CSVReader(new FileReader(file), ',');
headers = reader.readNext();
} cat... |
diff --git a/flyway-sample/src/main/java/com/googlecode/flyway/sample/Main.java b/flyway-sample/src/main/java/com/googlecode/flyway/sample/Main.java
index 2a33b9756..9ae4d783b 100644
--- a/flyway-sample/src/main/java/com/googlecode/flyway/sample/Main.java
+++ b/flyway-sample/src/main/java/com/googlecode/flyway/sample/M... | true | true | public static void main(String[] args) throws Exception {
DataSource dataSource =
new SimpleDriverDataSource(new org.hsqldb.jdbcDriver(), "jdbc:hsqldb:file:db/flyway_sample;shutdown=true", "SA", "");
Flyway flyway = new Flyway();
flyway.setDataSource(dataSource);
flyw... | public static void main(String[] args) throws Exception {
DataSource dataSource =
new SimpleDriverDataSource(new org.hsqldb.jdbcDriver(), "jdbc:hsqldb:file:db/flyway_sample;shutdown=true", "SA", "");
Flyway flyway = new Flyway();
flyway.setDataSource(dataSource);
flyw... |
diff --git a/src/de/aidger/model/models/FinancialCategory.java b/src/de/aidger/model/models/FinancialCategory.java
index 4d23e542..bc0a3ff4 100644
--- a/src/de/aidger/model/models/FinancialCategory.java
+++ b/src/de/aidger/model/models/FinancialCategory.java
@@ -1,296 +1,296 @@
/*
* This file is part of the aidGer p... | false | true | public boolean validate() {
boolean ret = true;
if (year != null) {
if (year <= 1000 || year >= 10000) {
addError("year", _("Year"), _("is an incorrect year"));
ret = false;
}
}
if (budgetCosts != null) {
for (int b : bud... | public boolean validate() {
boolean ret = true;
if (year != null) {
if (year <= 1000 || year >= 10000) {
addError("year", _("Year"), _("is an incorrect year"));
ret = false;
}
}
if (budgetCosts != null) {
for (int b : bud... |
diff --git a/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/artifact/AbstractArtifactPlexusResource.java b/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/rest/artifact/AbstractArtifactPlexusResource.java
index 607ea3e37..56e07bb71 100644
--- a/nexus/nexus-rest-api/src/main/java/org/sonatype/nexus/res... | true | true | public Object upload( Context context, Request request, Response response, List<FileItem> files )
throws ResourceException
{
try
{
// we have "nibbles": (params,fileA,[fileB])+
// the second file is optional
// if two files are present, one of them sho... | public Object upload( Context context, Request request, Response response, List<FileItem> files )
throws ResourceException
{
try
{
// we have "nibbles": (params,fileA,[fileB])+
// the second file is optional
// if two files are present, one of them sho... |
diff --git a/tests/server-side/com/vaadin/tests/server/component/abstractfield/DefaultConverterFactory.java b/tests/server-side/com/vaadin/tests/server/component/abstractfield/DefaultConverterFactory.java
index 5788e143e..8a6bcf2e0 100644
--- a/tests/server-side/com/vaadin/tests/server/component/abstractfield/DefaultCo... | false | true | public void testDefaultNumberConversion() {
Application app = new Application();
Application.setCurrentApplication(app);
TextField tf = new TextField();
tf.setLocale(new Locale("en", "US"));
tf.setPropertyDataSource(new MethodProperty<Person>(paulaBean, "salary"));
as... | public void testDefaultNumberConversion() {
Application app = new Application();
Application.setCurrentApplication(app);
TextField tf = new TextField();
tf.setLocale(new Locale("en", "US"));
tf.setPropertyDataSource(new MethodProperty<Integer>(paulaBean,
"sala... |
diff --git a/works.editor.antlr4/src/org/antlr/works/editor/antlr4/parsing/AntlrSyntaxErrorV4.java b/works.editor.antlr4/src/org/antlr/works/editor/antlr4/parsing/AntlrSyntaxErrorV4.java
index 12a72fe..d3a891c 100644
--- a/works.editor.antlr4/src/org/antlr/works/editor/antlr4/parsing/AntlrSyntaxErrorV4.java
+++ b/works... | true | true | private static SnapshotPositionRegion getLocationFromToken(@NonNull DocumentSnapshot snapshot, Token offendingToken, RecognitionException exception) {
Parameters.notNull("snapshot", snapshot);
if (offendingToken != null) {
int startOffset = offendingToken.getStartIndex();
in... | private static SnapshotPositionRegion getLocationFromToken(@NonNull DocumentSnapshot snapshot, Token offendingToken, RecognitionException exception) {
Parameters.notNull("snapshot", snapshot);
if (offendingToken != null) {
int startOffset = offendingToken.getStartIndex();
in... |
diff --git a/grails-datastore-gorm/src/main/groovy/grails/gorm/CriteriaBuilder.java b/grails-datastore-gorm/src/main/groovy/grails/gorm/CriteriaBuilder.java
index 6168ad04..8644594d 100644
--- a/grails-datastore-gorm/src/main/groovy/grails/gorm/CriteriaBuilder.java
+++ b/grails-datastore-gorm/src/main/groovy/grails/gor... | false | true | public Object invokeMethod(String name, Object obj) {
Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj};
if (isCriteriaConstructionMethod(name, args)) {
initializeQuery();
uniqueResult = false;
invokeClosureNode(args[0]);
... | public Object invokeMethod(String name, Object obj) {
Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj};
if (isCriteriaConstructionMethod(name, args)) {
initializeQuery();
uniqueResult = false;
invokeClosureNode(args[0]);
... |
diff --git a/org.openntf.domino/src/org/openntf/domino/impl/Database.java b/org.openntf.domino/src/org/openntf/domino/impl/Database.java
index 3cbbcb0dc..e8fd7a3c9 100644
--- a/org.openntf.domino/src/org/openntf/domino/impl/Database.java
+++ b/org.openntf.domino/src/org/openntf/domino/impl/Database.java
@@ -1,2445 +1,2... | true | true | public Document getDocumentByKey(String key, boolean createOnFail) {
try {
if (key != null) {
String checksum = DominoUtils.md5(key);
Document doc = this.getDocumentByUNID(checksum);
if (doc == null && createOnFail) {
doc = this.createDocument();
doc.setUniversalID(checksum);
doc.replac... | public Document getDocumentByKey(String key, boolean createOnFail) {
try {
if (key != null) {
String checksum = DominoUtils.toUnid(key);
Document doc = this.getDocumentByUNID(checksum);
if (doc == null && createOnFail) {
doc = this.createDocument();
doc.setUniversalID(checksum);
doc.rep... |
diff --git a/src/main/java/de/cismet/tools/gui/downloadmanager/DownloadManagerAction.java b/src/main/java/de/cismet/tools/gui/downloadmanager/DownloadManagerAction.java
index aba9e28..be6c79a 100644
--- a/src/main/java/de/cismet/tools/gui/downloadmanager/DownloadManagerAction.java
+++ b/src/main/java/de/cismet/tools/gu... | true | true | public DownloadManagerAction(final Component parent) {
super();
this.parent = parent;
putValue(
SMALL_ICON,
new javax.swing.ImageIcon(
getClass().getResource("/de/cismet/tools/gui/downloadmanager/res/downloadmanager.png")));
putValue(
... | public DownloadManagerAction(final Component parent) {
super();
this.parent = parent;
putValue(
SMALL_ICON,
new javax.swing.ImageIcon(
getClass().getResource("/de/cismet/tools/gui/downloadmanager/res/downloadmanager.png")));
putValue(
... |
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java
index 7feb65dc..2fe05a9c 100644
--- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java
+++ b/software/ncitbrowser/src... | false | true | public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view) {
response.setContentType("text/html");
PrintWriter out = null;
try {
out = response.getWriter();
} catch (Exception ex) {
ex.printStackTrace();
return;
}
String mes... | public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view) {
response.setContentType("text/html");
PrintWriter out = null;
try {
out = response.getWriter();
} catch (Exception ex) {
ex.printStackTrace();
return;
}
String mes... |
diff --git a/drools-compiler/src/test/java/org/drools/compiler/factmodel/traits/TripleBasedTraitsTest.java b/drools-compiler/src/test/java/org/drools/compiler/factmodel/traits/TripleBasedTraitsTest.java
index a0f093315a..f849479e41 100644
--- a/drools-compiler/src/test/java/org/drools/compiler/factmodel/traits/TripleBa... | false | true | public void testHasTypes() {
String source = "org/drools/compiler/factmodel/traits/testTraitDon.drl";
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
Resource res = ResourceFactory.newClassPathResource(source);
assertNotNull(res);
kbuilder.add(res... | public void testHasTypes() {
String source = "org/drools/compiler/factmodel/traits/testTraitDon.drl";
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
Resource res = ResourceFactory.newClassPathResource(source);
assertNotNull(res);
kbuilder.add(res... |
diff --git a/src/edu/chl/asciicam/activity/PreviewScreen.java b/src/edu/chl/asciicam/activity/PreviewScreen.java
index 2f2c47b..ed51ebc 100644
--- a/src/edu/chl/asciicam/activity/PreviewScreen.java
+++ b/src/edu/chl/asciicam/activity/PreviewScreen.java
@@ -1,65 +1,64 @@
package edu.chl.asciicam.activity;
import and... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_preview_screen);
back_btn = (Button) findViewById(R.id.back);
save_pic_btn = (Button) findViewById(R.id.save);
convert_btn = (Button) findViewById(R.id.conve... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_preview_screen);
back_btn = (Button) findViewById(R.id.back);
save_pic_btn = (Button) findViewById(R.id.save);
convert_btn = (Button) findViewById(R.id.conve... |
diff --git a/src/net/idlesoft/android/apps/github/activities/FileViewer.java b/src/net/idlesoft/android/apps/github/activities/FileViewer.java
index 7960f8e..779d75d 100644
--- a/src/net/idlesoft/android/apps/github/activities/FileViewer.java
+++ b/src/net/idlesoft/android/apps/github/activities/FileViewer.java
@@ -1,2... | true | true | protected Void doInBackground(final Void... params) {
try {
activity.mJson = new JSONObject(activity.mGapi.object.blob(
activity.mRepositoryOwner, activity.mRepositoryName, activity.mTreeSha,
activity.mBlobPath).resp).getJSONObject("blo... | protected Void doInBackground(final Void... params) {
try {
activity.mJson = new JSONObject(activity.mGapi.object.blob(
activity.mRepositoryOwner, activity.mRepositoryName, activity.mTreeSha,
activity.mBlobPath).resp).getJSONObject("blo... |
diff --git a/hazelcast/src/main/java/com/hazelcast/map/client/TxnMapRequestWithSQLQuery.java b/hazelcast/src/main/java/com/hazelcast/map/client/TxnMapRequestWithSQLQuery.java
index 0f54d29291..370c9fa5fd 100644
--- a/hazelcast/src/main/java/com/hazelcast/map/client/TxnMapRequestWithSQLQuery.java
+++ b/hazelcast/src/mai... | false | true | protected void writeDataInner(ObjectDataOutput out) throws IOException {
if (predicate != null) {
out.writeBoolean(true);
out.writeUTF(predicate);
}
out.writeBoolean(false);
}
| protected void writeDataInner(ObjectDataOutput out) throws IOException {
if (predicate != null) {
out.writeBoolean(true);
out.writeUTF(predicate);
} else{
out.writeBoolean(false);
}
}
|
diff --git a/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java b/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java
index 2cc4bba0..1bb029b2 100644
--- a/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java
+++ b/src/com/redhat/qe/sm/base/SubscriptionManagerCLITestScript.java
@@ -1... | true | true | public void setupBeforeSuite() throws IOException {
client = new SSHCommandRunner(clienthostname, sshUser, sshKeyPrivate, sshkeyPassphrase, null);
clienttasks = new SubscriptionManagerTasks(client);
client1 = client;
client1tasks = clienttasks;
// will we be connecting to the candlepin server?
if (!se... | public void setupBeforeSuite() throws IOException {
client = new SSHCommandRunner(clienthostname, sshUser, sshKeyPrivate, sshkeyPassphrase, null);
clienttasks = new SubscriptionManagerTasks(client);
client1 = client;
client1tasks = clienttasks;
// will we be connecting to the candlepin server?
if (!se... |
diff --git a/src/main/java/pl/psnc/dl/wf4ever/monitoring/PreservationJob.java b/src/main/java/pl/psnc/dl/wf4ever/monitoring/PreservationJob.java
index f6be35a6..be5aacb8 100644
--- a/src/main/java/pl/psnc/dl/wf4ever/monitoring/PreservationJob.java
+++ b/src/main/java/pl/psnc/dl/wf4ever/monitoring/PreservationJob.java
@... | true | true | public void execute(JobExecutionContext context)
throws JobExecutionException {
boolean started = !HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().isActive();
URI researchObjectUri = (URI) context.getMergedJobDataMap().get(RESEARCH_OBJECT_URI);
if (started)... | public void execute(JobExecutionContext context)
throws JobExecutionException {
boolean started = !HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().isActive();
URI researchObjectUri = (URI) context.getMergedJobDataMap().get(RESEARCH_OBJECT_URI);
if (started)... |
diff --git a/src/main/java/de/craftlancer/wayofshadows/skills/Skill.java b/src/main/java/de/craftlancer/wayofshadows/skills/Skill.java
index d6bd12d..49d2d2c 100644
--- a/src/main/java/de/craftlancer/wayofshadows/skills/Skill.java
+++ b/src/main/java/de/craftlancer/wayofshadows/skills/Skill.java
@@ -1,298 +1,298 @@
pa... | true | true | public Skill(WayOfShadows instance, String key)
{
plugin = instance;
name = key;
lore = instance.getConfig().getStringList(key + ".lore");
for (String s : instance.getConfig().getStringList(key + ".items"))
{
Material mat = Material.matchMaterial(s);
... | public Skill(WayOfShadows instance, String key)
{
plugin = instance;
name = key;
lore = instance.getConfig().getStringList(key + ".lore");
for (String s : instance.getConfig().getStringList(key + ".items"))
{
Material mat = Material.matchMaterial(s);
... |
diff --git a/SimpleDemo/src/com/janrain/android/simpledemo/MainActivity.java b/SimpleDemo/src/com/janrain/android/simpledemo/MainActivity.java
index c30ac51..c01d8e7 100644
--- a/SimpleDemo/src/com/janrain/android/simpledemo/MainActivity.java
+++ b/SimpleDemo/src/com/janrain/android/simpledemo/MainActivity.java
@@ -1,2... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d(TAG, "onCreate");
setContentView(R.layout.main);
mBtnTestAuth = (Button)findViewById(R.id.btn_test_auth);
mBtnTestAuth.setOnClickListener(new View.OnClickListener() {
pub... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d(TAG, "onCreate");
setContentView(R.layout.main);
mBtnTestAuth = (Button)findViewById(R.id.btn_test_auth);
mBtnTestAuth.setOnClickListener(new View.OnClickListener() {
pub... |
diff --git a/src/main/java/fr/quoteBrowser/activity/QuotePreferencesActivity.java b/src/main/java/fr/quoteBrowser/activity/QuotePreferencesActivity.java
index c342404..35cc594 100644
--- a/src/main/java/fr/quoteBrowser/activity/QuotePreferencesActivity.java
+++ b/src/main/java/fr/quoteBrowser/activity/QuotePreferencesA... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
PreferenceCategory targetCategory = (PreferenceCategory)findPreference("quotes_providers_preference_category");
for (QuoteProviderPreferencesDescription qpd:QuoteProviderSer... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
PreferenceCategory targetCategory = (PreferenceCategory)findPreference("quotes_providers_preference_category");
for (QuoteProviderPreferencesDescription qpd:QuoteProviderSer... |
diff --git a/src/org/bonsaimind/easyminelauncher/Main.java b/src/org/bonsaimind/easyminelauncher/Main.java
index 4bcdf00..f712174 100644
--- a/src/org/bonsaimind/easyminelauncher/Main.java
+++ b/src/org/bonsaimind/easyminelauncher/Main.java
@@ -1,567 +1,567 @@
/*
* Copyright 2012 Robert 'Bobby' Zenz. All rights rese... | true | true | public static void main(String[] args) {
String jarDir = "";
String jar = "";
String lwjglDir = "";
String password = "";
String nativeDir = "";
List<String> additionalJars = new ArrayList<String>();
boolean noFrame = false;
String optionsFileFrom = "";
List<String> options = new ArrayList<String>();... | public static void main(String[] args) {
String jarDir = "";
String jar = "";
String lwjglDir = "";
String password = "";
String nativeDir = "";
List<String> additionalJars = new ArrayList<String>();
boolean noFrame = false;
String optionsFileFrom = "";
List<String> options = new ArrayList<String>();... |
diff --git a/src/rja/android/camera/CameraView.java b/src/rja/android/camera/CameraView.java
index e287cc4..288065c 100755
--- a/src/rja/android/camera/CameraView.java
+++ b/src/rja/android/camera/CameraView.java
@@ -1,155 +1,157 @@
package rja.android.camera;
import java.io.IOException;
import java.util.List;
... | true | true | public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
Parameters cameraParams = camera.getParameters();
List<Size> sizes = cameraParams.getSupportedPreviewSizes();
Log.d(LOG_CAT, "Density is " + metrics.density);
Size selectedSize = selectSize(sizes,
Math.round(wi... | public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
Parameters cameraParams = camera.getParameters();
List<Size> sizes = cameraParams.getSupportedPreviewSizes();
Log.d(LOG_CAT, "Density is " + metrics.density);
Size selectedSize = selectSize(sizes,
Math.round(wi... |
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
index c7b9eb5d..5b71dc09 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCach... | true | true | void processEntry(AbstractTreeIterator h, AbstractTreeIterator m,
DirCacheBuildIterator i, WorkingTreeIterator f) throws IOException {
DirCacheEntry dce;
String name = walk.getPathString();
if (i == null && m == null && h == null) {
// File/Directory conflict case #20
if (walk.isDirectoryFileConflict(... | void processEntry(AbstractTreeIterator h, AbstractTreeIterator m,
DirCacheBuildIterator i, WorkingTreeIterator f) throws IOException {
DirCacheEntry dce;
String name = walk.getPathString();
if (i == null && m == null && h == null) {
// File/Directory conflict case #20
if (walk.isDirectoryFileConflict(... |
diff --git a/trunk/sunriser-client/src/ru/ifmo/sunriser/view/AbstractBuildingCommandListener.java b/trunk/sunriser-client/src/ru/ifmo/sunriser/view/AbstractBuildingCommandListener.java
index 48f91ba..a657087 100644
--- a/trunk/sunriser-client/src/ru/ifmo/sunriser/view/AbstractBuildingCommandListener.java
+++ b/trunk/su... | true | true | public void commandAction(Command c, Item item) {
final TypedCommand command = (TypedCommand) c;
final BuildingItem buildingItem = (BuildingItem) item;
commandAction(command, buildingItem);
}
| public void commandAction(Command c, Item item) {
final TypedCommand command = (TypedCommand) c;
if (isApplicaple(command.getActionType())) {
final BuildingItem buildingItem = (BuildingItem) item;
commandAction(command, buildingItem);
}
}
|
diff --git a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
index 0fc7342913..22a201fb0b 100644
--- a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
@@ -1,228 +1,228 @@
package org.... | true | true | public void testUpConfigLinkConfigClearZk() throws Exception {
// test upconfig
String confsetname = "confsetone";
String[] args = new String[] {
"-zkhost",
zkServer.getZkAddress(),
"-cmd",
"upconfig",
"-confdir",
ExternalPaths.EXAMPLE_HOME + File.separator ... | public void testUpConfigLinkConfigClearZk() throws Exception {
// test upconfig
String confsetname = "confsetone";
String[] args = new String[] {
"-zkhost",
zkServer.getZkAddress(),
"-cmd",
"upconfig",
"-confdir",
ExternalPaths.EXAMPLE_HOME + File.separator ... |
diff --git a/src/main/java/freemarker/core/DynamicKeyName.java b/src/main/java/freemarker/core/DynamicKeyName.java
index 642aae41..38b09b0d 100644
--- a/src/main/java/freemarker/core/DynamicKeyName.java
+++ b/src/main/java/freemarker/core/DynamicKeyName.java
@@ -1,255 +1,255 @@
/*
* Copyright (c) 2003 The Visigoth S... | false | true | private TemplateModel dealWithRangeKey(TemplateModel targetModel,
Range range,
Environment env)
throws TemplateException
{
int start = range.left.evalToNumber(env).intValue();
int end = 0;
boo... | private TemplateModel dealWithRangeKey(TemplateModel targetModel,
Range range,
Environment env)
throws TemplateException
{
int start = range.left.evalToNumber(env).intValue();
int end = 0;
boo... |
diff --git a/tests/org.jboss.tools.arquillian.test/src/org/jboss/tools/arquillian/test/ArquillianValidatorTest.java b/tests/org.jboss.tools.arquillian.test/src/org/jboss/tools/arquillian/test/ArquillianValidatorTest.java
index 46a9624..36406af 100644
--- a/tests/org.jboss.tools.arquillian.test/src/org/jboss/tools/arqui... | true | true | public void testBuilder() throws CoreException {
IProject project = getProject(TEST_PROJECT_NAME);
boolean auto = ResourcesPlugin.getWorkspace().isAutoBuilding();
try {
setWorkspaceAutoBuild(false);
project.build(IncrementalProjectBuilder.CLEAN_BUILD, new NullProgressMonitor());
IMarker[] projectMark... | public void testBuilder() throws CoreException {
IProject project = getProject(TEST_PROJECT_NAME);
boolean auto = ResourcesPlugin.getWorkspace().isAutoBuilding();
try {
setWorkspaceAutoBuild(false);
project.build(IncrementalProjectBuilder.CLEAN_BUILD, new NullProgressMonitor());
IMarker[] projectMark... |
diff --git a/src/org/jacorb/orb/util/PrintIOR.java b/src/org/jacorb/orb/util/PrintIOR.java
index 44509ea7d..183e17626 100644
--- a/src/org/jacorb/orb/util/PrintIOR.java
+++ b/src/org/jacorb/orb/util/PrintIOR.java
@@ -1,241 +1,242 @@
/*
* JacORB - a free Java ORB
*
* Copyright (C) 1997-2001 Gerald Brose... | false | true | public static void printIOR(ParsedIOR pior, org.omg.CORBA.ORB orb)
{
org.omg.IOP.IOR ior = pior.getIOR();
System.out.println("------IOR components-----");
System.out.println("TypeId\t:\t" + ior.type_id );
org.omg.IIOP.ProfileBody_1_1[] profiles = pior.getProfileBodies();
... | public static void printIOR(ParsedIOR pior, org.omg.CORBA.ORB orb)
{
org.omg.IOP.IOR ior = pior.getIOR();
System.out.println("------IOR components-----");
System.out.println("TypeId\t:\t" + ior.type_id );
org.omg.IIOP.ProfileBody_1_1[] profiles = pior.getProfileBodies();
... |
diff --git a/pac4j-oauth/src/test/java/org/pac4j/oauth/client/TestLinkedIn2Client.java b/pac4j-oauth/src/test/java/org/pac4j/oauth/client/TestLinkedIn2Client.java
index 0dabda50..bccac06f 100644
--- a/pac4j-oauth/src/test/java/org/pac4j/oauth/client/TestLinkedIn2Client.java
+++ b/pac4j-oauth/src/test/java/org/pac4j/oau... | true | true | protected void verifyProfile(final UserProfile userProfile) {
final LinkedIn2Profile profile = (LinkedIn2Profile) userProfile;
logger.debug("profile : {}", profile);
assertEquals("JJjS_5BOzW", profile.getId());
assertEquals(LinkedIn2Profile.class.getSimpleName() + UserProfile.SEPARAT... | protected void verifyProfile(final UserProfile userProfile) {
final LinkedIn2Profile profile = (LinkedIn2Profile) userProfile;
logger.debug("profile : {}", profile);
assertEquals("JJjS_5BOzW", profile.getId());
assertEquals(LinkedIn2Profile.class.getSimpleName() + UserProfile.SEPARAT... |
diff --git a/OSXmt/src/com/de/kofi/osxmt/OSXmt.java b/OSXmt/src/com/de/kofi/osxmt/OSXmt.java
index ffd3241..e09e805 100644
--- a/OSXmt/src/com/de/kofi/osxmt/OSXmt.java
+++ b/OSXmt/src/com/de/kofi/osxmt/OSXmt.java
@@ -1,302 +1,302 @@
/**
* ##library.name##
* ##library.sentence##
* ##library.url##
*
* Copyrigh... | true | true | public static void mtcallback(int frame, double timestamp, int id, int state, float size, float x, float y, float vx, float vy, float angle, float majorAxis, float minorAxis, int lastOfFrame) {
if(p == null || (needsFocus && !p.frame.isFocused()))
return;
if(catchCursor) {
Rectangle r = p.frame.getBoun... | public static void mtcallback(int frame, double timestamp, int id, int state, float size, float x, float y, float vx, float vy, float angle, float majorAxis, float minorAxis, int lastOfFrame) {
if(p == null || (needsFocus && !p.frame.isFocused()))
return;
if((!needsFocus || (needsFocus && p.frame.isFocuse... |
diff --git a/src/main/java/org/clapper/curn/plugins/IgnoreOldArticlesPlugIn.java b/src/main/java/org/clapper/curn/plugins/IgnoreOldArticlesPlugIn.java
index add7328..8c182ec 100644
--- a/src/main/java/org/clapper/curn/plugins/IgnoreOldArticlesPlugIn.java
+++ b/src/main/java/org/clapper/curn/plugins/IgnoreOldArticlesPlu... | false | true | public boolean runPostFeedProcessPlugIn(FeedInfo feedInfo,
FeedCache feedCache,
RSSChannel channel)
throws CurnException
{
Duration duration = perFeedSetting.get(feedInfo);
if (duration == null)
... | public boolean runPostFeedProcessPlugIn(FeedInfo feedInfo,
FeedCache feedCache,
RSSChannel channel)
throws CurnException
{
Duration duration = perFeedSetting.get(feedInfo);
if (duration == null)
... |
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java
index b508480d8..ad06aa841 100644
--- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java
+++ b/htmlunit/src/... | true | true | public void testClick_WithPosition() throws Exception {
final String htmlContent
= "<html><head><title>foo</title></head><body>"
+ "<form id='form1'>"
+ "<input type='image' name='aButton' value='foo'/>"
+ "<input type='image' name='button'... | public void testClick_WithPosition() throws Exception {
final String htmlContent
= "<html><head><title>foo</title></head><body>"
+ "<form id='form1'>"
+ "<input type='image' name='aButton' value='foo'/>"
+ "<input type='image' name='button'... |
diff --git a/supersql/codegenerator/HTML/HTMLIfCondition.java b/supersql/codegenerator/HTML/HTMLIfCondition.java
index 3f4722d..d969b55 100644
--- a/supersql/codegenerator/HTML/HTMLIfCondition.java
+++ b/supersql/codegenerator/HTML/HTMLIfCondition.java
@@ -1,58 +1,59 @@
package supersql.codegenerator.HTML;
import o... | false | true | public Element createNode(ExtList data_info){
String conditionResult = (String) data_info.get(0);
if((((conditionResult)).toString()).equals("t")){
if(thenTfe instanceof Connector || thenTfe instanceof Attribute
|| thenTfe instanceof Function || thenTfe instanceof IfCondition)
return (Element) thenTfe.c... | public Element createNode(ExtList data_info){
String conditionResult = (String) data_info.get(0);
if((((conditionResult)).toString()).equals("t")){
if(thenTfe instanceof Connector || thenTfe instanceof Attribute
|| thenTfe instanceof Function || thenTfe instanceof IfCondition)
return (Element) thenTfe.c... |
diff --git a/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlinkDetector.java b/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlinkDetector.java
index 33a9ddb9b..639685478 100644
--- a/jsf/plugins/org.jboss.too... | false | true | public IHyperlink[] detectHyperlinks(ITextViewer textViewer,
IRegion region, boolean canShowMultipleHyperlinks) {
if(!(textViewer instanceof JSPStructuredTextViewer))
return null;
JSPStructuredTextViewer viewer = (JSPStructuredTextViewer) textViewer;
JSPTextEditor editor = viewer.getEditor();
... | public IHyperlink[] detectHyperlinks(ITextViewer textViewer,
IRegion region, boolean canShowMultipleHyperlinks) {
if(!(textViewer instanceof JSPStructuredTextViewer))
return null;
JSPStructuredTextViewer viewer = (JSPStructuredTextViewer) textViewer;
JSPTextEditor editor = viewer.getEditor();
... |
diff --git a/biz.aQute.bndlib/src/aQute/bnd/component/TagResource.java b/biz.aQute.bndlib/src/aQute/bnd/component/TagResource.java
index 814a2b628..4f3a8544e 100644
--- a/biz.aQute.bndlib/src/aQute/bnd/component/TagResource.java
+++ b/biz.aQute.bndlib/src/aQute/bnd/component/TagResource.java
@@ -1,33 +1,33 @@
package ... | true | true | public void write(OutputStream out) throws UnsupportedEncodingException {
OutputStreamWriter ow = new OutputStreamWriter(out, "UTF-8");
PrintWriter pw = new PrintWriter(ow);
pw.println("<?xml version='1.1'?>");
try {
tag.print(0, pw);
}
finally {
pw.flush();
}
}
| public void write(OutputStream out) throws UnsupportedEncodingException {
OutputStreamWriter ow = new OutputStreamWriter(out, "UTF-8");
PrintWriter pw = new PrintWriter(ow);
pw.println("<?xml version=\"1.0\"?>");
try {
tag.print(0, pw);
}
finally {
pw.flush();
}
}
|
diff --git a/src/main/java/com/github/glue/mvc/covertor/BooleanConvertor.java b/src/main/java/com/github/glue/mvc/covertor/BooleanConvertor.java
index 97426b5..c1f6b90 100644
--- a/src/main/java/com/github/glue/mvc/covertor/BooleanConvertor.java
+++ b/src/main/java/com/github/glue/mvc/covertor/BooleanConvertor.java
@@ ... | true | true | public Object convert(String[] parameters) {
return Boolean.valueOf(parameters[0]);
}
| public Object convert(String[] parameters) {
if(parameters == null){
return false;
}
return Boolean.valueOf(parameters[0]);
}
|
diff --git a/src/at/roadrunner/android/model/TemperatureSensor.java b/src/at/roadrunner/android/model/TemperatureSensor.java
index 1892a08..c41dd43 100644
--- a/src/at/roadrunner/android/model/TemperatureSensor.java
+++ b/src/at/roadrunner/android/model/TemperatureSensor.java
@@ -1,39 +1,39 @@
package at.roadrunner.an... | true | true | public TemperatureSensor(String url, double minTemperature, double maxTemperature) {
super(url);
_type = SensorType.Temperature;
_minTemperature = minTemperature;
_maxTemperature = maxTemperature;
}
| public TemperatureSensor(String url, Protocol protocol, double minTemperature, double maxTemperature) {
super(url, protocol);
_type = SensorType.Temperature;
_minTemperature = minTemperature;
_maxTemperature = maxTemperature;
}
|
diff --git a/brix-core/src/main/java/brix/web/admin/AdminPanel.java b/brix-core/src/main/java/brix/web/admin/AdminPanel.java
index e49c2bb..bd2bd05 100644
--- a/brix-core/src/main/java/brix/web/admin/AdminPanel.java
+++ b/brix-core/src/main/java/brix/web/admin/AdminPanel.java
@@ -1,194 +1,193 @@
package brix.web.admin... | false | true | private void setupTabbedPanel()
{
if (tabbedPanel != null)
{
tabbedPanel.remove();
}
List<IBrixTab> tabs = new ArrayList<IBrixTab>();
Brix brix = Brix.get();
for (Plugin p : brix.getPlugins())
{
List<IBrixTab> pluginTabs = p.newTa... | private void setupTabbedPanel()
{
if (tabbedPanel != null)
{
tabbedPanel.remove();
}
List<IBrixTab> tabs = new ArrayList<IBrixTab>();
Brix brix = Brix.get();
for (Plugin p : brix.getPlugins())
{
List<IBrixTab> pluginTabs = p.newTa... |
diff --git a/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java b/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java
index 9a1c02b..f307269 100644
--- a/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java
+++ b/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java
@@ -1,1... | true | true | public void execute() throws BuildException
{
initArgs();
if (dataFile != null)
{
addArg("--datafile");
addArg(dataFile);
}
if (toDir != null)
{
addArg("--destination");
addArg(toDir.toString());
}
// ignoreRegex.setRegex() is never called, but that's ok
// because ant sets it somehow... | public void execute() throws BuildException
{
initArgs();
if (dataFile != null)
{
addArg("--datafile");
addArg(dataFile);
}
if (toDir != null)
{
addArg("--destination");
addArg(toDir.toString());
}
// ignoreRegex.setRegex() is never called, but that's ok
// because ant sets it somehow... |
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java
index bd7f30b8..2a886fa6 100644
--- a/src/com/android/mms/transaction/MessagingNotification.java
+++ b/src/com/android/mms/transaction/MessagingNotification.java
@@ -1,1301 +1,1305 @@
/*... | false | true | private static void updateNotification(
Context context,
boolean isNew,
int uniqueThreadCount) {
// If the user has turned off notifications in settings, don't do any notifying.
if (!MessagingPreferenceActivity.getNotificationEnabled(context)) {
if (DE... | private static void updateNotification(
Context context,
boolean isNew,
int uniqueThreadCount) {
// If the user has turned off notifications in settings, don't do any notifying.
if (!MessagingPreferenceActivity.getNotificationEnabled(context)) {
if (DE... |
diff --git a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/classifier/Classifier.java b/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/classifier/Classifier.java
index cefdad09d..c062850f8 100644
--- a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/classifier/Classifier.java
+++ b/eclipse/plugi... | true | true | private void classify() {
try {
IMarker[] markers = actor.getFile().findMarkers(IMarker.PROBLEM,
true, IResource.DEPTH_INFINITE);
for (IMarker marker : markers) {
if (marker.getAttribute(IMarker.SEVERITY,
IMarker.SEVERITY_ERROR) == IMarker.SEVERITY_INFO) {
marker.delete();
}
}
} ca... | private void classify() {
try {
IMarker[] markers = actor.getFile().findMarkers(IMarker.PROBLEM,
true, IResource.DEPTH_INFINITE);
for (IMarker marker : markers) {
if (marker.getAttribute(IMarker.SEVERITY,
IMarker.SEVERITY_ERROR) == IMarker.SEVERITY_INFO) {
marker.delete();
}
}
} ca... |
diff --git a/src/net/kevxu/purdueassist/course/ScheduleDetail.java b/src/net/kevxu/purdueassist/course/ScheduleDetail.java
index e95ddff..aa84cee 100644
--- a/src/net/kevxu/purdueassist/course/ScheduleDetail.java
+++ b/src/net/kevxu/purdueassist/course/ScheduleDetail.java
@@ -1,646 +1,647 @@
/*
* ScheduleDetail.java... | true | true | private void setRemainingInfo(ScheduleDetailEntry entry,
String remainingInfoHtml) {
final int NOT_RECORD = 0;
final int PREREQUISTES = 1;
final int RESTRICTIONS = 2;
final int GENERAL_REQUIREMENTS = 3;
int recordType = NOT_RECORD;
String prerequisitesString = null;
String restrictionsString = null;... | private void setRemainingInfo(ScheduleDetailEntry entry,
String remainingInfoHtml) {
final int NOT_RECORD = 0;
final int PREREQUISTES = 1;
final int RESTRICTIONS = 2;
final int GENERAL_REQUIREMENTS = 3;
int recordType = NOT_RECORD;
String prerequisitesString = null;
String restrictionsString = null;... |
diff --git a/src/ai/WordGetter.java b/src/ai/WordGetter.java
index 524c951..aa997da 100644
--- a/src/ai/WordGetter.java
+++ b/src/ai/WordGetter.java
@@ -1,59 +1,61 @@
package ai;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import board.Board;
public class WordGetter {
public sta... | true | true | private static Set<int[][]> canMake(char[][] letterBoard, String word,
int index, int[][] play) {
// If we've already filled
if (index == word.length()) {
return new HashSet<int[][]>();
}
// Which character are we looking for a copy of in the letterboard?
char[] wordarray = word.toCharArray();
char ... | private static Set<int[][]> canMake(char[][] letterBoard, String word,
int index, int[][] play) {
// If we've already filled
if (index == word.length()) {
HashSet<int[][]> singlePlay = new HashSet<int[][]>();
singlePlay.add(play);
return singlePlay;
}
// Which character are we looking for a copy o... |
diff --git a/src/au/com/addstar/birthdaygift/Database.java b/src/au/com/addstar/birthdaygift/Database.java
index 690c8af..485995e 100644
--- a/src/au/com/addstar/birthdaygift/Database.java
+++ b/src/au/com/addstar/birthdaygift/Database.java
@@ -1,257 +1,255 @@
package au.com.addstar.birthdaygift;
/*
* BirthdayGift
... | false | true | public boolean OpenDatabase() {
try {
Class.forName("org.sqlite.JDBC");
Conn = DriverManager.getConnection("jdbc:sqlite:plugins/" + plugin.getName() + "/" + DBFilename);
IsConnected = true;
if (TableExists(Conn, "birthdaygift")) {
// Check/update existing table
if (!ColumnExists(Conn, "birthd... | public boolean OpenDatabase() {
try {
Class.forName("org.sqlite.JDBC");
Conn = DriverManager.getConnection("jdbc:sqlite:plugins/" + plugin.getName() + "/" + DBFilename);
IsConnected = true;
if (TableExists(Conn, "birthdaygift")) {
// Check/update existing table
if (!ColumnExists(Conn, "birthd... |
diff --git a/sandbox/ast/src/org/python/antlr/PythonTreeWalker.java b/sandbox/ast/src/org/python/antlr/PythonTreeWalker.java
index ddcb79b6..d5bdd160 100644
--- a/sandbox/ast/src/org/python/antlr/PythonTreeWalker.java
+++ b/sandbox/ast/src/org/python/antlr/PythonTreeWalker.java
@@ -1,120 +1,129 @@
package org.python.a... | true | true | public PythonTree parse(String[] args) throws Exception {
PythonTree result = null;
CharStream input = new ANTLRFileStream(args[0]);
PythonLexer lexer = new PyLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
tokens.discardOffChannelTokens(true);
PythonTokenSource indentedSource = new ... | public PythonTree parse(String[] args) throws Exception {
PythonTree result = null;
CharStream input = new ANTLRFileStream(args[0]);
PythonLexer lexer = new PyLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
tokens.discardOffChannelTokens(true);
PythonTokenSource indentedSource = new ... |
diff --git a/src/GettingAllRequest.java b/src/GettingAllRequest.java
index 44ee4cc..a7d2e59 100644
--- a/src/GettingAllRequest.java
+++ b/src/GettingAllRequest.java
@@ -1,40 +1,39 @@
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.u... | true | true | List<String> getResults() throws ProcessingException {
synchronized (connect) {
try {
List<String> list = new ArrayList<String>();
Statement stmt = connect.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM users WHERE TRUE");
... | List<String> getResults() throws ProcessingException {
synchronized (connect) {
try {
List<String> list = new ArrayList<String>();
Statement stmt = connect.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM users WHERE TRUE");
... |
diff --git a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/HistogramPanel.java b/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/HistogramPanel.java
index 818663949..719bddafc 100644
--- a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/stat/HistogramPanel.java
+++ b/beam-visat... | true | true | public void compute(final Mask selectedMask) {
final int numBins = ((Number) numBinsParam.getValue()).intValue();
final boolean autoMinMaxEnabled = getAutoMinMaxEnabled();
final Range range;
if (autoMinMaxEnabled) {
range = null; // auto compute range
} else {
... | public void compute(final Mask selectedMask) {
final int numBins = ((Number) numBinsParam.getValue()).intValue();
final boolean autoMinMaxEnabled = getAutoMinMaxEnabled();
final Range range;
if (autoMinMaxEnabled) {
range = null; // auto compute range
} else {
... |
diff --git a/extensions/gdata/src/com/google/refine/extension/gdata/GDataExtension.java b/extensions/gdata/src/com/google/refine/extension/gdata/GDataExtension.java
index d4f977ba..a86afc86 100644
--- a/extensions/gdata/src/com/google/refine/extension/gdata/GDataExtension.java
+++ b/extensions/gdata/src/com/google/refi... | true | true | static public List<List<String>> parseFusionTablesResults(GDataRequest request) throws IOException {
List<List<String>> rows = new ArrayList<List<String>>();
List<String> row = null;
Scanner scanner = new Scanner(request.getResponseStream(), "UTF-8");
while (scanner.hasNextL... | static public List<List<String>> parseFusionTablesResults(GDataRequest request) throws IOException {
List<List<String>> rows = new ArrayList<List<String>>();
List<String> row = null;
Scanner scanner = new Scanner(request.getResponseStream(), "UTF-8");
while (scanner.hasNextL... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/filters/SingleThreadFilter.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/filters/SingleThreadFilter.java
index 8ce370f82..214f2b... | true | true | public boolean select(final Viewer viewer, Object parentElement, Object element) {
if (parentElement instanceof TreePath) {
parentElement = ((TreePath) parentElement).getLastSegment();
}
if (parentElement instanceof IProcessContextNode && element instanceof IProcessContextNode) {
final AtomicBoolean select... | public boolean select(final Viewer viewer, Object parentElement, Object element) {
if (parentElement instanceof TreePath) {
parentElement = ((TreePath) parentElement).getLastSegment();
}
if (parentElement instanceof IProcessContextNode && element instanceof IProcessContextNode) {
final AtomicBoolean select... |
diff --git a/src/ibis/satin/impl/sharedObjects/SOInvocationReceiver.java b/src/ibis/satin/impl/sharedObjects/SOInvocationReceiver.java
index 8517211e..bfa49382 100644
--- a/src/ibis/satin/impl/sharedObjects/SOInvocationReceiver.java
+++ b/src/ibis/satin/impl/sharedObjects/SOInvocationReceiver.java
@@ -1,48 +1,48 @@
/*... | true | true | public void run() {
while (true) {
try {
Object o = omc.receive();
if (o instanceof SOInvocationRecord) {
SOInvocationRecord soir = (SOInvocationRecord) o;
soLogger.debug("SATIN '" + s.ident.name() + "': "
... | public void run() {
while (true) {
try {
Object o = omc.receive();
if (o instanceof SOInvocationRecord) {
SOInvocationRecord soir = (SOInvocationRecord) o;
soLogger.debug("SATIN '" + s.ident.name() + "': "
... |
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracCustomQueryPage.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracCustomQueryPage.java
index 6304ee496..dc6c1dbc9 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard... | true | true | private void updateAttributesFromRepository(final boolean force) {
TracRepositoryConnector connector = (TracRepositoryConnector) TasksUiPlugin.getRepositoryManager()
.getRepositoryConnector(TracCorePlugin.REPOSITORY_KIND);
final ITracClient client;
try {
client = connector.getClientManager().getRepository... | private void updateAttributesFromRepository(final boolean force) {
TracRepositoryConnector connector = (TracRepositoryConnector) TasksUiPlugin.getRepositoryManager()
.getRepositoryConnector(TracCorePlugin.REPOSITORY_KIND);
final ITracClient client;
try {
client = connector.getClientManager().getRepository... |
diff --git a/projects/server/classygamesserver/src/edu/selu/android/classygames/NewMove.java b/projects/server/classygamesserver/src/edu/selu/android/classygames/NewMove.java
index aba286d..f639c10 100644
--- a/projects/server/classygamesserver/src/edu/selu/android/classygames/NewMove.java
+++ b/projects/server/classyg... | true | true | protected void doPost(final HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
response.setContentType(Utilities.CONTENT_TYPE_JSON);
PrintWriter printWriter = response.getWriter();
final String user_opponent_parameter = request.getParameter(Utilities.POST_DATA_USER... | protected void doPost(final HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
response.setContentType(Utilities.CONTENT_TYPE_JSON);
PrintWriter printWriter = response.getWriter();
final String user_opponent_parameter = request.getParameter(Utilities.POST_DATA_USER... |
diff --git a/src/com/neko68k/M1/M1Android.java b/src/com/neko68k/M1/M1Android.java
index 5e86962..0641368 100644
--- a/src/com/neko68k/M1/M1Android.java
+++ b/src/com/neko68k/M1/M1Android.java
@@ -1,545 +1,546 @@
package com.neko68k.M1;
import java.util.ArrayList;
import java.util.Map;
import java.util.Timer;... | true | true | protected void onActivityResult (int requestCode, int resultCode, Intent data){
super.onActivityResult(requestCode, resultCode, data);
if(resultCode == RESULT_OK){
if(requestCode == 1 ){
//playerService.//.startService(new Intent(this, PlayerService.class));
if(pla... | protected void onActivityResult (int requestCode, int resultCode, Intent data){
super.onActivityResult(requestCode, resultCode, data);
if(resultCode == RESULT_OK){
if(requestCode == 1 ){
//playerService.//.startService(new Intent(this, PlayerService.class));
if(pla... |
diff --git a/Orego/src/orego/patternanalyze/PatternCounter5.java b/Orego/src/orego/patternanalyze/PatternCounter5.java
index 1cb3f1bb..581a8f3e 100644
--- a/Orego/src/orego/patternanalyze/PatternCounter5.java
+++ b/Orego/src/orego/patternanalyze/PatternCounter5.java
@@ -1,169 +1,169 @@
package orego.patternanalyze;
... | true | true | public void analyze(Board board) {
int turn = board.getTurn();
Board patternBoard = new Board();
playedThisGame.clear();
seenThisGame.clear();
int legality = patternBoard.play(board.getMove(0));
assert legality == PLAY_OK;
for (int t = 1; t < turn; t++) {
int currentPlay = board.getMove(t);
int las... | public void analyze(Board board) {
int turn = board.getTurn();
Board patternBoard = new Board();
playedThisGame.clear();
seenThisGame.clear();
int legality = patternBoard.play(board.getMove(0));
assert legality == PLAY_OK;
for (int t = 1; t < turn; t++) {
int currentPlay = board.getMove(t);
int las... |
diff --git a/common/java/com/android/common/contacts/DataUsageStatUpdater.java b/common/java/com/android/common/contacts/DataUsageStatUpdater.java
index de1cddd..6ff3807 100644
--- a/common/java/com/android/common/contacts/DataUsageStatUpdater.java
+++ b/common/java/com/android/common/contacts/DataUsageStatUpdater.java... | true | true | private boolean update(Collection<Long> contactIds, Collection<Long> dataIds, String type) {
final long currentTimeMillis = System.currentTimeMillis();
boolean successful = false;
// From ICS we can use per-contact-method structure. We'll check if the device supports it
// and call... | private boolean update(Collection<Long> contactIds, Collection<Long> dataIds, String type) {
final long currentTimeMillis = System.currentTimeMillis();
boolean successful = false;
// From ICS we can use per-contact-method structure. We'll check if the device supports it
// and call... |
diff --git a/src/uk/co/sticksoft/adce/help/TextActivity.java b/src/uk/co/sticksoft/adce/help/TextActivity.java
index f6eba05..d3dde15 100644
--- a/src/uk/co/sticksoft/adce/help/TextActivity.java
+++ b/src/uk/co/sticksoft/adce/help/TextActivity.java
@@ -1,64 +1,64 @@
package uk.co.sticksoft.adce.help;
import java.io... | true | true | protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
FrameLayout lyt = new FrameLayout(this);
ScrollView scroll = new ScrollView(this);
lyt.addView(scroll);
TextView text = new TextView(this);
scroll.addView(text);
int textResID = getIntent().getIntExtra("... | protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
FrameLayout lyt = new FrameLayout(this);
ScrollView scroll = new ScrollView(this);
lyt.addView(scroll);
TextView text = new TextView(this);
scroll.addView(text);
int textResID = getIntent().getIntExtra("... |
diff --git a/src/de/micmun/android/miwotreff/DbAdapter.java b/src/de/micmun/android/miwotreff/DbAdapter.java
index 40e6643..13c4752 100644
--- a/src/de/micmun/android/miwotreff/DbAdapter.java
+++ b/src/de/micmun/android/miwotreff/DbAdapter.java
@@ -1,275 +1,275 @@
/**
* DbAdapter.java
*
* Copyright 2012 by Micha... | false | true | private String createQuery(String q) {
String query = null;
if (q == null) {
// do nothing -> query is null
} else if (q.startsWith("-")) {
String s = q.substring(1, q.length()-1);
query = "person like '%" + s + "%'";
} else if (q.charAt(0) >= '0' && q.charAt... | private String createQuery(String q) {
String query = null;
if (q == null) {
// do nothing -> query is null
} else if (q.startsWith("-")) {
String s = q.substring(1, q.length()-1).toUpperCase();
query = "upper(person) like '%" + s + "%'";
} else if (q.charAt(... |
diff --git a/src/ox/stackgame/stackmachine/StackMachine.java b/src/ox/stackgame/stackmachine/StackMachine.java
index b0f2836..ad933c9 100644
--- a/src/ox/stackgame/stackmachine/StackMachine.java
+++ b/src/ox/stackgame/stackmachine/StackMachine.java
@@ -1,374 +1,374 @@
package ox.stackgame.stackmachine;
import java.... | true | true | public void dump() {
System.out.println("=== PROGRAM ===");
// int lbound = Math.max(0, programCounter - 5);
// int ubound = Math.min(instructions.size(), programCounter + 5);
for (int i = 0; i < instructions.size(); i++ ) {
Instruction op = instructions.g... | public void dump() {
System.out.println("=== PROGRAM ===");
// int lbound = Math.max(0, programCounter - 5);
// int ubound = Math.min(instructions.size(), programCounter + 5);
for (int i = 0; i < instructions.size(); i++ ) {
Instruction op = instructions.g... |
diff --git a/source/com/mucommander/Launcher.java b/source/com/mucommander/Launcher.java
index 23f3b482..307b01de 100644
--- a/source/com/mucommander/Launcher.java
+++ b/source/com/mucommander/Launcher.java
@@ -1,507 +1,505 @@
/*
* This file is part of muCommander, http://www.mucommander.com
* Copyright (C) 2002-2... | false | true | public static void main(String args[]) {
int i; // Index in the command line arguments.
// Initialises fields.
fatalWarnings = false;
verbose = true;
useSplash = true;
// - Command line parsing -------------------------------------
// -------------... | public static void main(String args[]) {
int i; // Index in the command line arguments.
// Initialises fields.
fatalWarnings = false;
verbose = true;
useSplash = true;
// - Command line parsing -------------------------------------
// -------------... |
diff --git a/Calendar/src/calendar/driver.java b/Calendar/src/calendar/driver.java
index 95f6ee3..56db372 100644
--- a/Calendar/src/calendar/driver.java
+++ b/Calendar/src/calendar/driver.java
@@ -1,114 +1,114 @@
/**
* Name: Christina Black, Kelly Hutchison, Nicole Hart
* Date: 10/5/2012
* Section: 002
* Proj... | true | true | public static void main(String[] args) throws IOException {
Scanner input = new Scanner(System.in);
int hrPart = 0;
int minPart = 0;
int endHr = 0;
int endMin = 0;
String name;
BufferedReader consoleIn = new BufferedReader(new InputStreamReader(System.in));
... | public static void main(String[] args) throws IOException {
Scanner input = new Scanner(System.in);
int hrPart = 0;
int minPart = 0;
int endHr = 0;
int endMin = 0;
String name;
BufferedReader consoleIn = new BufferedReader(new InputStreamReader(System.in));
... |
diff --git a/lombok-plugin/src/main/java/de/plushnikov/intellij/plugin/provider/LombokAugmentProvider.java b/lombok-plugin/src/main/java/de/plushnikov/intellij/plugin/provider/LombokAugmentProvider.java
index d2b3e265..c26ced6a 100644
--- a/lombok-plugin/src/main/java/de/plushnikov/intellij/plugin/provider/LombokAugmen... | false | true | public <Psi extends PsiElement> List<Psi> getAugments(@NotNull PsiElement element, @NotNull Class<Psi> type) {
List<Psi> result = Collections.emptyList();
// Expecting that we are only augmenting an PsiClass
// Don't filter !isPhysical elements or code auto completion will not work
if (!(element insta... | public <Psi extends PsiElement> List<Psi> getAugments(@NotNull PsiElement element, @NotNull Class<Psi> type) {
List<Psi> result = Collections.emptyList();
// Expecting that we are only augmenting an PsiClass
// Don't filter !isPhysical elements or code auto completion will not work
if (!(element insta... |
diff --git a/chouette-core/src/main/java/fr/certu/chouette/model/neptune/VehicleJourney.java b/chouette-core/src/main/java/fr/certu/chouette/model/neptune/VehicleJourney.java
index e385f951..967de21d 100644
--- a/chouette-core/src/main/java/fr/certu/chouette/model/neptune/VehicleJourney.java
+++ b/chouette-core/src/mai... | true | true | public String toString(String indent,int level)
{
StringBuilder sb = new StringBuilder(super.toString(indent,level));
sb.append("\n").append(indent).append("serviceStatusValue = ").append(serviceStatusValue);
sb.append("\n").append(indent).append("transportMode = ").append(transportMode);
sb.append("\n").appe... | public String toString(String indent,int level)
{
StringBuilder sb = new StringBuilder(super.toString(indent,level));
sb.append("\n").append(indent).append("serviceStatusValue = ").append(serviceStatusValue);
sb.append("\n").append(indent).append("transportMode = ").append(transportMode);
sb.append("\n").appe... |
diff --git a/motech-mobile-imp/src/main/java/com/dreamoval/motech/imp/util/ParamExpressionValidator.java b/motech-mobile-imp/src/main/java/com/dreamoval/motech/imp/util/ParamExpressionValidator.java
index 6e151e07..e5ee645b 100644
--- a/motech-mobile-imp/src/main/java/com/dreamoval/motech/imp/util/ParamExpressionValida... | false | true | public boolean validate(IncomingMessageFormParameter param) {
String paramType = param.getIncomingMsgFormParamDefinition().getParamType().toUpperCase();
if (!Pattern.matches(expression, param.getValue().trim())) {
param.setErrCode(1);
param.setErrText("wrong format");
... | public boolean validate(IncomingMessageFormParameter param) {
String paramType = param.getIncomingMsgFormParamDefinition().getParamType().toUpperCase();
if (!Pattern.matches(expression, param.getValue().trim())) {
param.setErrCode(1);
param.setErrText("wrong format");
... |
diff --git a/src/main/java/org/kitteh/tag/TagAPI.java b/src/main/java/org/kitteh/tag/TagAPI.java
index 7559545..f9ea121 100644
--- a/src/main/java/org/kitteh/tag/TagAPI.java
+++ b/src/main/java/org/kitteh/tag/TagAPI.java
@@ -1,114 +1,115 @@
/* Copyright 2012 Matt Baxter
*
* Licensed under the Apache License, Versi... | true | true | private void handlePacket(Packet20NamedEntitySpawn packet, Player destination) {
final String packetName = this.entityIDMap.get(packet.a);
if (packetName == null) {
this.getLogger().fine("Encountered a packet with an unknown entityID. Discarded. ID " + packet.a);
}
final ... | private void handlePacket(Packet20NamedEntitySpawn packet, Player destination) {
final String packetName = this.entityIDMap.get(packet.a);
if (packetName == null) {
this.getLogger().fine("Encountered a packet with an unknown entityID. Discarded. ID " + packet.a);
return;
... |
diff --git a/src/org/infuse/hexview/MainFrame.java b/src/org/infuse/hexview/MainFrame.java
index 9e3e54e..10b2690 100644
--- a/src/org/infuse/hexview/MainFrame.java
+++ b/src/org/infuse/hexview/MainFrame.java
@@ -1,100 +1,101 @@
package org.infuse.hexview;
import java.awt.BorderLayout;
import java.awt.Font;
impor... | true | true | private void initGUI() throws IOException {
// Main window
setTitle("hexview");
setSize(568, 320);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setLayout(new BorderLayout());
// Hex view
_table = new JTable(new HexViewTableModel(null));
_table.setFont(... | private void initGUI() throws IOException {
// Main window
setTitle("hexview");
setSize(568, 320);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setLayout(new BorderLayout());
// Hex view
_table = new JTable(new HexViewTableModel(null));
_table.setFont(... |
diff --git a/spring-social-config/src/main/java/org/springframework/social/config/xml/JdbcConnectionRepositoryElementParser.java b/spring-social-config/src/main/java/org/springframework/social/config/xml/JdbcConnectionRepositoryElementParser.java
index 665ff25..5c38702 100644
--- a/spring-social-config/src/main/java/or... | false | true | public BeanDefinition parse(Element element, ParserContext parserContext) {
BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder
.genericBeanDefinition(JdbcConnectionRepository.class);
String jdbcTemplate = element.getAttribute("jdbc-template");
beanBuilder.addConstructorArgReference(jdbcTemplate);
Stri... | public BeanDefinition parse(Element element, ParserContext parserContext) {
BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);
String dataSource = element.getAttribute("data-source");
beanBuilder.addConstructorArgReference(dataSource);
String stri... |
diff --git a/src/de/ueller/midlet/gps/Trace.java b/src/de/ueller/midlet/gps/Trace.java
index 4f69d113..3fcd23cc 100644
--- a/src/de/ueller/midlet/gps/Trace.java
+++ b/src/de/ueller/midlet/gps/Trace.java
@@ -1,2687 +1,2687 @@
/*
* GpsMid - Copyright (c) 2007 Harald Mueller james22 at users dot sourceforge dot net
*... | true | true | public void commandAction(Command c, Displayable d) {
updateLastUserActionTime();
try {
if((keyboardLocked) && (d != null)) {
// show alert in keypressed() that keyboard is locked
keyPressed(0);
return;
}
if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD])
|| (c == CMDS[P... | public void commandAction(Command c, Displayable d) {
updateLastUserActionTime();
try {
if((keyboardLocked) && (d != null)) {
// show alert in keypressed() that keyboard is locked
keyPressed(0);
return;
}
if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD])
|| (c == CMDS[P... |
diff --git a/components/hostobjects/org.jaggeryjs.hostobjects.oauth/src/main/java/org/jaggeryjs/hostobjects/oauth/OAuthHostObject.java b/components/hostobjects/org.jaggeryjs.hostobjects.oauth/src/main/java/org/jaggeryjs/hostobjects/oauth/OAuthHostObject.java
index 281c0d9..91d2c24 100644
--- a/components/hostobjects/or... | true | true | public static Response jsFunction_sendOAuthRequest(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws ScriptException {
OAuthHostObject oauthho = (OAuthHostObject) thisObj;
Verb verb = Verb.GET;
if (args.length >= 3) {
if (!(args[0] == Context.getUndefinedVal... | public static Response jsFunction_sendOAuthRequest(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws ScriptException {
OAuthHostObject oauthho = (OAuthHostObject) thisObj;
Verb verb = Verb.GET;
if (args.length >= 3) {
if (!(args[0] == Context.getUndefinedVal... |
diff --git a/src/org/objectweb/proactive/core/body/migration/MigratableBody.java b/src/org/objectweb/proactive/core/body/migration/MigratableBody.java
index 0a2cb91e0..af6dba26b 100644
--- a/src/org/objectweb/proactive/core/body/migration/MigratableBody.java
+++ b/src/org/objectweb/proactive/core/body/migration/Migrata... | true | true | protected UniversalBody internalMigrateTo(Node node, boolean byCopy)
throws MigrationException {
UniqueID savedID = null;
UniversalBody migratedBody = null;
if (!isAlive()) {
throw new MigrationException(
"Attempt to migrate a dead body that has been term... | protected UniversalBody internalMigrateTo(Node node, boolean byCopy)
throws MigrationException {
UniqueID savedID = null;
UniversalBody migratedBody = null;
if (!isAlive()) {
throw new MigrationException(
"Attempt to migrate a dead body that has been term... |
diff --git a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/dashboard/view/DashboardView.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/dashboard/view/DashboardView.java
index 259470797..06088f785 100644
--- a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/dashb... | true | true | public DashboardView(Binder uiBinder, Translations translations) {
initWidget(uiBinder.createAndBindUi(this));
getDatasourcesLink().setHref("#" + Places.PROJECTS);
getIdentifiersLink().setHref("#" + Places.IDENTIFIERS);
getReportsLink().setHref("#" + Places.REPORT_TEMPLATES);
getFilesLink().setHre... | public DashboardView(Binder uiBinder, Translations translations) {
initWidget(uiBinder.createAndBindUi(this));
getDatasourcesLink().setHref("#" + Places.PROJECTS);
getIdentifiersLink().setHref("#" + Places.ADMINISTRATION + "/" + Places.IDENTIFIERS);
getReportsLink().setHref("#" + Places.ADMINISTRATION... |
diff --git a/src/org/ohmage/query/impl/UserQueries.java b/src/org/ohmage/query/impl/UserQueries.java
index e40940b3..dee4e73c 100644
--- a/src/org/ohmage/query/impl/UserQueries.java
+++ b/src/org/ohmage/query/impl/UserQueries.java
@@ -1,2229 +1,2229 @@
/*****************************************************************... | true | true | public QueryResultsList<UserInformation> getUserInformation(
final String requesterUsername,
final Collection<String> usernames,
final Collection<String> emailAddresses,
final Boolean admin,
final Boolean enabled,
final Boolean newAccount,
final Boolean canCreateCampaigns,
final Boolean canCreateClasse... | public QueryResultsList<UserInformation> getUserInformation(
final String requesterUsername,
final Collection<String> usernames,
final Collection<String> emailAddresses,
final Boolean admin,
final Boolean enabled,
final Boolean newAccount,
final Boolean canCreateCampaigns,
final Boolean canCreateClasse... |
diff --git a/src/cytoscape/ding/CyGraphLOD.java b/src/cytoscape/ding/CyGraphLOD.java
index 1b3b86d4a..86e5dc9c7 100644
--- a/src/cytoscape/ding/CyGraphLOD.java
+++ b/src/cytoscape/ding/CyGraphLOD.java
@@ -1,316 +1,316 @@
package cytoscape.ding;
import cytoscape.render.stateful.GraphLOD;
import java.beans.Propert... | true | true | protected void init() {
renderAllEdges = (byte)getInt("render.renderAllEdges",0);
fullDetailThreshold = getInt("render.fullDetailThreshold",1200);
nodeBorderThreshold = getInt("render.nodeBorderThreshold",200);
nodeLabelThreshold = getInt("render.nodeLabelThreshold",60);
customGraphicsThreshold = getInt("r... | protected void init() {
renderAllEdges = (byte)getInt("render.renderAllEdges",0);
fullDetailThreshold = getInt("render.fullDetailThreshold",1200);
nodeBorderThreshold = getInt("render.nodeBorderThreshold",200);
nodeLabelThreshold = getInt("render.nodeLabelThreshold",100);
customGraphicsThreshold = getInt("... |
diff --git a/src/edacc/gridqueues/QueueListModel.java b/src/edacc/gridqueues/QueueListModel.java
index 946313e..e8cf22f 100644
--- a/src/edacc/gridqueues/QueueListModel.java
+++ b/src/edacc/gridqueues/QueueListModel.java
@@ -1,68 +1,68 @@
package edacc.gridqueues;
import edacc.experiment.ExperimentController;
impo... | true | true | public void refreshQueues() throws NoConnectionToDBException, SQLException {
queues = GridQueueDAO.getAll();
checkBoxes = new ArrayList<JCheckBox>();
for (GridQueue q : queues) {
JCheckBox checkBox = new JCheckBox(q.getName() + " (" + q.getId() + ")");
checkBoxes.add... | public void refreshQueues() throws NoConnectionToDBException, SQLException {
queues = GridQueueDAO.getAll();
if (expController != null) {
ArrayList<ExperimentHasGridQueue> ehgqs = ExperimentHasGridQueueDAO.getExperimentHasGridQueueByExperiment(expController.getActiveExperiment());
... |
diff --git a/MSC/src/Content.java b/MSC/src/Content.java
index 66f55fc..44d156c 100644
--- a/MSC/src/Content.java
+++ b/MSC/src/Content.java
@@ -1,54 +1,55 @@
import com.soundcloud.api.*;
import java.io.IOException;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
public class Content
{
... | true | true | public HttpResponse getContent(ApiWrapper wrapper) throws IOException
{
HttpResponse response;
String response_string;
response = wrapper.get(Request.to("/me/tracks/"));
response_string = Http.formatJSON(Http.getString(response));
if (response.getStatusLine().ge... | public HttpResponse getContent(ApiWrapper wrapper) throws IOException
{
HttpResponse response;
String response_string;
response = wrapper.get(Request.to("/me/tracks/"));
response_string = Http.formatJSON(Http.getString(response));
if (response.getStatusLine().ge... |
diff --git a/jython/src/org/python/util/PyFilter.java b/jython/src/org/python/util/PyFilter.java
index 1375c5cc..35534d39 100644
--- a/jython/src/org/python/util/PyFilter.java
+++ b/jython/src/org/python/util/PyFilter.java
@@ -1,143 +1,144 @@
package org.python.util;
import java.io.File;
import java.io.IOException... | true | true | public void init(FilterConfig config) throws ServletException {
if (config.getServletContext().getAttribute(PyServlet.INIT_ATTR) == null) {
throw new ServletException("PyServlet has not been initialized, either as a servlet "
+ "or as context listener. This must happen befor... | public void init(FilterConfig config) throws ServletException {
if (config.getServletContext().getAttribute(PyServlet.INIT_ATTR) == null) {
throw new ServletException("Jython has not been initialized. Add "
+ "org.python.util.PyServletInitializer as a listener to your "
... |
diff --git a/src/main/java/org/imirsel/nema/flowmetadataservice/impl/Repository.java b/src/main/java/org/imirsel/nema/flowmetadataservice/impl/Repository.java
index 2457bdc..2608cde 100644
--- a/src/main/java/org/imirsel/nema/flowmetadataservice/impl/Repository.java
+++ b/src/main/java/org/imirsel/nema/flowmetadataserv... | true | true | public String saveFlow(WBFlowDescription wbFlow, long userId)
throws MeandreServerException {
FlowDescription flow = MeandreConverter.WBFlowDescriptionConverter.convert(wbFlow);
String flowURI = flow.getFlowComponent().getURI();
logger.info("Saving flow " + flowURI);
String execStepMsg = "";
String file... | public String saveFlow(WBFlowDescription wbFlow, long userId)
throws MeandreServerException {
FlowDescription flow = MeandreConverter.WBFlowDescriptionConverter.convert(wbFlow);
String flowURI = flow.getFlowComponent().getURI();
logger.info("Saving flow " + flowURI);
String execStepMsg = "";
String file... |
diff --git a/src/test/groovy/text/TemplateTest.java b/src/test/groovy/text/TemplateTest.java
index f32ad9ba1..183fd52ee 100644
--- a/src/test/groovy/text/TemplateTest.java
+++ b/src/test/groovy/text/TemplateTest.java
@@ -1,62 +1,62 @@
/*
* $Id$version Mar 8, 2004 1:36:31 AM $user Exp $
*
* Copyright 2003 (C) Sa... | true | true | public void testBinding() throws SyntaxException, ClassNotFoundException, IOException {
Map binding = new HashMap();
binding.put("sam", "pullara");
Template template = new SimpleTemplateEngine().createTemplate("<%= sam %>");
template.setBinding(binding.getVariables());
assert... | public void testBinding() throws SyntaxException, ClassNotFoundException, IOException {
Map binding = new HashMap();
binding.put("sam", "pullara");
Template template = new SimpleTemplateEngine().createTemplate("<%= sam %>");
template.setBinding(binding);
assertEquals("pullara... |
diff --git a/proj1/WebServer.java b/proj1/WebServer.java
index 9a0e879..17256d3 100644
--- a/proj1/WebServer.java
+++ b/proj1/WebServer.java
@@ -1,177 +1,177 @@
import java.io.*;
import java.net.*;
import java.util.*;
public final class WebServer
{
public static void main(String argv[]) throws Exception
{
... | false | true | private void processRequest() throws Exception
{
/* get a reference to the socket's input and output streams */
InputStream is = sock.getInputStream();
DataOutputStream os = new DataOutputStream(sock.getOutputStream());
/* set up input stream filters */
InputStreamReader in = new InputStreamReader(is);
B... | private void processRequest() throws Exception
{
/* get a reference to the socket's input and output streams */
InputStream is = sock.getInputStream();
DataOutputStream os = new DataOutputStream(sock.getOutputStream());
/* set up input stream filters */
InputStreamReader in = new InputStreamReader(is);
B... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.