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/hu/silentsignal/android/nfcat/Main.java b/src/hu/silentsignal/android/nfcat/Main.java
index 0cfbd5c..7633d86 100644
--- a/src/hu/silentsignal/android/nfcat/Main.java
+++ b/src/hu/silentsignal/android/nfcat/Main.java
@@ -1,237 +1,237 @@
package hu.silentsignal.android.nfcat;
import android.app.Activ... | true | true | protected void processCommand(final String cmd) throws IOException {
try {
if (cmd.equals("help")) {
output.println("Available commands are: rdbl, rdsc, dec");
} else if (cmd.indexOf("dec") == 0) {
final String[] params = cmd.split(" ");
... | protected void processCommand(final String cmd) throws IOException {
try {
if (cmd.equals("help")) {
output.println("Available commands are: rdbl, rdsc, dec");
} else if (cmd.indexOf("dec") == 0) {
final String[] params = cmd.split(" ");
... |
diff --git a/lang/java/ipc/src/main/java/org/apache/avro/ipc/specific/SpecificResponder.java b/lang/java/ipc/src/main/java/org/apache/avro/ipc/specific/SpecificResponder.java
index e692a21f..4258c831 100644
--- a/lang/java/ipc/src/main/java/org/apache/avro/ipc/specific/SpecificResponder.java
+++ b/lang/java/ipc/src/mai... | true | true | public Object respond(Message message, Object request) throws Exception {
int numParams = message.getRequest().getFields().size();
Object[] params = new Object[numParams];
Class[] paramTypes = new Class[numParams];
int i = 0;
try {
for (Schema.Field param: message.getRequest().getFields()) {... | public Object respond(Message message, Object request) throws Exception {
int numParams = message.getRequest().getFields().size();
Object[] params = new Object[numParams];
Class[] paramTypes = new Class[numParams];
int i = 0;
try {
for (Schema.Field param: message.getRequest().getFields()) {... |
diff --git a/src/main/java/com/google/dart/Dart2JsMojo.java b/src/main/java/com/google/dart/Dart2JsMojo.java
index 782f94b..d6612a2 100644
--- a/src/main/java/com/google/dart/Dart2JsMojo.java
+++ b/src/main/java/com/google/dart/Dart2JsMojo.java
@@ -1,668 +1,669 @@
package com.google.dart;
/*
* Licensed to the Apa... | true | true | private void processDart2Js(final Set<File> dartPackageRoots) throws MojoExecutionException {
if (isForce()) {
clearOutputDirectory();
}
final Set<File> staleDartSources =
computeStaleSources(dartPackageRoots, getSourceInclusionScanner());
if (getLog().isDe... | private void processDart2Js(final Set<File> dartPackageRoots) throws MojoExecutionException {
if (isForce()) {
clearOutputDirectory();
}
final Set<File> staleDartSources =
computeStaleSources(dartPackageRoots, getSourceInclusionScanner());
if (getLog().isDe... |
diff --git a/src/game/GameWatcher.java b/src/game/GameWatcher.java
index cff49a0..d385d35 100644
--- a/src/game/GameWatcher.java
+++ b/src/game/GameWatcher.java
@@ -1,97 +1,96 @@
package game;
import java.io.File;
import javax.script.ScriptException;
import manager.UberManager;
import rendering.ModelRenderer... | true | true | public void changed(String s) {
Log.log(this, s + " changed");
if (s.equals(Settings.INIT_SCRIPT)) {
game.restart();
} else if (s.equals(Settings.MAIN_SCRIPT)) {
Script.scripts.remove(Settings.MAIN_SCRIPT);
GameLoop gl = game.loop;
gl.startPause();
Util.sleep(10);
Game.INSTANCE.world = new Worl... | public void changed(String s) {
Log.log(this, s + " changed");
if (s.equals(Settings.INIT_SCRIPT)) {
game.restart();
} else if (s.equals(Settings.MAIN_SCRIPT)) {
Script.scripts.remove(Settings.MAIN_SCRIPT);
GameLoop gl = game.loop;
gl.startPause();
Util.sleep(10);
Game.INSTANCE.world = new Worl... |
diff --git a/optaplanner-benchmark/src/main/java/org/optaplanner/benchmark/impl/statistic/stepscore/StepScoreProblemStatistic.java b/optaplanner-benchmark/src/main/java/org/optaplanner/benchmark/impl/statistic/stepscore/StepScoreProblemStatistic.java
index 36e539b50..86990b9b7 100644
--- a/optaplanner-benchmark/src/mai... | true | true | protected void writeGraphStatistic() {
List<XYPlot> plotList = new ArrayList<XYPlot>(BenchmarkReport.CHARTED_SCORE_LEVEL_SIZE);
int seriesIndex = 0;
for (SingleBenchmark singleBenchmark : problemBenchmark.getSingleBenchmarkList()) {
List<XYSeries> seriesList = new ArrayList<XYSer... | protected void writeGraphStatistic() {
List<XYPlot> plotList = new ArrayList<XYPlot>(BenchmarkReport.CHARTED_SCORE_LEVEL_SIZE);
int seriesIndex = 0;
for (SingleBenchmark singleBenchmark : problemBenchmark.getSingleBenchmarkList()) {
List<XYSeries> seriesList = new ArrayList<XYSer... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/dto/DataBackoutRequest.java b/GAE/src/org/waterforpeople/mapping/app/web/dto/DataBackoutRequest.java
index 48f44aee1..67e6e1b66 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/dto/DataBackoutRequest.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/dto... | true | true | protected void populateFields(HttpServletRequest req) throws Exception {
if (req.getParameter(SURVEY_ID_PARAM) != null) {
surveyId = Long.parseLong(req.getParameter(SURVEY_ID_PARAM).trim());
}
if (req.getParameter(QUESTION_ID_PARAM) != null) {
surveyId = Long.parseLong(req.getParameter(QUESTION_ID_PARAM).t... | protected void populateFields(HttpServletRequest req) throws Exception {
if (req.getParameter(SURVEY_ID_PARAM) != null) {
surveyId = Long.parseLong(req.getParameter(SURVEY_ID_PARAM).trim());
}
if (req.getParameter(QUESTION_ID_PARAM) != null) {
questionId = Long.parseLong(req.getParameter(QUESTION_ID_PARAM)... |
diff --git a/projects/java_dann_examples/src/com/syncleus/core/dann/examples/colormap/ColorMap2dCallable.java b/projects/java_dann_examples/src/com/syncleus/core/dann/examples/colormap/ColorMap2dCallable.java
index 23d9fc6..cc1415a 100644
--- a/projects/java_dann_examples/src/com/syncleus/core/dann/examples/colormap/Co... | true | true | public Color[][] call()
{
try
{
//initialize brain
ExponentialDecaySomBrain brain = new ExponentialDecaySomBrain(3, 2, getIterations(), getLearningRate());
//create the output latice
for(double x = 0; x < getWidth(); x++)
for(double y = 0; y < getHeight(); y++)
brain.createOutput(new Vector(... | public Color[][] call()
{
try
{
//initialize brain
ExponentialDecaySomBrain brain = new ExponentialDecaySomBrain(3, 2, getIterations(), getLearningRate());
//create the output latice
for(double x = 0; x < getWidth(); x++)
for(double y = 0; y < getHeight(); y++)
brain.createOutput(new Vector(... |
diff --git a/core/src/main/java/de/betterform/xml/xforms/AbstractProcessorDecorator.java b/core/src/main/java/de/betterform/xml/xforms/AbstractProcessorDecorator.java
index e2d061ed..6d75ae3e 100644
--- a/core/src/main/java/de/betterform/xml/xforms/AbstractProcessorDecorator.java
+++ b/core/src/main/java/de/betterform/... | false | true | protected void addEventListeners() throws XFormsException {
// get docuent root as event target in order to capture all events
this.root = (EventTarget) this.xformsProcessor.getXForms();
// interaction events my occur during init so we have to register before
if (isEventUsed(DOMEven... | protected void addEventListeners() throws XFormsException {
// get docuent root as event target in order to capture all events
this.root = (EventTarget) this.xformsProcessor.getXForms();
// interaction events my occur during init so we have to register before
if (isEventUsed(DOMEven... |
diff --git a/src/com/ubhave/dataformatter/json/push/SmsFormatter.java b/src/com/ubhave/dataformatter/json/push/SmsFormatter.java
index 5c30766..a381d13 100644
--- a/src/com/ubhave/dataformatter/json/push/SmsFormatter.java
+++ b/src/com/ubhave/dataformatter/json/push/SmsFormatter.java
@@ -1,63 +1,63 @@
/* *************... | true | true | public SensorData toSensorData(String jsonString)
{
JSONObject jsonData = super.parseData(jsonString);
if (jsonData != null)
{
long recvTimestamp = super.parseTimeStamp(jsonData);
int smsLength = (Integer) jsonData.get(CONTENT_LENGTH);
int noOfWords = (Integer) jsonData.get(WORD_COUNT);
String addr ... | public SensorData toSensorData(String jsonString)
{
JSONObject jsonData = super.parseData(jsonString);
if (jsonData != null)
{
long recvTimestamp = super.parseTimeStamp(jsonData);
int smsLength = ((Long) jsonData.get(CONTENT_LENGTH)).intValue();
int noOfWords = ((Long) jsonData.get(WORD_COUNT)).intValu... |
diff --git a/src/izpack/registry/src/Main.java b/src/izpack/registry/src/Main.java
index b05e901..afb5a77 100644
--- a/src/izpack/registry/src/Main.java
+++ b/src/izpack/registry/src/Main.java
@@ -1,138 +1,138 @@
// File : Main.java
// Project : Scala
// Author(s) : Stephane Micheloud (mics)
// Environmen... | false | true | private static void updateRegistry(String homePath, String fullName) throws RegistryException {
// HKEY_CURRENT_USER\Environment
RegistryKey envKey = Registry.openSubkey(
Registry.HKEY_CURRENT_USER,
"Environment",
RegistryKey.ACCESS_ALL);
if (homePath != n... | private static void updateRegistry(String homePath, String fullName) throws RegistryException {
// HKEY_CURRENT_USER\Environment
RegistryKey envKey = Registry.openSubkey(
Registry.HKEY_CURRENT_USER,
"Environment",
RegistryKey.ACCESS_ALL);
if (homePath != n... |
diff --git a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/plugins/runners/hbasemr/MRHBasePluginRunner.java b/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/plugins/runners/hbasemr/MRHBasePluginRunner.java
index 8e392a46..189b2069 100644
--- a/seqware-queryengine-bac... | true | true | public MRHBasePluginRunner(MapReducePlugin mapReducePlugin, Reference reference, List<FeatureSet> inputSet, Object... parameters) {
// handle null inputSet
if (inputSet == null){
inputSet = new ArrayList<FeatureSet>();
}
// we should either have a reference or more than o... | public MRHBasePluginRunner(MapReducePlugin mapReducePlugin, Reference reference, List<FeatureSet> inputSet, Object... parameters) {
// handle null inputSet
if (inputSet == null){
inputSet = new ArrayList<FeatureSet>();
}
// we should either have a reference or more than o... |
diff --git a/jags/src/test/java/org/opentripplanner/jags/test/TestKao.java b/jags/src/test/java/org/opentripplanner/jags/test/TestKao.java
index da16838..dd11e8b 100644
--- a/jags/src/test/java/org/opentripplanner/jags/test/TestKao.java
+++ b/jags/src/test/java/org/opentripplanner/jags/test/TestKao.java
@@ -1,51 +1,52 ... | false | true | public void testBasic() throws Exception {
Feed feed = new Feed(new PackagedFeed( "caltrain_gtfs.zip" ));
KaoGraph kg = new KaoGraph( );
GTFSHopLoader hl = new GTFSHopLoader(kg, feed);
hl.load();
GregorianCalendar t_0 = new GregorianCalendar(2009,8,7,12,0,0);
long delta = 1000000000;
Vertex mlb = kg.g... | public void testBasic() throws Exception {
Feed feed = new Feed(new PackagedFeed( "caltrain_gtfs.zip" ));
KaoGraph kg = new KaoGraph( );
GTFSHopLoader hl = new GTFSHopLoader(kg, feed);
hl.load();
GregorianCalendar t_0 = new GregorianCalendar(2009,8,7,12,0,0);
long delta = 1000000000;
Vertex mlb = kg.g... |
diff --git a/Analysis/LinearAnalysis.java b/Analysis/LinearAnalysis.java
index 104f045..2e19024 100644
--- a/Analysis/LinearAnalysis.java
+++ b/Analysis/LinearAnalysis.java
@@ -1,175 +1,177 @@
package Analysis;
import java.util.HashSet;
import java.util.Vector;
//import org.apache.commons.lang3.StringUtils;
... | false | true | public int [] getRelated( Labels labels, int[] queryConfs, Index index, Blocks blocks, Scores scoresMatrix, Relations relations, String queryID ) {
HashSet<Integer> relatedIndividuals = new HashSet<Integer>();
HashMap<Integer, Block> bestBlocks = new HashMap<Integer, Block>();
HashMap<Integer, Double> best... | public int [] getRelated( Labels labels, int[] queryConfs, Index index, Blocks blocks, Scores scoresMatrix, Relations relations, String queryID ) {
HashSet<Integer> relatedIndividuals = new HashSet<Integer>();
HashMap<Integer, Block> bestBlocks = new HashMap<Integer, Block>();
HashMap<Integer, Double> best... |
diff --git a/modules/org.restlet.test/src/org/restlet/test/resource/AnnotatedResource1TestCase.java b/modules/org.restlet.test/src/org/restlet/test/resource/AnnotatedResource1TestCase.java
index b393d6dfc..34ff5c561 100644
--- a/modules/org.restlet.test/src/org/restlet/test/resource/AnnotatedResource1TestCase.java
+++ ... | false | true | public void testGet() throws IOException, ResourceException {
MyBean myBean = myResource.represent();
assertNotNull(myBean);
assertEquals("myName", myBean.getName());
assertEquals("myDescription", myBean.getDescription());
String result = clientResource.get(MediaType.TEXT_XM... | public void testGet() throws IOException, ResourceException {
MyBean myBean = myResource.represent();
assertNotNull(myBean);
assertEquals("myName", myBean.getName());
assertEquals("myDescription", myBean.getDescription());
String result = clientResource.get(MediaType.TEXT_XM... |
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/motions/GoToLineMotion.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/motions/GoToLineMotion.java
index 19da0846..8539e87d 100644
--- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/m... | true | true | public Position destination(EditorAdaptor editorAdaptor, int count)
throws CommandExecutionException {
TextContent content = editorAdaptor.getModelContent();
int lineNo = count == NO_COUNT_GIVEN ? defaultLineNo(content) : count - 1;
if(lineNo > content.getNumberOfLines())
... | public Position destination(EditorAdaptor editorAdaptor, int count)
throws CommandExecutionException {
TextContent content = editorAdaptor.getModelContent();
int lineNo = count == NO_COUNT_GIVEN ? defaultLineNo(content) : count - 1;
if(lineNo > content.getNumberOfLines())
... |
diff --git a/src/main/java/com/araeosia/ArcherGames/ArcherGames.java b/src/main/java/com/araeosia/ArcherGames/ArcherGames.java
index 1dfaab9..96f4bb7 100644
--- a/src/main/java/com/araeosia/ArcherGames/ArcherGames.java
+++ b/src/main/java/com/araeosia/ArcherGames/ArcherGames.java
@@ -1,174 +1,171 @@
package com.araeos... | true | true | public void onEnable() {
startPosition = getServer().getWorlds().get(0).getSpawnLocation();
log = this.getLogger();
scheduler = new ScheduledTasks(this);
serverwide = new ServerWide(this);
IRCBot = new IRCBot(this);
config = new Config(this);
config.loadConfiguration();
db = new Database(this);
rando... | public void onEnable() {
startPosition = getServer().getWorlds().get(0).getSpawnLocation();
log = this.getLogger();
scheduler = new ScheduledTasks(this);
serverwide = new ServerWide(this);
IRCBot = new IRCBot(this);
config = new Config(this);
config.loadConfiguration();
db = new Database(this);
rando... |
diff --git a/hue2/src/main/java/nl/q42/hue2/activities/GroupActivity.java b/hue2/src/main/java/nl/q42/hue2/activities/GroupActivity.java
index 7178c3b..28b1c05 100644
--- a/hue2/src/main/java/nl/q42/hue2/activities/GroupActivity.java
+++ b/hue2/src/main/java/nl/q42/hue2/activities/GroupActivity.java
@@ -1,384 +1,385 @@... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActionBar ab = getActionBar();
ab.setDisplayHomeAsUpEnabled(true);
ab.setDisplayShowTitleEnabled(false);
// Group details
group = (Group) getIntent().getSerializableExtra("group");
id = getIntent().getStringExtra(... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActionBar ab = getActionBar();
ab.setDisplayHomeAsUpEnabled(true);
ab.setDisplayShowTitleEnabled(false);
// Group details
group = (Group) getIntent().getSerializableExtra("group");
id = getIntent().getStringExtra(... |
diff --git a/FiltersImpl/src/org/gephi/filters/FilterControllerImpl.java b/FiltersImpl/src/org/gephi/filters/FilterControllerImpl.java
index add5a0c11..8f7325706 100644
--- a/FiltersImpl/src/org/gephi/filters/FilterControllerImpl.java
+++ b/FiltersImpl/src/org/gephi/filters/FilterControllerImpl.java
@@ -1,377 +1,377 @@... | true | true | public FilterControllerImpl() {
//Register range editor
PropertyEditorManager.registerEditor(Range.class, RangePropertyEditor.class);
PropertyEditorManager.registerEditor(AttributeColumn.class, AttributeColumnPropertyEditor.class);
//Model management
ProjectController pc = L... | public FilterControllerImpl() {
//Register range editor
PropertyEditorManager.registerEditor(Range.class, RangePropertyEditor.class);
PropertyEditorManager.registerEditor(AttributeColumn.class, AttributeColumnPropertyEditor.class);
//Model management
ProjectController pc = L... |
diff --git a/src/pse11/gui/controller/TableViewController.java b/src/pse11/gui/controller/TableViewController.java
index 17a0e9a..7c6cb04 100644
--- a/src/pse11/gui/controller/TableViewController.java
+++ b/src/pse11/gui/controller/TableViewController.java
@@ -1,234 +1,235 @@
package gui.controller;
import gui.Brea... | true | true | public void widgetSelected(SelectionEvent e) {
if(e.getSource() == this.breakpointView.getGlobalBreakpoint() && e.detail == SWT.CHECK) {
Table table = this.breakpointView.getGlobalBreakpoint();
int i;
for (i = 0; i < table.getItemCount(); i++) {
if (e.item == table.getItem(i)) {
break;
}
}... | public void widgetSelected(SelectionEvent e) {
if(e.getSource() == this.breakpointView.getGlobalBreakpoint() && e.detail == SWT.CHECK) {
Table table = this.breakpointView.getGlobalBreakpoint();
int i;
for (i = 0; i < table.getItemCount(); i++) {
if (e.item == table.getItem(i)) {
break;
}
}... |
diff --git a/luaj-vm/src/core/org/luaj/vm/LuaState.java b/luaj-vm/src/core/org/luaj/vm/LuaState.java
index 49a48ef..c698a54 100644
--- a/luaj-vm/src/core/org/luaj/vm/LuaState.java
+++ b/luaj-vm/src/core/org/luaj/vm/LuaState.java
@@ -1,2545 +1,2545 @@
/*******************************************************************... | true | true | public void exec() {
if ( cc < 0 )
return;
int i, a, b, c, o, n, cb;
LValue rkb, rkc, nvarargs, key, val;
LValue i0, step, idx, limit, init, table;
boolean back, body;
LPrototype proto;
LClosure newClosure;
// reload values from the curre... | public void exec() {
if ( cc < 0 )
return;
int i, a, b, c, o, n, cb;
LValue rkb, rkc, nvarargs, key, val;
LValue i0, step, idx, limit, init, table;
boolean back, body;
LPrototype proto;
LClosure newClosure;
// reload values from the curre... |
diff --git a/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/dashboard/subjectcoordinator/ColleagueSubjectCoordinatorController.java b/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/dashboard/subjectcoordinator/ColleagueSubjectCoordinatorController.java
index 005328a34..64475163... | true | true | protected Map<String, Object> referenceData(HttpServletRequest httpServletRequest) throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
Integer colleagueId = ServletRequestUtils.getIntParameter(httpServletRequest, "id");
Collection<Site> sitesForCollegueUser = siteS... | protected Map<String, Object> referenceData(HttpServletRequest httpServletRequest) throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
Integer colleagueId = ServletRequestUtils.getIntParameter(httpServletRequest, "id");
Collection<Site> sitesForCollegueUser = siteS... |
diff --git a/extensions/gdx-bullet/src/com/badlogic/gdx/physics/bullet/BulletBuild.java b/extensions/gdx-bullet/src/com/badlogic/gdx/physics/bullet/BulletBuild.java
index d36f92792..165418873 100644
--- a/extensions/gdx-bullet/src/com/badlogic/gdx/physics/bullet/BulletBuild.java
+++ b/extensions/gdx-bullet/src/com/badl... | false | true | public static void main (String[] args) throws Exception {
// generate C/C++ code
new NativeCodeGenerator().generate("src", "bin", "jni");
// Flags to accomodate SWIG generated code
String cppFlags = "";
// SWIG doesn't emit strict aliasing compliant code
cppFlags += " -fno-strict-aliasing";
// SWIG di... | public static void main (String[] args) throws Exception {
// generate C/C++ code
new NativeCodeGenerator().generate("src", "bin", "jni");
// Flags to accomodate SWIG generated code
String cppFlags = "";
// SWIG doesn't emit strict aliasing compliant code
cppFlags += " -fno-strict-aliasing";
// SWIG di... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediator.java b/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediator.java
index b4ce552c0..e04640fbf 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediat... | true | true | public boolean mediate(MessageContext synCtx) {
if (log.isDebugEnabled()) {
log.debug("ValidateMediator - Validate mediator mediate()");
}
boolean shouldTrace = shouldTrace(synCtx.getTracingState());
if (shouldTrace) {
trace.trace("Start : Validate mediator")... | public boolean mediate(MessageContext synCtx) {
if (log.isDebugEnabled()) {
log.debug("ValidateMediator - Validate mediator mediate()");
}
boolean shouldTrace = shouldTrace(synCtx.getTracingState());
if (shouldTrace) {
trace.trace("Start : Validate mediator")... |
diff --git a/src/gui/components/GUISensor.java b/src/gui/components/GUISensor.java
index de0da69..2f3ed97 100755
--- a/src/gui/components/GUISensor.java
+++ b/src/gui/components/GUISensor.java
@@ -1,171 +1,171 @@
package gui.components;
import java.awt.event.ActionEvent;
import java.awt.geom.Rectangle2D;
import... | true | true | public void checkGlassDetected()
{
// Will update it's current list with the current roster of GuiGlassPieces
activePieces = parent.getActivePieces();
if (pressed == false)
{
// This is if the sensor is not pressed
// it will constantly check if it's intersecting
// with any guiglasspiece in the acti... | public void checkGlassDetected()
{
// Will update it's current list with the current roster of GuiGlassPieces
activePieces = parent.getActivePieces();
if (pressed == false)
{
// This is if the sensor is not pressed
// it will constantly check if it's intersecting
// with any guiglasspiece in the acti... |
diff --git a/src/main/java/com/bryanjswift/simplenote/net/SimplenoteApi.java b/src/main/java/com/bryanjswift/simplenote/net/SimplenoteApi.java
index e3b4a74..91ff77f 100644
--- a/src/main/java/com/bryanjswift/simplenote/net/SimplenoteApi.java
+++ b/src/main/java/com/bryanjswift/simplenote/net/SimplenoteApi.java
@@ -1,1... | false | true | public ApiResponse<NoteList> index(final IndexParams params) {
final String url = String.format(Constants.API_LIST_URL, creds.auth, creds.email);
String data = "";
if (params.mark != null && !params.mark.equals(Constants.DEFAULT_INDEX_MARK)) {
data = data + "&mark=" + params.mark... | public ApiResponse<NoteList> index(final IndexParams params) {
final String url = String.format(Constants.API_LIST_URL, creds.auth, creds.email);
String data = "";
if (params.mark != null && !params.mark.equals(Constants.DEFAULT_INDEX_MARK)) {
data = data + "&mark=" + params.mark... |
diff --git a/patientview-parent/radar/src/main/java/org/patientview/radar/web/pages/patient/ExistingPatientsListingPage.java b/patientview-parent/radar/src/main/java/org/patientview/radar/web/pages/patient/ExistingPatientsListingPage.java
index 3d11ac76..bfb766df 100644
--- a/patientview-parent/radar/src/main/java/org/... | true | true | public ExistingPatientsListingPage() {
DemographicsDataProvider demographicsDataProvider = new DemographicsDataProvider(demographicsManager,
RadarSecuredSession.get().getUser());
// List existing patients
add(new DataView<Patient>("patients", demographicsDataProvider) {
... | public ExistingPatientsListingPage() {
DemographicsDataProvider demographicsDataProvider = new DemographicsDataProvider(demographicsManager,
RadarSecuredSession.get().getUser());
// List existing patients
add(new DataView<Patient>("patients", demographicsDataProvider) {
... |
diff --git a/cat-job/src/main/java/com/dianping/cat/job/build/ComponentsConfigurator.java b/cat-job/src/main/java/com/dianping/cat/job/build/ComponentsConfigurator.java
index 177f9113..4c958f4b 100644
--- a/cat-job/src/main/java/com/dianping/cat/job/build/ComponentsConfigurator.java
+++ b/cat-job/src/main/java/com/dian... | false | true | public List<Component> defineComponents() {
List<Component> all = new ArrayList<Component>();
String serverUri = property("serve-uri", "hdfs://192.168.7.43:9000/user/cat");
all.add(C(OutputChannel.class, DefaultOutputChannel.class).is(PER_LOOKUP) //
.req(MessageCodec.class, "plain-text") //
.con... | public List<Component> defineComponents() {
List<Component> all = new ArrayList<Component>();
String serverUri = property("server-uri", "hdfs://192.168.7.43:9000/user/cat");
all.add(C(OutputChannel.class, DefaultOutputChannel.class).is(PER_LOOKUP) //
.req(MessageCodec.class, "plain-text") //
.co... |
diff --git a/src/main/java/net/mcft/copy/betterstorage/content/Items.java b/src/main/java/net/mcft/copy/betterstorage/content/Items.java
index 540091a..3fd58b3 100644
--- a/src/main/java/net/mcft/copy/betterstorage/content/Items.java
+++ b/src/main/java/net/mcft/copy/betterstorage/content/Items.java
@@ -1,77 +1,78 @@
... | true | true | public static void initialize() {
key = MiscUtils.conditionalNew(ItemKey.class, GlobalConfig.keyId);
lock = MiscUtils.conditionalNew(ItemLock.class, GlobalConfig.lockId);
keyring = MiscUtils.conditionalNew(ItemKeyring.class, GlobalConfig.keyringId);
cardboardSheet = MiscUtils.con... | public static void initialize() {
key = MiscUtils.conditionalNew(ItemKey.class, GlobalConfig.keyId);
lock = MiscUtils.conditionalNew(ItemLock.class, GlobalConfig.lockId);
keyring = MiscUtils.conditionalNew(ItemKeyring.class, GlobalConfig.keyringId);
cardboardSheet = MiscUtils.con... |
diff --git a/src/net/kervala/comicsreader/FullImageView.java b/src/net/kervala/comicsreader/FullImageView.java
index 3a61b60..0bd9076 100644
--- a/src/net/kervala/comicsreader/FullImageView.java
+++ b/src/net/kervala/comicsreader/FullImageView.java
@@ -1,323 +1,323 @@
/*
* ComicsReader is an Android application to r... | false | true | protected synchronized void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mCurrentBitmap == null || mBitmapWidth == 0 || mBitmapHeight == 0) {
return;
}
canvas.getClipBounds(mRect);
// the right limit of current bitmap
final int currRight = Math.min(mRect.right, mBitmapWidth);
int bottom = M... | protected synchronized void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mCurrentBitmap == null || mBitmapWidth == 0 || mBitmapHeight == 0) {
return;
}
canvas.getClipBounds(mRect);
// the right limit of current bitmap
final int currRight = Math.min(mRect.right, mBitmapWidth);
int bottom = M... |
diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket1934.java b/src/com/itmill/toolkit/tests/tickets/Ticket1934.java
index 0bd48d411..8d2b8cbd9 100644
--- a/src/com/itmill/toolkit/tests/tickets/Ticket1934.java
+++ b/src/com/itmill/toolkit/tests/tickets/Ticket1934.java
@@ -1,31 +1,31 @@
package com.itmill.toolkit.t... | true | true | public void init() {
Window w = new Window(
"#1934 : Horizontal ExpandLayout completely broken");
setMainWindow(w);
w.addComponent(new Label(
"Horizontal 500x200 ExpandLayout with two components:"));
ExpandLayout testedLayout = new ExpandLayout(
... | public void init() {
Window w = new Window(
"#1934 : Horizontal ExpandLayout completely broken");
setMainWindow(w);
w.addComponent(new Label(
"Horizontal 500x200 ExpandLayout with two components:"));
ExpandLayout testedLayout = new ExpandLayout(
... |
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEContentProvider.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEContentProvider.java
index 63f1cebcc..0a904e238 100644
--- a/plugins/org.eclipse.j... | false | true | public void onRefresh(final Object element) {
if (viewer instanceof AbstractTreeViewer) {
if (Display.getCurrent() != null) {
((AbstractTreeViewer) viewer).refresh(element, true);
} else {
/* Create and schedule a UI Job to update the Navigator Content Viewer */
Job job = new UIJob("Update the Navi... | public void onRefresh(final Object element) {
if (viewer instanceof AbstractTreeViewer) {
if (Display.getCurrent() != null) {
((AbstractTreeViewer) viewer).refresh(element, true);
} else {
/* Create and schedule a UI Job to update the Navigator Content Viewer */
Job job = new UIJob("Update the Navi... |
diff --git a/src/org/nodomain/volkerk/PinkDotRemover/DotSet.java b/src/org/nodomain/volkerk/PinkDotRemover/DotSet.java
index 2d8bebe..ec176a4 100644
--- a/src/org/nodomain/volkerk/PinkDotRemover/DotSet.java
+++ b/src/org/nodomain/volkerk/PinkDotRemover/DotSet.java
@@ -1,180 +1,182 @@
/*
* Copyright © 2013 Volker Kno... | false | true | public int[][] getAllCoordinates(int w, int h)
{
ArrayList<int[]> result = new ArrayList<int[]>();
// if we are a specific dot set, use "our" coordinates
// and ignore the w,h-parameters
if ((width != 0) && (height != 0))
{
w = width;
h = ... | public int[][] getAllCoordinates(int w, int h)
{
ArrayList<int[]> result = new ArrayList<int[]>();
// if we are a specific dot set, use "our" coordinates
// and ignore the w,h-parameters
if ((width != 0) && (height != 0))
{
w = width;
h = ... |
diff --git a/src/com/android/settings/UserDictionarySettings.java b/src/com/android/settings/UserDictionarySettings.java
index 6ffcb3d6b..49363a907 100644
--- a/src/com/android/settings/UserDictionarySettings.java
+++ b/src/com/android/settings/UserDictionarySettings.java
@@ -1,286 +1,286 @@
/**
* Copyright (C) 2009... | true | true | protected Dialog onCreateDialog(int id) {
View content = getLayoutInflater().inflate(R.layout.dialog_edittext, null);
final EditText editText = (EditText) content.findViewById(R.id.edittext);
// No prediction in soft keyboard mode. TODO: Create a better way to disable prediction
edit... | protected Dialog onCreateDialog(int id) {
View content = getLayoutInflater().inflate(R.layout.dialog_edittext, null);
final EditText editText = (EditText) content.findViewById(R.id.edittext);
// No prediction in soft keyboard mode. TODO: Create a better way to disable prediction
edit... |
diff --git a/src/com/cooliris/cache/CacheService.java b/src/com/cooliris/cache/CacheService.java
index 1650a1f..7de8208 100644
--- a/src/com/cooliris/cache/CacheService.java
+++ b/src/com/cooliris/cache/CacheService.java
@@ -1,1210 +1,1231 @@
package com.cooliris.cache;
import java.io.BufferedInputStream;
import j... | true | true | public static final long[] computeDirtySets(final Context context) {
final Uri uriImages = Images.Media.EXTERNAL_CONTENT_URI;
final Uri uriVideos = Video.Media.EXTERNAL_CONTENT_URI;
final ContentResolver cr = context.getContentResolver();
final String where = Images.ImageColumns.BUCK... | public static final long[] computeDirtySets(final Context context) {
final Uri uriImages = Images.Media.EXTERNAL_CONTENT_URI;
final Uri uriVideos = Video.Media.EXTERNAL_CONTENT_URI;
final ContentResolver cr = context.getContentResolver();
final String where = Images.ImageColumns.BUCK... |
diff --git a/plugins/org.eclipse.viatra2.patternlanguage.emf/src/org/eclipse/viatra2/patternlanguage/validation/EMFPatternLanguageJavaValidator.java b/plugins/org.eclipse.viatra2.patternlanguage.emf/src/org/eclipse/viatra2/patternlanguage/validation/EMFPatternLanguageJavaValidator.java
index d2a91306..6a660981 100644
-... | false | true | public void checkEnumValues(EnumValue value) {
if (value.eContainer() instanceof PathExpressionHead) {
// If container is PathExpression check for enum type assignability
EEnum enumType = value.getEnumeration();
if (enumType == null && value.getLiteral() != null) {
... | public void checkEnumValues(EnumValue value) {
if (value.eContainer() instanceof PathExpressionHead) {
// If container is PathExpression check for enum type assignability
EEnum enumType = value.getEnumeration();
if (enumType == null && value.getLiteral() != null) {
... |
diff --git a/src/savant/view/swing/interval/IntervalTrackRenderer.java b/src/savant/view/swing/interval/IntervalTrackRenderer.java
index 366c7fb2..2bb9f4ea 100644
--- a/src/savant/view/swing/interval/IntervalTrackRenderer.java
+++ b/src/savant/view/swing/interval/IntervalTrackRenderer.java
@@ -1,243 +1,243 @@
/*
* ... | true | true | private void renderPackMode(Graphics2D g2, GraphPane gp, Resolution r) {
List<Object> data = this.getData();
ColorScheme cs = (ColorScheme) getDrawingInstructions().getInstruction(DrawingInstructions.InstructionName.COLOR_SCHEME.toString());
Color bgcolor = cs.getColor("OPAQUE_GRAPH");
... | private void renderPackMode(Graphics2D g2, GraphPane gp, Resolution r) {
List<Object> data = this.getData();
ColorScheme cs = (ColorScheme) getDrawingInstructions().getInstruction(DrawingInstructions.InstructionName.COLOR_SCHEME.toString());
Color bgcolor = cs.getColor("OPAQUE_GRAPH");
... |
diff --git a/src/org/xbmc/android/remote/presentation/activity/TvShowLibraryActivity.java b/src/org/xbmc/android/remote/presentation/activity/TvShowLibraryActivity.java
index 3198844..4fab38d 100644
--- a/src/org/xbmc/android/remote/presentation/activity/TvShowLibraryActivity.java
+++ b/src/org/xbmc/android/remote/pres... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tvlibrary);
// remove nasty top fading edge
FrameLayout topFrame = (FrameLayout)findViewById(android.R.id.content);
topFrame.setForeground(null);
mTabHost = getTabHost();
// add the tabs... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tvlibrary);
// remove nasty top fading edge
FrameLayout topFrame = (FrameLayout)findViewById(android.R.id.content);
topFrame.setForeground(null);
mTabHost = getTabHost();
// add the tabs... |
diff --git a/plugins/org.teiid.designer.metamodels.relational/src/org/teiid/designer/metamodels/relational/aspects/validation/rules/ProcedureParametersRule.java b/plugins/org.teiid.designer.metamodels.relational/src/org/teiid/designer/metamodels/relational/aspects/validation/rules/ProcedureParametersRule.java
index 4c9... | false | true | public void validate(EObject eObject, ValidationContext context) {
CoreArgCheck.isInstanceOf(Procedure.class, eObject);
Procedure procedure = (Procedure) eObject;
ValidationResult result = new ValidationResultImpl(eObject);
// get the procedure parameters, check the direction on the
... | public void validate(EObject eObject, ValidationContext context) {
CoreArgCheck.isInstanceOf(Procedure.class, eObject);
Procedure procedure = (Procedure) eObject;
ValidationResult result = new ValidationResultImpl(eObject);
// get the procedure parameters, check the direction on the
... |
diff --git a/nexus/nexus-test-harness/nexus-test-harness-its/src/test/java/org/sonatype/nexus/integrationtests/nxcm2124/NXCM2124CheckConsoleDocumentationIT.java b/nexus/nexus-test-harness/nexus-test-harness-its/src/test/java/org/sonatype/nexus/integrationtests/nxcm2124/NXCM2124CheckConsoleDocumentationIT.java
index 4b4... | false | true | public void checkDoc()
throws IOException
{
List<PluginInfoDTO> pluginInfos = pluginConsoleMsgUtil.listPluginInfos();
Assert.assertThat( getPluginsNames( pluginInfos ),
IsCollectionContaining.hasItem( "Nexus Plugin Console Plugin" ) );
PluginInfoDTO p... | public void checkDoc()
throws IOException
{
List<PluginInfoDTO> pluginInfos = pluginConsoleMsgUtil.listPluginInfos();
Assert.assertThat( getPluginsNames( pluginInfos ),
IsCollectionContaining.hasItem( "Nexus Plugin Console Plugin" ) );
PluginInfoDTO p... |
diff --git a/src/org/apache/xerces/dom/DOMNormalizer.java b/src/org/apache/xerces/dom/DOMNormalizer.java
index 18c621b98..5d37582db 100644
--- a/src/org/apache/xerces/dom/DOMNormalizer.java
+++ b/src/org/apache/xerces/dom/DOMNormalizer.java
@@ -1,1839 +1,1839 @@
/*
* Copyright 1999-2002,2004 The Apache Software Foun... | true | true | protected Node normalizeNode (Node node){
int type = node.getNodeType();
boolean wellformed;
switch (type) {
case Node.DOCUMENT_TYPE_NODE: {
if (DEBUG_ND) {
System.out.println("==>normalizeNode:{doctype}");
}
//REV... | protected Node normalizeNode (Node node){
int type = node.getNodeType();
boolean wellformed;
switch (type) {
case Node.DOCUMENT_TYPE_NODE: {
if (DEBUG_ND) {
System.out.println("==>normalizeNode:{doctype}");
}
//REV... |
diff --git a/src/main/java/com/relayrides/pushy/apns/PushManager.java b/src/main/java/com/relayrides/pushy/apns/PushManager.java
index cdb780ef..23a66a5d 100644
--- a/src/main/java/com/relayrides/pushy/apns/PushManager.java
+++ b/src/main/java/com/relayrides/pushy/apns/PushManager.java
@@ -1,254 +1,254 @@
/* Copyright... | true | true | protected synchronized void notifyListenersOfRejectedNotification(final T notification, final RejectedNotificationReason reason) {
final ArrayList<RejectedNotificationListener<T>> listeners = new ArrayList<RejectedNotificationListener<T>>();
final ArrayList<Integer> expiredListenerIndices = new ArrayList<Integer>... | protected synchronized void notifyListenersOfRejectedNotification(final T notification, final RejectedNotificationReason reason) {
final ArrayList<RejectedNotificationListener<T>> listeners = new ArrayList<RejectedNotificationListener<T>>();
final ArrayList<Integer> expiredListenerIndices = new ArrayList<Integer>... |
diff --git a/src/com/androidians/betapro/DeveloperMain.java b/src/com/androidians/betapro/DeveloperMain.java
index 9c307d5..3586519 100644
--- a/src/com/androidians/betapro/DeveloperMain.java
+++ b/src/com/androidians/betapro/DeveloperMain.java
@@ -1,251 +1,251 @@
package com.androidians.betapro;
import android.app... | false | true | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
//an intent for file browsing
final Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.... | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
//an intent for file browsing
final Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.... |
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
index bc1fea71..e362d1e7 100644
--- a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
+++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
@@ -1,300 +1,302 @@
package ... | true | true | public synchronized TextWord [][] textLines(int page) {
gotoPage(page);
TextChar[][][][] chars = text();
// The text of the page held in a hierarchy (blocks, lines, spans).
// Currently we don't need to distinguish the blocks level or
// the spans, and we need to collect the text into words.
ArrayList<Tex... | public synchronized TextWord [][] textLines(int page) {
gotoPage(page);
TextChar[][][][] chars = text();
// The text of the page held in a hierarchy (blocks, lines, spans).
// Currently we don't need to distinguish the blocks level or
// the spans, and we need to collect the text into words.
ArrayList<Tex... |
diff --git a/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java b/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
index 9f150a28b..1a94195f3 100644
--- a/common/plugins/org.jboss.to... | false | true | private void disablePreference(){
String value = preferences.getProjectPreference(file.getProject(), PROBLEM_ID);
if(!SeverityPreferences.IGNORE.equals(value)){
IEclipsePreferences projectPreferences = preferences.getProjectPreferences(file.getProject());
String projectValue = null;
if(projectPreferen... | private void disablePreference(){
String value = preferences.getProjectPreference(file.getProject(), PROBLEM_ID);
if(!SeverityPreferences.IGNORE.equals(value)){
IEclipsePreferences projectPreferences = preferences.getProjectPreferences(file.getProject());
String projectValue = null;
if(projectPreferen... |
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/internal/watson/ElementTreeDeltaChainTest.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/internal/watson/ElementTreeDeltaChainTest.java
index fc61d9a8a..6370f2131 100644
--- a/tests/org.eclipse.core.tests.resources/... | true | true | public void testIllegalMerges() {
fTree = fTree.newEmptyDelta();
/* null trees */
boolean caught = false;
Exception ex = null;
try {
fTree.mergeDeltaChain(solution, null);
} catch (RuntimeException e) {
caught = true;
ex = e;
} finally {
assertTrue(ex.getMessage(), caught);
}
/* create ... | public void testIllegalMerges() {
fTree = fTree.newEmptyDelta();
/* null trees */
boolean caught = false;
Exception ex = null;
try {
fTree.mergeDeltaChain(solution, null);
} catch (RuntimeException e) {
caught = true;
ex = e;
} finally {
assertTrue("", caught);
}
/* create a tree with a... |
diff --git a/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java b/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java
index a2571883c..11f6618f6 100644
--- a/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java
+++ b/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java
@@ -1,278 +1,278 @@
package ae... | true | true | private void applyChanges() {
map.clear();
Collections.sort(annotations, new Comparator<Annotation>() {
public int compare(Annotation a1, Annotation a2) {
return Float.compare(a1.y, a2.y);
}
});
Editor editor = new Editor(svgDocument);
... | private void applyChanges() {
map.clear();
Collections.sort(annotations, new Comparator<Annotation>() {
public int compare(Annotation a1, Annotation a2) {
return Float.compare(a1.y, a2.y);
}
});
Editor editor = new Editor(svgDocument);
... |
diff --git a/src/main/java/org/scribe/model/OAuthRequest.java b/src/main/java/org/scribe/model/OAuthRequest.java
index ec7f023..4389227 100644
--- a/src/main/java/org/scribe/model/OAuthRequest.java
+++ b/src/main/java/org/scribe/model/OAuthRequest.java
@@ -1,68 +1,69 @@
package org.scribe.model;
import java.util.*;... | false | true | private String checkKey(String key)
{
if (!key.startsWith(OAUTH_PREFIX) || !key.equals(OAuthConstants.SCOPE))
{
throw new IllegalArgumentException(String.format("OAuth parameters must either be %s or start with '%s'", OAuthConstants.SCOPE, OAUTH_PREFIX));
} else
{
return key;
}
}
| private String checkKey(String key)
{
if (key.startsWith(OAUTH_PREFIX) || key.equals(OAuthConstants.SCOPE))
{
return key;
}
else
{
throw new IllegalArgumentException(String.format("OAuth parameters must either be '%s' or start with '%s'", OAuthConstants.SCOPE, OAUTH_PREFIX));
}
... |
diff --git a/src/edu/stanford/bmir/protege/web/server/owlapi/change/OWLAPIChangeManager.java b/src/edu/stanford/bmir/protege/web/server/owlapi/change/OWLAPIChangeManager.java
index 25677157f..ef24894e0 100644
--- a/src/edu/stanford/bmir/protege/web/server/owlapi/change/OWLAPIChangeManager.java
+++ b/src/edu/stanford/bm... | true | true | private void persistBaseline() {
try {
// Sort the basline axioms in a nice order
writeLock.lock();
List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
Set<AxiomType<?>> axiomTypes = new LinkedHashSet<AxiomType<?>>();
axiomTypes.a... | private void persistBaseline() {
try {
// Sort the basline axioms in a nice order
writeLock.lock();
List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
Set<AxiomType<?>> axiomTypes = new LinkedHashSet<AxiomType<?>>();
axiomTypes.a... |
diff --git a/bagit/trunk/src/main/java/gov/loc/repository/bagit/driver/ConsoleProgressListener.java b/bagit/trunk/src/main/java/gov/loc/repository/bagit/driver/ConsoleProgressListener.java
index 989d2825..8535b87c 100644
--- a/bagit/trunk/src/main/java/gov/loc/repository/bagit/driver/ConsoleProgressListener.java
+++ b/... | true | true | public void reportProgress(String activity, Object item, Long count, Long total)
{
if (console != null)
{
long now = System.currentTimeMillis();
long next = this.nextUpdate;
if (now >= next)
{
String msg = format("{0} ({2} of {3}): {1}", activity, item, count == null?"???":count, total == null... | public void reportProgress(String activity, Object item, Long count, Long total)
{
if (console != null)
{
long now = System.currentTimeMillis();
long next = this.nextUpdate;
if (now >= next)
{
String msg = format("{0} ({2} of {3}): {1}", activity, item, count == null?"???":count, total == null... |
diff --git a/common/logisticspipes/logisticspipes/ItemModuleInformationManager.java b/common/logisticspipes/logisticspipes/ItemModuleInformationManager.java
index 71b1f898..6677bbca 100644
--- a/common/logisticspipes/logisticspipes/ItemModuleInformationManager.java
+++ b/common/logisticspipes/logisticspipes/ItemModuleI... | false | true | public static void saveInfotmation(ItemStack itemStack, ILogisticsModule module) {
if(module == null) return;
NBTTagCompound nbt = new NBTTagCompound();
module.writeToNBT(nbt);
if(nbt.equals(new NBTTagCompound())) {
return;
}
if(MainProxy.isClient()) {
NBTTagList list =... | public static void saveInfotmation(ItemStack itemStack, ILogisticsModule module) {
if(module == null) return;
NBTTagCompound nbt = new NBTTagCompound();
module.writeToNBT(nbt);
if(nbt.equals(new NBTTagCompound())) {
return;
}
if(MainProxy.isClient()) {
NBTTagList list =... |
diff --git a/applications/rainbow/src/net/sf/okapi/applications/rainbow/pipeline/PipelineWrapper.java b/applications/rainbow/src/net/sf/okapi/applications/rainbow/pipeline/PipelineWrapper.java
index 27aeb5c4b..9cfa2bb7d 100644
--- a/applications/rainbow/src/net/sf/okapi/applications/rainbow/pipeline/PipelineWrapper.jav... | false | true | private Map<String, StepInfo> buildStepList () {
Hashtable<String, StepInfo> map = new Hashtable<String, StepInfo>();
peMapper = new ParametersEditorMapper();
try {
//TODO: Replace by auto-discovery of plugins
IPipelineStep ps = (IPipelineStep)Class.forName(
"net.sf.okapi.steps.common.RawDocumentToFilt... | private Map<String, StepInfo> buildStepList () {
Hashtable<String, StepInfo> map = new Hashtable<String, StepInfo>();
peMapper = new ParametersEditorMapper();
try {
//TODO: Replace by auto-discovery of plugins
IPipelineStep ps = (IPipelineStep)Class.forName(
"net.sf.okapi.steps.common.RawDocumentToFilt... |
diff --git a/src/com/example/t_gallery/FolderList.java b/src/com/example/t_gallery/FolderList.java
index 21207f3..caca3fb 100644
--- a/src/com/example/t_gallery/FolderList.java
+++ b/src/com/example/t_gallery/FolderList.java
@@ -1,527 +1,527 @@
package com.example.t_gallery;
import java.util.ArrayList;
import an... | false | true | private void fillView(int albumPosition, int locate,
int album_max_height, int shiftWidth, int shiftHeight) {
int shiftIconIndex = 2*locate * Config.THUMBNAILS_PER_LINE;
ImageLineGroup firstLine = mGalleryLayouts.get(albumPosition).lines.get(0);
// Fill in the content
for (int i = 0; i < firs... | private void fillView(int albumPosition, int locate,
int album_max_height, int shiftWidth, int shiftHeight) {
int shiftIconIndex = 2*locate * Config.THUMBNAILS_PER_LINE;
ImageLineGroup firstLine = mGalleryLayouts.get(albumPosition).lines.get(0);
// Fill in the content
for (int i = 0; i < firs... |
diff --git a/src/org/fiz/Dispatcher.java b/src/org/fiz/Dispatcher.java
index ce38152..ddeb617 100644
--- a/src/org/fiz/Dispatcher.java
+++ b/src/org/fiz/Dispatcher.java
@@ -1,619 +1,619 @@
/* Copyright (c) 2009 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpos... | true | true | public void service(HttpServletRequest request,
HttpServletResponse response) {
long startTime = System.nanoTime();
UrlMethod method = null;
String methodName = null;
ClientRequest cr = null;
ClientRequest.Type requestType = ClientRequest.Type.NORMAL;
dispatch... | public void service(HttpServletRequest request,
HttpServletResponse response) {
long startTime = System.nanoTime();
UrlMethod method = null;
String methodName = null;
ClientRequest cr = null;
ClientRequest.Type requestType = ClientRequest.Type.NORMAL;
dispatch... |
diff --git a/modules/library/render/src/main/java/org/geotools/renderer/lite/gridcoverage2d/GradientColorMapGenerator.java b/modules/library/render/src/main/java/org/geotools/renderer/lite/gridcoverage2d/GradientColorMapGenerator.java
index 9fe455ccad..dcac4a7f96 100644
--- a/modules/library/render/src/main/java/org/ge... | false | true | public ColorMap generateColorMap(double min, double max) {
final int numEntries = entries.length;
final double range = max - min;
boolean intervals = false;
// Preliminar check on intervals vs ramp
for (int i = 0; i < numEntries - 2; i += 2) {
if (Double.compare(... | public ColorMap generateColorMap(double min, double max) {
final int numEntries = entries.length;
final double range = max - min;
boolean intervals = false;
// Preliminar check on intervals vs ramp
for (int i = 0; i < numEntries - 2; i += 2) {
if (Double.compare(... |
diff --git a/src/com/redhat/ceylon/compiler/ant/Ceylonc.java b/src/com/redhat/ceylon/compiler/ant/Ceylonc.java
index 382dec8ae..e35ea4420 100644
--- a/src/com/redhat/ceylon/compiler/ant/Ceylonc.java
+++ b/src/com/redhat/ceylon/compiler/ant/Ceylonc.java
@@ -1,219 +1,218 @@
/* Based on the javac task from apache-ant-1.7... | false | true | private void compile() {
if (compileList.length == 0)
return;
Commandline cmd = new Commandline();
cmd.setExecutable(compilerExecutable.getAbsolutePath());
cmd.createArgument().setValue("-d");
cmd.createArgument().setValue(destDir.getAbsolutePath());
cmd.... | private void compile() {
if (compileList.length == 0)
return;
Commandline cmd = new Commandline();
cmd.setExecutable(compilerExecutable.getAbsolutePath());
cmd.createArgument().setValue("-d");
cmd.createArgument().setValue(destDir.getAbsolutePath());
cmd.... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java
index cba5d348e..adcbd80a6 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java
+++ ... | true | true | public void rewrite(Gadget gadget, MutableContent content) {
if (gadget.getSpec().getModulePrefs().getFeatures().containsKey("caja") ||
"1".equals(gadget.getContext().getParameter("caja"))) {
final URI retrievedUri = gadget.getContext().getUrl().toJavaUri();
UriCallback cb = new UriCallback()... | public void rewrite(Gadget gadget, MutableContent content) {
if (gadget.getSpec().getModulePrefs().getFeatures().containsKey("caja") ||
"1".equals(gadget.getContext().getParameter("caja"))) {
final URI retrievedUri = gadget.getContext().getUrl().toJavaUri();
UriCallback cb = new UriCallback()... |
diff --git a/sculptor-maven/sculptor-maven-plugin/src/test/java/org/sculptor/maven/plugin/AbstractGeneratorMojoTestCase.java b/sculptor-maven/sculptor-maven-plugin/src/test/java/org/sculptor/maven/plugin/AbstractGeneratorMojoTestCase.java
index dd31bd42..538eeb3d 100644
--- a/sculptor-maven/sculptor-maven-plugin/src/te... | true | true | protected T createMojo(MavenProject project, String goal) throws Exception {
T mojo = super.createMojo(project, goal);
// Set default values on mojo
setVariableValueToObject(mojo, "outletSrcOnceDir",
new File(project.getBasedir(), "src/main/java"));
setVariableValueToObject(mojo, "outletResOnceDir",
n... | protected T createMojo(MavenProject project, String goal) throws Exception {
T mojo = super.createMojo(project, goal);
// Set default values on mojo
setVariableValueToObject(mojo, "outletSrcOnceDir",
new File(project.getBasedir(), "src/main/java"));
setVariableValueToObject(mojo, "outletResOnceDir",
n... |
diff --git a/ij/plugin/Hotkeys.java b/ij/plugin/Hotkeys.java
index d4db811a..1c8017a2 100644
--- a/ij/plugin/Hotkeys.java
+++ b/ij/plugin/Hotkeys.java
@@ -1,126 +1,129 @@
package ij.plugin;
import ij.*;
import ij.gui.*;
import ij.util.*;
import java.awt.*;
import java.io.*;
import java.util.*;
/** Implements ... | true | true | void installHotkey() {
String[] commands = getAllCommands();
GenericDialog gd = new GenericDialog("Create Shortcut");
gd.addChoice("Command:", commands, command);
gd.addStringField("Shortcut:", shortcut, 3);
gd.showDialog();
if (gd.wasCanceled())
return;
command = gd.getNextChoice();
shortcut = gd.g... | void installHotkey() {
String[] commands = getAllCommands();
GenericDialog gd = new GenericDialog("Create Shortcut");
gd.addChoice("Command:", commands, command);
gd.addStringField("Shortcut:", shortcut, 3);
gd.showDialog();
if (gd.wasCanceled())
return;
command = gd.getNextChoice();
shortcut = gd.g... |
diff --git a/src/main/java/org/thomnichols/android/gmarks/ActionReceiver.java b/src/main/java/org/thomnichols/android/gmarks/ActionReceiver.java
index 582ab96..af5c9e1 100644
--- a/src/main/java/org/thomnichols/android/gmarks/ActionReceiver.java
+++ b/src/main/java/org/thomnichols/android/gmarks/ActionReceiver.java
@@ ... | true | true | public void onReceive(Context context, Intent intent) {
Log.d(TAG,"Got intent: " + intent);
if(Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
Intent action = new Intent(context, BackgroundService.class);
action.setAction( Intent.ACTION_RUN );
PendingIntent serviceLauncher = PendingIntent.ge... | public void onReceive(Context context, Intent intent) {
Log.d(TAG,"Got intent: " + intent);
if(Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
Intent action = new Intent(context, BackgroundService.class);
action.setAction( Intent.ACTION_RUN );
PendingIntent serviceLauncher = PendingIntent.ge... |
diff --git a/TTP/src/ttp/constructionheuristics/SimpleConstruction.java b/TTP/src/ttp/constructionheuristics/SimpleConstruction.java
index 7823d25..01314bc 100644
--- a/TTP/src/ttp/constructionheuristics/SimpleConstruction.java
+++ b/TTP/src/ttp/constructionheuristics/SimpleConstruction.java
@@ -1,139 +1,139 @@
packag... | false | true | private int[][] createSchedule() {
int u = upperBound;
int noT = noTeams;
int days = (noTeams - 1) * 2;
if (problemInstance != null) {
u = problemInstance.getU();
noT = problemInstance.getNoTeams();
days = problemInstance.getNoRounds();
}
// neu
int[][] schedule = new int[days][noT];
// ende ... | private int[][] createSchedule() {
int u = upperBound;
int noT = noTeams;
int days = (noTeams - 1) * 2;
if (problemInstance != null) {
u = problemInstance.getU();
noT = problemInstance.getNoTeams();
days = problemInstance.getNoRounds();
}
// neu
int[][] schedule = new int[days][noT];
// ende ... |
diff --git a/code/edu/rpi/phil/legup/newgui/CasePanel.java b/code/edu/rpi/phil/legup/newgui/CasePanel.java
index daea67c..77d502e 100644
--- a/code/edu/rpi/phil/legup/newgui/CasePanel.java
+++ b/code/edu/rpi/phil/legup/newgui/CasePanel.java
@@ -1,372 +1,373 @@
package edu.rpi.phil.legup.newgui;
import java.awt.Flow... | false | true | protected Justification addJustification(int button)
{
Selection selection = Legup.getInstance().getSelections().getFirstSelection();
BoardState cur = selection.getState();
if (cur.getTransitionsFrom().size() > 0)
return null;
if (cur.isModifiable() && Legup.getInstance().getGui().autoGenCaseRules)
r... | protected Justification addJustification(int button)
{
Selection selection = Legup.getInstance().getSelections().getFirstSelection();
BoardState cur = selection.getState();
if (cur.getTransitionsFrom().size() > 0)
return null;
if (cur.isModifiable() && Legup.getInstance().getGui().autoGenCaseRules)
r... |
diff --git a/JavaSource/org/aitools/programd/util/URLTools.java b/JavaSource/org/aitools/programd/util/URLTools.java
index a674ed9..27fd74e 100644
--- a/JavaSource/org/aitools/programd/util/URLTools.java
+++ b/JavaSource/org/aitools/programd/util/URLTools.java
@@ -1,577 +1,577 @@
/*
* This program is free software; ... | true | true | public static URL contextualize(URL context, URL subject)
{
if (context.equals(subject))
{
return subject;
}
if (probablyIsNotFile(context))
{
// Transform the subject into a URI for manipulation.
URI subjectURI = null;
try
... | public static URL contextualize(URL context, URL subject)
{
if (context.equals(subject))
{
return subject;
}
if (probablyIsNotFile(context))
{
// Transform the subject into a URI for manipulation.
URI subjectURI = null;
try
... |
diff --git a/src/main/java/net/worldoftomorrow/noitem/util/Metrics.java b/src/main/java/net/worldoftomorrow/noitem/util/Metrics.java
index 7687561..49212ee 100644
--- a/src/main/java/net/worldoftomorrow/noitem/util/Metrics.java
+++ b/src/main/java/net/worldoftomorrow/noitem/util/Metrics.java
@@ -1,615 +1,615 @@
packag... | false | true | private void postPlugin(final boolean isPing) throws IOException {
// Server software specific section
PluginDescriptionFile description = plugin.getDescription();
String pluginName = description.getName();
boolean onlineMode = Bukkit.getServer().getOnlineMode(); // TRUE if online mo... | private void postPlugin(final boolean isPing) throws IOException {
// Server software specific section
PluginDescriptionFile description = plugin.getDescription();
String pluginName = description.getName();
boolean onlineMode = Bukkit.getServer().getOnlineMode(); // TRUE if online mo... |
diff --git a/src/org/biojava/ontology/Ontology.java b/src/org/biojava/ontology/Ontology.java
index 8920f7fe3..ad03fc077 100644
--- a/src/org/biojava/ontology/Ontology.java
+++ b/src/org/biojava/ontology/Ontology.java
@@ -1,542 +1,542 @@
/*
* BioJava development code
*
* This code may be freely... | true | true | public Triple createTriple(Term subject,
Term object,
Term predicate,
String name,
String description)
throws
AlreadyExistsException,
IllegalArgumentExcepti... | public Triple createTriple(Term subject,
Term object,
Term predicate,
String name,
String description)
throws
AlreadyExistsException,
IllegalArgumentExcepti... |
diff --git a/src/Player.java b/src/Player.java
index bc82130..3f980c5 100644
--- a/src/Player.java
+++ b/src/Player.java
@@ -1,103 +1,103 @@
/**
* Player Class.
* This class is in charge of the Player.
* This class has a reference to the current room that the player is in.
* As well, there is a playerHistory v... | false | true | public void doCommand(Command c){
boolean b = false;
if (c.getCommandWord().equals(CommandWords.UNDO)){
c = playerHistory.undo();
b = true;
} else if (c.getCommandWord().equals(CommandWords.REDO)){
c = playerHistory.redo();
b = true;
}
if(c==null){
return; //TODO tell view about it
}
... | public void doCommand(Command c){
boolean b = false;
if (c.getCommandWord().equals(CommandWords.UNDO)){
c = playerHistory.undo();
b = true;
} else if (c.getCommandWord().equals(CommandWords.REDO)){
c = playerHistory.redo();
b = true;
}
if(c==null){
return; //TODO tell view about it
}
... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ProjectSetImportWizard.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ProjectSetImportWizard.java
index fd28c79d4..cdb07fc33 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/Pr... | true | true | public boolean performFinish() {
// check if the desired working set exists
final String workingSetName = mainPage.getWorkingSetName();
if (workingSetName != null) {
IWorkingSet existingSet = TeamUIPlugin.getPlugin().getWorkbench().getWorkingSetManager().getWorkingSet(workingSetName);
if (existingSet !=... | public boolean performFinish() {
// check if the desired working set exists
final String workingSetName = mainPage.getWorkingSetName();
if (workingSetName != null) {
IWorkingSet existingSet = TeamUIPlugin.getPlugin().getWorkbench().getWorkingSetManager().getWorkingSet(workingSetName);
if (existingSet !=... |
diff --git a/src/main/java/edu/berkeley/grippus/server/Node.java b/src/main/java/edu/berkeley/grippus/server/Node.java
index c5eafd5..5697666 100644
--- a/src/main/java/edu/berkeley/grippus/server/Node.java
+++ b/src/main/java/edu/berkeley/grippus/server/Node.java
@@ -1,638 +1,638 @@
package edu.berkeley.grippus.serve... | true | true | public Pair<Errno, String> map(final String className, DFileSpec toWhat) {
DFile f = getVFS().resolve(toWhat);
final DFileSpec outSpec = new DFileSpec("/mapout");
final DFile dest = getVFS().resolve(outSpec);
if (!dest.exists())
dest.mkdir(new EveryonePermissions());
List<DFile> list = new ArrayList<DFile... | public Pair<Errno, String> map(final String className, DFileSpec toWhat) {
DFile f = getVFS().resolve(toWhat);
final DFileSpec outSpec = new DFileSpec("/mapout");
final DFile dest = getVFS().resolve(outSpec);
if (!dest.exists())
getVFS().mkdir(outSpec, new EveryonePermissions());
List<DFile> list = new Ar... |
diff --git a/extras/injection/src/test/java/org/exoplatform/forum/extras/injection/utils/ExoNameGeneratorTestCase.java b/extras/injection/src/test/java/org/exoplatform/forum/extras/injection/utils/ExoNameGeneratorTestCase.java
index ca3bb269..c04bbce8 100644
--- a/extras/injection/src/test/java/org/exoplatform/forum/ex... | true | true | public void testNameGenerator() throws Exception {
ExoNameGenerator exoNameGenerator = new ExoNameGenerator();
assertTrue(exoNameGenerator.compose(4).length() > 4);
assertTrue(exoNameGenerator.compose(3).length() > 3);
assertTrue(exoNameGenerator.compose(2).length() > 2);
assertTrue(exoNameGenerat... | public void testNameGenerator() throws Exception {
ExoNameGenerator exoNameGenerator = new ExoNameGenerator();
assertTrue(exoNameGenerator.compose(4).length() > 4);
assertTrue(exoNameGenerator.compose(3).length() > 3);
assertTrue(exoNameGenerator.compose(2).length() > 2);
assertTrue(exoNameGenerat... |
diff --git a/src/main/java/com/mojang/minecraft/gui/PauseScreen.java b/src/main/java/com/mojang/minecraft/gui/PauseScreen.java
index 6ac8252..9bd3b6c 100644
--- a/src/main/java/com/mojang/minecraft/gui/PauseScreen.java
+++ b/src/main/java/com/mojang/minecraft/gui/PauseScreen.java
@@ -1,179 +1,180 @@
package com.mojang... | true | true | protected final void onButtonClick(Button var1) {
if (minecraft.session != null) {
if (var1.id == 0) minecraft.setCurrentScreen(new OptionsScreen(this, minecraft.settings));
if (var1.id == 1) minecraft.setCurrentScreen(new SaveLevelScreen(this));
... | protected final void onButtonClick(Button var1) {
if (minecraft.session != null) {
minecraft.networkManager.netHandler.close();
if (var1.id == 0) minecraft.setCurrentScreen(new OptionsScreen(this, minecraft.settings));
if (... |
diff --git a/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/MultiBundleTools.java b/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/MultiBundleTools.java
index 64470f86..b91076f4 100644
--- a/systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/M... | true | true | private static int getDistroBundles(File mdRoot, String pomVersion, Map<Integer, String> bundles, boolean discovery) throws Exception {
File distroDir = new File(mdRoot, "target/cxf-dosgi-ri-multibundle-distribution-" + pomVersion + ".dir");
Properties p = new Properties();
File confDir = ne... | private static int getDistroBundles(File mdRoot, String pomVersion, Map<Integer, String> bundles, boolean discovery) throws Exception {
File distroDir = new File(mdRoot, "target/cxf-dosgi-ri-multibundle-distribution-" + pomVersion);
Properties p = new Properties();
File confDir = new File(di... |
diff --git a/webapp/src/main/java/net/micwin/elysium/entities/replication/SimpleComplexityCalculator.java b/webapp/src/main/java/net/micwin/elysium/entities/replication/SimpleComplexityCalculator.java
index 0ccd958..a01250b 100644
--- a/webapp/src/main/java/net/micwin/elysium/entities/replication/SimpleComplexityCalcul... | true | true | public long calculateComplexity(BluePrint bluePrint) {
long componentCount = 0;
long complexitySum = 0;
for (Utilization utilization : bluePrint.getUtilizations()) {
componentCount += utilization.getCount();
complexitySum += utilization.getAppliance().getBaseComplexity() * utilization.getLevel();
}
... | public long calculateComplexity(BluePrint bluePrint) {
long componentCount = 0;
long complexitySum = 0;
for (Utilization utilization : bluePrint.getUtilizations()) {
componentCount += utilization.getCount();
complexitySum += utilization.getLevel();
}
return Math.round(complexitySum * Math.pow(1.01, ... |
diff --git a/2waySMS/app/common/CodeSandbox.java b/2waySMS/app/common/CodeSandbox.java
index c542efa..bf6adbc 100644
--- a/2waySMS/app/common/CodeSandbox.java
+++ b/2waySMS/app/common/CodeSandbox.java
@@ -1,528 +1,534 @@
package common;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.M... | true | true | private LeadRecord mktoGeocodeLeadPhone(LeadRecord leadRecord,
boolean syncImmediate, String phoneField, String cityField,
String regionField) {
if (leadRecord == null) {
return null;
}
PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineG... | private LeadRecord mktoGeocodeLeadPhone(LeadRecord leadRecord,
boolean syncImmediate, String phoneField, String cityField,
String regionField) {
if (leadRecord == null) {
return null;
}
PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineG... |
diff --git a/stripes/src/net/sourceforge/stripes/format/DefaultFormatterFactory.java b/stripes/src/net/sourceforge/stripes/format/DefaultFormatterFactory.java
index 74394ee9..6f552c0e 100644
--- a/stripes/src/net/sourceforge/stripes/format/DefaultFormatterFactory.java
+++ b/stripes/src/net/sourceforge/stripes/format/De... | true | true | public Formatter getFormatter(Class clazz, Locale locale, String formatType, String formatPattern) {
Formatter formatter = null;
// Figure out if we have a type we can format
if (Date.class.isAssignableFrom(clazz)) {
formatter = new DateFormatter();
formatter.setForm... | public Formatter getFormatter(Class clazz, Locale locale, String formatType, String formatPattern) {
Formatter formatter = null;
// Figure out if we have a type we can format
if (Date.class.isAssignableFrom(clazz)) {
formatter = new DateFormatter();
formatter.setForm... |
diff --git a/webofneeds/won-node/src/main/java/won/node/service/impl/NeedCommunicationServiceImpl.java b/webofneeds/won-node/src/main/java/won/node/service/impl/NeedCommunicationServiceImpl.java
index 598263a71..1ed26903f 100755
--- a/webofneeds/won-node/src/main/java/won/node/service/impl/NeedCommunicationServiceImpl.... | false | true | public URI connectTo(final URI needURI, final URI otherNeedURI, final String message) throws NoSuchNeedException, IllegalMessageForNeedStateException, ConnectionAlreadyExistsException
{
logger.info("CONNECT_TO received for need {} referring to need {} with message {}", new Object[]{needURI, otherNeedURI, messag... | public URI connectTo(final URI needURI, final URI otherNeedURI, final String message) throws NoSuchNeedException, IllegalMessageForNeedStateException, ConnectionAlreadyExistsException
{
logger.info("CONNECT_TO received for need {} referring to need {} with message {}", new Object[]{needURI, otherNeedURI, messag... |
diff --git a/javasvn/src/org/tmatesoft/svn/cli/command/CopyCommand.java b/javasvn/src/org/tmatesoft/svn/cli/command/CopyCommand.java
index 41ff21762..a7990498c 100644
--- a/javasvn/src/org/tmatesoft/svn/cli/command/CopyCommand.java
+++ b/javasvn/src/org/tmatesoft/svn/cli/command/CopyCommand.java
@@ -1,207 +1,213 @@
/*... | false | true | private void runRemote(PrintStream out, PrintStream err) throws SVNException {
if (getCommandLine().getURLCount() != 2) {
throw new SVNException("Please enter SRC and DST URL");
}
String srcURL = getCommandLine().getURL(0);
String destURL = getCommandLine().getURL(1);
... | private void runRemote(PrintStream out, PrintStream err) throws SVNException {
if (getCommandLine().getURLCount() != 2) {
throw new SVNException("Please enter SRC and DST URL");
}
String srcURL = getCommandLine().getURL(0);
String destURL = getCommandLine().getURL(1);
... |
diff --git a/src/main/java/be/Balor/bukkit/AdminCmd/ACHelper.java b/src/main/java/be/Balor/bukkit/AdminCmd/ACHelper.java
index 633785b1..3f8ed072 100644
--- a/src/main/java/be/Balor/bukkit/AdminCmd/ACHelper.java
+++ b/src/main/java/be/Balor/bukkit/AdminCmd/ACHelper.java
@@ -1,1670 +1,1670 @@
package be.Balor.bukkit.Ad... | false | true | private void createTable() throws SQLException {
try {
final Database db = Database.DATABASE;
db.open();
if (!db.checkTable("ac_players")) {
// Mysql
if (db.getType() == DatabaseType.MYSQL) {
// Players
db.createTable("CREATE TABLE IF NOT EXISTS `ac_homes` ("
+ " `name` varchar(64)... | private void createTable() throws SQLException {
try {
final Database db = Database.DATABASE;
db.open();
if (!db.checkTable("ac_players")) {
// Mysql
if (db.getType() == DatabaseType.MYSQL) {
// Players
db.createTable("CREATE TABLE IF NOT EXISTS `ac_homes` ("
+ " `name` varchar(64)... |
diff --git a/src/main/java/com/opentok/api/OpenTokSDK.java b/src/main/java/com/opentok/api/OpenTokSDK.java
index 51ba70e..44571d7 100644
--- a/src/main/java/com/opentok/api/OpenTokSDK.java
+++ b/src/main/java/com/opentok/api/OpenTokSDK.java
@@ -1,177 +1,177 @@
/*!
* OpenTok Java Library
* http://www.tokbox.com/
*... | false | true | public String generate_token(String session_id, String role, Long expire_time, String connection_data) throws OpenTokException {
Long create_time = new Long(System.currentTimeMillis() / 1000).longValue();
StringBuilder data_string_builder = new StringBuilder();
//Build the string
Random random = new Random(... | public String generate_token(String session_id, String role, Long expire_time, String connection_data) throws OpenTokException {
Long create_time = new Long(System.currentTimeMillis() / 1000).longValue();
StringBuilder data_string_builder = new StringBuilder();
//Build the string
Random random = new Random(... |
diff --git a/core/src/test/java/com/datascience/core/stats/QualitySensitivePaymentsTest.java b/core/src/test/java/com/datascience/core/stats/QualitySensitivePaymentsTest.java
index c10b6967..b8ee6be7 100644
--- a/core/src/test/java/com/datascience/core/stats/QualitySensitivePaymentsTest.java
+++ b/core/src/test/java/co... | true | true | public void testSpammerWage() {
Collection<String> categories = Arrays.asList(new String[]{"A", "B"});
Collection<CategoryValue> categoryPriors = Arrays.asList(new CategoryValue("A", 0.5), new CategoryValue("B", 0.5));
CostMatrix<String> costMatrix = new CostMatrix<String>();
costMat... | public void testSpammerWage() {
Collection<String> categories = Arrays.asList(new String[]{"A", "B"});
Collection<CategoryValue> categoryPriors = Arrays.asList(new CategoryValue("A", 0.5), new CategoryValue("B", 0.5));
CostMatrix<String> costMatrix = new CostMatrix<String>();
costMat... |
diff --git a/engines/servicemix-eip/src/main/java/org/apache/servicemix/eip/patterns/AsyncBridge.java b/engines/servicemix-eip/src/main/java/org/apache/servicemix/eip/patterns/AsyncBridge.java
index 6263c280..a1e0b368 100644
--- a/engines/servicemix-eip/src/main/java/org/apache/servicemix/eip/patterns/AsyncBridge.java
... | false | true | public void process(MessageExchange exchange) throws Exception {
// Three exchanges are involved: the first InOut will be called t0,
// the InOnly send will be called t1 and the InOnly received will be called t2
if (exchange.getRole() == MessageExchange.Role.PROVIDER) {
// Step1... | public void process(MessageExchange exchange) throws Exception {
// Three exchanges are involved: the first InOut will be called t0,
// the InOnly send will be called t1 and the InOnly received will be called t2
if (exchange.getRole() == MessageExchange.Role.PROVIDER) {
// Step1... |
diff --git a/src/com/pokebros/android/pokemononline/battle/SpectatingBattle.java b/src/com/pokebros/android/pokemononline/battle/SpectatingBattle.java
index 975e4c56..0f5164db 100644
--- a/src/com/pokebros/android/pokemononline/battle/SpectatingBattle.java
+++ b/src/com/pokebros/android/pokemononline/battle/SpectatingB... | false | true | public void dealWithCommand(BattleCommand bc, byte player, Bais msg) {
switch(bc) {
case SendOut: {
boolean silent = msg.readBool();
byte fromSpot = msg.readByte();
ShallowBattlePoke tempPoke = pokes[player][0];
pokes[player][0] = pokes[player][fromSpot];
pokes[player][fromSpot] = tempPoke;
... | public void dealWithCommand(BattleCommand bc, byte player, Bais msg) {
switch(bc) {
case SendOut: {
boolean silent = msg.readBool();
byte fromSpot = msg.readByte();
ShallowBattlePoke tempPoke = pokes[player][0];
pokes[player][0] = pokes[player][fromSpot];
pokes[player][fromSpot] = tempPoke;
... |
diff --git a/deegree-services/src/main/java/org/deegree/services/wms/dynamic/ShapeUpdater.java b/deegree-services/src/main/java/org/deegree/services/wms/dynamic/ShapeUpdater.java
index 42e36ea915..61dce46257 100644
--- a/deegree-services/src/main/java/org/deegree/services/wms/dynamic/ShapeUpdater.java
+++ b/deegree-ser... | false | true | private boolean recurse( File dir, Layer parent ) {
boolean changed = false;
File[] fs = dir.listFiles();
if ( fs != null ) {
for ( File f : fs ) {
String nm = f.getName();
if ( nm.equals( ".svn" ) ) {
continue;
... | private boolean recurse( File dir, Layer parent ) {
boolean changed = false;
File[] fs = dir.listFiles();
if ( fs != null ) {
for ( File f : fs ) {
String nm = f.getName();
if ( nm.equals( ".svn" ) ) {
continue;
... |
diff --git a/src/edu/common/dynamicextensions/entitymanager/EntityGroupManager.java b/src/edu/common/dynamicextensions/entitymanager/EntityGroupManager.java
index df1fa4384..97484681a 100644
--- a/src/edu/common/dynamicextensions/entitymanager/EntityGroupManager.java
+++ b/src/edu/common/dynamicextensions/entitymanager... | true | true | public void checkForDuplicateEntityGroupName(EntityGroupInterface entityGroup)
throws DynamicExtensionsApplicationException, DynamicExtensionsSystemException
{
JDBCDAO jdbcDao = null;
try
{
jdbcDao = DynamicExtensionsUtility.getJDBCDAO();
String query = "select count(*) from dyextn_abstract_metadata d ... | public void checkForDuplicateEntityGroupName(EntityGroupInterface entityGroup)
throws DynamicExtensionsApplicationException, DynamicExtensionsSystemException
{
JDBCDAO jdbcDao = null;
try
{
jdbcDao = DynamicExtensionsUtility.getJDBCDAO();
String query = "select count(*) from dyextn_abstract_metadata d ... |
diff --git a/src/com/redhat/ceylon/compiler/loader/model/LazyModule.java b/src/com/redhat/ceylon/compiler/loader/model/LazyModule.java
index ef55eeb9c..bf05fb7e5 100644
--- a/src/com/redhat/ceylon/compiler/loader/model/LazyModule.java
+++ b/src/com/redhat/ceylon/compiler/loader/model/LazyModule.java
@@ -1,214 +1,214 @@... | true | true | public Package getPackage(String name) {
// try here first
Package pkg = null;
// unless we're the default module, in which case we have to check this at the end,
// since every package can be part of the default module
boolean defaultModule = isDefault();
if... | public Package getPackage(String name) {
// try here first
Package pkg = null;
// unless we're the default module, in which case we have to check this at the end,
// since every package can be part of the default module
boolean defaultModule = isDefault();
if... |
diff --git a/openejb/server/openejb-client/src/test/java/org/apache/openejb/client/RandomConnectionStrategyIteratorTest.java b/openejb/server/openejb-client/src/test/java/org/apache/openejb/client/RandomConnectionStrategyIteratorTest.java
index 586c1f0ee..cbd9b9654 100644
--- a/openejb/server/openejb-client/src/test/ja... | true | true | public void test() throws Exception {
final URI[] uris = uris(
"one://localhost:1243",
"two://localhost:1243",
"three://localhost:1243",
"four://localhost:1243");
ClusterMetaData cluster = new ClusterMetaData(System.currentTimeMillis()... | public void test() throws Exception {
final URI[] uris = uris(
"one://localhost:1243",
"two://localhost:1243",
"three://localhost:1243",
"four://localhost:1243");
ClusterMetaData cluster = new ClusterMetaData(System.currentTimeMillis()... |
diff --git a/bundles/org.eclipse.rap.design.example/src/org/eclipse/rap/internal/design/example/stacks/ViewStackPresentation.java b/bundles/org.eclipse.rap.design.example/src/org/eclipse/rap/internal/design/example/stacks/ViewStackPresentation.java
index dd6129280..9a777a6ba 100644
--- a/bundles/org.eclipse.rap.design.... | false | true | private void createPartButton( final IPresentablePart part ) {
Composite buttonArea = new Composite( tabBg, SWT.NONE );
buttonArea.setData( WidgetUtil.CUSTOM_VARIANT,
"inactiveButton" );
buttonArea.setLayout( new FormLayout() );
final Button partButton = new Butto... | private void createPartButton( final IPresentablePart part ) {
Composite buttonArea = new Composite( tabBg, SWT.NONE );
buttonArea.setData( WidgetUtil.CUSTOM_VARIANT,
"inactiveButton" );
buttonArea.setLayout( new FormLayout() );
final Button partButton = new Butto... |
diff --git a/projects/com.dc2f.backend.gwt/src/main/java/com/dc2f/backend/gwt/server/DC2FAccessManager.java b/projects/com.dc2f.backend.gwt/src/main/java/com/dc2f/backend/gwt/server/DC2FAccessManager.java
index bf173a7..8b5911f 100644
--- a/projects/com.dc2f.backend.gwt/src/main/java/com/dc2f/backend/gwt/server/DC2FAcc... | true | true | public static BranchAccess getAccess() {
if (readAccess == null) {
//File crdir = new File(System.getProperty("crdir", "/Users/bigbear3001/Documents/dc2f/design/example"));
File crdir = new File(System.getProperty("crdir", "/Users/herbert/dev/dc2f/repository/design/example"));
//ContentRepository cr = Conte... | public static BranchAccess getAccess() {
if (readAccess == null) {
File crdir = null;
String givenCrDir = System.getProperty("crdir");
if (givenCrDir == null) {
crdir = new File("../../../../design/src/main/resources/example");
if (!crdir.exists()) {
throw new IllegalArgumentException("Unable t... |
diff --git a/src/test/java/org/mybatis/guice/AbstractGuiceTestRunner.java b/src/test/java/org/mybatis/guice/AbstractGuiceTestRunner.java
index 0607096..2c9193e 100644
--- a/src/test/java/org/mybatis/guice/AbstractGuiceTestRunner.java
+++ b/src/test/java/org/mybatis/guice/AbstractGuiceTestRunner.java
@@ -1,110 +1,111 @@... | true | true | public AbstractGuiceTestRunner(Class<?> klass) throws InitializationError {
super(klass);
try {
final Contact contact = new Contact();
contact.setFirstName("John");
contact.setLastName("Doe");
contact.setCreated(new CustomType(currentTimeMillis()));
... | public AbstractGuiceTestRunner(Class<?> klass) throws InitializationError {
super(klass);
try {
final Contact contact = new Contact();
contact.setId(1);
contact.setFirstName("John");
contact.setLastName("Doe");
contact.setCreated(new Custo... |
diff --git a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java
index 28dc3ab..fe3c022 100644
--- a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java
+++ b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java
@@ -1,2... | false | true | private void initComponents() {
jPanel8 = new javax.swing.JPanel();
mainPanel = new javax.swing.JPanel();
jPanel7 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jPanel15... | private void initComponents() {
jPanel8 = new javax.swing.JPanel();
mainPanel = new javax.swing.JPanel();
jPanel7 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jPanel15... |
diff --git a/src/de/schildbach/pte/AbstractHafasProvider.java b/src/de/schildbach/pte/AbstractHafasProvider.java
index 2283e0f..0080103 100644
--- a/src/de/schildbach/pte/AbstractHafasProvider.java
+++ b/src/de/schildbach/pte/AbstractHafasProvider.java
@@ -1,942 +1,941 @@
/*
* Copyright 2010 the original author or a... | false | true | private QueryConnectionsResult queryConnections(final String request, final Location from, final Location via, final Location to)
throws IOException
{
// System.out.println(request);
// ParserUtils.printXml(ParserUtils.scrape(apiUri, true, wrap(request), null, false));
final DateFormat DATE_FORMAT = new Sim... | private QueryConnectionsResult queryConnections(final String request, final Location from, final Location via, final Location to)
throws IOException
{
// System.out.println(request);
// ParserUtils.printXml(ParserUtils.scrape(apiUri, true, wrap(request), null, false));
final DateFormat DATE_FORMAT = new Sim... |
diff --git a/loci/visbio/overlays/OverlayTransform.java b/loci/visbio/overlays/OverlayTransform.java
index 64c9c42..d9964bd 100644
--- a/loci/visbio/overlays/OverlayTransform.java
+++ b/loci/visbio/overlays/OverlayTransform.java
@@ -1,819 +1,819 @@
//
// OverlayTransform.java
//
/*
VisBio application for visuali... | false | true | public String distributeObjects(int[] pos) {
int ndx = MathUtil.positionToRaster(lengths, pos);
if (ndx < 0 || ndx >= overlays.length) {
return "Invalid dimensional position.";
}
// grab overlay from the clipboard
int size = clipboard.size();
if (size == 0) {
return "You must firs... | public String distributeObjects(int[] pos) {
int ndx = MathUtil.positionToRaster(lengths, pos);
if (ndx < 0 || ndx >= overlays.length) {
return "Invalid dimensional position.";
}
// grab overlay from the clipboard
int size = clipboard.size();
if (size == 0) {
return "You must firs... |
diff --git a/war/src/main/java/com/tommytony/war/Team.java b/war/src/main/java/com/tommytony/war/Team.java
index e2d3807..f0481a3 100644
--- a/war/src/main/java/com/tommytony/war/Team.java
+++ b/war/src/main/java/com/tommytony/war/Team.java
@@ -1,749 +1,750 @@
package com.tommytony.war;
import java.io.File;
import... | true | true | public void initializeTeamSpawn() {
// make air (old two-high above floor)
Volume airGap = new Volume("airgap", this.warzone.getWorld());
airGap.setCornerOne(new BlockInfo(
this.spawnVolume.getCornerOne().getX(),
this.spawnVolume.getCornerOne().getY() + 1,
this.spawnVolume.getCornerOne().getZ(),
... | public void initializeTeamSpawn() {
// make air (old two-high above floor)
Volume airGap = new Volume("airgap", this.warzone.getWorld());
airGap.setCornerOne(new BlockInfo(
this.spawnVolume.getCornerOne().getX(),
this.spawnVolume.getCornerOne().getY() + 1,
this.spawnVolume.getCornerOne().getZ(),
... |
diff --git a/MasterServer/src/application/commands/GetMessageIDsCommand.java b/MasterServer/src/application/commands/GetMessageIDsCommand.java
index f00b687..1774537 100644
--- a/MasterServer/src/application/commands/GetMessageIDsCommand.java
+++ b/MasterServer/src/application/commands/GetMessageIDsCommand.java
@@ -1,6... | true | true | public void execute(HttpServletRequest request, HttpServletResponse response) throws MapperException, ParameterException, UnrecognizedUserException, SQLException, IOException {
String stringLongitude;
String stringLatitude;
String stringSpeed;
String sort = "";
float speed = 0;
double longitude;
do... | public void execute(HttpServletRequest request, HttpServletResponse response) throws MapperException, ParameterException, UnrecognizedUserException, SQLException, IOException {
String stringLongitude;
String stringLatitude;
String stringSpeed;
String sort = "";
float speed = 0;
double longitude;
do... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/VideoSharingAction.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/VideoSharingAction.java
index ad17690c7..cb0e161f9 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/VideoSharingAction.java
+++ b/de.fu_berlin.inf... | true | true | public void run() {
Utils.runSafeAsync(log, new Runnable() {
public void run() {
List<User> participants = SelectionRetrieverFactory
.getSelectionRetriever(User.class).getSelection();
if (participants.size() == 1) {
VideoSha... | public void run() {
Utils.runSafeSWTAsync(log, new Runnable() {
public void run() {
List<User> participants = SelectionRetrieverFactory
.getSelectionRetriever(User.class).getSelection();
if (participants.size() == 1) {
Video... |
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/action/PushAction.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/action/PushAction.java
index 7192cae0..02e24e77 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/action/PushAction.java
+++... | false | true | protected SynchronizeModelOperation getSubscriberOperation(
ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
final int timeout = Activator.getDefault().getPreferenceStore()
.getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT);
return new SynchronizeModelOperation(configuration, elements)... | protected SynchronizeModelOperation getSubscriberOperation(
ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
final int timeout = Activator.getDefault().getPreferenceStore()
.getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT);
return new SynchronizeModelOperation(configuration, elements)... |
diff --git a/library/src/main/java/com/github/championsdev/champions/library/event/EventManager.java b/library/src/main/java/com/github/championsdev/champions/library/event/EventManager.java
index aeaf426..c9d7254 100644
--- a/library/src/main/java/com/github/championsdev/champions/library/event/EventManager.java
+++ b... | true | true | public static synchronized void callEvent(ChampionsEvent event) {
try {
Class clazz = event.getClass();
if(methods.containsKey(clazz)) {
ArrayList<Method> lowestPriority = new ArrayList<>();
ArrayList<Method> lowPriority = new ArrayList<>();
... | public static synchronized void callEvent(ChampionsEvent event) {
try {
Class clazz = event.getClass();
if(methods.containsKey(clazz)) {
ArrayList<Method> lowestPriority = new ArrayList<>();
ArrayList<Method> lowPriority = new ArrayList<>();
... |
diff --git a/src/com/itmill/toolkit/tests/TableSelectTest.java b/src/com/itmill/toolkit/tests/TableSelectTest.java
index 6e70b3b41..c00b2bdce 100644
--- a/src/com/itmill/toolkit/tests/TableSelectTest.java
+++ b/src/com/itmill/toolkit/tests/TableSelectTest.java
@@ -1,117 +1,119 @@
package com.itmill.toolkit.tests;
i... | false | true | public TableSelectTest() {
OrderedLayout main = new OrderedLayout();
setCompositionRoot(main);
main.addComponent(new Label("Hello World!"));
Table t;
t = new Table("single nullsel");
main.addComponent(t);
t(t);
t.setMultiSelect(false);
t.setNullSelectionAllowed(true);
t.addListener(this);
t = n... | public TableSelectTest() {
OrderedLayout main = new OrderedLayout();
setCompositionRoot(main);
main.addComponent(new Label("Hello World!"));
Table t;
t = new Table("single nullsel");
main.addComponent(t);
t(t);
t.setMultiSelect(false);
t.setNullSelectionAllowed(true);
t.addListener(this);
t = n... |
diff --git a/plugin/src/main/java/com/quartercode/quarterbukkit/api/exception/ExceptionHandler.java b/plugin/src/main/java/com/quartercode/quarterbukkit/api/exception/ExceptionHandler.java
index ef200c6..2b1f725 100644
--- a/plugin/src/main/java/com/quartercode/quarterbukkit/api/exception/ExceptionHandler.java
+++ b/pl... | false | true | private static void call(GameException exception) {
HandlerList handlers = exception.getHandlers();
RegisteredListener[] listeners = handlers.getRegisteredListeners();
for (RegisteredListener registration : listeners) {
if (!registration.getPlugin().isEnabled() || !registration... | private static void call(GameException exception) {
HandlerList handlers = exception.getHandlers();
RegisteredListener[] listeners = handlers.getRegisteredListeners();
for (RegisteredListener registration : listeners) {
if (!registration.getPlugin().isEnabled()) {
... |
diff --git a/ItineRennes/src/fr/itinerennes/ui/activity/MapActivity.java b/ItineRennes/src/fr/itinerennes/ui/activity/MapActivity.java
index d53acb0..bd62b28 100644
--- a/ItineRennes/src/fr/itinerennes/ui/activity/MapActivity.java
+++ b/ItineRennes/src/fr/itinerennes/ui/activity/MapActivity.java
@@ -1,448 +1,453 @@
pa... | true | true | protected final Dialog onCreateDialog(final int id) {
AlertDialog dialog;
switch (id) {
case Dialogs.SELECT_LAYERS:
final HashMap<String, String> markerLabels = map.getMarkerOverlay()
.getMarkerTypesLabel();
final String[] options = new String[ma... | protected final Dialog onCreateDialog(final int id) {
AlertDialog dialog;
switch (id) {
case Dialogs.SELECT_LAYERS:
final HashMap<String, String> markerLabels = map.getMarkerOverlay()
.getMarkerTypesLabel();
final String[] options = new String[ma... |
diff --git a/src/main/java/org/mrpdaemon/sec/encfs/EncFSConfigWriter.java b/src/main/java/org/mrpdaemon/sec/encfs/EncFSConfigWriter.java
index f8f4584..b944e68 100644
--- a/src/main/java/org/mrpdaemon/sec/encfs/EncFSConfigWriter.java
+++ b/src/main/java/org/mrpdaemon/sec/encfs/EncFSConfigWriter.java
@@ -1,163 +1,164 @@... | true | true | private static String createConfigFileContents(EncFSConfig config) {
// XXX: This implementation is pretty horrible, but it works :)
String result = "";
result += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
result += "<!DOCTYPE boost_serialization>\n";
result += "<boost_serialization ... | private static String createConfigFileContents(EncFSConfig config) {
// XXX: This implementation is pretty horrible, but it works :)
String result = "";
result += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
result += "<!DOCTYPE boost_serialization>\n";
result += "<boost_serialization ... |
diff --git a/core/src/main/java/io/undertow/io/DefaultIoCallback.java b/core/src/main/java/io/undertow/io/DefaultIoCallback.java
index ac44e7810..3fac28098 100644
--- a/core/src/main/java/io/undertow/io/DefaultIoCallback.java
+++ b/core/src/main/java/io/undertow/io/DefaultIoCallback.java
@@ -1,53 +1,45 @@
package io.u... | false | true | public void onComplete(final HttpServerExchange exchange, final Sender sender) {
sender.close(new IoCallback() {
@Override
public void onComplete(final HttpServerExchange exchange, final Sender sender) {
try {
sender.close();
} fina... | public void onComplete(final HttpServerExchange exchange, final Sender sender) {
sender.close(new IoCallback() {
@Override
public void onComplete(final HttpServerExchange exchange, final Sender sender) {
exchange.endExchange();
}
@Override
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.