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/main/java/org/glite/security/voms/admin/core/validation/strategies/impl/SuspendAUPFailingMembersStrategy.java b/src/main/java/org/glite/security/voms/admin/core/validation/strategies/impl/SuspendAUPFailingMembersStrategy.java
index ff81839e..b0d98b24 100644
--- a/src/main/java/org/glite/security/voms/a... | true | true | protected synchronized void handleAUPFailingMember(VOMSUser u){
AUPDAO aupDAO = HibernateDAOFactory.instance().getAUPDAO();
AUP aup = aupDAO.getVOAUP();
log.debug("Checking user '" + u + "' compliance with '" + aup.getName()
+ "'");
TaskDAO taskDAO = DAOFactory.instance().getTaskDAO();
if (u.getPe... | protected synchronized void handleAUPFailingMember(VOMSUser u){
AUPDAO aupDAO = HibernateDAOFactory.instance().getAUPDAO();
AUP aup = aupDAO.getVOAUP();
log.debug("Checking user '" + u + "' compliance with '" + aup.getName()
+ "'");
TaskDAO taskDAO = DAOFactory.instance().getTaskDAO();
if (u.getPe... |
diff --git a/src/main/java/name/richardson/james/bukkit/timedmessages/Message.java b/src/main/java/name/richardson/james/bukkit/timedmessages/Message.java
index 63ae69e..3f271f4 100644
--- a/src/main/java/name/richardson/james/bukkit/timedmessages/Message.java
+++ b/src/main/java/name/richardson/james/bukkit/timedmessa... | true | true | public void run() {
String message = this.getNextMessage();
message = ColourFormatter.replace("&", message);
final String[] parts = message.split("/n");
final List<Player> players = new LinkedList<Player>();
for (final Player player : this.server.getOnlinePlayers()) {
// ignore the player ... | public void run() {
String message = this.getNextMessage();
message = ColourFormatter.replace("&", message);
final String[] parts = message.split("/n");
final List<Player> players = new LinkedList<Player>();
for (final Player player : this.server.getOnlinePlayers()) {
// ignore the player ... |
diff --git a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/AbstractInterpreterGenerator.java b/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/AbstractInterpreterGenerator.java
index 4662a084c..65d4e5a16 100644
--- a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/Abstract... | false | true | public boolean generateJavaContents(JavaComposite sc) {
allGenClasses = getAllGenClasses();
sc.add("package " + getResourcePackageName() + ";");
sc.addLineBreak();
sc.addJavadoc(
"This class provides basic infrastructure to interprete models. " +
"To implement concrete interpreters, subclass this abst... | public boolean generateJavaContents(JavaComposite sc) {
allGenClasses = getAllGenClasses();
sc.add("package " + getResourcePackageName() + ";");
sc.addLineBreak();
sc.addJavadoc(
"This class provides basic infrastructure to interpret models. " +
"To implement concrete interpreters, subclass this abstr... |
diff --git a/src/com/beecub/glizer/glizerPlayerListener.java b/src/com/beecub/glizer/glizerPlayerListener.java
index 0773be9..10d8a61 100644
--- a/src/com/beecub/glizer/glizerPlayerListener.java
+++ b/src/com/beecub/glizer/glizerPlayerListener.java
@@ -1,96 +1,96 @@
package com.beecub.glizer;
import java.util.HashM... | true | true | public void onPlayerLogin(PlayerLoginEvent event) {
if (event.getResult() == Result.ALLOWED)
{
Player player = event.getPlayer();
if (bConfigManager.usewhitelist) {
if (bWhitelist.checkWhiteList(player.getName()))
{
if (glizer.D)
bChat.log("Player " + player.getName() + " is whiteliste... | public void onPlayerLogin(PlayerLoginEvent event) {
if (event.getResult() == Result.ALLOWED)
{
Player player = event.getPlayer();
if (bConfigManager.usewhitelist) {
if (bWhitelist.checkWhiteList(player.getName()))
{
if (glizer.D)
bChat.log("Player " + player.getName() + " is whiteliste... |
diff --git a/jproto/src/lz/jprotoc/JProtoc.java b/jproto/src/lz/jprotoc/JProtoc.java
index a0d35a5..5e1f335 100644
--- a/jproto/src/lz/jprotoc/JProtoc.java
+++ b/jproto/src/lz/jprotoc/JProtoc.java
@@ -1,145 +1,145 @@
package lz.jprotoc;
import com.google.protobuf.DescriptorProtos;
import com.google.protobuf.Descript... | true | true | public void parser(Boolean as3,Boolean js){
try {
CodeGeneratorRequest request = CodeGeneratorRequest.parseFrom(System.in);
CodeGeneratorResponse.Builder builder=CodeGeneratorResponse.newBuilder();
for(FileDescriptorProto file: request.getProtoFileList()){
String pack=file.getPackage();
String packP... | public void parser(Boolean as3,Boolean js){
try {
CodeGeneratorRequest request = CodeGeneratorRequest.parseFrom(System.in);
CodeGeneratorResponse.Builder builder=CodeGeneratorResponse.newBuilder();
for(FileDescriptorProto file: request.getProtoFileList()){
String pack=file.getPackage();
String packP... |
diff --git a/src/team/win/TeamWinActivity.java b/src/team/win/TeamWinActivity.java
index 91ed8d7..fcdde5e 100644
--- a/src/team/win/TeamWinActivity.java
+++ b/src/team/win/TeamWinActivity.java
@@ -1,240 +1,240 @@
/**
* Copyright 2011 TeamWin
*/
package team.win;
import java.util.Date;
import java.util.List;
... | true | true | public boolean onContextItemSelected(final MenuItem item) {
switch (item.getItemId()) {
case ID_CONTEXTMENU_CHANGE_TITLE:
final EditText inputField = new EditText(this);
final AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
final WhiteBoard currentWhiteBoard = existingWhiteBoard... | public boolean onContextItemSelected(final MenuItem item) {
switch (item.getItemId()) {
case ID_CONTEXTMENU_CHANGE_TITLE:
final EditText inputField = new EditText(this);
final AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
final WhiteBoard currentWhiteBoard = existingWhiteBoard... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISChatListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISChatListener.java
index 593b66f5a..ee9710d4d 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISChatListener.java
+++ b/src/main/java/me/eccentric_nz/TARDIS/listeners... | false | true | public void onChat(AsyncPlayerChatEvent event) {
final String saved = event.getPlayer().getName();
String chat = event.getMessage();
boolean successful = false;
if (chat != null && chat.equalsIgnoreCase("tardis rescue accept")) {
if (plugin.getTrackerKeeper().getTrackChat... | public void onChat(AsyncPlayerChatEvent event) {
final String saved = event.getPlayer().getName();
String chat = event.getMessage();
if (chat != null && chat.equalsIgnoreCase("tardis rescue accept")) {
if (plugin.getTrackerKeeper().getTrackChat().containsKey(saved)) {
... |
diff --git a/enhancement-engines/entitylinking/labeltokenizer-lucene/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/labeltokenizer/lucene/LuceneLabelTokenizer.java b/enhancement-engines/entitylinking/labeltokenizer-lucene/src/main/java/org/apache/stanbol/enhancer/engines/entitylinking/labeltokenizer/lu... | false | true | protected void activate(ComponentContext ctx) throws ConfigurationException {
//init the Solr ResourceLoader used for initialising the components
resourceLoader = new StanbolResourceLoader(parentResourceLoader);
//init the Solr CharFilterFactory (optional)
Object value = ctx.getPrope... | protected void activate(ComponentContext ctx) throws ConfigurationException {
//init the Solr ResourceLoader used for initialising the components
resourceLoader = new StanbolResourceLoader(parentResourceLoader);
//init the Solr CharFilterFactory (optional)
Object value = ctx.getPrope... |
diff --git a/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java b/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java
index 0b571a31e..e2d31e344 100644
--- a/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java
+++ b/src/main/java/com/ning... | true | true | public void messageReceived(final ChannelHandlerContext ctx, MessageEvent e) throws Exception {
//call super to reset the read timeout
super.messageReceived(ctx, e);
IN_IO_THREAD.set(Boolean.TRUE);
if (ctx.getAttachment() == null) {
log.debug("ChannelHandlerContext wasn'... | public void messageReceived(final ChannelHandlerContext ctx, MessageEvent e) throws Exception {
//call super to reset the read timeout
super.messageReceived(ctx, e);
IN_IO_THREAD.set(Boolean.TRUE);
if (ctx.getAttachment() == null) {
log.debug("ChannelHandlerContext wasn'... |
diff --git a/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java b/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
index b62f828..6687a41 100644
--- a/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
+++ b/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
@@ -1,6... | false | true | public boolean onCommand(final CommandSender sender, final Command command,
final String commandLabel, final String[] args)
{
if (!sender.hasPermission(command.getPermission()))
{
sender.sendMessage(ChatColor.RED + "You cannot run this command.");
return true;... | public boolean onCommand(final CommandSender sender, final Command command,
final String commandLabel, final String[] args)
{
if (!sender.hasPermission(command.getPermission()))
{
sender.sendMessage(ChatColor.RED + "You cannot run this command.");
return true;... |
diff --git a/org.amanzi.awe.catalog.json/src/org/amanzi/awe/catalog/json/JSONReader.java b/org.amanzi.awe.catalog.json/src/org/amanzi/awe/catalog/json/JSONReader.java
index e5ab9d6e2..3aeda6183 100644
--- a/org.amanzi.awe.catalog.json/src/org/amanzi/awe/catalog/json/JSONReader.java
+++ b/org.amanzi.awe.catalog.json/src... | true | true | public ReferencedEnvelope getBounds() {
if (bounds == null) {
// Create Null envelope
this.bounds = new ReferencedEnvelope(crs);
// First try to find the BBOX definition in the JSON directly
try {
JSONArray jsonBBox = jsonObject().getJSONArray(... | public ReferencedEnvelope getBounds() {
if (bounds == null) {
// Create Null envelope
this.bounds = new ReferencedEnvelope(getCRS());
// First try to find the BBOX definition in the JSON directly
try {
JSONArray jsonBBox = jsonObject().getJSONA... |
diff --git a/src/main/java/hudson/maven/MavenEmbedder.java b/src/main/java/hudson/maven/MavenEmbedder.java
index a83237f..ca3d0fe 100644
--- a/src/main/java/hudson/maven/MavenEmbedder.java
+++ b/src/main/java/hudson/maven/MavenEmbedder.java
@@ -1,587 +1,587 @@
/*
* Copyright 2001-2005 The Apache Software Foundation.... | true | true | private void buildMavenExecutionRequest()
throws MavenEmbedderException, ComponentLookupException {
this.mavenExecutionRequest = new DefaultMavenExecutionRequest();
if ( this.mavenRequest.getGlobalSettingsFile() != null ) {
this.mavenExecutionRequest.setGlobalSettingsFile( this... | private void buildMavenExecutionRequest()
throws MavenEmbedderException, ComponentLookupException {
this.mavenExecutionRequest = new DefaultMavenExecutionRequest();
if ( this.mavenRequest.getGlobalSettingsFile() != null ) {
this.mavenExecutionRequest.setGlobalSettingsFile( new ... |
diff --git a/src/com/github/jmpjct/mysql/proto/HandshakeTest.java b/src/com/github/jmpjct/mysql/proto/HandshakeTest.java
index b49273f..5cab10f 100644
--- a/src/com/github/jmpjct/mysql/proto/HandshakeTest.java
+++ b/src/com/github/jmpjct/mysql/proto/HandshakeTest.java
@@ -1,25 +1,25 @@
package com.github.jmpjct.mysql.... | true | true | public void test1() {
// https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake
byte[] packet = new byte[] {
(byte)0x36, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0a, (byte)0x35, (byte)0x2e, (byte)0x35,
(byte)0x2e, (byte)0x32, (byte)... | public void test1() {
// https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake
byte[] packet = new byte[] {
(byte)0x36, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0a, (byte)0x35, (byte)0x2e, (byte)0x35,
(byte)0x2e, (byte)0x32, (byte)... |
diff --git a/src/share/classes/com/sun/javafx/runtime/Pointer.java b/src/share/classes/com/sun/javafx/runtime/Pointer.java
index 7912b224e..4d56eb07a 100755
--- a/src/share/classes/com/sun/javafx/runtime/Pointer.java
+++ b/src/share/classes/com/sun/javafx/runtime/Pointer.java
@@ -1,197 +1,198 @@
/*
* Copyright 2008-... | false | true | public BoundPointer bind(Pointer srcPtr) {
final FXObject thisObj = getFXObject();
final int thisVarNum = getVarNum();
FXObject listener = new FXBase() {
@Override
public boolean update$(FXObject src, final int depNum,
int startPos, int endPos, int... | public BoundPointer bind(Pointer srcPtr) {
final FXObject thisObj = getFXObject();
final int thisVarNum = getVarNum();
final int srcVarNum = srcPtr.getVarNum();
FXObject listener = new FXBase() {
@Override
public boolean update$(FXObject src, final int depNum,... |
diff --git a/brjs-core/src/test/java/org/bladerunnerjs/spec/brjs/UserCommandTest.java b/brjs-core/src/test/java/org/bladerunnerjs/spec/brjs/UserCommandTest.java
index 22a822964..127d69390 100644
--- a/brjs-core/src/test/java/org/bladerunnerjs/spec/brjs/UserCommandTest.java
+++ b/brjs-core/src/test/java/org/bladerunnerj... | true | true | public void usageIsDisplayedIfIncorrectArgumentsAreProvided() {
when(brjs).runUserCommand("create-blade");
then(output).containsText(
"BladeRunner version: the-version, built: the-build-date",
"",
"Problem:",
" Parameter 'new-blade-name' is required.",
" Parameter 'target-app-name' is required.",
... | public void usageIsDisplayedIfIncorrectArgumentsAreProvided() {
when(brjs).runUserCommand("create-blade");
then(output).containsText(
"BladeRunner version: the-version, built: the-build-date",
"",
"Problem:",
" Parameter 'new-blade-name' is required.",
" Parameter 'target-app-name' is required.",
... |
diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java
index a8bb833a0..c6a1d12c2 100644
--- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java
+++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.... | true | true | private String createFetchUrl(String api, String method, Object... getParameters) throws UnsupportedEncodingException, NoSuchAlgorithmException {
ArrayList<Pair<String, Object>> params = new ArrayList<Pair<String, Object>>();
for(int i = 0; i < getParameters.length; i += 2) {
if(getParam... | private String createFetchUrl(String api, String method, Object... getParameters) throws UnsupportedEncodingException, NoSuchAlgorithmException {
ArrayList<Pair<String, Object>> params = new ArrayList<Pair<String, Object>>();
for(int i = 0; i < getParameters.length; i += 2) {
if(getParam... |
diff --git a/src/be/poletucha/src/main/java/cz/osu/poletucha/db/FlightResolved.java b/src/be/poletucha/src/main/java/cz/osu/poletucha/db/FlightResolved.java
index f3f38b3..549c568 100644
--- a/src/be/poletucha/src/main/java/cz/osu/poletucha/db/FlightResolved.java
+++ b/src/be/poletucha/src/main/java/cz/osu/poletucha/db... | true | true | public FlightResolved (Flight f, Airport from,
Airport to, Plane p) {
super (f.getCode (), f.getAirportFrom (),
f.getAirportTo (), f.getIdPlane (),
f.getDeparture (), f.getArrival (),
f.getCapacity ());
this.setFromName (from.ge... | public FlightResolved (Flight f, Airport from,
Airport to, Plane p) {
super (f.getCode (), f.getAirportFrom (),
f.getAirportTo (), f.getIdPlane (),
f.getDeparture (), f.getArrival (),
f.getCapacity ());
this.setId (f.getId ());
... |
diff --git a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/rest/client/DefaultResourceRequestBuilder.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/rest/client/DefaultResourceRequestBuilder.java
index c2a3e5d87..8b10d486c 100644
--- a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/rest/client/... | true | true | private void processResponse(Request request, Response response) {
int code = response.getStatusCode();
cacheAuthorization(response);
boolean handled = false;
if(authorizationCallback != null) {
handled = true;
authorizationCallback.onResponseCode(request, response, authori... | private void processResponse(Request request, Response response) {
int code = response.getStatusCode();
cacheAuthorization(response);
boolean handled = false;
if(authorizationCallback != null) {
handled = true;
authorizationCallback.onResponseCode(request, response, authori... |
diff --git a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/ModelProcessor.java b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/ModelProcessor.java
index f28fd13e..067e0f11 100644
--- a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse... | true | true | public void process(MApplication application, EModelService modelService) {
System.out.println("ModelProcessor EModelService");
List<MCommand> commands = modelService.findElements(application,
"e4.tooling.livemodel", MCommand.class, null);
MCommand command = null;
if (commands.size() == 0) {
command =... | public void process(MApplication application, EModelService modelService) {
List<MCommand> commands = modelService.findElements(application,
"e4.tooling.livemodel", MCommand.class, null);
MCommand command = null;
if (commands.size() == 0) {
command = modelService.createModelElement(MCommand.class);
c... |
diff --git a/src/test/java/jmona/example/ga/ones/OnesMutationFunctionTester.java b/src/test/java/jmona/example/ga/ones/OnesMutationFunctionTester.java
index f025c67..35208e3 100644
--- a/src/test/java/jmona/example/ga/ones/OnesMutationFunctionTester.java
+++ b/src/test/java/jmona/example/ga/ones/OnesMutationFunctionTes... | true | true | public void testMutate() {
// create the mutator function
final OnesMutationFunction function = new OnesMutationFunction();
// create a list of all individuals.
final List<OnesIndividual> allIndividuals = new Vector<OnesIndividual>();
// initialize many genes for many individuals
for (int i ... | public void testMutate() {
// create the mutator function
final OnesMutationFunction function = new OnesMutationFunction();
// create a list of all individuals.
final List<OnesIndividual> allIndividuals = new Vector<OnesIndividual>();
// initialize many genes for many individuals
for (int i ... |
diff --git a/src/main/java/com/github/colorlines/domainimpl/TurnValidatorImpl.java b/src/main/java/com/github/colorlines/domainimpl/TurnValidatorImpl.java
index ae70c23..9288ce1 100644
--- a/src/main/java/com/github/colorlines/domainimpl/TurnValidatorImpl.java
+++ b/src/main/java/com/github/colorlines/domainimpl/TurnVa... | true | true | public boolean isValid(Area area, Turn turn) {
if (!area.contains(turn.original().position())) {
return false;
}
if (area.contains(turn.moveTo())) {
return false;
}
final PriorityQueue<PathStep> pathSteps = new PriorityQueue<PathStep>(
... | public boolean isValid(Area area, Turn turn) {
if (!area.contains(turn.original().position())) {
return false;
}
if (area.contains(turn.moveTo())) {
return false;
}
final PriorityQueue<PathStep> pathSteps = new PriorityQueue<PathStep>(
... |
diff --git a/src/nu/placebo/whatsup/model/MenuHandler.java b/src/nu/placebo/whatsup/model/MenuHandler.java
index c2c5025..00d9ca1 100644
--- a/src/nu/placebo/whatsup/model/MenuHandler.java
+++ b/src/nu/placebo/whatsup/model/MenuHandler.java
@@ -1,50 +1,50 @@
package nu.placebo.whatsup.model;
import nu.placebo.whats... | true | true | public static boolean onOptionsItemSelected(MenuItem item, Context context) {
switch (item.getItemId()) {
case R.id.menu_log_in_out:
SessionHandler sh = SessionHandler.getInstance(context);
if(sh.hasSession()){
sh.logOut();
} else {
context.startActivity(new Intent(context, LogInActivity.class));
... | public static boolean onOptionsItemSelected(MenuItem item, Context context) {
switch (item.getItemId()) {
case R.id.menu_log_in_out:
SessionHandler sh = SessionHandler.getInstance(context);
if(sh.hasSession()){
sh.logOut();
} else {
context.startActivity(new Intent(context, LogInActivity.class));
... |
diff --git a/TabNyan/src/com/zero/star/tabnyan/TabNyanActivity.java b/TabNyan/src/com/zero/star/tabnyan/TabNyanActivity.java
index ddc72b4..669b49c 100644
--- a/TabNyan/src/com/zero/star/tabnyan/TabNyanActivity.java
+++ b/TabNyan/src/com/zero/star/tabnyan/TabNyanActivity.java
@@ -1,245 +1,248 @@
package com.zero.star.... | true | true | public void onTabChanged(String tabId) {
TabInfo newTab = mMapTaInfo.get(tabId);
if (mLastTabInfo != newTab) {
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
if (mLastTabInfo != null) {
fragmentTransaction.detach(mLa... | public void onTabChanged(String tabId) {
TabInfo newTab = mMapTaInfo.get(tabId);
if (mLastTabInfo != newTab) {
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
if (mLastTabInfo != null) {
fragmentTransaction.detach(mLa... |
diff --git a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/RecipeInstaller.java b/src/main/java/org/cloudifysource/quality/iTests/framework/utils/RecipeInstaller.java
index 44c5fc9b..006ab38e 100644
--- a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/RecipeInstaller.java
+++ b/src/ma... | true | true | public String install() throws IOException, InterruptedException {
String installCommand = null;
String excpectedResult = null;
String recipeName = null;
if (this instanceof ServiceInstaller) {
installCommand = "install-service";
recipeName = ((ServiceInstaller)this).getServiceName();
excpectedResu... | public String install() throws IOException, InterruptedException {
String installCommand = null;
String excpectedResult = null;
String recipeName = null;
if (this instanceof ServiceInstaller) {
installCommand = "install-service";
recipeName = null; // TODO change to ((ServiceInstaller)this).getService... |
diff --git a/SolarPowerCalc_Android/src/com/qut/spc/service/LocationService.java b/SolarPowerCalc_Android/src/com/qut/spc/service/LocationService.java
index 068b96d..655a0f5 100644
--- a/SolarPowerCalc_Android/src/com/qut/spc/service/LocationService.java
+++ b/SolarPowerCalc_Android/src/com/qut/spc/service/LocationServ... | true | true | public LocationService(Activity currentActivity) {
manager = (LocationManager) currentActivity
.getSystemService(Context.LOCATION_SERVICE);
Criteria crit = new Criteria();
// we don't need high accuracy.. better save the battery
crit.setAccuracy(Criteria.ACCURACY_LOW);
String provider = manager.getBestP... | public LocationService(Activity currentActivity) {
manager = (LocationManager) currentActivity
.getSystemService(Context.LOCATION_SERVICE);
Criteria crit = new Criteria();
// we don't need high accuracy.. better save the battery
crit.setAccuracy(Criteria.ACCURACY_COARSE);
String provider = manager.getBe... |
diff --git a/hotel-application/hotel-domain/src/main/java/net/mklew/hotelms/domain/booking/reservation/rates/Rate.java b/hotel-application/hotel-domain/src/main/java/net/mklew/hotelms/domain/booking/reservation/rates/Rate.java
index 8a8f28ce..7be402d2 100644
--- a/hotel-application/hotel-domain/src/main/java/net/mklew/... | true | true | public Rate(Money standardPrice, Money upchargeExtraPerson, Money upchargeExtraBed, Room room)
{
this.standardPrice = standardPrice;
this.upchargeExtraPerson = upchargeExtraPerson;
this.upchargeExtraBed = upchargeExtraBed;
}
| public Rate(Money standardPrice, Money upchargeExtraPerson, Money upchargeExtraBed, Room room)
{
this.standardPrice = standardPrice;
this.upchargeExtraPerson = upchargeExtraPerson;
this.upchargeExtraBed = upchargeExtraBed;
this.room = room;
}
|
diff --git a/core/src/test/java/io/undertow/test/utils/HttpClientUtils.java b/core/src/test/java/io/undertow/test/utils/HttpClientUtils.java
index 53ef69e55..74221012d 100644
--- a/core/src/test/java/io/undertow/test/utils/HttpClientUtils.java
+++ b/core/src/test/java/io/undertow/test/utils/HttpClientUtils.java
@@ -1,6... | true | true | public static String readResponse(InputStream stream) throws IOException {
final StringBuilder builder = new StringBuilder();
byte[] data = new byte[100];
int read;
while ((read = stream.read(data)) != -1) {
builder.append(new String(data,0,read));
}
retur... | public static String readResponse(InputStream stream) throws IOException {
final StringBuilder builder = new StringBuilder();
byte[] data = new byte[100];
int read;
while ((read = stream.read(data)) != -1) {
builder.append(new String(data,0,read,"UTF-8"));
}
... |
diff --git a/android/src/net/mms_projects/copyit/clipboard_backends/HoneycombBackend.java b/android/src/net/mms_projects/copyit/clipboard_backends/HoneycombBackend.java
index 32e4162..00ec50d 100644
--- a/android/src/net/mms_projects/copyit/clipboard_backends/HoneycombBackend.java
+++ b/android/src/net/mms_projects/cop... | true | true | public String getText() {
android.content.ClipboardManager clipboard = (android.content.ClipboardManager) this.context.getSystemService(Context.CLIPBOARD_SERVICE);
android.content.ClipData clip = clipboard.getPrimaryClip();
if (clip.getItemCount() != 0) {
return clip.getItemAt(0).getText().toString();
}
r... | public String getText() {
android.content.ClipboardManager clipboard = (android.content.ClipboardManager) this.context.getSystemService(Context.CLIPBOARD_SERVICE);
android.content.ClipData clip = clipboard.getPrimaryClip();
if ((clip != null) && (clip.getItemCount() != 0)) {
return clip.getItemAt(0).getText()... |
diff --git a/src/edu/cmu/square/client/ui/FinalProductSelection/FinalProductSelectionPilot.java b/src/edu/cmu/square/client/ui/FinalProductSelection/FinalProductSelectionPilot.java
index a77db9a..e06455b 100644
--- a/src/edu/cmu/square/client/ui/FinalProductSelection/FinalProductSelectionPilot.java
+++ b/src/edu/cmu/sq... | true | true | public void determineAccessRights(String page, State currentState)
{
if (currentState.isSiteAdministrator() == true)
{
currentState.setMode(GwtModesType.ReadWrite);
}
else if (currentState.getUserProjectRole() == ProjectRole.Acquisition_Organization_Engineer)
{
currentState.setMode(GwtModesType.Rea... | public void determineAccessRights(String page, State currentState)
{
if (currentState.isSiteAdministrator() == true)
{
currentState.setMode(GwtModesType.ReadWrite);
}
else if (currentState.getUserProjectRole() == ProjectRole.Acquisition_Organization_Engineer)
{
currentState.setMode(GwtModesType.Rea... |
diff --git a/src/no/group09/stk500/Message.java b/src/no/group09/stk500/Message.java
index 759f965..c1c4da3 100644
--- a/src/no/group09/stk500/Message.java
+++ b/src/no/group09/stk500/Message.java
@@ -1,186 +1,186 @@
package no.group09.stk500;
import java.lang.reflect.Array;
import java.util.ArrayList;
import jav... | true | true | public Message(byte sequenceNumber, byte[] body) {
this.body = body;
this.sequenceNumber = sequenceNumber;
messageSize = new byte[2];
packMessageSize();
completeMessage = new byte[body.length + 6];
completeMessage[0] = STK_Message.MESSAGE_START.getByteValue();
... | public Message(byte sequenceNumber, byte[] body) {
this.body = body;
this.sequenceNumber = sequenceNumber;
messageSize = new byte[2];
packMessageSize();
completeMessage = new byte[body.length + 6];
completeMessage[0] = STK_Message.MESSAGE_START.getByteValue();
... |
diff --git a/src/quill/ui/EditorTextView.java b/src/quill/ui/EditorTextView.java
index 14c530b..74321e5 100644
--- a/src/quill/ui/EditorTextView.java
+++ b/src/quill/ui/EditorTextView.java
@@ -1,959 +1,960 @@
/*
* EditorTextView.java
*
* Copyright (c) 2009 Operational Dynamics Consulting Pty Ltd
*
* The cod... | true | true | private void hookupKeybindings() {
input = new SimpleInputMethod();
input.connect(new InputMethod.Commit() {
public void onCommit(InputMethod source, String text) {
insertText(text);
}
});
view.connect(new Widget.KeyPressEvent() {
... | private void hookupKeybindings() {
input = new SimpleInputMethod();
input.connect(new InputMethod.Commit() {
public void onCommit(InputMethod source, String text) {
insertText(text);
}
});
view.connect(new Widget.KeyPressEvent() {
... |
diff --git a/src/main/java/vazkii/tinkerer/common/core/golems/EnumGolemDecorations.java b/src/main/java/vazkii/tinkerer/common/core/golems/EnumGolemDecorations.java
index cddbef8e..d8f3d96e 100644
--- a/src/main/java/vazkii/tinkerer/common/core/golems/EnumGolemDecorations.java
+++ b/src/main/java/vazkii/tinkerer/common... | true | true | public static EnumGolemDecorations getFromChar(char ch)
{
switch(ch)
{
case 'H':
return TopHat;
case 'G':
return Glasses;
case 'B':
return BowTie;
case 'F':
return Fez;
case 'R':
return DartGun;
case 'V':
return Visor;
... | public static EnumGolemDecorations getFromChar(char ch)
{
switch(ch)
{
case 'H':
return TopHat;
case 'G':
return Glasses;
case 'B':
return BowTie;
case 'F':
return Fez;
case 'D':
return DartGun;
case 'V':
return Visor;
... |
diff --git a/src/joshua/decoder/hypergraph/KbestExtraction.java b/src/joshua/decoder/hypergraph/KbestExtraction.java
index 29c5595c..c5b6fd77 100644
--- a/src/joshua/decoder/hypergraph/KbestExtraction.java
+++ b/src/joshua/decoder/hypergraph/KbestExtraction.java
@@ -1,557 +1,556 @@
/* This file is part of the Joshua M... | true | true | private String convert_hyp_2_string(int sent_id, DerivationState cur, ArrayList<FeatureFunction> l_models, String str_hyp_numeric,
boolean extract_nbest_tree, boolean add_combined_score, double[] model_cost){
String[] tem = str_hyp_numeric.split("\\s+");
StringBuffer str_hyp =new StringBuffer();
//####sen... | private String convert_hyp_2_string(int sent_id, DerivationState cur, ArrayList<FeatureFunction> l_models, String str_hyp_numeric,
boolean extract_nbest_tree, boolean add_combined_score, double[] model_cost){
String[] tem = str_hyp_numeric.split("\\s+");
StringBuffer str_hyp =new StringBuffer();
//####sen... |
diff --git a/src/net/rptools/maptool/client/tool/DefaultTool.java b/src/net/rptools/maptool/client/tool/DefaultTool.java
index f5cd864c..2ee1c8b1 100644
--- a/src/net/rptools/maptool/client/tool/DefaultTool.java
+++ b/src/net/rptools/maptool/client/tool/DefaultTool.java
@@ -1,950 +1,950 @@
/* The MIT License
*
* ... | false | true | private void showTokenContextMenu(MouseEvent e) {
if (tokenUnderMouse == null) {
return;
}
JPopupMenu popup = new JPopupMenu();
final ZoneRenderer renderer = (ZoneRenderer)e.getSource();
boolean enabled = true;
if (!MapTool.getPlayer().isGM() && MapTool.getServerPolicy().useStrictT... | private void showTokenContextMenu(MouseEvent e) {
if (tokenUnderMouse == null) {
return;
}
JPopupMenu popup = new JPopupMenu();
final ZoneRenderer renderer = (ZoneRenderer)e.getSource();
boolean enabled = true;
if (!MapTool.getPlayer().isGM() && MapTool.getServerPolicy().useStrictT... |
diff --git a/MEGA-CODE/src/mvc/Controller.java b/MEGA-CODE/src/mvc/Controller.java
index efb32fb..6d92216 100644
--- a/MEGA-CODE/src/mvc/Controller.java
+++ b/MEGA-CODE/src/mvc/Controller.java
@@ -1,238 +1,237 @@
package mvc;
import game.EntMonster;
import game.ThornMonster;
import game.Tower;
import game.TreeMo... | true | true | public void run(){
while (true){
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
/*
* Catch all keyboard events
*/
try {
while (Keyboard.next()){
if (Keyboard.getEventKeyState()){
keyPressed(Keyboard.getEventKey());
} else {
... | public void run(){
while (true){
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
/*
* Catch all keyboard events
*/
try {
while (Keyboard.next()){
if (Keyboard.getEventKeyState()){
keyPressed(Keyboard.getEventKey());
} else {
... |
diff --git a/src/instructions/USI_POP.java b/src/instructions/USI_POP.java
index af05011..8fc2b3c 100644
--- a/src/instructions/USI_POP.java
+++ b/src/instructions/USI_POP.java
@@ -1,146 +1,144 @@
package instructions;
import static assemblernator.ErrorReporting.makeError;
import assemblernator.AbstractInstruction... | true | true | @Override public boolean check(ErrorHandler hErr, Module module) {
boolean isValid = true;
int value;
if(this.operands.size() > 2) {
hErr.reportError(makeError("extraOperandsIns", this.getOpId()), this.lineNum, -1);
isValid = false;
} else if(this.operands.size() < 1) {
hErr.reportError(makeError("to... | @Override public boolean check(ErrorHandler hErr, Module module) {
boolean isValid = true;
int value;
if(this.operands.size() > 2) {
hErr.reportError(makeError("extraOperandsIns", this.getOpId()), this.lineNum, -1);
isValid = false;
} else if(this.operands.size() < 1) {
hErr.reportError(makeError("to... |
diff --git a/faims-android-app/src/au/org/intersect/faims/android/ui/activity/ShowProjectActivity.java b/faims-android-app/src/au/org/intersect/faims/android/ui/activity/ShowProjectActivity.java
index 98e85c19..77e75257 100644
--- a/faims-android-app/src/au/org/intersect/faims/android/ui/activity/ShowProjectActivity.ja... | true | true | public boolean onPrepareOptionsMenu(Menu menu)
{
// gps status
menu.findItem(R.id.action_gps_inactive).setVisible(false);
menu.findItem(R.id.action_gps_active_has_signal).setVisible(false);
menu.findItem(R.id.action_gps_active_no_signal).setVisible(false);
if(gpsDataManager.isExternalGPSStarted() || gpsData... | public boolean onPrepareOptionsMenu(Menu menu)
{
// gps status
menu.findItem(R.id.action_gps_inactive).setVisible(false);
menu.findItem(R.id.action_gps_active_has_signal).setVisible(false);
menu.findItem(R.id.action_gps_active_no_signal).setVisible(false);
if(gpsDataManager.isExternalGPSStarted() || gpsData... |
diff --git a/src/main/java/com/tomslabs/grid/avro/AvroAsTextTypedBytesInputFormat.java b/src/main/java/com/tomslabs/grid/avro/AvroAsTextTypedBytesInputFormat.java
index 00836fa..9642372 100644
--- a/src/main/java/com/tomslabs/grid/avro/AvroAsTextTypedBytesInputFormat.java
+++ b/src/main/java/com/tomslabs/grid/avro/Avro... | true | true | public boolean next(TypedBytesWritable key, TypedBytesWritable value) throws IOException {
if (!reader.hasNext() || reader.pastSync(end)) {
return false;
}
key.setValue("");
value.setValue(reader.next().toString());
return true;
... | public boolean next(TypedBytesWritable key, TypedBytesWritable value) throws IOException {
if (!reader.hasNext() || reader.pastSync(end)) {
return false;
}
key.setValue("");
// until https://github.com/apache/avro/pull/2/ is fixed, we can not rely... |
diff --git a/src/plugins/org.drftpd.plugins.sitebot.announce.archive/src/org/drftpd/plugins/sitebot/announce/archive/ArchiveAnnouncer.java b/src/plugins/org.drftpd.plugins.sitebot.announce.archive/src/org/drftpd/plugins/sitebot/announce/archive/ArchiveAnnouncer.java
index f8674b52..166f6d50 100644
--- a/src/plugins/org... | true | true | public void onArchiveFinishEvent(ArchiveFinishEvent event) {
AnnounceWriter writer = _config.getPathWriter("archive_finish", event.getArchiveType().getDirectory());
if (writer != null) {
ReplacerEnvironment env = new ReplacerEnvironment(SiteBot.GLOBAL_ENV);
env.add("type", event.getArchiveTyp... | public void onArchiveFinishEvent(ArchiveFinishEvent event) {
AnnounceWriter writer = _config.getPathWriter("archive_finish", event.getArchiveType().getDirectory());
if (writer != null) {
ReplacerEnvironment env = new ReplacerEnvironment(SiteBot.GLOBAL_ENV);
env.add("type", event.getArchiveTyp... |
diff --git a/source/silvertrout/plugins/packagetracker/PackageTracker.java b/source/silvertrout/plugins/packagetracker/PackageTracker.java
index cbe0859..447b959 100644
--- a/source/silvertrout/plugins/packagetracker/PackageTracker.java
+++ b/source/silvertrout/plugins/packagetracker/PackageTracker.java
@@ -1,379 +1,37... | false | true | public ArrayList<PackageEvent> fetch(Package p) {
ArrayList<PackageEvent> events = new ArrayList<PackageEvent>();
// Connect and fetch package information:
try {
URL url = new URL(p.provider.baseURL + p.id);
HttpURLConnection con = (HttpURLConnection)url.openConnec... | public ArrayList<PackageEvent> fetch(Package p) {
ArrayList<PackageEvent> events = new ArrayList<PackageEvent>();
// Connect and fetch package information:
try {
URL url = new URL(p.provider.baseURL + p.id);
HttpURLConnection con = (HttpURLConnection)url.openConnec... |
diff --git a/Servers/JavaServer/src/dbs/search/parser/Wrapper.java b/Servers/JavaServer/src/dbs/search/parser/Wrapper.java
index 64048a1f..d386418d 100644
--- a/Servers/JavaServer/src/dbs/search/parser/Wrapper.java
+++ b/Servers/JavaServer/src/dbs/search/parser/Wrapper.java
@@ -1,127 +1,128 @@
package dbs.search.parse... | true | true | public String getQuery(String query, String begin, String end, String db, boolean upper) throws Exception {
String queryToReturn ="";
//System.out.println("Query " + query);
try{
//ByteArrayInputStream bis = new ByteArrayInputStream(query.getBytes());
ANTLRStringStream input = new ANTLRStringStream... | public String getQuery(String query, String begin, String end, String db, boolean upper) throws Exception {
String queryToReturn ="";
//System.out.println("Query " + query);
try{
//ByteArrayInputStream bis = new ByteArrayInputStream(query.getBytes());
ANTLRStringStream input = new ANTLRStringStream... |
diff --git a/src/Core/org/objectweb/proactive/core/body/BodyImpl.java b/src/Core/org/objectweb/proactive/core/body/BodyImpl.java
index 76d83dc9e..902a1372b 100644
--- a/src/Core/org/objectweb/proactive/core/body/BodyImpl.java
+++ b/src/Core/org/objectweb/proactive/core/body/BodyImpl.java
@@ -1,932 +1,932 @@
/*
* ###... | false | true | private void serveInternal(Request request) {
if (request == null) {
return;
}
if (!isProActiveInternalObject) {
if (((RequestReceiverImpl) requestReceiver).immediateExecution(request)) {
debugger.breakpoint(BreakpointType.... | private void serveInternal(Request request) {
if (request == null) {
return;
}
if (!isProActiveInternalObject) {
if (((RequestReceiverImpl) requestReceiver).immediateExecution(request)) {
debugger.breakpoint(BreakpointType.... |
diff --git a/Sparx/src/java/main/com/netspective/sparx/navigate/fts/SearchHitsTemplateRenderer.java b/Sparx/src/java/main/com/netspective/sparx/navigate/fts/SearchHitsTemplateRenderer.java
index 055e3bd3..5bf8e7c5 100644
--- a/Sparx/src/java/main/com/netspective/sparx/navigate/fts/SearchHitsTemplateRenderer.java
+++ b/... | false | true | public SearchExpression getSearchExpression(final NavigationContext nc)
{
final ServletRequest request = nc.getRequest();
final Query advancedQuery = getAdvancedSearchQuery(nc);
final String exprText = advancedQuery != null
? advancedQuery.toString() : req... | public SearchExpression getSearchExpression(final NavigationContext nc)
{
final ServletRequest request = nc.getRequest();
final String searchWithinResultFormFieldValue = request.getParameter(searchWithinSearchResultsFormFieldName);
final Query advancedQuery = getAdvancedSearchQuery(nc);
... |
diff --git a/src/com/jkush321/autowalls/ColorCycler.java b/src/com/jkush321/autowalls/ColorCycler.java
index 0277ec8..c374272 100644
--- a/src/com/jkush321/autowalls/ColorCycler.java
+++ b/src/com/jkush321/autowalls/ColorCycler.java
@@ -1,135 +1,135 @@
package com.jkush321.autowalls;
import java.util.HashMap;
impo... | false | true | public static void cycle(Player p)
{
ChatColor nextColor;
if (getFakeColor(p) == null)
{
if (AutoWalls.redTeam.contains(p))
{
nextColor = ChatColor.DARK_AQUA;
}
else if (AutoWalls.blueTeam.contains(p))
{
nextColor = ChatColor.DARK_GREEN;
}
else if (AutoWalls.greenTeam.contains(p))
... | public static void cycle(Player p)
{
ChatColor nextColor;
if (getFakeColor(p) == null)
{
if (AutoWalls.redTeam.contains(p))
{
nextColor = ChatColor.DARK_AQUA;
}
else if (AutoWalls.blueTeam.contains(p))
{
nextColor = ChatColor.DARK_GREEN;
}
else if (AutoWalls.greenTeam.contains(p))
... |
diff --git a/modules/util/src/main/java/org/mortbay/util/ajax/JSON.java b/modules/util/src/main/java/org/mortbay/util/ajax/JSON.java
index de8d94383..1605897bb 100644
--- a/modules/util/src/main/java/org/mortbay/util/ajax/JSON.java
+++ b/modules/util/src/main/java/org/mortbay/util/ajax/JSON.java
@@ -1,1348 +1,1360 @@
... | false | true | private String parseString(Source source)
{
if (source.next()!='"')
throw new IllegalStateException();
boolean escape=false;
StringBuffer b=null;
final char[] scratch=source.scratchBuffer();
if (scratch!=null)
{
int i=0;
... | private String parseString(Source source)
{
if (source.next()!='"')
throw new IllegalStateException();
boolean escape=false;
StringBuffer b=null;
final char[] scratch=source.scratchBuffer();
if (scratch!=null)
{
int i=0;
... |
diff --git a/CosetSolver.java b/CosetSolver.java
index 407726d..794c5e4 100644
--- a/CosetSolver.java
+++ b/CosetSolver.java
@@ -1,257 +1,257 @@
package cg.fivestage444;
import cg.fivestage444.Stages.*;
public final class CosetSolver {
public static int length;
public static long unique;
public static Cu... | true | true | public void run(){
Stage s1 = subgroup_stage.newOne();
Stage s2 = subgroup_stage.newOne();
long idxBatch=getNewIdxBatch();
while (idxBatch >= 0){
for( long idx=idxBatch; idx< Math.min(idxBatch + BATCH_SIZE,subgroup_stage.STAGE_SIZE); idx++){
if(length<15){
if(visited[(int)(idx>>>3)] == 0){... | public void run(){
Stage s1 = subgroup_stage.newOne();
Stage s2 = subgroup_stage.newOne();
long idxBatch=getNewIdxBatch();
while (idxBatch >= 0){
for( long idx=idxBatch; idx< Math.min(idxBatch + BATCH_SIZE,subgroup_stage.STAGE_SIZE); idx++){
if(length<15){
if(visited[(int)(idx>>>3)] == 0){... |
diff --git a/opendap/src/test/java/opendap/test/TestGroups.java b/opendap/src/test/java/opendap/test/TestGroups.java
index eac1c0b2d..d45e7c5cc 100644
--- a/opendap/src/test/java/opendap/test/TestGroups.java
+++ b/opendap/src/test/java/opendap/test/TestGroups.java
@@ -1,162 +1,162 @@
/*
* Copyright (c) 1998 - 2011. ... | true | true | public void
utestGroup() throws Exception
{
boolean usegroups = RC.getUseGroups();
if(!usegroups) {
assertTrue("TestGroups: Group Support not enabled",false);
}
// Check if we are running against motherlode or localhost, or what.
String testserver = System.getProperty("testserver");
... | public void
testGroup() throws Exception
{
boolean usegroups = RC.getUseGroups();
if(!usegroups) {
assertTrue("TestGroups: Group Support not enabled",false);
}
// Check if we are running against motherlode or localhost, or what.
String testserver = System.getProperty("testserver");
... |
diff --git a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java b/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
index c15b569..aa29616 100644
--- a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
+++ b/java/gov/nist/javax/sip/clientauthutils/Authenticatio... | true | true | public ClientTransaction handleChallenge(Response challenge,
ClientTransaction challengedTransaction, SipProvider transactionCreator, int cacheTime)
throws SipException, NullPointerException {
try {
if (sipStack.isLoggingEnabled()) {
sipStack.getStackLogge... | public ClientTransaction handleChallenge(Response challenge,
ClientTransaction challengedTransaction, SipProvider transactionCreator, int cacheTime)
throws SipException, NullPointerException {
try {
if (sipStack.isLoggingEnabled()) {
sipStack.getStackLogge... |
diff --git a/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java b/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java
index dee18cc0d7..671380536d 100644
--- a/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTe... | false | true | private void validateTemplateName(Long templateId, String templateName) {
if(StringUtils.isNullOrEmpty(templateName)) {
String errorMsg = "Name can't be blank";
LOG.error(errorMsg);
throw new BadRequestException(errorMsg);
}
List<PermissionTemplateDto> existingTemplates = permissionDao.s... | private void validateTemplateName(Long templateId, String templateName) {
if(StringUtils.isNullOrEmpty(templateName)) {
String errorMsg = "Name can't be blank";
throw new BadRequestException(errorMsg);
}
List<PermissionTemplateDto> existingTemplates = permissionDao.selectAllPermissionTemplates... |
diff --git a/jnalib/src/com/sun/jna/Function.java b/jnalib/src/com/sun/jna/Function.java
index 9331ca7d..a7eca948 100644
--- a/jnalib/src/com/sun/jna/Function.java
+++ b/jnalib/src/com/sun/jna/Function.java
@@ -1,665 +1,664 @@
/* This library is free software; you can redistribute it and/or
* modify it under the ter... | true | true | private Object convertArgument(Object[] args, int index, Method invokingMethod, TypeMapper mapper) {
Object arg = args[index];
if (arg != null) {
Class type = arg.getClass();
ToNativeConverter converter = null;
if (NativeMapped.class.isAssignableFrom(type)) {
... | private Object convertArgument(Object[] args, int index, Method invokingMethod, TypeMapper mapper) {
Object arg = args[index];
if (arg != null) {
Class type = arg.getClass();
ToNativeConverter converter = null;
if (NativeMapped.class.isAssignableFrom(type)) {
... |
diff --git a/app/models/AbstractShellCommand.java b/app/models/AbstractShellCommand.java
index d1ed6ab..4a308a5 100644
--- a/app/models/AbstractShellCommand.java
+++ b/app/models/AbstractShellCommand.java
@@ -1,354 +1,354 @@
package models;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOEx... | true | true | public boolean run() throws CommandException {
try {
/*
* 1. prepare the stream handler
*/
fLogStream = (fLogFile!=null) ? new FileOutputStream(fLogFile) : null;
fErrStream = (fErrFile!=null) ? new FileOutputStream(fErrFile) : null;
try {
/*
* 2. prepare the command... | public boolean run() throws CommandException {
try {
/*
* 1. prepare the stream handler
*/
fLogStream = (fLogFile!=null) ? new FileOutputStream(fLogFile) : null;
fErrStream = (fErrFile!=null) ? new FileOutputStream(fErrFile) : null;
try {
/*
* 2. prepare the command... |
diff --git a/src/org/apache/xerces/utils/URI.java b/src/org/apache/xerces/utils/URI.java
index 3240901e..c1afd361 100644
--- a/src/org/apache/xerces/utils/URI.java
+++ b/src/org/apache/xerces/utils/URI.java
@@ -1,1397 +1,1398 @@
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999,2000 The Ap... | true | true | private void initialize(URI p_base, String p_uriSpec)
throws MalformedURIException {
if (p_base == null &&
(p_uriSpec == null || p_uriSpec.trim().length() == 0)) {
throw new MalformedURIException(
"Cannot initialize URI with empty parameters.");
}
... | private void initialize(URI p_base, String p_uriSpec)
throws MalformedURIException {
if (p_base == null &&
(p_uriSpec == null || p_uriSpec.trim().length() == 0)) {
throw new MalformedURIException(
"Cannot initialize URI with empty parameters.");
}
... |
diff --git a/v4/java/android/support/v4/widget/DrawerLayout.java b/v4/java/android/support/v4/widget/DrawerLayout.java
index a3f3df8..0fbf907 100644
--- a/v4/java/android/support/v4/widget/DrawerLayout.java
+++ b/v4/java/android/support/v4/widget/DrawerLayout.java
@@ -1,1591 +1,1592 @@
/*
* Copyright (C) 2013 The An... | true | true | protected void onLayout(boolean changed, int l, int t, int r, int b) {
mInLayout = true;
final int width = r - l;
final int childCount = getChildCount();
for (int i = 0; i < childCount; i++) {
final View child = getChildAt(i);
if (child.getVisibility() == GON... | protected void onLayout(boolean changed, int l, int t, int r, int b) {
mInLayout = true;
final int width = r - l;
final int childCount = getChildCount();
for (int i = 0; i < childCount; i++) {
final View child = getChildAt(i);
if (child.getVisibility() == GON... |
diff --git a/components/bio-formats/src/loci/formats/in/BioRadReader.java b/components/bio-formats/src/loci/formats/in/BioRadReader.java
index de0ad4663..8ffe51efb 100644
--- a/components/bio-formats/src/loci/formats/in/BioRadReader.java
+++ b/components/bio-formats/src/loci/formats/in/BioRadReader.java
@@ -1,916 +1,90... | false | true | protected void initFile(String id) throws FormatException, IOException {
if (debug) debug("BioRadReader.initFile(" + id + ")");
// always initialize a PIC file, even if we were given something else
if (!checkSuffix(id, PIC_SUFFIX)) {
Location dir = new Location(id).getAbsoluteFile().getParentFile()... | protected void initFile(String id) throws FormatException, IOException {
if (debug) debug("BioRadReader.initFile(" + id + ")");
// always initialize a PIC file, even if we were given something else
if (!checkSuffix(id, PIC_SUFFIX)) {
Location dir = new Location(id).getAbsoluteFile().getParentFile()... |
diff --git a/core/src/main/java/brooklyn/location/basic/LocalhostPropertiesFromBrooklynProperties.java b/core/src/main/java/brooklyn/location/basic/LocalhostPropertiesFromBrooklynProperties.java
index eacb5bd1e..0b95766ca 100644
--- a/core/src/main/java/brooklyn/location/basic/LocalhostPropertiesFromBrooklynProperties.... | true | true | public Map<String, Object> getLocationProperties(String provider, String namedLocation, Map<String, ?> properties) {
if (Strings.isNullOrEmpty(namedLocation) && Strings.isNullOrEmpty(provider)) {
throw new IllegalArgumentException("Neither cloud provider/API nor location name have been specified... | public Map<String, Object> getLocationProperties(String provider, String namedLocation, Map<String, ?> properties) {
if (Strings.isNullOrEmpty(namedLocation) && Strings.isNullOrEmpty(provider)) {
throw new IllegalArgumentException("Neither cloud provider/API nor location name have been specified... |
diff --git a/core/src/main/java/de/javakaffee/web/msm/NodeIdList.java b/core/src/main/java/de/javakaffee/web/msm/NodeIdList.java
index fc7a793..6d29564 100644
--- a/core/src/main/java/de/javakaffee/web/msm/NodeIdList.java
+++ b/core/src/main/java/de/javakaffee/web/msm/NodeIdList.java
@@ -1,68 +1,68 @@
/*
* Copyright... | true | true | public String getNextNodeId( @Nonnull final String nodeId ) throws IllegalArgumentException {
final int idx = indexOf( nodeId );
if ( idx < 0 ) {
throw new IllegalArgumentException( "The given node id is not part of this list" );
}
if ( size() == 1 ) {
return ... | public String getNextNodeId( @Nonnull final String nodeId ) throws IllegalArgumentException {
final int idx = indexOf( nodeId );
if ( idx < 0 ) {
throw new IllegalArgumentException( "The given node id "+ nodeId +" is not part of this list " + toString() );
}
if ( size() =... |
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
index cbedc4c79..56c7be5a9 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/A... | true | true | private List<Stage> doStageCreation(Cluster cluster,
Map<State, List<Service>> changedServices,
Map<State, List<ServiceComponent>> changedComps,
Map<String, Map<State, List<ServiceComponentHost>>> changedScHosts,
Map<String, String> requestParameters, String requestContext)
throws Am... | private List<Stage> doStageCreation(Cluster cluster,
Map<State, List<Service>> changedServices,
Map<State, List<ServiceComponent>> changedComps,
Map<String, Map<State, List<ServiceComponentHost>>> changedScHosts,
Map<String, String> requestParameters, String requestContext)
throws Am... |
diff --git a/jbpm-designer-client/src/main/java/org/jbpm/designer/client/DesignerView.java b/jbpm-designer-client/src/main/java/org/jbpm/designer/client/DesignerView.java
index 77cb313c4..07e475b4b 100644
--- a/jbpm-designer-client/src/main/java/org/jbpm/designer/client/DesignerView.java
+++ b/jbpm-designer-client/src/... | true | true | private void setupInlineFrame() {
inlineFrame.setWidth("100%");
inlineFrame.setHeight("680");
inlineFrame.getElement().getStyle().setBorderWidth(0, Style.Unit.PX);
inlineFrame.getElement().getStyle().setOverflowX(Style.Overflow.AUTO);
inlineFrame.getElement().getStyle().setOv... | private void setupInlineFrame() {
inlineFrame.setWidth("100%");
inlineFrame.setHeight("680");
inlineFrame.getElement().getStyle().setBorderWidth(0, Style.Unit.PX);
inlineFrame.getElement().getStyle().setOverflowX(Style.Overflow.AUTO);
inlineFrame.getElement().getStyle().setOv... |
diff --git a/src/powercrystals/minefactoryreloaded/plants/TileEntityPlanter.java b/src/powercrystals/minefactoryreloaded/plants/TileEntityPlanter.java
index 6a26199c..61b20f4d 100644
--- a/src/powercrystals/minefactoryreloaded/plants/TileEntityPlanter.java
+++ b/src/powercrystals/minefactoryreloaded/plants/TileEntityPl... | true | true | public boolean activateMachine()
{
BlockPosition bp = _areaManager.getNextBlock();
for(int stackIndex = 0; stackIndex < getSizeInventory(); stackIndex++)
{
if(getStackInSlot(stackIndex) == null)
{
continue;
}
ItemStack availableStack = getStackInSlot(stackIndex);
if(!MFRRegistry.ge... | public boolean activateMachine()
{
BlockPosition bp = _areaManager.getNextBlock().copy();
bp.y += 1;
for(int stackIndex = 0; stackIndex < getSizeInventory(); stackIndex++)
{
if(getStackInSlot(stackIndex) == null)
{
continue;
}
ItemStack availableStack = getStackInSlot(stackIndex);
... |
diff --git a/CalorieCounter/src/edu/upenn/cis350/CalorieCounterActivity.java b/CalorieCounter/src/edu/upenn/cis350/CalorieCounterActivity.java
index 4f87403..32357c3 100644
--- a/CalorieCounter/src/edu/upenn/cis350/CalorieCounterActivity.java
+++ b/CalorieCounter/src/edu/upenn/cis350/CalorieCounterActivity.java
@@ -1,2... | false | true | protected Dialog onCreateDialog(int id) {
Resources res = getResources();
if(id == CORRECT_DIALOG) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
// Example format: "That's right, an order of McDonald's fries is 550 calories."
String message = res.getSt... | protected Dialog onCreateDialog(int id) {
Resources res = getResources();
if(id == CORRECT_DIALOG) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
// Example format: "That's right, an order of McDonald's fries is 550 calories."
String message = res.getSt... |
diff --git a/crypto/src/org/bouncycastle/asn1/cms/EnvelopedData.java b/crypto/src/org/bouncycastle/asn1/cms/EnvelopedData.java
index 0ce469c2..ae16e826 100644
--- a/crypto/src/org/bouncycastle/asn1/cms/EnvelopedData.java
+++ b/crypto/src/org/bouncycastle/asn1/cms/EnvelopedData.java
@@ -1,188 +1,188 @@
package org.boun... | true | true | public static int calculateVersion(OriginatorInfo originatorInfo, ASN1Set recipientInfos, ASN1Set unprotectedAttrs)
{
int version;
if (originatorInfo != null || unprotectedAttrs != null)
{
version = 2;
}
else
{
version = 0;
En... | public static int calculateVersion(OriginatorInfo originatorInfo, ASN1Set recipientInfos, ASN1Set unprotectedAttrs)
{
int version;
if (originatorInfo != null || unprotectedAttrs != null)
{
version = 2;
}
else
{
version = 0;
En... |
diff --git a/src/net/gumbercules/loot/backend/Database.java b/src/net/gumbercules/loot/backend/Database.java
index 569b6d9..44ff513 100644
--- a/src/net/gumbercules/loot/backend/Database.java
+++ b/src/net/gumbercules/loot/backend/Database.java
@@ -1,689 +1,689 @@
package net.gumbercules.loot.backend;
import java.i... | false | true | private boolean upgradeDB( int max_version )
{
int current_version = lootDB.getVersion();
if (current_version < 2)
{
lootDB.beginTransaction();
try
{
lootDB.execSQL("alter table accounts add column priority integer default 1");
lootDB.execSQL("update accounts set priority = 1");
// fix e... | private boolean upgradeDB( int max_version )
{
int current_version = lootDB.getVersion();
if (current_version < 2)
{
lootDB.beginTransaction();
try
{
lootDB.execSQL("alter table accounts add column priority integer default 1");
lootDB.execSQL("update accounts set priority = 1");
// fix e... |
diff --git a/ide/eclipse/core/org.wso2.developerstudio.eclipse.platform.core/src/org/wso2/developerstudio/eclipse/platform/core/intro/ui/DashboardPage.java b/ide/eclipse/core/org.wso2.developerstudio.eclipse.platform.core/src/org/wso2/developerstudio/eclipse/platform/core/intro/ui/DashboardPage.java
index 6230d18b6..e8... | true | true | protected void createFormContent(IManagedForm managedForm) {
//setting initial selection
ISelection initialSelection = getSite().getWorkbenchWindow().getSelectionService()
.getSelection(PROJECT_EXPLORER_PARTID);
if (initialSelection != null) {
selection = initialSelection;
} else {
initialSelectio... | protected void createFormContent(IManagedForm managedForm) {
//setting initial selection
ISelection initialSelection = getSite().getWorkbenchWindow().getSelectionService()
.getSelection(PROJECT_EXPLORER_PARTID);
if (initialSelection != null) {
selection = initialSelection;
} else {
initialSelectio... |
diff --git a/MCU-API/src/org/smbarbour/mcu/util/ModDownload.java b/MCU-API/src/org/smbarbour/mcu/util/ModDownload.java
index 2feeaa8..b9cc4c5 100644
--- a/MCU-API/src/org/smbarbour/mcu/util/ModDownload.java
+++ b/MCU-API/src/org/smbarbour/mcu/util/ModDownload.java
@@ -1,349 +1,351 @@
package org.smbarbour.mcu.util;
/... | true | true | public ModDownload(URL url, File destination, ModDownload referer, String MD5) throws Exception {
this.url = url;
this.expectedMD5 = MD5;
logger.fine("URL: " + url.toString());
//this.remoteFilename = url.getFile().substring(url.getFile().lastIndexOf('/')+1);
// TODO: check for md5 in download cache first
... | public ModDownload(URL url, File destination, ModDownload referer, String MD5) throws Exception {
this.url = url;
this.expectedMD5 = MD5;
logger.fine("URL: " + url.toString());
//this.remoteFilename = url.getFile().substring(url.getFile().lastIndexOf('/')+1);
// TODO: check for md5 in download cache first
... |
diff --git a/studentBase/src/org/studentbase/gui/StudentListComboBoxRefreshButton.java b/studentBase/src/org/studentbase/gui/StudentListComboBoxRefreshButton.java
index 6bdcad9..c6c13af 100644
--- a/studentBase/src/org/studentbase/gui/StudentListComboBoxRefreshButton.java
+++ b/studentBase/src/org/studentbase/gui/Stude... | true | true | public StudentListComboBoxRefreshButton(StudentListComboBox comboBox) {
super();
this.comboBox = comboBox;
this.addActionListener(this);
this.setToolTipText("Ανανέωση της λίστας με τους μαθητές");
ImageIcon bg_img = new ImageIcon("images/Button-Refresh-icon.jpg");
ImageIcon thumb = new ImageIcon(getScale... | public StudentListComboBoxRefreshButton(StudentListComboBox comboBox) {
super();
this.comboBox = comboBox;
this.addActionListener(this);
this.setToolTipText("Ανανέωση της λίστας με τους μαθητές");
//ImageIcon bg_img = new ImageIcon("/images/Button-Refresh-icon.jpg");
ImageIcon bg_img = new ImageIcon(getC... |
diff --git a/src/com/aokp/romcontrol/fragments/UserInterface.java b/src/com/aokp/romcontrol/fragments/UserInterface.java
index 5ad3f79..0b181bb 100644
--- a/src/com/aokp/romcontrol/fragments/UserInterface.java
+++ b/src/com/aokp/romcontrol/fragments/UserInterface.java
@@ -1,740 +1,734 @@
package com.aokp.romcontrol.... | false | true | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mAllow180Rotation) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(mContext.getContentResolver(),
... | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mAllow180Rotation) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(mContext.getContentResolver(),
... |
diff --git a/zssapp/test/SS_026_Test.java b/zssapp/test/SS_026_Test.java
index bee042b..5f2a986 100644
--- a/zssapp/test/SS_026_Test.java
+++ b/zssapp/test/SS_026_Test.java
@@ -1,28 +1,28 @@
import org.zkoss.ztl.JQuery;
public class SS_026_Test extends SSAbstractTestCase {
/**
* Test steps:
* 1. Click m... | false | true | protected void executeTest() {
JQuery cell = getSpecifiedCell(5, 20);
clickCell(cell);
clickCell(cell);
click("jq('$viewMenu button.z-menu-btn')");
waitResponse();
click("jq('$viewFormulaBar a.z-menu-item-cnt-ck')");
waitResponse();
verifyTrue(jq("$formulaBar").heig... | protected void executeTest() {
JQuery cell = getSpecifiedCell(5, 20);
clickCell(cell);
clickCell(cell);
click("jq('$viewMenu button.z-menu-btn')");
waitResponse();
click("jq('$viewFormulaBar a.z-menu-item-cnt-ck')");
waitResponse();
verifyFalse(isWidgetVisible("$for... |
diff --git a/src/main/java/edu/berkeley/grippus/util/Pair.java b/src/main/java/edu/berkeley/grippus/util/Pair.java
index ecf232b..84460fb 100644
--- a/src/main/java/edu/berkeley/grippus/util/Pair.java
+++ b/src/main/java/edu/berkeley/grippus/util/Pair.java
@@ -1,66 +1,65 @@
package edu.berkeley.grippus.util;
import... | true | true | public boolean equals(Object obj) {
if (!(obj instanceof Pair<?, ?>))
return false;
Pair<?, ?> other = (Pair<?, ?>) obj;
return ((other.car == null && car == null) || (other.car.equals(car)))
&& ((other.cdr == null && cdr == null) || (other.cdr
.equals(cdr)));
}
| public boolean equals(Object obj) {
if (!(obj instanceof Pair<?, ?>))
return false;
Pair<?, ?> other = (Pair<?, ?>) obj;
return ((other.car == null && car == null) || (other.car.equals(car)))
&& ((other.cdr == null && cdr == null) || (other.cdr.equals(cdr)));
}
|
diff --git a/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/FreetypeBuild.java b/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/FreetypeBuild.java
index 947ce8b10..7eb43d16c 100644
--- a/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/FreetypeBuild.java
+++ b/e... | false | true | public static void main (String[] args) throws Exception {
String[] headers = {"freetype-2.4.10/include"};
String[] sources = {
// BASE
"freetype-2.4.10/src/base/ftsystem.c", "freetype-2.4.10/src/base/ftinit.c", "freetype-2.4.10/src/base/ftdebug.c",
"freetype-2.4.10/src/base/ftbase.c", "freetype-2.4.10/sr... | public static void main (String[] args) throws Exception {
String[] headers = {"freetype-2.4.10/include"};
String[] sources = {
// BASE
"freetype-2.4.10/src/base/ftsystem.c", "freetype-2.4.10/src/base/ftinit.c", "freetype-2.4.10/src/base/ftdebug.c",
"freetype-2.4.10/src/base/ftbase.c", "freetype-2.4.10/sr... |
diff --git a/libraries/circuitbreaker/src/test/java/org/qi4j/library/circuitbreaker/jmx/CircuitBreakerManagementSample.java b/libraries/circuitbreaker/src/test/java/org/qi4j/library/circuitbreaker/jmx/CircuitBreakerManagementSample.java
index ec719380b..ef8a41d24 100644
--- a/libraries/circuitbreaker/src/test/java/org/... | true | true | public static void main( String[] args )
throws ActivationException, AssemblyException
{
SingletonAssembler assembler = new SingletonAssembler()
{
@Override
// START SNIPPET: jmx
public void assemble( ModuleAssembly module )
throws... | public static void main( String[] args )
throws ActivationException, AssemblyException
{
SingletonAssembler assembler = new SingletonAssembler()
{
@Override
// START SNIPPET: jmx
public void assemble( ModuleAssembly module )
throws... |
diff --git a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/outline/SpoofaxOutlinePage.java b/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/outline/SpoofaxOutlinePage.java
index e2e69707..52861440 100644
--- a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/ou... | false | true | public void textSelectionToOutlineSelection() {
if (outline == null) {
return;
}
EditorState editorState = EditorState.getEditorFor(parseController);
IStrategoTerm textSelection = null;
try {
textSelection = editorState.getSelectionAst(true);
}
catch (Index... | public void textSelectionToOutlineSelection() {
if (outline == null) {
return;
}
EditorState editorState = EditorState.getEditorFor(parseController);
IStrategoTerm textSelection = null;
try {
textSelection = editorState.getSelectionAst(true);
}
catch (Index... |
diff --git a/common/src/main/java/com/cqlybest/common/web/CqlybestFilter.java b/common/src/main/java/com/cqlybest/common/web/CqlybestFilter.java
index 3b9079f..b5b5c8c 100644
--- a/common/src/main/java/com/cqlybest/common/web/CqlybestFilter.java
+++ b/common/src/main/java/com/cqlybest/common/web/CqlybestFilter.java
@@ ... | false | true | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
long start = System.currentTimeMillis();
HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
... | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
long start = System.currentTimeMillis();
HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
... |
diff --git a/src/main/java/com/googlecode/t7mp/steps/resources/CopyConfigResourceFromClasspath.java b/src/main/java/com/googlecode/t7mp/steps/resources/CopyConfigResourceFromClasspath.java
index 9a7aca7..dfd5e6d 100644
--- a/src/main/java/com/googlecode/t7mp/steps/resources/CopyConfigResourceFromClasspath.java
+++ b/sr... | true | true | public void execute(Context context) {
final File tomcatConfDirectory = new File(context.getMojo().getCatalinaBase(), "/conf/");
try {
this.setupUtil.copy(getClass().getResourceAsStream(RESOURCEPATH + resource), new FileOutputStream(new File(
tomcatConfDirectory, reso... | public void execute(Context context) {
final File tomcatConfDirectory = new File(context.getMojo().getCatalinaBase(), "/conf/");
try {
FileOutputStream out = new FileOutputStream(new File(
tomcatConfDirectory, resource));
this.setupUtil.copy(getClass().getResourc... |
diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
index f7cd55d5b..aaf4d9408 100644
--- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
+++ b/maven-core/src/main/java/org/apach... | false | true | public void executeMojo( MavenProject project,
MojoExecution mojoExecution,
MavenSession session )
throws ArtifactResolutionException, MojoFailureException,
ArtifactNotFoundException, InvalidDependencyVersionException, PluginManagerException,... | public void executeMojo( MavenProject project,
MojoExecution mojoExecution,
MavenSession session )
throws ArtifactResolutionException, MojoFailureException,
ArtifactNotFoundException, InvalidDependencyVersionException, PluginManagerException,... |
diff --git a/src/Philosopher.java b/src/Philosopher.java
index a525f69..20e2f38 100644
--- a/src/Philosopher.java
+++ b/src/Philosopher.java
@@ -1,141 +1,147 @@
/**
* @author Greg Chambers
* @author Jacob Juby
* @author Yin Poon
*/
import java.util.Random;
/**
* Philosopher class that extends thread. C... | false | true | public void run(){
int runCount = this.nTimes;
long sleepAmount;
long eatAmount;
Random rndGen = new Random();
// Run while infinite run is set to true or if the counter hasn't
// hit zero yet.
while(infRun || (!(runCount <= 0))){
// Sleep for a random amount of time.
if(this.thinkMillis != 0){
... | public void run(){
int runCount = this.nTimes;
long sleepAmount;
long eatAmount;
Random rndGen = new Random();
// Run while infinite run is set to true or if the counter hasn't
// hit zero yet.
while(infRun || (!(runCount <= 0))){
// Sleep for a random amount of time.
if(this.thinkMillis != 0){
... |
diff --git a/com.predic8.membrane.core/src/main/java/com/predic8/membrane/core/transport/http/HttpTransport.java b/com.predic8.membrane.core/src/main/java/com/predic8/membrane/core/transport/http/HttpTransport.java
index 38ab3e11..69f99993 100644
--- a/com.predic8.membrane.core/src/main/java/com/predic8/membrane/core/t... | true | true | public synchronized void closePort(int port) throws IOException {
log.debug("Closing server port: " + port);
HttpEndpointListener plt = portListenerMapping.get(port);
if (plt == null)
return;
plt.closePort();
portListenerMapping.remove(port);
for (IPortChangeListener listener : menuListeners) {
lis... | public synchronized void closePort(int port) throws IOException {
log.debug("Closing server port: " + port);
HttpEndpointListener plt = portListenerMapping.get(port);
if (plt == null)
return;
plt.closePort();
try {
plt.join();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();... |
diff --git a/src/main/java/org/libvirt/ErrorHandler.java b/src/main/java/org/libvirt/ErrorHandler.java
index 543829e..4dd7c90 100644
--- a/src/main/java/org/libvirt/ErrorHandler.java
+++ b/src/main/java/org/libvirt/ErrorHandler.java
@@ -1,37 +1,34 @@
package org.libvirt;
import org.libvirt.jna.ConnectionPointer;
i... | false | true | public static void processError(Libvirt libvirt) throws LibvirtException {
virError vError = new virError();
int errorCode = libvirt.virCopyLastError(vError);
if (errorCode > 0) {
Error error = new Error(vError);
libvirt.virResetLastError();
/*
... | public static void processError(Libvirt libvirt) throws LibvirtException {
virError vError = libvirt.virGetLastError();
if (vError != null) {
Error error = new Error(vError);
/*
* Don't throw exceptions for VIR_ERR_WARNING level errors
*/
... |
diff --git a/java2as-core/src/main/java/net/histos/java2as/as3/As3CustomType.java b/java2as-core/src/main/java/net/histos/java2as/as3/As3CustomType.java
index c1465d2..f2201db 100644
--- a/java2as-core/src/main/java/net/histos/java2as/as3/As3CustomType.java
+++ b/java2as-core/src/main/java/net/histos/java2as/as3/As3Cus... | true | true | public boolean equals(Object o) {
if (this == o) return true;
if (o == null) return false;
if (!(o instanceof As3CustomType)) return false;
As3CustomType that = (As3CustomType) o;
return qualifiedName.equals(that.getQualifiedName().equals(o));
}
| public boolean equals(Object o) {
if (this == o) return true;
if (o == null) return false;
if (!(o instanceof As3CustomType)) return false;
As3CustomType that = (As3CustomType) o;
return qualifiedName.equals(that.getQualifiedName());
}
|
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyScaleProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyScaleProducer.java
index 67ff4803..f2fd89f1 100644
--- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyScaleProducer.java
+++ b/tool/src/java/o... | true | true | public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {
String currentUserId = external.getCurrentUserId();
boolean userAdmin = external.isUserAdmin(currentUserId);
if (!userAdmin) {
// Security check and denial
throw new SecurityException("Non-admin users may... | public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {
String currentUserId = external.getCurrentUserId();
boolean userAdmin = external.isUserAdmin(currentUserId);
if (!userAdmin) {
// Security check and denial
throw new SecurityException("Non-admin users may... |
diff --git a/api/src/main/java/org/openmrs/obs/handler/BinaryDataHandler.java b/api/src/main/java/org/openmrs/obs/handler/BinaryDataHandler.java
index 24d2723e..f10dd835 100644
--- a/api/src/main/java/org/openmrs/obs/handler/BinaryDataHandler.java
+++ b/api/src/main/java/org/openmrs/obs/handler/BinaryDataHandler.java
@... | true | true | public Obs getObs(Obs obs, String view) {
try {
File file = getComplexDataFile(obs);
String[] names = obs.getValueComplex().split("\\|");
String originalFilename = names[0];
if ("download".equals(view)) {
originalFilename = originalFilename.replace(",", "").replace(" ", "");
}
if (file.e... | public Obs getObs(Obs obs, String view) {
try {
File file = getComplexDataFile(obs);
String[] names = obs.getValueComplex().split("\\|");
String originalFilename = names[0];
if ("download".equals(view)) {
originalFilename = originalFilename.replace(",", "").replace(" ", "");
}
if (file.e... |
diff --git a/test/src/org/bouncycastle/openssl/test/ParserTest.java b/test/src/org/bouncycastle/openssl/test/ParserTest.java
index d7d49555..521106b1 100644
--- a/test/src/org/bouncycastle/openssl/test/ParserTest.java
+++ b/test/src/org/bouncycastle/openssl/test/ParserTest.java
@@ -1,500 +1,500 @@
package org.bouncyca... | true | true | public void performTest()
throws Exception
{
PEMParser pemRd = openPEMResource("test.pem");
Object o;
PEMKeyPair pemPair;
KeyPair pair;
while ((o = pemRd.readObject()) != null)
{
if (o instanceof KeyPair)
... | public void performTest()
throws Exception
{
PEMParser pemRd = openPEMResource("test.pem");
Object o;
PEMKeyPair pemPair;
KeyPair pair;
while ((o = pemRd.readObject()) != null)
{
if (o instanceof KeyPair)
... |
diff --git a/src/main/java/org/openmrs/module/mirebalais/smoke/pageobjects/PatientDashboard.java b/src/main/java/org/openmrs/module/mirebalais/smoke/pageobjects/PatientDashboard.java
index c631cf3..deb1068 100644
--- a/src/main/java/org/openmrs/module/mirebalais/smoke/pageobjects/PatientDashboard.java
+++ b/src/main/ja... | true | true | public Integer countEncountersOfType(String encounterName) {
try {
wait5seconds.until(presenceOfElementLocated(By.id("span.encounter-name")));
}
catch (TimeoutException e) {
return 0;
}
int count = 0;
List<WebElement> encounters = driver.findElements(By.css... | public Integer countEncountersOfType(String encounterName) {
try {
wait5seconds.until(presenceOfElementLocated(By.cssSelector("span.encounter-name")));
}
catch (TimeoutException e) {
return 0;
}
int count = 0;
List<WebElement> encounters = driver.findElemen... |
diff --git a/core/org.eclipse.ptp.launch/src/org/eclipse/ptp/launch/ParallelLaunchConfigurationDelegate.java b/core/org.eclipse.ptp.launch/src/org/eclipse/ptp/launch/ParallelLaunchConfigurationDelegate.java
index aa496a0d9..166a87470 100644
--- a/core/org.eclipse.ptp.launch/src/org/eclipse/ptp/launch/ParallelLaunchConf... | true | true | public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
if (!(launch instanceof IPLaunch)) {
throw new CoreException(new Status(IStatus.ERROR, PTPLaunchPlugin.PLUGIN_ID,
Messages.ParallelLaunchConfigurationDelegate_Invalid_launch_o... | public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
if (!(launch instanceof IPLaunch)) {
throw new CoreException(new Status(IStatus.ERROR, PTPLaunchPlugin.PLUGIN_ID,
Messages.ParallelLaunchConfigurationDelegate_Invalid_launch_o... |
diff --git a/src/test/java/npanday/its/NPandayITClassLibWithWebRefInstallTest.java b/src/test/java/npanday/its/NPandayITClassLibWithWebRefInstallTest.java
index 9c17cd3..03f48bb 100644
--- a/src/test/java/npanday/its/NPandayITClassLibWithWebRefInstallTest.java
+++ b/src/test/java/npanday/its/NPandayITClassLibWithWebRef... | true | true | public void testClassLibWithWebRefInstall()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/ClassLibraryWithWebReference" );
Verifier verifier = getVerifier( testDir );
verifier.executeGoal( "install" );
String generatedClass =
... | public void testClassLibWithWebRefInstall()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/ClassLibraryWithWebReference" );
Verifier verifier = getVerifier( testDir );
verifier.executeGoal( "install" );
String generatedClass = "C... |
diff --git a/main/src/main/org/trypticon/hex/gui/notebook/NotebookPane.java b/main/src/main/org/trypticon/hex/gui/notebook/NotebookPane.java
index 7cf2bba..b866e09 100644
--- a/main/src/main/org/trypticon/hex/gui/notebook/NotebookPane.java
+++ b/main/src/main/org/trypticon/hex/gui/notebook/NotebookPane.java
@@ -1,134 +... | true | true | public NotebookPane(Notebook notebook) {
this.notebook = notebook;
// TODO: A proper binding API would be nice here...
setName(notebook.getName());
notebook.addPropertyChangeListener("name", new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent ev... | public NotebookPane(Notebook notebook) {
this.notebook = notebook;
// TODO: A proper binding API would be nice here...
setName(notebook.getName());
notebook.addPropertyChangeListener("name", new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent ev... |
diff --git a/src/dk/illution/computer/info/ComputerListFragment.java b/src/dk/illution/computer/info/ComputerListFragment.java
index b560092..b875336 100644
--- a/src/dk/illution/computer/info/ComputerListFragment.java
+++ b/src/dk/illution/computer/info/ComputerListFragment.java
@@ -1,135 +1,136 @@
package dk.illutio... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRetainInstance(true);
JSONObject computers_data = ComputerInfo.loadComputers();
Log.d("ComputerInfo", "Loaded computers.");
try {
Log.d("count", computers_data.getString("c... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRetainInstance(true);
JSONObject computers_data = ComputerInfo.loadComputers();
Log.d("ComputerInfo", "Loaded computers.");
try {
Log.d("count", computers_data.getString("c... |
diff --git a/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultRegistries.java b/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultRegistries.java
index fdf2828171..3c70ce5cbc 100755
--- a/schema-registries/src/main/java/org/apache/directory/server/s... | true | true | private boolean resolve( AttributeType at, List<Throwable> errors )
{
boolean isSuccess = true;
boolean hasMatchingRule = false;
if ( at == null )
{
return true;
}
try
{
isSuccess &= resolve( at.getSuperior(), errors );
}... | private boolean resolve( AttributeType at, List<Throwable> errors )
{
boolean isSuccess = true;
boolean hasMatchingRule = false;
if ( at == null )
{
return true;
}
try
{
isSuccess &= resolve( at.getSuperior(), errors );
}... |
diff --git a/packages/java/rinfo-base/src/main/java/se/lagrummet/rinfo/base/atom/FeedArchiveReader.java b/packages/java/rinfo-base/src/main/java/se/lagrummet/rinfo/base/atom/FeedArchiveReader.java
index de85de26..4cb5a7a3 100644
--- a/packages/java/rinfo-base/src/main/java/se/lagrummet/rinfo/base/atom/FeedArchiveReader... | true | true | public URL readFeedPage(URL url) throws IOException {
logger.info("Reading Feed <"+url+"> ...");
Feed feed;
URL followingUrl = null;
/* TODO:IMPROVE: opt. HEAD-req first using (somehow) supplied (template
method?) getLastRead(url) (If-Modified-Since/ETag..)..
*/
... | public URL readFeedPage(URL url) throws IOException {
logger.info("Reading Feed <"+url+"> ...");
Feed feed;
URL followingUrl = null;
/* TODO:IMPROVE:
optional use of supplied "If-Modified-Since"/"ETag"..
.. from template method(?): getLastReadTimeTag(url)..
... |
diff --git a/src/pt/up/fe/dceg/neptus/i18n/PoFile.java b/src/pt/up/fe/dceg/neptus/i18n/PoFile.java
index 6e7c657fd..27036f3ee 100644
--- a/src/pt/up/fe/dceg/neptus/i18n/PoFile.java
+++ b/src/pt/up/fe/dceg/neptus/i18n/PoFile.java
@@ -1,188 +1,191 @@
/*
* Copyright (c) 2004-2013 Universidade do Porto - Faculdade de En... | false | true | protected void load(File location) throws IOException {
// BufferedReader reader = new BufferedReader(new FileReader(location));
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(location), "UTF-8"));
PoEntry curEntry = new PoEntry();
String... | protected void load(File location) throws IOException {
// BufferedReader reader = new BufferedReader(new FileReader(location));
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(location), "UTF-8"));
PoEntry curEntry = new PoEntry();
String... |
diff --git a/Android/co.lab4u.instruments/src/co/lab4u/instruments/adapters/LabItemAdapter.java b/Android/co.lab4u.instruments/src/co/lab4u/instruments/adapters/LabItemAdapter.java
index 7502199..8f257a7 100644
--- a/Android/co.lab4u.instruments/src/co/lab4u/instruments/adapters/LabItemAdapter.java
+++ b/Android/co.lab... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
// let's inflate our xml
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View rowView = inflater.inflate(R.layout.activity_lab_finder_item, parent, false);
// gets our widgets fr... | public View getView(int position, View convertView, ViewGroup parent) {
// let's inflate our xml
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View rowView = inflater.inflate(R.layout.activity_lab_finder_item, parent, false);
// gets our widgets fr... |
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/LaunchStapGraph.java b/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/LaunchStapGraph.java
index b239d29c0..81585d98d 100644
--- a/systemtap/org.eclipse.linuxtools.ca... | true | true | public void launch(IBinary bin, String mode) {
super.initialize();
this.bin = bin;
name = "SystemTapGraph"; //$NON-NLS-1$
binName = getName(bin);
partialScriptPath = PluginConstants.getPluginLocation()
+ "parse_function_partial.stp"; //$NON-NLS-1$
viewID = "org.eclipse.linuxtools.callgraph.callgraph... | public void launch(IBinary bin, String mode) {
super.initialize();
this.bin = bin;
name = "SystemTapGraph"; //$NON-NLS-1$
binName = getName(bin);
partialScriptPath = PluginConstants.getPluginLocation()
+ "parse_function_partial.stp"; //$NON-NLS-1$
viewID = "org.eclipse.linuxtools.callgraph.callgraph... |
diff --git a/src/driver/GUIDriver.java b/src/driver/GUIDriver.java
index 734ef40..a068ef6 100644
--- a/src/driver/GUIDriver.java
+++ b/src/driver/GUIDriver.java
@@ -1,669 +1,669 @@
package driver;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Grap... | false | true | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... |
diff --git a/src/org/openmrs/module/patientflags/evaluator/SQLFlagEvaluator.java b/src/org/openmrs/module/patientflags/evaluator/SQLFlagEvaluator.java
index f188605..0e2dfab 100644
--- a/src/org/openmrs/module/patientflags/evaluator/SQLFlagEvaluator.java
+++ b/src/org/openmrs/module/patientflags/evaluator/SQLFlagEvalua... | true | true | public Boolean eval(Flag flag, Patient patient) {
String criteria = flag.getCriteria();
// pull out the "*.patient_id" clause
// is this robust enough?
Matcher matcher = Pattern.compile("(\\w+\\.patient_id)").matcher(criteria);
matcher.find(); // just check for the first occurrence of the pattern... is... | public Boolean eval(Flag flag, Patient patient) {
String criteria = flag.getCriteria();
// pull out the "*.patient_id" clause
// is this robust enough?
Matcher matcher = Pattern.compile("(\\w+\\.patient_id)").matcher(criteria);
matcher.find(); // just check for the first occurrence of the pattern... is... |
diff --git a/main/src/cgeo/geocaching/activity/Progress.java b/main/src/cgeo/geocaching/activity/Progress.java
index 444889871..d3f98bee3 100644
--- a/main/src/cgeo/geocaching/activity/Progress.java
+++ b/main/src/cgeo/geocaching/activity/Progress.java
@@ -1,36 +1,36 @@
package cgeo.geocaching.activity;
import andr... | false | true | public static void dismiss() {
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
dialog = null;
}
}
| public static void dismiss() {
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
}
dialog = null;
}
|
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/AbstractPatchContentTable.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/AbstractPatchContentTable.java
index 4f9ee701c..b89c27351 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/patches/AbstractPatchContentTab... | true | true | private CommentEditorPanel createCommentEditor(final int suggestRow,
final int column, final PatchLineComment newComment) {
int row = suggestRow;
int spans[] = new int[column + 1];
FIND_ROW: while (row < table.getRowCount()) {
int col = 0;
for (int cell = 0; row < table.getRowCount()
... | private CommentEditorPanel createCommentEditor(final int suggestRow,
final int column, final PatchLineComment newComment) {
int row = suggestRow;
int spans[] = new int[column + 1];
FIND_ROW: while (row < table.getRowCount()) {
int col = 0;
for (int cell = 0; row < table.getRowCount()
... |
diff --git a/xwiki-commons-core/xwiki-commons-component/xwiki-commons-component-default/src/main/java/org/xwiki/component/annotation/ComponentAnnotationLoader.java b/xwiki-commons-core/xwiki-commons-component/xwiki-commons-component-default/src/main/java/org/xwiki/component/annotation/ComponentAnnotationLoader.java
ind... | true | true | public void initialize(ComponentManager manager, ClassLoader classLoader,
List<ComponentDeclaration> componentDeclarations)
{
try {
// 2) For each component class name found, load its class and use introspection to find the necessary
// annotations required to create a Co... | public void initialize(ComponentManager manager, ClassLoader classLoader,
List<ComponentDeclaration> componentDeclarations)
{
try {
// 2) For each component class name found, load its class and use introspection to find the necessary
// annotations required to create a Co... |
diff --git a/common/num/numirp/core/handlers/TickHandler.java b/common/num/numirp/core/handlers/TickHandler.java
index ec16efe..784d302 100644
--- a/common/num/numirp/core/handlers/TickHandler.java
+++ b/common/num/numirp/core/handlers/TickHandler.java
@@ -1,48 +1,48 @@
package num.numirp.core.handlers;
import java... | true | true | public void tickStart(EnumSet<TickType> type, Object... tickData) {
if ((mc.theWorld != null) && (mc.theWorld.playerEntities.size() > 0)) {
@SuppressWarnings("unchecked")
List<EntityPlayer> players = mc.theWorld.playerEntities;
for (Iterator<EntityPlayer> entity = players... | public void tickStart(EnumSet<TickType> type, Object... tickData) {
if ((mc.theWorld != null) && (mc.theWorld.playerEntities.size() > 0)) {
@SuppressWarnings("unchecked")
List<EntityPlayer> players = mc.theWorld.playerEntities;
for (Iterator<EntityPlayer> entity = players... |
diff --git a/DualCore/src/rs/pedjaapps/KernelTuner/KernelTuner.java b/DualCore/src/rs/pedjaapps/KernelTuner/KernelTuner.java
index 786d195..9c42e52 100755
--- a/DualCore/src/rs/pedjaapps/KernelTuner/KernelTuner.java
+++ b/DualCore/src/rs/pedjaapps/KernelTuner/KernelTuner.java
@@ -1,3589 +1,3589 @@
package rs.pedjaapps... | true | true | protected Object doInBackground(String... args) {
Log.i("MyApp", "Background thread starting");
try {
File myFile = new File(CPU0_MIN_FREQ);
FileInputStream fIn = new FileInputStream(myFile);
BufferedReader myReader = new BufferedReader(
new InputStreamReader(fIn));
String... | protected Object doInBackground(String... args) {
Log.i("MyApp", "Background thread starting");
try {
File myFile = new File(CPU0_MIN_FREQ);
FileInputStream fIn = new FileInputStream(myFile);
BufferedReader myReader = new BufferedReader(
new InputStreamReader(fIn));
String... |
diff --git a/src/org/enjin/Thing.java b/src/org/enjin/Thing.java
index 9111669..2663804 100644
--- a/src/org/enjin/Thing.java
+++ b/src/org/enjin/Thing.java
@@ -1,29 +1,29 @@
package org.enjin;
import processing.core.*;
abstract class Thing {
PApplet p;
public Thing(PApplet p) {
this.p = p;
}
... | false | true | public final void play() {
senescence();
update();
p.pushMatrix();
render();
p.popMatrix();
}
| public final void play() {
p.pushMatrix();
senescence();
update();
render();
p.popMatrix();
}
|
diff --git a/cruisecontrol/reporting/dashboard/test/unit/net/sourceforge/cruisecontrol/dashboard/web/AdminControllerTest.java b/cruisecontrol/reporting/dashboard/test/unit/net/sourceforge/cruisecontrol/dashboard/web/AdminControllerTest.java
index 9116b31f..4ff7e83b 100644
--- a/cruisecontrol/reporting/dashboard/test/un... | true | true | public void testShouldHasDiagnosticsInformation() throws Exception {
configurationMock.expects(once()).method("getDashboardConfigLocation")
.will(returnValue(expectedPath));
Mock systemServiceMock = mock(SystemService.class);
SystemService systemService = (SystemService) systemServic... | public void testShouldHasDiagnosticsInformation() throws Exception {
configurationMock.expects(once()).method("getDashboardConfigLocation")
.will(returnValue(expectedPath));
Mock systemServiceMock = mock(SystemService.class);
SystemService systemService = (SystemService) systemServic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.