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/com/terradue/dsi/CreateStorage.java b/src/main/java/com/terradue/dsi/CreateStorage.java
index 1602947..1d28190 100644
--- a/src/main/java/com/terradue/dsi/CreateStorage.java
+++ b/src/main/java/com/terradue/dsi/CreateStorage.java
@@ -1,110 +1,110 @@
package com.terradue.dsi;
/*
* Copyr... | true | true | protected void execute()
throws Exception
{
logger.info( "Registering storage {} ...", name );
NetworkStorageCreation networkStorage = new NetworkStorageCreation.Builder()
.setDescription( description )
... | protected void execute()
throws Exception
{
logger.info( "Registering storage {} ...", name );
NetworkStorageCreation networkStorage = new NetworkStorageCreation.Builder()
.setDescription( description )
... |
diff --git a/src/com/darwinsys/swingui/SimpleHelp.java b/src/com/darwinsys/swingui/SimpleHelp.java
index c64b25b..f77c48c 100644
--- a/src/com/darwinsys/swingui/SimpleHelp.java
+++ b/src/com/darwinsys/swingui/SimpleHelp.java
@@ -1,122 +1,122 @@
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import j... | true | true | public MyHelp(String name) {
super(name + " Help Window");
cp = getContentPane();
getAccessibleContext().setAccessibleName(name + " Help Window");
getAccessibleContext().setAccessibleDescription(
"A window for viewing the help for " + name +
", which is somewhat hyperlinked.");
try {
URL url = ... | public MyHelp(String name) {
super(name + " Help Window");
cp = getContentPane();
getAccessibleContext().setAccessibleName(name + " Help Window");
getAccessibleContext().setAccessibleDescription(
"A window for viewing the help for " + name +
", which is somewhat hyperlinked.");
try {
URL url = ... |
diff --git a/drools-compiler/src/main/java/org/drools/rule/builder/PatternBuilder.java b/drools-compiler/src/main/java/org/drools/rule/builder/PatternBuilder.java
index 2efa980ffd..69b050cd66 100755
--- a/drools-compiler/src/main/java/org/drools/rule/builder/PatternBuilder.java
+++ b/drools-compiler/src/main/java/org/d... | false | true | public void build( RuleBuildContext context,
Pattern pattern,
ExprConstraintDescr descr ) {
DrlExprParser parser = new DrlExprParser();
ConstraintConnectiveDescr result = parser.parse( descr.getText() );
if ( result == null || parser.hasErrors() ... | public void build( RuleBuildContext context,
Pattern pattern,
ExprConstraintDescr descr ) {
DrlExprParser parser = new DrlExprParser();
ConstraintConnectiveDescr result = parser.parse( descr.getText() );
if ( result == null || parser.hasErrors() ... |
diff --git a/src/com/android/contacts/model/ContactLoader.java b/src/com/android/contacts/model/ContactLoader.java
index 7ca1329de..e10fc6ceb 100644
--- a/src/com/android/contacts/model/ContactLoader.java
+++ b/src/com/android/contacts/model/ContactLoader.java
@@ -1,970 +1,970 @@
/*
* Copyright (C) 2010 The Android ... | true | true | private Contact loadEncodedContactEntity(Uri uri) throws JSONException {
final String jsonString = uri.getEncodedFragment();
final JSONObject json = new JSONObject(jsonString);
final long directoryId =
Long.valueOf(uri.getQueryParameter(ContactsContract.DIRECTORY_PARAM_KEY))... | private Contact loadEncodedContactEntity(Uri uri) throws JSONException {
final String jsonString = uri.getEncodedFragment();
final JSONObject json = new JSONObject(jsonString);
final long directoryId =
Long.valueOf(uri.getQueryParameter(ContactsContract.DIRECTORY_PARAM_KEY))... |
diff --git a/src/main/java/cdr/forms/EmailNotificationHandler.java b/src/main/java/cdr/forms/EmailNotificationHandler.java
index 254048e..4b04324 100644
--- a/src/main/java/cdr/forms/EmailNotificationHandler.java
+++ b/src/main/java/cdr/forms/EmailNotificationHandler.java
@@ -1,226 +1,226 @@
package cdr.forms;
impo... | true | true | public void notifyError(Form form, DepositResult result,
String depositorEmail, String formId) {
if(administratorAddress == null || administratorAddress.trim().length() == 0) return;
// put data into the model
HashMap<String, Object> model = new HashMap<String, Object>();
model.put("form", form);
model.pu... | public void notifyError(Form form, DepositResult result,
String depositorEmail, String formId) {
if(administratorAddress == null || administratorAddress.trim().length() == 0) return;
// put data into the model
HashMap<String, Object> model = new HashMap<String, Object>();
model.put("form", form);
model.pu... |
diff --git a/src/plugins/org.drftpd.commands.dataconnection/src/org/drftpd/commands/dataconnection/DataConnectionHandler.java b/src/plugins/org.drftpd.commands.dataconnection/src/org/drftpd/commands/dataconnection/DataConnectionHandler.java
index 05aa75f0..7ed63fc0 100644
--- a/src/plugins/org.drftpd.commands.dataconne... | true | true | private CommandResponse transfer(CommandRequest request) {
BaseFtpConnection conn = (BaseFtpConnection) request.getSession();
TransferState ts = conn.getTransferState();
ReplacerEnvironment env = new ReplacerEnvironment();
if (!ts.getSendFilesEncrypted() &&
GlobalContext.getConfig().checkPermission("denyda... | private CommandResponse transfer(CommandRequest request) {
BaseFtpConnection conn = (BaseFtpConnection) request.getSession();
TransferState ts = conn.getTransferState();
ReplacerEnvironment env = new ReplacerEnvironment();
if (!ts.getSendFilesEncrypted() &&
GlobalContext.getConfig().checkPermission("denyda... |
diff --git a/src/java/liquibase/migrator/change/AbstractChange.java b/src/java/liquibase/migrator/change/AbstractChange.java
index 0fde57f6..83b108da 100644
--- a/src/java/liquibase/migrator/change/AbstractChange.java
+++ b/src/java/liquibase/migrator/change/AbstractChange.java
@@ -1,166 +1,169 @@
package liquibase.mi... | true | true | private void nodeToStringBuffer(Element node, StringBuffer buffer) {
buffer.append("<").append(node.getNodeName());
SortedMap<String, String> attributeMap = new TreeMap<String, String>();
NamedNodeMap attributes = node.getAttributes();
for (int i = 0; i < attributes.getLength(); i++)... | private void nodeToStringBuffer(Element node, StringBuffer buffer) {
buffer.append("<").append(node.getNodeName());
SortedMap<String, String> attributeMap = new TreeMap<String, String>();
NamedNodeMap attributes = node.getAttributes();
for (int i = 0; i < attributes.getLength(); i++)... |
diff --git a/app/controllers/IssueApp.java b/app/controllers/IssueApp.java
index cd541a45..eb3f69de 100644
--- a/app/controllers/IssueApp.java
+++ b/app/controllers/IssueApp.java
@@ -1,746 +1,749 @@
package controllers;
import models.*;
import models.enumeration.*;
import play.mvc.Http;
import views.html.issue... | true | true | public static Result massUpdate(String ownerName, String projectName) throws IOException {
Form<IssueMassUpdate> issueMassUpdateForm
= new Form<>(IssueMassUpdate.class).bindFromRequest();
if (issueMassUpdateForm.hasErrors()) {
return badRequest(issueMassUpdateForm.errorsA... | public static Result massUpdate(String ownerName, String projectName) throws IOException {
Form<IssueMassUpdate> issueMassUpdateForm
= new Form<>(IssueMassUpdate.class).bindFromRequest();
if (issueMassUpdateForm.hasErrors()) {
return badRequest(issueMassUpdateForm.errorsA... |
diff --git a/src/net/mcft/copy/betterstorage/inventory/InventoryBackpackEquipped.java b/src/net/mcft/copy/betterstorage/inventory/InventoryBackpackEquipped.java
index 2fd7e71..b9b218b 100644
--- a/src/net/mcft/copy/betterstorage/inventory/InventoryBackpackEquipped.java
+++ b/src/net/mcft/copy/betterstorage/inventory/In... | true | true | public boolean isUseableByPlayer(EntityPlayer player) {
if (!carrier.isEntityAlive() || player.getDistanceToEntity(carrier) > 1.5) return false;
double direction = DirectionUtils.angleBetween(carrier, player);
direction = DirectionUtils.angleDifference(carrier.renderYawOffset + 90.0F, direction);
return (Math.... | public boolean isUseableByPlayer(EntityPlayer player) {
boolean carriesBackpack = (ItemBackpack.getBackpackItems(carrier).contents == allContents[0]);
double distance = player.getDistanceToEntity(carrier);
double direction = DirectionUtils.angleDifference(carrier.renderYawOffset + 90.0F,
... |
diff --git a/src/uk/co/quartzcraft/kingdoms/entity/QKPlayer.java b/src/uk/co/quartzcraft/kingdoms/entity/QKPlayer.java
index 286ef22..214f06e 100644
--- a/src/uk/co/quartzcraft/kingdoms/entity/QKPlayer.java
+++ b/src/uk/co/quartzcraft/kingdoms/entity/QKPlayer.java
@@ -1,72 +1,71 @@
package uk.co.quartzcraft.kingdoms.e... | true | true | public static String getKingdom(String playername) {
String error = "error";
String kingdom = null;
Player player = Bukkit.getServer().getPlayer(playername);
UUID UUID = player.getUniqueId();
String SUUID = UUID.toString();
try {
Statement s1 = QuartzCore.MySQLcore.openConnection().createStatement();... | public static String getKingdom(String playername) {
String error = "error";
String kingdom = null;
Player player = Bukkit.getServer().getPlayer(playername);
UUID UUID = player.getUniqueId();
String SUUID = UUID.toString();
try {
Statement s1 = QuartzCore.MySQLcore.openConnection().createStatement();... |
diff --git a/osmorc/src/org/osmorc/make/BundleCompiler.java b/osmorc/src/org/osmorc/make/BundleCompiler.java
index 0e037154e8..a0bbd224d6 100644
--- a/osmorc/src/org/osmorc/make/BundleCompiler.java
+++ b/osmorc/src/org/osmorc/make/BundleCompiler.java
@@ -1,576 +1,576 @@
/*
* Copyright (c) 2007-2009, Osmorc Developme... | true | true | private static void buildBundle(final Module module, final ProgressIndicator progressIndicator,
final CompileContext compileContext)
throws IOException {
// create the jar file
final File jarFile = new File(VfsUtil.urlToPath(getJarFileName(module)));
... | private static void buildBundle(final Module module, final ProgressIndicator progressIndicator,
final CompileContext compileContext)
throws IOException {
// create the jar file
final File jarFile = new File(VfsUtil.urlToPath(getJarFileName(module)));
... |
diff --git a/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java b/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java
index 8553736b..aee7c513 100644
--- a/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java
+++ b/src/org/opensolaris/opengrok/history/JDBCHistoryCache.java
@@ -1,809 +1,809 @@
/*
... | false | true | private void storeHistory(ConnectionResource conn, History history,
Repository repository) throws SQLException {
Integer reposId = null;
Map<String, Integer> authors = null;
Map<String, Integer> files = null;
PreparedStatement addChangeset = null;
PreparedStateme... | private void storeHistory(ConnectionResource conn, History history,
Repository repository) throws SQLException {
Integer reposId = null;
Map<String, Integer> authors = null;
Map<String, Integer> files = null;
PreparedStatement addChangeset = null;
PreparedStateme... |
diff --git a/signserver/src/java/org/signserver/validationservice/server/DummyValidator.java b/signserver/src/java/org/signserver/validationservice/server/DummyValidator.java
index 7ce9c2524..b8a6df164 100644
--- a/signserver/src/java/org/signserver/validationservice/server/DummyValidator.java
+++ b/signserver/src/java... | true | true | public Validation validate(ICertificate cert)
throws IllegalRequestException, CryptoTokenOfflineException,
SignServerException {
try {
Thread.sleep(waitTime);
} catch (InterruptedException e) {
}
if(getCertificateChain(cert) == null && ((X509Certificate) cert).getBasicConstraints() == -1){
... | public Validation validate(ICertificate cert)
throws IllegalRequestException, CryptoTokenOfflineException,
SignServerException {
try {
Thread.sleep(waitTime);
} catch (InterruptedException e) {
}
if(getCertificateChain(cert) == null && ((X509Certificate) cert).getBasicConstraints() == -1){
... |
diff --git a/src/main/java/iterator/view/Editor.java b/src/main/java/iterator/view/Editor.java
index 25f9c87..135a4a9 100644
--- a/src/main/java/iterator/view/Editor.java
+++ b/src/main/java/iterator/view/Editor.java
@@ -1,625 +1,625 @@
/*
* Copyright 2012-2013 by Andrew Kennedy.
*
* Licensed under the Apache Li... | true | true | public void mouseDragged(MouseEvent e) {
if (start != null) {
end = snap(e.getPoint());
if (selected != null && resize != null) {
double w = resize.w;
double h = resize.h;
int dx = end.x - start.x;
int dy = end.y - start... | public void mouseDragged(MouseEvent e) {
if (start != null) {
end = snap(e.getPoint());
if (selected != null && resize != null) {
double w = resize.w;
double h = resize.h;
int dx = end.x - start.x;
int dy = end.y - start... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 85d47a91..6b4d3f4a 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1242 +1,1244 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | true | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
index 223fdb65c..0028ea71d 100644
--- a/org.springframework.context/src/main/java/o... | true | true | protected AnnotationMetadata doProcessConfigurationClass(
ConfigurationClass configClass, AnnotationMetadata metadata) throws IOException {
// recursively process any member (nested) classes first
for (String memberClassName : metadata.getMemberClassNames()) {
MetadataReader reader = this.metadataReaderFact... | protected AnnotationMetadata doProcessConfigurationClass(
ConfigurationClass configClass, AnnotationMetadata metadata) throws IOException {
// recursively process any member (nested) classes first
for (String memberClassName : metadata.getMemberClassNames()) {
MetadataReader reader = this.metadataReaderFact... |
diff --git a/Panda/Panda/VisionMapping/BarrierMap.java b/Panda/Panda/VisionMapping/BarrierMap.java
index 97c5a29..3c42a6a 100644
--- a/Panda/Panda/VisionMapping/BarrierMap.java
+++ b/Panda/Panda/VisionMapping/BarrierMap.java
@@ -1,134 +1,134 @@
package Panda.VisionMapping;
import Panda.util.*;
import java.io.*;
... | true | true | public BarrierMap( BufferedImage image, double[] cm, PandaPositioning pp ) {
this.calibrationMatrix = cm;
// RECTIFICATION
BufferedImage im2 = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_RGB);
double cx = image.getWidth() / 2.0;
double cy = image.getHeight() / ... | public BarrierMap( BufferedImage image, double[] cm, PandaPositioning pp ) {
this.calibrationMatrix = cm;
// RECTIFICATION
BufferedImage im2 = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_RGB);
double cx = image.getWidth() / 2.0;
double cy = image.getHeight() / ... |
diff --git a/module/typegen/src/main/java/fabric/module/typegen/java/JavaMapper.java b/module/typegen/src/main/java/fabric/module/typegen/java/JavaMapper.java
index 6d5309d..50d2579 100644
--- a/module/typegen/src/main/java/fabric/module/typegen/java/JavaMapper.java
+++ b/module/typegen/src/main/java/fabric/module/type... | false | true | public void createMapping()
{
types.put("FBoolean", "boolean");
types.put("FFloat", "float");
types.put("FDouble", "double");
types.put("FByte", "byte");
types.put("FUnsignedByte", "short");
types.put("FShort", "short");
types.put("FUnsignedShort", "int");
types.put("FInt", "int");
... | public void createMapping()
{
types.put("FBoolean", "boolean");
types.put("FFloat", "float");
types.put("FDouble", "double");
types.put("FByte", "byte");
types.put("FUnsignedByte", "short");
types.put("FShort", "short");
types.put("FUnsignedShort", "int");
types.put("FPositiveInteger... |
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
index de668e6..65f833f 100644
--- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
@@ -1,223 +1,223 @@
/*
* YUI Com... | true | true | public void compress(Writer out, int linebreakpos)
throws IOException {
Set keys;
Pattern p;
Matcher m;
String css;
Iterator it;
StringBuffer sb, regexp;
int startIndex, endIndex;
// Remove all comment blocks...
sb = new StringBuf... | public void compress(Writer out, int linebreakpos)
throws IOException {
Set keys;
Pattern p;
Matcher m;
String css;
Iterator it;
StringBuffer sb, regexp;
int startIndex, endIndex;
// Remove all comment blocks...
sb = new StringBuf... |
diff --git a/src/web/org/appfuse/webapp/action/SignupAction.java b/src/web/org/appfuse/webapp/action/SignupAction.java
index ff784d15..163454e1 100644
--- a/src/web/org/appfuse/webapp/action/SignupAction.java
+++ b/src/web/org/appfuse/webapp/action/SignupAction.java
@@ -1,170 +1,172 @@
package org.appfuse.webapp.actio... | true | true | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// if it's an HTTP GET, simply forward to jsp
if (request.getMethod().equal... | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// if it's an HTTP GET, simply forward to jsp
// test for Cactus is workaround... |
diff --git a/src/de/ueller/midlet/gps/Trace.java b/src/de/ueller/midlet/gps/Trace.java
index 19da311b..420fe046 100644
--- a/src/de/ueller/midlet/gps/Trace.java
+++ b/src/de/ueller/midlet/gps/Trace.java
@@ -1,3550 +1,3559 @@
/*
* 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/src/org/apache/xalan/xsltc/trax/DOM2TO.java b/src/org/apache/xalan/xsltc/trax/DOM2TO.java
index 12077b1d..c43935ad 100644
--- a/src/org/apache/xalan/xsltc/trax/DOM2TO.java
+++ b/src/org/apache/xalan/xsltc/trax/DOM2TO.java
@@ -1,380 +1,382 @@
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
... | true | true | private void parse(Node node)
throws IOException, SAXException
{
if (node == null) return;
switch (node.getNodeType()) {
case Node.ATTRIBUTE_NODE: // handled by ELEMENT_NODE
case Node.DOCUMENT_TYPE_NODE :
case Node.ENTITY_NODE :
case Node.ENTITY_REFERENCE_NODE:
case Node.NOTATION_NODE... | private void parse(Node node)
throws IOException, SAXException
{
if (node == null) return;
switch (node.getNodeType()) {
case Node.ATTRIBUTE_NODE: // handled by ELEMENT_NODE
case Node.DOCUMENT_TYPE_NODE :
case Node.ENTITY_NODE :
case Node.ENTITY_REFERENCE_NODE:
case Node.NOTATION_NODE... |
diff --git a/test/model/TestDetermineFinalDecisionOrder.java b/test/model/TestDetermineFinalDecisionOrder.java
index a5210d7..d0fae93 100644
--- a/test/model/TestDetermineFinalDecisionOrder.java
+++ b/test/model/TestDetermineFinalDecisionOrder.java
@@ -1,42 +1,42 @@
package model;
import junit.framework.TestCase;
... | true | true | public void testDetermineFinalOrder() {
DecisionLinesEvent dle = new DecisionLinesEvent();
Line newChoice;
dle.setQuestion("Why is there air?");
dle.setNumChoices(3);
dle.setRounds(0);
dle.setMode("asynch");
dle.setType("open");
// Valid new position and choice
newChoice = new Line("Apple", 0);
d... | public void testDetermineFinalOrder() {
DecisionLinesEvent dle = new DecisionLinesEvent();
Line newChoice;
dle.setQuestion("Why is there air?");
dle.setNumChoices(3);
dle.setRounds(0);
dle.setMode("asynch");
dle.setType("open");
// Valid new position and choice
newChoice = new Line("Apple", 0);
d... |
diff --git a/src/main/java/am/ik/categolj2/domain/service/token/Categolj2TokenEnhancer.java b/src/main/java/am/ik/categolj2/domain/service/token/Categolj2TokenEnhancer.java
index 7e251e2..e072055 100644
--- a/src/main/java/am/ik/categolj2/domain/service/token/Categolj2TokenEnhancer.java
+++ b/src/main/java/am/ik/catego... | true | true | public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {
if (authentication != null && authentication.getPrincipal() != null) {
return accessToken;
}
Categolj2UserDetails userDetails = (Categolj2UserDetails) authentication.getPrincipa... | public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {
if (authentication == null || authentication.getPrincipal() == null) {
return accessToken;
}
Categolj2UserDetails userDetails = (Categolj2UserDetails) authentication.getPrincipa... |
diff --git a/src/Character.java b/src/Character.java
index eae9664..1252d91 100644
--- a/src/Character.java
+++ b/src/Character.java
@@ -1,132 +1,132 @@
import java.awt.Graphics;
public class Character implements Drawable{
private ImageWrapper image;
private int height;
private int width;
private int x;
p... | true | true | public void move(Tile[][] map)
{
if(isJumping){
y -= moveDistance;
if(y == maxJump)
{
isJumping = false;
}
}else{
boolean falling = true;
for(int i=0; i<map[0].length; i++)
if(map[this.x+this.width][i].getHitbox().checkCollision(movementBox)){
falling = false;
break... | public void move(Tile[][] map)
{
if(isJumping){
y -= moveDistance;
if(y == maxJump)
{
isJumping = false;
}
}else{
boolean falling = true;
for(int i=this.x; i<this.x+this.width; i++)
if(map[i/32][this.y/32].getHitbox().checkCollision(movementBox)){
falling = false;
b... |
diff --git a/src/com/ichi2/libanki/importer/Anki2Importer.java b/src/com/ichi2/libanki/importer/Anki2Importer.java
index dd4c0a11..aafe961f 100644
--- a/src/com/ichi2/libanki/importer/Anki2Importer.java
+++ b/src/com/ichi2/libanki/importer/Anki2Importer.java
@@ -1,612 +1,613 @@
/***************************************... | true | true | private int _importCards() {
// build map of (guid, ord) -> cid and used id cache
mCards = new HashMap<String, HashMap<Integer, Long>>();
HashMap<Long, Boolean> existing = new HashMap<Long, Boolean>();
Cursor cursor = null;
try {
cursor = mDst.getDb().getDatabase().rawQuery("SELECT f.... | private int _importCards() {
// build map of (guid, ord) -> cid and used id cache
mCards = new HashMap<String, HashMap<Integer, Long>>();
HashMap<Long, Boolean> existing = new HashMap<Long, Boolean>();
Cursor cursor = null;
try {
cursor = mDst.getDb().getDatabase().rawQuery("SELECT f.... |
diff --git a/src/cpsc310/client/UserInfoPanel.java b/src/cpsc310/client/UserInfoPanel.java
index d993f30..021cd71 100644
--- a/src/cpsc310/client/UserInfoPanel.java
+++ b/src/cpsc310/client/UserInfoPanel.java
@@ -1,386 +1,386 @@
package cpsc310.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.e... | true | true | private void editUserInfo() {
// TODO add asycn call when implemented. make sure dialog is closed.
// add the user to db
AsyncCallback<LoginInfo> userCallback = new AsyncCallback<LoginInfo>() {
public void onFailure(Throwable caught) {
Window.alert(caught.getMessage());
Window.alert("except... | private void editUserInfo() {
// TODO add asycn call when implemented. make sure dialog is closed.
// add the user to db
AsyncCallback<LoginInfo> userCallback = new AsyncCallback<LoginInfo>() {
public void onFailure(Throwable caught) {
Window.alert(caught.getMessage());
Window.alert("except... |
diff --git a/src/java/opennlp/tools/chunker/ChunkerEventStream.java b/src/java/opennlp/tools/chunker/ChunkerEventStream.java
index 80c49a1..c7137f9 100644
--- a/src/java/opennlp/tools/chunker/ChunkerEventStream.java
+++ b/src/java/opennlp/tools/chunker/ChunkerEventStream.java
@@ -1,100 +1,100 @@
//////////////////////... | true | true | private void addNewEvents() {
List toks = new ArrayList();
List tags = new ArrayList();
List preds = new ArrayList();
for (String line = (String) data.nextToken(); !line.equals(""); line = (String) data.nextToken()) {
String[] parts = line.split(" ");
if (parts.length != 3) {
Syste... | private void addNewEvents() {
List toks = new ArrayList();
List tags = new ArrayList();
List preds = new ArrayList();
for (String line = (String) data.nextToken(); line !=null && !line.equals(""); line = (String) data.nextToken()) {
String[] parts = line.split(" ");
if (parts.length != 3) ... |
diff --git a/com.myrontuttle.fin.trade.web/src/com/myrontuttle/fin/trade/web/panels/CandidateTablePanel.java b/com.myrontuttle.fin.trade.web/src/com/myrontuttle/fin/trade/web/panels/CandidateTablePanel.java
index fe4beeb..3020856 100644
--- a/com.myrontuttle.fin.trade.web/src/com/myrontuttle/fin/trade/web/panels/Candid... | false | true | public CandidateTablePanel(String id, String groupId) {
super(id);
List<IColumn<Candidate, String>> columns = new ArrayList<IColumn<Candidate, String>>();
columns.add(new PropertyColumn<Candidate, String>(new Model<String>("ID"), "candidateId", "candidateId"));
columns.add(new PropertyColumn(new Model<String... | public CandidateTablePanel(String id, String groupId) {
super(id);
List<IColumn<Candidate, String>> columns = new ArrayList<IColumn<Candidate, String>>();
columns.add(new PropertyColumn<Candidate, String>(new Model<String>("ID"), "candidateId", "candidateId"));
columns.add(new PropertyColumn(new Model<String... |
diff --git a/src/main/java/com/censoredsoftware/demigods/ability/passive/InvisibleHorse.java b/src/main/java/com/censoredsoftware/demigods/ability/passive/InvisibleHorse.java
index 6bc65a9e..7b99e435 100644
--- a/src/main/java/com/censoredsoftware/demigods/ability/passive/InvisibleHorse.java
+++ b/src/main/java/com/cen... | true | true | public BukkitRunnable getRunnable()
{
return new BukkitRunnable()
{
@Override
public void run()
{
for(Pet horse : Pet.Util.findByType(EntityType.HORSE))
{
if(horse.getCurrentLocation() == null || Demigods.MiscUtil.isDisabledWorld(horse.getCurrentLocation().getWorld())) return;
LivingEnt... | public BukkitRunnable getRunnable()
{
return new BukkitRunnable()
{
@Override
public void run()
{
for(Pet horse : Pet.Util.findByType(EntityType.HORSE))
{
if(horse.getCurrentLocation() == null || Demigods.MiscUtil.isDisabledWorld(horse.getCurrentLocation().getWorld())) return;
LivingEnt... |
diff --git a/modules/resin/src/com/caucho/jsp/java/JspNode.java b/modules/resin/src/com/caucho/jsp/java/JspNode.java
index 6423bb7ad..a93acfa70 100644
--- a/modules/resin/src/com/caucho/jsp/java/JspNode.java
+++ b/modules/resin/src/com/caucho/jsp/java/JspNode.java
@@ -1,1921 +1,1921 @@
/*
* Copyright (c) 1998-2008 C... | true | true | String generateParameterValue(Class type,
String value,
boolean rtexpr,
TagAttributeInfo attrInfo,
boolean isELIgnored)
throws Exception
{
// jsp/1c2m
if (isJstl())
isELIgnored = false;
boolean isEmpty = value == null || value.equals("");
if... | String generateParameterValue(Class type,
String value,
boolean rtexpr,
TagAttributeInfo attrInfo,
boolean isELIgnored)
throws Exception
{
// jsp/1c2m
if (isJstl())
isELIgnored = false;
boolean isEmpty = value == null || value.equals("");
if... |
diff --git a/src/uk/org/ownage/dmdirc/parser/ProcessMOTD.java b/src/uk/org/ownage/dmdirc/parser/ProcessMOTD.java
index 1818ad195..621bbb140 100644
--- a/src/uk/org/ownage/dmdirc/parser/ProcessMOTD.java
+++ b/src/uk/org/ownage/dmdirc/parser/ProcessMOTD.java
@@ -1,122 +1,122 @@
/*
* Copyright (c) 2006-2007 Chris Smith... | true | true | public void process(String sParam, String[] token) {
if (sParam.equals("375")) {
callMOTDStart(token[token.length-1]);
} else if (sParam.equals("372")) {
callMOTDLine(token[token.length-1]);
} else {
if (!myParser.h005Info.containsKey("CHANTYPES")) { myParser.parseChanPrefix(); }
if (!myParser.h005In... | public void process(String sParam, String[] token) {
if (sParam.equals("375")) {
callMOTDStart(token[token.length-1]);
} else if (sParam.equals("372")) {
callMOTDLine(token[token.length-1]);
} else {
if (!myParser.h005Info.containsKey("CHANTYPES")) { myParser.parseChanPrefix(); }
if (!myParser.h005In... |
diff --git a/config/src/main/java/org/springframework/security/config/http/LogoutBeanDefinitionParser.java b/config/src/main/java/org/springframework/security/config/http/LogoutBeanDefinitionParser.java
index e4d5de500..6f3d6aff0 100644
--- a/config/src/main/java/org/springframework/security/config/http/LogoutBeanDefin... | true | true | public BeanDefinition parse(Element element, ParserContext pc) {
String logoutUrl = null;
String successHandlerRef = null;
String logoutSuccessUrl = null;
String invalidateSession = null;
String deleteCookies = null;
BeanDefinitionBuilder builder = BeanDefinitionBuil... | public BeanDefinition parse(Element element, ParserContext pc) {
String logoutUrl = null;
String successHandlerRef = null;
String logoutSuccessUrl = null;
String invalidateSession = null;
String deleteCookies = null;
BeanDefinitionBuilder builder = BeanDefinitionBuil... |
diff --git a/test/api/org/openmrs/test/report/RowPerObsDatasetTest.java b/test/api/org/openmrs/test/report/RowPerObsDatasetTest.java
index a0286cda..25d5d53b 100644
--- a/test/api/org/openmrs/test/report/RowPerObsDatasetTest.java
+++ b/test/api/org/openmrs/test/report/RowPerObsDatasetTest.java
@@ -1,106 +1,106 @@
/**
... | true | true | public void shouldSerialization() throws Exception {
initializeInMemoryDatabase();
executeDataSet("org/openmrs/test/report/include/RowPerObsDatasetTest.xml");
authenticate();
EvaluationContext evalContext = new EvaluationContext();
DataSetService service = Context.getDataSetService();
PatientSearch kids... | public void shouldSerialization() throws Exception {
initializeInMemoryDatabase();
executeDataSet("org/openmrs/test/report/include/RowPerObsDatasetTest.xml");
authenticate();
EvaluationContext evalContext = new EvaluationContext();
DataSetService service = Context.getDataSetService();
PatientSearch kids... |
diff --git a/src/fccscraper/FCCClient.java b/src/fccscraper/FCCClient.java
index e190cf2..a78ae89 100644
--- a/src/fccscraper/FCCClient.java
+++ b/src/fccscraper/FCCClient.java
@@ -1,372 +1,365 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fccscraper... | true | true | public static void main(String[] args) {
// Get the morphia db connection.
Datastore ds = ECFSScraperLib.getDataStore("fccTesting", "localhost", 27017);
String folderPath = "/home/armin/data/scraper";
String startingURL = "http://apps.fcc.gov/ecfs/proceeding_search/";
Scanner... | public static void main(String[] args) {
// Get the morphia db connection.
Datastore ds = ECFSScraperLib.getDataStore("fccTesting", "localhost", 27017);
String folderPath = "/home/armin/data/scraper";
String startingURL = "http://apps.fcc.gov/ecfs/proceeding_search/";
Scanner... |
diff --git a/src/com/soc/game/systems/DamageProcessingSystem.java b/src/com/soc/game/systems/DamageProcessingSystem.java
index 376a3b6..aeac9c5 100644
--- a/src/com/soc/game/systems/DamageProcessingSystem.java
+++ b/src/com/soc/game/systems/DamageProcessingSystem.java
@@ -1,89 +1,90 @@
package com.soc.game.systems;
... | true | true | protected void process(Entity e) {
Stats stats=sm.get(e);
Damage dr=dm.get(e);
State state=stm.get(e);
Position pos = pm.get(e);
Velocity velocity=vm.get(e);
int pureDamage=dr.pureDamage;
int dmg = dr.damage - stats.armor;
if(dmg < 0) dmg = 0;
dmg += pureDamage;
if(dmg < 0) dmg = 0;
stats.healt... | protected void process(Entity e) {
Stats stats=sm.get(e);
Damage dr=dm.get(e);
State state=stm.get(e);
Position pos = pm.get(e);
Velocity velocity=vm.get(e);
int pureDamage=dr.pureDamage;
int dmg = dr.damage - stats.armor;
if(dmg < 0) dmg = 0;
dmg += pureDamage;
if(dmg < 0) dmg = 0;
stats.healt... |
diff --git a/s3auth-relay/src/main/java/com/s3auth/relay/SecuredHost.java b/s3auth-relay/src/main/java/com/s3auth/relay/SecuredHost.java
index 9ff0092..f3dfb30 100644
--- a/s3auth-relay/src/main/java/com/s3auth/relay/SecuredHost.java
+++ b/s3auth-relay/src/main/java/com/s3auth/relay/SecuredHost.java
@@ -1,165 +1,166 @@... | true | true | public Resource fetch(@NotNull final URI uri) throws IOException {
if (!this.request.headers().containsKey(HttpHeaders.AUTHORIZATION)) {
throw new HttpException(
new HttpResponse()
.withStatus(HttpURLConnection.HTTP_UNAUTHORIZED)
.withHeade... | public Resource fetch(@NotNull final URI uri) throws IOException {
if (!this.request.headers().containsKey(HttpHeaders.AUTHORIZATION)) {
throw new HttpException(
new HttpResponse()
.withStatus(HttpURLConnection.HTTP_UNAUTHORIZED)
.withHeade... |
diff --git a/src/org/centny/jetty4a/server/api/JettyServer.java b/src/org/centny/jetty4a/server/api/JettyServer.java
index ac1b290..3a0ce9a 100644
--- a/src/org/centny/jetty4a/server/api/JettyServer.java
+++ b/src/org/centny/jetty4a/server/api/JettyServer.java
@@ -1,539 +1,543 @@
package org.centny.jetty4a.server.api;... | true | true | public void checkDeploy() {
this.log.info("check deploy folder for update...");
File[] dypkg;
dypkg = this.dydir.listFiles(new FileFilter() {
@Override
public boolean accept(File pathname) {
if (!pathname.isFile()) {
return false;
}
return pathname.getName().toLowerCase(Locale.getDefault(... | public void checkDeploy() {
this.log.info("check deploy folder for update...");
File[] dypkg;
dypkg = this.dydir.listFiles(new FileFilter() {
@Override
public boolean accept(File pathname) {
if (!pathname.isFile()) {
return false;
}
return pathname.getName().toLowerCase(Locale.getDefault(... |
diff --git a/membrane-esb/core/src/main/java/com/predic8/membrane/core/HotDeploymentThread.java b/membrane-esb/core/src/main/java/com/predic8/membrane/core/HotDeploymentThread.java
index 4c40ccc9..ac471c62 100644
--- a/membrane-esb/core/src/main/java/com/predic8/membrane/core/HotDeploymentThread.java
+++ b/membrane-esb... | true | true | public void run() {
log.debug("Hot Deployment Thread started.");
while (!isInterrupted()) {
try {
while (!configurationChanged()) {
sleep(1000);
}
log.debug("configuration changed. Reloading from " + proxiesFile);
router.getTransport().closeAll(false);
router.getConfigurationManager()... | public void run() {
log.debug("Hot Deployment Thread started.");
while (!isInterrupted()) {
try {
while (!configurationChanged()) {
sleep(1000);
}
log.debug("configuration changed. Reloading from " + proxiesFile);
router.shutdownNoWait();
router.getConfigurationManager().loadConfigura... |
diff --git a/app/controllers/DisplayController.java b/app/controllers/DisplayController.java
index 2d0e0c0..7b41955 100644
--- a/app/controllers/DisplayController.java
+++ b/app/controllers/DisplayController.java
@@ -1,119 +1,120 @@
package controllers;
import java.util.HashMap;
import java.util.List;
import mo... | true | true | public static WebSocket<JsonNode> webSocket() {
return new WebSocket<JsonNode>() {
@Override
public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) {
in.onMessage(new Callback<JsonNode>() {
public void invoke(JsonNode event) {
String displayID = event.get("displayID").... | public static WebSocket<JsonNode> webSocket() {
return new WebSocket<JsonNode>() {
@Override
public void onReady(WebSocket.In<JsonNode> in, final WebSocket.Out<JsonNode> out) {
in.onMessage(new Callback<JsonNode>() {
public void invoke(JsonNode event) {
String displayID = event.get("displayID").... |
diff --git a/src/main/java/in/mDev/MiracleM4n/mChatSuite/api/Parser.java b/src/main/java/in/mDev/MiracleM4n/mChatSuite/api/Parser.java
index 7424e1a..20eda62 100644
--- a/src/main/java/in/mDev/MiracleM4n/mChatSuite/api/Parser.java
+++ b/src/main/java/in/mDev/MiracleM4n/mChatSuite/api/Parser.java
@@ -1,510 +1,513 @@
pa... | false | true | public String parseMessage(String pName, String world, String msg, String format) {
Object prefix = plugin.getReader().getRawPrefix(pName, InfoType.USER, world);
Object suffix = plugin.getReader().getRawSuffix(pName, InfoType.USER, world);
Object group = plugin.getReader().getRawGroup(pName,... | public String parseMessage(String pName, String world, String msg, String format) {
Object prefix = plugin.getReader().getRawPrefix(pName, InfoType.USER, world);
Object suffix = plugin.getReader().getRawSuffix(pName, InfoType.USER, world);
Object group = plugin.getReader().getRawGroup(pName,... |
diff --git a/server/plugin/src/pt/webdetails/cdf/dd/model/meta/MetaModel.java b/server/plugin/src/pt/webdetails/cdf/dd/model/meta/MetaModel.java
index 0bc36264..daa50e11 100644
--- a/server/plugin/src/pt/webdetails/cdf/dd/model/meta/MetaModel.java
+++ b/server/plugin/src/pt/webdetails/cdf/dd/model/meta/MetaModel.java
@... | true | true | protected MetaModel(Builder builder) throws ValidationException
{
super(builder);
this._componentTypesByName = new LinkedHashMap<String, ComponentType>();
this._propertyTypesByLowerName = new LinkedHashMap<String, PropertyType>();
for(PropertyType.Builder propBuilder : builder._propertyTypes)... | protected MetaModel(Builder builder) throws ValidationException
{
super(builder);
this._componentTypesByName = new LinkedHashMap<String, ComponentType>();
this._propertyTypesByLowerName = new LinkedHashMap<String, PropertyType>();
for(PropertyType.Builder propBuilder : builder._propertyTypes)... |
diff --git a/modules/spring-mock-mvc/src/main/java/com/jayway/restassured/module/mockmvc/internal/MockMvcRequestSender.java b/modules/spring-mock-mvc/src/main/java/com/jayway/restassured/module/mockmvc/internal/MockMvcRequestSender.java
index 88243351..9daf4df0 100644
--- a/modules/spring-mock-mvc/src/main/java/com/jay... | true | true | private Response sendRequest(HttpMethod method, String path, Object[] pathParams) {
if (requestBody != null && !multiParts.isEmpty()) {
throw new IllegalStateException("You cannot specify a request body and a multi-part body in the same request. Perhaps you want to change the body to a multi par... | private Response sendRequest(HttpMethod method, String path, Object[] pathParams) {
if (requestBody != null && !multiParts.isEmpty()) {
throw new IllegalStateException("You cannot specify a request body and a multi-part body in the same request. Perhaps you want to change the body to a multi par... |
diff --git a/src/net/argius/stew/CommandProcessor.java b/src/net/argius/stew/CommandProcessor.java
index 64383cf..5d6d2eb 100644
--- a/src/net/argius/stew/CommandProcessor.java
+++ b/src/net/argius/stew/CommandProcessor.java
@@ -1,466 +1,469 @@
package net.argius.stew;
import java.io.*;
import java.sql.*;
import ... | true | true | private boolean invoke(String commandName, Parameter p) throws IOException, SQLException {
assert commandName != null;
// do nothing if blank
if (commandName.length() == 0) {
return true;
}
// exit
if (commandName.equalsIgnoreCase("exit")) {
di... | private boolean invoke(String commandName, Parameter p) throws IOException, SQLException {
assert commandName != null;
// do nothing if blank
if (commandName.length() == 0) {
return true;
}
// exit
if (commandName.equalsIgnoreCase("exit")) {
di... |
diff --git a/src/main/java/net/himavat/koma/restmock/RestServlet.java b/src/main/java/net/himavat/koma/restmock/RestServlet.java
index 655cbba..93bfa90 100644
--- a/src/main/java/net/himavat/koma/restmock/RestServlet.java
+++ b/src/main/java/net/himavat/koma/restmock/RestServlet.java
@@ -1,78 +1,79 @@
package net.hima... | true | true | private void sendFile(HttpServletRequest request, HttpServletResponse response) throws IOException {
File jsonFile = new File(jsonFolder + request.getPathInfo() + File.separator + request.getMethod() + ".json");
if (! jsonFile.exists()) {
// response file not found
response... | private void sendFile(HttpServletRequest request, HttpServletResponse response) throws IOException {
File jsonFile = new File(jsonFolder + request.getPathInfo() + File.separator + request.getMethod() + ".json");
if (! jsonFile.exists()) {
// response file not found
response... |
diff --git a/beam-reader-tests/src/test/java/org/esa/beam/dataio/ProductReaderAcceptanceTest.java b/beam-reader-tests/src/test/java/org/esa/beam/dataio/ProductReaderAcceptanceTest.java
index a1298a316..98de23a2d 100644
--- a/beam-reader-tests/src/test/java/org/esa/beam/dataio/ProductReaderAcceptanceTest.java
+++ b/beam... | false | true | private static void testExpectedContent(ExpectedContent expectedContent, Product product) {
final ExpectedBand[] expectedBands = expectedContent.getBands();
for (final ExpectedBand expectedBand : expectedBands) {
final Band band = product.getBand(expectedBand.getName());
asse... | private static void testExpectedContent(ExpectedContent expectedContent, Product product) {
final ExpectedBand[] expectedBands = expectedContent.getBands();
for (final ExpectedBand expectedBand : expectedBands) {
final Band band = product.getBand(expectedBand.getName());
asse... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java b/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java
index aba1be96d..91cf35b38 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.... | true | true | private void makeSOAPFault(MessageContext synCtx, int soapVersion,
SynapseLog synLog) {
if (synLog.isTraceOrDebugEnabled()) {
synLog.traceOrDebug("Creating a SOAP "
+ (soapVersion == SOAP11 ? "1.1" : "1.2") + " fault");
}
// get the correct SOAP fact... | private void makeSOAPFault(MessageContext synCtx, int soapVersion,
SynapseLog synLog) {
if (synLog.isTraceOrDebugEnabled()) {
synLog.traceOrDebug("Creating a SOAP "
+ (soapVersion == SOAP11 ? "1.1" : "1.2") + " fault");
}
// get the correct SOAP fact... |
diff --git a/src/com/feup/sfs/block/Block.java b/src/com/feup/sfs/block/Block.java
old mode 100755
new mode 100644
index c487121..822c038
--- a/src/com/feup/sfs/block/Block.java
+++ b/src/com/feup/sfs/block/Block.java
@@ -1,166 +1,169 @@
package com.feup.sfs.block;
import java.awt.Color;
import java.awt.Graphics;
... | true | true | public void paint(Graphics g) {
g.setColor(getColor(type));
g.fillOval(getBounds().x, getBounds().y, getBounds().width, getBounds().height);
if (nextType != -1) {
g.setColor(Color.red);
g.drawOval(getBounds().x - 1, getBounds().y - 1, getBounds().width + 2, getBounds().height + 2);
}
if (nextType !=... | public void paint(Graphics g) {
g.setColor(getColor(type));
g.fillOval(getBounds().x, getBounds().y, getBounds().width, getBounds().height);
if (nextType != -1) {
g.setColor(Color.red);
g.drawOval(getBounds().x - 1, getBounds().y - 1, getBounds().width + 2, getBounds().height + 2);
}
if (nextType !=... |
diff --git a/src/wikipathways/org/pathvisio/gui/wikipathways/AppletMain.java b/src/wikipathways/org/pathvisio/gui/wikipathways/AppletMain.java
index a40c5767..4d858e6e 100644
--- a/src/wikipathways/org/pathvisio/gui/wikipathways/AppletMain.java
+++ b/src/wikipathways/org/pathvisio/gui/wikipathways/AppletMain.java
@@ -1... | true | true | public void init() {
SwingEngine.setCurrent(new SwingEngine());
Engine.setCurrent(new Engine());
System.out.println("INIT CALLED....");
Logger.log.trace("INIT CALLED....");
uiHandler = new AppletUserInterfaceHandler(this);
wiki = new WikiPathways(uiHandler);
try {
SwingUtilities.invokeAndWa... | public void init() {
SwingEngine.setCurrent(new SwingEngine());
Engine.setCurrent(new Engine());
System.out.println("INIT CALLED....");
Logger.log.trace("INIT CALLED....");
uiHandler = new AppletUserInterfaceHandler(this);
wiki = new WikiPathways(uiHandler);
try {
SwingUtilities.invokeAndWa... |
diff --git a/components/bio-formats/src/loci/formats/in/MetamorphReader.java b/components/bio-formats/src/loci/formats/in/MetamorphReader.java
index 497bc243c..d2fdd057a 100644
--- a/components/bio-formats/src/loci/formats/in/MetamorphReader.java
+++ b/components/bio-formats/src/loci/formats/in/MetamorphReader.java
@@ ... | false | true | protected void initFile(String id) throws FormatException, IOException {
if (checkSuffix(id, ND_SUFFIX)) {
LOGGER.info("Initializing " + id);
// find an associated STK file
String stkFile = id.substring(0, id.lastIndexOf("."));
if (stkFile.indexOf(File.separator) != -1) {
stkFile =... | protected void initFile(String id) throws FormatException, IOException {
if (checkSuffix(id, ND_SUFFIX)) {
LOGGER.info("Initializing " + id);
// find an associated STK file
String stkFile = id.substring(0, id.lastIndexOf("."));
if (stkFile.indexOf(File.separator) != -1) {
stkFile =... |
diff --git a/src/java/org/apache/log4j/chainsaw/NoReceiversWarningPanel.java b/src/java/org/apache/log4j/chainsaw/NoReceiversWarningPanel.java
index 9cb8f5b..747d700 100644
--- a/src/java/org/apache/log4j/chainsaw/NoReceiversWarningPanel.java
+++ b/src/java/org/apache/log4j/chainsaw/NoReceiversWarningPanel.java
@@ -1,5... | true | true | private void initComponents() {
setLayout(new GridBagLayout());
GridBagConstraints gc = new GridBagConstraints();
setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));
gc.gridx = 1;
gc.fill = GridBagConstraints.BOTH;
gc.weightx = 1.0;
gc.weighty = 1.0;
JTextArea label =
... | private void initComponents() {
setLayout(new GridBagLayout());
GridBagConstraints gc = new GridBagConstraints();
setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));
gc.gridx = 1;
gc.fill = GridBagConstraints.BOTH;
gc.weightx = 1.0;
gc.weighty = 1.0;
JTextArea label =
... |
diff --git a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/AjaxPublicationsListServlet.java b/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/AjaxPublicationsListServlet.java
index e5d5d6c5a..d02cf9031 100644
--- a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/km... | false | true | private void displayPublications(List<UserPublication> allPubs, boolean subtopicsExist,
boolean sortAllowed, boolean linksAllowed, boolean checkboxAllowed, boolean toSearch,
KmeliaSessionController kmeliaScc, String profile,
GraphicElementFactory gef, String context, ResourcesWrapper resources,
... | private void displayPublications(List<UserPublication> allPubs, boolean subtopicsExist,
boolean sortAllowed, boolean linksAllowed, boolean checkboxAllowed, boolean toSearch,
KmeliaSessionController kmeliaScc, String profile,
GraphicElementFactory gef, String context, ResourcesWrapper resources,
... |
diff --git a/src/com/clustycontrol/fragments/Lockscreens.java b/src/com/clustycontrol/fragments/Lockscreens.java
index 3c35bdb..d0dd0fd 100644
--- a/src/com/clustycontrol/fragments/Lockscreens.java
+++ b/src/com/clustycontrol/fragments/Lockscreens.java
@@ -1,744 +1,744 @@
package com.clustycontrol.fragments;
import... | true | true | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
if (preference == menuButtonLocation) {
Settings.System.putInt(getActivity().getContentResolver(),
Settings.System.LOCKSCREEN_ENABLE_MENU_KEY,
((CheckBoxPrefer... | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
if (preference == menuButtonLocation) {
Settings.System.putInt(getActivity().getContentResolver(),
Settings.System.LOCKSCREEN_ENABLE_MENU_KEY,
((CheckBoxPrefer... |
diff --git a/Annis-web/src/main/java/annis/frontend/servlets/CitationServlet.java b/Annis-web/src/main/java/annis/frontend/servlets/CitationServlet.java
index 661214902..33383210f 100644
--- a/Annis-web/src/main/java/annis/frontend/servlets/CitationServlet.java
+++ b/Annis-web/src/main/java/annis/frontend/servlets/Cita... | true | true | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
ServletOutputStream out = response.getOutputStream();
String parameters = request.getRequestURI().replaceAll(".*?/Cite(/)?", "");
if(!"".equals(parameters)) {
//set the cookie and redirect to... | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
ServletOutputStream out = response.getOutputStream();
String parameters = request.getRequestURI().replaceAll(".*?/Cite(/)?", "");
if(!"".equals(parameters)) {
//set the cookie and redirect to... |
diff --git a/com/tapsterrock/mpp/MPP9File.java b/com/tapsterrock/mpp/MPP9File.java
index 1f370bc..7f149f2 100644
--- a/com/tapsterrock/mpp/MPP9File.java
+++ b/com/tapsterrock/mpp/MPP9File.java
@@ -1,2163 +1,2163 @@
/*
* file: MPP9File.java
* author: Jon Iles
* copyright: (c) Tapster Rock Limited 2002-... | true | true | private static void processTaskData (MPPFile file, DirectoryEntry projectDir, Var2Data outlineCodeVarData)
throws MPXException, IOException
{
DirectoryEntry taskDir = (DirectoryEntry)projectDir.getEntry ("TBkndTask");
VarMeta taskVarMeta = new VarMeta (new DocumentInputStream (((DocumentEntry)t... | private static void processTaskData (MPPFile file, DirectoryEntry projectDir, Var2Data outlineCodeVarData)
throws MPXException, IOException
{
DirectoryEntry taskDir = (DirectoryEntry)projectDir.getEntry ("TBkndTask");
VarMeta taskVarMeta = new VarMeta (new DocumentInputStream (((DocumentEntry)t... |
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteInactiveHighlightingService.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteInactiveHighlightingService.java
index 2c0cad03a..829abb43f 100644
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/... | true | true | public List<Position> computeInactiveHighlightingPositions(IDocument document, IWorkingCopy workingCopy) {
ICIndexSubsystem subsystem = getSubSystem();
subsystem.checkProject(workingCopy.getCProject().getProject(), new NullProgressMonitor());
ITranslationUnit unit;
try {
unit = adaptWorkingCopy(workingCop... | public List<Position> computeInactiveHighlightingPositions(IDocument document, IWorkingCopy workingCopy) {
ICIndexSubsystem subsystem = getSubSystem();
if(subsystem == null)
return Collections.emptyList();
subsystem.checkProject(workingCopy.getCProject().getProject(), new NullProgressMonitor());
ITranslat... |
diff --git a/maven-scm-providers/maven-scm-provider-vss/src/test/java/org/apache/maven/scm/provider/vss/commands/edit/VssEditCommandTest.java b/maven-scm-providers/maven-scm-provider-vss/src/test/java/org/apache/maven/scm/provider/vss/commands/edit/VssEditCommandTest.java
index 0cb514e5..f82487cb 100644
--- a/maven-scm... | true | true | public void testCommandLineMultipleFiles()
throws Exception
{
ScmRepository repository = scmManager
.makeScmRepository( "scm:vss|username|password@C:/Program File/Visual Source Safe|D:/myProject" );
File target = getTestFile( "target" );
ScmFileSet fileSet = new ScmFi... | public void testCommandLineMultipleFiles()
throws Exception
{
ScmRepository repository = scmManager
.makeScmRepository( "scm:vss|username|password@C:/Program File/Visual Source Safe|D:/myProject" );
File target = getTestFile( "target" );
ScmFileSet fileSet = new ScmFi... |
diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/ConsoleMavenTransferListener.java b/maven-embedder/src/main/java/org/apache/maven/cli/ConsoleMavenTransferListener.java
index 61c9a7a7b..eba837dbd 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/ConsoleMavenTransferListener.java
+++ b/maven-e... | false | true | protected void doProgress( ArtifactTransferEvent transferEvent )
{
long total = transferEvent.getResource().getContentLength();
long complete = transferEvent.getTransferredBytes();
// TODO [BP]: Sys.out may no longer be appropriate, but will \r work with getLogger()?
if ( total ... | protected void doProgress( ArtifactTransferEvent transferEvent )
{
long total = transferEvent.getResource().getContentLength();
long complete = transferEvent.getTransferredBytes();
// TODO [BP]: Sys.out may no longer be appropriate, but will \r work with getLogger()?
if ( total ... |
diff --git a/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java b/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java
index 4faea10..e323a8e 100644
--- a/src/main/java/plugins/WebOfTrust/fcp/GetIdentitiesByPartialNickname.java
+++ b/src/main/java/plugins/WebOfTrust/fcp/GetIden... | false | true | public SimpleFieldSet handle(SimpleFieldSet input) throws UnknownIdentityException {
final String trusterID = input.get("Truster");
final String partialNickname = input.get("PartialNickname").trim();
final String partialID = input.get("PartialID").trim();
final String context = input.get("Context");
int max... | public SimpleFieldSet handle(SimpleFieldSet input) throws UnknownIdentityException {
final String trusterID = input.get("Truster");
final String partialNickname = input.get("PartialNickname").trim();
if (partialNickname.isEmpty()) {
throw new IllegalArgumentException("PartialNickname cannot be empty.");
}
... |
diff --git a/opal-core-ws/src/main/java/org/obiba/opal/web/magma/DatasourcesResource.java b/opal-core-ws/src/main/java/org/obiba/opal/web/magma/DatasourcesResource.java
index 3f0413dc4..43a653245 100644
--- a/opal-core-ws/src/main/java/org/obiba/opal/web/magma/DatasourcesResource.java
+++ b/opal-core-ws/src/main/java/o... | false | true | public Response createDatasource(@Context final UriInfo uriInfo, Magma.DatasourceFactoryDto factoryDto) {
DatasourceFactory factory = datasourceFactoryRegistry.parse(factoryDto);
ResponseBuilder response = null;
if(factory != null) {
String uid = MagmaEngine.get().addTransientDatasource(factory);
... | public Response createDatasource(@Context final UriInfo uriInfo, Magma.DatasourceFactoryDto factoryDto) {
DatasourceFactory factory = datasourceFactoryRegistry.parse(factoryDto);
ResponseBuilder response = null;
if(factory != null) {
String uid = MagmaEngine.get().addTransientDatasource(factory);
... |
diff --git a/Core/src/org/sleuthkit/autopsy/directorytree/DirectoryTreeTopComponent.java b/Core/src/org/sleuthkit/autopsy/directorytree/DirectoryTreeTopComponent.java
index 8728ec8e1..8f9ec67a9 100644
--- a/Core/src/org/sleuthkit/autopsy/directorytree/DirectoryTreeTopComponent.java
+++ b/Core/src/org/sleuthkit/autopsy/... | true | true | public void propertyChange(PropertyChangeEvent evt) {
String changed = evt.getPropertyName();
Object oldValue = evt.getOldValue();
Object newValue = evt.getNewValue();
// change in the case name
if (changed.equals(Case.CASE_NAME)) {
// set the main title of the w... | public void propertyChange(PropertyChangeEvent evt) {
String changed = evt.getPropertyName();
Object oldValue = evt.getOldValue();
Object newValue = evt.getNewValue();
// change in the case name
if (changed.equals(Case.CASE_NAME)) {
// set the main title of the w... |
diff --git a/biojava3-structure/src/main/java/org/biojava/bio/structure/align/util/AtomCache.java b/biojava3-structure/src/main/java/org/biojava/bio/structure/align/util/AtomCache.java
index 2bd8f593e..b52b4da99 100644
--- a/biojava3-structure/src/main/java/org/biojava/bio/structure/align/util/AtomCache.java
+++ b/bioj... | true | true | public Structure getStructure(String name) throws IOException, StructureException{
if ( name.length() < 4)
throw new IllegalArgumentException("Can't interpred IDs that are shorter than 4 residues!");
Structure n = null;
boolean useChainNr = false;
boolean useDomainInfo = false;
String range = null;
... | public Structure getStructure(String name) throws IOException, StructureException{
if ( name.length() < 4)
throw new IllegalArgumentException("Can't interpret IDs that are shorter than 4 residues!");
Structure n = null;
boolean useChainNr = false;
boolean useDomainInfo = false;
String range = null;
... |
diff --git a/core/src/main/java/org/zenoss/zep/impl/Application.java b/core/src/main/java/org/zenoss/zep/impl/Application.java
index c49e8a9..0ddf079 100644
--- a/core/src/main/java/org/zenoss/zep/impl/Application.java
+++ b/core/src/main/java/org/zenoss/zep/impl/Application.java
@@ -1,456 +1,456 @@
/*
* Copyright (... | true | true | private void startEventSummaryAging() {
final int duration = config.getEventAgeIntervalMinutes();
final EventSeverity severity = config.getEventAgeDisableSeverity();
final boolean inclusive = config.getEventAgeSeverityInclusive();
if (oldConfig != null
&& duration == ... | private void startEventSummaryAging() {
final int duration = config.getEventAgeIntervalMinutes();
final EventSeverity severity = config.getEventAgeDisableSeverity();
final boolean inclusive = config.getEventAgeSeverityInclusive();
if (oldConfig != null
&& duration == ... |
diff --git a/direWolfInABottle/client/ItemRenderDWIAB.java b/direWolfInABottle/client/ItemRenderDWIAB.java
index bf2c27b..535bd5e 100644
--- a/direWolfInABottle/client/ItemRenderDWIAB.java
+++ b/direWolfInABottle/client/ItemRenderDWIAB.java
@@ -1,70 +1,70 @@
package jcj94.direWolfInABottle.client;
import org.lwjgl.... | true | true | public void renderItem(ItemRenderType type, ItemStack item, Object... data)
{
switch(type)
{
case EQUIPPED:
{
Minecraft.getMinecraft().renderEngine.bindTexture("/DWIAB.png");
if(!((EntityPlayer)data[1] == Minecraft.getMinecraft().renderViewEntity && Minecraft.getMinecraft().gameSettings.thirdPersonView... | public void renderItem(ItemRenderType type, ItemStack item, Object... data)
{
switch(type)
{
case EQUIPPED:
{
Minecraft.getMinecraft().renderEngine.bindTexture("/dwiab/DWIAB.png");
if(!((EntityPlayer)data[1] == Minecraft.getMinecraft().renderViewEntity && Minecraft.getMinecraft().gameSettings.thirdPers... |
diff --git a/src/main/java/org/apache/ibatis/type/TypeReference.java b/src/main/java/org/apache/ibatis/type/TypeReference.java
index 4d6cb5e3a1..b2801407a4 100644
--- a/src/main/java/org/apache/ibatis/type/TypeReference.java
+++ b/src/main/java/org/apache/ibatis/type/TypeReference.java
@@ -1,53 +1,53 @@
/*
* Copy... | true | true | protected TypeReference() {
Type superclass = getClass().getGenericSuperclass();
if (superclass instanceof Class) {
throw new TypeException("TypeHandler '" + getClass() + "' extends TypeReference but misses the type parameter. "
+ "Remove the extension or add a type parameter to it.");
}
... | protected TypeReference() {
Type superclass = getClass().getGenericSuperclass();
if (superclass instanceof Class) {
throw new TypeException("'" + getClass() + "' extends TypeReference but misses the type parameter. "
+ "Remove the extension or add a type parameter to it.");
}
rawType = (... |
diff --git a/test/org/dancres/paxos/test/junit/ALRecoveryTransitionTest.java b/test/org/dancres/paxos/test/junit/ALRecoveryTransitionTest.java
index 5852c80..bbcab90 100644
--- a/test/org/dancres/paxos/test/junit/ALRecoveryTransitionTest.java
+++ b/test/org/dancres/paxos/test/junit/ALRecoveryTransitionTest.java
@@ -1,1... | true | true | @Test public void test() throws Exception {
HowlLogger myLogger = new HowlLogger(DIRECTORY);
TransportImpl myTransport = new TransportImpl(_nodeId, _broadcastId);
AcceptorLearner myAl = new AcceptorLearner(myLogger, new NullFailureDetector(), myTransport, 0);
Assert.assertFalse(myAl.isRecovering());
... | @Test public void test() throws Exception {
HowlLogger myLogger = new HowlLogger(DIRECTORY);
TransportImpl myTransport = new TransportImpl(_nodeId, _broadcastId);
AcceptorLearner myAl = new AcceptorLearner(myLogger, new NullFailureDetector(), myTransport, 0);
Assert.assertFalse(myAl.isRecovering());
... |
diff --git a/src/vialab/SMT/TextZone.java b/src/vialab/SMT/TextZone.java
index 08d221c..9d90313 100644
--- a/src/vialab/SMT/TextZone.java
+++ b/src/vialab/SMT/TextZone.java
@@ -1,116 +1,116 @@
package vialab.SMT;
import java.awt.event.KeyEvent;
import processing.core.PFont;
public class TextZone extends Zone ... | true | true | public void keyTyped(KeyEvent e) {
textFont(font);
if (e.getKeyChar() == ' ') {
this.currentWordZone = new WordZone(currentWordZone.x
+ (int) textWidth(currentWordZone.word + e.getKeyChar()), currentWordZone.y, 1,
20);
}
else if (e.getKeyChar() == '\t') {
this.currentWordZone = new WordZone(cur... | public void keyTyped(KeyEvent e) {
textFont(font);
if (e.getKeyChar() == ' ') {
this.currentWordZone = new WordZone(currentWordZone.x
+ (int) textWidth(currentWordZone.word + e.getKeyChar()), currentWordZone.y, 1,
20);
}
else if (e.getKeyChar() == '\t') {
this.currentWordZone = new WordZone(cur... |
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushOperationUI.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushOperationUI.java
index e14e206c..52e7e352 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushOperationUI.java
+++ b/org.eclipse.egit.ui/src/... | true | true | public void start() {
Job job = new Job(NLS.bind(UIText.PushOperationUI_PushJobName,
destinationString)) {
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
execute(monitor);
} catch (CoreException e) {
return Activator.createErrorStatus(e.getStatus()
.getMessage(),... | public void start() {
Job job = new Job(NLS.bind(UIText.PushOperationUI_PushJobName,
destinationString)) {
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
execute(monitor);
} catch (CoreException e) {
return Activator.createErrorStatus(e.getStatus()
.getMessage(),... |
diff --git a/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartClientConnectionManager.java b/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartClientConnectionManager.java
index 3ea83f3ad8..ff0daf3b61 100644
--- a/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartC... | true | true | public Connection getConnection(Address address) throws IOException {
checkLive();
if (address == null) {
throw new IllegalArgumentException("Target address is required!");
}
final ObjectPool<ConnectionWrapper> pool = getConnectionPool(address);
if (pool == null){... | public Connection getConnection(Address address) throws IOException {
checkLive();
if (address == null) {
throw new IllegalArgumentException("Target address is required!");
}
final ObjectPool<ConnectionWrapper> pool = getConnectionPool(address);
if (pool == null){... |
diff --git a/openxc/src/com/openxc/interfaces/bluetooth/DeviceManager.java b/openxc/src/com/openxc/interfaces/bluetooth/DeviceManager.java
index db0a8bef..b1f61eec 100644
--- a/openxc/src/com/openxc/interfaces/bluetooth/DeviceManager.java
+++ b/openxc/src/com/openxc/interfaces/bluetooth/DeviceManager.java
@@ -1,168 +1,... | true | true | private BluetoothSocket setupSocket(BluetoothDevice device)
throws BluetoothException {
if(device == null) {
Log.w(TAG, "Can't setup socket -- device is " + device);
throw new BluetoothException();
}
if(mBluetoothAdapter.isDiscovering()) {
mBl... | private BluetoothSocket setupSocket(BluetoothDevice device)
throws BluetoothException {
if(device == null) {
Log.w(TAG, "Can't setup socket -- device is " + device);
throw new BluetoothException();
}
if(mBluetoothAdapter.isDiscovering()) {
mBl... |
diff --git a/src/edgruberman/bukkit/simpledeathnotices/Main.java b/src/edgruberman/bukkit/simpledeathnotices/Main.java
index 89505a8..5e3e3b6 100644
--- a/src/edgruberman/bukkit/simpledeathnotices/Main.java
+++ b/src/edgruberman/bukkit/simpledeathnotices/Main.java
@@ -1,116 +1,116 @@
package edgruberman.bukkit.simpled... | true | true | public void describeEvent(EntityEvent event) {
Entity damager = null;
String damagerName = null;
if (event instanceof EntityDamageByEntityEvent){
damager = ((EntityDamageByEntityEvent) event).getDamager();
if (damager instanceof Player) {
dama... | public void describeEvent(EntityEvent event) {
Entity damager = null;
String damagerName = "";
if (event instanceof EntityDamageByEntityEvent){
damager = ((EntityDamageByEntityEvent) event).getDamager();
if (damager instanceof Player) {
damage... |
diff --git a/src/main/java/org/napile/asm/io/xml/in/AsmXmlFileReader.java b/src/main/java/org/napile/asm/io/xml/in/AsmXmlFileReader.java
index e292f02..39b61a3 100644
--- a/src/main/java/org/napile/asm/io/xml/in/AsmXmlFileReader.java
+++ b/src/main/java/org/napile/asm/io/xml/in/AsmXmlFileReader.java
@@ -1,341 +1,343 @@... | true | true | private void readCode(@NotNull Element parent, @NotNull LikeMethodNode<?> methodNode)
{
Element codeElement = parent.element("code");
if(codeElement != null)
{
int val = Integer.parseInt(codeElement.attributeValue("max_locals"));
//TODO [VISTALL] max stacks
methodNode.visitMaxs(val, val);
for(Eleme... | private void readCode(@NotNull Element parent, @NotNull LikeMethodNode<?> methodNode)
{
Element codeElement = parent.element("code");
if(codeElement != null)
{
int val = Integer.parseInt(codeElement.attributeValue("max_locals"));
//TODO [VISTALL] max stacks
methodNode.visitMaxs(val, val);
for(Eleme... |
diff --git a/programs/android/src/org/webodf/WebODFActivity.java b/programs/android/src/org/webodf/WebODFActivity.java
index 8cd4fab3..78d4b10e 100644
--- a/programs/android/src/org/webodf/WebODFActivity.java
+++ b/programs/android/src/org/webodf/WebODFActivity.java
@@ -1,190 +1,190 @@
package org.webodf;
import ja... | true | true | private void reportIssue() {
File screenshotfile = takeScreenShot();
File odffile = (path == null) ? null : new File(path);
File attachmentfile = null;
String type = "text/plain";
if (screenshotfile != null) {
if (odffile != null) {
type = "application/zip";
attachmentfile = createZip(new File[] {... | private void reportIssue() {
File screenshotfile = takeScreenShot();
File odffile = (path == null) ? null : new File(path);
File attachmentfile = null;
String type = "text/plain";
if (screenshotfile != null) {
if (odffile != null) {
type = "application/zip";
attachmentfile = createZip(new File[] {... |
diff --git a/samples/dom/DOM3.java b/samples/dom/DOM3.java
index 77dbc5c7b..734eed512 100644
--- a/samples/dom/DOM3.java
+++ b/samples/dom/DOM3.java
@@ -1,226 +1,226 @@
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
* reserved.
*
* ... | true | true | public static void main( String[] argv) {
if (argv.length == 0) {
printUsage();
System.exit(1);
}
try {
// get DOM Implementation using DOM Registry
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementat... | public static void main( String[] argv) {
if (argv.length == 0) {
printUsage();
System.exit(1);
}
try {
// get DOM Implementation using DOM Registry
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementat... |
diff --git a/components/bio-formats/src/loci/formats/in/BDReader.java b/components/bio-formats/src/loci/formats/in/BDReader.java
index 96b38eb56..a4924add6 100644
--- a/components/bio-formats/src/loci/formats/in/BDReader.java
+++ b/components/bio-formats/src/loci/formats/in/BDReader.java
@@ -1,399 +1,399 @@
//
// BDR... | true | true | protected void initFile(String id) throws FormatException, IOException {
// make sure we have the experiment file
id = locateExperimentFile(id);
super.initFile(id);
Location dir = new Location(id).getAbsoluteFile().getParentFile();
for (String file : dir.list(true)) {
Location f = new Locat... | protected void initFile(String id) throws FormatException, IOException {
// make sure we have the experiment file
id = locateExperimentFile(id);
super.initFile(id);
Location dir = new Location(id).getAbsoluteFile().getParentFile();
for (String file : dir.list(true)) {
Location f = new Locat... |
diff --git a/plugins/org.python.pydev/tests/org/python/pydev/pythontests/AbstractBasicRunTestCase.java b/plugins/org.python.pydev/tests/org/python/pydev/pythontests/AbstractBasicRunTestCase.java
index 03dd22dea..fa0290568 100644
--- a/plugins/org.python.pydev/tests/org/python/pydev/pythontests/AbstractBasicRunTestCase.... | true | true | public List<Throwable> execAll(final String startingWith, File[] beneathFolders, FileFilter filter) {
List<Throwable> errors = new ArrayList<Throwable>();
for (File file : beneathFolders) {
if (file != null) {
if (!file.exists()) {
String msg = "The fo... | public List<Throwable> execAll(final String startingWith, File[] beneathFolders, FileFilter filter) {
List<Throwable> errors = new ArrayList<Throwable>();
for (File file : beneathFolders) {
if (file != null) {
if (!file.exists()) {
String msg = "The fo... |
diff --git a/src/main/java/net/frontlinesms/messaging/sms/internet/SkebbyInternetService.java b/src/main/java/net/frontlinesms/messaging/sms/internet/SkebbyInternetService.java
index 84f5c35..c6f39ba 100644
--- a/src/main/java/net/frontlinesms/messaging/sms/internet/SkebbyInternetService.java
+++ b/src/main/java/net/fr... | true | true | protected void init() throws SmsInternetServiceInitialisationException {
api = new RestApi(getUsername(), getPassword());
api.setUseSSL(getPropertyValue(PROPERTY_SSL, Boolean.class));
try {
GetCreditResponse res = api.credit();
if(!res.getResult().equals(SkebbyResult.success))
setStatus(res.getResponse... | protected void init() throws SmsInternetServiceInitialisationException {
api = new RestApi(getUsername(), getPassword());
api.setUseSSL(getPropertyValue(PROPERTY_SSL, Boolean.class));
try {
GetCreditResponse res = api.credit();
if(!res.getResult().equals(SkebbyResult.success))
setStatus(res.getResponse... |
diff --git a/src/main/java/ch/bfh/unicrypt/crypto/mixer/abstracts/AbstractMixer.java b/src/main/java/ch/bfh/unicrypt/crypto/mixer/abstracts/AbstractMixer.java
index add73af2..7bfe7496 100644
--- a/src/main/java/ch/bfh/unicrypt/crypto/mixer/abstracts/AbstractMixer.java
+++ b/src/main/java/ch/bfh/unicrypt/crypto/mixer/ab... | true | true | public final Tuple shuffle(final Tuple elements, final PermutationElement permutation, final Tuple randomizations) {
if (!this.getShufflesSpace().contains(elements) || !this.getRandomizationsSpace().contains(randomizations)
|| permutation == null || permutation.getPermutation().getSize() != this.getSize()) {
... | public final Tuple shuffle(final Tuple elements, final PermutationElement permutation, final Tuple randomizations) {
if (!this.getShufflesSpace().contains(elements) || !this.getRandomizationsSpace().contains(randomizations)
|| permutation == null || permutation.getValue().getSize() != this.getSize()) {
thr... |
diff --git a/Server/server/DbConnection.java b/Server/server/DbConnection.java
index 2975448..93a1355 100644
--- a/Server/server/DbConnection.java
+++ b/Server/server/DbConnection.java
@@ -1,349 +1,349 @@
package server;
import java.sql.*;//jconnector
import java.util.ArrayList;
import model.*;
public class ... | true | true | public ArrayList<Room> getAvailableRooms(Timestamp start, Timestamp end) throws SQLException{
String query = String.format("select * from Room r where r.id not in ( select roomid from Appointment a where (a.start not between %s and %s)and (a.end not between %s and %s))",
start.toString(),
... | public ArrayList<Room> getAvailableRooms(Timestamp start, Timestamp end) throws SQLException{
String query = String.format("select * from Room where id not in (select roomid from Appointment a where (a.start between %s and %s)and (a.end between %s and %s));",
start.toString(),
en... |
diff --git a/src/main/java/com/github/trevershick/test/ldap/junit4/LdapServerRule.java b/src/main/java/com/github/trevershick/test/ldap/junit4/LdapServerRule.java
index 88d742b..388eecf 100644
--- a/src/main/java/com/github/trevershick/test/ldap/junit4/LdapServerRule.java
+++ b/src/main/java/com/github/trevershick/test... | true | true | public Statement apply(final Statement base, Description description) {
return new Statement() {
@Override
public void evaluate() throws Throwable {
ldapServer = new LdapServerResource(target);
ldapServer.start();
base.evaluate();
ldapServer.stop();
ldapServer = null;
}
};
}
| public Statement apply(final Statement base, Description description) {
return new Statement() {
@Override
public void evaluate() throws Throwable {
ldapServer = new LdapServerResource(target);
try {
ldapServer.start();
base.evaluate();
} finally {
if (ldapServer.isStarted()) {
... |
diff --git a/src/ch/amana/android/cputuner/view/adapter/ConfigurationsListAdapter.java b/src/ch/amana/android/cputuner/view/adapter/ConfigurationsListAdapter.java
index 3d77aefe..0e1eb959 100644
--- a/src/ch/amana/android/cputuner/view/adapter/ConfigurationsListAdapter.java
+++ b/src/ch/amana/android/cputuner/view/adap... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
TwoLineListItem view = (convertView != null) ? (TwoLineListItem) convertView : createView(parent);
String name = getDirectory(position).getName();
view.getText1().setText(name);
if (name != null && name.equals(SettingsStorage.getInstance()... | public View getView(int position, View convertView, ViewGroup parent) {
TwoLineListItem view = (convertView != null) ? (TwoLineListItem) convertView : createView(parent);
String name = getDirectory(position).getName();
view.getText1().setText(name);
if (name != null && name.equals(SettingsStorage.getInstance()... |
diff --git a/src/client/ClientConnection.java b/src/client/ClientConnection.java
index be10162..68a8a8a 100644
--- a/src/client/ClientConnection.java
+++ b/src/client/ClientConnection.java
@@ -1,168 +1,170 @@
package client;
import java.net.Socket;
import java.util.Calendar;
import java.util.Enumeration;
import ... | true | true | public synchronized void processMessage(Packet message){
System.out.println("Message received and processing in progress");
System.out.println(message.getCommand().name() + ": " + message.getChannelName() + " " + message.getMessageText());
Packet response;
switch(message.getCommand()... | public synchronized void processMessage(Packet message){
System.out.println("Message received and processing in progress");
System.out.println(message.getCommand().name() + ": " + message.getChannelName() + " " + message.getMessageText());
Packet response;
switch(message.getCommand()... |
diff --git a/src/ch/epfl/flamemaker/gui/AffineModificationComponent.java b/src/ch/epfl/flamemaker/gui/AffineModificationComponent.java
index 4265aad..70b48fd 100644
--- a/src/ch/epfl/flamemaker/gui/AffineModificationComponent.java
+++ b/src/ch/epfl/flamemaker/gui/AffineModificationComponent.java
@@ -1,404 +1,404 @@
pa... | false | true | public AffineModificationComponent(final ObservableFlameBuilder flameBuilder){
GroupLayout affineGroup = new GroupLayout(this);
this.setLayout(affineGroup);
// Mise en page de l'édition de la partie affine
SequentialGroup H = affineGroup.createSequentialGroup();
affineGroup.setHorizontalGroup(H);
... | public AffineModificationComponent(final ObservableFlameBuilder flameBuilder){
GroupLayout affineGroup = new GroupLayout(this);
this.setLayout(affineGroup);
// Mise en page de l'édition de la partie affine
SequentialGroup H = affineGroup.createSequentialGroup();
affineGroup.setHorizontalGroup(H);
... |
diff --git a/engine/src/core/com/jme3/math/Ray.java b/engine/src/core/com/jme3/math/Ray.java
index 91d39f1eb..a70d9c93d 100644
--- a/engine/src/core/com/jme3/math/Ray.java
+++ b/engine/src/core/com/jme3/math/Ray.java
@@ -1,529 +1,530 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redi... | true | true | private boolean intersects( Vector3f v0, Vector3f v1, Vector3f v2,
Vector3f store, boolean doPlanar, boolean quad ) {
TempVars vars = TempVars.get();
assert vars.lock();
Vector3f tempVa = vars.vect1,
tempVb = vars.vect2,
temp... | private boolean intersects( Vector3f v0, Vector3f v1, Vector3f v2,
Vector3f store, boolean doPlanar, boolean quad ) {
TempVars vars = TempVars.get();
assert vars.lock();
Vector3f tempVa = vars.vect1,
tempVb = vars.vect2,
temp... |
diff --git a/plugins/src/kg/apc/jmeter/graphs/JRowsSelectorPanel.java b/plugins/src/kg/apc/jmeter/graphs/JRowsSelectorPanel.java
index 299c91fe..158cdb88 100644
--- a/plugins/src/kg/apc/jmeter/graphs/JRowsSelectorPanel.java
+++ b/plugins/src/kg/apc/jmeter/graphs/JRowsSelectorPanel.java
@@ -1,208 +1,208 @@
/*
* JRows... | true | true | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
jPanelLogo = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jPanelMain = new javax.swing.JPanel();
jPanelRowsTable = new javax.swing.JPa... | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
jPanelLogo = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jPanelMain = new javax.swing.JPanel();
jPanelRowsTable = new javax.swing.JPa... |
diff --git a/src/main/java/org/aksw/sparql2nl/naturallanguagegeneration/SimpleNLGwithPostprocessing.java b/src/main/java/org/aksw/sparql2nl/naturallanguagegeneration/SimpleNLGwithPostprocessing.java
index 5840e71..fb50277 100644
--- a/src/main/java/org/aksw/sparql2nl/naturallanguagegeneration/SimpleNLGwithPostprocessin... | true | true | public SPhraseSpec getNLForTriple(Triple t) {
SPhraseSpec p = nlgFactory.createClause();
//process predicate
//start with variables
if (t.getPredicate().isVariable()) {
//if subject is variable then use variable label, else generate textual representation
if (... | public SPhraseSpec getNLForTriple(Triple t) {
SPhraseSpec p = nlgFactory.createClause();
//process predicate
//start with variables
if (t.getPredicate().isVariable()) {
//if subject is variable then use variable label, else generate textual representation
if (... |
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/SvnWcDbReader.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/SvnWcDbReader.java
index 0e9b6ec49..1b509512e 100644
--- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/SvnWcDbReader.java
+++ b/svnkit/src/main/jav... | true | true | public static Structure<ReplaceInfo> readNodeReplaceInfo(SVNWCDb db, File localAbspath, ReplaceInfo... fields) throws SVNException {
Structure<ReplaceInfo> result = Structure.obtain(ReplaceInfo.class, fields);
if (result.hasField(ReplaceInfo.replaced)) {
result.set(ReplaceInfo.r... | public static Structure<ReplaceInfo> readNodeReplaceInfo(SVNWCDb db, File localAbspath, ReplaceInfo... fields) throws SVNException {
Structure<ReplaceInfo> result = Structure.obtain(ReplaceInfo.class, fields);
result.set(ReplaceInfo.replaced, false);
if (result.hasField(ReplaceInfo.... |
diff --git a/jar/src/main/java/org/mobicents/tools/sip/balancer/DefaultBalancerAlgorithm.java b/jar/src/main/java/org/mobicents/tools/sip/balancer/DefaultBalancerAlgorithm.java
index dece332..1031756 100644
--- a/jar/src/main/java/org/mobicents/tools/sip/balancer/DefaultBalancerAlgorithm.java
+++ b/jar/src/main/java/or... | true | true | public SIPNode processHttpRequest(HttpRequest request) {
if(BalancerContext.balancerContext.nodes.size()>0) {
String httpSessionId = null;
httpSessionId = getUrlParameters(request.getUri()).get("jsessionid");
if(httpSessionId == null) {
CookieDecoder cookieDocoder = new CookieDecoder();
String cook... | public SIPNode processHttpRequest(HttpRequest request) {
if(BalancerContext.balancerContext.nodes.size()>0) {
String httpSessionId = null;
httpSessionId = getUrlParameters(request.getUri()).get("jsessionid");
if(httpSessionId == null) {
CookieDecoder cookieDocoder = new CookieDecoder();
String cook... |
diff --git a/src/main/java/com/googlecode/t7mp/util/ZipUtil.java b/src/main/java/com/googlecode/t7mp/util/ZipUtil.java
index ba67406..a0f6bba 100644
--- a/src/main/java/com/googlecode/t7mp/util/ZipUtil.java
+++ b/src/main/java/com/googlecode/t7mp/util/ZipUtil.java
@@ -1,81 +1,80 @@
/**
* Copyright (C) 2010-2011 Joer... | true | true | public static void unzip(InputStream warInputStream, File destination) {
try {
ZipArchiveInputStream in = null;
try {
in = new ZipArchiveInputStream(warInputStream);
ZipArchiveEntry entry = null;
while ((entry = in.getNextZipEntry()) !... | public static void unzip(InputStream warInputStream, File destination) {
try {
ZipArchiveInputStream in = null;
try {
in = new ZipArchiveInputStream(warInputStream);
ZipArchiveEntry entry = null;
while ((entry = in.getNextZipEntry()) !... |
diff --git a/grails/src/java/org/codehaus/groovy/grails/support/MockFileResource.java b/grails/src/java/org/codehaus/groovy/grails/support/MockFileResource.java
index 1c06bd380..8da64151f 100644
--- a/grails/src/java/org/codehaus/groovy/grails/support/MockFileResource.java
+++ b/grails/src/java/org/codehaus/groovy/grai... | true | true | public MockFileResource(String fileName, String contents) {
super(contents.getBytes());
this.fileName = fileName;
}
| public MockFileResource(String fileName, String contents) {
super(contents.getBytes("UTF-8"));
this.fileName = fileName;
}
|
diff --git a/src/main/java/burrito/client/crud/generic/fields/ImageField.java b/src/main/java/burrito/client/crud/generic/fields/ImageField.java
index 99f283e..8da3094 100644
--- a/src/main/java/burrito/client/crud/generic/fields/ImageField.java
+++ b/src/main/java/burrito/client/crud/generic/fields/ImageField.java
@@ ... | true | true | public ImageField(String string, int width, int height, boolean urlMode) {
super(string);
this.width = width;
this.height = height;
}
| public ImageField(String string, int width, int height, boolean urlMode) {
super(string);
this.width = width;
this.height = height;
this.urlMode = urlMode;
}
|
diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/AbstractFileTikaTextExtract.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/AbstractFileTikaTextExtract.java
index cb61c7f08..7f1f1af73 100644
--- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/AbstractFileTikaTextExtract.java
+++ ... | false | true | public boolean index(AbstractFile sourceFile) throws Ingester.IngesterException {
this.sourceFile = sourceFile;
this.numChunks = 0; //unknown until indexing is done
boolean success = false;
Reader reader = null;
final InputStream stream = new ReadContentInputStream(sourceF... | public boolean index(AbstractFile sourceFile) throws Ingester.IngesterException {
this.sourceFile = sourceFile;
this.numChunks = 0; //unknown until indexing is done
boolean success = false;
Reader reader = null;
final InputStream stream = new ReadContentInputStream(sourceF... |
diff --git a/src/com/android/exchange/adapter/ProvisionParser.java b/src/com/android/exchange/adapter/ProvisionParser.java
index c68badb..67c23d2 100644
--- a/src/com/android/exchange/adapter/ProvisionParser.java
+++ b/src/com/android/exchange/adapter/ProvisionParser.java
@@ -1,572 +1,576 @@
/* Copyright (C) 2010 The ... | false | true | private void parseProvisionDocWbxml() throws IOException {
Policy policy = new Policy();
ArrayList<Integer> unsupportedList = new ArrayList<Integer>();
boolean passwordEnabled = false;
while (nextTag(Tags.PROVISION_EAS_PROVISION_DOC) != END) {
boolean tagIsSupported = tr... | private void parseProvisionDocWbxml() throws IOException {
Policy policy = new Policy();
ArrayList<Integer> unsupportedList = new ArrayList<Integer>();
boolean passwordEnabled = false;
while (nextTag(Tags.PROVISION_EAS_PROVISION_DOC) != END) {
boolean tagIsSupported = tr... |
diff --git a/geopaparazzimapsforge/src/eu/geopaparazzi/mapsforge/mapsdirmanager/MapsDirManager.java b/geopaparazzimapsforge/src/eu/geopaparazzi/mapsforge/mapsdirmanager/MapsDirManager.java
index afc2023f..e6fc0bd3 100644
--- a/geopaparazzimapsforge/src/eu/geopaparazzi/mapsforge/mapsdirmanager/MapsDirManager.java
+++ b/... | true | true | private void handleTileSources( Context context ) throws Exception, IOException, FileNotFoundException {
int i_count_classes = 0;
int i_type = MAPURL;
ClassNodeInfo this_mapinfo = null;
ClassNodeInfo mapnik_mapinfo = null;
// This will be our default map if everything else fa... | private void handleTileSources( Context context ) throws Exception, IOException, FileNotFoundException {
int i_count_classes = 0;
int i_type = MAPURL;
ClassNodeInfo this_mapinfo = null;
ClassNodeInfo mapnik_mapinfo = null;
// This will be our default map if everything else fa... |
diff --git a/src/main/java/de/is24/util/monitoring/InApplicationMonitor.java b/src/main/java/de/is24/util/monitoring/InApplicationMonitor.java
index 302a94b..7e445d7 100644
--- a/src/main/java/de/is24/util/monitoring/InApplicationMonitor.java
+++ b/src/main/java/de/is24/util/monitoring/InApplicationMonitor.java
@@ -1,4... | false | true | public static InApplicationMonitor initInstance(CorePlugin corePlugin, KeyHandler keyHandler) {
CorePlugin previousCorePlugin;
synchronized (semaphore) {
LOGGER.info("+++ initializing InApplicationMonitor() +++");
INSTANCE.keyHandler = keyHandler;
previousCorePlugin = INSTANCE.corePlugin;
... | public static InApplicationMonitor initInstance(CorePlugin corePlugin, KeyHandler keyHandler) {
CorePlugin previousCorePlugin;
synchronized (semaphore) {
LOGGER.info("+++ initializing InApplicationMonitor() +++");
INSTANCE.keyHandler = keyHandler;
LOGGER.info("syncing from previous core pl... |
diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java
index 7bda35b..8f67522 100644
--- a/src/java/davmail/caldav/CaldavConnection.java
+++ b/src/java/davmail/caldav/CaldavConnection.java
@@ -1,566 +1,566 @@
package davmail.caldav;
import davmail.AbstractConnecti... | true | true | public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
int depth = getDepth(headers);
if ("OPTIONS".equals(command)) {
sendOptions();
} else if ("PROPFIND".equals(command)
&& ("/user/".equals(path) || ... | public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
int depth = getDepth(headers);
if ("OPTIONS".equals(command)) {
sendOptions();
} else if ("PROPFIND".equals(command)
&& ("/user/".equals(path) || ... |
diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
index bc2d439fe..277328363 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPCli... | false | true | protected void clientConnectionRun(Socket s) {
InputStream in = null;
OutputStream out = null;
String targetRequest = null;
boolean usingWWWProxy = false;
String currentProxy = null;
long requestId = ++__requestId;
try {
out = s.getOutputStream();
... | protected void clientConnectionRun(Socket s) {
InputStream in = null;
OutputStream out = null;
String targetRequest = null;
boolean usingWWWProxy = false;
String currentProxy = null;
long requestId = ++__requestId;
try {
out = s.getOutputStream();
... |
diff --git a/src/mapSaving/MapSaver.java b/src/mapSaving/MapSaver.java
index 8ff008d..a9433a0 100644
--- a/src/mapSaving/MapSaver.java
+++ b/src/mapSaving/MapSaver.java
@@ -1,163 +1,162 @@
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator... | false | true | public void save(){
Iterator<SaveCommand> siter = saveCommands.iterator();
int previousCommand = -1;
int count = 0;
//Iterate through all of the SaveCommands.
while(siter.hasNext()){
this.progress = (int)((double)count / (double)this.saveCommands.size() * 100);
this.mapDel.setProgressBarValue(this.prog... | public void save(){
Iterator<SaveCommand> siter = saveCommands.iterator();
int previousCommand = -1;
int count = 0;
//Iterate through all of the SaveCommands.
while(siter.hasNext()){
this.progress = (int)((double)count / (double)this.saveCommands.size() * 100);
this.mapDel.setProgressBarValue(this.prog... |
diff --git a/sslr-squid-bridge/src/main/java/com/sonar/sslr/squid/CommentsVisitor.java b/sslr-squid-bridge/src/main/java/com/sonar/sslr/squid/CommentsVisitor.java
index bc02c758..2a05c5af 100644
--- a/sslr-squid-bridge/src/main/java/com/sonar/sslr/squid/CommentsVisitor.java
+++ b/sslr-squid-bridge/src/main/java/com/son... | true | true | public void leaveFile(AstNode astNode) {
if (astNode == null) return;
for (Token comment : context.getComments()) {
String[] commentLines = comment.getValue().split("\n", -1);
int line = comment.getLine();
for (String commentLine : commentLines) {
if (enableNoSonar && commentLine.... | public void leaveFile(AstNode astNode) {
if (context.getComments() == null) return;
for (Token comment : context.getComments()) {
String[] commentLines = comment.getValue().split("\n", -1);
int line = comment.getLine();
for (String commentLine : commentLines) {
if (enableNoSonar &... |
diff --git a/email/src/main/java/org/sonar/plugins/email/EmailPublisher.java b/email/src/main/java/org/sonar/plugins/email/EmailPublisher.java
index 9ddd2ab26..cc4ab4fe9 100644
--- a/email/src/main/java/org/sonar/plugins/email/EmailPublisher.java
+++ b/email/src/main/java/org/sonar/plugins/email/EmailPublisher.java
@@ ... | false | true | public void executeOn(Project project, SensorContext context) {
Configuration configuration = project.getConfiguration();
SonarEmail email = new SonarEmail();
String host = configuration.getString(HOST_PROPERTY, SMTP_HOST_DEFAULT_VALUE);
String port = configuration.getString(PORT_PROPERTY, PORT_DEFAUL... | public void executeOn(Project project, SensorContext context) {
Configuration configuration = project.getConfiguration();
SonarEmail email = new SonarEmail();
String host = configuration.getString(HOST_PROPERTY, SMTP_HOST_DEFAULT_VALUE);
String port = configuration.getString(PORT_PROPERTY, PORT_DEFAUL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.