diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVEntityListener.java b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVEntityListener.java
index e741358..d5302d2 100644
--- a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVEntityListener.java
+++ b/src/main/java/com/onarandombo... | true | true | public void creatureSpawn(CreatureSpawnEvent event) {
// Check to see if the Creature is spawned by a plugin, we don't want to prevent this behaviour.
// TODO: Allow the egg thing to be a config param. Doubt this will be per world; seems silly.
if (event.getSpawnReason() == SpawnReason.CUSTO... | public void creatureSpawn(CreatureSpawnEvent event) {
// Check to see if the Creature is spawned by a plugin, we don't want to prevent this behaviour.
// TODO: Allow the egg thing to be a config param. Doubt this will be per world; seems silly.
if (event.getSpawnReason() == SpawnReason.CUSTO... |
diff --git a/src/commons/grails/util/GrailsUtil.java b/src/commons/grails/util/GrailsUtil.java
index db1b5d3e7..b62aa987f 100644
--- a/src/commons/grails/util/GrailsUtil.java
+++ b/src/commons/grails/util/GrailsUtil.java
@@ -1,196 +1,198 @@
/* Copyright 2004-2005 the original author or authors.
*
* Licensed under ... | true | true | public static String getEnvironment() {
GrailsApplication app = ApplicationHolder.getApplication();
String envName = null;
if(app!=null) {
envName = (String)app.getMetadata().get(GrailsApplication.ENVIRONMENT);
}
if(StringUtils.isBlank(envName))
envN... | public static String getEnvironment() {
GrailsApplication app = ApplicationHolder.getApplication();
String envName = null;
if(app!=null) {
Map metadata = app.getMetadata();
if(metadata!=null)
envName = (String)metadata.get(GrailsApplication.ENVIRONME... |
diff --git a/hamster-core/src/main/java/com/pivotal/hamster/appmaster/hnp/DefaultHnpLauncher.java b/hamster-core/src/main/java/com/pivotal/hamster/appmaster/hnp/DefaultHnpLauncher.java
index a8bb4b5..ade8c4f 100644
--- a/hamster-core/src/main/java/com/pivotal/hamster/appmaster/hnp/DefaultHnpLauncher.java
+++ b/hamster-... | true | true | public void start() {
execThread = new Thread(new Runnable() {
@Override
public void run() {
// try to launch process
Process proc;
int exitCode = -1;
try {
// exec process
proc = Runtime.getRuntime().exec(args, copyAndSetEnvs());
... | public void start() {
execThread = new Thread(new Runnable() {
@Override
public void run() {
// try to launch process
Process proc;
int exitCode = -1;
try {
// exec process
proc = Runtime.getRuntime().exec(args, copyAndSetEnvs());
... |
diff --git a/plugins/org.eclipse.acceleo.tutorial/src/org/eclipse/acceleo/tutorial/AcceleoProjectUnzipper.java b/plugins/org.eclipse.acceleo.tutorial/src/org/eclipse/acceleo/tutorial/AcceleoProjectUnzipper.java
index 6593e45..6a05bf7 100644
--- a/plugins/org.eclipse.acceleo.tutorial/src/org/eclipse/acceleo/tutorial/Acc... | true | true | public Object execute(ExecutionEvent event) throws ExecutionException {
String parameter = event.getParameter("org.eclipse.acceleo.tutorial.projectUnzipperPath");
String path = "invalid";
if ("platform:/plugin/org.eclipse.acceleo.tutorial/step-1/".equals(parameter)) {
path = "step-1";
} else if ("platform:... | public Object execute(ExecutionEvent event) throws ExecutionException {
String parameter = event.getParameter("org.eclipse.acceleo.tutorial.projectUnzipperPath");
String path = "invalid";
if ("platform:/plugin/org.eclipse.acceleo.tutorial/step-1/".equals(parameter)) {
path = "step-1";
} else if ("platform:... |
diff --git a/src/battlechallenge/Ship.java b/src/battlechallenge/Ship.java
index 6b323dd..384064d 100644
--- a/src/battlechallenge/Ship.java
+++ b/src/battlechallenge/Ship.java
@@ -1,264 +1,264 @@
package battlechallenge;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
* The ... | true | true | private Set<String> getCoordinateStrings() {
if (coords == null) {
coords = new HashSet<String>();
for (int i = 0; i < length; i++) {
switch (direction) {
case NORTH: {
coords.add((this.startPosition.row + i) + ","
+ this.startPosition.col);
} break;
case SOUTH: {
coords.add(... | public Set<String> getCoordinateStrings() {
if (coords == null) {
coords = new HashSet<String>();
for (int i = 0; i < length; i++) {
switch (direction) {
case NORTH: {
coords.add((this.startPosition.row + i) + ","
+ this.startPosition.col);
} break;
case SOUTH: {
coords.add((... |
diff --git a/src/rajawali/materials/TextureManager.java b/src/rajawali/materials/TextureManager.java
index 736bbc4f..4244df20 100644
--- a/src/rajawali/materials/TextureManager.java
+++ b/src/rajawali/materials/TextureManager.java
@@ -1,828 +1,828 @@
package rajawali.materials;
import java.io.IOException;
import j... | false | true | public TextureInfo addTexture(ByteBuffer[] buffer, Bitmap texture, int width, int height, TextureType textureType, Config bitmapConfig, boolean mipmap, boolean recycle, boolean isExistingTexture, WrapType wrapType, FilterType filterType, CompressionType compressionType, int compressionFormat) {
int bitmapFormat = bi... | public TextureInfo addTexture(ByteBuffer[] buffer, Bitmap texture, int width, int height, TextureType textureType, Config bitmapConfig, boolean mipmap, boolean recycle, boolean isExistingTexture, WrapType wrapType, FilterType filterType, CompressionType compressionType, int compressionFormat) {
int bitmapFormat = bi... |
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java
index 1bf67d0..18aa873 100644
--- a/src/com/android/contacts/ViewContactActivity.java
+++ b/src/com/android/contacts/ViewContactActivity.java
@@ -1,1438 +1,1433 @@
/*
* Copyright (C) 2007 The Android Op... | false | true | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = ... | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = ... |
diff --git a/fabric/fabric-agent/src/test/java/org/fusesource/fabric/agent/resolver/ResolverTest.java b/fabric/fabric-agent/src/test/java/org/fusesource/fabric/agent/resolver/ResolverTest.java
index 4f8e571c2..4ae8c28a4 100644
--- a/fabric/fabric-agent/src/test/java/org/fusesource/fabric/agent/resolver/ResolverTest.jav... | true | true | public void testResolve() throws Exception {
System.setProperty("karaf.data", new File("target/karaf/data").getAbsolutePath());
System.setProperty("karaf.home", new File("target/karaf").getAbsolutePath());
Properties properties = new Properties();
properties.setProperty("mvn.localRe... | public void testResolve() throws Exception {
System.setProperty("karaf.data", new File("target/karaf/data").getAbsolutePath());
System.setProperty("karaf.home", new File("target/karaf").getAbsolutePath());
Properties properties = new Properties();
properties.setProperty("mvn.localRe... |
diff --git a/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java b/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java
index a418b1cf..92655fbc 100644
--- a/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java
+++ b/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java
@@ -1,38 ... | false | true | public boolean use(Hero hero, String[] args) {
Player player = hero.getPlayer();
if (getSetting(hero.getHeroClass(), args[0].toLowerCase(), null) != null) {
try {
String[] splitArg = getSetting(hero.getHeroClass(), args[0].toLowerCase(), null).split(":");
player.t... | public boolean use(Hero hero, String[] args) {
Player player = hero.getPlayer();
if (getSetting(hero.getHeroClass(), args[0].toLowerCase(), null) != null) {
String[] splitArg = getSetting(hero.getHeroClass(), args[0].toLowerCase(), null).split(":");
player.teleport(new Locati... |
diff --git a/SimulationCore/src/simulation/core/view/ForegroundManager.java b/SimulationCore/src/simulation/core/view/ForegroundManager.java
index 9749c43..3e5d73e 100644
--- a/SimulationCore/src/simulation/core/view/ForegroundManager.java
+++ b/SimulationCore/src/simulation/core/view/ForegroundManager.java
@@ -1,52 +1... | false | true | public void setToForeground(AbstractPluginPageWrapper pageFactory) {
if(currentlyInForegroundPage != pageFactory){
if(currentlyInForegroundPage != null)
currentlyInForegroundPage.setParent(currentlyInBackgroundsParent);
pageFactory.setParent(pluginPane);
currentlyInForegroundPage = pageFactory;
plugi... | public void setToForeground(AbstractPluginPageWrapper pageFactory) {
if(currentlyInForegroundPage != pageFactory){
if(currentlyInForegroundPage != null)
currentlyInForegroundPage.setParent(currentlyInBackgroundsParent);
pageFactory.setParent(pluginPane);
currentlyInForegroundPage = pageFactory;
IStru... |
diff --git a/mmstudio/src/org/micromanager/acquisition/ChannelControlPanel.java b/mmstudio/src/org/micromanager/acquisition/ChannelControlPanel.java
index 34ab32dd7..579f4fc45 100644
--- a/mmstudio/src/org/micromanager/acquisition/ChannelControlPanel.java
+++ b/mmstudio/src/org/micromanager/acquisition/ChannelControlPa... | false | true | private void initComponents() {
fullButton = new javax.swing.JButton();
autoButton = new javax.swing.JButton();
colorPickerLabel = new javax.swing.JLabel();
channelNameCheckbox = new javax.swing.JCheckBox();
histogramPanelHolder = new javax.swing.JPanel();
zoomInButton = new java... | private void initComponents() {
fullButton = new javax.swing.JButton();
autoButton = new javax.swing.JButton();
colorPickerLabel = new javax.swing.JLabel();
channelNameCheckbox = new javax.swing.JCheckBox();
histogramPanelHolder = new javax.swing.JPanel();
zoomInButton = new java... |
diff --git a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/managers/CommandManager.java b/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/managers/CommandManager.java
index 88f92b2..cc03cfc 100644
--- a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/managers/CommandManager.java
+++ b/src/main/ja... | false | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
try
{
if (command.getName().equals("ps"))
{
Player player = null;
if (sender instanceof Player)
{
player = (... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
try
{
if (command.getName().equals("ps"))
{
Player player = null;
if (sender instanceof Player)
{
player = (... |
diff --git a/src/com/google/caja/plugin/stages/DebuggingSymbolsStage.java b/src/com/google/caja/plugin/stages/DebuggingSymbolsStage.java
index d259d909..2a2f72ca 100644
--- a/src/com/google/caja/plugin/stages/DebuggingSymbolsStage.java
+++ b/src/com/google/caja/plugin/stages/DebuggingSymbolsStage.java
@@ -1,134 +1,138 ... | true | true | public boolean apply(Jobs jobs) {
if (jobs.getPluginMeta().isDebugMode()) {
MessageQueue mq = jobs.getMessageQueue();
for (ListIterator<Job> it = jobs.getJobs().listIterator();
it.hasNext();) {
Job job = it.next();
if (job.getType() != Job.JobType.JAVASCRIPT) { continue; }
... | public boolean apply(Jobs jobs) {
if (jobs.getPluginMeta().isDebugMode()) {
MessageQueue mq = jobs.getMessageQueue();
for (ListIterator<Job> it = jobs.getJobs().listIterator();
it.hasNext();) {
Job job = it.next();
if (job.getType() != Job.JobType.JAVASCRIPT
// M... |
diff --git a/src/main/java/org/jukito/JukitoModule.java b/src/main/java/org/jukito/JukitoModule.java
index 209b8d2..fd7b24b 100644
--- a/src/main/java/org/jukito/JukitoModule.java
+++ b/src/main/java/org/jukito/JukitoModule.java
@@ -1,427 +1,429 @@
/**
* Copyright 2011 ArcBees Inc.
*
* Licensed under the Apache ... | false | true | public final void configure() {
bindScopes();
configureTest();
Set<Key<?>> keysObserved = new HashSet<Key<?>>(bindingsObserved.size());
Set<Key<?>> keysNeeded = new HashSet<Key<?>>(bindingsObserved.size());
for (BindingInfo bindingInfo : bindingsObserved) {
if (bindingInfo.key != null) {
... | public final void configure() {
bindScopes();
configureTest();
Set<Key<?>> keysObserved = new HashSet<Key<?>>(bindingsObserved.size());
Set<Key<?>> keysNeeded = new HashSet<Key<?>>(bindingsObserved.size());
for (BindingInfo bindingInfo : bindingsObserved) {
if (bindingInfo.key != null) {
... |
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java
index 3d5ac859c..e6dd623e9 100644
--- a/src/com/android/contacts/ViewContactActivity.java
+++ b/src/com/android/contacts/ViewContactActivity.java
@@ -1,1248 +1,1247 @@
/*
* Copyright (C) 2007 The Androi... | true | true | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = 0... | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = 0... |
diff --git a/basket/src/uag/basket/MainActivity.java b/basket/src/uag/basket/MainActivity.java
index 5effd8c..5c0bd9c 100644
--- a/basket/src/uag/basket/MainActivity.java
+++ b/basket/src/uag/basket/MainActivity.java
@@ -1,19 +1,17 @@
package uag.basket;
import android.app.Activity;
import android.os.Bundle;
im... | false | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
//super.loadUrl("file:///android_asset/www/barcodescanner-demo.html");//TMP
super.loadUrl("file:///android_asset/www/uag-basket-view.html");
//super.loadUrl("file:///android_asset/www/test.html"... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/uag-basket-view.html");
}
|
diff --git a/src/java/com/idega/presentation/ui/TextInput.java b/src/java/com/idega/presentation/ui/TextInput.java
index 8a33ac5e8..3c22df8d0 100755
--- a/src/java/com/idega/presentation/ui/TextInput.java
+++ b/src/java/com/idega/presentation/ui/TextInput.java
@@ -1,283 +1,283 @@
//idega 2000 - Tryggvi Larusson
/*
*... | true | true | public void _main(IWContext iwc)throws Exception{
if (getParentForm() != null){
if (isSetAsNotEmpty){
getParentForm().setOnSubmit("return checkSubmit(this)");
setCheckSubmit();
getScript().addToFunction("checkSubmit","if (warnIfEmpty (findObj('"+getName()+"'),'"+notEmptyErrorMessage+"') == false ){\nreturn ... | public void _main(IWContext iwc)throws Exception{
if (getParentForm() != null){
if (isSetAsNotEmpty){
getParentForm().setOnSubmit("return checkSubmit(this)");
setCheckSubmit();
getScript().addToFunction("checkSubmit","if (warnIfEmpty (findObj('"+getName()+"'),'"+notEmptyErrorMessage+"') == false ){\nreturn ... |
diff --git a/Sample2Client1/src/main/java/thoiyk/HumanInterfaceComponent/ProdutionRecordItem/PRitemBrowserClass.java b/Sample2Client1/src/main/java/thoiyk/HumanInterfaceComponent/ProdutionRecordItem/PRitemBrowserClass.java
index bd3b53d..fe04fbf 100644
--- a/Sample2Client1/src/main/java/thoiyk/HumanInterfaceComponent/P... | false | true | public void initializeTable()
throws KExceptionClass
{
if( mode == SRITEM_BY_SR ){
// this is a read write browsers
setBrowserSaveListener(this);
if( config... | public void initializeTable()
throws KExceptionClass
{
if( mode == SRITEM_BY_SR ){
// this is a read write browsers
setBrowserSaveListener(this);
if( config... |
diff --git a/src/org/servalproject/audio/AudioRecorder.java b/src/org/servalproject/audio/AudioRecorder.java
index 6c93c144..9f1fb40d 100644
--- a/src/org/servalproject/audio/AudioRecorder.java
+++ b/src/org/servalproject/audio/AudioRecorder.java
@@ -1,181 +1,181 @@
package org.servalproject.audio;
import java.io.I... | true | true | public void run() {
try {
prepare();
} catch (Exception e) {
Log.e(TAG, e.getMessage(), e);
return;
}
// get one block of audio at a time.
// get in byte[], even though samples are natively short[],
// as it ends up being more efficient when we hand them to
// a codec or just send them as raw P... | public void run() {
try {
prepare();
} catch (Exception e) {
Log.e(TAG, e.getMessage(), e);
return;
}
// get one block of audio at a time.
// get in byte[], even though samples are natively short[],
// as it ends up being more efficient when we hand them to
// a codec or just send them as raw P... |
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/disassembly/TCFDisassemblyBackend.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/disassembly/TCFDisassemblyBackend.java
index 0d4b19e25..cfb211383 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/in... | true | true | public void retrieveDisassembly(final BigInteger startAddress,
BigInteger endAddress, String file, int lineNumber, int lines,
final boolean mixed, final boolean showSymbols, boolean showDisassembly,
final int linesHint) {
final TCFNodeExecContext execContext = fExecContex... | public void retrieveDisassembly(final BigInteger startAddress,
BigInteger endAddress, String file, int lineNumber, int lines,
final boolean mixed, final boolean showSymbols, boolean showDisassembly,
final int linesHint) {
final TCFNodeExecContext execContext = fExecContex... |
diff --git a/hale/eu.esdihumboldt.hale.gmlwriter.test/src/eu/esdihumboldt/hale/gmlwriter/impl/internal/geometry/writers/PatternTest.java b/hale/eu.esdihumboldt.hale.gmlwriter.test/src/eu/esdihumboldt/hale/gmlwriter/impl/internal/geometry/writers/PatternTest.java
index 4f417206c..1465a726a 100644
--- a/hale/eu.esdihumbo... | true | true | private TypeDefinition createCurveType() {
// create the curve type
TypeDefinition curve = new TypeDefinition(new NameImpl(GML_NS, "CurveType"), null, null);
curve.addDeclaringElement(new SchemaElement(CURVE_ELEMENT, curve.getName(), curve, null));
// create the segments property for curve
TypeDefinition ... | private TypeDefinition createCurveType() {
// create the curve type
TypeDefinition curve = new TypeDefinition(new NameImpl(GML_NS, "CurveType"), null, null);
curve.addDeclaringElement(new SchemaElement(CURVE_ELEMENT, curve.getName(), curve, null));
// create the segments property for curve
TypeDefinition ... |
diff --git a/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/AbstractEmbeddedScpWagonWithKeyTest.java b/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/AbstractEmbeddedScpWagonWithKeyTest.java
index 49f97e02..56eed6c7 100644
--- a/wagon-p... | true | true | public void testWithSpaces()
throws Exception
{
String dir = "foo test";
File spaceDirectory = new File( TestData.getRepoPath(), dir );
if ( spaceDirectory.exists() )
{
FileUtils.deleteDirectory( spaceDirectory );
}
spaceDirectory.mkdirs();
... | public void testWithSpaces()
throws Exception
{
String dir = "foo test";
File spaceDirectory = new File( TestData.getRepoPath(), dir );
if ( spaceDirectory.exists() )
{
FileUtils.deleteDirectory( spaceDirectory );
}
spaceDirectory.mkdirs();
... |
diff --git a/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java b/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java
index 907cfcaa..b9397621 100755
--- a/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java
+++ b/src/main/java/de/cismet/cismap/commons/gui/MappingComponent.java
@... | true | true | public void setInteractionMode(final String interactionMode) {
try {
if (DEBUG) {
if (LOG.isDebugEnabled()) {
LOG.debug("setInteractionMode(" + interactionMode + ")\nAlter InteractionMode:"
+ this.interactionMode + "",
... | public void setInteractionMode(final String interactionMode) {
try {
if (DEBUG) {
if (LOG.isDebugEnabled()) {
LOG.debug("setInteractionMode(" + interactionMode + ")\nAlter InteractionMode:"
+ this.interactionMode + "",
... |
diff --git a/openengsb-link-http/src/main/java/org/openengsb/link/http/LinkHttpMarshaler.java b/openengsb-link-http/src/main/java/org/openengsb/link/http/LinkHttpMarshaler.java
index f5b191381..f85638eaa 100644
--- a/openengsb-link-http/src/main/java/org/openengsb/link/http/LinkHttpMarshaler.java
+++ b/openengsb-link-h... | false | true | public MessageExchange createExchange(HttpServletRequest request, ComponentContext context) throws Exception {
InOnly result = context.getDeliveryChannel().createExchangeFactory().createInOnlyExchange();
NormalizedMessage inMessage = result.createMessage();
String query = request.getQueryStr... | public MessageExchange createExchange(HttpServletRequest request, ComponentContext context) throws Exception {
InOnly result = context.getDeliveryChannel().createExchangeFactory().createInOnlyExchange();
NormalizedMessage inMessage = result.createMessage();
String query = request.getQueryStr... |
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
index f5b18841..524b4a1a 100644
--- a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
+++ b/src/java/org/jives... | true | true | private void showHistory(final String jid) {
SwingWorker transcriptLoader = new SwingWorker() {
public Object construct() {
String bareJID = StringUtils.parseBareAddress(jid);
return ChatTranscripts.getChatTranscript(bareJID);
}
public vo... | private void showHistory(final String jid) {
SwingWorker transcriptLoader = new SwingWorker() {
public Object construct() {
String bareJID = StringUtils.parseBareAddress(jid);
return ChatTranscripts.getChatTranscript(bareJID);
}
public vo... |
diff --git a/client/web/src/main/java/org/sagebionetworks/web/client/presenter/LayerPresenter.java b/client/web/src/main/java/org/sagebionetworks/web/client/presenter/LayerPresenter.java
index 072d1a50d..f5f3173ad 100644
--- a/client/web/src/main/java/org/sagebionetworks/web/client/presenter/LayerPresenter.java
+++ b/c... | true | true | private void step4SetLicenseAgreement() {
// get Dataset to get its EULA id
nodeService.getNodeJSON(NodeType.DATASET, model.getParentId(), new AsyncCallback<String>() {
@Override
public void onSuccess(String datasetJson) {
Dataset dataset = null;
try {
dataset = nodeModelCreator.createDataset(da... | private void step4SetLicenseAgreement() {
// get Dataset to get its EULA id
nodeService.getNodeJSON(NodeType.DATASET, model.getParentId(), new AsyncCallback<String>() {
@Override
public void onSuccess(String datasetJson) {
Dataset dataset = null;
try {
dataset = nodeModelCreator.createDataset(da... |
diff --git a/Coupling/src/coupling/app/BL/BLShopList.java b/Coupling/src/coupling/app/BL/BLShopList.java
index 76dfd39..ad0041c 100644
--- a/Coupling/src/coupling/app/BL/BLShopList.java
+++ b/Coupling/src/coupling/app/BL/BLShopList.java
@@ -1,173 +1,173 @@
package coupling.app.BL;
import org.json.JSONException;
... | true | true | public void recieveData(JSONObject data, ActionType actionType) {
try{
Ids ids = new Ids();
if(data.has(UID) && data.get(UID).equals("null"))
ids.setGlobalId(data.getLong(UID));
String itemName = null;
Integer quantity = null;
Boolean isDone = null;
if(data.has(ITEM_NAME)) itemName... | public void recieveData(JSONObject data, ActionType actionType) {
try{
Ids ids = new Ids();
if(data.has(UID) && !data.get(UID).equals("null"))
ids.setGlobalId(data.getLong(UID));
String itemName = null;
Integer quantity = null;
Boolean isDone = null;
if(data.has(ITEM_NAME)) itemNam... |
diff --git a/impl/src/main/java/org/jboss/solder/exception/control/ExceptionHandlerDispatch.java b/impl/src/main/java/org/jboss/solder/exception/control/ExceptionHandlerDispatch.java
index ca1355fc..28630cf9 100644
--- a/impl/src/main/java/org/jboss/solder/exception/control/ExceptionHandlerDispatch.java
+++ b/impl/src/... | true | true | public void executeHandlers(@Observes @Any ExceptionToCatch eventException, final BeanManager bm,
CatchExtension extension, Event<ExceptionStack> stackEvent) throws Throwable {
log.enteringExceptionHandlerDispatcher(eventException.getException());
CreationalContext<O... | public void executeHandlers(@Observes @Any ExceptionToCatch eventException, final BeanManager bm,
CatchExtension extension, Event<ExceptionStack> stackEvent) throws Throwable {
log.enteringExceptionHandlerDispatcher(eventException.getException());
CreationalContext<O... |
diff --git a/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java b/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java
index 7f2affb..a19ba7c 100644
--- a/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java
+++ b/src/uk/org/ponder/rsf/renderer/html/HeadInferringTPI.java
@@ -1,25 +1,25 @@
/*
* Creat... | true | true | public void adjustAttributes(String tag, Map attributes) {
if (tag.equals("head")) {
attributes.put(XMLLump.ID_ATTRIBUTE, XMLLump.SCR_PREFIX
+ HeadCollectingSCR.NAME);
}
}
| public void adjustAttributes(String tag, Map attributes) {
if (tag.equals("head") && attributes.get(XMLLump.ID_ATTRIBUTE) == null) {
attributes.put(XMLLump.ID_ATTRIBUTE, XMLLump.SCR_PREFIX
+ HeadCollectingSCR.NAME);
}
}
|
diff --git a/lib-core/src/test/java/org/silverpeas/quota/model/QuotaTest.java b/lib-core/src/test/java/org/silverpeas/quota/model/QuotaTest.java
index b93fbecc87..2b861960f4 100644
--- a/lib-core/src/test/java/org/silverpeas/quota/model/QuotaTest.java
+++ b/lib-core/src/test/java/org/silverpeas/quota/model/QuotaTest.ja... | true | true | public void testValidate() {
Quota quota = initializeQuota();
assertValidate(quota, true);
quota = initializeQuota();
quota.setId(null);
assertValidate(quota, true);
quota = initializeQuota();
quota.setSaveDate(null);
assertValidate(quota, true);
quota = initializeQuota();
q... | public void testValidate() {
Quota quota = initializeQuota();
assertValidate(quota, true);
quota = initializeQuota();
quota.setId(null);
assertValidate(quota, true);
quota = initializeQuota();
quota.setSaveDate(null);
assertValidate(quota, true);
quota = initializeQuota();
q... |
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/tv/TVShowBannerImageGalleryAdapter.java b/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/tv/TVShowBannerImageGalleryAdapter.java
index 0b75b115..d96b6a5d 100644
--- a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/tv/T... | false | true | public void handleMessage(Message msg) {
tvShowList = (List<TVShowSeriesInfo>) msg.obj;
if (tvShowList != null) {
if (tvShowList.isEmpty()) {
Toast.makeText(context, "No Shows found for the category: " + category, Toast.LENGTH_LONG).show();
} else {
Gallery posterGallery = (Gallery) contex... | public void handleMessage(Message msg) {
tvShowList = (List<TVShowSeriesInfo>) msg.obj;
Gallery posterGallery = (Gallery) context.findViewById(R.id.tvShowBannerGallery);
if (tvShowList != null) {
if (tvShowList.isEmpty()) {
Toast.makeText(context, "No Shows found for the category: " + category, ... |
diff --git a/Goobi/src/org/goobi/mq/ActiveMQDirector.java b/Goobi/src/org/goobi/mq/ActiveMQDirector.java
index a5814b5cc..d1b9f5070 100644
--- a/Goobi/src/org/goobi/mq/ActiveMQDirector.java
+++ b/Goobi/src/org/goobi/mq/ActiveMQDirector.java
@@ -1,223 +1,225 @@
/**
* This file is part of the Goobi Application - a Wor... | true | true | public void contextDestroyed(ServletContextEvent destruction) {
// Shut down all watchers on any queues
for (ActiveMQProcessor service : services) {
MessageConsumer watcher = service.getChecker();
if (watcher != null) {
try {
watcher.close();
} catch (JMSException e) {
logger.error(e);
... | public void contextDestroyed(ServletContextEvent destruction) {
// Shut down all watchers on any queues
for (ActiveMQProcessor service : services) {
MessageConsumer watcher = service.getChecker();
if (watcher != null) {
try {
watcher.close();
} catch (JMSException e) {
logger.error(e);
... |
diff --git a/src/com/fsck/k9/helper/ContactsSdk3_4.java b/src/com/fsck/k9/helper/ContactsSdk3_4.java
index d01f8e8..773ead7 100644
--- a/src/com/fsck/k9/helper/ContactsSdk3_4.java
+++ b/src/com/fsck/k9/helper/ContactsSdk3_4.java
@@ -1,257 +1,260 @@
package com.fsck.k9.helper;
import android.app.Activity;
import an... | false | true | public Cursor searchContacts(final CharSequence constraint)
{
final String where;
final String[] args;
if (constraint == null)
{
where = null;
args = null;
}
else
{
where = Contacts.ContactMethods.KIND + " = " + Contacts... | public Cursor searchContacts(final CharSequence constraint)
{
final String where;
final String[] args;
if (constraint == null)
{
where = null;
args = null;
}
else
{
where = Contacts.ContactMethods.KIND + " = " + Contacts... |
diff --git a/app/controllers/Ways.java b/app/controllers/Ways.java
index 3c70aeb..7a6bde7 100644
--- a/app/controllers/Ways.java
+++ b/app/controllers/Ways.java
@@ -1,29 +1,29 @@
package controllers;
import java.util.List;
import models.AccessControl;
import models.Way;
import play.mvc.Controller;
import java... | true | true | public static void search(String callback, String city, String search) {
if (city == null || search == null) {
response.status = 400;
renderJSON("{message: \"Parameters 'city' and 'search' are required.\"}");
}
Date start = new Date();
String referentialCode =... | public static void search(String callback, String city, String search) {
if (city == null || search == null || city.trim().equals("") || search.trim().equals("")) {
response.status = 400;
renderJSON("{message: \"Parameters 'city' and 'search' are required.\"}");
}
Dat... |
diff --git a/src/main/java/dk/statsbiblioteket/medieplatform/bitrepository/ingester/Ingester.java b/src/main/java/dk/statsbiblioteket/medieplatform/bitrepository/ingester/Ingester.java
index e47d3cc..6ee39a2 100644
--- a/src/main/java/dk/statsbiblioteket/medieplatform/bitrepository/ingester/Ingester.java
+++ b/src/main... | false | true | public static void main(String[] args) {
int exitCode = -1;
try {
verifyInputParams(args);
} catch (ClientFailureException e) {
System.out.println(e.getMessage());
System.exit(e.getExitCode().getCode());
}
FilePutter putter = null;
Sys... | public static void main(String[] args) {
int exitCode = -1;
try {
verifyInputParams(args);
} catch (ClientFailureException e) {
System.out.println(e.getMessage());
System.exit(e.getExitCode().getCode());
}
FilePutter putter = null;
Sys... |
diff --git a/src/org/broad/igv/ui/PreferencesEditor.java b/src/org/broad/igv/ui/PreferencesEditor.java
index f06e6d21..815fd0ab 100644
--- a/src/org/broad/igv/ui/PreferencesEditor.java
+++ b/src/org/broad/igv/ui/PreferencesEditor.java
@@ -1,3019 +1,3018 @@
/*
* Copyright (c) 2007-2011 by The Broad Institute, Inc. an... | false | true | private void initComponents() {
tabbedPane = new JTabbedPane();
generalPanel = new JPanel();
jPanel10 = new JPanel();
missingDataExplanation = new JLabel();
showMissingDataCB = new JCheckBox();
combinePanelsCB = new JCheckBox();
showAttributesDisplayCheckBox =... | private void initComponents() {
tabbedPane = new JTabbedPane();
generalPanel = new JPanel();
jPanel10 = new JPanel();
missingDataExplanation = new JLabel();
showMissingDataCB = new JCheckBox();
combinePanelsCB = new JCheckBox();
showAttributesDisplayCheckBox =... |
diff --git a/src/streamfish/MainMenu.java b/src/streamfish/MainMenu.java
index 68080ea..8a8ec34 100644
--- a/src/streamfish/MainMenu.java
+++ b/src/streamfish/MainMenu.java
@@ -1,401 +1,401 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package streamfish;
... | false | true | private void initComponents() {
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
... | private void initComponents() {
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
... |
diff --git a/engine/src/main/java/org/archive/crawler/restlet/BeanBrowseResource.java b/engine/src/main/java/org/archive/crawler/restlet/BeanBrowseResource.java
index d0e8b87..a9bc596 100644
--- a/engine/src/main/java/org/archive/crawler/restlet/BeanBrowseResource.java
+++ b/engine/src/main/java/org/archive/crawler/res... | true | true | protected void writeHtml(Writer writer) {
PrintWriter pw = new PrintWriter(writer);
pw.println("<head><title>Crawl beans in "+cj.getShortName()+"</title></head>");
pw.println("<h1>Crawl beans in built job <i><a href='/engine/job/"
+TextUtils.urlEscape(cj.getShortName())
... | protected void writeHtml(Writer writer) {
PrintWriter pw = new PrintWriter(writer);
pw.println("<head><title>Crawl beans in "+cj.getShortName()+"</title></head>");
pw.println("<h1>Crawl beans in built job <i><a href='/engine/job/"
+TextUtils.urlEscape(cj.getShortName())
... |
diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java b/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java
index e0fc610..dd3d2e5 100644
--- a/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java
+++ b/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java
@@ -1,8... | false | true | private boolean parseObject() throws IOException
{
int currentObjByteOffset = pdfSource.getOffset();
boolean isEndOfFile = false;
skipSpaces();
//peek at the next character to determine the type of object we are parsing
char peekedChar = (char)pdfSource.peek();
... | private boolean parseObject() throws IOException
{
int currentObjByteOffset = pdfSource.getOffset();
boolean isEndOfFile = false;
skipSpaces();
//peek at the next character to determine the type of object we are parsing
char peekedChar = (char)pdfSource.peek();
... |
diff --git a/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java b/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/AbstractGenerateCodeCommand.java
index af3a8d36..8f61ce67 100644
--- a/plugins/org.jboss.tools.ws.... | false | true | public IStatus execute(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
IStatus status = Status.OK_STATUS;
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
model.getWebProjectName());
String projectRoot = JBossWSCreationUtils.getProjectRoot(
model.getWebP... | public IStatus execute(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
IStatus status = Status.OK_STATUS;
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
model.getWebProjectName());
String projectRoot = JBossWSCreationUtils.getProjectRoot(
model.getWebP... |
diff --git a/esup-ecm-dashboard-web-springmvc-portlet/src/main/java/org/esup/ecm/dashboard/web/taglib/IntranetTagLib.java b/esup-ecm-dashboard-web-springmvc-portlet/src/main/java/org/esup/ecm/dashboard/web/taglib/IntranetTagLib.java
index 160e354..841ff24 100644
--- a/esup-ecm-dashboard-web-springmvc-portlet/src/main/j... | false | true | public static String getDublinCoreProperty(PropertyMap map, String name){
if(dateColumns.contains(name)){
Date d = DateParser.parseDate(map.getString("dc:"+name));
return sdf.format(d);
}
return map.getString("dc:"+name);
}
| public static String getDublinCoreProperty(PropertyMap map, String name){
if(dateColumns.contains(name)){
Date d = DateParser.parseDate(map.getString("dc:"+name));
return sdf.format(d);
}
String rtnValue = map.getString("dc:"+name);
if(rtnValue == null || rtnValue.equals("null"))
return "";
re... |
diff --git a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionCancel.java b/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionCancel.java
index 44f15f2..b96b0c1 100644
--- a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionCancel.java
+++ b/src/net/invisioncraft/plugins/sa... | false | true | public boolean execute(CommandSender sender, Command command, String label, String[] args) {
Locale locale = plugin.getLocaleHandler().getLocale(sender);
if((sender instanceof Player)) {
if(!sender.hasPermission("salesmania.auction.cancel") | (Player)sender != plugin.getAuction().getOwne... | public boolean execute(CommandSender sender, Command command, String label, String[] args) {
Locale locale = plugin.getLocaleHandler().getLocale(sender);
boolean hasPermission = false;
if((sender instanceof Player)) {
if(sender == plugin.getAuction().getOwner() | sender.hasPermis... |
diff --git a/h2spatial-ext/src/main/java/org/h2gis/h2spatialext/function/spatial/edit/ST_RemoveRepeatedPoints.java b/h2spatial-ext/src/main/java/org/h2gis/h2spatialext/function/spatial/edit/ST_RemoveRepeatedPoints.java
index 930807aa..78b1b036 100644
--- a/h2spatial-ext/src/main/java/org/h2gis/h2spatialext/function/spa... | true | true | public static Geometry removeDuplicateCoordinates(Geometry geom) {
if (geom.isEmpty()) {
return geom;
} else if (geom instanceof Point || geom instanceof MultiPoint) {
return geom;
} else if (geom instanceof LineString) {
return removeDuplicateCoordinates(... | public static Geometry removeDuplicateCoordinates(Geometry geom) {
if(geom ==null){
return null;
}
else if (geom.isEmpty()) {
return geom;
} else if (geom instanceof Point || geom instanceof MultiPoint) {
return geom;
} else if (geom instan... |
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
index 65f833f..e76d079 100644
--- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
@@ -1,223 +1,226 @@
/*
* YUI Com... | true | true | public void compress(Writer out, int linebreakpos)
throws IOException {
Set keys;
Pattern p;
Matcher m;
String css;
Iterator it;
StringBuffer sb, regexp;
int startIndex, endIndex;
// Remove all comment blocks...
sb = new StringBuf... | public void compress(Writer out, int linebreakpos)
throws IOException {
Set keys;
Pattern p;
Matcher m;
String css;
Iterator it;
StringBuffer sb, regexp;
int startIndex, endIndex;
// Remove all comment blocks...
sb = new StringBuf... |
diff --git a/araqne-logdb/src/main/java/org/araqne/logdb/metadata/MemoryMetadataProvider.java b/araqne-logdb/src/main/java/org/araqne/logdb/metadata/MemoryMetadataProvider.java
index 3f5b2038..29ed56fc 100644
--- a/araqne-logdb/src/main/java/org/araqne/logdb/metadata/MemoryMetadataProvider.java
+++ b/araqne-logdb/src/m... | true | true | public void query(QueryContext context, String queryString, MetadataCallback callback) {
Map<String, Object> heap = new HashMap<String, Object>();
Runtime runtime = Runtime.getRuntime();
heap.put("type", "heap");
heap.put("free", runtime.freeMemory());
heap.put("total", runtime.totalMemory());
callback.onP... | public void query(QueryContext context, String queryString, MetadataCallback callback) {
Map<String, Object> heap = new HashMap<String, Object>();
Runtime runtime = Runtime.getRuntime();
heap.put("type", "heap");
heap.put("free", runtime.freeMemory());
heap.put("total", runtime.totalMemory());
callback.onP... |
diff --git a/src/java/com/sapienter/jbilling/server/mediation/task/SaveToJDBCMediationErrorHandler.java b/src/java/com/sapienter/jbilling/server/mediation/task/SaveToJDBCMediationErrorHandler.java
index 04bc723e..7431b866 100644
--- a/src/java/com/sapienter/jbilling/server/mediation/task/SaveToJDBCMediationErrorHandler... | false | true | public void process(Record record, List<String> errors, Date processingTime, MediationConfiguration mediationConfiguration) throws TaskException {
if (mediationConfiguration != null && getParameter(PARAM_MEDIATION_CONFIGURATION_ID.getName(), (String) null) != null) {
try {
Intege... | public void process(Record record, List<String> errors, Date processingTime, MediationConfiguration mediationConfiguration) throws TaskException {
if (mediationConfiguration != null && getParameter(PARAM_MEDIATION_CONFIGURATION_ID.getName(), (String) null) != null) {
try {
Intege... |
diff --git a/addon/src/test/java/com/vaadin/addon/charts/demoandtestapp/columnandbar/ColumnWithDrilldown.java b/addon/src/test/java/com/vaadin/addon/charts/demoandtestapp/columnandbar/ColumnWithDrilldown.java
index 56fef9b1..5744cf85 100644
--- a/addon/src/test/java/com/vaadin/addon/charts/demoandtestapp/columnandbar/C... | false | true | protected Component getChart() {
Chart chart = new Chart(ChartType.COLUMN);
Color[] colors = new VaadinTheme().getColors();
Configuration conf = chart.getConfiguration();
conf.setTitle("Browser market share, April, 2011");
conf.setSubTitle("Click the columns to view version... | protected Component getChart() {
final Chart chart = new Chart(ChartType.COLUMN);
Color[] colors = new VaadinTheme().getColors();
final Configuration conf = chart.getConfiguration();
conf.setTitle("Browser market share, April, 2011");
conf.setSubTitle("Click the columns to ... |
diff --git a/src/org/apache/xalan/xsltc/compiler/Mode.java b/src/org/apache/xalan/xsltc/compiler/Mode.java
index 876e2e96..ec1627d6 100644
--- a/src/org/apache/xalan/xsltc/compiler/Mode.java
+++ b/src/org/apache/xalan/xsltc/compiler/Mode.java
@@ -1,901 +1,903 @@
/*
* @(#)$Id$
*
* The Apache Software License, Ver... | false | true | public void compileApplyTemplates(ClassGenerator classGen) {
final XSLTC xsltc = classGen.getParser().getXSLTC();
final ConstantPoolGen cpg = classGen.getConstantPool();
final Vector names = xsltc.getNamesIndex();
// (*) Create the applyTemplates() method
final de.fub.bytecode.generic.Type[] argTypes =
... | public void compileApplyTemplates(ClassGenerator classGen) {
final XSLTC xsltc = classGen.getParser().getXSLTC();
final ConstantPoolGen cpg = classGen.getConstantPool();
final Vector names = xsltc.getNamesIndex();
// (*) Create the applyTemplates() method
final de.fub.bytecode.generic.Type[] argTypes =
... |
diff --git a/job/command/src/main/java/org/talend/esb/job/command/RunCommand.java b/job/command/src/main/java/org/talend/esb/job/command/RunCommand.java
index d99bee3d8..fd9232f53 100644
--- a/job/command/src/main/java/org/talend/esb/job/command/RunCommand.java
+++ b/job/command/src/main/java/org/talend/esb/job/command... | true | true | public Object doExecute() throws Exception {
String[] arguments = null;
if (args != null) {
arguments = args.split(" ");
}
controller.run(job, arguments);
return null;
}
| public Object doExecute() throws Exception {
String[] arguments = null;
if (args != null) {
arguments = args.split(" ");
}
if (arguments == null) {
arguments = new String[0];
}
controller.run(job, arguments);
return null;
}
|
diff --git a/src/eu/alefzero/owncloud/ui/adapter/FileListListAdapter.java b/src/eu/alefzero/owncloud/ui/adapter/FileListListAdapter.java
index fc28e1f..6008d16 100644
--- a/src/eu/alefzero/owncloud/ui/adapter/FileListListAdapter.java
+++ b/src/eu/alefzero/owncloud/ui/adapter/FileListListAdapter.java
@@ -1,158 +1,158 @@... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
View view = convertView;
if (view == null) {
LayoutInflater inflator = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflator.inflate(R.layout.li... | public View getView(int position, View convertView, ViewGroup parent) {
View view = convertView;
if (view == null) {
LayoutInflater inflator = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflator.inflate(R.layout.li... |
diff --git a/src/main/java/de/minestar/castaway/listener/RegisterListener.java b/src/main/java/de/minestar/castaway/listener/RegisterListener.java
index 93647e9..98b54e5 100644
--- a/src/main/java/de/minestar/castaway/listener/RegisterListener.java
+++ b/src/main/java/de/minestar/castaway/listener/RegisterListener.java... | false | true | public void onPlayerInteract(PlayerInteractEvent event) {
// only some actions are handled
if (event.getAction() != Action.LEFT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_BLOCK) {
return;
}
// is the ItemInHand correct?
if (event.getPlayer().getItemIn... | public void onPlayerInteract(PlayerInteractEvent event) {
// only some actions are handled
if (event.getAction() != Action.LEFT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_BLOCK) {
return;
}
// is the ItemInHand correct?
if (event.getPlayer().getItemIn... |
diff --git a/src/xmlvm/org/xmlvm/proc/out/DEXmlvmOutputProcess.java b/src/xmlvm/org/xmlvm/proc/out/DEXmlvmOutputProcess.java
index 4e566962..b126d404 100644
--- a/src/xmlvm/org/xmlvm/proc/out/DEXmlvmOutputProcess.java
+++ b/src/xmlvm/org/xmlvm/proc/out/DEXmlvmOutputProcess.java
@@ -1,838 +1,838 @@
/*
* Copyright (c)... | false | true | private static void processInstruction(DalvInsn instruction, Element codeElement,
Set<Integer> targets, Map<Integer, SwitchData> switchDataBlocks) {
Element dexInstruction = null;
if (instruction.hasAddress()) {
int address = instruction.getAddress();
if (target... | private static void processInstruction(DalvInsn instruction, Element codeElement,
Set<Integer> targets, Map<Integer, SwitchData> switchDataBlocks) {
Element dexInstruction = null;
if (instruction.hasAddress()) {
int address = instruction.getAddress();
if (target... |
diff --git a/Economy/src/iggy/Economy/Economy.java b/Economy/src/iggy/Economy/Economy.java
index 700ef77..68d890f 100644
--- a/Economy/src/iggy/Economy/Economy.java
+++ b/Economy/src/iggy/Economy/Economy.java
@@ -1,546 +1,554 @@
/******************************************************************************\
| ... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
//World world = player.getWorld();
/************************************ SHOP ************************************\
| ... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
//World world = player.getWorld();
/************************************ SHOP ************************************\
| ... |
diff --git a/src/main/groovy/nl/javadude/gradle/plugins/license/maven/LicenseCheckMojo.java b/src/main/groovy/nl/javadude/gradle/plugins/license/maven/LicenseCheckMojo.java
index 93d01d5..2212e53 100644
--- a/src/main/groovy/nl/javadude/gradle/plugins/license/maven/LicenseCheckMojo.java
+++ b/src/main/groovy/nl/javadud... | true | true | public void onHeaderNotFound(Document document, Header header) {
if (skipExistingHeaders) {
logger.lifecycle("Ignoring header in: {}", DocumentFactory.getRelativeFile(basedir, document));
return;
} else {
logger.lifecycle("Missing header in: {}", DocumentFactory.g... | public void onHeaderNotFound(Document document, Header header) {
document.parseHeader();
if (document.headerDetected() && skipExistingHeaders) {
logger.lifecycle("Ignoring header in: {}", DocumentFactory.getRelativeFile(basedir, document));
return;
} else {
... |
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/MergeOp.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/MergeOp.java
index a59a21641..9715d9c47 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/git/MergeOp.java
+++ b/gerrit-server/src/main/java/com/google/gerrit/ser... | true | true | private ListMultimap<SubmitType, Change> validateChangeList(
final List<Change> submitted) throws MergeException {
final ListMultimap<SubmitType, Change> toSubmit =
ArrayListMultimap.create();
final Set<ObjectId> tips = new HashSet<ObjectId>();
for (final Ref r : repo.getAllRefs().values())... | private ListMultimap<SubmitType, Change> validateChangeList(
final List<Change> submitted) throws MergeException {
final ListMultimap<SubmitType, Change> toSubmit =
ArrayListMultimap.create();
final Set<ObjectId> tips = new HashSet<ObjectId>();
for (final Ref r : repo.getAllRefs().values())... |
diff --git a/src/spia1001/InvFall/InvFallPlayerListener.java b/src/spia1001/InvFall/InvFallPlayerListener.java
index 84a360e..24772a2 100644
--- a/src/spia1001/InvFall/InvFallPlayerListener.java
+++ b/src/spia1001/InvFall/InvFallPlayerListener.java
@@ -1,47 +1,47 @@
package spia1001.InvFall;
import org.bukkit.ChatC... | false | true | public void onPlayerJoin(PlayerJoinEvent event)
{
Player player = event.getPlayer();
if(plugin.permissionWrapper.hasPermission(player,PermissionWrapper.NODE_INVFALL))
if(playerManager.playerIsEnabled(player))
event.setJoinMessage(ChatColor.GREEN + "InvFall is Enabled");
else
event.setJoinMessage(Cha... | public void onPlayerJoin(PlayerJoinEvent event)
{
Player player = event.getPlayer();
if(plugin.permissionWrapper.hasPermission(player,PermissionWrapper.NODE_INVFALL))
if(playerManager.playerIsEnabled(player))
player.sendMessage(ChatColor.GREEN + "InvFall is Enabled");
else
player.sendMessage(ChatCol... |
diff --git a/src/main/java/com/github/ucchyocean/ct/listener/PlayerDeathListener.java b/src/main/java/com/github/ucchyocean/ct/listener/PlayerDeathListener.java
index a0e6c92..6e8a320 100644
--- a/src/main/java/com/github/ucchyocean/ct/listener/PlayerDeathListener.java
+++ b/src/main/java/com/github/ucchyocean/ct/liste... | false | true | public void onPlayerDeath(PlayerDeathEvent event) {
// 倒された人を取得
Player deader = event.getEntity();
ColorTeamingConfig config = plugin.getCTConfig();
ColorTeamingAPI api = plugin.getAPI();
HashMap<String, int[]> killDeathUserCounts = api.getKillDeathUserCounts();
... | public void onPlayerDeath(PlayerDeathEvent event) {
// 倒された人を取得
Player deader = event.getEntity();
ColorTeamingConfig config = plugin.getCTConfig();
ColorTeamingAPI api = plugin.getAPI();
HashMap<String, int[]> killDeathUserCounts = api.getKillDeathUserCounts();
... |
diff --git a/Tricorder/src/org/hermit/tricorder/ImageAtom.java b/Tricorder/src/org/hermit/tricorder/ImageAtom.java
index 54ab388..bee0870 100644
--- a/Tricorder/src/org/hermit/tricorder/ImageAtom.java
+++ b/Tricorder/src/org/hermit/tricorder/ImageAtom.java
@@ -1,272 +1,279 @@
/**
* Tricorder: turn your phone into ... | true | true | private void imageLoaded(URL url, File path) {
// If we don't have a size yet, forget it.
if (imageWidth == 0 || imageHeight == 0)
return;
// Load the bitmap. If if fails, tell the cache we have a
// corrupted file.
Bitmap img = BitmapFactory.decodeFile(path.getPath());
if (img == null) {
// Mayb... | private void imageLoaded(URL url, File path) {
// If we don't have a size yet, forget it.
if (imageWidth == 0 || imageHeight == 0)
return;
// Load the bitmap. If if fails, tell the cache we have a
// corrupted file.
Bitmap img = null;
try {
img = BitmapFactory.decodeFile(path.getPath());... |
diff --git a/src/org/openjump/core/attributeoperations/AttributeOp.java b/src/org/openjump/core/attributeoperations/AttributeOp.java
index c9656bed..0bd263d2 100644
--- a/src/org/openjump/core/attributeoperations/AttributeOp.java
+++ b/src/org/openjump/core/attributeoperations/AttributeOp.java
@@ -1,341 +1,338 @@
/*
... | false | true | public static double evaluateAttributes(int attributeOp, List features, String attributeName){
double result= Double.NaN;
if (features.size() > 0){
Feature firstF = (Feature)features.get(0);
FeatureSchema fs = firstF.getSchema();
if (fs.hasAttribute(attributeName)... | public static double evaluateAttributes(int attributeOp, List features, String attributeName){
double result= Double.NaN;
if (features.size() > 0){
Feature firstF = (Feature)features.get(0);
FeatureSchema fs = firstF.getSchema();
if (fs.hasAttribute(attributeName)... |
diff --git a/src/main/java/com/mojang/minecraft/SkinDownloadThread.java b/src/main/java/com/mojang/minecraft/SkinDownloadThread.java
index c741c73..a728ad9 100644
--- a/src/main/java/com/mojang/minecraft/SkinDownloadThread.java
+++ b/src/main/java/com/mojang/minecraft/SkinDownloadThread.java
@@ -1,52 +1,52 @@
package ... | true | true | public void run() {
if (minecraft.session != null) {
HttpURLConnection connection = null;
try {
connection = (HttpURLConnection) new URL(skinServer + minecraft.session.username
+ ".png").openConnection();
connection.addRequestProperty("User-Agent", "Mozilla/4.76");
connection.setDoInput(true... | public void run() {
if (minecraft.session != null) {
HttpURLConnection connection = null;
try {
connection = (HttpURLConnection) new URL(skinServer + minecraft.session.username
+ ".png").openConnection();
connection.addRequestProperty("User-Agent", "Mozilla/4.76");
connection.setDoInput(true... |
diff --git a/src/main/java/uk/co/brotherlogic/mdb/vgadd/VGAdd.java b/src/main/java/uk/co/brotherlogic/mdb/vgadd/VGAdd.java
index 477d60c..f6dc164 100644
--- a/src/main/java/uk/co/brotherlogic/mdb/vgadd/VGAdd.java
+++ b/src/main/java/uk/co/brotherlogic/mdb/vgadd/VGAdd.java
@@ -1,91 +1,94 @@
package uk.co.brotherlogic.m... | false | true | public void run(File f) throws IOException, SQLException
{
// For testing
Connect.setForDevMode();
// Read the generic information
BufferedReader reader = new BufferedReader(new FileReader(f));
String header = reader.readLine();
String[] elems = header.trim().split("~");
... | public void run(File f) throws IOException, SQLException
{
// For testing
// Connect.setForDevMode();
// Read the generic information
BufferedReader reader = new BufferedReader(new FileReader(f));
String header = reader.readLine();
String[] elems = header.trim().split("~");
... |
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/content/XMLContentDescriber.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/content/XMLContentDescriber.java
index 64b708a51..3717afa53 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/content/XM... | true | true | public int describe(InputStream input, IContentDescription description) throws IOException {
byte[] bom = getByteOrderMark(input);
String xmlDeclEncoding = "UTF-8"; //$NON-NLS-1$
input.reset();
if (bom != null) {
if (bom == IContentDescription.BOM_UTF_16BE)
xmlDeclEncoding = "UTF-16BE"; //$NON-NLS-1$
... | public int describe(InputStream input, IContentDescription description) throws IOException {
byte[] bom = getByteOrderMark(input);
String xmlDeclEncoding = "UTF-8"; //$NON-NLS-1$
input.reset();
if (bom != null) {
if (bom == IContentDescription.BOM_UTF_16BE)
xmlDeclEncoding = "UTF-16BE"; //$NON-NLS-1$
... |
diff --git a/src/org/eclipse/core/internal/resources/Workspace.java b/src/org/eclipse/core/internal/resources/Workspace.java
index b4ce25d6..82045483 100644
--- a/src/org/eclipse/core/internal/resources/Workspace.java
+++ b/src/org/eclipse/core/internal/resources/Workspace.java
@@ -1,2065 +1,2062 @@
/*****************... | false | true | public IStatus validateLinkLocation(IResource resource, IPath unresolvedLocation) {
//check that the resource has a project as its parent
String message;
IContainer parent = resource.getParent();
if (parent == null || parent.getType() != IResource.PROJECT) {
message = Policy.bind("links.parentNotProject", resourc... | public IStatus validateLinkLocation(IResource resource, IPath unresolvedLocation) {
//check that the resource has a project as its parent
String message;
IContainer parent = resource.getParent();
if (parent == null || parent.getType() != IResource.PROJECT) {
message = Policy.bind("links.parentNotProject", resourc... |
diff --git a/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/text/correction/QuickFixProcessor.java b/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/text/correction/QuickFixProcessor.java
index 38a245af..68cefa17 100644
--- a/com.aptana.rdt.ui/src/com/aptana/rdt/internal/ui/text/correction/QuickFixProcessor.java
+++... | false | true | private void process(IInvocationContext context, IProblemLocation problem, Collection<IRubyCompletionProposal> proposals) throws CoreException {
int id = problem.getProblemId();
if (id == 0) { // no proposals for none-problem locations
return;
}
switch (id) {
case IProblem.UnusedPrivateMethod:
case IPro... | private void process(IInvocationContext context, IProblemLocation problem, Collection<IRubyCompletionProposal> proposals) throws CoreException {
int id = problem.getProblemId();
if (id == 0) { // no proposals for none-problem locations
return;
}
switch (id) {
case IProblem.UnusedPrivateMethod:
case IPro... |
diff --git a/src/com/android/email/activity/MessageListItem.java b/src/com/android/email/activity/MessageListItem.java
index d69ab18b..8d6eaea8 100644
--- a/src/com/android/email/activity/MessageListItem.java
+++ b/src/com/android/email/activity/MessageListItem.java
@@ -1,507 +1,511 @@
/*
* Copyright (C) 2009 The An... | false | true | protected void onDraw(Canvas canvas) {
if (mSnippetLineCount == NEEDS_LAYOUT) {
calculateDrawingData();
}
// Snippet starts at right of checkbox
int snippetX = sCheckboxHitWidth;
int snippetY;
int lineHeight = (int)sDefaultPaint.getFontSpacing() + sPadding... | protected void onDraw(Canvas canvas) {
if (mSnippetLineCount == NEEDS_LAYOUT) {
calculateDrawingData();
}
// Snippet starts at right of checkbox
int snippetX = sCheckboxHitWidth;
int snippetY;
int lineHeight = (int)sDefaultPaint.getFontSpacing() + sPadding... |
diff --git a/src/main/java/de/tudarmstadt/ukp/shibhttpclient/ShibHttpClient.java b/src/main/java/de/tudarmstadt/ukp/shibhttpclient/ShibHttpClient.java
index 020a91a..6713c46 100644
--- a/src/main/java/de/tudarmstadt/ukp/shibhttpclient/ShibHttpClient.java
+++ b/src/main/java/de/tudarmstadt/ukp/shibhttpclient/ShibHttpCli... | true | true | public void process(HttpResponse res, HttpContext ctx)
throws HttpException, IOException
{
HttpRequest originalRequest;
// check for RequestWrapper objects, retrieve the original request
if (ctx.getAttribute("http.request") instanceof HttpRequestWrapper) {... | public void process(HttpResponse res, HttpContext ctx)
throws HttpException, IOException
{
HttpRequest originalRequest;
// check for RequestWrapper objects, retrieve the original request
if (ctx.getAttribute("http.request") instanceof HttpRequestWrapper) {... |
diff --git a/source/RMG/RMG.java b/source/RMG/RMG.java
index ab3317e3..3ac4da42 100644
--- a/source/RMG/RMG.java
+++ b/source/RMG/RMG.java
@@ -1,235 +1,235 @@
////////////////////////////////////////////////////////////////////////////////
//
// RMG - Reaction Mechanism Generator
//
// Copyright (c) 2002-2011 Prof... | true | true | public static void main(String[] args) {
// Initialize the logger
Logger.initialize();
// Log the RMG header
Logger.logHeader();
try {
// Record the time at which RMG was started (so we can periodically
// print the elapsed time)
Gl... | public static void main(String[] args) {
// Initialize the logger
Logger.initialize();
// Log the RMG header
Logger.logHeader();
try {
// Record the time at which RMG was started (so we can periodically
// print the elapsed time)
Gl... |
diff --git a/src/com/hersan/bablrr/Message.java b/src/com/hersan/bablrr/Message.java
index b01bbf7..30d678a 100644
--- a/src/com/hersan/bablrr/Message.java
+++ b/src/com/hersan/bablrr/Message.java
@@ -1,188 +1,186 @@
package com.hersan.bablrr;
import processing.core.PApplet;
import processing.core.PImage;
import ... | false | true | private int placeWords(int width_, int height_) {
/// DEBUG
//System.out.println("!!!!!!!: from placeWords : "+width_+" x "+height_);
// init graphic
PGraphics theGraphic = myProcessing.createGraphics(width_, height_, PApplet.JAVA2D);
theGraphic.beginDraw();
theGraphic.background(0xffffffff);
// keep t... | private int placeWords(int width_, int height_) {
/// DEBUG
//System.out.println("!!!!!!!: from placeWords : "+width_+" x "+height_);
// init graphic
PGraphics theGraphic = myProcessing.createGraphics(width_, height_, PApplet.JAVA2D);
theGraphic.beginDraw();
theGraphic.background(0xffffffff);
// keep t... |
diff --git a/src/jothello/Ai.java b/src/jothello/Ai.java
index c24a120..7caa901 100644
--- a/src/jothello/Ai.java
+++ b/src/jothello/Ai.java
@@ -1,60 +1,63 @@
package jothello;
import java.awt.Point;
import java.util.ArrayList;
import org.luaj.vm2.Globals;
import org.luaj.vm2.LuaTable;
import org.luaj.vm2.L... | true | true | public Ai(int algo_type) {
String script = "lib/ai.lua";
// create an environment to run in
globals = JsePlatform.standardGlobals();
globals.load(new aif());
// Use the convenience function on the globals to load a chunk.
LuaValue chunk = globals.loadFile(script);
// Use any of the "call()" or "... | public Ai(int algo_type) {
String script = "lib/ai.lua";
// create an environment to run in
globals = JsePlatform.standardGlobals();
globals.load(new aif());
// Use the convenience function on the globals to load a chunk.
LuaValue chunk = globals.loadFile(script);
// Use any of the "call()" or "... |
diff --git a/src/me/libraryaddict/Hungergames/Commands/BuyKit.java b/src/me/libraryaddict/Hungergames/Commands/BuyKit.java
index 8edab5c..a4d83b0 100644
--- a/src/me/libraryaddict/Hungergames/Commands/BuyKit.java
+++ b/src/me/libraryaddict/Hungergames/Commands/BuyKit.java
@@ -1,55 +1,55 @@
package me.libraryaddict.Hun... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Gamer gamer = pm.getGamer(sender.getName());
if (args.length > 0) {
me.libraryaddict.Hungergames.Types.Kit kit = kits.getKitByName(StringUtils.join(args, " "));
if (kit != null) ... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Gamer gamer = pm.getGamer(sender.getName());
if (args.length > 0) {
me.libraryaddict.Hungergames.Types.Kit kit = kits.getKitByName(StringUtils.join(args, " "));
if (kit != null) ... |
diff --git a/nevernote-core/src/main/java/devoxx/core/controllers/NotesController.java b/nevernote-core/src/main/java/devoxx/core/controllers/NotesController.java
index d384130..70e916c 100644
--- a/nevernote-core/src/main/java/devoxx/core/controllers/NotesController.java
+++ b/nevernote-core/src/main/java/devoxx/core/... | false | true | public Note update(@PathParam("id") final Long id,
@FormParam("title") final String title,
@FormParam("content") final String content,
@FormParam("done") final Boolean done) {
return NotesModel.DB.withConnection(new F.Function<Connectio... | public Note update(@PathParam("id") final Long id,
@FormParam("title") final String title,
@FormParam("content") final String content,
@FormParam("done") final Boolean done) {
return NotesModel.DB.withConnection(new F.Function<Connectio... |
diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
index 504f2b927..7be16e8dd 100644
--- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
+++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
@@ -1,636 +1,638 @@
/* ***********... | true | true | private static boolean configureBuildOptions( AjBuildConfig config, BuildOptionsAdapter options, IMessageHandler handler) {
LangUtil.throwIaxIfNull(options, "options");
LangUtil.throwIaxIfNull(config, "config");
Map optionsToSet = new HashMap();
LangUtil.throwIaxIfNull(optionsToSet, "javaOpti... | private static boolean configureBuildOptions( AjBuildConfig config, BuildOptionsAdapter options, IMessageHandler handler) {
LangUtil.throwIaxIfNull(options, "options");
LangUtil.throwIaxIfNull(config, "config");
Map optionsToSet = new HashMap();
LangUtil.throwIaxIfNull(optionsToSet, "javaOpti... |
diff --git a/plugins/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/internal/SubtaskHistory.java b/plugins/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/internal/SubtaskHistory.java
index 8b242d7b0..0fd47a9be 100644
--- a/plugins/org.eclipse.birt.core.ui/src/or... | false | true | public ToolBar createHistoryControls( ToolBar historyBar,
ToolBarManager manager )
{
historyToolbar = manager;
/**
* Superclass of the two for-/backward actions for the history.
*/
abstract class HistoryNavigationAction extends Action
implements
IMenuCreator
{
private Menu lastMenu;
... | public ToolBar createHistoryControls( ToolBar historyBar,
ToolBarManager manager )
{
historyToolbar = manager;
/**
* Superclass of the two for-/backward actions for the history.
*/
abstract class HistoryNavigationAction extends Action
implements
IMenuCreator
{
private Menu lastMenu;
... |
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/DispatchTask.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/DispatchTask.java
index dcd12283b..bbb7837c3 100644
--- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/Disp... | true | true | public void dispatchAndHandleExceptions () {
try {
dispatch();
} catch (Throwable t) {
logger.error("Unexpected exception while processing message " + sipServletMessage, t);
if(sipServletMessage instanceof SipServletRequestImpl) {
SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) s... | public void dispatchAndHandleExceptions () {
try {
dispatch();
} catch (Throwable t) {
logger.error("Unexpected exception while processing message " + sipServletMessage, t);
if(sipServletMessage instanceof SipServletRequestImpl) {
SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) s... |
diff --git a/cspi-services/src/main/java/org/collectionspace/chain/csp/persistence/services/GenericStorage.java b/cspi-services/src/main/java/org/collectionspace/chain/csp/persistence/services/GenericStorage.java
index 3fdd9229..59544c49 100644
--- a/cspi-services/src/main/java/org/collectionspace/chain/csp/persistence... | true | true | public void updateJSON(ContextualisedStorage root,CSPRequestCredentials creds,CSPRequestCache cache,String filePath, JSONObject jsonObject,Record thisr, String serviceurl)
throws ExistException, UnimplementedException, UnderlyingStorageException {
try {
Map<String,Document> parts=new HashMap<String,Document>();
... | public void updateJSON(ContextualisedStorage root,CSPRequestCredentials creds,CSPRequestCache cache,String filePath, JSONObject jsonObject,Record thisr, String serviceurl)
throws ExistException, UnimplementedException, UnderlyingStorageException {
try {
Map<String,Document> parts=new HashMap<String,Document>();
... |
diff --git a/src/com/eteks/sweethome3d/viewcontroller/Home3DAttributesController.java b/src/com/eteks/sweethome3d/viewcontroller/Home3DAttributesController.java
index 8fd8cb03..395cdb36 100644
--- a/src/com/eteks/sweethome3d/viewcontroller/Home3DAttributesController.java
+++ b/src/com/eteks/sweethome3d/viewcontroller/H... | false | true | public void modify3DAttributes() {
float observerCameraFieldOfView = (float)Math.toRadians(getObserverFieldOfViewInDegrees());
float observerCameraZ = getObserverHeight() * 14 / 15;
Float observerCameraElevation = getObserverCameraElevation();
int groundColor = getGroundColor();
HomeTexture grou... | public void modify3DAttributes() {
float observerCameraFieldOfView = (float)Math.toRadians(getObserverFieldOfViewInDegrees());
Float observerCameraElevation = getObserverCameraElevation();
float observerCameraZ = observerCameraElevation != null
? observerCameraElevation.floatValue()
: ... |
diff --git a/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java b/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java
index 692ba465f..9a1a58d14 100644
--- a/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java
+++ b/GAE/src/com/gallatinsystems/instancec... | false | true | public static void main(String[] args) {
InstanceConfigurator ic = new InstanceConfigurator();
String[] directories;
String s3policyFileTemplateName;
aws_secret_key = args[0];
ic.addAttribute("awsSecretKey", args[0]);
ic.addAttribute("awsIdentifier", args[1]);
ic.addAttribute("instanceName", args[2]);
... | public static void main(String[] args) {
InstanceConfigurator ic = new InstanceConfigurator();
String[] directories;
String s3policyFileTemplateName;
aws_secret_key = args[0];
ic.addAttribute("awsSecretKey", args[0]);
ic.addAttribute("awsIdentifier", args[1]);
ic.addAttribute("instanceName", args[2]);
... |
diff --git a/tests/src/com/android/inputmethod/latin/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/SuggestHelper.java
index a845acb9..ed01a753 100644
--- a/tests/src/com/android/inputmethod/latin/SuggestHelper.java
+++ b/tests/src/com/android/inputmethod/latin/SuggestHelper.java
@@ -1,158 +1,159 @@
/*
... | true | true | private void addKeyInfo(WordComposer word, char c) {
final List<Key> keys = mKeyboard.getKeys();
for (final Key key : keys) {
if (key.mCode == c) {
final int x = key.mX + key.mWidth / 2;
final int y = key.mY + key.mHeight / 2;
final int[] c... | private void addKeyInfo(WordComposer word, char c) {
final List<Key> keys = mKeyboard.getKeys();
for (final Key key : keys) {
if (key.mCode == c) {
final int x = key.mX + key.mWidth / 2;
final int y = key.mY + key.mHeight / 2;
final int[] c... |
diff --git a/src/edu/common/dynamicextensions/validation/DateValidator.java b/src/edu/common/dynamicextensions/validation/DateValidator.java
index f36bb7117..e944501ef 100644
--- a/src/edu/common/dynamicextensions/validation/DateValidator.java
+++ b/src/edu/common/dynamicextensions/validation/DateValidator.java
@@ -1,1... | false | true | private boolean validateDate(AttributeMetadataInterface attribute, Object valueObject,
String controlCaption,
boolean... isFromDateRangeValidator) throws DynamicExtensionsValidationException
{
boolean valid = true;
AttributeTypeInformationInterface attributeTypeInformation = attribute
.getAttributeType... | private boolean validateDate(AttributeMetadataInterface attribute, Object valueObject,
String controlCaption,
boolean... isFromDateRangeValidator) throws DynamicExtensionsValidationException
{
boolean valid = true;
AttributeTypeInformationInterface attributeTypeInformation = attribute
.getAttributeType... |
diff --git a/src/at/mabs/model/ModelHistroy.java b/src/at/mabs/model/ModelHistroy.java
index dd2c4ca..2c8a9b6 100644
--- a/src/at/mabs/model/ModelHistroy.java
+++ b/src/at/mabs/model/ModelHistroy.java
@@ -1,754 +1,755 @@
/*
This code is licensed under the LGPL v3 or greater with the classpath exception,
with the fo... | true | true | public double simulateSelection(){
//System.err.println("MH simulation called:"+selection);
if(!selection)
return 0;
if (N == Integer.MAX_VALUE || N==Long.MAX_VALUE)//not correct...its a note for me
throw new RuntimeException("Must use the -N option with selection");
//System.err.println("Do i have an... | public double simulateSelection(){
//System.err.println("MH simulation called:"+selection);
if(!selection)
return 0;
if (N == Integer.MAX_VALUE || N==Long.MAX_VALUE)//not correct...its a note for me
throw new RuntimeException("Must use the -N option with selection");
//System.err.println("Do i have an... |
diff --git a/TODO_Example_Xtext2/tests/org.eclipse.xtext.todo.ui.tests/src/org/xtext/example/mydsl/XtextTodoTest.java b/TODO_Example_Xtext2/tests/org.eclipse.xtext.todo.ui.tests/src/org/xtext/example/mydsl/XtextTodoTest.java
index d06f566..2744969 100644
--- a/TODO_Example_Xtext2/tests/org.eclipse.xtext.todo.ui.tests/s... | true | true | public void testCreateSimpleDsl() {
String sourceFolder = "model";
String dslFile = "test.mydsl";
createNewProject();
selectFolderNode(getProjectName()).select();
createFolder(getProjectName(), sourceFolder);
createFirstXtextFile(getProjectName(), sourceFolder, dslFile);
SWTBotEclipseEditor dslEditor = g... | public void testCreateSimpleDsl() {
String sourceFolder = "model";
String dslFile = "test.mydsl";
getBot().perspectiveByLabel("Java").activate();
createNewProject();
selectFolderNode(getProjectName()).select();
createFolder(getProjectName(), sourceFolder);
createFirstXtextFile(getProjectName(), sourceFol... |
diff --git a/src/main/java/edu/ohsu/sonmezsysbio/cloudbreak/mapper/SingleEndAlignmentsToReadPairInfoMapper.java b/src/main/java/edu/ohsu/sonmezsysbio/cloudbreak/mapper/SingleEndAlignmentsToReadPairInfoMapper.java
index f3c4543..6af0e84 100644
--- a/src/main/java/edu/ohsu/sonmezsysbio/cloudbreak/mapper/SingleEndAlignmen... | true | true | private void emitReadPairInfoForPair(AlignmentRecord record1, AlignmentRecord record2, ReadPairAlignments readPairAlignments,
OutputCollector<GenomicLocationWithQuality, ReadPairInfo> output,
Map<GenomicLocation, ReadPairInfo> bestSco... | private void emitReadPairInfoForPair(AlignmentRecord record1, AlignmentRecord record2, ReadPairAlignments readPairAlignments,
OutputCollector<GenomicLocationWithQuality, ReadPairInfo> output,
Map<GenomicLocation, ReadPairInfo> bestSco... |
diff --git a/src/me/neatmonster/spacertk/SpaceRTK.java b/src/me/neatmonster/spacertk/SpaceRTK.java
index 12d2618..c67cd57 100644
--- a/src/me/neatmonster/spacertk/SpaceRTK.java
+++ b/src/me/neatmonster/spacertk/SpaceRTK.java
@@ -1,158 +1,158 @@
/*
* This file is part of SpaceRTK (http://spacebukkit.xereo.net/).
*
... | false | true | public void onEnable() {
spaceRTK = this;
final YamlConfiguration configuration = YamlConfiguration.loadConfiguration(SpaceModule.CONFIGURATION);
type = configuration.getString("SpaceModule.Type", "Bukkit");
configuration.set("SpaceModule.Type", type = "Bukkit");
salt = confi... | public void onEnable() {
spaceRTK = this;
final YamlConfiguration configuration = YamlConfiguration.loadConfiguration(SpaceModule.CONFIGURATION);
type = configuration.getString("SpaceModule.type", "Bukkit");
configuration.set("SpaceModule.type", type = "Bukkit");
salt = confi... |
diff --git a/src/org/pixmob/freemobile/netstat/DatabaseCleanup.java b/src/org/pixmob/freemobile/netstat/DatabaseCleanup.java
index cf5e7000..ff3f32c6 100644
--- a/src/org/pixmob/freemobile/netstat/DatabaseCleanup.java
+++ b/src/org/pixmob/freemobile/netstat/DatabaseCleanup.java
@@ -1,79 +1,79 @@
/*
* Copyright (C) 2... | true | true | private void cleanupDatabase() throws Exception {
final Calendar cal = Calendar.getInstance();
cal.add(Calendar.MONTH, -1);
Log.i(TAG, "Deleting events older than " + cal.getTime());
// Delete oldest events.
final long timesta... | private void cleanupDatabase() throws Exception {
final Calendar cal = Calendar.getInstance();
cal.add(Calendar.MONTH, -1);
Log.i(TAG, "Deleting events older than " + cal.getTime());
// Delete oldest events.
final long timesta... |
diff --git a/src/edu/uwm/cs552/HexEdge.java b/src/edu/uwm/cs552/HexEdge.java
index d95adce..41d50be 100644
--- a/src/edu/uwm/cs552/HexEdge.java
+++ b/src/edu/uwm/cs552/HexEdge.java
@@ -1,141 +1,142 @@
package edu.uwm.cs552;
import java.awt.Point;
import edu.uwm.cs552.util.Pair;
public class HexEdge {
pri... | true | true | public Pair<Point, Point> toLineSegment(double s) {
HexCoordinate h = coor.move(dir);
Point hp = h.toPoint(s);
Point cp = coor.toPoint(s);
Point mid = new Point((int) Math.round((hp.getX() + cp.getX()) / 2),
(int) Math.round((hp.getY() + cp.getY()) / 2));
Pair<Point, Point> p = new Pair<... | public Pair<Point, Point> toLineSegment(double s) {
HexCoordinate h = coor.move(dir);
Point hp = h.toPoint(s);
Point cp = coor.toPoint(s);
Point mid = new Point((int) Math.round((hp.getX() + cp.getX()) / 2),
(int) Math.round((hp.getY() + cp.getY()) / 2));
Pair<Point, Point> p = new Pair<... |
diff --git a/pmd/src/net/sourceforge/pmd/rules/basic/BigIntegerInstantiation.java b/pmd/src/net/sourceforge/pmd/rules/basic/BigIntegerInstantiation.java
index 1ab554a50..463d981a6 100644
--- a/pmd/src/net/sourceforge/pmd/rules/basic/BigIntegerInstantiation.java
+++ b/pmd/src/net/sourceforge/pmd/rules/basic/BigIntegerIn... | true | true | public Object visit(ASTAllocationExpression node, Object data) {
Node type = node.jjtGetChild(0);
if (!(type instanceof ASTClassOrInterfaceType)) {
return super.visit(node, data);
}
String img = ((ASTClassOrInterfaceType) type).getImage();
... | public Object visit(ASTAllocationExpression node, Object data) {
Node type = node.jjtGetChild(0);
if (!(type instanceof ASTClassOrInterfaceType)) {
return super.visit(node, data);
}
String img = ((ASTClassOrInterfaceType) type).getImage();
... |
diff --git a/Dashboard/src/dashboard/servlet/RegistrationServlet.java b/Dashboard/src/dashboard/servlet/RegistrationServlet.java
index 5a87503..a4ff5ff 100644
--- a/Dashboard/src/dashboard/servlet/RegistrationServlet.java
+++ b/Dashboard/src/dashboard/servlet/RegistrationServlet.java
@@ -1,43 +1,43 @@
package dashboar... | false | true | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String username = req.getParameter("username");
String email = req.getParameter("mail");
String firstName = req.getParameter("firstname");
String lastName = req.getParameter("lastname");
String password = req.getParamet... | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String username = req.getParameter("username");
String email = req.getParameter("mail");
String firstName = req.getParameter("firstname");
String lastName = req.getParameter("lastname");
String password = req.getParamet... |
diff --git a/src/me/HariboPenguin/PermissionFinder/DumpCommand.java b/src/me/HariboPenguin/PermissionFinder/DumpCommand.java
index eee5e5b..805d421 100644
--- a/src/me/HariboPenguin/PermissionFinder/DumpCommand.java
+++ b/src/me/HariboPenguin/PermissionFinder/DumpCommand.java
@@ -1,81 +1,81 @@
package me.HariboPenguin... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String CommandLabel, String[] args) {
if (args.length >= 1) {
if (Bukkit.getPluginManager().getPlugin(args[0]) != null) {
Plugin enteredPlugin = Bukkit.getPluginManager().getPlugin(args[0]);
... | public boolean onCommand(CommandSender sender, Command cmd, String CommandLabel, String[] args) {
if (args.length == 1) {
if (Bukkit.getPluginManager().getPlugin(args[0]) != null) {
Plugin enteredPlugin = Bukkit.getPluginManager().getPlugin(args[0]);
... |
diff --git a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/Net/JacksonManager.java b/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/Net/JacksonManager.java
index 12528c2..18f83e3 100644
--- a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/Net/JacksonManager.java
+++ b/ToureNPlaner/src/... | false | true | public static ContentType parse(String header) {
String[] s = header.split(";");
if (s.length < 0)
throw new IllegalArgumentException();
for (ContentType t : ContentType.values()) {
if (s[0].toLowerCase().equals(t.identifier))
return t;
}
throw new IllegalArgumentException();
}
| public static ContentType parse(String header) {
if (header == null)
throw new IllegalArgumentException("No Content-Type Header.");
String[] s = header.split(";");
if (s.length < 0)
throw new IllegalArgumentException("Wrong Content-Type Header. Was: \"" + header + "\".");
for (ContentType t : Con... |
diff --git a/src/main/java/local/radioschedulers/ScheduleSpace.java b/src/main/java/local/radioschedulers/ScheduleSpace.java
index 6258eb2..8acc86a 100644
--- a/src/main/java/local/radioschedulers/ScheduleSpace.java
+++ b/src/main/java/local/radioschedulers/ScheduleSpace.java
@@ -1,97 +1,97 @@
package local.radiosched... | true | true | public Iterator<Entry<LSTTime, Set<JobCombination>>> iterator() {
return new Iterator<Entry<LSTTime, Set<JobCombination>>>() {
LSTTime t = new LSTTime(0L, 0L);
LSTTime lastEntry = findLastEntry();
@Override
public boolean hasNext() {
if (t.day <= lastEntry.day)
return true;
else
return... | public Iterator<Entry<LSTTime, Set<JobCombination>>> iterator() {
return new Iterator<Entry<LSTTime, Set<JobCombination>>>() {
LSTTime t = new LSTTime(0L, 0L);
LSTTime lastEntry = findLastEntry();
@Override
public boolean hasNext() {
if (t.compareTo(lastEntry) <= 0)
return true;
else
r... |
diff --git a/src/org/objectweb/proactive/core/descriptor/xml/ProActiveDescriptorHandler.java b/src/org/objectweb/proactive/core/descriptor/xml/ProActiveDescriptorHandler.java
index 5c6be76c1..35e47dba0 100644
--- a/src/org/objectweb/proactive/core/descriptor/xml/ProActiveDescriptorHandler.java
+++ b/src/org/objectweb/p... | true | true | public static ProActiveDescriptorHandler createProActiveDescriptor(
String xmlDescriptorUrl, VariableContract variableContract)
throws java.io.IOException, org.xml.sax.SAXException {
// static method added to replace main method
InitialHandler h = new InitialHandler(xmlDescriptorUrl,
variableContract);
... | public static ProActiveDescriptorHandler createProActiveDescriptor(
String xmlDescriptorUrl, VariableContract variableContract)
throws java.io.IOException, org.xml.sax.SAXException {
// static method added to replace main method
InitialHandler h = new InitialHandler(xmlDescriptorUrl,
variableContract);
... |
diff --git a/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.java b/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.java
index e8288f359..9e028ce7d 100644
--- a/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.java
+++ b/lucene/src/test-framework/org/apache/luc... | true | true | private void randomPerDocFieldValues(Random random, Document doc) {
ValueType[] values = ValueType.values();
ValueType type = values[random.nextInt(values.length)];
String name = "random_" + type.name() + "" + docValuesFieldPrefix;
if ("PreFlex".equals(codecProvider.getFieldCodec(name)) || doc.ge... | private void randomPerDocFieldValues(Random random, Document doc) {
ValueType[] values = ValueType.values();
ValueType type = values[random.nextInt(values.length)];
String name = "random_" + type.name() + "" + docValuesFieldPrefix;
if ("PreFlex".equals(codecProvider.getFieldCodec(name)) || doc.ge... |
diff --git a/rdt/org.eclipse.ptp.rdt.core/miners/org/eclipse/ptp/internal/rdt/core/miners/RemoteCHQueries.java b/rdt/org.eclipse.ptp.rdt.core/miners/org/eclipse/ptp/internal/rdt/core/miners/RemoteCHQueries.java
index e1ef1f6ee..e6b8f193a 100644
--- a/rdt/org.eclipse.ptp.rdt.core/miners/org/eclipse/ptp/internal/rdt/core... | true | true | public static CallsToResult findCalls(ICElement caller, String path, IIndex project_index, IIndex workspace_scope_index, String scheme, String hostName, DataStore _dataStore, IIndexLocationConverterFactory converter, DataElement status)
throws CoreException, InterruptedException, URISyntaxException {
CallsToR... | public static CallsToResult findCalls(ICElement caller, String path, IIndex project_index, IIndex workspace_scope_index, String scheme, String hostName, DataStore _dataStore, IIndexLocationConverterFactory converter, DataElement status)
throws CoreException, InterruptedException, URISyntaxException {
CallsToR... |
diff --git a/deegree-layers/deegree-layers-feature/src/main/java/org/deegree/layer/persistence/feature/FeatureLayer.java b/deegree-layers/deegree-layers-feature/src/main/java/org/deegree/layer/persistence/feature/FeatureLayer.java
index aee7324ce1..da92299236 100644
--- a/deegree-layers/deegree-layers-feature/src/main/... | true | true | public FeatureLayerData mapQuery( final LayerQuery query, List<String> headers )
throws OWSException {
StyleRef ref = query.getStyle();
if ( !ref.isResolved() ) {
ref.resolve( getMetadata().getStyles().get( ref.getName() ) );
}
Style style = re... | public FeatureLayerData mapQuery( final LayerQuery query, List<String> headers )
throws OWSException {
StyleRef ref = query.getStyle();
if ( !ref.isResolved() ) {
ref.resolve( getMetadata().getStyles().get( ref.getName() ) );
}
Style style = re... |
diff --git a/src/entities/players/abilities/ForwardTeleportAbility.java b/src/entities/players/abilities/ForwardTeleportAbility.java
index 6e5bd9b..d67ede5 100644
--- a/src/entities/players/abilities/ForwardTeleportAbility.java
+++ b/src/entities/players/abilities/ForwardTeleportAbility.java
@@ -1,35 +1,35 @@
package ... | false | true | public void use(Player p){
if (p.getDirection() == 1 && (p.getX() - 1 + distance < Config.getScreenWidth()/Config.getTileSize())){
if (MapLoader.getCurrentCell().getTile((int) p.getX() + (int) distance, (int) p.getY()).lookup(TileProperty.BLOCKED)){
p.accelerate(distance,0);
}
} else if (p.getDirectio... | public void use(Player p){
if (p.getDirection() == 1 && (p.getX() - 1 + distance < Config.getScreenWidth()/Config.getTileSize())){
if (!MapLoader.getCurrentCell().getTile((int) p.getX() + (int) distance, (int) p.getY()).lookup(TileProperty.BLOCKED)){
p.accelerate(distance,0);
}
} else if (p.getDirecti... |
diff --git a/example/src/test/java/org/apache/mina/example/echoserver/ConnectorTest.java b/example/src/test/java/org/apache/mina/example/echoserver/ConnectorTest.java
index 2ef65bc9..e77faae4 100644
--- a/example/src/test/java/org/apache/mina/example/echoserver/ConnectorTest.java
+++ b/example/src/test/java/org/apache/... | true | true | private void testConnector( IoConnector connector, boolean useLocalAddress ) throws Exception
{
EchoConnectorHandler handler = new EchoConnectorHandler();
IoSession session = null;
if( !useLocalAddress )
{
connector.setHandler( handler );
ConnectF... | private void testConnector( IoConnector connector, boolean useLocalAddress ) throws Exception
{
EchoConnectorHandler handler = new EchoConnectorHandler();
IoSession session = null;
if( !useLocalAddress )
{
connector.setHandler( handler );
ConnectF... |
diff --git a/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/shapefile/TestShapefileStreetGraphBuilderImpl.java b/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/shapefile/TestShapefileStreetGraphBuilderImpl.java
index 6d0dceb..3553725 100644
--- a/o... | true | true | public void testBasic() throws Exception {
Graph gg = new Graph();
File file = new File("src/test/resources/nyc_streets/streets.shp");
file = new File("/Users/bdferris/oba/data/opentripplanner-data/nyc/streets/nyc_streets/streets.shp");
if (!file.exists()) {
System.out.... | public void testBasic() throws Exception {
Graph gg = new Graph();
File file = new File("src/test/resources/nyc_streets/streets.shp");
if (!file.exists()) {
System.out.println("No New York City basemap; skipping; see comment here for details");
/*
* Thi... |
diff --git a/src/com/android/phone/BluetoothHeadsetService.java b/src/com/android/phone/BluetoothHeadsetService.java
index 941f66ec..77e0c58c 100755
--- a/src/com/android/phone/BluetoothHeadsetService.java
+++ b/src/com/android/phone/BluetoothHeadsetService.java
@@ -1,923 +1,929 @@
/*
* Copyright (C) 2006 The Androi... | false | true | public void handleMessage(Message msg) {
synchronized(BluetoothHeadsetService.this) {
IncomingConnectionInfo info = (IncomingConnectionInfo)msg.obj;
int type = BluetoothHandsfree.TYPE_UNKNOWN;
switch(msg.what) {
case BluetoothAudioGatew... | public void handleMessage(Message msg) {
synchronized(BluetoothHeadsetService.this) {
IncomingConnectionInfo info = (IncomingConnectionInfo)msg.obj;
int type = BluetoothHandsfree.TYPE_UNKNOWN;
switch(msg.what) {
case BluetoothAudioGatew... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/FrequencyAlight.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/FrequencyAlight.java
index f914f61dc..0d1a7844b 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetyp... | false | true | public State traverse(State state0) {
RoutingContext rctx = state0.getContext();
RoutingRequest options = state0.getOptions();
Trip trip = pattern.getTrip();
if (options.isArriveBy()) {
/* backward traversal: find a transit trip on this pattern */
if (!optio... | public State traverse(State state0) {
RoutingContext rctx = state0.getContext();
RoutingRequest options = state0.getOptions();
Trip trip = pattern.getTrip();
if (options.isArriveBy()) {
/* backward traversal: find a transit trip on this pattern */
if (!optio... |
diff --git a/src/main/java/fnug/ResourceServlet.java b/src/main/java/fnug/ResourceServlet.java
index f85a74c..8e196c6 100644
--- a/src/main/java/fnug/ResourceServlet.java
+++ b/src/main/java/fnug/ResourceServlet.java
@@ -1,442 +1,445 @@
package fnug;
import java.io.ByteArrayOutputStream;
import java.io.File;
impo... | true | true | protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String prefix = req.getContextPath() + req.getServletPath();
prefix = prefix.endsWith(CHAR_SLASH) ?
prefix.substring(0, prefix.length() - 1) : prefix;
if (req.get... | protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String prefix = req.getContextPath() + req.getServletPath();
prefix = prefix.endsWith(CHAR_SLASH) ?
prefix.substring(0, prefix.length() - 1) : prefix;
if (req.get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.