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/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/jobexecutor/FailedJobCommandTest.java b/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/jobexecutor/FailedJobCommandTest.java
index 6f4c4a4d6..c548c2791 100644
--- a/qa/integration-tests-engine/src/test/java... | true | true | public void testJobRetriesDecremented_multiple() {
for(int i = 0; i < 50; i++) {
runtimeService.startProcessInstanceByKey("theProcess");
}
Assert.assertEquals(50, managementService.createJobQuery().withRetriesLeft().count());
waitForJobExecutorToProcessAllJobs(90000, 500);
... | public void testJobRetriesDecremented_multiple() {
for(int i = 0; i < 50; i++) {
runtimeService.startProcessInstanceByKey("theProcess");
}
Assert.assertEquals(50, managementService.createJobQuery().withRetriesLeft().count());
waitForJobExecutorToProcessAllJobs(180000, 500);
... |
diff --git a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/ActiveXObject.java b/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/ActiveXObject.java
index c7bca2f19..1ce1e2708 100644
--- a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/ActiveXObject.java
+... | true | true | public static Scriptable jsConstructor(
final Context cx, final Object[] args, final Function ctorObj,
final boolean inNewExpr) {
if (args.length < 1 || args.length > 2) {
throw Context.reportRuntimeError(
"ActiveXObject Error: constructor must have on... | public static Scriptable jsConstructor(
final Context cx, final Object[] args, final Function ctorObj,
final boolean inNewExpr) {
if (args.length < 1 || args.length > 2) {
throw Context.reportRuntimeError(
"ActiveXObject Error: constructor must have on... |
diff --git a/src/org/oecd/ant/git/CloneTask.java b/src/org/oecd/ant/git/CloneTask.java
index 94f3de9..146440c 100644
--- a/src/org/oecd/ant/git/CloneTask.java
+++ b/src/org/oecd/ant/git/CloneTask.java
@@ -1,123 +1,123 @@
package org.oecd.ant.git;
import java.io.File;
import java.text.MessageFormat;
import org.a... | true | true | public final void execute() throws BuildException {
try {
log(MessageFormat.format("Cloning ''{0}'' to ''{1}''", getUri(), getRepo()));
CloneCommand cc = Git.cloneRepository();
cc.setDirectory(getRepo());
cc.setURI(getUri());
cc.setBare(isBare());
if (getBranch() != null) {
cc.setBranch(bra... | public final void execute() throws BuildException {
try {
log(MessageFormat.format("Cloning ''{0}'' to ''{1}''", getUri(), getRepo()));
CloneCommand cc = Git.cloneRepository();
cc.setDirectory(getRepo());
cc.setURI(getUri());
cc.setBare(isBare());
if (getBranch() != null) {
cc.setBranch(bra... |
diff --git a/src/com/tomczarniecki/s3/gui/BucketNameValidator.java b/src/com/tomczarniecki/s3/gui/BucketNameValidator.java
index 57f12de..f9fa43f 100755
--- a/src/com/tomczarniecki/s3/gui/BucketNameValidator.java
+++ b/src/com/tomczarniecki/s3/gui/BucketNameValidator.java
@@ -1,75 +1,75 @@
/*
* Copyright (c) 2010, T... | true | true | public String validate(String bucketName) {
if (!validNamePattern.matcher(bucketName).matches()) {
return "Folder name can only contain lowercase letters, digits, periods\n" +
"and dashes, and must start and end with a letter or a digit.";
}
if (ipAddressPatte... | public String validate(String bucketName) {
if (!validNamePattern.matcher(bucketName).matches()) {
return "Folder name can only contain lowercase letters, digits, periods\n" +
"and dashes, and must start and end with a letter or a digit.";
}
if (ipAddressPatte... |
diff --git a/src/main/java/org/got5/tapestry5/jquery/components/DialogAjaxLink.java b/src/main/java/org/got5/tapestry5/jquery/components/DialogAjaxLink.java
index 37059429..84046e17 100644
--- a/src/main/java/org/got5/tapestry5/jquery/components/DialogAjaxLink.java
+++ b/src/main/java/org/got5/tapestry5/jquery/componen... | true | true | void initJS(MarkupWriter writer)
{
resources.renderInformalParameters(writer);
writer.end();
Link link = resources.createEventLink(EventConstants.ACTION, context);
JSONObject params = new JSONObject();
params.put("element", getClientId());
params.pu... | void initJS(MarkupWriter writer)
{
resources.renderInformalParameters(writer);
writer.end();
Link link = resources.createEventLink(EventConstants.ACTION, context);
JSONObject params = new JSONObject();
params.put("element", getClientId());
params.pu... |
diff --git a/src/com/android/alarmclock/AlarmReceiver.java b/src/com/android/alarmclock/AlarmReceiver.java
index f1d5d43..e9c7195 100644
--- a/src/com/android/alarmclock/AlarmReceiver.java
+++ b/src/com/android/alarmclock/AlarmReceiver.java
@@ -1,195 +1,193 @@
/*
* Copyright (C) 2007 The Android Open Source Project
... | true | true | public void onReceive(Context context, Intent intent) {
if (Alarms.ALARM_KILLED.equals(intent.getAction())) {
// The alarm has been killed, update the notification
updateNotification(context, (Alarm)
intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA),
... | public void onReceive(Context context, Intent intent) {
if (Alarms.ALARM_KILLED.equals(intent.getAction())) {
// The alarm has been killed, update the notification
updateNotification(context, (Alarm)
intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA),
... |
diff --git a/ide/org.codehaus.groovy.eclipse.ui/src/org/codehaus/groovy/eclipse/refactoring/actions/OrganizeGroovyImports.java b/ide/org.codehaus.groovy.eclipse.ui/src/org/codehaus/groovy/eclipse/refactoring/actions/OrganizeGroovyImports.java
index 1f5ca262e..05bf48c85 100644
--- a/ide/org.codehaus.groovy.eclipse.ui/sr... | false | true | public TextEdit calculateMissingImports() {
ModuleNode node = unit.getModuleNode();
if (node == null || node.encounteredUnrecoverableError()) {
// no AST probably a syntax error...do nothing
return null;
}
if (isEmpty(node)) {
return new MultiText... | public TextEdit calculateMissingImports() {
ModuleNode node = unit.getModuleNode();
if (node == null || node.encounteredUnrecoverableError()) {
// no AST probably a syntax error...do nothing
return null;
}
if (isEmpty(node)) {
return new MultiText... |
diff --git a/TFC_Shared/src/TFC/TileEntities/TECrucible.java b/TFC_Shared/src/TFC/TileEntities/TECrucible.java
index dcd76a069..760ac4436 100644
--- a/TFC_Shared/src/TFC/TileEntities/TECrucible.java
+++ b/TFC_Shared/src/TFC/TileEntities/TECrucible.java
@@ -1,434 +1,437 @@
package TFC.TileEntities;
import java.io.By... | false | true | public void updateEntity()
{
if(!worldObj.isRemote)
{
inputTick++;
outputTick++;
tempTick++;
/*Heat the crucible based on the Forge beneath it*/
if(worldObj.getBlockId(xCoord,yCoord-1,zCoord) == TFCBlocks.Forge.blockID)
{
TileEntityForge te = (TileEntityForge) worldObj.getBlockTileEntity(xCo... | public void updateEntity()
{
if(!worldObj.isRemote)
{
inputTick++;
outputTick++;
tempTick++;
/*Heat the crucible based on the Forge beneath it*/
if(worldObj.getBlockId(xCoord,yCoord-1,zCoord) == TFCBlocks.Forge.blockID)
{
TileEntityForge te = (TileEntityForge) worldObj.getBlockTileEntity(xCo... |
diff --git a/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java b/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java
index 16f229e0..55d34c6a 100644
--- a/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java
+++ b/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java
@@ -1,335 +1,335 @@
/*
... | false | true | public void run() {
FileConnection file = null;
InputStream is = null;
Image capturedImage = null;
try {
file = (FileConnection) Connector.open("file://" + imagePath, Connector.READ_WRITE);
is = file.openInputStream();
capturedImage = Image.createImage(is);
} ca... | public void run() {
FileConnection file = null;
InputStream is = null;
Image capturedImage = null;
try {
file = (FileConnection) Connector.open("file://" + imagePath, Connector.READ_WRITE);
is = file.openInputStream();
capturedImage = Image.createImage(is);
} ca... |
diff --git a/src/main/java/com/tyzoid/jailr/models/Prisoner.java b/src/main/java/com/tyzoid/jailr/models/Prisoner.java
index 58fdf51..e39efa1 100644
--- a/src/main/java/com/tyzoid/jailr/models/Prisoner.java
+++ b/src/main/java/com/tyzoid/jailr/models/Prisoner.java
@@ -1,414 +1,415 @@
package com.tyzoid.jailr.models;
... | true | true | public void save() {
switch (this.engine) {
case H2:
try {
if (!this.saved) {
this.conn = DatabaseCommon.getConnection();
this.pst = this.conn.prepareStatement("INSERT INTO " + this.tableName + " (created_time, s... | public void save() {
switch (this.engine) {
case H2:
try {
if (!this.saved) {
this.conn = DatabaseCommon.getConnection();
this.pst = this.conn.prepareStatement("INSERT INTO " + this.tableName + " (player, created... |
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java b/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java
index d176c77db..56597beef 100644
--- a/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java
+++ b/src/FE_SRC_COMMON/com/ForgeEssentials/auth/CommandAuth.java
@@ -1,386 +1,386 @@... | true | true | public void processCommandPlayer(EntityPlayer sender, String[] args)
{
if (args.length == 0)
throw new WrongUsageException("command.auth.usage");
boolean hasAdmin = PermissionsAPI.checkPermAllowed(new PermQueryPlayer(sender, getCommandPerm() + ".admin"));
// one arg? must be help.
if (args.length == 1)
... | public void processCommandPlayer(EntityPlayer sender, String[] args)
{
if (args.length == 0)
throw new WrongUsageException("command.auth.usage");
boolean hasAdmin = PermissionsAPI.checkPermAllowed(new PermQueryPlayer(sender, getCommandPerm() + ".admin"));
// one arg? must be help.
if (args.length == 1)
... |
diff --git a/java-phresco-plugin/src/main/java/com/photon/phresco/plugins/java/Package.java b/java-phresco-plugin/src/main/java/com/photon/phresco/plugins/java/Package.java
index ff33945d..d6b9230a 100644
--- a/java-phresco-plugin/src/main/java/com/photon/phresco/plugins/java/Package.java
+++ b/java-phresco-plugin/src/... | true | true | public void pack(Configuration configuration, MavenProjectInfo mavenProjectInfo, Log log) throws PhrescoException {
this.log = log;
baseDir = mavenProjectInfo.getBaseDir();
project = mavenProjectInfo.getProject();
Map<String, String> configs = MojoUtil.getAllValues(configuration);
environme... | public void pack(Configuration configuration, MavenProjectInfo mavenProjectInfo, Log log) throws PhrescoException {
this.log = log;
baseDir = mavenProjectInfo.getBaseDir();
project = mavenProjectInfo.getProject();
Map<String, String> configs = MojoUtil.getAllValues(configuration);
environme... |
diff --git a/src/com/util/getconnected/JSONParser.java b/src/com/util/getconnected/JSONParser.java
index 758e254..1f60eae 100644
--- a/src/com/util/getconnected/JSONParser.java
+++ b/src/com/util/getconnected/JSONParser.java
@@ -1,65 +1,65 @@
package com.util.getconnected;
import java.util.ArrayList;
import java.u... | true | true | public JSONObject parseList(List<Object> list, String identifier) throws JSONException{
String json = "{\"" + identifier + "\": [";
for (int i=0; i<list.size(); i++) {
json += "\"" + list.get(i).toString() + "\",";
}
json = json.substring(0, json.length()-1);
Log.d("tag", json);
return this.getObjectFro... | public JSONObject parseList(List list, String identifier) throws JSONException{
String json = "{\"" + identifier + "\": [";
for (int i=0; i<list.size(); i++) {
json += "\"" + list.get(i).toString() + "\",";
}
json = json.substring(0, json.length()-1);
Log.d("tag", json);
return this.getObjectFromRequest... |
diff --git a/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/FaceletSourceTagHyperlink.java b/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/FaceletSourceTagHyperlink.java
index 18868ef68..951e68295 100644
--- a/common/pl... | true | true | protected void doHyperlink(IRegion region) {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorPart editorPart = page.getActiveEditor();
// if we open taglib definition in jar file
JarEntryFile current = null;
try {
if(editorPart.getEditorInput() instanceof... | protected void doHyperlink(IRegion region) {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorPart editorPart = page.getActiveEditor();
// if we open taglib definition in jar file
JarEntryFile current = null;
try {
if(editorPart.getEditorInput() instanceof... |
diff --git a/examples/de/fhpotsdam/unfolding/examples/interaction/snapshot/MapSnapshot.java b/examples/de/fhpotsdam/unfolding/examples/interaction/snapshot/MapSnapshot.java
index 3adb07d..d7360a0 100644
--- a/examples/de/fhpotsdam/unfolding/examples/interaction/snapshot/MapSnapshot.java
+++ b/examples/de/fhpotsdam/unfo... | true | true | public void snapshot(UnfoldingMap map) {
// Stores information of the current state of the map
this.location = map.getCenter();
this.zoomLevel = map.getZoomLevel();
// Stores image data of the current map
PGraphics pg = map.mapDisplay.getInnerPG();
if (pg instanceof GLGraphicsOffScreen) {
thumbnail = n... | public void snapshot(UnfoldingMap map) {
// Stores information of the current state of the map
this.location = map.getCenter();
this.zoomLevel = map.getZoomLevel();
// Stores image data of the current map
PGraphics pg = map.mapDisplay.getOuterPG();
if (pg instanceof GLGraphicsOffScreen) {
thumbnail = n... |
diff --git a/public/java/src/org/broadinstitute/sting/utils/codecs/table/TableCodec.java b/public/java/src/org/broadinstitute/sting/utils/codecs/table/TableCodec.java
index fac926587..4082a5597 100755
--- a/public/java/src/org/broadinstitute/sting/utils/codecs/table/TableCodec.java
+++ b/public/java/src/org/broadinstit... | false | true | public Object readHeader(LineReader reader) {
String line = "";
try {
boolean isFirst = true;
while ((line = reader.readLine()) != null) {
System.out.println(line);
if ( isFirst && ! line.startsWith(headerDelimiter) ) {
thro... | public Object readHeader(LineReader reader) {
String line = "";
try {
boolean isFirst = true;
while ((line = reader.readLine()) != null) {
System.out.println(line);
if ( isFirst && ! line.startsWith(headerDelimiter) && ! line.startsWith(comment... |
diff --git a/src/com/axelby/podax/ActiveDownloadListActivity.java b/src/com/axelby/podax/ActiveDownloadListActivity.java
index 1a4f2f7..5464292 100644
--- a/src/com/axelby/podax/ActiveDownloadListActivity.java
+++ b/src/com/axelby/podax/ActiveDownloadListActivity.java
@@ -1,135 +1,134 @@
package com.axelby.podax;
i... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
Podcast podcast = (Podcast)getItem(position);
LinearLayout view;
if (convertView == null) {
view = (LinearLayout)_layoutInflater.inflate(R.layout.downloads_list_item, null);
}
else {
view = (LinearLayout)convertView;
... | public View getView(int position, View convertView, ViewGroup parent) {
Podcast podcast = (Podcast)getItem(position);
LinearLayout view;
if (convertView == null) {
view = (LinearLayout)_layoutInflater.inflate(R.layout.downloads_list_item, null);
}
else {
view = (LinearLayout)convertView;
... |
diff --git a/tests/com/google/caja/parser/quasiliteral/ES53RewriterTest.java b/tests/com/google/caja/parser/quasiliteral/ES53RewriterTest.java
index 8e71b0df..703f9da8 100644
--- a/tests/com/google/caja/parser/quasiliteral/ES53RewriterTest.java
+++ b/tests/com/google/caja/parser/quasiliteral/ES53RewriterTest.java
@@ -1... | false | true | public final void testProxy() throws Exception {
rewriteAndExecute(
// Taken from http://wiki.ecmascript.org/doku.php?id=harmony:proxies
"function handlerMaker(obj) {" +
" return {" +
" getOwnPropertyDescriptor: function(name) {" +
" var desc = Object.g... | public final void testProxy() throws Exception {
rewriteAndExecute(
// Taken from http://wiki.ecmascript.org/doku.php?id=harmony:proxies
"function handlerMaker(obj) {" +
" return {" +
" getOwnPropertyDescriptor: function(name) {" +
" var desc = Object.g... |
diff --git a/src/nl/nikhef/jgridstart/Organisation.java b/src/nl/nikhef/jgridstart/Organisation.java
index 8fa08f6..74cccb6 100644
--- a/src/nl/nikhef/jgridstart/Organisation.java
+++ b/src/nl/nikhef/jgridstart/Organisation.java
@@ -1,162 +1,162 @@
package nl.nikhef.jgridstart;
import java.io.IOException;
import j... | false | true | public static String getAllOptionsHTML(CertificatePair cert) {
// setup variables to detect if certificate organisation is present already
boolean hasOrg = false;
// add all organisations
if (organisations==null) readAll();
String r = "";
for (Iterator<Organisation> it = organisations.values().iterator(); it.... | public static String getAllOptionsHTML(CertificatePair cert) {
// setup variables to detect if certificate organisation is present already
boolean hasOrg = false;
// add all organisations
if (organisations==null) readAll();
String r = "";
for (Iterator<Organisation> it = organisations.values().iterator(); it.... |
diff --git a/elevator/Elevator.java b/elevator/Elevator.java
index 461683a..222e320 100755
--- a/elevator/Elevator.java
+++ b/elevator/Elevator.java
@@ -1,173 +1,174 @@
import java.util.HashMap;
import java.util.LinkedList;
import java.util.PriorityQueue;
public class Elevator {
private int floor; // The cu... | false | true | public boolean enter(Person p) {
/***
* Adds a person when appropriate inside the elevator keeping track of
* necessary information and without losing the instance of the person
*/
if (curCap == maxCap) {
return false;
}
int floorWanted = p.getDestinationFloor()... | public boolean enter(Person p) {
/***
* Adds a person when appropriate inside the elevator keeping track of
* necessary information and without losing the instance of the person
*/
if (curCap == maxCap) {
return false;
}
int floorWanted = p.getDestinationFloor()... |
diff --git a/WEB-INF/lps/server/src/org/openlaszlo/compiler/StyleSheetCompiler.java b/WEB-INF/lps/server/src/org/openlaszlo/compiler/StyleSheetCompiler.java
index 707fc6d6..9be7bac7 100644
--- a/WEB-INF/lps/server/src/org/openlaszlo/compiler/StyleSheetCompiler.java
+++ b/WEB-INF/lps/server/src/org/openlaszlo/compiler/S... | true | true | public void compile(Element element) {
try {
mLogger.info("StyleSheetCompiler.compile called!");
if (!element.getChildren().isEmpty()) {
throw new CompilationError("<stylesheet> elements can't have children",
... | public void compile(Element element) {
try {
mLogger.info("StyleSheetCompiler.compile called!");
if (!element.getChildren().isEmpty()) {
throw new CompilationError("<stylesheet> elements can't have children",
... |
diff --git a/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java b/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java
index f4240f3d..8f7eaf4f 100644
--- a/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java
+++ b/src/main/java/be/Balor/Manager/Commands/Player/BanPlayer.java
@@ -1,195 +1,... | false | true | public void execute(final CommandSender sender, final CommandArgs args)
throws ActionNotPermitedException, PlayerNotFound {
final Player toBan = Utils.getPlayer(args.getString(0));
final HashMap<String, String> replace = new HashMap<String, String>();
String message = "";
String banPlayerString;
if (toBan... | public void execute(final CommandSender sender, final CommandArgs args)
throws ActionNotPermitedException, PlayerNotFound {
final Player toBan = Utils.getPlayer(args.getString(0));
final HashMap<String, String> replace = new HashMap<String, String>();
String message = "";
String banPlayerString;
if (toBan... |
diff --git a/src/com/android/email/activity/setup/AccountSettingsFragment.java b/src/com/android/email/activity/setup/AccountSettingsFragment.java
index 55b798ec..73601abc 100644
--- a/src/com/android/email/activity/setup/AccountSettingsFragment.java
+++ b/src/com/android/email/activity/setup/AccountSettingsFragment.ja... | true | true | private void loadSettings() {
// We can only do this once, so prevent repeat
mLoaded = true;
// Once loaded the data is ready to be saved, as well
mSaveOnExit = false;
PreferenceCategory topCategory =
(PreferenceCategory) findPreference(PREFERENCE_CATEGORY_TOP);
... | private void loadSettings() {
// We can only do this once, so prevent repeat
mLoaded = true;
// Once loaded the data is ready to be saved, as well
mSaveOnExit = false;
PreferenceCategory topCategory =
(PreferenceCategory) findPreference(PREFERENCE_CATEGORY_TOP);
... |
diff --git a/src/BottomUpDirector.java b/src/BottomUpDirector.java
index 4d6d0f0..0dcd715 100644
--- a/src/BottomUpDirector.java
+++ b/src/BottomUpDirector.java
@@ -1,14 +1,14 @@
import java.util.Vector;
public class BottomUpDirector extends Director {
@Override
public Operation construct(Vector<Expression>... | true | true | public Operation construct(Vector<Expression> array) {
for(int i = array.size() - 1; i > 1; i = i - 2) {
if(array.get(i / 2) instanceof Operation)
getBuilder().build((Operation)array.get((i - 1) / 2), array.get(i - 1), array.get(i));
}
return (Operation)array.get(0);
}
| public Operation construct(Vector<Expression> array) {
for(int i = array.size() - 1; i > 1; i = i - 2) {
if(array.get((i - 1) / 2) instanceof Operation)
getBuilder().build((Operation)array.get((i - 1) / 2), array.get(i - 1), array.get(i));
}
return (Operation)array.get(0);
}
|
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ContentProviderDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ContentProviderDelegate.java
index ef593c5b0..57d2f402b 100644
--- a/target_explorer/plugins/org... | true | true | public Object[] getChildren(Object parentElement) {
Object[] children = NO_ELEMENTS;
// The category element if the parent element is a category node
final ICategory category = parentElement instanceof ICategory ? (ICategory)parentElement : null;
// The category id if the parent element is a category node
f... | public Object[] getChildren(Object parentElement) {
Object[] children = NO_ELEMENTS;
// The category element if the parent element is a category node
final ICategory category = parentElement instanceof ICategory ? (ICategory)parentElement : null;
// The category id if the parent element is a category node
f... |
diff --git a/src/test/java/np/springmvc101/repository/ForumRepositoryTest.java b/src/test/java/np/springmvc101/repository/ForumRepositoryTest.java
index 52d823b..afd7b50 100644
--- a/src/test/java/np/springmvc101/repository/ForumRepositoryTest.java
+++ b/src/test/java/np/springmvc101/repository/ForumRepositoryTest.java... | true | true | public void save2() {
Forum forum = new Forum();
forum.setId(2L);
forum.setDescription("update");
forum.setTitle("update");
repository.save(forum);
}
| public void save2() {
Forum forum = new Forum();
forum.setId(2L);
forum.setDescription("中文測試");
forum.setTitle("中文測試");
repository.save(forum);
}
|
diff --git a/src/com/sk89q/worldguard/protection/regions/flags/info/DoubleRegionFlagInfo.java b/src/com/sk89q/worldguard/protection/regions/flags/info/DoubleRegionFlagInfo.java
index 6f1bcaa2..0aae4df2 100644
--- a/src/com/sk89q/worldguard/protection/regions/flags/info/DoubleRegionFlagInfo.java
+++ b/src/com/sk89q/worl... | true | true | public DoubleRegionFlagInfo(String name, FlagType type) {
super(name, type, FlagDataType.BOOLEAN);
}
| public DoubleRegionFlagInfo(String name, FlagType type) {
super(name, type, FlagDataType.DOUBLE);
}
|
diff --git a/src/main/java/com/rogue/playtime/runnable/mysql/MySQLAddRunnable.java b/src/main/java/com/rogue/playtime/runnable/mysql/MySQLAddRunnable.java
index a17284c..6f4abd2 100644
--- a/src/main/java/com/rogue/playtime/runnable/mysql/MySQLAddRunnable.java
+++ b/src/main/java/com/rogue/playtime/runnable/mysql/MySQL... | true | true | public void run() {
Player[] players = plugin.getServer().getOnlinePlayers();
MySQL db = new MySQL();
try {
db.open();
if (db.checkConnection() && players.length > 0) {
StringBuilder sb = new StringBuilder("INSERT INTO `playTime` (`username`, `playtime... | public void run() {
Player[] players = plugin.getServer().getOnlinePlayers();
MySQL db = new MySQL();
try {
db.open();
if (db.checkConnection() && players.length > 0) {
StringBuilder sb = new StringBuilder("INSERT INTO `playTime` (`username`, `playtime... |
diff --git a/camera2/public/src/com/android/ex/camera2/pos/AutoFocusStateMachine.java b/camera2/public/src/com/android/ex/camera2/pos/AutoFocusStateMachine.java
index ba32b12..11d7403 100644
--- a/camera2/public/src/com/android/ex/camera2/pos/AutoFocusStateMachine.java
+++ b/camera2/public/src/com/android/ex/camera2/po... | false | true | public synchronized void onCaptureCompleted(CaptureResult result) {
int afState = result.get(CaptureResult.CONTROL_AF_STATE);
if (DEBUG_LOGGING) Log.d(TAG, "onCaptureCompleted - new AF state = " + afState);
if (mLastAfState == afState) {
// Same AF state as last time, nothing ... | public synchronized void onCaptureCompleted(CaptureResult result) {
int afState = result.get(CaptureResult.CONTROL_AF_STATE);
if (DEBUG_LOGGING) Log.d(TAG, "onCaptureCompleted - new AF state = " + afState);
if (mLastAfState == afState) {
// Same AF state as last time, nothing ... |
diff --git a/MyTracks/src/com/google/android/apps/mytracks/widgets/TrackWidgetProvider.java b/MyTracks/src/com/google/android/apps/mytracks/widgets/TrackWidgetProvider.java
index ea5c6701..6e0887d3 100644
--- a/MyTracks/src/com/google/android/apps/mytracks/widgets/TrackWidgetProvider.java
+++ b/MyTracks/src/com/google/... | true | true | protected void updateViewTrackStatistics(RemoteViews views, Track track) {
if (track == null) {
views.setTextViewText(R.id.appwidget_distance_text, unknown);
views.setTextViewText(R.id.appwidget_time_text, unknown);
views.setTextViewText(R.id.appwidget_speed_text, unknown);
return;
}
... | protected void updateViewTrackStatistics(RemoteViews views, Track track) {
if (track == null) {
views.setTextViewText(R.id.appwidget_distance_text, unknown);
views.setTextViewText(R.id.appwidget_time_text, unknown);
views.setTextViewText(R.id.appwidget_speed_text, unknown);
return;
}
... |
diff --git a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/SectionComposite.java b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/SectionComposite.java
index 15e05477..a435ed43 100644
--- a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/SectionCom... | false | true | public ExpandableComposite createSection(String title, int expansionStyle, final boolean grabExcessVerticalSpace) {
final ExpandableComposite section = getToolkit().createExpandableComposite(
getContent(),
ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT | ExpandableComposite.COMPACT
| e... | public ExpandableComposite createSection(String title, int expansionStyle, final boolean grabExcessVerticalSpace) {
final ExpandableComposite section = getToolkit().createExpandableComposite(
getContent(),
ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT | ExpandableComposite.COMPACT
| e... |
diff --git a/ImportAPI/src/org/gephi/io/importer/impl/ImportContainerImpl.java b/ImportAPI/src/org/gephi/io/importer/impl/ImportContainerImpl.java
index 4b2937a39..d6a8b61fd 100644
--- a/ImportAPI/src/org/gephi/io/importer/impl/ImportContainerImpl.java
+++ b/ImportAPI/src/org/gephi/io/importer/impl/ImportContainerImpl.... | true | true | public boolean verify() {
//Edge weight 0
for (EdgeDraftImpl edge : edgeMap.values().toArray(new EdgeDraftImpl[0])) {
if (edge.getWeight() <= 0f) {
if (parameters.isRemoveEdgeWithWeightZero()) {
String id = edge.getId();
String sour... | public boolean verify() {
//Edge weight 0
for (EdgeDraftImpl edge : edgeMap.values().toArray(new EdgeDraftImpl[0])) {
if (edge.getWeight() <= 0f) {
if (parameters.isRemoveEdgeWithWeightZero()) {
String id = edge.getId();
String sour... |
diff --git a/framework/src/play/data/binding/DateBinder.java b/framework/src/play/data/binding/DateBinder.java
index a44b8ae1..8e422031 100644
--- a/framework/src/play/data/binding/DateBinder.java
+++ b/framework/src/play/data/binding/DateBinder.java
@@ -1,67 +1,75 @@
package play.data.binding;
import java.text.Par... | false | true | public static AlternativeDateFormat getDefaultFormatter() {
if (dateformat.get() == null) {
dateformat.set(new AlternativeDateFormat(Locale.US,
"yyyy-MM-dd'T'hh:mm:ss'Z'", // ISO8601 + timezone
"yyyy-MM-dd'T'hh:mm:ss", // ISO8601
... | public static AlternativeDateFormat getDefaultFormatter() {
if (dateformat.get() == null) {
dateformat.set(new AlternativeDateFormat(Locale.US,
"yyyy-MM-dd'T'hh:mm:ss'Z'", // ISO8601 + timezone
"yyyy-MM-dd'T'hh:mm:ss", // ISO8601
... |
diff --git a/src/GUI/Editor.java b/src/GUI/Editor.java
index bd928f1..2d710aa 100644
--- a/src/GUI/Editor.java
+++ b/src/GUI/Editor.java
@@ -1,29 +1,31 @@
package GUI;
import Models.WorldModel;
import java.awt.Dimension;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
... | false | true | public Editor(JPanel panel) {
/*TODO: Display Dimension-selection screen first*/
JFrame frame = (JFrame) panel.getParent().getParent().getParent();
frame.setResizable(false);
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
Dimension panelSize = panel.getSize();
... | public Editor(JPanel panel) {
/*TODO: Display Dimension-selection screen first*/
JFrame frame = (JFrame) panel.getParent().getParent().getParent();
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
Dimension panelSize = panel.getSize();
WorldModel world = new WorldMode... |
diff --git a/tpc/src/serializers/BenchmarkRunner.java b/tpc/src/serializers/BenchmarkRunner.java
index 3e9a24d..47345b2 100644
--- a/tpc/src/serializers/BenchmarkRunner.java
+++ b/tpc/src/serializers/BenchmarkRunner.java
@@ -1,424 +1,424 @@
package serializers;
import java.util.ArrayList;
import java.util.Collecti... | true | true | private void start() throws Exception
{
System.out.printf("%-24s, %15s, %15s, %15s, %15s, %15s, %15s, %15s, %10s\n",
" ",
"Object create",
"Serialize",
"/w Same Object",
"Deserialize",
... | private void start() throws Exception
{
System.out.printf("%-24s, %15s, %15s, %15s, %15s, %15s, %15s, %15s, %10s\n",
" ",
"Object create",
"Serialize",
"/w Same Object",
"Deserialize",
... |
diff --git a/src/com/minestar/MineStarWarp/commands/warp/InviteCommand.java b/src/com/minestar/MineStarWarp/commands/warp/InviteCommand.java
index 3be114c..5793a39 100644
--- a/src/com/minestar/MineStarWarp/commands/warp/InviteCommand.java
+++ b/src/com/minestar/MineStarWarp/commands/warp/InviteCommand.java
@@ -1,77 +1... | true | true | public void execute(String[] args, Player player) {
String guestName = args[0];
String warpName = args[1];
Warp warp = Main.warpManager.getWarp(warpName);
if (warp != null) {
if (warp.canEdit(player)) {
Player guest = PlayerUtil.getPlayer(server, guestNam... | public void execute(String[] args, Player player) {
String guestName = args[0];
String warpName = args[1];
Warp warp = Main.warpManager.getWarp(warpName);
if (warp != null) {
if (warp.canEdit(player)) {
Player guest = PlayerUtil.getPlayer(server, guestNam... |
diff --git a/jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskdetails/TaskDetailsViewImpl.java b/jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskdetails/TaskDetailsViewImpl.java
i... | true | true | public void init( TaskDetailsPresenter presenter ) {
this.presenter = presenter;
logTextLabel.setText( constants.Task_Log() );
// Commented out until we add the posibility of adding sub tasks
// for (String strategy : subTaskStrategies) {
// subTaskStrategyListBox.ad... | public void init( TaskDetailsPresenter presenter ) {
this.presenter = presenter;
logTextLabel.setText( constants.Task_Log() );
// Commented out until we add the posibility of adding sub tasks
// for (String strategy : subTaskStrategies) {
// subTaskStrategyListBox.ad... |
diff --git a/src/me/herp/derp/GunStick/GunStick.java b/src/me/herp/derp/GunStick/GunStick.java
index 89338e0..98bf907 100644
--- a/src/me/herp/derp/GunStick/GunStick.java
+++ b/src/me/herp/derp/GunStick/GunStick.java
@@ -1,80 +1,79 @@
package me.herp.derp.GunStick;
import net.minecraft.server.EntityFireball;
impor... | false | true | public void onInteract(PlayerInteractEvent e)
{
Material material = e.getMaterial();
if(material == Material.STICK)
{
boolean hasAmmo = false;
if (e.getAction() == Action.RIGHT_CLICK_AIR || (e.getAction() == Action.RIGHT_CLICK_BLOCK)) //So it does not shoot when you "hit"
{
Player p = e.getPlayer();... | public void onInteract(PlayerInteractEvent e)
{
Material material = e.getMaterial();
if(material == Material.STICK)
{
boolean hasAmmo = false;
if (e.getAction() == Action.RIGHT_CLICK_AIR || (e.getAction() == Action.RIGHT_CLICK_BLOCK)) //So it does not shoot when you "hit"
{
Player p = e.getPlayer();... |
diff --git a/MyTracks/src/com/google/android/apps/mytracks/content/TrackDataHub.java b/MyTracks/src/com/google/android/apps/mytracks/content/TrackDataHub.java
index 18ec95f2..63ea9e03 100644
--- a/MyTracks/src/com/google/android/apps/mytracks/content/TrackDataHub.java
+++ b/MyTracks/src/com/google/android/apps/mytracks... | true | true | private void notifyPointsUpdatedSync(boolean keepState,
long minPointId, int previousNumPoints,
Set<TrackDataListener> sampledListeners,
Set<TrackDataListener> sampledOutListeners) {
// If we're loading state, start from after the last seen point up to the last recorded one
// (all new point... | private void notifyPointsUpdatedSync(boolean keepState,
long minPointId, int previousNumPoints,
Set<TrackDataListener> sampledListeners,
Set<TrackDataListener> sampledOutListeners) {
// If we're loading state, start from after the last seen point up to the last recorded one
// (all new point... |
diff --git a/src/test/java/com/crozin/wykop/sdk/util/TestRange.java b/src/test/java/com/crozin/wykop/sdk/util/TestRange.java
index d4ee4d0..803bfb3 100644
--- a/src/test/java/com/crozin/wykop/sdk/util/TestRange.java
+++ b/src/test/java/com/crozin/wykop/sdk/util/TestRange.java
@@ -1,52 +1,52 @@
package com.crozin.wykop... | true | true | public static Collection<Object[]> data() throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-DD");
Object[][] dates = new Object[][] {
{ null, sdf.parse("2011-12-12"), false },
{ sdf.parse("2012-12-12"), sdf.parse("2011-12-12"), false },
{ sdf.parse("2012-12-12"), sdf.parse... | public static Collection<Object[]> data() throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Object[][] dates = new Object[][] {
{ null, sdf.parse("2011-12-12"), false },
{ sdf.parse("2012-12-12"), sdf.parse("2011-12-12"), false },
{ sdf.parse("2012-12-12"), sdf.parse... |
diff --git a/src/openccsensors/common/sensors/industrialcraft/ReactorTarget.java b/src/openccsensors/common/sensors/industrialcraft/ReactorTarget.java
index d722b55..9b8b25f 100644
--- a/src/openccsensors/common/sensors/industrialcraft/ReactorTarget.java
+++ b/src/openccsensors/common/sensors/industrialcraft/ReactorTar... | true | true | public Map getDetailInformation(World world) {
HashMap retMap = new HashMap();
IReactor reactor = (IReactor) world.getBlockTileEntity(xCoord, yCoord,
zCoord);
retMap.put("Heat", reactor.getHeat());
retMap.put("MaxHeat", reactor.getMaxHeat());
retMap.put("Output", reactor.getOutput() * new IC2Reactor().... | public Map getDetailInformation(World world) {
HashMap retMap = new HashMap();
IReactor reactor = (IReactor) world.getBlockTileEntity(xCoord, yCoord,
zCoord);
retMap.put("Heat", reactor.getHeat());
retMap.put("MaxHeat", reactor.getMaxHeat());
retMap.put("Output", reactor.getOutput() * IC2Reactor.getEUO... |
diff --git a/src/frontend/org/voltdb/ParameterConverter.java b/src/frontend/org/voltdb/ParameterConverter.java
index 7f79adafd..7332dacac 100644
--- a/src/frontend/org/voltdb/ParameterConverter.java
+++ b/src/frontend/org/voltdb/ParameterConverter.java
@@ -1,252 +1,252 @@
/* This file is part of VoltDB.
* Copyright ... | false | true | public static Object tryToMakeCompatible(
final boolean isPrimitive,
final boolean isArray,
final Class<?> paramType,
final Class<?> paramTypeComponentType,
final Object param)
throws Exception
{
if (param == null ||
param == Vo... | public static Object tryToMakeCompatible(
final boolean isPrimitive,
final boolean isArray,
final Class<?> paramType,
final Class<?> paramTypeComponentType,
final Object param)
throws Exception
{
if (param == null ||
param == Vo... |
diff --git a/src/org/opensolaris/opengrok/configuration/Configuration.java b/src/org/opensolaris/opengrok/configuration/Configuration.java
index bda5ea36..68a72248 100644
--- a/src/org/opensolaris/opengrok/configuration/Configuration.java
+++ b/src/org/opensolaris/opengrok/configuration/Configuration.java
@@ -1,662 +1,... | true | true | public Configuration() {
//defaults for an opengrok instance configuration
setHistoryCache(true);
setHistoryCacheTime(30);
setHistoryCacheInDB(false);
setProjects(new ArrayList<Project>());
setRepositories(new ArrayList<RepositoryInfo>());
setUrlPrefix("/sourc... | public Configuration() {
//defaults for an opengrok instance configuration
setHistoryCache(true);
setHistoryCacheTime(30);
setHistoryCacheInDB(false);
setProjects(new ArrayList<Project>());
setRepositories(new ArrayList<RepositoryInfo>());
setUrlPrefix("/sourc... |
diff --git a/appengine/BlipItServer/src/com/thoughtworks/blipit/BlipItPublishResourceImpl.java b/appengine/BlipItServer/src/com/thoughtworks/blipit/BlipItPublishResourceImpl.java
index 66882e0..1d17efa 100644
--- a/appengine/BlipItServer/src/com/thoughtworks/blipit/BlipItPublishResourceImpl.java
+++ b/appengine/BlipItS... | true | true | private Blip constructBlip(SaveBlipRequest saveBlipRequest, SaveBlipResponse saveBlipResponse) {
Blip blip = null;
PersistenceManager persistenceManager = null;
try {
persistenceManager = DataStoreHelper.getPersistenceManager();
List<Channel> channels = saveBlipReque... | private Blip constructBlip(SaveBlipRequest saveBlipRequest, SaveBlipResponse saveBlipResponse) {
Blip blip = null;
PersistenceManager persistenceManager = null;
try {
persistenceManager = DataStoreHelper.getPersistenceManager();
List<Channel> channels = saveBlipReque... |
diff --git a/src/main/java/com/censoredsoftware/demigods/ability/passive/Swim.java b/src/main/java/com/censoredsoftware/demigods/ability/passive/Swim.java
index 53657189..49fe86b9 100644
--- a/src/main/java/com/censoredsoftware/demigods/ability/passive/Swim.java
+++ b/src/main/java/com/censoredsoftware/demigods/ability... | true | true | public Listener getListener()
{
return new Listener()
{
@EventHandler(priority = EventPriority.HIGHEST)
private void onPlayerMoveEvent(PlayerMoveEvent event)
{
if(Demigods.MiscUtil.isDisabledWorld(event.getPlayer().getWorld())) return;
Player player = event.getPlayer();
if(!Deity.Util.canUs... | public Listener getListener()
{
return new Listener()
{
@EventHandler(priority = EventPriority.HIGHEST)
private void onPlayerMoveEvent(PlayerMoveEvent event)
{
if(Demigods.MiscUtil.isDisabledWorld(event.getPlayer().getWorld())) return;
Player player = event.getPlayer();
if(!Deity.Util.canUs... |
diff --git a/tests/frontend/org/voltdb/RejoinTestBase.java b/tests/frontend/org/voltdb/RejoinTestBase.java
index e26ce92d9..2ebc66780 100644
--- a/tests/frontend/org/voltdb/RejoinTestBase.java
+++ b/tests/frontend/org/voltdb/RejoinTestBase.java
@@ -1,236 +1,235 @@
/* This file is part of VoltDB.
* Copyright (C) 2008... | false | true | Context getServerReadyToReceiveNewNode() throws Exception {
Context retval = new Context();
VoltProjectBuilder builder = getBuilderForTest();
boolean success = builder.compile(Configuration.getPathToCatalogForTest("rejoin.jar"), 1, 2, 1, 9998, false);
assertTrue(success);
Mi... | Context getServerReadyToReceiveNewNode() throws Exception {
Context retval = new Context();
VoltProjectBuilder builder = getBuilderForTest();
boolean success = builder.compile(Configuration.getPathToCatalogForTest("rejoin.jar"), 1, 2, 1, 9998, false);
assertTrue(success);
Mi... |
diff --git a/src/org/broad/igv/track/TrackLoader.java b/src/org/broad/igv/track/TrackLoader.java
index edf039cfb..834df1cff 100644
--- a/src/org/broad/igv/track/TrackLoader.java
+++ b/src/org/broad/igv/track/TrackLoader.java
@@ -1,1228 +1,1227 @@
/*
* Copyright (c) 2007-2012 The Broad Institute, Inc.
* SOFTWARE CO... | true | true | public List<Track> load(ResourceLocator locator, Genome genome) {
final String path = locator.getPath();
try {
String typeString = locator.getType();
if (typeString == null) {
// Genome space hack -- check for explicit type converter
//https:... | public List<Track> load(ResourceLocator locator, Genome genome) {
final String path = locator.getPath();
try {
String typeString = locator.getType();
if (typeString == null) {
// Genome space hack -- check for explicit type converter
//https:... |
diff --git a/src/com/boh/flatmate/FlatFragment.java b/src/com/boh/flatmate/FlatFragment.java
index 6742f14..97464e6 100644
--- a/src/com/boh/flatmate/FlatFragment.java
+++ b/src/com/boh/flatmate/FlatFragment.java
@@ -1,131 +1,135 @@
package com.boh.flatmate;
import com.boh.flatmate.R;
import com.boh.flatmate.FlatM... | true | true | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();
flatList = new FlatListFragment();
//ft.setCustomAnimations(R.anim.slide_up_in, R.anim.slide_out_down);
ft.replac... | public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();
flatList = new FlatListFragment();
//ft.setCustomAnimations(R.anim.slide_up_in, R.anim.slide_out_down);
ft.replac... |
diff --git a/plugins/org.eclipse.viatra2.patternlanguage.emf/src/org/eclipse/viatra2/patternlanguage/validation/EMFPatternLanguageJavaValidator.java b/plugins/org.eclipse.viatra2.patternlanguage.emf/src/org/eclipse/viatra2/patternlanguage/validation/EMFPatternLanguageJavaValidator.java
index d9394810..f88a3c3b 100644
-... | true | true | public void checkEnumValues(EnumValue value) {
if (value.eContainer() instanceof PathExpressionHead) {
// If container is PathExpression check for enum type assignability
EEnum enumType = value.getEnumeration();
if (enumType == null && value.getLiteral() != null) {
... | public void checkEnumValues(EnumValue value) {
if (value.eContainer() instanceof PathExpressionHead) {
// If container is PathExpression check for enum type assignability
EEnum enumType = value.getEnumeration();
if (enumType == null && value.getLiteral() != null) {
... |
diff --git a/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplConsumer.java b/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplConsumer.java
index fbc725e2b5..b89280b84a 100644
--- a/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/... | true | true | public void handleSearchResult( SearchResultEntry syncResult )
{
LOG.debug( "------------- starting handleSearchResult ------------" );
SyncStateValueControl syncStateCtrl = new SyncStateValueControl();
try
{
Entry remoteEntry = syncResult.getEntry();
... | public void handleSearchResult( SearchResultEntry syncResult )
{
LOG.debug( "------------- starting handleSearchResult ------------" );
SyncStateValueControl syncStateCtrl = new SyncStateValueControl();
try
{
Entry remoteEntry = syncResult.getEntry();
... |
diff --git a/src/com/edinarobotics/zed/Controls.java b/src/com/edinarobotics/zed/Controls.java
index f71c5e3..28aa5de 100644
--- a/src/com/edinarobotics/zed/Controls.java
+++ b/src/com/edinarobotics/zed/Controls.java
@@ -1,66 +1,66 @@
package com.edinarobotics.zed;
import com.edinarobotics.utils.gamepad.Gamepad;
i... | false | true | private Controls(){
gamepad1 = new Gamepad(1);
//Conveyor
gamepad1.LEFT_TRIGGER.whenPressed(new SetConveyorCommand(Conveyor.CONVEYOR_IN));
gamepad1.LEFT_TRIGGER.whenReleased(new SetConveyorCommand(Conveyor.CONVEYOR_STOP));
gamepad1.LEFT_BUMPER.whenPressed(new SetConveyorComma... | private Controls(){
gamepad1 = new Gamepad(1);
//Conveyor
gamepad1.LEFT_TRIGGER.whenPressed(new SetConveyorCommand(Conveyor.CONVEYOR_IN));
gamepad1.LEFT_TRIGGER.whenReleased(new SetConveyorCommand(Conveyor.CONVEYOR_STOP));
gamepad1.LEFT_BUMPER.whenPressed(new SetConveyorComma... |
diff --git a/src/java/processors/TopicDelete.java b/src/java/processors/TopicDelete.java
index 0f5eea6..8e2c04e 100644
--- a/src/java/processors/TopicDelete.java
+++ b/src/java/processors/TopicDelete.java
@@ -1,96 +1,99 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor... | true | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
int id = Integer.parseInt(request.getParameter("id"));
Connection cn = db... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
int id = Integer.parseInt(request.getParameter("id"));
Connection cn = db... |
diff --git a/src/balle/strategy/planner/GoToBallM3.java b/src/balle/strategy/planner/GoToBallM3.java
index d578e3c..33312ca 100644
--- a/src/balle/strategy/planner/GoToBallM3.java
+++ b/src/balle/strategy/planner/GoToBallM3.java
@@ -1,142 +1,143 @@
package balle.strategy.planner;
import java.awt.Color;
import or... | true | true | protected StaticFieldObject getTarget(Snapshot snapshot) {
Ball ball = snapshot.getBall();
Goal targetGoal = snapshot.getOpponentsGoal();
Line targetLine = new Line(targetGoal.getPosition(), ball.getPosition());
if (stage < 2)
{
Pitch pitch = snapshot.getPitch();
double ba... | protected StaticFieldObject getTarget(Snapshot snapshot) {
Ball ball = snapshot.getBall();
Goal targetGoal = snapshot.getOpponentsGoal();
Line targetLine = new Line(targetGoal.getPosition(), ball.getPosition());
if (stage < 2)
{
Pitch pitch = snapshot.getPitch();
double ba... |
diff --git a/core/repository/http/src/main/java/org/openrdf/repository/http/config/HTTPRepositoryConfig.java b/core/repository/http/src/main/java/org/openrdf/repository/http/config/HTTPRepositoryConfig.java
index 336689f72..4b7deceb2 100644
--- a/core/repository/http/src/main/java/org/openrdf/repository/http/config/HTT... | true | true | public void parse(Model model, Resource implNode)
throws RepositoryConfigException
{
super.parse(model, implNode);
try {
Value server = ModelUtil.getOptionalObject(model, implNode, SERVERURL);
Literal id = ModelUtil.getOptionalObjectLiteral(model, implNode, REPOSITORYID);
if (server != null && id != n... | public void parse(Model model, Resource implNode)
throws RepositoryConfigException
{
super.parse(model, implNode);
try {
Value server = ModelUtil.getOptionalObject(model, implNode, SERVERURL);
Literal id = ModelUtil.getOptionalObjectLiteral(model, implNode, REPOSITORYID);
if (server != null && id != n... |
diff --git a/src/statalign/io/DataManager.java b/src/statalign/io/DataManager.java
index d3d5920..ceed8ab 100644
--- a/src/statalign/io/DataManager.java
+++ b/src/statalign/io/DataManager.java
@@ -1,57 +1,59 @@
package statalign.io;
import java.io.File;
import java.io.IOException;
import java.util.List;
import... | false | true | public DataType read(File file) {
String ext = getExtension(file);
DataType data;
for(DataReader reader : readers) {
if(reader.supportedExtensions().contains(ext)) {
try {
data = reader.read(file);
System.out.println("Successfully read "+file.getName()+" using "+reader.toString());
return d... | public DataType read(File file) {
String ext = getExtension(file);
DataType data;
for(DataReader reader : readers) {
if(reader.supportedExtensions().contains(ext)) {
try {
data = reader.read(file);
System.out.println("Successfully read "+file.getName()+" using "+reader.toString());
return d... |
diff --git a/platforms/android/src/com/example/SanAngeles/DemoGLSurfaceView.java b/platforms/android/src/com/example/SanAngeles/DemoGLSurfaceView.java
index 0aa2e16..c3afd35 100644
--- a/platforms/android/src/com/example/SanAngeles/DemoGLSurfaceView.java
+++ b/platforms/android/src/com/example/SanAngeles/DemoGLSurfaceV... | true | true | public boolean onTouchEvent(final MotionEvent event) {
//Log.v(this.toString(), "onTouchEvent!!!!!!!!!!!!!!!!");
//int index = event.getActionIndex();
int index = event.getActionMasked();
int pointerId = event.getActionIndex(); //event.getAction() >> MotionEvent.ACTION_POINTER_INDEX_SHIFT; //event.get... | public boolean onTouchEvent(final MotionEvent event) {
//Log.v(this.toString(), "onTouchEvent!!!!!!!!!!!!!!!!");
//int index = event.getActionIndex();
int index = event.getActionMasked();
int pointerId = event.getActionIndex(); //event.getAction() >> MotionEvent.ACTION_POINTER_INDEX_SHIFT; //event.get... |
diff --git a/csep/src/csep/parser/Lexer.java b/csep/src/csep/parser/Lexer.java
index f5ecf05..e416f4b 100644
--- a/csep/src/csep/parser/Lexer.java
+++ b/csep/src/csep/parser/Lexer.java
@@ -1,107 +1,102 @@
package csep.parser;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import... | true | true | public Token nextToken() {
Token token = null;
CoffeeSymbol symbol = null;
Exception problem = null;
try {
symbol = aptanaScanner.nextToken();
if (symbol == null) {
// XXX: why do we get a null symbol?
token = CommonToken.INVALID_TOKEN;
} else if (symbol.getId() == Terminals.EOF) {
token =... | public Token nextToken() {
Token token = null;
CoffeeSymbol symbol = null;
Exception problem = null;
try {
symbol = aptanaScanner.nextToken();
if (symbol == null) {
// XXX: why do we get a null symbol?
token = CommonToken.INVALID_TOKEN;
} else if (symbol.getId() == Terminals.EOF) {
token =... |
diff --git a/src/org/geworkbench/engine/config/UILauncher.java b/src/org/geworkbench/engine/config/UILauncher.java
index 0fac35d4..49b2b393 100755
--- a/src/org/geworkbench/engine/config/UILauncher.java
+++ b/src/org/geworkbench/engine/config/UILauncher.java
@@ -1,248 +1,254 @@
package org.geworkbench.engine.config;
... | true | true | public static void main(String[] args) {
String configFileArg = null;
String lookAndFeelArg = null;
for (int i = 0; i < args.length; i++) {
if (LOOK_AND_FEEL_FLAG.equals(args[i])) {
if (args.length == (i + 1)) {
exitOnErrorMessage("No look & f... | public static void main(String[] args) {
String configFileArg = null;
String lookAndFeelArg = null;
for (int i = 0; i < args.length; i++) {
if (LOOK_AND_FEEL_FLAG.equals(args[i])) {
if (args.length == (i + 1)) {
exitOnErrorMessage("No look & f... |
diff --git a/src/com/quanturium/androcloud/fragments/FilesFragment.java b/src/com/quanturium/androcloud/fragments/FilesFragment.java
index b6418ad..c23742f 100644
--- a/src/com/quanturium/androcloud/fragments/FilesFragment.java
+++ b/src/com/quanturium/androcloud/fragments/FilesFragment.java
@@ -1,630 +1,631 @@
packag... | true | true | private void setHandler()
{
this.handler = new Handler()
{
@Override
public void handleMessage(Message msg)
{
switch (msg.what)
{
case Constant.HANDLER_ACTION_RELOAD: // We reload everything = we remove the old items
@SuppressWarnings("unchecked")
List<CloudAppItem> items2 = (... | private void setHandler()
{
this.handler = new Handler()
{
@Override
public void handleMessage(Message msg)
{
switch (msg.what)
{
case Constant.HANDLER_ACTION_RELOAD: // We reload everything = we remove the old items
@SuppressWarnings("unchecked")
List<CloudAppItem> items2 = (... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/advanced/TARDISConsoleCloseListener.java b/src/main/java/me/eccentric_nz/TARDIS/advanced/TARDISConsoleCloseListener.java
index 2ff1fb0d6..70c02e8fe 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/advanced/TARDISConsoleCloseListener.java
+++ b/src/main/java/me/eccentri... | true | true | public void onInventoryClose(InventoryCloseEvent event) {
final Inventory inv = event.getInventory();
String inv_name = inv.getTitle();
if (inv_name.equals("§4TARDIS Console")) {
Player p = ((Player) event.getPlayer());
// get the TARDIS the player is in
H... | public void onInventoryClose(InventoryCloseEvent event) {
final Inventory inv = event.getInventory();
String inv_name = inv.getTitle();
if (inv_name.equals("§4TARDIS Console")) {
Player p = ((Player) event.getPlayer());
// get the TARDIS the player is in
H... |
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java
index 6c213dcdcd..4828f39276 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWrite... | false | true | public void run() {
// LUCENE-2239: won't work with NIOFS/MMAP
Directory dir = new MockDirectoryWrapper(random, new RAMDirectory());
IndexWriter w = null;
while(!finish) {
try {
while(!finish) {
if (w != null) {
w.close();
w = null;
... | public void run() {
// LUCENE-2239: won't work with NIOFS/MMAP
Directory dir = new MockDirectoryWrapper(random, new RAMDirectory());
IndexWriter w = null;
while(!finish) {
try {
while(!finish) {
if (w != null) {
w.close();
w = null;
... |
diff --git a/AsaJavaLib/com/asascience/openmap/layer/ExtentRectangleLayer.java b/AsaJavaLib/com/asascience/openmap/layer/ExtentRectangleLayer.java
index 7fc5c96..2674f49 100644
--- a/AsaJavaLib/com/asascience/openmap/layer/ExtentRectangleLayer.java
+++ b/AsaJavaLib/com/asascience/openmap/layer/ExtentRectangleLayer.java... | false | true | public void addExtentRectangle(LatLonRect llr) {
// set the currentExtentRectangle
extentRect = llr;
// see the OpenMap "Restrictions" on OMPolygons and OMLines
if (llr.getWidth() >= 180 & llr.getWidth() < 355) {
if (getList() != null && getList().size() > 0) {
getList().clear();
... | public void addExtentRectangle(LatLonRect llr) {
// set the currentExtentRectangle
extentRect = llr;
// see the OpenMap "Restrictions" on OMPolygons and OMLines
if (llr.getWidth() >= 180 & llr.getWidth() < 355) {
if (getList() != null && getList().size() > 0) {
getList().clear();
... |
diff --git a/src/main/net/sf/persist/TableMapping.java b/src/main/net/sf/persist/TableMapping.java
index 65883a9..c6e48eb 100644
--- a/src/main/net/sf/persist/TableMapping.java
+++ b/src/main/net/sf/persist/TableMapping.java
@@ -1,442 +1,442 @@
// $Id$
package net.sf.persist;
import java.lang.reflect.Method;
im... | true | true | public TableMapping(final DatabaseMetaData metaData, final Class objectClass, final NameGuesser nameGuesser)
throws SQLException {
ResultSet resultSet = null;
// object class
this.objectClass = objectClass;
// database support for auto increment keys
supportsGetGeneratedKeys = metaData.supportsGetGener... | public TableMapping(final DatabaseMetaData metaData, final Class objectClass, final NameGuesser nameGuesser)
throws SQLException {
ResultSet resultSet = null;
// object class
this.objectClass = objectClass;
// database support for auto increment keys
supportsGetGeneratedKeys = metaData.supportsGetGener... |
diff --git a/VirtualGamepad/src/bgsep/model/JoystickHandler.java b/VirtualGamepad/src/bgsep/model/JoystickHandler.java
index f47c892..11d829a 100644
--- a/VirtualGamepad/src/bgsep/model/JoystickHandler.java
+++ b/VirtualGamepad/src/bgsep/model/JoystickHandler.java
@@ -1,126 +1,126 @@
package bgsep.model;
import and... | false | true | public void onStickMovement() {
// Update views
setChanged();
notifyObservers();
if(leftRightEnabled) {
// Check to see if an update to server is necessary
// according to the specified sensitivity
float currPosX = getX();
if((currPosX >= prevPosX + SENSITIVITY) ||
(currPosX <= prevPosX... | public void onStickMovement() {
// Update views
setChanged();
notifyObservers();
if(leftRightEnabled) {
// Check to see if an update to server is necessary
// according to the specified sensitivity
float currPosX = getX();
if((currPosX >= prevPosX + SENSITIVITY) ||
(currPosX <= prevPosX... |
diff --git a/nexus-gwt-ui/sonatype-ext-gwt-nexus-client/src/main/java/org/sonatype/nexus/ext/gwt/ui/client/reposerver/RepoTreeBinding.java b/nexus-gwt-ui/sonatype-ext-gwt-nexus-client/src/main/java/org/sonatype/nexus/ext/gwt/ui/client/reposerver/RepoTreeBinding.java
index b3f1a22f5..23734565f 100644
--- a/nexus-gwt-ui/... | true | true | public void load(final DataReader<RepoContentNode, Object> reader,
RepoContentNode parent, final AsyncCallback<Object> callback) {
int i = parent.getResourceUri().indexOf("repositories");
String url = parent.getResourceUri().substring(i);
server.getResource(... | public void load(final DataReader<RepoContentNode, Object> reader,
RepoContentNode parent, final AsyncCallback<Object> callback) {
int i = parent.getResourceUri().indexOf("repositories");
String url = parent.getResourceUri().substring(i) + "/";
server.getRes... |
diff --git a/carousel/test/src/com/android/carouseltest/MusicDemoActivity.java b/carousel/test/src/com/android/carouseltest/MusicDemoActivity.java
index b473b31..0ed4993 100644
--- a/carousel/test/src/com/android/carouseltest/MusicDemoActivity.java
+++ b/carousel/test/src/com/android/carouseltest/MusicDemoActivity.java... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final Resources res = getResources();
setContentView(R.layout.music_demo);
mView = (CarouselView) findViewById(R.id.carousel);
mHelper = new LocalCarouselViewHelper(this);
mHelper... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final Resources res = getResources();
setContentView(R.layout.music_demo);
mView = (CarouselView) findViewById(R.id.carousel);
mHelper = new LocalCarouselViewHelper(this);
mHelper... |
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
index f5056741..1c86bd66 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java
@@ -1,303 +1,306 @@
/*
... | false | true | public PullResult call() throws WrongRepositoryStateException,
InvalidConfigurationException, DetachedHeadException,
InvalidRemoteException, CanceledException {
checkCallable();
monitor.beginTask(JGitText.get().pullTaskName, 2);
String branchName;
try {
String fullBranch = repo.getFullBranch();
i... | public PullResult call() throws WrongRepositoryStateException,
InvalidConfigurationException, DetachedHeadException,
InvalidRemoteException, CanceledException, RefNotFoundException {
checkCallable();
monitor.beginTask(JGitText.get().pullTaskName, 2);
String branchName;
try {
String fullBranch = repo... |
diff --git a/SpagoBIWhatIfEngine/src/it/eng/spagobi/engines/whatif/WhatIfEngineInstance.java b/SpagoBIWhatIfEngine/src/it/eng/spagobi/engines/whatif/WhatIfEngineInstance.java
index de67ebd56..0c50c31cf 100644
--- a/SpagoBIWhatIfEngine/src/it/eng/spagobi/engines/whatif/WhatIfEngineInstance.java
+++ b/SpagoBIWhatIfEngine... | true | true | public WhatIfEngineInstance(WhatIfTemplate template, Map env) {
super( env );
includes = WhatIfEngine.getConfig().getIncludes();
try {
Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
Class.forName("org.olap4j.OlapWrapper");
} catch (ClassNotFoundException e) {
throw new RuntimeExcept... | public WhatIfEngineInstance(WhatIfTemplate template, Map env) {
super( env );
includes = WhatIfEngine.getConfig().getIncludes();
try {
Class.forName("mondrian.olap4j.MondrianOlap4jDriver");
Class.forName("org.olap4j.OlapWrapper");
} catch (ClassNotFoundException e) {
throw new RuntimeExcept... |
diff --git a/src/com/martinleopold/mode/python/PythonBuild.java b/src/com/martinleopold/mode/python/PythonBuild.java
index fd54278..3b4effe 100644
--- a/src/com/martinleopold/mode/python/PythonBuild.java
+++ b/src/com/martinleopold/mode/python/PythonBuild.java
@@ -1,102 +1,102 @@
package com.martinleopold.mode.python;... | true | true | public String build(File srcFolder, File binFolder, boolean sizeWarning) throws SketchException {
this.srcFolder = srcFolder;
this.binFolder = binFolder;
// escape all newlines to make single line string
String pyCode = sketch.getMainProgram().replaceAll("\n", "\\\\n"); // \\n (will... | public String build(File srcFolder, File binFolder, boolean sizeWarning) throws SketchException {
this.srcFolder = srcFolder;
this.binFolder = binFolder;
// escape all newlines to make single line string
String pyCode = sketch.getMainProgram().replaceAll("\n", "\\\\n").replaceAll("\... |
diff --git a/src/main/java/com/sangupta/consoles/ui/SwingTerminal.java b/src/main/java/com/sangupta/consoles/ui/SwingTerminal.java
index f9b3021..b4e7b02 100644
--- a/src/main/java/com/sangupta/consoles/ui/SwingTerminal.java
+++ b/src/main/java/com/sangupta/consoles/ui/SwingTerminal.java
@@ -1,533 +1,537 @@
/**
*
... | true | true | public String readString(boolean echo, char mask) {
final StringBuilder builder = new StringBuilder();
InputKey key;
while(true) {
key = this.getKey();
if(this.closingTerminal) {
break;
}
// ENTER
if(key.ch == '\n' && !key.altPressed && !key.ctrlPressed) {
int currentRow = this.... | public String readString(boolean echo, char mask) {
final StringBuilder builder = new StringBuilder();
InputKey key;
while(true) {
key = this.getKey();
if(this.closingTerminal) {
break;
}
// ENTER
if(key.ch == '\n' && !key.altPressed && !key.ctrlPressed) {
int currentRow = this.... |
diff --git a/src/ru/ifmo/neerc/timer/Timer.java b/src/ru/ifmo/neerc/timer/Timer.java
index 1812599..b93d369 100644
--- a/src/ru/ifmo/neerc/timer/Timer.java
+++ b/src/ru/ifmo/neerc/timer/Timer.java
@@ -1,51 +1,52 @@
package ru.ifmo.neerc.timer;
import java.io.File;
import java.io.FileNotFoundException;
import java... | false | true | public void run(String[] args) {
final TimerFrame tf = new TimerFrame();
Pcms2 connection = new Pcms2(Settings.instance().host);
if (args.length == 1) {
tf.sync(Integer.parseInt(args[0]));
} else {
connection.hookLengthChange(new Callback<Long>() {
@Override
public void exec(Long arg) {
l... | public void run(String[] args) {
final TimerFrame tf = new TimerFrame();
if (args.length == 2) {
tf.setStatus(Integer.parseInt(args[0]));
tf.sync(Integer.parseInt(args[1]));
} else {
Pcms2 connection = new Pcms2(Settings.instance().host);
connection.hookLengthChange(new Callback<Long>() {
@Ove... |
diff --git a/src/test/java/net/buddat/mineserv/MineServTest.java b/src/test/java/net/buddat/mineserv/MineServTest.java
index 6af1608..a372e0e 100644
--- a/src/test/java/net/buddat/mineserv/MineServTest.java
+++ b/src/test/java/net/buddat/mineserv/MineServTest.java
@@ -1,17 +1,17 @@
package net.buddat.mineserv;
impo... | true | true | public void testAnything() {
assertTrue("Test fails", false);
}
| public void testAnything() {
assertTrue("It's alive!", true);
}
|
diff --git a/tests/tests/view/src/android/view/cts/View_AnimationTest.java b/tests/tests/view/src/android/view/cts/View_AnimationTest.java
index 7a22a3b5..06763f53 100644
--- a/tests/tests/view/src/android/view/cts/View_AnimationTest.java
+++ b/tests/tests/view/src/android/view/cts/View_AnimationTest.java
@@ -1,169 +1,... | false | true | public void testClearDuringAnimation() throws Throwable {
final View view = mActivity.findViewById(R.id.fit_windows);
runTestOnUiThread(new Runnable() {
public void run() {
view.startAnimation(mAnimation);
}
});
new DelayedCheck(TIME_OUT) {
... | public void testClearDuringAnimation() throws Throwable {
final View view = mActivity.findViewById(R.id.fit_windows);
runTestOnUiThread(new Runnable() {
public void run() {
view.startAnimation(mAnimation);
assertNotNull(view.getAnimation());
}
... |
diff --git a/src/main/java/com/minebans/antispam/checks/PlayerDataChecker.java b/src/main/java/com/minebans/antispam/checks/PlayerDataChecker.java
index fe409f1..9844aaa 100755
--- a/src/main/java/com/minebans/antispam/checks/PlayerDataChecker.java
+++ b/src/main/java/com/minebans/antispam/checks/PlayerDataChecker.java... | true | true | public void run(){
String playerName;
PlayerData playerData;
for (Entry<String, PlayerData> entry : plugin.dataManager.getAll()){
playerName = entry.getKey();
playerData = entry.getValue();
if (this.isChatSpamer(playerData) || this.isLoginSpammer(playerData) || this.isLogoutSpammer(playerData)){
... | public void run(){
String playerName;
PlayerData playerData;
for (Entry<String, PlayerData> entry : plugin.dataManager.getAll()){
playerName = entry.getKey();
playerData = entry.getValue();
if (this.isChatSpamer(playerData) || this.isLoginSpammer(playerData) || this.isLogoutSpammer(playerData)){
... |
diff --git a/src/com/carte/panels/Carte.java b/src/com/carte/panels/Carte.java
index d0d88d6..9e168a1 100644
--- a/src/com/carte/panels/Carte.java
+++ b/src/com/carte/panels/Carte.java
@@ -1,772 +1,778 @@
package com.carte.panels;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.Cursor;
import ... | true | true | public void mouseReleased(MouseEvent arg0)
{
// On récupère les coordonnées de release
int[] coordDeplacement = new int[2];
coordDeplacement[0] = arg0.getY() / hauteurCase;
coordDeplacement[1] = arg0.getX() / largeurCase;
if (arg0.getY() < 0)
coordDeplacement[0]--;
if (arg0.getX() < 0)
coordDeplacem... | public void mouseReleased(MouseEvent arg0)
{
// On récupère les coordonnées de release
int[] coordDeplacement = new int[2];
coordDeplacement[0] = arg0.getY() / hauteurCase;
coordDeplacement[1] = arg0.getX() / largeurCase;
if (arg0.getY() < 0)
coordDeplacement[0]--;
if (arg0.getX() < 0)
coordDeplacem... |
diff --git a/stripes/src/net/sourceforge/stripes/action/ForwardResolution.java b/stripes/src/net/sourceforge/stripes/action/ForwardResolution.java
index 4ccf25fd..27893890 100644
--- a/stripes/src/net/sourceforge/stripes/action/ForwardResolution.java
+++ b/stripes/src/net/sourceforge/stripes/action/ForwardResolution.ja... | true | true | public void execute(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String path = getPath();
log.trace("Forwarding to path: ", path);
request.getRequestDispatcher(path).forward(request, response);
}
| public void execute(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String path = getUrl();
log.trace("Forwarding to path: ", path);
request.getRequestDispatcher(path).forward(request, response);
}
|
diff --git a/src/org/rascalmpl/parser/gtd/preprocessing/ExpectBuilder.java b/src/org/rascalmpl/parser/gtd/preprocessing/ExpectBuilder.java
index 56aee32b28..526f8fa2d6 100644
--- a/src/org/rascalmpl/parser/gtd/preprocessing/ExpectBuilder.java
+++ b/src/org/rascalmpl/parser/gtd/preprocessing/ExpectBuilder.java
@@ -1,120... | false | true | public AbstractStackNode[] buildExpectArray(){
HashMap<AbstractStackNode, AbstractStackNode[]> constructedExpects = new HashMap<AbstractStackNode, AbstractStackNode[]>();
for(int i = alternatives.size() - 1; i >= 0; --i){
DoubleArrayList<IConstructor, AbstractStackNode[]> alternativesList = alternatives.getV... | public AbstractStackNode[] buildExpectArray(){
HashMap<AbstractStackNode, AbstractStackNode[]> constructedExpects = new HashMap<AbstractStackNode, AbstractStackNode[]>();
for(int i = alternatives.size() - 1; i >= 0; --i){
DoubleArrayList<IConstructor, AbstractStackNode[]> alternativesList = alternatives.getV... |
diff --git a/projects/android/src/com/hyston/games/game2/Game2GLView.java b/projects/android/src/com/hyston/games/game2/Game2GLView.java
index f058976..1e84058 100644
--- a/projects/android/src/com/hyston/games/game2/Game2GLView.java
+++ b/projects/android/src/com/hyston/games/game2/Game2GLView.java
@@ -1,216 +1,217 @@... | false | true | public boolean onTouchEvent(final MotionEvent event)
{
int Action = event.getAction();
float x = event.getX();
float y = event.getY();
switch(Action & MotionEvent.ACTION_MASK)
{
case MotionEvent.ACTION_DOWN:
Game2JNI.ontouch(0, 0, event.getX(), event.getY());
... | public boolean onTouchEvent(final MotionEvent event)
{
//int pointers_count = event.getPointerCount();
int Action = event.getAction();
//float x = event.getX();
//float y = event.getY();
switch(Action & MotionEvent.ACTION_MASK)
{
case MotionEvent.ACTION_DOWN:
Game... |
diff --git a/src/com/android/browser/PageDialogsHandler.java b/src/com/android/browser/PageDialogsHandler.java
index 19cbfcde..3ed1004d 100644
--- a/src/com/android/browser/PageDialogsHandler.java
+++ b/src/com/android/browser/PageDialogsHandler.java
@@ -1,398 +1,399 @@
/*
* Copyright (C) 2010 The Android Open Sourc... | true | true | void showPageInfo(final Tab tab,
final boolean fromShowSSLCertificateOnError,
final String urlCertificateOnError) {
final LayoutInflater factory = LayoutInflater.from(mContext);
final View pageInfoView = factory.inflate(R.layout.page_info, null);
final WebView view ... | void showPageInfo(final Tab tab,
final boolean fromShowSSLCertificateOnError,
final String urlCertificateOnError) {
if (tab == null) return;
final LayoutInflater factory = LayoutInflater.from(mContext);
final View pageInfoView = factory.inflate(R.layout.page_info, nu... |
diff --git a/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/output/DerivedKeyTokenOutputProcessor.java b/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/output/DerivedKeyTokenOutputProcessor.java
index 6d515a4d1..7fbd1a243 100644
--- a/ws-security-stax/src/main/java/org/apache/w... | true | true | public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException {
try {
String tokenId = outputProcessorChain.getSecurityContext().get(WSSConstants.PROP_USE_THIS_TOKEN_ID_FOR_DERIVED_KEY);
if (tokenId == nu... | public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException {
try {
String tokenId = outputProcessorChain.getSecurityContext().get(WSSConstants.PROP_USE_THIS_TOKEN_ID_FOR_DERIVED_KEY);
if (tokenId == nu... |
diff --git a/src/haven/Skeleton.java b/src/haven/Skeleton.java
index cae7eca4..fe140532 100644
--- a/src/haven/Skeleton.java
+++ b/src/haven/Skeleton.java
@@ -1,544 +1,545 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
* ... | false | true | public void aupdate(float time) {
if(time > len)
time = len;
this.time = time;
reset();
for(int i = 0; i < tracks.length; i++) {
Track t = tracks[i];
if((t == null) || (t.frames.length == 0))
continue;
if(t.frames.length == 1) {
qset(lrot[i], t.frames[0].rot);
vset(lpos[i]... | public void aupdate(float time) {
if(time > len)
time = len;
this.time = time;
reset();
for(int i = 0; i < tracks.length; i++) {
Track t = tracks[i];
if((t == null) || (t.frames.length == 0))
continue;
if(t.frames.length == 1) {
qset(lrot[i], t.frames[0].rot);
vset(lpos[i]... |
diff --git a/java/src/org/nutz/zdoc/impl/html/ZDocNode2Html.java b/java/src/org/nutz/zdoc/impl/html/ZDocNode2Html.java
index 4e61f5b..e721da0 100644
--- a/java/src/org/nutz/zdoc/impl/html/ZDocNode2Html.java
+++ b/java/src/org/nutz/zdoc/impl/html/ZDocNode2Html.java
@@ -1,334 +1,335 @@
package org.nutz.zdoc.impl.html;
... | false | true | private void eleAsInline(StringBuilder sb, ZDocEle ele, Rendering ing) {
// 要生成的标签
ArrayList<String> tagNames = new ArrayList<String>(10);
if (ele.hasAttr("href")) {
tagNames.add("a");
} else if (ele.is(ZDocEleType.SUB)) {
tagNames.add("sub");
} else i... | private void eleAsInline(StringBuilder sb, ZDocEle ele, Rendering ing) {
// 要生成的标签
ArrayList<String> tagNames = new ArrayList<String>(10);
if (ele.hasAttr("href")) {
tagNames.add("a");
} else if (ele.is(ZDocEleType.SUB)) {
tagNames.add("sub");
} else i... |
diff --git a/electric/electric-core/src/main/java/com/sun/electric/util/config/EConfigContainer.java b/electric/electric-core/src/main/java/com/sun/electric/util/config/EConfigContainer.java
index 64a186a34..c8ada680b 100644
--- a/electric/electric-core/src/main/java/com/sun/electric/util/config/EConfigContainer.java
+... | true | true | protected Object lookupImpl(String name, Object... runtimeParameters) {
Object result = null;
ConfigEntry<?> entry = (ConfigEntry<?>) lookupMapClass.get(name);
if (entry != null) {
try {
result = entry.getInstance();
} catch (Throwable e) {
... | protected Object lookupImpl(String name, Object... runtimeParameters) {
Object result = null;
ConfigEntry<?> entry = (ConfigEntry<?>) lookupMapClass.get(name);
if (entry != null) {
try {
result = entry.getInstance();
} catch (Throwable e) {
... |
diff --git a/src/bzb/se/update/Screenshots.java b/src/bzb/se/update/Screenshots.java
index 5e6ce2f..d6ecab4 100644
--- a/src/bzb/se/update/Screenshots.java
+++ b/src/bzb/se/update/Screenshots.java
@@ -1,72 +1,72 @@
package bzb.se.update;
import java.io.File;
import org.w3c.dom.Document;
import org.w3c.dom.*;
imp... | true | true | public static void main(String[] args) {
try {
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse (new File("res/markers.xml"));
// normalize ... | public static void main(String[] args) {
try {
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse (new File("res/markers.xml"));
// normalize ... |
diff --git a/descent.compiler/src/descent/core/ddoc/DdocParser.java b/descent.compiler/src/descent/core/ddoc/DdocParser.java
index 98c80e36..f7959d48 100644
--- a/descent.compiler/src/descent/core/ddoc/DdocParser.java
+++ b/descent.compiler/src/descent/core/ddoc/DdocParser.java
@@ -1,284 +1,284 @@
package descent.core... | true | true | private Ddoc internalParse() throws IOException {
ddoc = new Ddoc();
StringReader stringReader = new StringReader(text);
BufferedReader reader = new BufferedReader(stringReader);
String firstLine = reader.readLine();
if (firstLine == null) {
return ddoc;
}
firstLine = firstLine.trim();
if (... | private Ddoc internalParse() throws IOException {
ddoc = new Ddoc();
StringReader stringReader = new StringReader(text);
BufferedReader reader = new BufferedReader(stringReader);
String firstLine = reader.readLine();
if (firstLine == null) {
return ddoc;
}
firstLine = firstLine.trim();
if (... |
diff --git a/jsf-ri/src/com/sun/faces/lifecycle/UpdateModelValuesPhase.java b/jsf-ri/src/com/sun/faces/lifecycle/UpdateModelValuesPhase.java
index c0e54c8e0..919c0cd9a 100644
--- a/jsf-ri/src/com/sun/faces/lifecycle/UpdateModelValuesPhase.java
+++ b/jsf-ri/src/com/sun/faces/lifecycle/UpdateModelValuesPhase.java
@@ -1,1... | true | true | public void execute(FacesContext facesContext) {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Entering UpdateModelValuesPhase");
}
UIComponent component = facesContext.getViewRoot();
assert (null != component);
String exceptionMessage = null;
try {
... | public void execute(FacesContext facesContext) {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Entering UpdateModelValuesPhase");
}
UIComponent component = facesContext.getViewRoot();
assert (null != component);
String exceptionMessage = null;
try {
... |
diff --git a/org.fedoraproject.eclipse.packager/src/org/fedoraproject/eclipse/packager/handlers/NewSourcesHandler.java b/org.fedoraproject.eclipse.packager/src/org/fedoraproject/eclipse/packager/handlers/NewSourcesHandler.java
index a39d17f..4ddb87f 100644
--- a/org.fedoraproject.eclipse.packager/src/org/fedoraproject/... | true | true | public Object execute(final ExecutionEvent e) throws ExecutionException {
final FedoraProjectRoot fedoraProjectRoot = FedoraHandlerUtils.getValidRoot(e);
final IResource resource = FedoraHandlerUtils.getResource(e);
final SourcesFile sourceFile = fedoraProjectRoot.getSourcesFile();
final IFpProjectBits projec... | public Object execute(final ExecutionEvent e) throws ExecutionException {
final FedoraProjectRoot fedoraProjectRoot = FedoraHandlerUtils.getValidRoot(e);
final IResource resource = FedoraHandlerUtils.getResource(e);
final SourcesFile sourceFile = fedoraProjectRoot.getSourcesFile();
final IFpProjectBits projec... |
diff --git a/baksmali/src/test/java/org/jf/baksmali/AnalysisTest.java b/baksmali/src/test/java/org/jf/baksmali/AnalysisTest.java
index c511a37c..046ee493 100644
--- a/baksmali/src/test/java/org/jf/baksmali/AnalysisTest.java
+++ b/baksmali/src/test/java/org/jf/baksmali/AnalysisTest.java
@@ -1,122 +1,122 @@
/*
* Copyr... | true | true | public void runTest(String test, boolean registerInfo) throws IOException, URISyntaxException {
String dexFilePath = String.format("%s%sclasses.dex", test, File.separatorChar);
DexFile dexFile = DexFileFactory.loadDexFile(findResource(dexFilePath), 15);
baksmaliOptions options = new baksma... | public void runTest(String test, boolean registerInfo) throws IOException, URISyntaxException {
String dexFilePath = String.format("%s%sclasses.dex", test, File.separatorChar);
DexFile dexFile = DexFileFactory.loadDexFile(findResource(dexFilePath), 15);
baksmaliOptions options = new baksma... |
diff --git a/src/main/java/com/authdb/util/Util.java b/src/main/java/com/authdb/util/Util.java
index e0f8fe1..0b0d8df 100644
--- a/src/main/java/com/authdb/util/Util.java
+++ b/src/main/java/com/authdb/util/Util.java
@@ -1,1389 +1,1390 @@
/**
(C) Copyright 2011 CraftFire <dev@craftfire.com>
Contex <contex@craftfire.... | true | true | public static boolean checkScript(String type, String script, String player, String password,
String email, String ipAddress) throws SQLException {
boolean caseSensitive = false;
if (Util.databaseManager.getDatabaseType().equalsIgnoreCase("ebean")) {
EBean eBeanClass = EBean.checkPla... | public static boolean checkScript(String type, String script, String player, String password,
String email, String ipAddress) throws SQLException {
boolean caseSensitive = false;
if (Util.databaseManager.getDatabaseType().equalsIgnoreCase("ebean")) {
EBean eBeanClass = EBean.checkPla... |
diff --git a/src/com/wickedspiral/jacss/parser/Parser.java b/src/com/wickedspiral/jacss/parser/Parser.java
index 555194b..b680e2d 100644
--- a/src/com/wickedspiral/jacss/parser/Parser.java
+++ b/src/com/wickedspiral/jacss/parser/Parser.java
@@ -1,550 +1,550 @@
package com.wickedspiral.jacss.parser;
import com.googl... | false | true | public void token(Token token, String value)
{
if (options.isDebug()) System.err.printf("Token: %s, value: %s\n", token, value);
if (rgb)
{
if (NUMBER == token)
{
String h = Integer.toHexString(Integer.parseInt(value)).toLowerCase();
... | public void token(Token token, String value)
{
if (options.isDebug()) System.err.printf("Token: %s, value: %s, space? %b, in rule? %b\n", token, value, space, inRule);
if (rgb)
{
if (NUMBER == token)
{
String h = Integer.toHexString(Integer.parseI... |
diff --git a/JUnit_Example/src/CreditCardTest.java b/JUnit_Example/src/CreditCardTest.java
index 12dd5c0..03b96db 100644
--- a/JUnit_Example/src/CreditCardTest.java
+++ b/JUnit_Example/src/CreditCardTest.java
@@ -1,35 +1,35 @@
import static org.junit.Assert.*;
import org.junit.Test;
public class CreditCardTest... | false | true | public void testMakePayment() {
CreditCard cc = new CreditCard(1234567890,"XYZ",12000);
//make purchase
cc.purchase(6000);
//makePayment 2000
cc.makePayment(3000);
//checkBalance
assertTrue(cc.getAvailableBal()==9000);
}
| public void testMakePayment() {
CreditCard cc = new CreditCard(1234567890,"XYZ",12000);
//make purchase
cc.purchase(6000);
//makePayment 2000
cc.makePayment(2000);
//checkBalance
assertTrue(cc.getAvailableBal()==8000);
}
|
diff --git a/jdk1.4/org/bouncycastle/jcajce/provider/asymmetric/ec/SignatureSpi.java b/jdk1.4/org/bouncycastle/jcajce/provider/asymmetric/ec/SignatureSpi.java
index b7d56757..aebe1ef8 100644
--- a/jdk1.4/org/bouncycastle/jcajce/provider/asymmetric/ec/SignatureSpi.java
+++ b/jdk1.4/org/bouncycastle/jcajce/provider/asymm... | true | true | protected void engineInitVerify(PublicKey publicKey)
throws InvalidKeyException
{
CipherParameters param;
if (publicKey instanceof ECPublicKey)
{
param = ECUtil.generatePublicKeyParameter(publicKey);
}
else
{
try
{
... | protected void engineInitVerify(PublicKey publicKey)
throws InvalidKeyException
{
CipherParameters param;
if (publicKey instanceof ECPublicKey)
{
param = ECUtil.generatePublicKeyParameter(publicKey);
}
else
{
try
{
... |
diff --git a/IndaProject/src/components/HealthBarComponent.java b/IndaProject/src/components/HealthBarComponent.java
index 9633a3e..fea1edc 100644
--- a/IndaProject/src/components/HealthBarComponent.java
+++ b/IndaProject/src/components/HealthBarComponent.java
@@ -1,37 +1,37 @@
package components;
import org.newdaw... | true | true | public void render(GameContainer gc, StateBasedGame sb, Graphics gr) {
Vector2f pos = owner.getPosition();
float scale = owner.getScale();
damage.draw(pos.x - owner.getRadius(), pos.y - 30, owner.getHealth()/owner.getMaximumHealth() * damage.getWidth(), damage.getHeight());
health.draw(pos.x - owner.getRadius... | public void render(GameContainer gc, StateBasedGame sb, Graphics gr) {
Vector2f pos = owner.getPosition();
float scale = owner.getScale();
damage.draw(pos.x - owner.getRadius(), pos.y - 30, scale);
health.draw(pos.x - owner.getRadius(), pos.y - 30, (float)(owner.getHealth())/(float)(owner.getMaximumHealth()) ... |
diff --git a/ps3mediaserver/net/pms/network/HTMLConsole.java b/ps3mediaserver/net/pms/network/HTMLConsole.java
index eb49b8f6..3eb5a121 100644
--- a/ps3mediaserver/net/pms/network/HTMLConsole.java
+++ b/ps3mediaserver/net/pms/network/HTMLConsole.java
@@ -1,54 +1,54 @@
/*
* PS3 Media Server, for streaming any medias ... | true | true | public static String servePage(String resource) {
StringBuffer sb = new StringBuffer();
sb.append("<html><title>PS3 Media Server HTML Console</title></html><body>");
if (resource.equals("compact") && PMS.getConfiguration().getUseCache()) {
PMS.get().getDatabase().compact();
sb.append( "<p align=center><... | public static String servePage(String resource) {
StringBuffer sb = new StringBuffer();
sb.append("<html><head><title>PS3 Media Server HTML Console</title></head><body>");
if (resource.equals("compact") && PMS.getConfiguration().getUseCache()) {
PMS.get().getDatabase().compact();
sb.append( "<p align=ce... |
diff --git a/assets/src/org/ruboto/Script.java b/assets/src/org/ruboto/Script.java
index c1b9c58..f6e07e6 100644
--- a/assets/src/org/ruboto/Script.java
+++ b/assets/src/org/ruboto/Script.java
@@ -1,336 +1,337 @@
package org.ruboto;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import... | true | true | public static synchronized ScriptingContainer setUpJRuby(Context appContext, PrintStream out) {
if (ruby == null) {
/*
http://lsd.luminis.nl/osgi-on-google-android-using-apache-felix/
String packagePath = "org.ruboto.core";
String classPath = "org.jruby.embed.ScriptingC... | public static synchronized ScriptingContainer setUpJRuby(Context appContext, PrintStream out) {
if (ruby == null) {
/*
http://www.anddev.org/view-layout-resource-problems-f27/dexclassloader-problem-t14666.html
http://lsd.luminis.nl/osgi-on-google-android-using-apache-felix/
... |
diff --git a/editor/src/view/EditorView.java b/editor/src/view/EditorView.java
index 8cf8700..64b64ce 100644
--- a/editor/src/view/EditorView.java
+++ b/editor/src/view/EditorView.java
@@ -1,540 +1,538 @@
package view;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax... | false | true | public EditorView()
{
tabs = new JTabbedPane();
//Add listener for tab changes
tabs.addChangeListener(new ChangeListener(){
public void stateChanged(ChangeEvent e){
HTMLBuffer currentBuffer = (HTMLBuffer)(tabs.getSelectedComponent());
Con... | public EditorView()
{
tabs = new JTabbedPane();
//Add listener for tab changes
tabs.addChangeListener(new ChangeListener(){
public void stateChanged(ChangeEvent e){
HTMLBuffer currentBuffer = (HTMLBuffer)(tabs.getSelectedComponent());
Con... |
diff --git a/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIForumPortlet.java b/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIForumPortlet.java
index 3bdbeb3f..d02c05d6 100644
--- a/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIForumPortlet.java
+++ b/forum/webapp/src/main/java/org/exopl... | false | true | public void calculateRenderComponent(String path, WebuiRequestContext context) throws Exception {
ResourceBundle res = context.getApplicationResourceBundle();
if (path.equals(Utils.FORUM_SERVICE)) {
renderForumHome();
} else if (path.indexOf(ForumUtils.FIELD_SEARCHFORUM_LABEL) >= 0) {
updateIs... | public void calculateRenderComponent(String path, WebuiRequestContext context) throws Exception {
ResourceBundle res = context.getApplicationResourceBundle();
if (path.equals(Utils.FORUM_SERVICE)) {
renderForumHome();
} else if (path.indexOf(ForumUtils.FIELD_SEARCHFORUM_LABEL) >= 0) {
updateIs... |
diff --git a/src/org/python/antlr/GrammarActions.java b/src/org/python/antlr/GrammarActions.java
index 5febf630..558e37ea 100644
--- a/src/org/python/antlr/GrammarActions.java
+++ b/src/org/python/antlr/GrammarActions.java
@@ -1,776 +1,781 @@
package org.python.antlr;
import org.antlr.runtime.Token;
import org.p... | true | true | StringPair extractString(Token t, String encoding) {
String string = t.getText();
char quoteChar = string.charAt(0);
int start = 0;
int end;
boolean ustring = false;
if (quoteChar == 'u' || quoteChar == 'U') {
ustring = true;
start++;
... | StringPair extractString(Token t, String encoding) {
String string = t.getText();
char quoteChar = string.charAt(0);
int start = 0;
int end;
boolean ustring = false;
if (quoteChar == 'u' || quoteChar == 'U') {
ustring = true;
start++;
... |
diff --git a/components/dotnet-core/src/main/java/npanday/ArtifactType.java b/components/dotnet-core/src/main/java/npanday/ArtifactType.java
index 7c535def..4b6d0192 100644
--- a/components/dotnet-core/src/main/java/npanday/ArtifactType.java
+++ b/components/dotnet-core/src/main/java/npanday/ArtifactType.java
@@ -1,149... | true | true | public static synchronized ArtifactType getArtifactTypeForPackagingName( String packagingName )
{
if ( packagingName.equals( ArtifactType.MODULE.getPackagingType() ) )
{
return ArtifactType.MODULE;
}
else if ( packagingName.equals( ArtifactType.LIBRARY.getPackagingTyp... | public static synchronized ArtifactType getArtifactTypeForPackagingName( String packagingName )
{
if ( packagingName.equals( ArtifactType.MODULE.getPackagingType() ) )
{
return ArtifactType.MODULE;
}
else if ( packagingName.equals( ArtifactType.LIBRARY.getPackagingTyp... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/ExternalGISDataServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/ExternalGISDataServlet.java
index 113cc54ec..9473761ca 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/ExternalGISDataServlet.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/Ext... | true | true | protected RestResponse handleRequest(RestRequest req) throws Exception {
ExternalGISRequest importReq = (ExternalGISRequest) convertRequest();
if (req.getAction().equals(ExternalGISRequest.IMPORT_ACTION)) {
OGRFeatureDao ogrFeatureDao = new OGRFeatureDao();
OGRFeature ogrFeature = new OGRFeature();
ogrFea... | protected RestResponse handleRequest(RestRequest req) throws Exception {
ExternalGISRequest importReq = (ExternalGISRequest) convertRequest();
if (req.getAction().equals(ExternalGISRequest.IMPORT_ACTION)) {
OGRFeatureDao ogrFeatureDao = new OGRFeatureDao();
OGRFeature ogrFeature = new OGRFeature();
ogrFea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.