diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/org/glydar/network/GlydarServerHandler.java b/src/org/glydar/network/GlydarServerHandler.java
index 7003991..a702acb 100644
--- a/src/org/glydar/network/GlydarServerHandler.java
+++ b/src/org/glydar/network/GlydarServerHandler.java
@@ -1,44 +1,44 @@
package org.glydar.network;
import org.glydar.Gly... | true | true | protected void messageReceived(ChannelHandlerContext ctx, Packet msg) throws Exception
{
GlydarClient client = ctx.attr(GlydarServerInitializer.getClientAttrbKey()).get();
if (client == null)
{
ctx.channel().closeFuture().sync();
return;
}
System.out.println("Packet id: " + msg.ge... | protected void messageReceived(ChannelHandlerContext ctx, Packet msg) throws Exception
{
GlydarClient client = ctx.attr(GlydarServerInitializer.getClientAttrbKey()).get();
if (client == null)
{
ctx.close().sync();
return;
}
System.out.println("Packet id: " + msg.getId());
for... |
diff --git a/loci/plugins/Importer.java b/loci/plugins/Importer.java
index 2171d6366..e1ab8bb68 100644
--- a/loci/plugins/Importer.java
+++ b/loci/plugins/Importer.java
@@ -1,444 +1,452 @@
//
// Importer.java
//
/*
LOCI Plugins for ImageJ: a collection of ImageJ plugins including the 4D
Data Browser, OME Plugin... | true | true | public void run(String arg) {
// load preferences from IJ_Prefs.txt
mergeChannels = Prefs.get("bioformats.mergeChannels", true);
splitWindows = Prefs.get("bioformats.splitWindows", false);
showMetadata = Prefs.get("bioformats.showMetadata", false);
stitchFiles = Prefs.get("bioformats.stitchFiles",... | public void run(String arg) {
// load preferences from IJ_Prefs.txt
mergeChannels = Prefs.get("bioformats.mergeChannels", true);
splitWindows = Prefs.get("bioformats.splitWindows", false);
showMetadata = Prefs.get("bioformats.showMetadata", false);
stitchFiles = Prefs.get("bioformats.stitchFiles",... |
diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java
index 63fcb8242..a55b273f3 100644
--- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java
+++ b/f... | true | true | public static void main(String[] args) throws MalformedURLException,
CatalogException, RepositoryManagerException, URISyntaxException {
String addProductTypeOperation = "--addProductType --typeName <name> --typeDesc <description> --repository <path> --versionClass <classname of versioning impl>... | public static void main(String[] args) throws MalformedURLException,
CatalogException, RepositoryManagerException, URISyntaxException {
String addProductTypeOperation = "--addProductType --typeName <name> --typeDesc <description> --repository <path> --versionClass <classname of versioning impl>... |
diff --git a/src/com/android/settings/AutoBrightnessCustomizeDialog.java b/src/com/android/settings/AutoBrightnessCustomizeDialog.java
index cb2e6cd3d..a36789c8c 100644
--- a/src/com/android/settings/AutoBrightnessCustomizeDialog.java
+++ b/src/com/android/settings/AutoBrightnessCustomizeDialog.java
@@ -1,548 +1,548 @@... | false | true | public View getView(int position, View convertView, ViewGroup parent) {
final Holder holder;
if (convertView == null) {
convertView = getLayoutInflater().inflate(
R.layout.auto_brightness_list_item, parent, false);
holder = new Hol... | public View getView(int position, View convertView, ViewGroup parent) {
final Holder holder;
if (convertView == null) {
convertView = getLayoutInflater().inflate(
R.layout.auto_brightness_list_item, parent, false);
holder = new Hol... |
diff --git a/tests/com/splunk/InputTest.java b/tests/com/splunk/InputTest.java
index 0fdb1e6..570f9ae 100644
--- a/tests/com/splunk/InputTest.java
+++ b/tests/com/splunk/InputTest.java
@@ -1,170 +1,173 @@
/*
* Copyright 2011 Splunk, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"): you may... | false | true | private void touchSpecificInput(Input input) {
InputKind inputKind = input.getKind();
switch (inputKind) {
case Monitor:
MonitorInput monitorInput = (MonitorInput) input;
monitorInput.getFileCount();
monitorInput.getHost();
... | private void touchSpecificInput(Input input) {
InputKind inputKind = input.getKind();
switch (inputKind) {
case Monitor:
MonitorInput monitorInput = (MonitorInput) input;
monitorInput.getFileCount();
monitorInput.getHost();
... |
diff --git a/src/com/dmdirc/commandparser/commands/global/AliasCommand.java b/src/com/dmdirc/commandparser/commands/global/AliasCommand.java
index 4e9192414..bcdd0900e 100644
--- a/src/com/dmdirc/commandparser/commands/global/AliasCommand.java
+++ b/src/com/dmdirc/commandparser/commands/global/AliasCommand.java
@@ -1,1... | false | true | public void execute(final InputWindow origin, final boolean isSilent,
final CommandArguments args) {
if (args.getArguments().length < 2) {
showUsage(origin, isSilent, "alias", "[--remove] <name> [command]");
return;
}
if (args.getArguments()[0... | public void execute(final InputWindow origin, final boolean isSilent,
final CommandArguments args) {
if (args.getArguments().length < 2) {
showUsage(origin, isSilent, "alias", "[--remove] <name> [command]");
return;
}
if (args.getArguments()[0... |
diff --git a/src/com/android/deskclock/AlarmInitReceiver.java b/src/com/android/deskclock/AlarmInitReceiver.java
index 6c38b80..a33d53a 100644
--- a/src/com/android/deskclock/AlarmInitReceiver.java
+++ b/src/com/android/deskclock/AlarmInitReceiver.java
@@ -1,53 +1,53 @@
/*
* Copyright (C) 2007 The Android Open Sourc... | false | true | public void onReceive(final Context context, Intent intent) {
final String action = intent.getAction();
if (Log.LOGV) Log.v("AlarmInitReceiver" + action);
final PendingResult result = goAsync();
final WakeLock wl = AlarmAlertWakeLock.createPartialWakeLock(context);
wl.acquir... | public void onReceive(final Context context, Intent intent) {
final String action = intent.getAction();
if (Log.LOGV) Log.v("AlarmInitReceiver" + action);
final PendingResult result = goAsync();
final WakeLock wl = AlarmAlertWakeLock.createPartialWakeLock(context);
wl.acquir... |
diff --git a/RapidFTR-Blackberry/src/com/rapidftr/screens/ViewChildScreen.java b/RapidFTR-Blackberry/src/com/rapidftr/screens/ViewChildScreen.java
index 0aaa2bc..0792748 100755
--- a/RapidFTR-Blackberry/src/com/rapidftr/screens/ViewChildScreen.java
+++ b/RapidFTR-Blackberry/src/com/rapidftr/screens/ViewChildScreen.java... | false | true | private void renderChildFields(Child child) {
//updateChildFieldsWithLatestForms(child);
Hashtable data = child.getKeyMap();
HorizontalFieldManager hmanager = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLLBAR);
renderBitmap(data, hmanager);
hmanager.add(new BoldRichTextField(" " + data.get(new Strin... | private void renderChildFields(Child child) {
//updateChildFieldsWithLatestForms(child);
Hashtable data = child.getKeyMap();
HorizontalFieldManager hmanager = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLLBAR);
renderBitmap(data, hmanager);
hmanager.add(new BoldRichTextField(" " + data.get(new Strin... |
diff --git a/core/src/main/java/org/neociclo/odetteftp/netty/OdetteFtpPipelineFactory.java b/core/src/main/java/org/neociclo/odetteftp/netty/OdetteFtpPipelineFactory.java
index b8c384b..34b1158 100644
--- a/core/src/main/java/org/neociclo/odetteftp/netty/OdetteFtpPipelineFactory.java
+++ b/core/src/main/java/org/neocic... | false | true | public ChannelPipeline getPipeline() throws Exception {
final ChannelPipeline p = pipeline();
if (sslHandlerFactory != null) {
final SslHandler sslHandler = sslHandlerFactory.createSslHandler();
if (entityType == EntityType.INITIATOR) {
p.addLast("sslHandshaker... | public ChannelPipeline getPipeline() throws Exception {
final ChannelPipeline p = pipeline();
if (sslHandlerFactory != null) {
final SslHandler sslHandler = sslHandlerFactory.createSslHandler();
if (sslHandler != null && entityType == EntityType.INITIATOR) {
p.... |
diff --git a/Calculadora-de-Tributos-PJ-Test/src/br/com/suelengc/calctributospj/model/InvoiceTest.java b/Calculadora-de-Tributos-PJ-Test/src/br/com/suelengc/calctributospj/model/InvoiceTest.java
index 26fb917..6a92738 100644
--- a/Calculadora-de-Tributos-PJ-Test/src/br/com/suelengc/calctributospj/model/InvoiceTest.java... | true | true | public void testCreateANewInvoice() {
//Defining gross value
double grossValue = 6000;
//Defining IRPJ percentage
PercentualIRPJ percIRPJ = PercentualIRPJ.DOIS_PONTO_QUATRO;
//Defining Taxation type
Tributo tax = new LucroPresumido(percIRPJ);
//Create a new invoice
NotaFiscal invoice = new Not... | public void testCreateANewInvoice() {
//Defining gross value
double grossValue = 6000;
//Defining IRPJ percentage
PercentualIRPJ percIRPJ = PercentualIRPJ.DOIS_PONTO_QUATRO;
//Defining Taxation type
Tributo tax = new LucroPresumido(percIRPJ, 3);
//Create a new invoice
NotaFiscal invoice = new ... |
diff --git a/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/mow/core/api/wiki/AttachmentImpl.java b/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/mow/core/api/wiki/AttachmentImpl.java
index 1c34c00ae..7cc4dad30 100644
--- a/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/... | false | true | public String getDownloadURL() {
StringBuilder sb = new StringBuilder();
String mimeType = getContentResource().getMimeType();
if (mimeType != null && mimeType.startsWith("image/")) {
PageImpl page = this.getParentPage();
Wiki wiki = page.getWiki();
String wikiType = wiki.getType();
... | public String getDownloadURL() {
StringBuilder sb = new StringBuilder();
String mimeType = getContentResource().getMimeType();
PageImpl page = this.getParentPage();
Wiki wiki = page.getWiki();
if (mimeType != null && mimeType.startsWith("image/") && wiki != null) {
// Build REST url to view ... |
diff --git a/gnu/testlet/java/lang/Character/unicode.java b/gnu/testlet/java/lang/Character/unicode.java
index ab5a6d08..f38a53d7 100644
--- a/gnu/testlet/java/lang/Character/unicode.java
+++ b/gnu/testlet/java/lang/Character/unicode.java
@@ -1,679 +1,679 @@
// Tags: JDK1.1
// Uses: CharInfo
package gnu.testlet.ja... | true | true | public void performTests()
{
for ( int x =0; x <= 0xffff; x++ )
{
// isLowerCase
char i = (char)x;
// NOTE: JLS doesn't say anything about `Ll'
// category. And Unicode 2.1.8 has some
// characters which might be considered
// lowercase by all the other rules, but which
// are not marked Ll --... | public void performTests()
{
for ( int x =0; x <= 0xffff; x++ )
{
// isLowerCase
char i = (char)x;
// NOTE: JLS doesn't say anything about `Ll'
// category. And Unicode 2.1.8 has some
// characters which might be considered
// lowercase by all the other rules, but which
// are not marked Ll --... |
diff --git a/src/com/android/settings/TextToSpeechSettings.java b/src/com/android/settings/TextToSpeechSettings.java
index 5366bd025..d6e11d7f4 100644
--- a/src/com/android/settings/TextToSpeechSettings.java
+++ b/src/com/android/settings/TextToSpeechSettings.java
@@ -1,721 +1,720 @@
/*
* Copyright (C) 2009 The Andr... | false | true | protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == VOICE_DATA_INTEGRITY_CHECK) {
if (data == null){
// The CHECK_TTS_DATA activity for the plugin did not run properly;
// disable the preview and install controls and ... | protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == VOICE_DATA_INTEGRITY_CHECK) {
if (data == null){
// The CHECK_TTS_DATA activity for the plugin did not run properly;
// disable the preview and install controls and ... |
diff --git a/src/ogo/spec/game/graphics/view/CreatureView.java b/src/ogo/spec/game/graphics/view/CreatureView.java
index f71eaed..4abb8f0 100644
--- a/src/ogo/spec/game/graphics/view/CreatureView.java
+++ b/src/ogo/spec/game/graphics/view/CreatureView.java
@@ -1,67 +1,67 @@
package ogo.spec.game.graphics.view;
impo... | true | true | public Vector getCurrentLocation() {
final Tile currentTile = creature.getPath().getCurrentTile();
if (previousLocation == null) {
return new Vector(currentTile.getX() + 0.5, currentTile.getY() + 0.5, 0);
} else {
final double scalar = unit * (timer.getTime() - t0);
... | public Vector getCurrentLocation() {
final Tile currentTile = creature.getPath().getCurrentTile();
if (previousLocation == null) {
return new Vector(currentTile.getX(), currentTile.getY(), 0);
} else {
final double scalar = unit * (timer.getTime() - t0);
i... |
diff --git a/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java b/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java
index 726af61d..e0f93934 100644
--- a/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/RepositoriesPanel.java
@@ -1,557... | true | true | public RepositoriesPanel(String wicketId, final boolean showAdmin, final boolean showManagement,
List<RepositoryModel> models, boolean enableLinks,
final Map<AccessRestrictionType, String> accessRestrictionTranslations) {
super(wicketId);
final boolean linksActive = enableLinks;
final boolean showSize = G... | public RepositoriesPanel(String wicketId, final boolean showAdmin, final boolean showManagement,
List<RepositoryModel> models, boolean enableLinks,
final Map<AccessRestrictionType, String> accessRestrictionTranslations) {
super(wicketId);
final boolean linksActive = enableLinks;
final boolean showSize = G... |
diff --git a/trunk/activities-endpoint/src/test/java/eu/elderspaces/activities/services/ActivitiesServiceTestCase.java b/trunk/activities-endpoint/src/test/java/eu/elderspaces/activities/services/ActivitiesServiceTestCase.java
index 514f31a..526d8cd 100644
--- a/trunk/activities-endpoint/src/test/java/eu/elderspaces/ac... | true | true | public void givenOneActivityShouldGetOKStatus() throws CybionHttpException,
JsonGenerationException, JsonMappingException, IOException {
final String url = super.base_uri + ActivitiesEndpoint.ACTIVITY
+ ActivitiesEndpoint.STORE_ACTIVITY;
final Map<String, St... | public void givenOneActivityShouldGetOKStatus() throws CybionHttpException,
JsonGenerationException, JsonMappingException, IOException {
final String url = super.base_uri + ActivitiesEndpoint.ACTIVITY
+ ActivitiesEndpoint.STORE_ACTIVITY;
final Map<String, St... |
diff --git a/org.eclipse.vjet.core.jstojava/src/org/eclipse/vjet/dsf/jstojava/parser/comments/VjCommentUtil.java b/org.eclipse.vjet.core.jstojava/src/org/eclipse/vjet/dsf/jstojava/parser/comments/VjCommentUtil.java
index 3a4e66a9..6832c7e6 100644
--- a/org.eclipse.vjet.core.jstojava/src/org/eclipse/vjet/dsf/jstojava/pa... | false | true | private static boolean isHTMLTag(String comment) {
int startLessThan = comment.indexOf('<');
int endGreaterThan = comment.indexOf('>');
int semiColon = comment.indexOf(';');
if(semiColon==-1){
semiColon = comment.length();
}
if(semiColon >-1 && semiColon<endGreaterThan){
return false;
}
int secon... | private static boolean isHTMLTag(String comment) {
int startLessThan = comment.indexOf('<');
int endGreaterThan = comment.indexOf('>');
int semiColon = comment.indexOf(';');
if(semiColon==-1){
semiColon = comment.length();
}
if(semiColon >-1 && semiColon<endGreaterThan){
return false;
}
int secon... |
diff --git a/src/core/src/main/java/org/geogit/remote/HttpRemoteRepo.java b/src/core/src/main/java/org/geogit/remote/HttpRemoteRepo.java
index c60b7031..9dae14b8 100644
--- a/src/core/src/main/java/org/geogit/remote/HttpRemoteRepo.java
+++ b/src/core/src/main/java/org/geogit/remote/HttpRemoteRepo.java
@@ -1,618 +1,618 ... | false | true | private Ref updateRemoteRef(String refspec, ObjectId newValue, boolean delete) {
HttpURLConnection connection = null;
Ref updatedRef = null;
try {
String expanded;
if (!delete) {
expanded = repositoryURL.toString() + "/updateref?name=" + refspec + "&ne... | private Ref updateRemoteRef(String refspec, ObjectId newValue, boolean delete) {
HttpURLConnection connection = null;
Ref updatedRef = null;
try {
String expanded;
if (!delete) {
expanded = repositoryURL.toString() + "/updateref?name=" + refspec + "&ne... |
diff --git a/gui/src/dgu/bufsizing/DemoGUI.java b/gui/src/dgu/bufsizing/DemoGUI.java
index 8a6e2b2..6bc50c9 100644
--- a/gui/src/dgu/bufsizing/DemoGUI.java
+++ b/gui/src/dgu/bufsizing/DemoGUI.java
@@ -1,1753 +1,1753 @@
package dgu.bufsizing;
import dgu.bufsizing.control.IperfController;
import dgu.util.StringOps;
... | false | true | private void initComponents() {
optGroupRule = new javax.swing.ButtonGroup();
optGroupTGen = new javax.swing.ButtonGroup();
optGroupMode = new javax.swing.ButtonGroup();
pnlChartXput = new ChartPanel(chartXput);
pnlChartRight = new ChartPanel(chartResults);
pnlDetail... | private void initComponents() {
optGroupRule = new javax.swing.ButtonGroup();
optGroupTGen = new javax.swing.ButtonGroup();
optGroupMode = new javax.swing.ButtonGroup();
pnlChartXput = new ChartPanel(chartXput);
pnlChartRight = new ChartPanel(chartResults);
pnlDetail... |
diff --git a/org/python/core/PyBuiltinFunction.java b/org/python/core/PyBuiltinFunction.java
index f3c5cd3c..86edca37 100644
--- a/org/python/core/PyBuiltinFunction.java
+++ b/org/python/core/PyBuiltinFunction.java
@@ -1,157 +1,157 @@
package org.python.core;
public abstract class PyBuiltinFunction extends PyObject... | true | true | public static PyException unexpectedCall(
int nargs,
boolean keywords,
String name,
int minargs,
int maxargs) {
if (keywords)
return Py.TypeError(name + "() takes no keyword arguments");
String argsblurb;
... | public static PyException unexpectedCall(
int nargs,
boolean keywords,
String name,
int minargs,
int maxargs) {
if (keywords)
return Py.TypeError(name + "() takes no keyword arguments");
String argsblurb;
... |
diff --git a/WorldGenWalledCity.java b/WorldGenWalledCity.java
index f23b6a9..d05b371 100644
--- a/WorldGenWalledCity.java
+++ b/WorldGenWalledCity.java
@@ -1,499 +1,499 @@
package mods.generator;
/*
* Source code for the The Great Wall Mod and Walled City Generator Mods for the game Minecraft
* Copyright (C) 2... | true | true | public boolean generate(int i0,int j0,int k0) throws InterruptedException{
ows=TemplateWall.pickBiomeWeightedWallStyle(wc.cityStyles,world,i0,k0,random,false);
if(ows==null) return false;
sws=TemplateWall.pickBiomeWeightedWallStyle(ows.streets,world,i0,k0,random,false);
if(sws==null) return false;
if(!wc.cit... | public boolean generate(int i0,int j0,int k0) throws InterruptedException{
ows=TemplateWall.pickBiomeWeightedWallStyle(wc.cityStyles,world,i0,k0,random,false);
if(ows==null) return false;
sws=TemplateWall.pickBiomeWeightedWallStyle(ows.streets,world,i0,k0,random,false);
if(sws==null) return false;
if(!wc.cit... |
diff --git a/jOOQ/src/main/java/org/jooq/impl/InsertImpl.java b/jOOQ/src/main/java/org/jooq/impl/InsertImpl.java
index e296bd25a..36a9e99a1 100644
--- a/jOOQ/src/main/java/org/jooq/impl/InsertImpl.java
+++ b/jOOQ/src/main/java/org/jooq/impl/InsertImpl.java
@@ -1,214 +1,215 @@
/**
* Copyright (c) 2009-2011, Lukas Ede... | true | true | private final InsertImpl<R> values0(List<Field<?>> values) {
// [#885] If this insert is called with an implicit field name set, take
// the fields from the underlying table.
if (fields.size() == 0) {
fields.addAll(into.getFields());
}
if (fields.size() != value... | private final InsertImpl<R> values0(List<Field<?>> values) {
// [#885] If this insert is called with an implicit field name set, take
// the fields from the underlying table.
if (fields.size() == 0) {
fields.addAll(into.getFields());
}
if (fields.size() != value... |
diff --git a/src/org/openstreetmap/josm/actions/AlignInCircleAction.java b/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
index aa760a5e..5f23fcbe 100644
--- a/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
+++ b/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
@@ -1,249 +1,250 @@
... | true | true | public void actionPerformed(ActionEvent e) {
Collection<OsmPrimitive> sel = Main.ds.getSelected();
Collection<Node> nodes = new LinkedList<Node>();
Collection<Way> ways = new LinkedList<Way>();
Node center = null;
Node node = null;
double radius = 0;
boolean r... | public void actionPerformed(ActionEvent e) {
Collection<OsmPrimitive> sel = Main.ds.getSelected();
Collection<Node> nodes = new LinkedList<Node>();
Collection<Way> ways = new LinkedList<Way>();
Node center = null;
Node node = null;
double radius = 0;
boolean r... |
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyBlockProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyBlockProducer.java
index 387a0b6c..a85104e0 100644
--- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyBlockProducer.java
+++ b/tool/src/java/o... | true | true | public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {
UIOutput.make(tofill, "modify-block-title", messageLocator.getMessage("modifyblock.page.title")); //$NON-NLS-1$ //$NON-NLS-2$
UIOutput.make(tofill, "create-eval-title", messageLocator.getMessage("createeval.page... | public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {
UIOutput.make(tofill, "modify-block-title", messageLocator.getMessage("modifyblock.page.title")); //$NON-NLS-1$ //$NON-NLS-2$
UIOutput.make(tofill, "create-eval-title", messageLocator.getMessage("createeval.page... |
diff --git a/RigProvider/src/au/edu/uts/eng/remotelabs/schedserver/rigprovider/intf/RigProviderSOAPImpl.java b/RigProvider/src/au/edu/uts/eng/remotelabs/schedserver/rigprovider/intf/RigProviderSOAPImpl.java
index 77318a00..d90b2210 100644
--- a/RigProvider/src/au/edu/uts/eng/remotelabs/schedserver/rigprovider/intf/RigP... | true | true | public AddSessionFilesResponse addSessionFiles(AddSessionFiles sessionFiles)
{
org.hibernate.Session db = null;
try
{
/* Request parameters. */
SessionFiles files = sessionFiles.getAddSessionFiles();
this.logger.debug("Received " + ... | public AddSessionFilesResponse addSessionFiles(AddSessionFiles sessionFiles)
{
org.hibernate.Session db = null;
try
{
/* Request parameters. */
SessionFiles files = sessionFiles.getAddSessionFiles();
this.logger.debug("Received " + ... |
diff --git a/src/org/apache/xalan/xsltc/compiler/Predicate.java b/src/org/apache/xalan/xsltc/compiler/Predicate.java
index 247aed1e..6cbfffca 100644
--- a/src/org/apache/xalan/xsltc/compiler/Predicate.java
+++ b/src/org/apache/xalan/xsltc/compiler/Predicate.java
@@ -1,407 +1,407 @@
/*
* @(#)$Id$
*
* The Apache S... | true | true | public Type typeCheck(SymbolTable stable) throws TypeCheckError {
Type texp = _exp.typeCheck(stable);
// We need explicit type information for reference types - no good!
if (texp instanceof ReferenceType) {
throw new TypeCheckError(this);
}
// A result tree fragment should not be cast directly to a num... | public Type typeCheck(SymbolTable stable) throws TypeCheckError {
Type texp = _exp.typeCheck(stable);
// We need explicit type information for reference types - no good!
if (texp instanceof ReferenceType) {
_exp = new CastExpr(_exp, texp = Type.Real);
}
// A result tree fragment should not be cast dire... |
diff --git a/src/test/java/net/nfrancois/froguino/gae/rest/TemperatureServletTest.java b/src/test/java/net/nfrancois/froguino/gae/rest/TemperatureServletTest.java
index d694d9c..14489da 100644
--- a/src/test/java/net/nfrancois/froguino/gae/rest/TemperatureServletTest.java
+++ b/src/test/java/net/nfrancois/froguino/gae/... | true | true | public void should_not_give_temperature() throws IOException, ServletException {
// Given
HttpServletRequest request = mock(HttpServletRequest.class);
HttpServletResponse response = mock(HttpServletResponse.class);
StringWriter stringWriter = new StringWriter();
when(respon... | public void should_not_give_temperature() throws IOException, ServletException {
// Given
TemperatureServlet.actualTemperature = null;
HttpServletRequest request = mock(HttpServletRequest.class);
HttpServletResponse response = mock(HttpServletResponse.class);
StringWriter st... |
diff --git a/org.eclipse.mylyn/src/org/eclipse/mylyn/core/net/WebClientUtil.java b/org.eclipse.mylyn/src/org/eclipse/mylyn/core/net/WebClientUtil.java
index 92c1cca1..3c5adab7 100644
--- a/org.eclipse.mylyn/src/org/eclipse/mylyn/core/net/WebClientUtil.java
+++ b/org.eclipse.mylyn/src/org/eclipse/mylyn/core/net/WebClien... | true | true | public static void setupHttpClient(HttpClient client, Proxy proxySettings, String repositoryUrl, String user,
String password) {
// Note: The following debug code requires http commons-logging and
// commons-logging-api jars
// System.setProperty("org.apache.commons.logging.Log",
// "org.apache.commons.log... | public static void setupHttpClient(HttpClient client, Proxy proxySettings, String repositoryUrl, String user,
String password) {
// Note: The following debug code requires http commons-logging and
// commons-logging-api jars
// System.setProperty("org.apache.commons.logging.Log",
// "org.apache.commons.log... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/GradientDrawer.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/GradientDrawer.java
index bf4905f12..79d01c99d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/Gradie... | false | true | private void configureGradientColors() {
categoryGradientStart = themeManager.getCurrentTheme()
.getColorRegistry()
.get(CommonThemes.COLOR_CATEGORY_GRADIENT_START);
categoryGradientEnd = themeManager.getCurrentTheme()
.getColorRegistry()
.get(CommonThemes.COLOR_CATEGORY_GRADIENT_END);
boolean c... | private void configureGradientColors() {
categoryGradientStart = themeManager.getCurrentTheme()
.getColorRegistry()
.get(CommonThemes.COLOR_CATEGORY_GRADIENT_START);
categoryGradientEnd = themeManager.getCurrentTheme()
.getColorRegistry()
.get(CommonThemes.COLOR_CATEGORY_GRADIENT_END);
boolean c... |
diff --git a/src/com/android/music/MediaPlaybackService.java b/src/com/android/music/MediaPlaybackService.java
index d25e929..25d60c7 100644
--- a/src/com/android/music/MediaPlaybackService.java
+++ b/src/com/android/music/MediaPlaybackService.java
@@ -1,2198 +1,2200 @@
/*
* Copyright (C) 2007 The Android Open Sourc... | true | true | private void reloadQueue() {
String q = null;
boolean newstyle = false;
int id = mCardId;
if (mPreferences.contains("cardid")) {
newstyle = true;
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only ... | private void reloadQueue() {
String q = null;
boolean newstyle = false;
int id = mCardId;
if (mPreferences.contains("cardid")) {
newstyle = true;
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only ... |
diff --git a/tweetyServeur/app/controllers/Application.java b/tweetyServeur/app/controllers/Application.java
index 106e08d..5026f9f 100644
--- a/tweetyServeur/app/controllers/Application.java
+++ b/tweetyServeur/app/controllers/Application.java
@@ -1,34 +1,35 @@
package controllers;
import java.util.Date;
import... | false | true | public static void createTweet()
{
Form<Tweet> form = Form.form(Tweet.class).bindFromRequest();
Tweet tweet = new Tweet();
tweet.setComment(form.field("comment").value());
tweet.setUsername(form.field("username").value());
tweet.setCreationDate(new Date());
Tweet.create(tweet);
... | public static Result createTweet()
{
Form<Tweet> form = Form.form(Tweet.class).bindFromRequest();
Tweet tweet = new Tweet();
tweet.setComment(form.field("comment").value());
tweet.setUsername(form.field("username").value());
tweet.setCreationDate(new Date());
Tweet.create(tweet);
... |
diff --git a/database-provider/src/main/java/org/jboss/pressgang/ccms/wrapper/structures/DBWrapperKey.java b/database-provider/src/main/java/org/jboss/pressgang/ccms/wrapper/structures/DBWrapperKey.java
index ee9c624..823c595 100644
--- a/database-provider/src/main/java/org/jboss/pressgang/ccms/wrapper/structures/DBWra... | true | true | public boolean equals(Object o) {
if (o == null) return false;
if (!(o instanceof DBWrapperKey)) return false;
final DBWrapperKey other = (DBWrapperKey) o;
if (!EqualsHelper.equals(wrapperClass, other.wrapperClass)) return false;
return EqualsHelper.equals(o, other.o);
... | public boolean equals(Object o) {
if (o == null) return false;
if (!(o instanceof DBWrapperKey)) return false;
final DBWrapperKey other = (DBWrapperKey) o;
if (!EqualsHelper.equals(wrapperClass, other.wrapperClass)) return false;
return EqualsHelper.equals(this.o, other.o);... |
diff --git a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ScpCommand.java b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ScpCommand.java
index 09c25ff57..987380f80 100644
--- a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ScpCommand.java
+++ b/gerrit-sshd/src/main/java/com/google/... | true | true | private void runImp() {
try {
if (error != null) {
throw error;
}
if (opt_f) {
if (root.startsWith("/")) {
root = root.substring(1);
}
if (root.endsWith("/")) {
root = root.substring(0, root.length() - 1);
}
if (root.equals("."... | private void runImp() {
try {
readAck();
if (error != null) {
throw error;
}
if (opt_f) {
if (root.startsWith("/")) {
root = root.substring(1);
}
if (root.endsWith("/")) {
root = root.substring(0, root.length() - 1);
}
if... |
diff --git a/kernel/src/main/java/org/vosao/velocity/impl/FormVelocityServiceImpl.java b/kernel/src/main/java/org/vosao/velocity/impl/FormVelocityServiceImpl.java
index 631aa7b..c229986 100644
--- a/kernel/src/main/java/org/vosao/velocity/impl/FormVelocityServiceImpl.java
+++ b/kernel/src/main/java/org/vosao/velocity/i... | true | true | public String render(String formName) {
try {
FormEntity form = getDao().getFormDao().getByName(formName);
if (form == null) {
return "Error! Form " + formName + " was not found.";
}
List<FieldEntity> fields = getDao().getFieldDao().getByForm(form);
FormConfigEntity formConfig = getDao().getFormCo... | public String render(String formName) {
try {
FormEntity form = getDao().getFormDao().getByName(formName);
if (form == null) {
return "Error! Form " + formName + " was not found.";
}
List<FieldEntity> fields = getDao().getFieldDao().getByForm(form);
FormConfigEntity formConfig = getDao().getFormCo... |
diff --git a/izpack-src/branches/Arjuna/src/lib/com/izforge/izpack/compiler/Compiler.java b/izpack-src/branches/Arjuna/src/lib/com/izforge/izpack/compiler/Compiler.java
index 2ec08bcb..0e3cc565 100644
--- a/izpack-src/branches/Arjuna/src/lib/com/izforge/izpack/compiler/Compiler.java
+++ b/izpack-src/branches/Arjuna/src... | true | true | public void executeCompiler() throws Exception
{
// Usefull variables
int i;
String str;
InputStream inStream;
// We get the XML data tree
XMLElement data = getXMLTree();
// We get the Packager
Packager packager = getPackager();
// We add the variable declaration
packager... | public void executeCompiler() throws Exception
{
// Usefull variables
int i;
String str;
InputStream inStream;
// We get the XML data tree
XMLElement data = getXMLTree();
// We get the Packager
Packager packager = getPackager();
// We add the variable declaration
packager... |
diff --git a/src/jmxsh/SetCmd.java b/src/jmxsh/SetCmd.java
index 3a5f5a1..a1fffea 100755
--- a/src/jmxsh/SetCmd.java
+++ b/src/jmxsh/SetCmd.java
@@ -1,163 +1,163 @@
/*
* $URL$
*
* $Revision$
*
* $LastChangedDate$
*
* $LastChangedBy$
*
* Licensed under the Apache License, Version 2.0 (the "License"... | false | true | public void cmdProc(Interp interp, TclObject argv[])
throws TclException {
try {
CommandLine cl = parseCommandLine(argv);
String args[] = cl.getArgs();
String attribute = null;
TclObject newvalue = null;
if (cl.hasOption("help")) {
new HelpFormatter().printHelp (
"... | public void cmdProc(Interp interp, TclObject argv[])
throws TclException {
try {
CommandLine cl = parseCommandLine(argv);
String args[] = cl.getArgs();
String attribute = null;
TclObject newvalue = null;
if (cl.hasOption("help")) {
new HelpFormatter().printHelp (
"... |
diff --git a/cdm/src/main/java/ucar/nc2/ft/point/standard/plug/UnidataPointFeature.java b/cdm/src/main/java/ucar/nc2/ft/point/standard/plug/UnidataPointFeature.java
index bfa65278c..1f4ba9785 100644
--- a/cdm/src/main/java/ucar/nc2/ft/point/standard/plug/UnidataPointFeature.java
+++ b/cdm/src/main/java/ucar/nc2/ft/poin... | true | true | public TableConfig getConfig(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog) throws IOException {
TableConfig nt = new TableConfig(Table.Type.ArrayStructure, "station");
nt.featureType = FeatureType.STATION_PROFILE;
nt.structName = "station";
nt.stnId = STN_NAME;
nt.lat = STN_LAT... | public TableConfig getConfig(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog) throws IOException {
TableConfig nt = new TableConfig(Table.Type.ArrayStructure, "station");
nt.featureType = FeatureType.STATION_PROFILE;
nt.structName = "station";
nt.stnId = STN_NAME;
nt.lat = STN_LAT... |
diff --git a/src/org/scilab/forge/jlatexmath/RowAtom.java b/src/org/scilab/forge/jlatexmath/RowAtom.java
index 8fa0915..055d4e9 100644
--- a/src/org/scilab/forge/jlatexmath/RowAtom.java
+++ b/src/org/scilab/forge/jlatexmath/RowAtom.java
@@ -1,234 +1,234 @@
/* RowAtom.java
* ==========================================... | true | true | public Box createBox(TeXEnvironment env) {
TeXFont tf = env.getTeXFont();
HorizontalBox hBox = new HorizontalBox(env.getColor(), env
.getBackground());
env.reset();
// convert atoms to boxes and add to the horizontal box
for (ListIterator it = element... | public Box createBox(TeXEnvironment env) {
TeXFont tf = env.getTeXFont();
HorizontalBox hBox = new HorizontalBox(env.getColor(), env
.getBackground());
env.reset();
// convert atoms to boxes and add to the horizontal box
for (ListIterator it = element... |
diff --git a/src/com/vorsk/crossfitr/CrossFitrActivity.java b/src/com/vorsk/crossfitr/CrossFitrActivity.java
index f69f213..069eb52 100644
--- a/src/com/vorsk/crossfitr/CrossFitrActivity.java
+++ b/src/com/vorsk/crossfitr/CrossFitrActivity.java
@@ -1,197 +1,197 @@
package com.vorsk.crossfitr;
import java.io.File;
... | true | true | public void onResume()
{
super.onResume();
setContentView(R.layout.main);
font = Typeface.createFromAsset(this.getAssets(),
"fonts/Roboto-Thin.ttf");
// User photo
file = new File(Environment.getExternalStorageDirectory(), "profile.png");
userPic = (ImageView) this.findViewById(R.id.main_butt... | public void onResume()
{
super.onResume();
setContentView(R.layout.main);
font = Typeface.createFromAsset(this.getAssets(),
"fonts/Roboto-Thin.ttf");
// User photo
file = new File(Environment.getExternalStorageDirectory(), "profile.png");
userPic = (ImageView) this.findViewById(R.id.main_butt... |
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/generator/FileGenerator.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/generator/FileGenerator.java
index f0433540..04d670ba 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src... | true | true | public void execute(IProgressMonitor monitor) throws CoreException {
// Sanity Checks
// Fail fast for null elements
Assert.isNotNull(fileName);
Assert.isNotNull(fileLocation);
IStatus status = validate();
if (status.getSeverity() == IStatus.ERROR) {
throw new IllegalStateException(stat... | public void execute(IProgressMonitor monitor) throws CoreException {
// Sanity Checks
// Fail fast for null elements
Assert.isNotNull(fileName);
Assert.isNotNull(fileLocation);
IStatus status = validate();
if (status.getSeverity() == IStatus.ERROR) {
throw new IllegalStateException(stat... |
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java
index 04a052c..4db5eb9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.proc... | true | true | public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
PSVIAttrNSImpl psviAttr = (PSVIAttrNSImpl) _value;
XSTypeDefinition typeDef = psviAttr.getTypeDefinition();
if (typeDef != null
&& typeDef.getNamespace().equals(XSCtrLibrary.XML_SCHEMA_NS)) {
Object schemaTyp... | public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
PSVIAttrNSImpl psviAttr = (PSVIAttrNSImpl) _value;
XSTypeDefinition typeDef = psviAttr.getTypeDefinition();
if (typeDef != null && XSCtrLibrary.XML_SCHEMA_NS.equals(typeDef.getNamespace())) {
Object schemaTypeVal... |
diff --git a/src/org/rascalmpl/library/Scripting.java b/src/org/rascalmpl/library/Scripting.java
index 78bd2a8a0d..994e3bfb3d 100644
--- a/src/org/rascalmpl/library/Scripting.java
+++ b/src/org/rascalmpl/library/Scripting.java
@@ -1,268 +1,268 @@
/***********************************************************************... | true | true | public IValue shell(IString input, IInteger duration, IEvaluatorContext ctx) {
java.lang.String is = input.getValue();
if(is.charAt(is.length()-1) != '\n'){
is = is + "\n";
}
InputStream in = new ByteArrayInputStream(is.getBytes());
StringWriter os = new StringWriter();
PrintWriter out = new Pri... | public IValue shell(IString input, IInteger duration, IEvaluatorContext ctx) {
java.lang.String is = input.getValue();
if(is.charAt(is.length()-1) != '\n'){
is = is + "\n";
}
InputStream in = new ByteArrayInputStream(is.getBytes());
StringWriter os = new StringWriter();
PrintWriter out = new Pri... |
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java
index 29c9dc1a0..c410aca8c 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxto... | true | true | private CtfTmfEventField[] parseFields(EventDefinition eventDef) {
List<CtfTmfEventField> fields = new ArrayList<CtfTmfEventField>();
StructDefinition structFields = eventDef.getFields();
HashMap<String, Definition> definitions = structFields.getDefinitions();
String curFieldName = ... | private CtfTmfEventField[] parseFields(EventDefinition eventDef) {
List<CtfTmfEventField> fields = new ArrayList<CtfTmfEventField>();
StructDefinition structFields = eventDef.getFields();
HashMap<String, Definition> definitions = structFields.getDefinitions();
String curFieldName = ... |
diff --git a/src/com/matejdro/bukkit/portalstick/listeners/PortalStickPlayerListener.java b/src/com/matejdro/bukkit/portalstick/listeners/PortalStickPlayerListener.java
index 7469a24..7d9e09f 100644
--- a/src/com/matejdro/bukkit/portalstick/listeners/PortalStickPlayerListener.java
+++ b/src/com/matejdro/bukkit/portalst... | true | true | public void onPlayerMove(PlayerMoveEvent event)
{
Player player = event.getPlayer();
Vector vector = player.getVelocity();
Block blockTo = event.getTo().getBlock();
Region regionTo = RegionManager.getRegion(event.getTo());
Region regionFrom = RegionManager.getRegion(event.getFrom());
//Check for cha... | public void onPlayerMove(PlayerMoveEvent event)
{
Player player = event.getPlayer();
Vector vector = player.getVelocity();
Block blockTo = event.getTo().getBlock();
Region regionTo = RegionManager.getRegion(event.getTo());
Region regionFrom = RegionManager.getRegion(event.getFrom());
//Check for cha... |
diff --git a/analytics/src/main/java/com/ning/billing/analytics/BusinessSubscriptionTransitionDao.java b/analytics/src/main/java/com/ning/billing/analytics/BusinessSubscriptionTransitionDao.java
index 6c4a834dd..929164f85 100644
--- a/analytics/src/main/java/com/ning/billing/analytics/BusinessSubscriptionTransitionDao.... | true | true | public void rebuildTransitionsForBundle(final UUID bundleId, final InternalCallContext context) {
final SubscriptionBundle bundle;
try {
bundle = entitlementApi.getBundleFromId(bundleId, context);
} catch (EntitlementUserApiException e) {
log.warn("Ignoring update for... | public void rebuildTransitionsForBundle(final UUID bundleId, final InternalCallContext context) {
final SubscriptionBundle bundle;
try {
bundle = entitlementApi.getBundleFromId(bundleId, context);
} catch (EntitlementUserApiException e) {
log.warn("Ignoring update for... |
diff --git a/src/main/java/org/deegree/igeo/modules/georef/ControlPointModel.java b/src/main/java/org/deegree/igeo/modules/georef/ControlPointModel.java
index c3a4b4c..4fc9115 100644
--- a/src/main/java/org/deegree/igeo/modules/georef/ControlPointModel.java
+++ b/src/main/java/org/deegree/igeo/modules/georef/ControlPoi... | true | true | public void updateMaps() {
MemoryFeatureAdapter leftData = (MemoryFeatureAdapter) leftLayer.getDataAccess().get( 0 );
MemoryFeatureAdapter rightData = (MemoryFeatureAdapter) rightLayer.getDataAccess().get( 0 );
FeatureCollection col = leftData.getFeatureCollection();
// the memory fa... | public void updateMaps() {
if ( leftLayer == null || rightLayer == null ) {
return;
}
MemoryFeatureAdapter leftData = (MemoryFeatureAdapter) leftLayer.getDataAccess().get( 0 );
MemoryFeatureAdapter rightData = (MemoryFeatureAdapter) rightLayer.getDataAccess().get( 0 );
... |
diff --git a/src/test/java/org/agilos/zendesk_jira_plugin/integrationtest/fixtures/JIRAFixture.java b/src/test/java/org/agilos/zendesk_jira_plugin/integrationtest/fixtures/JIRAFixture.java
index d68ee9a..44f59b0 100644
--- a/src/test/java/org/agilos/zendesk_jira_plugin/integrationtest/fixtures/JIRAFixture.java
+++ b/sr... | true | true | public void loadData (String fileName) {
String filePath = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getXMLDataLocation().getAbsolutePath() + FS + fileName;
String JIRAHomeDir = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getJIRAHomeLocation().getAbsolutePath();
try {
if (test... | public void loadData (String fileName) {
String filePath = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getXMLDataLocation().getAbsolutePath() + FS + fileName;
String JIRAHomeDir = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getJIRAHomeLocation().getAbsolutePath();
try {
if (test... |
diff --git a/forge/forge_common/net/minecraft/src/forge/EntityTrackerInfo.java b/forge/forge_common/net/minecraft/src/forge/EntityTrackerInfo.java
index 6a509182c..438a567f3 100644
--- a/forge/forge_common/net/minecraft/src/forge/EntityTrackerInfo.java
+++ b/forge/forge_common/net/minecraft/src/forge/EntityTrackerInfo.... | true | true | public EntityTrackerInfo(NetworkMod mod, int ID, int range, int updateFrequency, boolean sendVelocityInfo)
{
Mod = mod;
this.ID = ID;
Range = range;
UpdateFrequancy = updateFrequency;
SendVelocityInfo = sendVelocityInfo;
}
| public EntityTrackerInfo(NetworkMod mod, int ID, int range, int updateFrequency, boolean sendVelocityInfo)
{
Mod = mod;
this.ID = ID;
Range = range;
UpdateFrequency = updateFrequency;
SendVelocityInfo = sendVelocityInfo;
}
|
diff --git a/de.tomsplayground.peanuts/src/main/java/de/tomsplayground/peanuts/domain/statistics/XIRR.java b/de.tomsplayground.peanuts/src/main/java/de/tomsplayground/peanuts/domain/statistics/XIRR.java
index a95c7b8..baeff11 100644
--- a/de.tomsplayground.peanuts/src/main/java/de/tomsplayground/peanuts/domain/statisti... | true | true | public BigDecimal calculateValue() {
caluculateDates();
checkNegative();
BigDecimal irrGuess = new BigDecimal("0.5");
BigDecimal rate = irrGuess;
boolean wasHi = false;
boolean wasLo = false;
for (int i = 0; i < 100; i++) {
double v = 0;
for (Entry entry : dates) {
v += entryVlaue(entry.cash... | public BigDecimal calculateValue() {
if (dates.isEmpty()) {
return BigDecimal.ZERO;
}
caluculateDates();
checkNegative();
BigDecimal irrGuess = new BigDecimal("0.5");
BigDecimal rate = irrGuess;
boolean wasHi = false;
boolean wasLo = false;
for (int i = 0; i < 100; i++) {
double v = 0;
fo... |
diff --git a/Grade.java b/Grade.java
index b8c7eb8..6d2f7e0 100644
--- a/Grade.java
+++ b/Grade.java
@@ -1,24 +1,24 @@
/* Copyright (C) 2012 Benjamin Lewis
*
* Licensed under the GNU GPLv3
*/
/* Grade.java, an example grading program. */
/* Just some code to start from; we'll see how this can become far m... | false | true | public static void main (String[] args) {
int midtermGrade, finalGrade;
midtermGrade = 60;
finalGrade = 70;
courseGrade = (midtermGrade + finalGrade) / 200;
if (courseGrade >= 50) {
System.out.println("Satisfactory");
} else {
System.out.println("Unsatisfactory");
}
}
| public static void main (String[] args) {
int midtermGrade, finalGrade;
midtermGrade = 60;
finalGrade = 70;
int courseGrade = (midtermGrade + finalGrade) / 2;
if (courseGrade >= 50) {
System.out.println("Satisfactory");
} else {
System.out.println("Unsatisfactory");
}
}
|
diff --git a/geoserver/wfs/src/main/java/org/geoserver/wfs/GetFeature.java b/geoserver/wfs/src/main/java/org/geoserver/wfs/GetFeature.java
index a81ed19408..d10ae7beb0 100644
--- a/geoserver/wfs/src/main/java/org/geoserver/wfs/GetFeature.java
+++ b/geoserver/wfs/src/main/java/org/geoserver/wfs/GetFeature.java
@@ -1,401... | true | true | public FeatureCollectionType run(GetFeatureType request)
throws WFSException {
List queries = request.getQuery();
if (queries.isEmpty()) {
throw new WFSException("No query specified");
}
if (EMFUtils.isUnset(queries, "typeName")) {
String msg = "No f... | public FeatureCollectionType run(GetFeatureType request)
throws WFSException {
List queries = request.getQuery();
if (queries.isEmpty()) {
throw new WFSException("No query specified");
}
if (EMFUtils.isUnset(queries, "typeName")) {
String msg = "No f... |
diff --git a/src/com/krystal/videocohere/ThumbOnlySeekBar.java b/src/com/krystal/videocohere/ThumbOnlySeekBar.java
index bbf985d..709af5e 100644
--- a/src/com/krystal/videocohere/ThumbOnlySeekBar.java
+++ b/src/com/krystal/videocohere/ThumbOnlySeekBar.java
@@ -1,52 +1,52 @@
package com.krystal.videocohere;
import a... | false | true | public boolean onTouchEvent(MotionEvent event) {
Log.d("Swati", "Event x = " + (int) event.getX() + " Event y = "
+ (int) event.getY());
Log.d ("Swati", "Bounds = " + mThumb.getBounds());
Rect mBounds = mThumb.getBounds();
Rect newBounds = new Rect (mBounds.left - 10, mBounds.top - 10, mBounds.bottom +10,m... | public boolean onTouchEvent(MotionEvent event) {
Log.d("Swati", "Event x = " + (int) event.getX() + " Event y = "
+ (int) event.getY());
Log.d ("Swati", "Bounds = " + mThumb.getBounds());
Rect mBounds = mThumb.getBounds();
Rect newBounds = new Rect (mBounds.left - 20, mBounds.top - 20, mBounds.right +20,mB... |
diff --git a/src/java/org/jamwiki/authentication/JAMWikiDaoImpl.java b/src/java/org/jamwiki/authentication/JAMWikiDaoImpl.java
index e602b1ea..ff9f971e 100644
--- a/src/java/org/jamwiki/authentication/JAMWikiDaoImpl.java
+++ b/src/java/org/jamwiki/authentication/JAMWikiDaoImpl.java
@@ -1,53 +1,56 @@
/**
* Licensed u... | true | true | public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException {
UserDetails loadedUser;
try {
loadedUser = WikiBase.getDataHandler().lookupWikiUser(username, null);
} catch (Exception e) {
throw new DataAccessResourceFailureException(e.getMessage(), e);
}
... | public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException {
UserDetails loadedUser;
try {
loadedUser = WikiBase.getDataHandler().lookupWikiUser(username, null);
} catch (Exception e) {
// FIXME - for now throw an exception that Acegi can handle, but
// ... |
diff --git a/src/impl/java/org/wyona/security/impl/PolicyImplVersion1.java b/src/impl/java/org/wyona/security/impl/PolicyImplVersion1.java
index 23eb3ed..9b7b383 100644
--- a/src/impl/java/org/wyona/security/impl/PolicyImplVersion1.java
+++ b/src/impl/java/org/wyona/security/impl/PolicyImplVersion1.java
@@ -1,168 +1,16... | true | true | protected UsecasePolicy readUsecasePolicy(Configuration upConfig) throws Exception {
UsecasePolicy up = new UsecasePolicy(upConfig.getAttribute("id"));
up.setUseInheritedPolicies(upConfig.getAttributeAsBoolean("use-inherited-policies", true));
Configuration[] worldC... | protected UsecasePolicy readUsecasePolicy(Configuration upConfig) throws Exception {
UsecasePolicy up = new UsecasePolicy(upConfig.getAttribute("id"));
up.setUseInheritedPolicies(upConfig.getAttributeAsBoolean("use-inherited-policies", true));
Configuration[] worldC... |
diff --git a/core/src/main/java/io/undertow/server/protocol/http/HttpReadListener.java b/core/src/main/java/io/undertow/server/protocol/http/HttpReadListener.java
index cec0a806a..35c503074 100644
--- a/core/src/main/java/io/undertow/server/protocol/http/HttpReadListener.java
+++ b/core/src/main/java/io/undertow/server... | true | true | public void handleEvent(final StreamSourceChannel channel) {
Pooled<ByteBuffer> existing = connection.getExtraBytes();
final Pooled<ByteBuffer> pooled = existing == null ? connection.getBufferPool().allocate() : existing;
final ByteBuffer buffer = pooled.getResource();
boolean free... | public void handleEvent(final StreamSourceChannel channel) {
Pooled<ByteBuffer> existing = connection.getExtraBytes();
final Pooled<ByteBuffer> pooled = existing == null ? connection.getBufferPool().allocate() : existing;
final ByteBuffer buffer = pooled.getResource();
boolean free... |
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/SupervisorView.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/SupervisorView.java
index 95e6fbe0..01003309 100644
--- a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/SupervisorView.java
+++ b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/Superviso... | true | true | public SupervisorView(final ClientFactory clientFactory) {
this.clientFactory = clientFactory;
RemoteEventBus remoteEventBus = clientFactory.getEventBus();
HorizontalFlowPanel header = new HorizontalFlowPanel();
add(header, NORTH);
Image logo = new Image("ATLASLogo2-64x48.jpg");
logo.addStyleName("apvs-l... | public SupervisorView(final ClientFactory clientFactory) {
this.clientFactory = clientFactory;
RemoteEventBus remoteEventBus = clientFactory.getEventBus();
HorizontalFlowPanel header = new HorizontalFlowPanel();
add(header, NORTH);
Image logo = new Image("ATLASLogo2-64x48.jpg");
logo.addStyleName("apvs-l... |
diff --git a/wallet/src/de/schildbach/wallet/litecoin/ui/AddressBookActivity.java b/wallet/src/de/schildbach/wallet/litecoin/ui/AddressBookActivity.java
index 8c1f8e5..34b6786 100644
--- a/wallet/src/de/schildbach/wallet/litecoin/ui/AddressBookActivity.java
+++ b/wallet/src/de/schildbach/wallet/litecoin/ui/AddressBookA... | true | true | protected void onCreate(final Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.address_book_content);
final ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
final ViewPager pager = (ViewPager) findViewById(R.id.address_book_pa... | protected void onCreate(final Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.address_book_content);
final ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
final ViewPager pager = (ViewPager) findViewById(R.id.address_book_pa... |
diff --git a/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumTest.java b/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumTest.java
index fd6a3436a..332bacf92 100644
--- a/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumTest.java
+++ b/apps/animaldb/org/molgenis/animaldb/test/AnimaldbSeleniumT... | true | true | public void breedingWorkflow() throws Exception
{
// Go to Breeding line plugin
selenium.click("id=Settings_tab_button");
selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT);
selenium.click("id=ManageLines_tab_button");
selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT);
Assert.assertTrue(selenium.isTextPresent("B... | public void breedingWorkflow() throws Exception
{
// Go to Breeding line plugin
selenium.click("id=Settings_tab_button");
selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT);
selenium.click("id=ManageLines_tab_button");
selenium.waitForPageToLoad(PAGE_LOAD_TIME_OUT);
Assert.assertTrue(selenium.isTextPresent("B... |
diff --git a/sikuli-ide/src/main/java/org/sikuli/ide/ScreenshotPane.java b/sikuli-ide/src/main/java/org/sikuli/ide/ScreenshotPane.java
index 7c099c0f..ec7a635e 100644
--- a/sikuli-ide/src/main/java/org/sikuli/ide/ScreenshotPane.java
+++ b/sikuli-ide/src/main/java/org/sikuli/ide/ScreenshotPane.java
@@ -1,271 +1,271 @@
... | true | true | public void setParameters(final String patFilename,
final boolean exact, final float similarity,
final int numMatches)
throws IOException, AWTException{
if( !_runFind ){
_runFind = true;
Th... | public void setParameters(final String patFilename,
final boolean exact, final float similarity,
final int numMatches)
throws IOException, AWTException{
if( !_runFind ){
_runFind = true;
Th... |
diff --git a/src/org/wikimedia/commons/auth/LoginActivity.java b/src/org/wikimedia/commons/auth/LoginActivity.java
index 6c8f255c..6494fd0c 100644
--- a/src/org/wikimedia/commons/auth/LoginActivity.java
+++ b/src/org/wikimedia/commons/auth/LoginActivity.java
@@ -1,136 +1,137 @@
package org.wikimedia.commons.auth;
i... | true | true | protected void onPostExecute(String result) {
super.onPostExecute(result);
if (result.equals("Success")) {
dialog.cancel();
Toast successToast = Toast.makeText(context, R.string.login_success, Toast.LENGTH_SHORT);
successToast.show();
... | protected void onPostExecute(String result) {
super.onPostExecute(result);
if (result.equals("Success")) {
dialog.cancel();
Toast successToast = Toast.makeText(context, R.string.login_success, Toast.LENGTH_SHORT);
successToast.show();
... |
diff --git a/CarMonitorCore/src/main/java/org/zju/car_monitor/codec/DataDecoder.java b/CarMonitorCore/src/main/java/org/zju/car_monitor/codec/DataDecoder.java
index e0fb1be..f154449 100644
--- a/CarMonitorCore/src/main/java/org/zju/car_monitor/codec/DataDecoder.java
+++ b/CarMonitorCore/src/main/java/org/zju/car_monito... | true | true | private Byte[] getCompletePacket(IoBuffer ioBuffer) {
int bufferSize = ioBuffer.remaining();
ioBuffer.mark();
byte first = ioBuffer.get();
if ((char)first != '&') {
logger.info("Message doesn't start with &. Skip it. First = " + (char)first);
ioBuffer.reset();... | private Byte[] getCompletePacket(IoBuffer ioBuffer) {
int bufferSize = ioBuffer.remaining();
ioBuffer.mark();
byte first = ioBuffer.get();
if ((int)first == 13) {
//if it is carriage return skip it
first = ioBuffer.get();
}
if ((char)first != '&') {
... |
diff --git a/Permissions/src/au/edu/uts/eng/remotelabs/schedserver/permissions/intf/Permissions.java b/Permissions/src/au/edu/uts/eng/remotelabs/schedserver/permissions/intf/Permissions.java
index 39dce646..c1aeeced 100644
--- a/Permissions/src/au/edu/uts/eng/remotelabs/schedserver/permissions/intf/Permissions.java
+++... | false | true | public GetPermissionsForUserResponse getPermissionsForUser(GetPermissionsForUser request)
{
/* Request parameters. */
UserIDType uid = request.getGetPermissionsForUser();
String ns = uid.getUserNamespace(), nm = uid.getUserName();
long id = 0;
try
{
id... | public GetPermissionsForUserResponse getPermissionsForUser(GetPermissionsForUser request)
{
/* Request parameters. */
UserIDType uid = request.getGetPermissionsForUser();
String ns = uid.getUserNamespace(), nm = uid.getUserName();
long id = this.getIdentifier(uid.getUserID());
... |
diff --git a/examples/src/net/sourceforge/stripes/examples/bugzooky/RegisterActionBean.java b/examples/src/net/sourceforge/stripes/examples/bugzooky/RegisterActionBean.java
index ccc4ef6..0735147 100644
--- a/examples/src/net/sourceforge/stripes/examples/bugzooky/RegisterActionBean.java
+++ b/examples/src/net/sourcefor... | true | true | public Resolution register() {
PersonManager pm = new PersonManager();
pm.saveOrUpdate(this.user);
getContext().setUser(this.user);
getContext().getMessages().add(
new LocalizableMessage("/examples/bugzooky/Register.action.successMessage",
... | public Resolution register() {
PersonManager pm = new PersonManager();
pm.saveOrUpdate(this.user);
getContext().setUser(this.user);
getContext().getMessages().add(
new LocalizableMessage(getClass().getName() + ".successMessage",
... |
diff --git a/src/main/java/dk/nsi/haiba/lprimporter/importer/ImportExecutor.java b/src/main/java/dk/nsi/haiba/lprimporter/importer/ImportExecutor.java
index c596963..a311d9f 100644
--- a/src/main/java/dk/nsi/haiba/lprimporter/importer/ImportExecutor.java
+++ b/src/main/java/dk/nsi/haiba/lprimporter/importer/ImportExecu... | true | true | public void doProcess(boolean manual) {
log.info("Started processing, manual="+isManualOverride());
// Fetch new records from LPR contact table
try {
statusRepo.importStartedAt(new DateTime());
if (manual) {
emailSender.sendHello();
}
// if syncId > 0, the Carecom jo... | public void doProcess(boolean manual) {
log.info("Started processing, manual="+isManualOverride());
// Fetch new records from LPR contact table
try {
statusRepo.importStartedAt(new DateTime());
if (manual) {
emailSender.sendHello();
}
// if syncId > 0, the Carecom jo... |
diff --git a/src/carnero/csms/base.java b/src/carnero/csms/base.java
index 5d8c1b6..9ce019d 100644
--- a/src/carnero/csms/base.java
+++ b/src/carnero/csms/base.java
@@ -1,188 +1,188 @@
package carnero.csms;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.content.Compone... | false | true | public void refresh(int skin, Context context, int[] ids, String intentAddress, String intentText) {
RemoteViews views;
String person = null;
String address = null;
String text = null;
if (context == null) {
return;
}
final AppWidgetManager manager = AppWidgetManager.getInstance(context);
if (ski... | public void refresh(int skin, Context context, int[] ids, String intentAddress, String intentText) {
RemoteViews views;
String person = null;
String address = null;
String text = null;
if (context == null) {
return;
}
final AppWidgetManager manager = AppWidgetManager.getInstance(context);
if (ski... |
diff --git a/src/main/java/org/agmip/translators/dssat/DssatBatchFileOutput.java b/src/main/java/org/agmip/translators/dssat/DssatBatchFileOutput.java
index 2398a3c..9fb8e74 100644
--- a/src/main/java/org/agmip/translators/dssat/DssatBatchFileOutput.java
+++ b/src/main/java/org/agmip/translators/dssat/DssatBatchFileOut... | true | true | public void writeFile(String arg0, ArrayList<HashMap> results) {
// Initial variables
HashMap result; // Data holder for summary data
BufferedWriter bwB; // output object
StringBuilder sbData = new StringBuilder(); // construct the data ... | public void writeFile(String arg0, ArrayList<HashMap> results) {
// Initial variables
HashMap result; // Data holder for summary data
BufferedWriter bwB; // output object
StringBuilder sbData = new StringBuilder(); // construct the data ... |
diff --git a/features/src/main/java/org/apache/karaf/cellar/features/shell/UninstallFeatureCommand.java b/features/src/main/java/org/apache/karaf/cellar/features/shell/UninstallFeatureCommand.java
index 5bb7db5f..2faf0409 100644
--- a/features/src/main/java/org/apache/karaf/cellar/features/shell/UninstallFeatureCommand... | true | true | protected Object doExecute() throws Exception {
// check if the group exists
Group group = groupManager.findGroupByName(groupName);
if (group == null) {
System.err.println("Cluster group " + groupName + " doesn't exist");
return null;
}
// check if th... | protected Object doExecute() throws Exception {
// check if the group exists
Group group = groupManager.findGroupByName(groupName);
if (group == null) {
System.err.println("Cluster group " + groupName + " doesn't exist");
return null;
}
// check if th... |
diff --git a/src/main/java/org/oztrack/view/OaiPmhRecordWriter.java b/src/main/java/org/oztrack/view/OaiPmhRecordWriter.java
index 5bb28a3e..986e0163 100644
--- a/src/main/java/org/oztrack/view/OaiPmhRecordWriter.java
+++ b/src/main/java/org/oztrack/view/OaiPmhRecordWriter.java
@@ -1,395 +1,401 @@
package org.oztrack.... | false | true | private void writeRifCsRepositoryMetadataElement(OaiPmhRecord record) throws XMLStreamException {
if (StringUtils.isBlank(record.getRifCsObjectElemName())) {
throw new IllegalArgumentException("Record must have RIF-CS object element name");
}
out.writeStartElement(RIF_CS.nsPrefi... | private void writeRifCsRepositoryMetadataElement(OaiPmhRecord record) throws XMLStreamException {
if (StringUtils.isBlank(record.getRifCsObjectElemName())) {
throw new IllegalArgumentException("Record must have RIF-CS object element name");
}
out.writeStartElement(RIF_CS.nsPrefi... |
diff --git a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/OakRepositoryFactory.java b/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/OakRepositoryFactory.java
index 25005acdfe..a171fd2b64 100644
--- a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/OakRepositoryFactory.java
+++ b/oak-jcr/src/main/java/o... | true | true | public Repository getRepository(Map parameters)
throws RepositoryException {
Object value = parameters.get(REPOSITORY_URI);
if (value != null) {
try {
URI uri = new URI(value.toString());
if (uri.getScheme().equalsIgnoreCase("jcr-oak")) {
... | public Repository getRepository(Map parameters) throws RepositoryException {
Object value = parameters == null ? null : parameters.get(REPOSITORY_URI);
if (value != null) {
try {
URI uri = new URI(value.toString());
if (uri.getScheme().equalsIgnoreCase("jc... |
diff --git a/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifOutlinePage.java b/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifOutlinePage.java
index 869b4cf59..0674c4a07 100644
--- a/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldif... | true | true | public Image getImage( Object element )
{
// Record
if ( element instanceof LdifContentRecord )
{
if ( isLinkedToLdapBrowser )
{
LdifContentRecord record = ( LdifContentRecord ) element;
LdifDnLi... | public Image getImage( Object element )
{
// Record
if ( element instanceof LdifContentRecord )
{
if ( isLinkedToLdapBrowser )
{
LdifContentRecord record = ( LdifContentRecord ) element;
LdifDnLi... |
diff --git a/src/main/java/net/minecraft/src/Tessellator.java b/src/main/java/net/minecraft/src/Tessellator.java
index 2ab1c46b..15ba8136 100644
--- a/src/main/java/net/minecraft/src/Tessellator.java
+++ b/src/main/java/net/minecraft/src/Tessellator.java
@@ -1,538 +1,538 @@
package net.minecraft.src;
import com.pcl... | false | true | public int draw() {
if (!this.isDrawing) {
throw new IllegalStateException("Not tesselating!");
} else {
this.isDrawing = false;
if (this.vertexCount > 0) {
// Spout HD start
if (this.texture >= 0) {
GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.texture);
}
// Spout HD End
this.int... | public int draw() {
if (!this.isDrawing) {
throw new IllegalStateException("Not tesselating!");
} else {
this.isDrawing = false;
if (this.vertexCount > 0) {
// Spout HD start
if (this.texture >= 0 && textureOverride <= 1) {
GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.texture);
}
// S... |
diff --git a/mobile/tests/com.liferay.ide.adt.core.tests/src/com/liferay/ide/adt/core/tests/MobileSDKLibrariesOpTests.java b/mobile/tests/com.liferay.ide.adt.core.tests/src/com/liferay/ide/adt/core/tests/MobileSDKLibrariesOpTests.java
index 76d57fb7c..8b186d7af 100644
--- a/mobile/tests/com.liferay.ide.adt.core.tests/s... | true | true | public void testMobileLibrariesOpAddDefault() throws Exception
{
final String projectName = "SampleAndroidApp";
final String propertiesFileName = "libs/liferay-android-sdk-1.1.jar.properties";
final IProject sampleProject = importAndroidProject( projectName, projectName + ".zip" );
... | public void testMobileLibrariesOpAddDefault() throws Exception
{
final String projectName = "SampleAndroidApp";
final String propertiesFileName = "libs/liferay-android-sdk-1.1.jar.properties";
final IProject sampleProject = importAndroidProject( projectName, projectName + ".zip" );
... |
diff --git a/src/homework2/HW2.java b/src/homework2/HW2.java
index e897a5a..25cd544 100644
--- a/src/homework2/HW2.java
+++ b/src/homework2/HW2.java
@@ -1,41 +1,40 @@
package homework2;
import java.io.*;
import org.antlr.runtime.*;
public class HW2 {
static OpenInventorData oid;
public st... | true | true | public static void main(String[] args) throws FileNotFoundException, IOException, RecognitionException {
//Parsing Input
//ANTLRInputStream input = new ANTLRInputStream(new FileInputStream(FILE));
ANTLRInputStream input = new ANTLRInputStream(System.in);
OpenInventorLexer lexer = new Ope... | public static void main(String[] args) throws FileNotFoundException, IOException, RecognitionException {
//Parsing Input
ANTLRInputStream input = new ANTLRInputStream(System.in);
OpenInventorLexer lexer = new OpenInventorLexer(input);
CommonTokenStream tokens = new CommonTokenStream(l... |
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java b/grails/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java
index fcca49e98..b4806aac2 100644
--- a/grails/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java
+++ b/grails/src/web/org/codehaus/groovy... | false | true | private String createURLInternal(Map parameterValues, String encoding, boolean includeContextPath) {
if (encoding == null) encoding = "utf-8";
String contextPath = "";
if (includeContextPath) {
GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.getRequestAttr... | private String createURLInternal(Map parameterValues, String encoding, boolean includeContextPath) {
if (encoding == null) encoding = "utf-8";
String contextPath = "";
if (includeContextPath) {
GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.getRequestAttr... |
diff --git a/src/main/java/com/peterlavalle/degen/mojos/DegenMojo.java b/src/main/java/com/peterlavalle/degen/mojos/DegenMojo.java
index 845f10d..f27d894 100644
--- a/src/main/java/com/peterlavalle/degen/mojos/DegenMojo.java
+++ b/src/main/java/com/peterlavalle/degen/mojos/DegenMojo.java
@@ -1,176 +1,176 @@
/*
* To ... | true | true | public void execute() throws MojoExecutionException, MojoFailureException {
final Map<String, FileHook> hooks = new TreeMap<String, FileHook>();
// collect all "normal" source files
for (final String src : (List<String>) getProject().getCompileSourceRoots()) {
if (src == null) {
continue;
}
for... | public void execute() throws MojoExecutionException, MojoFailureException {
final Map<String, FileHook> hooks = new TreeMap<String, FileHook>();
// collect all "normal" source files
for (final String src : (List<String>) getProject().getCompileSourceRoots()) {
if (src == null) {
continue;
}
for... |
diff --git a/pipe-gui/src/main/java/pipe/views/NormalArcView.java b/pipe-gui/src/main/java/pipe/views/NormalArcView.java
index ae299954..8504cdf9 100644
--- a/pipe-gui/src/main/java/pipe/views/NormalArcView.java
+++ b/pipe-gui/src/main/java/pipe/views/NormalArcView.java
@@ -1,313 +1,313 @@
package pipe.views;
impor... | true | true | public void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.translate(getComponentDrawOffset() + - arcPath.getBounds().getX(),
getCompo... | public void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.translate(getComponentDrawOffset() + ZOOM_GROW - arcPath.getBounds().getX(),
... |
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java
index ca6e06c0f..82d82e0f7 100644
--- a/update/org.eclipse.update.core/src/org/eclipse/update/int... | false | true | private ContentReference retrieveLocalJar(JarContentReference reference, InstallMonitor monitor) throws IOException, CoreException {
//If the site does not support pack200, just get the jar as normal
if(siteModel == null || !siteModel.supportsPack200() || !JarProcessor.canPerformUnpack()) {
ContentReference con... | private ContentReference retrieveLocalJar(JarContentReference reference, InstallMonitor monitor) throws IOException, CoreException {
//If the site does not support pack200, just get the jar as normal
if(siteModel == null || !siteModel.supportsPack200() || !JarProcessor.canPerformUnpack()) {
ContentReference con... |
diff --git a/src/iitb/CRF/CrfParams.java b/src/iitb/CRF/CrfParams.java
index c29ed14..4a9fe15 100644
--- a/src/iitb/CRF/CrfParams.java
+++ b/src/iitb/CRF/CrfParams.java
@@ -1,122 +1,122 @@
package iitb.CRF;
import java.io.Serializable;
import java.util.*;
/**
* This class holds all parameters to control vario... | true | true | public void parseParameters(java.util.Properties opts) {
miscOptions = opts;
if (opts.getProperty("initValue") != null) {
initValue = Double.parseDouble(opts.getProperty("initValue"));
}
if (opts.getProperty("maxIters") != null) {
maxIters = Integer.parseInt(opts.getProperty("maxIters"));
}
if (op... | public void parseParameters(java.util.Properties opts) {
miscOptions = opts;
if (opts.getProperty("initValue") != null) {
initValue = Double.parseDouble(opts.getProperty("initValue"));
}
if (opts.getProperty("maxIters") != null) {
maxIters = Integer.parseInt(opts.getProperty("maxIters"));
}
if (op... |
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/quickfix/AbstractCreateModuleElementResolution.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/quickfix/AbstractCreateModuleElementResolution.java
index 0565fd16..1... | false | true | protected int createModuleElement(IDocument document, AcceleoSourceContent content, IMarker marker) {
try {
String message = marker.getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$
int posBegin = marker.getAttribute(IMarker.CHAR_START, -1);
int posEnd = marker.getAttribute(IMarker.CHAR_END, posBegin);
if... | protected int createModuleElement(IDocument document, AcceleoSourceContent content, IMarker marker) {
try {
String message = marker.getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$
int posBegin = marker.getAttribute(IMarker.CHAR_START, -1);
int posEnd = marker.getAttribute(IMarker.CHAR_END, posBegin);
if... |
diff --git a/Configuration/java/dualstrike/configuration/ConfigurationEditor.java b/Configuration/java/dualstrike/configuration/ConfigurationEditor.java
index 7126989..b52bcac 100644
--- a/Configuration/java/dualstrike/configuration/ConfigurationEditor.java
+++ b/Configuration/java/dualstrike/configuration/Configuratio... | false | true | public void init() {
String title;
String defaultTitle;
JFrame frame;
title = null;
defaultTitle = null;
for(Info currentTitle: configuration.getTitle()) {
String currentLang;
String value;
currentLang = currentTitle.getLang();
value = currentTitle.getValue();
if(currentLang ==... | public void init() {
String title;
String defaultTitle;
JFrame frame;
title = null;
defaultTitle = null;
for(Info currentTitle: configuration.getTitle()) {
String currentLang;
String value;
currentLang = currentTitle.getLang();
value = currentTitle.getValue();
if(currentLang ==... |
diff --git a/src/Tests/functionalTests/gcmdeployment/virtualnode/TestGCMApplicationDescriptorAPI.java b/src/Tests/functionalTests/gcmdeployment/virtualnode/TestGCMApplicationDescriptorAPI.java
index 39d4349af..2e29bea3a 100644
--- a/src/Tests/functionalTests/gcmdeployment/virtualnode/TestGCMApplicationDescriptorAPI.jav... | false | true | public void test() throws ProActiveException, FileNotFoundException {
gcma = API.getGCMApplicationDescriptor(getDescriptor(this));
Assert.assertFalse(gcma.isStarted());
Assert.assertTrue(gcma.getCurrentNodes().size() == 0);
Assert.assertTrue(gcma.getCurrentUnusedNodes().size() == 0)... | public void test() throws ProActiveException, FileNotFoundException {
gcma = API.getGCMApplicationDescriptor(getDescriptor(this));
Assert.assertFalse(gcma.isStarted());
Assert.assertEquals(0, gcma.getCurrentNodes().size());
Assert.assertEquals(0, gcma.getCurrentUnusedNodes().size())... |
diff --git a/src/RevisionNode.java b/src/RevisionNode.java
index 716af0e..c1c948f 100644
--- a/src/RevisionNode.java
+++ b/src/RevisionNode.java
@@ -1,242 +1,242 @@
import java.util.Iterator;
import java.util.LinkedList;
public class RevisionNode {
private String date; //the date the revision was done
... | true | true | public String toString(){
String out = "";
String files = "";
Iterator<String> listIt = this.getRelevantFiles().iterator();
while(listIt.hasNext()){
String nextFile = listIt.next();
nextFile = nextFile.substring(nextFile.lastIndexOf('/'));
if (listIt.hasNext()){
files += nextFile+", ";
}
els... | public String toString(){
String out = "";
String files = "";
Iterator<String> listIt = this.getRelevantFiles().iterator();
while(listIt.hasNext()){
String nextFile = listIt.next();
nextFile = nextFile.substring(nextFile.lastIndexOf('/')+1);
if (listIt.hasNext()){
files += nextFile+", ";
}
e... |
diff --git a/src/main/java/com/alibaba/fastjson/parser/deserializer/ArrayListTypeFieldDeserializer.java b/src/main/java/com/alibaba/fastjson/parser/deserializer/ArrayListTypeFieldDeserializer.java
index 26ac746..4b998fe 100644
--- a/src/main/java/com/alibaba/fastjson/parser/deserializer/ArrayListTypeFieldDeserializer.j... | true | true | public final void parseArray(DefaultJSONParser parser, Type objectType, Collection array) {
Type itemType = this.itemType;;
if (itemType instanceof TypeVariable && objectType instanceof ParameterizedType) {
TypeVariable typeVar = (TypeVariable) itemType;
Parameterize... | public final void parseArray(DefaultJSONParser parser, Type objectType, Collection array) {
Type itemType = this.itemType;;
if (itemType instanceof TypeVariable && objectType instanceof ParameterizedType) {
TypeVariable typeVar = (TypeVariable) itemType;
Parameterize... |
diff --git a/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java b/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java
index c1a7fa5..7526cad 100755
--- a/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java
+++ b/src/net/crystalyx/bukkit/simplyperms/SimplyPrevents.java
@@ -1,117 +1,114 @@
package net.cr... | true | true | protected boolean prevent(Cancellable event, Player player, String node) {
if (player.isPermissionSet("permissions.allow.*")
&& player.hasPermission("permissions.allow.*")) {
return false;
} else if (node.contains(",")) {
for (String subNode : node.split(",")) {
if (prevent(event, player, subNode)) {... | protected boolean prevent(Cancellable event, Player player, String node) {
if (node.contains(",")) {
for (String subNode : node.split(",")) {
if (prevent(event, player, subNode)) {
return true;
} else if (player.isPermissionSet("permissions.allow." + subNode)) {
return false;
}
}
} else... |
diff --git a/src/main/java/org/spout/engine/world/SpoutChunk.java b/src/main/java/org/spout/engine/world/SpoutChunk.java
index 03280ca69..fdde2077d 100644
--- a/src/main/java/org/spout/engine/world/SpoutChunk.java
+++ b/src/main/java/org/spout/engine/world/SpoutChunk.java
@@ -1,2080 +1,2076 @@
/*
* This file is part... | false | true | private boolean setBlockMaterial(int x, int y, int z, BlockMaterial material, short data, Cause<?> cause, boolean event) {
int bx = x & BLOCKS.MASK;
int by = y & BLOCKS.MASK;
int bz = z & BLOCKS.MASK;
checkChunkLoaded();
checkBlockStoreUpdateAllowed();
if (event) {
// TODO - move to block change metho... | private boolean setBlockMaterial(int x, int y, int z, BlockMaterial material, short data, Cause<?> cause, boolean event) {
int bx = x & BLOCKS.MASK;
int by = y & BLOCKS.MASK;
int bz = z & BLOCKS.MASK;
checkChunkLoaded();
checkBlockStoreUpdateAllowed();
if (event) {
// TODO - move to block change metho... |
diff --git a/src/main/java/org/jhiccup/HiccupMeter.java b/src/main/java/org/jhiccup/HiccupMeter.java
index b392bad..c515ee5 100644
--- a/src/main/java/org/jhiccup/HiccupMeter.java
+++ b/src/main/java/org/jhiccup/HiccupMeter.java
@@ -1,804 +1,804 @@
/**
* Written by Gil Tene of Azul Systems, and released to the publi... | true | true | public HiccupMeterConfiguration(final String[] args) {
try {
for (int i = 0; i < args.length; ++i) {
if (args[i].equals("-v")) {
verbose = true;
} else if (args[i].equals("-0")) {
startTimeAtZero ... | public HiccupMeterConfiguration(final String[] args) {
try {
for (int i = 0; i < args.length; ++i) {
if (args[i].equals("-v")) {
verbose = true;
} else if (args[i].equals("-0")) {
startTimeAtZero ... |
diff --git a/src/org/openstreetmap/josm/actions/search/SearchAction.java b/src/org/openstreetmap/josm/actions/search/SearchAction.java
index d1a09182..3f1e09b1 100644
--- a/src/org/openstreetmap/josm/actions/search/SearchAction.java
+++ b/src/org/openstreetmap/josm/actions/search/SearchAction.java
@@ -1,191 +1,192 @@
... | true | true | public void showSearchDialog(SearchSetting initialValues) {
JLabel label = new JLabel(tr("Please enter a search string."));
final JTextField input = new JTextField(initialValues.text);
input.setToolTipText(tr("<html>Fulltext search:<ul>"
+ "<li><b>Baker Street</b> - 'Baker' a... | public void showSearchDialog(SearchSetting initialValues) {
JLabel label = new JLabel(tr("Please enter a search string."));
final JTextField input = new JTextField(initialValues.text);
input.setToolTipText(tr("<html>Fulltext search:<ul>"
+ "<li><b>Baker Street</b> - 'Baker' a... |
diff --git a/src/com/android/calendar/alerts/AlertReceiver.java b/src/com/android/calendar/alerts/AlertReceiver.java
index 12bd2623..5446f800 100644
--- a/src/com/android/calendar/alerts/AlertReceiver.java
+++ b/src/com/android/calendar/alerts/AlertReceiver.java
@@ -1,261 +1,263 @@
/*
* Copyright (C) 2007 The Androi... | false | true | public static Notification makeNewAlertNotification(Context context,
String title, String location, int numReminders,
boolean highPriority, long startMillis, long endMillis, long id,
boolean allDay) {
Resources res = context.getResources();
// Create an intent tri... | public static Notification makeNewAlertNotification(Context context,
String title, String location, int numReminders,
boolean highPriority, long startMillis, long endMillis, long id,
boolean allDay) {
Resources res = context.getResources();
// Create an intent tri... |
diff --git a/modules/requisition/src/main/java/org/openlmis/rnr/calculation/RnrCalculationStrategy.java b/modules/requisition/src/main/java/org/openlmis/rnr/calculation/RnrCalculationStrategy.java
index 42c3f5c472..e43085f370 100644
--- a/modules/requisition/src/main/java/org/openlmis/rnr/calculation/RnrCalculationStra... | false | true | public Integer calculateNormalizedConsumption(Integer stockOutDays,
Integer quantityDispensed,
Integer newPatientCount,
Integer dosesPerMonth,
... | public Integer calculateNormalizedConsumption(Integer stockOutDays,
Integer quantityDispensed,
Integer newPatientCount,
Integer dosesPerMonth,
... |
diff --git a/src/main/java/net/md_5/specialsource/util/FileLocator.java b/src/main/java/net/md_5/specialsource/util/FileLocator.java
index 835fdaa..c6fa649 100644
--- a/src/main/java/net/md_5/specialsource/util/FileLocator.java
+++ b/src/main/java/net/md_5/specialsource/util/FileLocator.java
@@ -1,109 +1,109 @@
/**
... | true | true | private static File download(String url) throws IOException {
// Create temporary dir in system location
File tempDir = new File(System.getProperty("java.io.tmpdir") + File.pathSeparator + "ss-cache");
if (!tempDir.exists()) {
tempDir.mkdirs();
}
// Create our ow... | private static File download(String url) throws IOException {
// Create temporary dir in system location
File tempDir = new File(System.getProperty("java.io.tmpdir") + File.separator + "ss-cache");
if (!tempDir.exists()) {
tempDir.mkdirs();
}
// Create our own ca... |
diff --git a/patientview-parent/radar/src/main/java/org/patientview/radar/web/panels/generic/MedicalResultsPanel.java b/patientview-parent/radar/src/main/java/org/patientview/radar/web/panels/generic/MedicalResultsPanel.java
index 32bcdab3..d63938b7 100644
--- a/patientview-parent/radar/src/main/java/org/patientview/ra... | false | true | public MedicalResultsPanel(String id, final Patient patient) {
super(id);
final boolean hasResult;
setOutputMarkupId(true);
setOutputMarkupPlaceholderTag(true);
MedicalResult medicalResult = null;
if (patient.hasValidId()) {
medicalResult = medicalResult... | public MedicalResultsPanel(String id, final Patient patient) {
super(id);
final boolean hasResult;
setOutputMarkupId(true);
setOutputMarkupPlaceholderTag(true);
MedicalResult medicalResult = null;
if (patient.hasValidId()) {
medicalResult = medicalResult... |
diff --git a/src/main/java/org/spoutcraft/client/gui/minimap/BlockColor.java b/src/main/java/org/spoutcraft/client/gui/minimap/BlockColor.java
index e375ee5d..1c71a314 100644
--- a/src/main/java/org/spoutcraft/client/gui/minimap/BlockColor.java
+++ b/src/main/java/org/spoutcraft/client/gui/minimap/BlockColor.java
@@ -1... | true | true | public static void initDefaultColors() {
for (int i = 0; i < blockColors.length; i++) {
blockColors[i] = null;
}
setDefaultColor(0, 0, 0);
setDefaultColor(1, 0, -9934744);
setDefaultColor(2, 0, -12096451);
setDefaultColor(3, 0, -8825542);
setDefaultColor(4, 0, -6974059);
setDefaultColor(5, 0, -44174... | public static void initDefaultColors() {
for (int i = 0; i < blockColors.length; i++) {
blockColors[i] = null;
}
setDefaultColor(0, 0, 0);
setDefaultColor(1, 0, -9934744);
setDefaultColor(2, 0, -12096451);
setDefaultColor(3, 0, -8825542);
setDefaultColor(4, 0, -6974059);
setDefaultColor(5, 0, -44174... |
diff --git a/core/src/test/resources/com/google/errorprone/bugpatterns/InvalidStringEqualityPositiveCases.java b/core/src/test/resources/com/google/errorprone/bugpatterns/InvalidStringEqualityPositiveCases.java
index f783bf9..c5ce3d9 100644
--- a/core/src/test/resources/com/google/errorprone/bugpatterns/InvalidStringEq... | false | true | public boolean testEquality(String x, String y) {
boolean retVal;
//BUG: Suggestion includes "x.equals(y)"
retVal = (x == y);
//BUG: Suggestion includes "!x.equals(y)"
retVal = (x != y);
//BUG: Suggestion includes "(x + y).equals(y + x)"
retVal = (x + y == y + x);
//BUG: Suggestion i... | public boolean testEquality(String x, String y) {
boolean retVal;
//BUG: Suggestion includes "x.equals(y)"
retVal = (x == y);
//BUG: Suggestion includes "!x.equals(y)"
retVal = (x != y);
//BUG: Suggestion includes "(x + y).equals(y + x)"
retVal = (x + y == y + x);
//BUG: Suggestion i... |
diff --git a/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java b/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java
index 048088a..648be95 100644
--- a/sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java
+++ b/sshd-core/src/main/java/org/apache/sshd/server/sft... | true | true | protected void process(Buffer buffer) throws IOException {
int length = buffer.getInt();
int type = buffer.getByte();
int id = buffer.getInt();
switch (type) {
case SSH_FXP_INIT: {
if (length != 5) {
throw new IllegalArgumentException()... | protected void process(Buffer buffer) throws IOException {
int length = buffer.getInt();
int type = buffer.getByte();
int id = buffer.getInt();
switch (type) {
case SSH_FXP_INIT: {
if (length != 5) {
throw new IllegalArgumentException()... |
diff --git a/hale/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/ExportSelectTargetPage.java b/hale/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/ExportSelectTargetPage.java
index 574075564..f81bb0cb2 100644
--- a/hale/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/ExportSelectTargetPage.java
+... | true | true | private void updateContentType() {
ContentType contentType = null;
ContentTypeService cts = OsgiUtils.getService(ContentTypeService.class);
if (getWizard().getProviderFactory() != null && targetFile.isValid()) {
Collection<ContentType> types = getWizard().getProviderFactory().getSupportedTypes();
if (ty... | private void updateContentType() {
ContentType contentType = null;
ContentTypeService cts = OsgiUtils.getService(ContentTypeService.class);
if (getWizard().getProviderFactory() != null && targetFile.isValid()) {
Collection<ContentType> types = getWizard().getProviderFactory().getSupportedTypes();
if (ty... |
diff --git a/Client/UI/Web/src/main/java/me/footlights/ui/web/GlobalContext.java b/Client/UI/Web/src/main/java/me/footlights/ui/web/GlobalContext.java
index 7b10ff3c..5d942a48 100644
--- a/Client/UI/Web/src/main/java/me/footlights/ui/web/GlobalContext.java
+++ b/Client/UI/Web/src/main/java/me/footlights/ui/web/GlobalCo... | true | true | GlobalContext(final Footlights footlights)
{
super("global");
register("initialize", new Initializer());
register("load_plugin", new PluginLoader(footlights));
register("reset", new AjaxHandler() {
@Override
public JavaScript service(Request request)
{
while(footlights.plugins().size() > 0)
... | GlobalContext(final Footlights footlights)
{
super("global");
register("initialize", new Initializer());
register("load_plugin", new PluginLoader(footlights));
register("reset", new AjaxHandler() {
@Override
public JavaScript service(Request request)
{
while(footlights.plugins().size() > 0)
... |
diff --git a/DistFileSystem/src/distserver/ServCheckPosition.java b/DistFileSystem/src/distserver/ServCheckPosition.java
index b3c98a1..990daf0 100644
--- a/DistFileSystem/src/distserver/ServCheckPosition.java
+++ b/DistFileSystem/src/distserver/ServCheckPosition.java
@@ -1,176 +1,180 @@
/**
* @author paul
*/
pac... | false | true | public void run() {
try {
System.out.println("In thread for check position");
this.distConfig = DistConfig.get_Instance();
// Get the input stream for the client
BufferedReader inStream = new BufferedReader (
new Input... | public void run() {
try {
System.out.println("In thread for check position");
this.distConfig = DistConfig.get_Instance();
// Get the input stream for the client
BufferedReader inStream = new BufferedReader (
new Input... |
diff --git a/project-set/extensions/api-validator/src/main/java/org/openrepose/components/apivalidator/filter/ApiValidatorFilter.java b/project-set/extensions/api-validator/src/main/java/org/openrepose/components/apivalidator/filter/ApiValidatorFilter.java
index 2e438ad155..020cdda933 100644
--- a/project-set/extension... | true | true | public void init(FilterConfig filterConfig) throws ServletException {
final String configProp = InitParameter.POWER_API_CONFIG_DIR.getParameterName();
final ServletContext ctx = filterConfig.getServletContext();
final String configurationRoot = System.getProperty(configProp, ctx.getInitPara... | public void init(FilterConfig filterConfig) throws ServletException {
final String configProp = InitParameter.POWER_API_CONFIG_DIR.getParameterName();
final ServletContext ctx = filterConfig.getServletContext();
final String configurationRoot = System.getProperty(configProp, ctx.getInitPara... |
diff --git a/tests/frontend/edu/brown/benchmark/tpce/procedures/TradeOrder.java b/tests/frontend/edu/brown/benchmark/tpce/procedures/TradeOrder.java
index 9c409f04e..b01b00b80 100644
--- a/tests/frontend/edu/brown/benchmark/tpce/procedures/TradeOrder.java
+++ b/tests/frontend/edu/brown/benchmark/tpce/procedures/TradeOr... | false | true | public VoltTable[] run(double requested_price, long acct_id, long is_lifo, long roll_it_back, long trade_qty, long type_is_margin, String co_name, String exec_f_name, String exec_l_name,
String exec_tax_id, String issue, String st_pending_id, String st_submitted_id, String symbol, String trade_type_id, ... | public VoltTable[] run(double requested_price, long acct_id, long is_lifo, long roll_it_back, long trade_qty, long type_is_margin, String co_name, String exec_f_name, String exec_l_name,
String exec_tax_id, String issue, String st_pending_id, String st_submitted_id, String symbol, String trade_type_id, ... |
diff --git a/ij/gui/ShapeRoi.java b/ij/gui/ShapeRoi.java
index 07dadfa4..8ad789a8 100644
--- a/ij/gui/ShapeRoi.java
+++ b/ij/gui/ShapeRoi.java
@@ -1,1257 +1,1257 @@
package ij.gui;
import java.awt.*;
import java.awt.image.*;
import java.awt.geom.*;
import java.awt.event.KeyEvent;
import java.util.*;
import ij.*;... | true | true | boolean parsePath(PathIterator pIter, double[] params, Vector segments, Vector rois, Vector handles) {
//long start = System.currentTimeMillis();
boolean result = true;
if(pIter==null) return false;
double pw = 1.0, ph = 1.0;
if(imp!=null) {
Calibration cal = imp.getCalibration();
pw = cal.pixelWidth;
... | boolean parsePath(PathIterator pIter, double[] params, Vector segments, Vector rois, Vector handles) {
//long start = System.currentTimeMillis();
boolean result = true;
if(pIter==null) return false;
double pw = 1.0, ph = 1.0;
if(imp!=null) {
Calibration cal = imp.getCalibration();
pw = cal.pixelWidth;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.