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/Data/Statistics.java b/src/Data/Statistics.java
index 8ca2ea9..3d879f7 100644
--- a/src/Data/Statistics.java
+++ b/src/Data/Statistics.java
@@ -1,130 +1,130 @@
package Data;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
i... | true | true | public static int updateUserStatistics(int userId, double newGameWinnings, boolean gameWon) throws SQLException {
int updated = -1;
PreparedStatement pstmt = null;
// return -1 if the user does not exist
if (!UserData.exists(userId))
return -1;
try {
Connection con = Methods.connectToDB("5CARD");... | public static int updateUserStatistics(int userId, double newGameWinnings, boolean gameWon) throws SQLException {
int updated = -1;
PreparedStatement pstmt = null;
// return -1 if the user does not exist
if (!UserData.exists(userId))
return -1;
try {
Connection con = Methods.connectToDB("5CARD");... |
diff --git a/src/com/google/javascript/jscomp/DefaultPassConfig.java b/src/com/google/javascript/jscomp/DefaultPassConfig.java
index 06e4c425e..95b554bf4 100644
--- a/src/com/google/javascript/jscomp/DefaultPassConfig.java
+++ b/src/com/google/javascript/jscomp/DefaultPassConfig.java
@@ -1,1834 +1,1834 @@
/*
* Copyr... | true | true | protected List<PassFactory> getOptimizations() {
List<PassFactory> passes = Lists.newArrayList();
// TODO(nicksantos): The order of these passes makes no sense, and needs
// to be re-arranged.
if (options.runtimeTypeCheck) {
passes.add(runtimeTypeCheck);
}
passes.add(createEmptyPass("... | protected List<PassFactory> getOptimizations() {
List<PassFactory> passes = Lists.newArrayList();
// TODO(nicksantos): The order of these passes makes no sense, and needs
// to be re-arranged.
if (options.runtimeTypeCheck) {
passes.add(runtimeTypeCheck);
}
passes.add(createEmptyPass("... |
diff --git a/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/VFSUrlType.java b/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/VFSUrlType.java
index 01d9e581e..9020c00e9 100644
--- a/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/VFSUrlType.java
+++ b/errai-b... | true | true | public Vfs.Dir createDir(URL url) {
// Create non VFS Url
File deployment = PackagingUtil.identifyDeployment(url);
if (null == deployment)
throw new RuntimeException("Unable identify deployment file for: " + url);
// delegate unpacked archives to SystemDir handler
... | public Vfs.Dir createDir(URL url) {
// Create non VFS Url
File deployment = PackagingUtil.identifyDeployment(url);
if (null == deployment)
throw new RuntimeException("Unable identify deployment file for: " + url);
// delegate unpacked archives to SystemDir handler
... |
diff --git a/src/main/java/com/ai/myplugin/sensor/RandomSensor.java b/src/main/java/com/ai/myplugin/sensor/RandomSensor.java
index 8c56cee..ae595b1 100644
--- a/src/main/java/com/ai/myplugin/sensor/RandomSensor.java
+++ b/src/main/java/com/ai/myplugin/sensor/RandomSensor.java
@@ -1,106 +1,108 @@
package com.ai.myplugi... | false | true | public TestResult execute(TestSessionContext testSessionContext) {
String nodeName = (String) testSessionContext.getAttribute(NodeSessionParams.NODE_NAME);
BayesianNetwork bayesianNetwork = (BayesianNetwork) testSessionContext.getAttribute(NodeSessionParams.BN_NETWORK);
Map<String, Double> ... | public TestResult execute(TestSessionContext testSessionContext) {
String nodeName = (String) testSessionContext.getAttribute(NodeSessionParams.NODE_NAME);
BayesianNetwork bayesianNetwork = (BayesianNetwork) testSessionContext.getAttribute(NodeSessionParams.BN_NETWORK);
Map<String, Double> ... |
diff --git a/src/main/java/com/tp/service/ReportService.java b/src/main/java/com/tp/service/ReportService.java
index 66f8c6b..4bca018 100644
--- a/src/main/java/com/tp/service/ReportService.java
+++ b/src/main/java/com/tp/service/ReportService.java
@@ -1,279 +1,279 @@
package com.tp.service;
import java.util.List;
... | false | true | public void createClientReport(IndexSearcher searcher, String sdate, String edate) throws Exception {
LogCountClient client = new LogCountClient();
LogCountClient2 origin=new LogCountClient2();
long start = System.currentTimeMillis();
long downTotal = logHomeDao.countClientDownload(Constants.METHOD_GET_C... | public void createClientReport(IndexSearcher searcher, String sdate, String edate) throws Exception {
LogCountClient client = new LogCountClient();
LogCountClient2 origin=new LogCountClient2();
long start = System.currentTimeMillis();
long downTotal = logHomeDao.countClientDownload(Constants.METHOD_GET_C... |
diff --git a/src/com/flobi/WhatIsIt/WhatIsIt.java b/src/com/flobi/WhatIsIt/WhatIsIt.java
index 8ed32d3..19b162d 100644
--- a/src/com/flobi/WhatIsIt/WhatIsIt.java
+++ b/src/com/flobi/WhatIsIt/WhatIsIt.java
@@ -1,767 +1,772 @@
package com.flobi.WhatIsIt;
import java.io.File;
import java.io.IOException;
import java.... | true | true | private static void loadConfig() {
if (defConfigStream != null) {
defConfig = YamlConfiguration.loadConfiguration(defConfigStream);
defConfigStream = null;
}
if (configFile == null) {
configFile = new File(dataFolder, "config.yml");
}
if (!configFile.exists() && defConf... | private static void loadConfig() {
if (defConfigStream != null) {
defConfig = YamlConfiguration.loadConfiguration(defConfigStream);
defConfigStream = null;
}
if (configFile == null) {
configFile = new File(dataFolder, "config.yml");
}
if (!configFile.exists() && defConf... |
diff --git a/src/org/basex/index/FTTrieBuilder.java b/src/org/basex/index/FTTrieBuilder.java
index 72c27ad8e..604af78fc 100644
--- a/src/org/basex/index/FTTrieBuilder.java
+++ b/src/org/basex/index/FTTrieBuilder.java
@@ -1,181 +1,182 @@
package org.basex.index;
import static org.basex.data.DataText.*;
import java.... | true | true | void write() throws IOException {
final String db = data.meta.name;
final Prop pr = data.meta.prop;
final DataOutput outb = new DataOutput(pr.dbfile(db, DATAFTX + 'b'));
hash.initIter();
c = 0;
while(hash.more()) {
final int p = hash.next();
final byte[] tok = hash.key();
... | void write() throws IOException {
final String db = data.meta.name;
final Prop pr = data.meta.prop;
final DataOutput outb = new DataOutput(pr.dbfile(db, DATAFTX + 'b'));
if (scm == 0) hash.init();
else hash.initIter();
c = 0;
while(hash.more()) {
final int p = hash.next();
... |
diff --git a/SSHD_log_vis/src/data_source_interface/Mysql_Datasource.java b/SSHD_log_vis/src/data_source_interface/Mysql_Datasource.java
index f73401f..1eaf439 100644
--- a/SSHD_log_vis/src/data_source_interface/Mysql_Datasource.java
+++ b/SSHD_log_vis/src/data_source_interface/Mysql_Datasource.java
@@ -1,221 +1,222 @@... | true | true | public List<Line> getEntriesFromDataSource(String serverName,
String startTime, String endTime) {
String query;
if (serverName == null) {
query = "SELECT entry.timestamp, entry.connid, entry.reqtype, "
+ "entry.authtype, entry.status, user.name as user, entry.source, entry.port, entry.subsystem, entry.c... | public List<Line> getEntriesFromDataSource(String serverName,
String startTime, String endTime) {
String query;
if (serverName == null) {
query = "SELECT entry.timestamp, entry.connid, entry.reqtype, "
+ "entry.authtype, entry.status, user.name as user, entry.source, entry.port, entry.subsystem, entry.c... |
diff --git a/src/com/dmdirc/ui/swing/dialogs/sslcertificate/CertificateInfoPanel.java b/src/com/dmdirc/ui/swing/dialogs/sslcertificate/CertificateInfoPanel.java
index 6e5c3359c..252cb04cd 100644
--- a/src/com/dmdirc/ui/swing/dialogs/sslcertificate/CertificateInfoPanel.java
+++ b/src/com/dmdirc/ui/swing/dialogs/sslcerti... | true | true | private void layoutComponents() {
setBorder(BorderFactory.createTitledBorder("Information for " +
certificateName));
content.setVisible(false);
content.removeAll();
content.setLayout(new MigLayout("fill, wrap 2"));
for (List<CertificateInformationEntry> entry... | private void layoutComponents() {
setBorder(BorderFactory.createTitledBorder("Information for " +
certificateName));
content.setVisible(false);
content.removeAll();
content.setLayout(new MigLayout("fill, wrap 2"));
for (List<CertificateInformationEntry> entry... |
diff --git a/Main/src/com/icbat/game/tradesong/stages/GameWorldStage.java b/Main/src/com/icbat/game/tradesong/stages/GameWorldStage.java
index cbc6c6f..c96ce29 100644
--- a/Main/src/com/icbat/game/tradesong/stages/GameWorldStage.java
+++ b/Main/src/com/icbat/game/tradesong/stages/GameWorldStage.java
@@ -1,167 +1,167 @@... | true | true | private Item chooseItemByRarity() {
int maxRarity = 0;
int totalRarity = 0;
for (Item item : possibleItemSpawns) {
totalRarity += item.getRarity();
if (item.getRarity() > maxRarity)
maxRarity = item.getRarity();
}
ArrayList<Integer> s... | private Item chooseItemByRarity() {
int maxRarity = 0;
int totalRarity = 0;
for (Item item : possibleItemSpawns) {
totalRarity += item.getRarity();
if (item.getRarity() > maxRarity)
maxRarity = item.getRarity();
}
ArrayList<Integer> s... |
diff --git a/src/org/torproject/ernie/db/RelayDescriptorParser.java b/src/org/torproject/ernie/db/RelayDescriptorParser.java
index 70be2f4..885cd7f 100644
--- a/src/org/torproject/ernie/db/RelayDescriptorParser.java
+++ b/src/org/torproject/ernie/db/RelayDescriptorParser.java
@@ -1,360 +1,361 @@
package org.torproject... | true | true | public void parse(byte[] data) {
try {
/* Convert descriptor to ASCII for parsing. This means we'll lose
* the non-ASCII chars, but we don't care about them for parsing
* anyway. */
BufferedReader br = new BufferedReader(new StringReader(new String(
data, "US-ASCII")));
S... | public void parse(byte[] data) {
try {
/* Convert descriptor to ASCII for parsing. This means we'll lose
* the non-ASCII chars, but we don't care about them for parsing
* anyway. */
BufferedReader br = new BufferedReader(new StringReader(new String(
data, "US-ASCII")));
S... |
diff --git a/src/java/com/cloudera/flume/handlers/endtoend/ValueDecorator.java b/src/java/com/cloudera/flume/handlers/endtoend/ValueDecorator.java
index cceb3791..96f61429 100644
--- a/src/java/com/cloudera/flume/handlers/endtoend/ValueDecorator.java
+++ b/src/java/com/cloudera/flume/handlers/endtoend/ValueDecorator.ja... | true | true | public static SinkDecoBuilder builder() {
return new SinkDecoBuilder() {
@Override
public EventSinkDecorator<EventSink> build(Context context,
String... argv) {
Preconditions.checkArgument(argv.length == 2);
String attr = argv[0];
String v = argv[1];
return ne... | public static SinkDecoBuilder builder() {
return new SinkDecoBuilder() {
@Override
public EventSinkDecorator<EventSink> build(Context context,
String... argv) {
Preconditions.checkArgument(argv.length == 2,
"usage: value(\"attr\", \"value\")");
String attr = argv[... |
diff --git a/loci/tests/testng/FormatReaderTestFactory.java b/loci/tests/testng/FormatReaderTestFactory.java
index 46a3b033e..e8f285f6b 100644
--- a/loci/tests/testng/FormatReaderTestFactory.java
+++ b/loci/tests/testng/FormatReaderTestFactory.java
@@ -1,237 +1,240 @@
//
// FormatReaderTestFactory.java
//
/*
LOC... | true | true | public Object[] createInstances() {
Vector files = new Vector();
// parse explicit filename, if any
final String nameProp = "testng.filename";
String filename = System.getProperty(nameProp);
if (filename != null && !new File(filename).exists()) {
LogTools.println("Error: invalid filename: "... | public Object[] createInstances() {
Vector files = new Vector();
// parse explicit filename, if any
final String nameProp = "testng.filename";
String filename = System.getProperty(nameProp);
if (filename != null && filename.equals("${" + nameProp + "}")) {
filename = null;
}
if (fil... |
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/internal/builder/DeployableModuleProjectBuilderOperation.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/internal/builder/DeployableModuleProjectBuilderOperation.java... | true | true | protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
DeployableModuleProjectBuilderDataModel deployProjectDM = (DeployableModuleProjectBuilderDataModel)operationDataModel;
List deployableModuleDM = (List)deployProjectDM.getProperty(... | protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
DeployableModuleProjectBuilderDataModel deployProjectDM = (DeployableModuleProjectBuilderDataModel)operationDataModel;
List deployableModuleDM = (List)deployProjectDM.getProperty(... |
diff --git a/finance/swing/src/main/java/com/lavida/swing/service/ArticlesTableModel.java b/finance/swing/src/main/java/com/lavida/swing/service/ArticlesTableModel.java
index 07a9a89..56faf1c 100644
--- a/finance/swing/src/main/java/com/lavida/swing/service/ArticlesTableModel.java
+++ b/finance/swing/src/main/java/com/... | false | true | public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
ArticleJdo articleJdo = getArticleJdoByRowIndex(rowIndex);
String value = (String) aValue;
SimpleDateFormat calendarFormatter = new SimpleDateFormat("dd.MM.yyyy");
calendarFormatter.setLenient(false);
try ... | public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
ArticleJdo articleJdo = getArticleJdoByRowIndex(rowIndex);
String value = (String) aValue;
SimpleDateFormat calendarFormatter = new SimpleDateFormat("dd.MM.yyyy");
calendarFormatter.setLenient(false);
try ... |
diff --git a/main/src/cgeo/geocaching/export/GpxExport.java b/main/src/cgeo/geocaching/export/GpxExport.java
index 48a825af2..5463cc472 100644
--- a/main/src/cgeo/geocaching/export/GpxExport.java
+++ b/main/src/cgeo/geocaching/export/GpxExport.java
@@ -1,330 +1,330 @@
package cgeo.geocaching.export;
import cgeo.geo... | false | true | protected Boolean doInBackground(Void... params) {
// quick check for being able to write the GPX file
if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
return false;
}
Writer gpx = null;
try {
... | protected Boolean doInBackground(Void... params) {
// quick check for being able to write the GPX file
if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
return false;
}
Writer gpx = null;
try {
... |
diff --git a/sikuli-script/src/main/java/edu/mit/csail/uid/Debug.java b/sikuli-script/src/main/java/edu/mit/csail/uid/Debug.java
index 97e2f1a2..8b6ef3a1 100644
--- a/sikuli-script/src/main/java/edu/mit/csail/uid/Debug.java
+++ b/sikuli-script/src/main/java/edu/mit/csail/uid/Debug.java
@@ -1,61 +1,64 @@
package edu.mi... | true | true | public static void log(int level, String message, Object... args) {
if (isEnabled(level)) {
System.out.printf("[sikuli] " + message, args);
System.out.println();
}
}
| public static void log(int level, String message, Object... args) {
if (isEnabled(level)) {
if(args.length!=0)
System.out.printf("[sikuli] " + message, args);
else
System.out.print("[sikuli] " + message);
System.out.println();
}
}
|
diff --git a/loci/plugins/Importer.java b/loci/plugins/Importer.java
index 35692e957..fb4520cfd 100644
--- a/loci/plugins/Importer.java
+++ b/loci/plugins/Importer.java
@@ -1,934 +1,935 @@
//
// Importer.java
//
/*
LOCI Plugins for ImageJ: a collection of ImageJ plugins including the 4D
Data Browser, OME Plugin... | true | true | public void run(String arg) {
boolean quiet = arg != null && !arg.equals("");
String options = Macro.getOptions();
// -- Step 1: get filename to open --
String id = null;
// try to get filename from argument
if (quiet) id = arg;
if (id == null) {
// try to get filename from macro... | public void run(String arg) {
boolean quiet = arg != null && !arg.equals("");
String options = Macro.getOptions();
// -- Step 1: get filename to open --
String id = null;
// try to get filename from argument
if (quiet) id = arg;
if (id == null) {
// try to get filename from macro... |
diff --git a/src/org/mozilla/javascript/NativeIterator.java b/src/org/mozilla/javascript/NativeIterator.java
index 64544fff..1e72be79 100644
--- a/src/org/mozilla/javascript/NativeIterator.java
+++ b/src/org/mozilla/javascript/NativeIterator.java
@@ -1,269 +1,270 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: n... | false | true | private static Object jsConstructor(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (args.length == 0 || args[0] == null ||
args[0] == Undefined.instance)
{
throw ScriptRuntime.typeError1("msg.no.properties",... | private static Object jsConstructor(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (args.length == 0 || args[0] == null ||
args[0] == Undefined.instance)
{
Object argument = args.length == 0 ? Undefined.inst... |
diff --git a/org.eclipse.riena.example.client/src/org/eclipse/riena/example/client/controllers/TreeSubModuleController.java b/org.eclipse.riena.example.client/src/org/eclipse/riena/example/client/controllers/TreeSubModuleController.java
index 285487f10..903efb6ee 100644
--- a/org.eclipse.riena.example.client/src/org/ec... | false | true | public void configureRidgets() {
tree = (ITreeRidget) getRidget("tree"); //$NON-NLS-1$
final IActionRidget buttonAddSibling = (IActionRidget) getRidget("buttonAddSibling"); //$NON-NLS-1$
final IActionRidget buttonAddChild = (IActionRidget) getRidget("buttonAddChild"); //$NON-NLS-1$
buttonRename = (IActionRidg... | public void configureRidgets() {
tree = (ITreeRidget) getRidget("tree"); //$NON-NLS-1$
final IActionRidget buttonAddSibling = (IActionRidget) getRidget("buttonAddSibling"); //$NON-NLS-1$
final IActionRidget buttonAddChild = (IActionRidget) getRidget("buttonAddChild"); //$NON-NLS-1$
buttonRename = (IActionRidg... |
diff --git a/PrioritySMS/src/com/mattprecious/prioritysms/devtools/TriggerAlarmPhoneDialogFragment.java b/PrioritySMS/src/com/mattprecious/prioritysms/devtools/TriggerAlarmPhoneDialogFragment.java
index 6848bb4..3bcf6b0 100644
--- a/PrioritySMS/src/com/mattprecious/prioritysms/devtools/TriggerAlarmPhoneDialogFragment.j... | true | true | public Dialog onCreateDialog(Bundle savedInstanceState) {
LayoutInflater inflater = LayoutInflater.from(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
View rootView = inflater.inflate(R.layout.dev_tools_trigger_alarm_phone, null);
Views.inject(... | public Dialog onCreateDialog(Bundle savedInstanceState) {
LayoutInflater inflater = LayoutInflater.from(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
View rootView = inflater.inflate(R.layout.dev_tools_trigger_alarm_phone, null);
Views.inject(... |
diff --git a/src/com/modcrafting/ultrabans/commands/Help.java b/src/com/modcrafting/ultrabans/commands/Help.java
index 6f51d1e..2c42c5f 100644
--- a/src/com/modcrafting/ultrabans/commands/Help.java
+++ b/src/com/modcrafting/ultrabans/commands/Help.java
@@ -1,84 +1,84 @@
package com.modcrafting.ultrabans.commands;
i... | false | true | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
boolean auth = false;
boolean server = false;
Player player = null;
if (sender instanceof Player){
player = (Player)sender;
if(player.hasPermission("ultraban.help") || player.isOp()) auth = true;
}else... | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
boolean auth = false;
boolean server = false;
Player player = null;
if (sender instanceof Player){
player = (Player)sender;
if(player.hasPermission("ultraban.help") || player.isOp()) auth = true;
}else... |
diff --git a/src/main/java/me/xhawk87/CreateYourOwnMenus/commands/MenuScriptCommand.java b/src/main/java/me/xhawk87/CreateYourOwnMenus/commands/MenuScriptCommand.java
index b23754e..94c73f4 100644
--- a/src/main/java/me/xhawk87/CreateYourOwnMenus/commands/MenuScriptCommand.java
+++ b/src/main/java/me/xhawk87/CreateYour... | false | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
// Entering a sub-command without parameters is assumed to be a request
// for information. So display some detailed help.
if (args.length == 0) {
sender.sendMessage("/menu script comm... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
// Entering a sub-command without parameters is assumed to be a request
// for information. So display some detailed help.
if (args.length == 0) {
sender.sendMessage("/menu script comm... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationProjectMainTypeChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationProjectMainTypeChange.java
index 5272df582..79b6e7d6d 100644
--- a/org.eclipse.jdt.debug... | true | true | public Change perform(IProgressMonitor pm) throws CoreException {
if (fNewConfigContainerName != null) {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
IProject project = root.getProject(fNewProjectName);
... | public Change perform(IProgressMonitor pm) throws CoreException {
if (fNewConfigContainerName != null) {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
IProject project = root.getProject(fNewProjectName);
... |
diff --git a/KrimBuyV2/src/de/bdh/kb2/Main.java b/KrimBuyV2/src/de/bdh/kb2/Main.java
index e0adac6..b0edb83 100644
--- a/KrimBuyV2/src/de/bdh/kb2/Main.java
+++ b/KrimBuyV2/src/de/bdh/kb2/Main.java
@@ -1,157 +1,158 @@
package de.bdh.kb2;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permissio... | true | true | public void onEnable()
{
Server = getServer();
//Lade Config Datei
new configManager(this);
//Lade mySQL Lib - wenn nicht existent
//if (!(new File("lib/", "mysql-connector-java-bin.jar")).exists()) Downloader.install(configManager.MySQL_Jar_Location, "mysql-connector-java-... | public void onEnable()
{
Server = getServer();
//Lade Config Datei
new configManager(this);
//Lade mySQL Lib - wenn nicht existent
//if (!(new File("lib/", "mysql-connector-java-bin.jar")).exists()) Downloader.install(configManager.MySQL_Jar_Location, "mysql-connector-java-... |
diff --git a/bootstrap/src/main/java/org/soluvas/web/bootstrap/widget/PersonPopover.java b/bootstrap/src/main/java/org/soluvas/web/bootstrap/widget/PersonPopover.java
index 5922fda7..531d3b13 100644
--- a/bootstrap/src/main/java/org/soluvas/web/bootstrap/widget/PersonPopover.java
+++ b/bootstrap/src/main/java/org/soluv... | false | true | protected void onInitialize() {
super.onInitialize();
add(new Label("name", new PropertyModel<String>(getModel(), "name")));
// Hover trigger doesn't work properly because even if going to popover content,
// it will still get hidden
final PopoverConfig config = new PopoverConfig().withAnimation(true)
.w... | protected void onInitialize() {
super.onInitialize();
add(new Label("name", new PropertyModel<String>(getModel(), "name")));
// Hover trigger doesn't work properly because even if going to popover content,
// it will still get hidden
final PopoverConfig config = new PopoverConfig().withAnimation(true)
.w... |
diff --git a/hama/rootbeer/piestimator/src/at/illecker/hama/rootbeer/examples/piestimator/gpu/PiEstimatorKernel.java b/hama/rootbeer/piestimator/src/at/illecker/hama/rootbeer/examples/piestimator/gpu/PiEstimatorKernel.java
index 7d995cc..0205d0e 100644
--- a/hama/rootbeer/piestimator/src/at/illecker/hama/rootbeer/examp... | true | true | public void gpuMethod() {
for (int i = 0; i < iterations; i++) {
double x = 1;//2.0 * Math.random() - 1.0; // value between -1 and 1
double y = 1;//2.0 * Math.random() - 1.0; // value between -1 and 1
Result result = new Result();
if ((Math.sqrt(x * x + y * y) < 1.0)) {
result.hi... | public void gpuMethod() {
for (int i = 0; i < iterations; i++) {
double x = 2.0 * Math.random() - 1.0; // value between -1 and 1
double y = 2.0 * Math.random() - 1.0; // value between -1 and 1
Result result = new Result();
if ((Math.sqrt(x * x + y * y) < 1.0)) {
result.hit = 1;
... |
diff --git a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/TrainTestEvalTask.java b/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/TrainTestEvalTask.java
index 6b1416f89..5d954e181 100644
--- a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/TrainTestEvalTask.java
+++ ... | false | true | private List<DAGNode<TaskGraph.Node, TaskGraph.Edge>>
makeMergedAlgoNodes(ExperimentSuite experiments, MeasurementSuite measurements, TTDataSet dataset, ExperimentOutputs outputs,
DAGNode<TaskGraph.Node, TaskGraph.Edge> commonDep) throws RecommenderConfigurationException {
List<D... | private List<DAGNode<TaskGraph.Node, TaskGraph.Edge>>
makeMergedAlgoNodes(ExperimentSuite experiments, MeasurementSuite measurements, TTDataSet dataset, ExperimentOutputs outputs,
DAGNode<TaskGraph.Node, TaskGraph.Edge> commonDep) throws RecommenderConfigurationException {
List<D... |
diff --git a/src/fuschia/tagger/common/TestRepository.java b/src/fuschia/tagger/common/TestRepository.java
index ee1b098..48bd049 100644
--- a/src/fuschia/tagger/common/TestRepository.java
+++ b/src/fuschia/tagger/common/TestRepository.java
@@ -1,11 +1,10 @@
package fuschia.tagger.common;
public class TestRepositor... | true | true | public static void main(String[] args) {
DocumentRepository repo = DocumentRepository.get911();
System.out.println(repo.getAll().size());
//repo.loadFromFile("resources/911.cmap.gz");
}
| public static void main(String[] args) {
DocumentRepository repo = DocumentRepository.get911();
System.out.println(repo.getAll().size());
}
|
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java
index abcc632bb..f07928382 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java
+++ b/org.eclips... | false | true | public static Test suite() {
TestSuite suite = new TestSuite("Test for org.eclipse.mylyn.tasks.tests");
suite.addTestSuite(TaskRepositoryTest.class);
suite.addTestSuite(LinkProviderTest.class);
suite.addTestSuite(TaskActivationActionTest.class);
suite.addTestSuite(TaskListPresentationTest.class);
suite.add... | public static Test suite() {
TestSuite suite = new TestSuite("Test for org.eclipse.mylyn.tasks.tests");
suite.addTestSuite(TasksUiUtilTest.class);
suite.addTestSuite(TaskListUiTest.class);
suite.addTestSuite(TaskRepositoryTest.class);
suite.addTestSuite(LinkProviderTest.class);
suite.addTestSuite(TaskActiv... |
diff --git a/src/cytoscape/actions/HelpContentsAction.java b/src/cytoscape/actions/HelpContentsAction.java
index 98e0cfb98..faa9f549f 100644
--- a/src/cytoscape/actions/HelpContentsAction.java
+++ b/src/cytoscape/actions/HelpContentsAction.java
@@ -1,81 +1,85 @@
/*
File: HelpContentsAction.java
Copyright (c) 2... | true | true | public void actionPerformed(ActionEvent e) {
if ( csh == null ) {
try {
csh = new CSH.DisplayHelpFromSource(CyHelpBroker.getHelpBroker());
} catch (Exception ex) {
JOptionPane.showMessageDialog(null, "Help cannot be started. Please see the manual onthe Cytoscape website instead: http://cytoscape.org.", ... | public void actionPerformed(ActionEvent e) {
if ( csh == null ) {
try {
csh = new CSH.DisplayHelpFromSource(CyHelpBroker.getHelpBroker());
} catch (Exception ex) {
JOptionPane.showMessageDialog(
null,
"Help cannot be started. Please see the manual on the Cytoscape website instead: http://cytos... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2FlexibleMEPClient.java b/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2FlexibleMEPClient.java
index 30edd7616..9ca005a75 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2FlexibleMEPClient.... | true | true | public static void send(
EndpointDefinition endpoint,
org.apache.synapse.MessageContext synapseOutMessageContext) throws AxisFault {
boolean separateListener = false;
boolean wsSecurityEnabled = false;
String wsSecPolicyKey = null;
String inboundWsS... | public static void send(
EndpointDefinition endpoint,
org.apache.synapse.MessageContext synapseOutMessageContext) throws AxisFault {
boolean separateListener = false;
boolean wsSecurityEnabled = false;
String wsSecPolicyKey = null;
String inboundWsS... |
diff --git a/src/com/android/exchange/adapter/AbstractSyncParser.java b/src/com/android/exchange/adapter/AbstractSyncParser.java
index a67b916..1162b66 100644
--- a/src/com/android/exchange/adapter/AbstractSyncParser.java
+++ b/src/com/android/exchange/adapter/AbstractSyncParser.java
@@ -1,244 +1,244 @@
/*
* Copyrig... | true | true | public boolean parse() throws IOException, CommandStatusException {
int status;
boolean moreAvailable = false;
boolean newSyncKey = false;
int interval = mMailbox.mSyncInterval;
mLooping = false;
// If we're not at the top of the xml tree, throw an exception
i... | public boolean parse() throws IOException, CommandStatusException {
int status;
boolean moreAvailable = false;
boolean newSyncKey = false;
int interval = mMailbox.mSyncInterval;
mLooping = false;
// If we're not at the top of the xml tree, throw an exception
i... |
diff --git a/astrid/src/com/todoroo/astrid/dao/Database.java b/astrid/src/com/todoroo/astrid/dao/Database.java
index 1f242ef9d..43b525043 100644
--- a/astrid/src/com/todoroo/astrid/dao/Database.java
+++ b/astrid/src/com/todoroo/astrid/dao/Database.java
@@ -1,338 +1,338 @@
/*
* Copyright (c) 2009, Todoroo Inc
* All... | true | true | protected synchronized boolean onUpgrade(int oldVersion, int newVersion) {
SqlConstructorVisitor visitor = new SqlConstructorVisitor();
switch(oldVersion) {
case 1: {
database.execSQL("ALTER TABLE " + Task.TABLE.name + " ADD " +
Task.RECURRENCE.accept(visitor,... | protected synchronized boolean onUpgrade(int oldVersion, int newVersion) {
SqlConstructorVisitor visitor = new SqlConstructorVisitor();
switch(oldVersion) {
case 1: {
database.execSQL("ALTER TABLE " + Task.TABLE.name + " ADD " +
Task.RECURRENCE.accept(visitor,... |
diff --git a/src/riskyspace/GameManager.java b/src/riskyspace/GameManager.java
index 81a8988..e5643de 100644
--- a/src/riskyspace/GameManager.java
+++ b/src/riskyspace/GameManager.java
@@ -1,527 +1,526 @@
package riskyspace;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.HashMap;
impor... | true | true | public void handleEvent(Event evt, Player player) {
if (!initiated) {
return;
}
/*
* View triggered Events
*/
if (!FleetMove.isMoving()) {
if(evt.getObjectValue() instanceof Position){
Position pos = (Position) evt.getObjectValue();
if (evt.getTag() == Event.EventTag.SET_PATH && player == g... | public void handleEvent(Event evt, Player player) {
if (!initiated) {
return;
}
/*
* View triggered Events
*/
if (!FleetMove.isMoving()) {
if(evt.getObjectValue() instanceof Position){
Position pos = (Position) evt.getObjectValue();
if (evt.getTag() == Event.EventTag.SET_PATH && player == g... |
diff --git a/src/main/java/hudson/plugins/accurev/AccurevSCM.java b/src/main/java/hudson/plugins/accurev/AccurevSCM.java
index 11dd408..bdc17f1 100644
--- a/src/main/java/hudson/plugins/accurev/AccurevSCM.java
+++ b/src/main/java/hudson/plugins/accurev/AccurevSCM.java
@@ -1,810 +1,810 @@
package hudson.plugins.accurev... | true | true | public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException {
final String accurevPath = workspace.act(new FindAccurevHome());
workspace.act(new PurgeWorkspaceContents(listener));
Ac... | public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException {
final String accurevPath = workspace.act(new FindAccurevHome());
workspace.act(new PurgeWorkspaceContents(listener));
Ac... |
diff --git a/components/bio-formats/src/loci/formats/in/APNGReader.java b/components/bio-formats/src/loci/formats/in/APNGReader.java
index 41e4ab966..61917d4ae 100644
--- a/components/bio-formats/src/loci/formats/in/APNGReader.java
+++ b/components/bio-formats/src/loci/formats/in/APNGReader.java
@@ -1,283 +1,285 @@
//... | true | true | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
in = new RandomAccessInputStream(id);
// check that this is a valid PNG file
byte[] signature = new byte[8];
in.read(signature);
if (signature[0] != (byte) 0x89 || signature[1] != 0x50 ||
signa... | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
in = new RandomAccessInputStream(id);
// check that this is a valid PNG file
byte[] signature = new byte[8];
in.read(signature);
if (signature[0] != (byte) 0x89 || signature[1] != 0x50 ||
signa... |
diff --git a/src/main/java/com/jamesst20/jcommandessentials/Commands/FlySpeedCommand.java b/src/main/java/com/jamesst20/jcommandessentials/Commands/FlySpeedCommand.java
index 84012b7..f893608 100644
--- a/src/main/java/com/jamesst20/jcommandessentials/Commands/FlySpeedCommand.java
+++ b/src/main/java/com/jamesst20/jcom... | false | true | public boolean onCommand(CommandSender cs, Command command, String cmd, String[] args) {
if (args.length < 1 || args.length > 3) {
return false;
}
if (args[0].equalsIgnoreCase("get")) {
if (!Methods.hasPermissionTell(cs, "JCMDEss.commands.flyspeed.get.self")) {
return true;
}
if (args.length == 1... | public boolean onCommand(CommandSender cs, Command command, String cmd, String[] args) {
if (args.length < 1 || args.length > 3) {
return false;
}
if (args[0].equalsIgnoreCase("get")) {
if (!Methods.hasPermissionTell(cs, "JCMDEss.commands.flyspeed.get.self")) {
return true;
}
if (args.length == 1... |
diff --git a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/editor/RubyOutlineLabelDecorator.java b/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/dltk/ruby/internal/ui/editor/RubyOutlineLabelDecorator.java
index 0ceaead9..3b160221 100644
--- a/plugins/org.eclipse.dltk.ruby.ui/src/org/eclipse/... | true | true | public Image decorateImage(Image image, Object obj) {
System.out.println("RubyOutlineLabelDecorator.decorateImage()");
String doc = RiHelper.getInstance().getDocFor("Fixnum.abs");
System.out.println(doc);
try {
if (obj instanceof IMember) {
IMember member = (IMember) obj;
int flags = member.getFl... | public Image decorateImage(Image image, Object obj) {
try {
if (obj instanceof IMember) {
IMember member = (IMember) obj;
int flags = member.getFlags();
ImageDescriptor baseImage = new ImageImageDescriptor(image);
Rectangle bounds = image.getBounds();
ImageDescriptor dsc = new RubyOutlineIm... |
diff --git a/src/plugins/org.drftpd.commands.xdupe/src/org/drftpd/commands/xdupe/XDupePreHook.java b/src/plugins/org.drftpd.commands.xdupe/src/org/drftpd/commands/xdupe/XDupePreHook.java
index f8b0f814..2178e4bd 100644
--- a/src/plugins/org.drftpd.commands.xdupe/src/org/drftpd/commands/xdupe/XDupePreHook.java
+++ b/src... | true | true | public CommandRequestInterface doXDupeCheck(CommandRequest request) {
DirectoryHandle dir = request.getCurrentDirectory();
StringTokenizer st = new StringTokenizer(request.getArgument());
String arg = st.nextToken();
String fileName = arg.equalsIgnoreCase("STOR") ? st.nextToken() : arg;
FileHandle f ... | public CommandRequestInterface doXDupeCheck(CommandRequest request) {
DirectoryHandle dir = request.getCurrentDirectory();
StringTokenizer st = new StringTokenizer(request.getArgument());
if (!st.hasMoreTokens()) {
return request;
}
String arg = st.nextToken();
String fileName = arg.equalsIgnoreCas... |
diff --git a/levi-webapp/src/main/java/org/levi/web/UserManagerServlet.java b/levi-webapp/src/main/java/org/levi/web/UserManagerServlet.java
index 494e017..5f8caff 100644
--- a/levi-webapp/src/main/java/org/levi/web/UserManagerServlet.java
+++ b/levi-webapp/src/main/java/org/levi/web/UserManagerServlet.java
@@ -1,109 +... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// Retrieve the action
String action = request.getParameter("action");
assert request.getSession().getAttribute("dbManager") != null;
DBManager dbManager = (DBManager... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// Retrieve the action
String action = request.getParameter("action");
assert request.getSession().getAttribute("dbManager") != null;
DBManager dbManager = (DBManager... |
diff --git a/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java b/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java
index fa03e7d..88e3bf7 100644
--- a/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java
+++ b/src/ru/spbau/bioinf/tagfinder/AllDataGenerator.java
@@ -1,25 +1,26 @@
package ru.spbau.bioinf.tagfinder;
... | true | true | public static void main(String[] args) throws Exception {
//ValidTags.main(args);
System.out.println("\\documentclass{article}\n" +
"\\usepackage{multirow}\n" +
"\\usepackage{lscape}\n" +
"\\usepackage{morefloats}\n" +
"\\usepackage{gra... | public static void main(String[] args) throws Exception {
//ValidTags.main(args);
System.out.println("\\documentclass{article}\n" +
"\\usepackage{multirow}\n" +
"\\usepackage{lscape}\n" +
"\\usepackage{morefloats}\n" +
"\\usepackage{gra... |
diff --git a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/delivery/DeliveryActionListener.java b/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/delivery/DeliveryActionListener.java
index 1dd778242..b6783e432 100755
--- a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/liste... | false | true | private ItemContentsBean getQuestionBean(ItemDataIfc item, HashMap itemGradingHash,
DeliveryBean delivery, HashMap publishedAnswerHash)
{
ItemContentsBean itemBean = new ItemContentsBean();
itemBean.setItemData(item);
itemBean.setMaxPoints(item.getScore().float... | private ItemContentsBean getQuestionBean(ItemDataIfc item, HashMap itemGradingHash,
DeliveryBean delivery, HashMap publishedAnswerHash)
{
ItemContentsBean itemBean = new ItemContentsBean();
itemBean.setItemData(item);
itemBean.setMaxPoints(item.getScore().float... |
diff --git a/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/setup/FirstAdministratorFormAction.java b/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/setup/FirstAdministratorFormAction.java
index 66d62b23d..65b638af3 100644
--- a/src/main/java/edu/northwestern/bioinformatics/studycalend... | true | true | protected Object createFormObject(RequestContext context) throws Exception {
CreateUserCommand command = new CreateUserCommand(null, siteDao, userService, userDao, userRoleService);
command.setUserActiveFlag(true);
// set sys admin role for all sites, just to be safe (there should only be on... | protected Object createFormObject(RequestContext context) throws Exception {
CreateUserCommand command = new CreateUserCommand(null, siteDao, userService, userDao, userRoleService);
command.setUserActiveFlag(true);
command.setPasswordModified(true);
// set sys admin role for all site... |
diff --git a/src/frontend/edu/brown/hstore/SpecExecScheduler.java b/src/frontend/edu/brown/hstore/SpecExecScheduler.java
index fb6dce080..1d30364c3 100644
--- a/src/frontend/edu/brown/hstore/SpecExecScheduler.java
+++ b/src/frontend/edu/brown/hstore/SpecExecScheduler.java
@@ -1,357 +1,358 @@
package edu.brown.hstore;
... | true | true | public LocalTransaction next(AbstractTransaction dtxn, SpeculationType specType) {
this.interrupted = false;
if (debug.val) {
LOG.debug(String.format("%s - Checking queue for transaction to speculatively execute " +
"[specType=%s, queueSize=%d, policy=%s]",... | public LocalTransaction next(AbstractTransaction dtxn, SpeculationType specType) {
this.interrupted = false;
if (debug.val) {
LOG.debug(String.format("%s - Checking queue for transaction to speculatively execute " +
"[specType=%s, queueSize=%d, policy=%s]",... |
diff --git a/src/com/example/calculator/MainActivity.java b/src/com/example/calculator/MainActivity.java
index 7308378..f65e88c 100644
--- a/src/com/example/calculator/MainActivity.java
+++ b/src/com/example/calculator/MainActivity.java
@@ -1,152 +1,152 @@
package com.example.calculator;
import java.util.ArrayList;... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
text = (EditText)findViewById(R.id.Row1_ShowInput);
final Button[] b = new Button[16];
final int[] ids = {R.id.button0,R.id.button1,R.id.... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
text = (EditText)findViewById(R.id.Row1_ShowInput);
final Button[] b = new Button[16];
final int[] ids = {R.id.button0,R.id.button1,R.id.... |
diff --git a/kernel/src/main/java/org/neo4j/kernel/Version.java b/kernel/src/main/java/org/neo4j/kernel/Version.java
index a3bbc132..a330cfe8 100644
--- a/kernel/src/main/java/org/neo4j/kernel/Version.java
+++ b/kernel/src/main/java/org/neo4j/kernel/Version.java
@@ -1,114 +1,114 @@
/**
* Copyright (c) 2002-2011 "Neo... | true | true | public String getVersion()
{
if ( version == null )
{
return "<unknown>";
}
else if ( version.contains( "SNAPSHOT" ) )
{
String revision = getRevision();
if ( revision.equals( "" ) ) return version;
return version + " (revis... | public String getVersion()
{
if ( version == null || version.equals( "" ) )
{
return "<unknown>";
}
else if ( version.contains( "SNAPSHOT" ) )
{
String revision = getRevision();
if ( revision.equals( "" ) ) return version;
r... |
diff --git a/components/bio-formats/src/loci/formats/in/LIFReader.java b/components/bio-formats/src/loci/formats/in/LIFReader.java
index e215622b8..41f524576 100644
--- a/components/bio-formats/src/loci/formats/in/LIFReader.java
+++ b/components/bio-formats/src/loci/formats/in/LIFReader.java
@@ -1,472 +1,472 @@
//
//... | true | true | private void initMetadata(String xml) throws FormatException, IOException {
MetadataStore store =
new FilterMetadata(getMetadataStore(), isMetadataFiltered());
LeicaHandler handler = new LeicaHandler(new DummyMetadata());
// the XML blocks stored in a LIF file are invalid,
// because they don't... | private void initMetadata(String xml) throws FormatException, IOException {
MetadataStore store =
new FilterMetadata(getMetadataStore(), isMetadataFiltered());
LeicaHandler handler = new LeicaHandler(new DummyMetadata());
// the XML blocks stored in a LIF file are invalid,
// because they don't... |
diff --git a/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java b/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java
index 781d097c..3be8e401 100644
--- a/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/u... | false | true | public Component create(Map<String, Object> context) {
GridLayout result = new GridLayout(1, 4);
result.setCaption(CAPTION);
result.setMargin(true);
result.setSpacing(true);
result.setSizeFull();
RepositoryObject object = getRepositoryObjectFromContext(context);
... | public Component create(Map<String, Object> context) {
GridLayout result = new GridLayout(1, 4);
result.setCaption(CAPTION);
result.setMargin(true);
result.setSpacing(true);
result.setSizeFull();
RepositoryObject object = getRepositoryObjectFromContext(context);
... |
diff --git a/src/com/android/exchange/adapter/EmailSyncAdapter.java b/src/com/android/exchange/adapter/EmailSyncAdapter.java
index 2cd43c2a..18324ff4 100644
--- a/src/com/android/exchange/adapter/EmailSyncAdapter.java
+++ b/src/com/android/exchange/adapter/EmailSyncAdapter.java
@@ -1,698 +1,699 @@
/*
* Copyright (C)... | false | true | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mContext.getContentResolver();
// Find any of our deleted items
Cursor c = cr.query(Message.DELETED_CONTENT_URI, Message.LIST_PROJECTION,
MessageColumns.MAILBOX_KEY + '=' + mMailbox.mId, ... | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mContext.getContentResolver();
// Find any of our deleted items
Cursor c = cr.query(Message.DELETED_CONTENT_URI, Message.LIST_PROJECTION,
MessageColumns.MAILBOX_KEY + '=' + mMailbox.mId, ... |
diff --git a/src/main/org/testng/TestNGCommandLineArgs.java b/src/main/org/testng/TestNGCommandLineArgs.java
index 6264e97..a334f83 100644
--- a/src/main/org/testng/TestNGCommandLineArgs.java
+++ b/src/main/org/testng/TestNGCommandLineArgs.java
@@ -1,692 +1,692 @@
package org.testng;
import java.io.BufferedReader... | true | true | public static Map parseCommandLine(final String[] originalArgv) {
for (int i = 0; i < originalArgv.length; ++i) {
LOGGER.debug("originalArgv[" + i + "] = \"" + originalArgv + "\"");
}
// TODO CQ In this method, is this OK to simply ignore invalid parameters?
LOGGER.debug("TestNG version: \"" + (... | public static Map parseCommandLine(final String[] originalArgv) {
for (int i = 0; i < originalArgv.length; ++i) {
LOGGER.debug("originalArgv[" + i + "] = \"" + originalArgv[i] + "\"");
}
// TODO CQ In this method, is this OK to simply ignore invalid parameters?
LOGGER.debug("TestNG version: \"" ... |
diff --git a/src/com/google/bitcoin/discovery/IrcDiscovery.java b/src/com/google/bitcoin/discovery/IrcDiscovery.java
index 45169ff..4d15403 100644
--- a/src/com/google/bitcoin/discovery/IrcDiscovery.java
+++ b/src/com/google/bitcoin/discovery/IrcDiscovery.java
@@ -1,216 +1,218 @@
/**
* Copyright 2011 John Sample
*... | false | true | public InetSocketAddress[] getPeers() throws PeerDiscoveryException {
ArrayList<InetSocketAddress> addresses = new ArrayList<InetSocketAddress>();
Socket connection = null;
try {
connection = new Socket(server, port);
writer = new BufferedWriter(new OutputStreamWriter... | public InetSocketAddress[] getPeers() throws PeerDiscoveryException {
ArrayList<InetSocketAddress> addresses = new ArrayList<InetSocketAddress>();
Socket connection = null;
try {
connection = new Socket(server, port);
writer = new BufferedWriter(new OutputStreamWriter... |
diff --git a/deegree-services/src/main/java/org/deegree/services/controller/security/SecureProxy.java b/deegree-services/src/main/java/org/deegree/services/controller/security/SecureProxy.java
index d1b94e6700..8b6cb7dc25 100644
--- a/deegree-services/src/main/java/org/deegree/services/controller/security/SecureProxy.j... | false | true | void copyXML( XMLStreamReader reader, XMLStreamWriter writer, String serverUrl )
throws XMLStreamException {
writer.writeStartDocument();
int openElements = 0;
boolean firstRun = true;
while ( firstRun || openElements > 0 ) {
firstRun = false;... | void copyXML( XMLStreamReader reader, XMLStreamWriter writer, String serverUrl )
throws XMLStreamException {
writer.writeStartDocument();
int openElements = 0;
boolean firstRun = true;
while ( firstRun || openElements > 0 ) {
firstRun = false;... |
diff --git a/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java b/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java
index 7b1247e..c856127 100644
--- a/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java
+++ b/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java
@@ -1,436 +... | true | true | public FetchResult updateData(Context context, boolean force) {
//Open database
DBOpenHelper dbhelper = new DBOpenHelper(context);
SQLiteDatabase db = dbhelper.getWritableDatabase();
// check for internet connectivity
try {
if (!isOnline(context)) {
Log.d(TAG, "We do not seem to be online. Skipping U... | public FetchResult updateData(Context context, boolean force) {
//Open database
DBOpenHelper dbhelper = new DBOpenHelper(context);
SQLiteDatabase db = dbhelper.getWritableDatabase();
// check for internet connectivity
try {
if (!isOnline(context)) {
Log.d(TAG, "We do not seem to be online. Skipping U... |
diff --git a/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java b/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java
index 710977ca..d2bb9c50 100644
--- a/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java
+++ b/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java
@@ -1,706 +1,705 @@
/*
* This file is part of SWADroid.
*
* ... | false | true | private void createSpinnerAdapter(){
Spinner spinner = (Spinner) this.findViewById(R.id.spinner);
listCourses = dbHelper.getAllRows(Global.DB_TABLE_COURSES, null, "shortName");
Cursor dbCursorColum = db.getDB().query(Global.DB_TABLE_GROUPS, null, null, null, null, null, null);
String [] columnNames = dbCursor.... | private void createSpinnerAdapter(){
Spinner spinner = (Spinner) this.findViewById(R.id.spinner);
listCourses = dbHelper.getAllRows(Global.DB_TABLE_COURSES, null, "shortName");
Cursor dbCursorColum = db.getDB().query(Global.DB_TABLE_GROUPS, null, null, null, null, null, null);;
dbCursor = dbHelper.getDb().get... |
diff --git a/plugins/com.aptana.ide.syncing.ui/src/com/aptana/ide/syncing/ui/SyncingUIPlugin.java b/plugins/com.aptana.ide.syncing.ui/src/com/aptana/ide/syncing/ui/SyncingUIPlugin.java
index d3de0874..438f5056 100644
--- a/plugins/com.aptana.ide.syncing.ui/src/com/aptana/ide/syncing/ui/SyncingUIPlugin.java
+++ b/plugin... | true | true | public void siteConnectionChanged(SiteConnectionEvent event) {
ISiteConnection siteConnection = event.getSiteConnection();
switch (event.getKind()) {
case SiteConnectionEvent.POST_ADD:
// opens the corresponding connection editor
// EditorUtils... | public void siteConnectionChanged(SiteConnectionEvent event) {
ISiteConnection siteConnection = event.getSiteConnection();
switch (event.getKind()) {
case SiteConnectionEvent.POST_ADD:
// opens the corresponding connection editor
// EditorUtils... |
diff --git a/src/main/java/com/metaweb/gridworks/model/Cell.java b/src/main/java/com/metaweb/gridworks/model/Cell.java
index e711fa4..676d3e1 100644
--- a/src/main/java/com/metaweb/gridworks/model/Cell.java
+++ b/src/main/java/com/metaweb/gridworks/model/Cell.java
@@ -1,149 +1,149 @@
package com.metaweb.gridworks.mode... | true | true | static public Cell loadStreaming(JsonParser jp, Pool pool) throws Exception {
JsonToken t = jp.getCurrentToken();
if (t == JsonToken.VALUE_NULL || t != JsonToken.START_OBJECT) {
return null;
}
Serializable value = null;
String type = null;
Recon r... | static public Cell loadStreaming(JsonParser jp, Pool pool) throws Exception {
JsonToken t = jp.getCurrentToken();
if (t == JsonToken.VALUE_NULL || t != JsonToken.START_OBJECT) {
return null;
}
Serializable value = null;
String type = null;
Recon r... |
diff --git a/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/service/impl/JCRDataStorage.java b/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/service/impl/JCRDataStorage.java
index 4e6e0d6bb..1291d4712 100644
--- a/eXoApplication/wiki/service/src/main/java/org/exoplatform/wiki/service/im... | false | true | private SearchResult getResult(Row row) throws Exception {
String type = row.getValue("jcr:primaryType").getString();
String path = row.getValue("jcr:path").getString();
String title = (row.getValue("title") == null ? null : row.getValue("title").getString());
String excerpt = null;
Calendar upda... | private SearchResult getResult(Row row) throws Exception {
String type = row.getValue("jcr:primaryType").getString();
String path = row.getValue("jcr:path").getString();
String title = (row.getValue("title") == null ? null : row.getValue("title").getString());
String excerpt = null;
Calendar upda... |
diff --git a/src/org/geworkbench/bison/datastructure/bioobjects/microarray/CSAffyMarkerValue.java b/src/org/geworkbench/bison/datastructure/bioobjects/microarray/CSAffyMarkerValue.java
index 2bc16ba1..70812717 100755
--- a/src/org/geworkbench/bison/datastructure/bioobjects/microarray/CSAffyMarkerValue.java
+++ b/src/or... | false | true | protected void init(Map columns) {
Object value = null;
boolean pValueFound = false; // indicates if the "Detection p-value" column is used
boolean absCallFound = false; // indicates if either of the "Detection" or "Abs Call" columns are used
if (columns.containsKey("P... | protected void init(Map columns) {
Object value = null;
boolean pValueFound = false; // indicates if the "Detection p-value" column is used
boolean absCallFound = false; // indicates if either of the "Detection" or "Abs Call" columns are used
if (columns.containsKey("P... |
diff --git a/runtime/runtime-domain/src/main/java/org/umlg/runtime/adaptor/GremlinExecutor.java b/runtime/runtime-domain/src/main/java/org/umlg/runtime/adaptor/GremlinExecutor.java
index 4674355f..b464bae0 100644
--- a/runtime/runtime-domain/src/main/java/org/umlg/runtime/adaptor/GremlinExecutor.java
+++ b/runtime/runt... | false | true | public static String executeGremlinViaGroovy(Object contextId, String gremlin) {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
if (contextId != null) {
gremlin = gremlin.replace("this", "g.v(" + contextId + ")");
}
Graph graph = new ReadOnlyGraph(Graph... | public static String executeGremlinViaGroovy(Object contextId, String gremlin) {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
if (contextId != null) {
gremlin = gremlin.replace("this", "g.v(" + contextId + ")");
}
Graph graph = new ReadOnlyGraph(Graph... |
diff --git a/pmd/src/net/sourceforge/pmd/util/designer/CreateXMLRulePanel.java b/pmd/src/net/sourceforge/pmd/util/designer/CreateXMLRulePanel.java
index 924ac10a3..e30bd3670 100644
--- a/pmd/src/net/sourceforge/pmd/util/designer/CreateXMLRulePanel.java
+++ b/pmd/src/net/sourceforge/pmd/util/designer/CreateXMLRulePanel.... | true | true | public CreateXMLRulePanel(JTextArea xpathQueryArea, CodeEditorTextPane codeEditorPane){
super();
this.xpathQueryArea = xpathQueryArea;
this.codeEditorPane = codeEditorPane;
GridBagConstraints gbc = new GridBagConstraints();
// We use a gridbaglayout for a nice and sturdy look and feel
... | public CreateXMLRulePanel(JTextArea xpathQueryArea, CodeEditorTextPane codeEditorPane){
super();
this.xpathQueryArea = xpathQueryArea;
this.codeEditorPane = codeEditorPane;
GridBagConstraints gbc = new GridBagConstraints();
// We use a gridbaglayout for a nice and sturdy look and feel
... |
diff --git a/source/java/se/altrusoft/alfplay/behaviour/NodeObservChildCreationPost.java b/source/java/se/altrusoft/alfplay/behaviour/NodeObservChildCreationPost.java
index 072918e..03a7e58 100644
--- a/source/java/se/altrusoft/alfplay/behaviour/NodeObservChildCreationPost.java
+++ b/source/java/se/altrusoft/alfplay/be... | true | true | protected Map<String, Object> executeImpl(WebScriptRequest req,
Status status, Cache cache) {
Map<String, String> templateArgs = req.getServiceMatch().getTemplateVars();
String nodeId = templateArgs.get("nodeId");
if (nodeId == null) throw new WebScriptException("No nodeId provided");
NodeRef nodeRef... | protected Map<String, Object> executeImpl(WebScriptRequest req,
Status status, Cache cache) {
Map<String, String> templateArgs = req.getServiceMatch().getTemplateVars();
String nodeId = templateArgs.get("nodeId");
if (nodeId == null) throw new WebScriptException("No nodeId provided");
NodeRef nodeRef... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java
index 6785b6b..1a81572 100644
--- a/opentripplanner-routing/src/main/java/org/opentri... | true | true | public void run(Graph graph) throws Exception {
clearCachedData();
/*
* For each trip, create either pattern edges, the entries in a trip pattern's list of
* departures, or simple hops
*/
// Load hops
Collection<Trip> trips = _dao.getAllTrips();
... | public void run(Graph graph) throws Exception {
clearCachedData();
/*
* For each trip, create either pattern edges, the entries in a trip pattern's list of
* departures, or simple hops
*/
// Load hops
Collection<Trip> trips = _dao.getAllTrips();
... |
diff --git a/kotlin-eclipse-core/src/org/jetbrains/kotlin/core/filesystem/KotlinFileStore.java b/kotlin-eclipse-core/src/org/jetbrains/kotlin/core/filesystem/KotlinFileStore.java
index 7b47ffd..80b47cf 100644
--- a/kotlin-eclipse-core/src/org/jetbrains/kotlin/core/filesystem/KotlinFileStore.java
+++ b/kotlin-eclipse-co... | false | true | public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException {
List<JetFile> jetFiles = KotlinLightClassManager.INSTANCE.getSourceFiles(file);
if (!jetFiles.isEmpty()) {
IJavaProject javaProject = getJavaProject();
assert javaProject != null;... | public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException {
List<JetFile> jetFiles = KotlinLightClassManager.INSTANCE.getSourceFiles(file);
if (!jetFiles.isEmpty()) {
IJavaProject javaProject = getJavaProject();
assert javaProject != null;... |
diff --git a/src/initialpackage/Background.java b/src/initialpackage/Background.java
index 477c8a0..614b844 100644
--- a/src/initialpackage/Background.java
+++ b/src/initialpackage/Background.java
@@ -1,51 +1,51 @@
package initialpackage;
public class Background {
private int backgroundX;
private int background... | true | true | public void update(){
this.backgroundX += this.backgroundSpeedX;
if(this.backgroundX <= MAGIC_NUMBER){
this.backgroundX += (MAGIC_NUMBER * MAGIC_NUMBER);
}
}
| public void update(){
this.backgroundX += this.backgroundSpeedX;
if(this.backgroundX <= MAGIC_NUMBER){
this.backgroundX += (MAGIC_NUMBER * -2);
}
}
|
diff --git a/src/com/jme/widget/font/WidgetAbstractFont.java b/src/com/jme/widget/font/WidgetAbstractFont.java
index ebeb8d2ba..79fa80518 100755
--- a/src/com/jme/widget/font/WidgetAbstractFont.java
+++ b/src/com/jme/widget/font/WidgetAbstractFont.java
@@ -1,211 +1,211 @@
/*
* Copyright (c) 2003-2004, jMonkeyEngine ... | true | true | public void create(URL filename) {
try {
int numChars, numTexBytes, cnt;
WidgetFontChar fontChar;
header = new WidgetFontHeader();
texture = new Texture();
InputStream is = filename.openStream();
DataInputStream dis = new DataInputStr... | public void create(URL filename) {
try {
int numChars, numTexBytes, cnt;
WidgetFontChar fontChar;
header = new WidgetFontHeader();
texture = new Texture();
InputStream is = filename.openStream();
DataInputStream dis = new DataInputStr... |
diff --git a/src/main/java/gui/controlwidgets/StatusDisplay.java b/src/main/java/gui/controlwidgets/StatusDisplay.java
index 266d819..4aae2c8 100644
--- a/src/main/java/gui/controlwidgets/StatusDisplay.java
+++ b/src/main/java/gui/controlwidgets/StatusDisplay.java
@@ -1,71 +1,71 @@
package gui.controlwidgets;
impor... | true | true | public StatusDisplay(PlantControl plant) {
super(plant);
addTitle("Status");
status = new StatusTableModel();
table = new JTable(status);
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
table.getColumnModel().getColumn(0).setPreferredWidth(180);
table.getCo... | public StatusDisplay(PlantControl plant) {
super(plant);
addTitle("Status");
status = new StatusTableModel();
table = new JTable(status);
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
table.getColumnModel().getColumn(0).setPreferredWidth(180);
table.getCo... |
diff --git a/client/net/minecraft/src/buildcraft/krapht/gui/GuiChassiPipe.java b/client/net/minecraft/src/buildcraft/krapht/gui/GuiChassiPipe.java
index 280092ef..63e38d1a 100644
--- a/client/net/minecraft/src/buildcraft/krapht/gui/GuiChassiPipe.java
+++ b/client/net/minecraft/src/buildcraft/krapht/gui/GuiChassiPipe.ja... | true | true | public GuiChassiPipe(EntityPlayer player, PipeLogisticsChassi chassi) { //, GuiScreen previousGui) {
super(null);
_player = player;
_chassiPipe = chassi;
_moduleInventory = chassi.getModuleInventory();
//_previousGui = previousGui;
DummyContainer dummy = new DummyContainer(_player.inventory, _moduleI... | public GuiChassiPipe(EntityPlayer player, PipeLogisticsChassi chassi) { //, GuiScreen previousGui) {
super(null);
_player = player;
_chassiPipe = chassi;
_moduleInventory = chassi.getModuleInventory();
//_previousGui = previousGui;
DummyContainer dummy = new DummyContainer(_player.inventory, _moduleI... |
diff --git a/src/ServerMessage.java b/src/ServerMessage.java
index 68743ad..07ce0e9 100644
--- a/src/ServerMessage.java
+++ b/src/ServerMessage.java
@@ -1,156 +1,158 @@
import java.io.Serializable;
import com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable;
public class ServerMessage implements Serializa... | true | true | public String getTypeName() {
Hashtable typemapping = new Hashtable();
typemapping.put(0, "PAXOS_PREPARE");
typemapping.put(1, "PAXOS_ACK");
typemapping.put(2, "PAXOS_ACCEPT");
typemapping.put(3, "PAXOS_ADD_LEADER");
typemapping.put(10, "TWOPHASE_VOTE_REQUEST");
typemapping.put(11, "TWOPHASE_VOTE_YES"... | public String getTypeName() {
Hashtable typemapping = new Hashtable();
typemapping.put(0, "PAXOS_PREPARE");
typemapping.put(1, "PAXOS_ACK");
typemapping.put(2, "PAXOS_ACCEPT");
typemapping.put(3, "PAXOS_ADD_LEADER");
typemapping.put(10, "TWOPHASE_VOTE_REQUEST");
typemapping.put(11, "TWOPHASE_VOTE_YES"... |
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/CallableUnitInfo.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/CallableUnitInfo.java
index 8ec0cf4a..92344c9d 100644
--- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/CallableUnitInfo.java
+++ b/main/src/jp/ac/... | true | true | boolean canCalledWith(final List<ExpressionInfo> actualParameters) {
if (null == actualParameters) {
throw new IllegalArgumentException();
}
final ExpressionInfo[] actualParameterArray = actualParameters
.toArray(new ExpressionInfo[0]);
final ParameterIn... | boolean canCalledWith(final List<ExpressionInfo> actualParameters) {
if (null == actualParameters) {
throw new IllegalArgumentException();
}
final ExpressionInfo[] actualParameterArray = actualParameters
.toArray(new ExpressionInfo[0]);
final ParameterIn... |
diff --git a/org.fedoraproject.eclipse.packager/src/org/fedoraproject/eclipse/packager/internal/preferences/FedoraPackagerPreferenceInitializer.java b/org.fedoraproject.eclipse.packager/src/org/fedoraproject/eclipse/packager/internal/preferences/FedoraPackagerPreferenceInitializer.java
index 365bfb5..3802aa2 100644
---... | true | true | public void initializeDefaultPreferences() {
// make sure fields get pre-filled.
IEclipsePreferences node = new DefaultScope().getNode(PackagerPlugin.PLUGIN_ID);
// General
node.putBoolean(FedoraPackagerPreferencesConstants.PREF_DEBUG_MODE, FedoraPackagerPreferencesConstants.DEFAULT_DEBUG_MODE);
// Lookaside... | public void initializeDefaultPreferences() {
// make sure fields get pre-filled.
IEclipsePreferences node = DefaultScope.INSTANCE.getNode(PackagerPlugin.PLUGIN_ID);
// General
node.putBoolean(FedoraPackagerPreferencesConstants.PREF_DEBUG_MODE, FedoraPackagerPreferencesConstants.DEFAULT_DEBUG_MODE);
// Lookas... |
diff --git a/src/main/java/org/jboss/pressgang/ccms/server/rest/JaxRsActivator.java b/src/main/java/org/jboss/pressgang/ccms/server/rest/JaxRsActivator.java
index e9597f7..b5eee80 100644
--- a/src/main/java/org/jboss/pressgang/ccms/server/rest/JaxRsActivator.java
+++ b/src/main/java/org/jboss/pressgang/ccms/server/rest... | true | true | public JaxRsActivator() {
LOGGER.info("ENTER JaxRsActivator()");
}
| public JaxRsActivator() {
LOGGER.debug("ENTER JaxRsActivator()");
}
|
diff --git a/src/test/java/org/gsoft/openserv/util/time/FrequencyTypeJsonTest.java b/src/test/java/org/gsoft/openserv/util/time/FrequencyTypeJsonTest.java
index f85a9c15..09066119 100644
--- a/src/test/java/org/gsoft/openserv/util/time/FrequencyTypeJsonTest.java
+++ b/src/test/java/org/gsoft/openserv/util/time/Frequenc... | true | true | public void testSerialize() throws JsonProcessingException, JSONException {
ObjectMapper mapper = new ObjectMapper();
String json = mapper.writeValueAsString(FrequencyType.values());
String expected = "[{\"name\":\"MONTHLY\",\"id\":10},{\"name\":\"QUARTERLY\",\"id\":20},{\"name\":\"SEMI_ANNUALLY\",\"id\":30},{\"... | public void testSerialize() throws JsonProcessingException, JSONException {
ObjectMapper mapper = new ObjectMapper();
String json = mapper.writeValueAsString(FrequencyType.values());
String expected = "[{\"name\":\"MONTHLY\",\"id\":\"10\"},{\"name\":\"QUARTERLY\",\"id\":\"20\"},{\"name\":\"SEMI_ANNUALLY\",\"id\"... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java b/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java
index 5db6649a8..dba95622c 100644
--- a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java
+++ b/modules/cpr/src/main/java/org/atmosphere/cpr/Atmosphere... | true | true | private AtmosphereRequest(Builder b) {
super(b.request);
pathInfo = b.pathInfo == null ? b.request.getPathInfo() : b.pathInfo;
request = b.request;
headers = b.headers == null ? Collections.<String, String>emptyMap() : b.headers;
queryStrings = b.queryStrings == null ? Collec... | private AtmosphereRequest(Builder b) {
super(b.request);
pathInfo = b.pathInfo == null ? b.request.getPathInfo() : b.pathInfo;
request = b.request;
headers = b.headers == null ? Collections.<String, String>emptyMap() : b.headers;
queryStrings = b.queryStrings == null ? new Ha... |
diff --git a/nexus-indexer/src/main/java/org/sonatype/nexus/index/cli/NexusIndexerCli.java b/nexus-indexer/src/main/java/org/sonatype/nexus/index/cli/NexusIndexerCli.java
index d13b42c97..b9f72b53c 100644
--- a/nexus-indexer/src/main/java/org/sonatype/nexus/index/cli/NexusIndexerCli.java
+++ b/nexus-indexer/src/main/ja... | true | true | private void index( final CommandLine cli, PlexusContainer plexus )
throws ComponentLookupException,
IOException,
UnsupportedExistingLuceneIndexException
{
if ( cli.hasOption( OVERWRITE ) && cli.hasOption( UPDATE ) )
{
System.err.printf( "Invalid optio... | private void index( final CommandLine cli, PlexusContainer plexus )
throws ComponentLookupException,
IOException,
UnsupportedExistingLuceneIndexException
{
if ( cli.hasOption( OVERWRITE ) && cli.hasOption( UPDATE ) )
{
System.err.printf( "Invalid optio... |
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitCloneHandlerV1.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitCloneHandlerV1.java
index d8ef03b5..2247c840 100644
--- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/serv... | false | true | private boolean handlePost(HttpServletRequest request, HttpServletResponse response) throws IOException, JSONException, ServletException, URISyntaxException, CoreException {
// make sure required fields are set
JSONObject toAdd = OrionServlet.readJSONRequest(request);
String id = toAdd.optString(ProtocolConstant... | private boolean handlePost(HttpServletRequest request, HttpServletResponse response) throws IOException, JSONException, ServletException, URISyntaxException, CoreException {
// make sure required fields are set
JSONObject toAdd = OrionServlet.readJSONRequest(request);
String id = toAdd.optString(ProtocolConstant... |
diff --git a/orcid-core/src/main/java/org/orcid/core/manager/impl/OrcidProfileManagerImpl.java b/orcid-core/src/main/java/org/orcid/core/manager/impl/OrcidProfileManagerImpl.java
index 6e180a2fc7..be3c5c5c5d 100755
--- a/orcid-core/src/main/java/org/orcid/core/manager/impl/OrcidProfileManagerImpl.java
+++ b/orcid-core/... | true | true | public void processProfilesPendingIndexing() {
// XXX There are some concurrency related edge cases to fix here.
LOG.info("About to process profiles pending indexing");
if (executorService == null || executorService.isShutdown()) {
synchronized (executorServiceLock) {
... | public void processProfilesPendingIndexing() {
// XXX There are some concurrency related edge cases to fix here.
LOG.info("About to process profiles pending indexing");
if (executorService == null || executorService.isShutdown()) {
synchronized (executorServiceLock) {
... |
diff --git a/build/src/org/aspectj/internal/tools/build/Result.java b/build/src/org/aspectj/internal/tools/build/Result.java
index ebf61394d..bd1cbc125 100644
--- a/build/src/org/aspectj/internal/tools/build/Result.java
+++ b/build/src/org/aspectj/internal/tools/build/Result.java
@@ -1,387 +1,387 @@
/* ***************... | false | true | private void initRequiredResults() {
Module module = getModule();
final Kind kind = getKind();
if (kind.assemble) {
if (kind.normal) {
assertKind(RELEASE_ALL);
requiredResults.add(module.getResult(RELEASE));
} else {
ass... | private void initRequiredResults() {
final Module module = getModule();
final Kind kind = getKind();
if (kind.assemble) {
if (kind.normal) {
assertKind(RELEASE_ALL);
requiredResults.add(module.getResult(RELEASE));
} else {
... |
diff --git a/src/de/aidger/view/forms/ActivityEditorForm.java b/src/de/aidger/view/forms/ActivityEditorForm.java
index 5bc3ec90..f8af1fc4 100644
--- a/src/de/aidger/view/forms/ActivityEditorForm.java
+++ b/src/de/aidger/view/forms/ActivityEditorForm.java
@@ -1,539 +1,539 @@
package de.aidger.view.forms;
import stat... | true | true | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
lblDate = new javax.swing.JLabel();
lblProcessor = new javax.swing.JLabel();
lblSender = new javax.swing.JLabel();
lblType = new javax.swing.JLabel();
lblDocumentType = new javax.swing.JL... | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
lblDate = new javax.swing.JLabel();
lblProcessor = new javax.swing.JLabel();
lblSender = new javax.swing.JLabel();
lblType = new javax.swing.JLabel();
lblDocumentType = new javax.swing.JL... |
diff --git a/video/Capture.java b/video/Capture.java
index 2d27095ce..919476744 100755
--- a/video/Capture.java
+++ b/video/Capture.java
@@ -1,503 +1,503 @@
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2004-05 Ben F... | false | true | public Capture(PApplet parent, String name,
int requestWidth, int requestHeight, int framerate) {
this.parent = parent;
this.name = name;
this.framerate = framerate;
try {
QDRect qdrect = new QDRect(requestWidth, requestHeight);
// workaround for bug with the intel macs
... | public Capture(PApplet parent, String name,
int requestWidth, int requestHeight, int framerate) {
this.parent = parent;
this.name = name;
this.framerate = framerate;
try {
QDRect qdrect = new QDRect(requestWidth, requestHeight);
// workaround for bug with the intel macs
... |
diff --git a/Aufgabe2/Buchung/BuchungContainer.java b/Aufgabe2/Buchung/BuchungContainer.java
index 5b9448d..4f7b8ee 100644
--- a/Aufgabe2/Buchung/BuchungContainer.java
+++ b/Aufgabe2/Buchung/BuchungContainer.java
@@ -1,23 +1,23 @@
package Buchung;
import java.util.ArrayList;
public class BuchungContainer {
... | true | true | public int summe() {
int summe = 0;
for (AbstractBuchung b: buchungen) {
summe += buchungen.getWert();
}
return summe;
}
| public int summe() {
int summe = 0;
for (AbstractBuchung b: buchungen) {
summe += b.getWert();
}
return summe;
}
|
diff --git a/fathomcloud-lbaas/src/main/java/io/fathom/cloud/lbaas/backend/selfhosted/SelfHostedLbaasBackend.java b/fathomcloud-lbaas/src/main/java/io/fathom/cloud/lbaas/backend/selfhosted/SelfHostedLbaasBackend.java
index 9a64a55..f575e6f 100644
--- a/fathomcloud-lbaas/src/main/java/io/fathom/cloud/lbaas/backend/selfh... | true | true | public Void call() throws CloudException, IOException {
LoadBalanceMappingList data = new LoadBalanceMappingList();
List<LbaasMapping> mappings = lbaas.listMappings(project, host);
data.mappings = mappings;
String path = "services/lb/__default/data/" + Escaping.... | public Void call() throws CloudException, IOException {
LoadBalanceMappingList data = new LoadBalanceMappingList();
List<LbaasMapping> mappings = lbaas.listMappings(project, host);
data.mappings = mappings;
String path = "__default/lb/data/" + Escaping.escape(ho... |
diff --git a/src/main/java/es/testingserver/atlassian/helpers/ChartGenerator.java b/src/main/java/es/testingserver/atlassian/helpers/ChartGenerator.java
index b7d020c..e5145f7 100644
--- a/src/main/java/es/testingserver/atlassian/helpers/ChartGenerator.java
+++ b/src/main/java/es/testingserver/atlassian/helpers/ChartGe... | true | true | public static Chart getChart( double totalSp, double burnedSp )
{
Chart chart = null;
try
{
Map<String, Object> params = Maps.newHashMap();
DefaultPieDataset dataset = new DefaultPieDataset();
dataset.setValue( "Total SP", totalSp );
datas... | public static Chart getChart( double totalSp, double burnedSp )
{
Chart chart = null;
try
{
Map<String, Object> params = Maps.newHashMap();
DefaultPieDataset dataset = new DefaultPieDataset();
dataset.setValue( "To do", totalSp - burnedSp );
... |
diff --git a/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java b/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java
index d1d0c696..c4e6024d 100644
--- a/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandler.java
+++ b/src/de/danoeh/antennapod/util/menuhandler/FeedItemMenuHandle... | true | true | public static boolean onPrepareMenu(MenuInterface mi,
FeedItem selectedItem, boolean showExtendedMenu) {
FeedManager manager = FeedManager.getInstance();
DownloadRequester requester = DownloadRequester.getInstance();
boolean hasMedia = selectedItem.getMedia() != null;
boolean downloaded = hasMedia && select... | public static boolean onPrepareMenu(MenuInterface mi,
FeedItem selectedItem, boolean showExtendedMenu) {
FeedManager manager = FeedManager.getInstance();
DownloadRequester requester = DownloadRequester.getInstance();
boolean hasMedia = selectedItem.getMedia() != null;
boolean downloaded = hasMedia && select... |
diff --git a/src/com/cleverua/bb/example/AppSettingsScreen.java b/src/com/cleverua/bb/example/AppSettingsScreen.java
index 0480ac1..17b4172 100644
--- a/src/com/cleverua/bb/example/AppSettingsScreen.java
+++ b/src/com/cleverua/bb/example/AppSettingsScreen.java
@@ -1,62 +1,62 @@
package com.cleverua.bb.example;
impo... | true | true | private void initUI() {
try {
AppSettingsApplication.getSettings().initialize();
} catch (SettingsException e) {
Dialog.alert("Unable to load settings: " + e);
}
boolean userChoiceSetting = AppSettingsApplication.getSettingsDelegate().getUserChoice();
... | private void initUI() {
try {
AppSettingsApplication.getSettings().initialize();
} catch (SettingsException e) {
Dialog.alert("Unable to load settings: " + e);
}
boolean userChoiceSetting = AppSettingsApplication.getSettingsDelegate().getUserChoice();
... |
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
index 9129bdfc2..f5146885b 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org... | false | true | public static CVSRepositoryLocation fromString(String location, boolean validateOnly) throws CVSException {
String errorMessage = null;
try {
// Get the connection method
errorMessage = CVSMessages.CVSRepositoryLocation_parsingMethod;
int start = location.indexOf(COLON);
String methodName;
int end;
... | public static CVSRepositoryLocation fromString(String location, boolean validateOnly) throws CVSException {
String errorMessage = null;
try {
// Get the connection method
errorMessage = CVSMessages.CVSRepositoryLocation_parsingMethod;
int start = location.indexOf(COLON);
String methodName;
int end;
... |
diff --git a/indexing-service/src/main/java/com/metamx/druid/indexing/common/task/RealtimeIndexTask.java b/indexing-service/src/main/java/com/metamx/druid/indexing/common/task/RealtimeIndexTask.java
index a315371210..e2cb18ccb0 100644
--- a/indexing-service/src/main/java/com/metamx/druid/indexing/common/task/RealtimeIn... | true | true | public TaskStatus run(final TaskToolbox toolbox) throws Exception
{
if (this.plumber != null) {
throw new IllegalStateException("WTF?!? run with non-null plumber??!");
}
// Shed any locks we might have (e.g. if we were uncleanly killed and restarted) since we'll reacquire
// them if we actual... | public TaskStatus run(final TaskToolbox toolbox) throws Exception
{
if (this.plumber != null) {
throw new IllegalStateException("WTF?!? run with non-null plumber??!");
}
// Shed any locks we might have (e.g. if we were uncleanly killed and restarted) since we'll reacquire
// them if we actual... |
diff --git a/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/PrepareBuildProjectsTaskExecutor.java b/continuum-core/src/main/java/org/apache/maven/continuum/scm/queue/PrepareBuildProjectsTaskExecutor.java
index d85e02d3f..aeff6c694 100644
--- a/continuum-core/src/main/java/org/apache/maven/continuum/s... | true | true | private void buildProjects( int projectGroupId, Map<Integer, Integer> projectsAndBuildDefinitionsMap,
int trigger, Map<Integer, ScmResult> scmResultMap )
throws TaskExecutionException
{
List<Project> projects = projectDao.getProjectsWithDependenciesByGroupId( pro... | private void buildProjects( int projectGroupId, Map<Integer, Integer> projectsAndBuildDefinitionsMap,
int trigger, Map<Integer, ScmResult> scmResultMap )
throws TaskExecutionException
{
List<Project> projects = projectDao.getProjectsWithDependenciesByGroupId( pro... |
diff --git a/com/imjake9/simplejail/SimpleJail.java b/com/imjake9/simplejail/SimpleJail.java
index 5b9f8e2..81b73e0 100644
--- a/com/imjake9/simplejail/SimpleJail.java
+++ b/com/imjake9/simplejail/SimpleJail.java
@@ -1,344 +1,344 @@
package com.imjake9.simplejail;
import com.nijiko.permissions.PermissionHandler;
i... | true | true | public void jailPlayer(CommandSender sender, String[] args) {
Player player = this.getServer().getPlayer(args[0]);
if(player == null) {
sender.sendMessage(ChatColor.RED + "Couldn't find player \"" + args[0] + ".");
return;
}
args[0] = player.getName();
... | public void jailPlayer(CommandSender sender, String[] args) {
Player player = this.getServer().getPlayer(args[0]);
if(player == null) {
sender.sendMessage(ChatColor.RED + "Couldn't find player \"" + args[0] + ".");
return;
}
args[0] = player.getName();
... |
diff --git a/deegree-oraclesupport/src/main/java/org/deegree/feature/persistence/oracle/OracleApplicationSchemaBuilder.java b/deegree-oraclesupport/src/main/java/org/deegree/feature/persistence/oracle/OracleApplicationSchemaBuilder.java
index b1dcbfdf16..82780a66ab 100644
--- a/deegree-oraclesupport/src/main/java/org/d... | false | true | private Pair<PropertyType, MappingExpression> process( AbstractPropertyDecl propDecl ) {
QName ptName = propDecl.getName();
int minOccurs = propDecl.getMinOccurs() == null ? 1 : propDecl.getMinOccurs().intValue();
int maxOccurs = 1;
if ( propDecl.getMaxOccurs() != null ) {
... | private Pair<PropertyType, MappingExpression> process( AbstractPropertyDecl propDecl ) {
QName ptName = propDecl.getName();
int minOccurs = propDecl.getMinOccurs() == null ? 1 : propDecl.getMinOccurs().intValue();
int maxOccurs = 1;
if ( propDecl.getMaxOccurs() != null ) {
... |
diff --git a/image-provider-test/src/main/java/ch/bergturbenthal/image/provider/model/ParcelTest.java b/image-provider-test/src/main/java/ch/bergturbenthal/image/provider/model/ParcelTest.java
index 6f663dc..3495d03 100644
--- a/image-provider-test/src/main/java/ch/bergturbenthal/image/provider/model/ParcelTest.java
++... | true | true | public void testFilledAlbumMeta() {
final AlbumMeta albumMeta = new AlbumMeta();
albumMeta.setAlbumDate(daysInThePast(2));
albumMeta.setAlbumId(UUID.randomUUID().toString());
albumMeta.setArchiveName("Test-Archive");
albumMeta.setAutoAddDate(daysInThePast(4));
albumMeta.setEntryCount(42);
... | public void testFilledAlbumMeta() {
final AlbumMeta albumMeta = new AlbumMeta();
albumMeta.setAlbumDate(daysInThePast(2));
albumMeta.setAlbumId(UUID.randomUUID().toString());
albumMeta.setArchiveName("Test-Archive");
albumMeta.setAutoAddDate(daysInThePast(4));
albumMeta.setEntryCount(42);
... |
diff --git a/src/com/dmdirc/addons/addonbrowser/AddonInfoListCellRenderer.java b/src/com/dmdirc/addons/addonbrowser/AddonInfoListCellRenderer.java
index 734d4a298..b1d5ff1c8 100644
--- a/src/com/dmdirc/addons/addonbrowser/AddonInfoListCellRenderer.java
+++ b/src/com/dmdirc/addons/addonbrowser/AddonInfoListCellRenderer.... | true | true | public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
final AddonInfo info = (AddonInfo) value;
removeAll();
setLayout(new MigLayout("fillx, ins 0"));
setBackground(index % 2 == 1 ? new Color(0xEE, 0... | public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
final AddonInfo info = (AddonInfo) value;
removeAll();
setLayout(new MigLayout("fillx, ins 0"));
setBackground(index % 2 == 1 ? new Color(0xEE, 0... |
diff --git a/api/src/test/java/org/openmrs/notification/AlertServiceTest.java b/api/src/test/java/org/openmrs/notification/AlertServiceTest.java
index 8fbfbff2..8c77a1d9 100644
--- a/api/src/test/java/org/openmrs/notification/AlertServiceTest.java
+++ b/api/src/test/java/org/openmrs/notification/AlertServiceTest.java
@... | true | true | public void notifySuperUsers_shouldAddAnAlertToTheDatabase() throws Exception {
// Check there are no alerts before the method is called
Assert.assertEquals(0, Context.getAlertService().getAlertsByUser(null).size());
//Call the method to be tested
AlertServiceImpl alert = new AlertServiceImpl();
alert.not... | public void notifySuperUsers_shouldAddAnAlertToTheDatabase() throws Exception {
// Check there are no alerts before the method is called
Assert.assertEquals(0, Context.getAlertService().getAlertsByUser(null).size());
//Call the method to be tested
AlertServiceImpl alert = new AlertServiceImpl();
alert.not... |
diff --git a/src/com/mahn42/anhalter42/gates/GateTask.java b/src/com/mahn42/anhalter42/gates/GateTask.java
index 9c8923c..f591a4f 100644
--- a/src/com/mahn42/anhalter42/gates/GateTask.java
+++ b/src/com/mahn42/anhalter42/gates/GateTask.java
@@ -1,858 +1,893 @@
/*
* To change this template, choose Tools | Templates
... | false | true | public void run() {
if (!fInRun) {
fInRun = true;
try {
if (!fInit) {
fLeftBottom = gate.getBlock("DoorHingeLeftBottom").position.clone();
fLeftTop = gate.getBlock("DoorHingeLeftTop").position.clone();
fRight... | public void run() {
if (!fInRun) {
fInRun = true;
try {
if (!fInit) {
fLeftBottom = gate.getBlock("DoorHingeLeftBottom").position.clone();
fLeftTop = gate.getBlock("DoorHingeLeftTop").position.clone();
fRight... |
diff --git a/src/be/ibridge/kettle/trans/step/groupby/GroupByDialog.java b/src/be/ibridge/kettle/trans/step/groupby/GroupByDialog.java
index 0a8a7f20..7a053173 100644
--- a/src/be/ibridge/kettle/trans/step/groupby/GroupByDialog.java
+++ b/src/be/ibridge/kettle/trans/step/groupby/GroupByDialog.java
@@ -1,517 +1,517 @@
... | true | true | public String open()
{
Shell parent = getParent();
Display display = parent.getDisplay();
shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN);
props.setLook(shell);
ModifyListener lsMod = new ModifyListener()
{
public void modifyText(ModifyEvent e)
{
input.setChanged... | public String open()
{
Shell parent = getParent();
Display display = parent.getDisplay();
shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN);
props.setLook(shell);
ModifyListener lsMod = new ModifyListener()
{
public void modifyText(ModifyEvent e)
{
input.setChanged... |
diff --git a/modules/dCache/diskCacheV111/doors/GsiFtpDoorV1.java b/modules/dCache/diskCacheV111/doors/GsiFtpDoorV1.java
index c2fd025268..f09e3cab44 100755
--- a/modules/dCache/diskCacheV111/doors/GsiFtpDoorV1.java
+++ b/modules/dCache/diskCacheV111/doors/GsiFtpDoorV1.java
@@ -1,211 +1,209 @@
// $Id: GsiFtpDoorV1.jav... | false | true | public GsiFtpDoorV1(String name, StreamEngine engine, Args args) throws Exception{
super(name,engine,args);
_GSSFlavor = "gsi";
String arg_string = args.getOpt("service-key");
if (arg_string != null) {
service_key = arg_string;
}
arg_string = args.getOp... | public GsiFtpDoorV1(String name, StreamEngine engine, Args args) throws Exception{
super(name,engine,args);
_GSSFlavor = "gsi";
String arg_string = args.getOpt("service-key");
if (arg_string != null) {
service_key = arg_string;
}
arg_string = args.getOp... |
diff --git a/src/test/java/de/taimos/gpsd4java/test/Tester.java b/src/test/java/de/taimos/gpsd4java/test/Tester.java
index 04f02d4..cdcf2f1 100644
--- a/src/test/java/de/taimos/gpsd4java/test/Tester.java
+++ b/src/test/java/de/taimos/gpsd4java/test/Tester.java
@@ -1,124 +1,124 @@
/**
* Copyright 2011 Thorsten Höger,... | true | true | public static void main(final String[] args) {
try {
String host = "192.168.4.29";
int port = 2947;
switch (args.length) {
case 0:
// Nothing to do, use default
break;
case 1:
// only server specified
host = args[0];
break;
case 2:
// Server and port specified
host = ar... | public static void main(final String[] args) {
try {
String host = "localhost";
int port = 2947;
switch (args.length) {
case 0:
// Nothing to do, use default
break;
case 1:
// only server specified
host = args[0];
break;
case 2:
// Server and port specified
host = args[... |
diff --git a/xstream/src/test/com/thoughtworks/acceptance/CollectionsTest.java b/xstream/src/test/com/thoughtworks/acceptance/CollectionsTest.java
index a4e4cc56..841e008f 100644
--- a/xstream/src/test/com/thoughtworks/acceptance/CollectionsTest.java
+++ b/xstream/src/test/com/thoughtworks/acceptance/CollectionsTest.ja... | false | true | public void testSyncronizedList() {
final String xml;
if (JVM.is15()) {
xml =
"<java.util.Collections_-SynchronizedList serialization=\"custom\">\n" +
" <java.util.Collections_-SynchronizedCollection>\n" +
" <default>\n" +
... | public void testSyncronizedList() {
final String xml;
if (JVM.is15()) {
xml =
"<java.util.Collections_-SynchronizedList serialization=\"custom\">\n" +
" <java.util.Collections_-SynchronizedCollection>\n" +
" <default>\n" +
... |
diff --git a/client/src/com/example/friendzyapp/StatusScreenActivity.java b/client/src/com/example/friendzyapp/StatusScreenActivity.java
index da5960e..dc70690 100644
--- a/client/src/com/example/friendzyapp/StatusScreenActivity.java
+++ b/client/src/com/example/friendzyapp/StatusScreenActivity.java
@@ -1,348 +1,351 @@... | false | true | public void onPostStatus(View view) {
if (!waitingOnAsyncTask) {
Log.d(TAG, "attempting to post status");
EditText statusView = (EditText) findViewById(R.id.status_entry);
newStatus = statusView.getText().toString();
Log.d(TAG, "new status=" + newStatus);
... | public void onPostStatus(View view) {
if (!waitingOnAsyncTask) {
Log.d(TAG, "attempting to post status");
EditText statusView = (EditText) findViewById(R.id.status_entry);
newStatus = statusView.getText().toString();
Log.d(TAG, "new status=" + newStatus);
... |
diff --git a/src/com/imaginea/android/sugarcrm/provider/SugarCRMProvider.java b/src/com/imaginea/android/sugarcrm/provider/SugarCRMProvider.java
index 1636a3f..91c83ff 100644
--- a/src/com/imaginea/android/sugarcrm/provider/SugarCRMProvider.java
+++ b/src/com/imaginea/android/sugarcrm/provider/SugarCRMProvider.java
@@ ... | true | true | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
Cursor c = null;
int size = uri.getPathSegments().size();
String maxResultsLimit = null;
String offset = null;
String module;
... | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
Cursor c = null;
int size = uri.getPathSegments().size();
String maxResultsLimit = null;
String offset = null;
String module;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.