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/web/src/main/java/org/eurekastreams/web/client/ui/pages/discover/DiscoverListItemPanel.java b/web/src/main/java/org/eurekastreams/web/client/ui/pages/discover/DiscoverListItemPanel.java
index d628d9935..c1d87ba97 100644
--- a/web/src/main/java/org/eurekastreams/web/client/ui/pages/discover/DiscoverListItem... | true | true | public DiscoverListItemPanel(final StreamDTO inStreamDTO, final ListItemType inListItemType,
final boolean showBlockSuggestion)
{
coreCss = StaticResourceBundle.INSTANCE.coreCss();
HTMLPanel main = (HTMLPanel) binder.createAndBindUi(this);
initWidget(main);
// set te... | public DiscoverListItemPanel(final StreamDTO inStreamDTO, final ListItemType inListItemType,
final boolean showBlockSuggestion)
{
coreCss = StaticResourceBundle.INSTANCE.coreCss();
HTMLPanel main = (HTMLPanel) binder.createAndBindUi(this);
initWidget(main);
// set te... |
diff --git a/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java b/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java
index 36cb546..ebfe9a8 100644
--- a/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java
+++ b/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java
@@ -1,146 +1,146 @@
/* AuToBITrainer.java
Copyright (c) 20... | true | true | public static void main(String[] args) {
AuToBI autobi = new AuToBI();
autobi.init(args);
List<FormattedFile> filenames;
try {
filenames = AuToBIReaderUtils.globFormattedFiles(autobi.getParameter("training_filenames"));
} catch (AuToBIException e) {
try {
filenames = AuToBIRea... | public static void main(String[] args) {
AuToBI autobi = new AuToBI();
autobi.init(args);
List<FormattedFile> filenames;
try {
filenames = AuToBIReaderUtils.globFormattedFiles(autobi.getParameter("training_filenames"));
} catch (AuToBIException e) {
try {
filenames = AuToBIRea... |
diff --git a/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java b/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java
index 4818b0ed9..28cabcb54 100644
--- a/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java
+++ b/src/commons/org/... | true | true | public DefaultGrailsControllerClass(Class clazz) {
super(clazz, CONTROLLER);
String uri = SLASH + (StringUtils.isNotBlank(getPackageName()) ? getPackageName().replace('.', '/') + SLASH : "" ) + WordUtils.uncapitalize(getName());
String defaultClosureName = (String)getPropertyValue(DEFAULT_CLOSURE_PROPERTY, Stri... | public DefaultGrailsControllerClass(Class clazz) {
super(clazz, CONTROLLER);
String uri = SLASH + (StringUtils.isNotBlank(getPackageName()) ? getPackageName().replace('.', '/') + SLASH : "" ) + WordUtils.uncapitalize(getName());
String defaultClosureName = (String)getPropertyValue(DEFAULT_CLOSURE_PROPERTY, Stri... |
diff --git a/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/views/TestRunViewPart.java b/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/views/TestRunViewPart.java
index c394115..eb848f2 100644
--- a/org.strategoxt.imp.testing/editor/java/org/strategoxt/imp/testing/views/TestRunView... | true | true | public void createPartControl(Composite parent) {
parent.setLayout(new FormLayout());
pb = new JUnitProgressBar(parent);
FormData fd_pb = new FormData();
fd_pb.left = new FormAttachment(0, 10);
fd_pb.top = new FormAttachment(0, 10);
pb.setLayoutData(fd_pb);
... | public void createPartControl(Composite parent) {
parent.setLayout(new FormLayout());
pb = new JUnitProgressBar(parent);
FormData fd_pb = new FormData();
fd_pb.left = new FormAttachment(0, 10);
fd_pb.top = new FormAttachment(0, 10);
pb.setLayoutData(fd_pb);
... |
diff --git a/src/java/org/apache/nutch/parse/ParseUtil.java b/src/java/org/apache/nutch/parse/ParseUtil.java
index a747db34..4205ffe9 100644
--- a/src/java/org/apache/nutch/parse/ParseUtil.java
+++ b/src/java/org/apache/nutch/parse/ParseUtil.java
@@ -1,145 +1,146 @@
/**
* Copyright 2005 The Apache Software Foundatio... | true | true | public Parse parse(Content content) throws ParseException {
Parser[] parsers = null;
try {
parsers = this.parserFactory.getParsers(content.getContentType(), "");
} catch (ParserNotFound e) {
if (LOG.isWarnEnabled()) {
LOG.warn("No suitable parser found when trying to parse content... | public Parse parse(Content content) throws ParseException {
Parser[] parsers = null;
try {
parsers = this.parserFactory.getParsers(content.getContentType(),
content.getUrl() != null ? content.getUrl():"");
} catch (ParserNotFound e) {
if (LOG.isWarnEnabled()) {
LOG.warn... |
diff --git a/jsonengine/src/com/livejournal/karino2/subtitle2/DeleteServlet.java b/jsonengine/src/com/livejournal/karino2/subtitle2/DeleteServlet.java
index 353d344..a0b7746 100644
--- a/jsonengine/src/com/livejournal/karino2/subtitle2/DeleteServlet.java
+++ b/jsonengine/src/com/livejournal/karino2/subtitle2/DeleteServ... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String srtId = req.getParameter("srtId");
boolean textOnly = !req.getParameter("textOnly").equals("");
Subtitle subtitle = new Subtitle("bot1");
try {
... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String srtId = req.getParameter("srtId");
boolean textOnly = false;
if(req.getParameterMap().containsKey("textOnly")) {
textOnly = req.getParameter("textOnly... |
diff --git a/src/plusone/clustering/DTRandomWalkPredictor.java b/src/plusone/clustering/DTRandomWalkPredictor.java
index f85e9ab..c43246a 100644
--- a/src/plusone/clustering/DTRandomWalkPredictor.java
+++ b/src/plusone/clustering/DTRandomWalkPredictor.java
@@ -1,163 +1,165 @@
package plusone.clustering;
import java... | true | true | public Integer[][] predict(int k, boolean outputUsedWord, File outputDirectory) {
PlusoneFileWriter writer =
makePredictionWriter(k, outputUsedWord, outputDirectory,
stochastic ? Integer.toString(walkLength) + "-" + Integer.toString(nSampleWalks)
: "det");
Integer[][] ret = new In... | public Integer[][] predict(int k, boolean outputUsedWord, File outputDirectory) {
PlusoneFileWriter writer =
makePredictionWriter(k, outputUsedWord, outputDirectory,
stochastic ? Integer.toString(walkLength) + "-" + Integer.toString(nSampleWalks)
: "det");
Integer[][] ret = new In... |
diff --git a/cruisecontrol/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/NavigationTagExtraInfo.java b/cruisecontrol/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/NavigationTagExtraInfo.java
index 6e12bb3a..42752384 100644
--- a/cruisecontrol/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/Navi... | false | true | public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[] {
new VariableInfo("url",
"String",
true,
VariableInfo.NESTED),
new VariableInfo("linktext",
... | public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[] {
new VariableInfo("url",
"java.lang.String",
true,
VariableInfo.NESTED),
new VariableInfo("linktext",
... |
diff --git a/jsword-tweaks/src/main/java/jsword/org/crosswire/jsword/book/install/sword/AbstractSwordInstaller.java b/jsword-tweaks/src/main/java/jsword/org/crosswire/jsword/book/install/sword/AbstractSwordInstaller.java
index 620fe534..19893955 100644
--- a/jsword-tweaks/src/main/java/jsword/org/crosswire/jsword/book/... | false | true | public void install(Book book) {
// // Is the book already installed? Then nothing to do.
// if (Books.installed().getBook(book.getName()) != null)
// {
// return;
// }
//
final SwordBookMetaData sbmd = (SwordBookMetaData) book.getBookMetaData();
// S... | public void install(Book book) {
// // Is the book already installed? Then nothing to do.
// if (Books.installed().getBook(book.getName()) != null)
// {
// return;
// }
//
final SwordBookMetaData sbmd = (SwordBookMetaData) book.getBookMetaData();
// S... |
diff --git a/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/TableTab.java b/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/TableTab.java
index 201ae2edc..c05eb1026 100644
--- a/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/TableTab.java
+++ ... | true | true | protected void createExampleControls( Composite parent ) {
FillLayout layout = new FillLayout();
layout.marginHeight = 5;
layout.marginWidth = 5;
parent.setLayout( layout );
int style = getStyle();
table = new Table( parent, style );
table.addSelectionListener( new SelectionAdapter() {
... | protected void createExampleControls( Composite parent ) {
FillLayout layout = new FillLayout();
layout.marginHeight = 5;
layout.marginWidth = 5;
parent.setLayout( layout );
int style = getStyle();
table = new Table( parent, style );
table.addSelectionListener( new SelectionAdapter() {
... |
diff --git a/task_59564/solution/src/com/example/second/AnnealingSimulation.java b/task_59564/solution/src/com/example/second/AnnealingSimulation.java
index aaeec1f..eba68ab 100644
--- a/task_59564/solution/src/com/example/second/AnnealingSimulation.java
+++ b/task_59564/solution/src/com/example/second/AnnealingSimulat... | true | true | public double search(){
//init state
double currentState = initState();
int iteration = 0;
double temperature = cooling(iteration++);
do {
double nextState = nextState(currentState, temperature);
double currentStateEnergy = function.evaluate(currentS... | public double search(){
//init state
double currentState = initState();
int iteration = 0;
double temperature = cooling(iteration++);
do {
double nextState = nextState(currentState, temperature);
double currentStateEnergy = function.evaluate(currentS... |
diff --git a/src/org/opensolaris/opengrok/history/MercurialRepository.java b/src/org/opensolaris/opengrok/history/MercurialRepository.java
index 4744c5f..8c273c2 100644
--- a/src/org/opensolaris/opengrok/history/MercurialRepository.java
+++ b/src/org/opensolaris/opengrok/history/MercurialRepository.java
@@ -1,342 +1,34... | true | true | public Annotation annotate(File file, String revision) throws IOException {
ArrayList<String> argv = new ArrayList<String>();
ensureCommand(CMD_PROPERTY_KEY, CMD_FALLBACK);
argv.add(cmd);
argv.add("annotate");
argv.add("-n");
if (revision != null) {
argv.a... | public Annotation annotate(File file, String revision) throws IOException {
ArrayList<String> argv = new ArrayList<String>();
ensureCommand(CMD_PROPERTY_KEY, CMD_FALLBACK);
argv.add(cmd);
argv.add("annotate");
argv.add("-n");
if (revision != null) {
argv.a... |
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java
index 8f968b43..ebdc9c72 100755
--- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoRunner.java
+++ b/tests/DumpRenderTree/src... | false | true | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
this.mTestPath = (String) icicle.get("path");
String timeout_str = (String) icicle.get("timeout");
if (timeout_str != null) {
try {
this.mTimeoutInMillis = Integer.parseInt(timeout_str);
... | public void onCreate(Bundle icicle) {
this.mTestPath = (String) icicle.get("path");
String timeout_str = (String) icicle.get("timeout");
if (timeout_str != null) {
try {
this.mTimeoutInMillis = Integer.parseInt(timeout_str);
} catch (Exception e) {
... |
diff --git a/core/src/main/java/org/mule/galaxy/impl/ScriptManagerImpl.java b/core/src/main/java/org/mule/galaxy/impl/ScriptManagerImpl.java
index 213679e3..89771929 100755
--- a/core/src/main/java/org/mule/galaxy/impl/ScriptManagerImpl.java
+++ b/core/src/main/java/org/mule/galaxy/impl/ScriptManagerImpl.java
@@ -1,96 ... | true | true | public String execute(final String scriptText) throws AccessException, RegistryException {
accessControlManager.assertAccess(Permission.EXECUTE_ADMIN_SCRIPTS);
final Binding binding = new Binding();
binding.setProperty("applicationContext", applicationContext);
for ... | public String execute(final String scriptText) throws AccessException, RegistryException {
accessControlManager.assertAccess(Permission.EXECUTE_ADMIN_SCRIPTS);
final Binding binding = new Binding();
binding.setProperty("applicationContext", applicationContext);
for ... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtogglejail.java b/Essentials/src/com/earth2me/essentials/commands/Commandtogglejail.java
index a4524ca3..8712531f 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtogglejail.java
+++ b/Essentials/src/com/earth2me/essentials/commands/... | true | true | public void run(Server server, Essentials parent, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 1 || args.length > 2)
{
sender.sendMessage("Usage: /" + commandLabel + " [player] [jailname]");
return;
}
User p;
try
{
p = User.get(server.matchPlay... | public void run(Server server, Essentials parent, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 1 || args.length > 2)
{
sender.sendMessage("Usage: /" + commandLabel + " [player] [jailname]");
return;
}
User p;
try
{
p = User.get(server.matchPlay... |
diff --git a/src/main/java/com/solidstategroup/radar/dao/impl/GenericDiagnosisDaoImpl.java b/src/main/java/com/solidstategroup/radar/dao/impl/GenericDiagnosisDaoImpl.java
index 8356bc51..9af03056 100644
--- a/src/main/java/com/solidstategroup/radar/dao/impl/GenericDiagnosisDaoImpl.java
+++ b/src/main/java/com/solidstat... | true | true | public GenericDiagnosis getById(String id) {
try {
return jdbcTemplate.queryForObject("SELECT DISTINCT *, FROM rdr_prd_code, rdr_diagnosis_mapping" +
" WHERE rdr_prd_code.ERA_EDTA_PRD_code = rdr_diagnosis_mapping.PRDCode" +
" AND ERA_EDTA_PRD_code = ?", ne... | public GenericDiagnosis getById(String id) {
try {
return jdbcTemplate.queryForObject("SELECT DISTINCT * FROM rdr_prd_code, rdr_diagnosis_mapping" +
" WHERE rdr_prd_code.ERA_EDTA_PRD_code = rdr_diagnosis_mapping.PRDCode" +
" AND ERA_EDTA_PRD_code = ?", new... |
diff --git a/server/war/src/main/java/eu/stratuslab/marketplace/server/utils/MessageUtils.java b/server/war/src/main/java/eu/stratuslab/marketplace/server/utils/MessageUtils.java
index 459f90b..1b95a9e 100644
--- a/server/war/src/main/java/eu/stratuslab/marketplace/server/utils/MessageUtils.java
+++ b/server/war/src/ma... | true | true | public static String createNotification(String baseUrl, File file,
String[] coords, String deprecated) {
String identifier = coords[0];
String created = coords[2];
String tag = (deprecated != "") ? "deprecating" : "for";
String uuid = extractUUIDFromFile(file);
... | public static String createNotification(String baseUrl, File file,
String[] coords, String deprecated) {
String identifier = coords[0];
String created = coords[2];
String tag = (!deprecated.equals("")) ? "deprecating" : "for";
String uuid = extractUUIDFromFile(file);
... |
diff --git a/luni/src/test/java/libcore/java/text/OldDateFormatTest.java b/luni/src/test/java/libcore/java/text/OldDateFormatTest.java
index f614d6f2d..6b3885c89 100644
--- a/luni/src/test/java/libcore/java/text/OldDateFormatTest.java
+++ b/luni/src/test/java/libcore/java/text/OldDateFormatTest.java
@@ -1,486 +1,480 @@... | false | true | public void test_parseLString() {
DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US);
try {
format.parse("not a Date");
fail("should throw ParseException first");
} catch (ParseException pe) {
assertNotNull(p... | public void test_parseLString() throws Exception {
DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US);
try {
format.parse("not a Date");
fail("should throw ParseException first");
} catch (ParseException pe) {
... |
diff --git a/stage/src/test/java/org/jboss/test/faces/staging/suite/UrlResourceLoadingTest.java b/stage/src/test/java/org/jboss/test/faces/staging/suite/UrlResourceLoadingTest.java
index 1153830..7119f1f 100644
--- a/stage/src/test/java/org/jboss/test/faces/staging/suite/UrlResourceLoadingTest.java
+++ b/stage/src/test... | true | true | public void testAddFromJar() throws Exception {
URL resource = this.getClass().getClassLoader().getResource("java/util/Set.class");
assertNotNull(resource);
ApplicationServer server = ApplicationServer.createApplicationServer();
server.addResourcesFromDirectory("/", resource);
try {
server.init();
... | public void testAddFromJar() throws Exception {
URL resource = this.getClass().getClassLoader().getResource("java/util/Set.class");
assertNotNull(resource);
ApplicationServer server = ApplicationServer.createApplicationServer();
server.addResourcesFromDirectory("/", resource);
try {
server.init();
... |
diff --git a/src/DigitSpinner.java b/src/DigitSpinner.java
index 7bbd6d7..79eac0c 100644
--- a/src/DigitSpinner.java
+++ b/src/DigitSpinner.java
@@ -1,252 +1,252 @@
package nz.gen.geek_central.MemoryHog;
/*
Custom spinner showing digits 0 .. 9.
Copyright 2011 by Lawrence D'Oliveiro <ldo@geek-central.gen.n... | true | true | public boolean onTouchEvent
(
android.view.MotionEvent TheEvent
)
{
switch (TheEvent.getAction())
{
case android.view.MotionEvent.ACTION_DOWN:
{
final android.widget.ArrayAdapter<String> Digits =
new android.widget... | public boolean onTouchEvent
(
android.view.MotionEvent TheEvent
)
{
switch (TheEvent.getAction())
{
case android.view.MotionEvent.ACTION_DOWN:
{
final android.widget.ArrayAdapter<String> Digits =
new android.widget... |
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java b/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java
index 3f55f237d5..7f50fa8ed0 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java
@@ -1,625 +1,... | false | true | public void _run() throws Throwable {
for(int iter=0;iter<NUM_TEST_ITER;iter++) {
final FieldData field = fields[random().nextInt(fields.length)];
final TermsEnum termsEnum = termsDict.terms(field.fieldInfo.name).iterator(null);
int upto = 0;
// Test straight enum of the term... | public void _run() throws Throwable {
for(int iter=0;iter<NUM_TEST_ITER;iter++) {
final FieldData field = fields[random().nextInt(fields.length)];
final TermsEnum termsEnum = termsDict.terms(field.fieldInfo.name).iterator(null);
int upto = 0;
// Test straight enum of the term... |
diff --git a/src/RelayDescriptorDownloader.java b/src/RelayDescriptorDownloader.java
index 5dea813..0f70eac 100644
--- a/src/RelayDescriptorDownloader.java
+++ b/src/RelayDescriptorDownloader.java
@@ -1,68 +1,73 @@
import java.io.*;
import java.net.*;
import java.util.*;
/**
* Download the current consensus and... | true | true | public RelayDescriptorDownloader(RelayDescriptorParser rdp,
String authority, SortedMap<String, String> directories) {
try {
System.out.print("Downloading current consensus from " + authority
+ "... ");
URL u = new URL("http://" + authority
+ "/tor/status-vote/current/consens... | public RelayDescriptorDownloader(RelayDescriptorParser rdp,
String authority, SortedMap<String, String> directories) {
try {
rdp.initialize();
} catch (IOException e) {
return;
}
try {
System.out.print("Downloading current consensus from " + authority
+ "... ");
... |
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorSelector.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorSelector.java
index 44b2090a3..8104d23e8 100644
--- a/bundles/org... | true | true | private MirrorInfo[] computeMirrors(String mirrorsURL, IProgressMonitor monitor) {
try {
String countryCode = Locale.getDefault().getCountry().toLowerCase();
int timeZone = (new GregorianCalendar()).get(Calendar.ZONE_OFFSET) / (60 * 60 * 1000);
if (mirrorsURL.indexOf('?') != -1) {
mirrorsURL = mirrorsU... | private MirrorInfo[] computeMirrors(String mirrorsURL, IProgressMonitor monitor) {
try {
String countryCode = Activator.getContext().getProperty("eclipse.p2.countryCode"); //$NON-NLS-1$
if (countryCode == null || countryCode.trim().length() == 0)
countryCode = Locale.getDefault().getCountry().toLowerCase()... |
diff --git a/blob-store/src/main/java/org/openrdf/store/blob/BlobStoreFactory.java b/blob-store/src/main/java/org/openrdf/store/blob/BlobStoreFactory.java
index a6124ec4..e8faccfc 100644
--- a/blob-store/src/main/java/org/openrdf/store/blob/BlobStoreFactory.java
+++ b/blob-store/src/main/java/org/openrdf/store/blob/Blo... | true | true | public BlobStore openBlobStore(String url, Map<String, String> parameters)
throws IOException {
Map<String, String> key = new HashMap<String, String>();
if (parameters != null) {
key.putAll(parameters);
}
key.put(URL_KEY, url);
synchronized (stores) {
for (Map.Entry<Map<String, String>, WeakReferenc... | public BlobStore openBlobStore(String url, Map<String, String> parameters)
throws IOException {
Map<String, String> key = new HashMap<String, String>();
if (parameters != null) {
key.putAll(parameters);
}
key.put(URL_KEY, url);
synchronized (stores) {
Iterator<WeakReference<BlobStore>> iter = stores... |
diff --git a/src/com/orange/place/upload/AbstractUploadManager.java b/src/com/orange/place/upload/AbstractUploadManager.java
index 7667ab7..bbfd096 100644
--- a/src/com/orange/place/upload/AbstractUploadManager.java
+++ b/src/com/orange/place/upload/AbstractUploadManager.java
@@ -1,176 +1,176 @@
package com.orange.pla... | false | true | protected String uploadFile(HttpServletRequest request) {
String filepath = null;
try {
request.setCharacterEncoding("UTF-8");
ServletFileUpload upload = new ServletFileUpload();
upload.setProgressListener(progressListener);
if (!ServletFileUpload.isMultipartContent(request)) {
log.info("<uploadFil... | protected String uploadFile(HttpServletRequest request) {
String localPath = null;
String httpPath = null;
try {
request.setCharacterEncoding("UTF-8");
ServletFileUpload upload = new ServletFileUpload();
upload.setProgressListener(progressListener);
if (!ServletFileUpload.isMultipartContent(request))... |
diff --git a/src/share/org/apache/struts/taglib/html/OptionsTag.java b/src/share/org/apache/struts/taglib/html/OptionsTag.java
index 9a54535a7..a8e578734 100644
--- a/src/share/org/apache/struts/taglib/html/OptionsTag.java
+++ b/src/share/org/apache/struts/taglib/html/OptionsTag.java
@@ -1,361 +1,361 @@
/*
* =======... | false | true | public int doEndTag() throws JspException {
// Acquire the select tag we are associated with
SelectTag selectTag =
(SelectTag) pageContext.getAttribute(Constants.SELECT_KEY);
if (selectTag == null)
throw new JspException
(messages.getMessage("optionsTag.select"));
StringBuffer sb = new StringB... | public int doEndTag() throws JspException {
// Acquire the select tag we are associated with
SelectTag selectTag =
(SelectTag) pageContext.getAttribute(Constants.SELECT_KEY);
if (selectTag == null)
throw new JspException
(messages.getMessage("optionsTag.select"));
StringBuffer sb = new StringB... |
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java
index 7676a97be..c76517195 100644
--- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletReq... | false | true | public void send() {
checkReadOnly();
final Request request = (Request) super.message;
final MobicentsSipSession session = getSipSession();
try {
ProxyImpl proxy = null;
if(session != null) {
proxy = session.getProxy();
}
final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa... | public void send() {
checkReadOnly();
final Request request = (Request) super.message;
final MobicentsSipSession session = getSipSession();
try {
ProxyImpl proxy = null;
if(session != null) {
proxy = session.getProxy();
}
final SipNetworkInterfaceManager sipNetworkInterfaceManager = sipFa... |
diff --git a/src/br/com/activity/CarregarActivity.java b/src/br/com/activity/CarregarActivity.java
index b0b181c..97c93df 100644
--- a/src/br/com/activity/CarregarActivity.java
+++ b/src/br/com/activity/CarregarActivity.java
@@ -1,134 +1,134 @@
package br.com.activity;
import java.io.File;
import java.io.IOExcepti... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_carregar);
textViewAutor = (TextView) findViewById(R.id.textAutor);
textViewAlbum = (TextView) findViewById(R.id.textAlbum);
textViewGenero = (TextView) findViewById(R.id.textGenero);
... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_carregar);
textViewAutor = (TextView) findViewById(R.id.textAutor);
textViewAlbum = (TextView) findViewById(R.id.textAlbum);
textViewGenero = (TextView) findViewById(R.id.textGenero);
... |
diff --git a/Source/JNAWindowsAuthProvider/src/waffle/servlet/NegotiateSecurityFilter.java b/Source/JNAWindowsAuthProvider/src/waffle/servlet/NegotiateSecurityFilter.java
index 414dd3a5..079787ac 100644
--- a/Source/JNAWindowsAuthProvider/src/waffle/servlet/NegotiateSecurityFilter.java
+++ b/Source/JNAWindowsAuthProvid... | true | true | public void doFilter(ServletRequest sreq, ServletResponse sres,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) sreq;
HttpServletResponse response = (HttpServletResponse) sres;
_log.info(request.getMethod() + " " + request.getRequestURI() + ", co... | public void doFilter(ServletRequest sreq, ServletResponse sres,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) sreq;
HttpServletResponse response = (HttpServletResponse) sres;
_log.info(request.getMethod() + " " + request.getRequestURI() + ", co... |
diff --git a/src/plugin/shortener/ErrorPage.java b/src/plugin/shortener/ErrorPage.java
index 21f02a2..e9159fe 100644
--- a/src/plugin/shortener/ErrorPage.java
+++ b/src/plugin/shortener/ErrorPage.java
@@ -1,104 +1,104 @@
/*
* shortener - ErrorPage.java - Copyright © 2010 David Roden
*
* This program is free soft... | true | true | public Response handleRequest(Request request) {
ToadletContext toadletContext = request.getToadletContext();
PageMaker pageMaker = toadletContext.getPageMaker();
BaseL10n pluginL10n = ShortenerPlugin.l10n.getBase();
PageNode pageNode = pageMaker.getPageNode(pluginL10n.getString("Page." + errorName + ".Title")... | public Response handleRequest(Request request) {
ToadletContext toadletContext = request.getToadletContext();
PageMaker pageMaker = toadletContext.getPageMaker();
BaseL10n pluginL10n = ShortenerPlugin.l10n.getBase();
PageNode pageNode = pageMaker.getPageNode(pluginL10n.getString("Page." + errorName + ".Title")... |
diff --git a/components/messaging/messaging-core/src/main/java/org/torquebox/messaging/core/RubyMessageProcessor.java b/components/messaging/messaging-core/src/main/java/org/torquebox/messaging/core/RubyMessageProcessor.java
index f5b0efbb7..1fcc0a2f6 100644
--- a/components/messaging/messaging-core/src/main/java/org/t... | false | true | public void onMessage(Message message) {
Ruby ruby = null;
try {
log.debug("Received message: "+message);
ruby = getRubyRuntimePool().borrowRuntime();
log.debug("Got runtime: "+ruby);
IRubyObject processor = instantiateProc... | public void onMessage(Message message) {
Ruby ruby = null;
try {
log.debug("Received message: "+message);
ruby = getRubyRuntimePool().borrowRuntime();
log.debug("Got runtime: "+ruby);
IRubyObject processor = instantiateProc... |
diff --git a/src/org/geworkbench/engine/config/UILauncher.java b/src/org/geworkbench/engine/config/UILauncher.java
index e566edbf..f9168c2c 100755
--- a/src/org/geworkbench/engine/config/UILauncher.java
+++ b/src/org/geworkbench/engine/config/UILauncher.java
@@ -1,262 +1,277 @@
package org.geworkbench.engine.config;
... | true | true | public static void main(String[] args) {
// Sort out arguments
String configFileArg = null;
String lookAndFeelArg = null;
boolean devMode = false;
for (int i = 0; i < args.length; i++) {
if (LOOK_AND_FEEL_FLAG.equals(args[i])) {
if (args.leng... | public static void main(String[] args) {
// Sort out arguments
String configFileArg = null;
String lookAndFeelArg = null;
boolean devMode = false;
for (int i = 0; i < args.length; i++) {
if (LOOK_AND_FEEL_FLAG.equals(args[i])) {
if (args.leng... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.esb.project/src/org/wso2/developerstudio/eclipse/esb/project/provider/NavigatorActionProvider.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.esb.project/src/org/wso2/developerstudio/eclipse/esb/project/provider/NavigatorActionProvider.java
index 8d1... | true | true | private String[] getType(String path) throws Exception {
List<String> lines;
DocumentBuilderFactory dbFactory = DocumentBuilderFactory
.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
/*
* Here we are using two approaches to get the correct synapse type
* from the .x... | private String[] getType(String path) throws Exception {
List<String> lines;
DocumentBuilderFactory dbFactory = DocumentBuilderFactory
.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
/*
* Here we are using two approaches to get the correct synapse type
* from the .x... |
diff --git a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/site/AddSitePage.java b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/site/AddSitePage.java
index f6c27e33e..0f6bd302e 100644
--- a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/site/AddSitePage.java
+++ b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/site/AddSitePage.... | true | true | public String create() {
if (this.selectedGroup != null) {
System.out.println("the group is" + this.getSelectedGroup());
}
Long selectedgroup = this.getSelectedGroup();
String name = (String) dataverseName.getValue();
String alias = (String) dataverseAlias.getValu... | public String create() {
if (this.selectedGroup != null) {
System.out.println("the group is" + this.getSelectedGroup());
}
Long selectedgroup = this.getSelectedGroup();
String name = (String) dataverseName.getValue();
String alias = (String) dataverseAlias.getValu... |
diff --git a/src/com/android/music/MediaPlaybackService.java b/src/com/android/music/MediaPlaybackService.java
index 5c8fe42..b261649 100644
--- a/src/com/android/music/MediaPlaybackService.java
+++ b/src/com/android/music/MediaPlaybackService.java
@@ -1,2032 +1,2032 @@
/*
* Copyright (C) 2007 The Android Open Sourc... | true | true | private void reloadQueue() {
String q = null;
boolean newstyle = false;
int id = mCardId;
if (mPreferences.contains("cardid")) {
newstyle = true;
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only ... | private void reloadQueue() {
String q = null;
boolean newstyle = false;
int id = mCardId;
if (mPreferences.contains("cardid")) {
newstyle = true;
id = mPreferences.getInt("cardid", ~mCardId);
}
if (id == mCardId) {
// Only ... |
diff --git a/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java b/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java
index 7e91ab50..10cf9207 100755
--- a/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java
+++ b/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java
@... | true | true | protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL,
String strongName) {
// The request can tell you the path of the web app relative to the
// container root.
String contextPath =... | protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL,
String strongName) {
// The request can tell you the path of the web app relative to the
// container root.
String contextPath =... |
diff --git a/org/lateralgm/main/Listener.java b/org/lateralgm/main/Listener.java
index 0cecb085..9f67a394 100644
--- a/org/lateralgm/main/Listener.java
+++ b/org/lateralgm/main/Listener.java
@@ -1,506 +1,506 @@
/*
* Copyright (C) 2007, 2008, 2009, 2010 IsmAvatar <IsmAvatar@gmail.com>
* Copyright (C) 2007 TGMG <the... | true | true | public void actionPerformed(ActionEvent e)
{
JTree tree = LGM.tree;
String[] args = e.getActionCommand().split(" "); //$NON-NLS-1$
String com = args[0];
if (com.endsWith(".NEW")) //$NON-NLS-1$
{
String title = Messages.getString("Listener.CONFIRM_NEW_TITLE"); //$NON-NLS-1$
String message = Messages.ge... | public void actionPerformed(ActionEvent e)
{
JTree tree = LGM.tree;
String[] args = e.getActionCommand().split(" "); //$NON-NLS-1$
String com = args[0];
if (com.endsWith(".NEW")) //$NON-NLS-1$
{
String title = Messages.getString("Listener.CONFIRM_NEW_TITLE"); //$NON-NLS-1$
String message = Messages.ge... |
diff --git a/src/gui/common/DialogBox.java b/src/gui/common/DialogBox.java
index 3b1dedc..6828174 100644
--- a/src/gui/common/DialogBox.java
+++ b/src/gui/common/DialogBox.java
@@ -1,64 +1,68 @@
package gui.common;
import java.awt.event.*;
import javax.swing.*;
import gui.main.*;
/**
* Used to display mo... | true | true | public void display(DialogView content, boolean resizable) {
setResizable(resizable);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt) {
dispose();
}
});
setContentPane(content);
pack();
setLocationRelativeTo(_parent);
setVisible(true);
}
| public void display(DialogView content, boolean resizable) {
setResizable(resizable);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt) {
dispose();
}
});
setContentPane(content);
pack();
setLocationRelativeTo(_parent);
try {
setVisible(true);
... |
diff --git a/vector67/src/ColoniesChestRenderHelper.java b/vector67/src/ColoniesChestRenderHelper.java
index 15dac3d..aa5e194 100644
--- a/vector67/src/ColoniesChestRenderHelper.java
+++ b/vector67/src/ColoniesChestRenderHelper.java
@@ -1,26 +1,27 @@
package colonies.vector67.src;
import java.util.Map;
import ne... | true | true | public void renderChest(Block block, int i, float f) {
super.renderChest(block,i,f);
if(block.blockID==ColoniesMain.chestBlock.blockID){
TileEntityRenderer.instance.renderTileEntityAt(itemRenders.get(i), 0.0D, 0.0D, 0.0D, 0.0F);
}
}
| public void renderChest(Block block, int i, float f) {
if(block==null) return; // prevent null pointer exceptions
super.renderChest(block,i,f);
if(block.blockID==ColoniesMain.chestBlock.blockID){
TileEntityRenderer.instance.renderTileEntityAt(itemRenders.get(i), 0.0D, 0.0D, 0.0D, 0.0F);
}
}
|
diff --git a/Source/HisPrivacyCAWebServices2/src/gov/niarl/his/webservices/hisPrivacyCAWebService2/server/HisPrivacyCAWebServices2LoadOnStartup.java b/Source/HisPrivacyCAWebServices2/src/gov/niarl/his/webservices/hisPrivacyCAWebService2/server/HisPrivacyCAWebServices2LoadOnStartup.java
index b61369f..04fa068 100644
---... | false | true | public void init() throws ServletException {
System.out.println("HisPrivacyCAWebServices2LoadOnStartup init()");
String tomcatPath = System.getProperty("catalina.base") + "/webapps/HisPrivacyCAWebServices2/";
String FileLocation = "/var/lib/oat-appraiser/";
File test = new File(FileLocation + "PrivacyCA.p12");... | public void init() throws ServletException {
System.out.println("HisPrivacyCAWebServices2LoadOnStartup init()");
String tomcatPath = System.getProperty("catalina.base") + "/webapps/HisPrivacyCAWebServices2/";
String FileLocation = "/var/lib/oat-appraiser/";
File test = new File(FileLocation + "PrivacyCA.p12");... |
diff --git a/PluginAnalyser/src/com/shivanshusingh/pluginanalyser/utils/parsing/ParsingUtil.java b/PluginAnalyser/src/com/shivanshusingh/pluginanalyser/utils/parsing/ParsingUtil.java
index 365e0ce..f897fbc 100644
--- a/PluginAnalyser/src/com/shivanshusingh/pluginanalyser/utils/parsing/ParsingUtil.java
+++ b/PluginAnaly... | true | true | public static Set<String> restorePropertyFromExtract(File entry, String property) throws IOException {
property = property.trim();
Set<String> result = new HashSet<String>();
BufferedReader br = new BufferedReader(new FileReader(entry));
String line = "";
while (null != (line = br.readLine())) {
line ... | public static Set<String> restorePropertyFromExtract(File entry, String property) throws IOException {
property = property.trim();
Set<String> result = new HashSet<String>();
BufferedReader br = new BufferedReader(new FileReader(entry));
String line = "";
while (null != (line = br.readLine())) {
line ... |
diff --git a/concourse-server/src/main/java/org/cinchapi/concourse/server/engine/Limbo.java b/concourse-server/src/main/java/org/cinchapi/concourse/server/engine/Limbo.java
index e99e88e3b..af392380d 100644
--- a/concourse-server/src/main/java/org/cinchapi/concourse/server/engine/Limbo.java
+++ b/concourse-server/src/m... | true | true | public Set<Long> find(long timestamp, String key, Operator operator,
TObject... values) {
Lock lock = readLock();
try {
Map<Long, Set<Value>> rtv = Maps.newHashMap();
Iterator<Write> it = writes.iterator();
Value value = Value.notForStorage(values[0]);
while (it.hasNext()) {
Write write = it.nex... | public Set<Long> find(long timestamp, String key, Operator operator,
TObject... values) {
Lock lock = readLock();
try {
Map<Long, Set<Value>> rtv = Maps.newHashMap();
Iterator<Write> it = writes.iterator();
Value value = Value.notForStorage(values[0]);
while (it.hasNext()) {
Write write = it.nex... |
diff --git a/src/com/example/ucrinstagram/Profile.java b/src/com/example/ucrinstagram/Profile.java
index 68e86d9..de8e642 100644
--- a/src/com/example/ucrinstagram/Profile.java
+++ b/src/com/example/ucrinstagram/Profile.java
@@ -1,159 +1,160 @@
package com.example.ucrinstagram;
import android.os.Bundle;
import jav... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Loader image - will be shown before loading image
int loader = R.drawable.loader;
// Imageview to show
ImageView image = (ImageView) findViewById(R.id.image);
// Image url
... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_profile);
// Loader image - will be shown before loading image
int loader = R.drawable.loader;
// Imageview to show
ImageView image = (ImageView) f... |
diff --git a/webmacro/src/org/webmacro/engine/SetDirective.java b/webmacro/src/org/webmacro/engine/SetDirective.java
index 3d648dfe..4b11c840 100755
--- a/webmacro/src/org/webmacro/engine/SetDirective.java
+++ b/webmacro/src/org/webmacro/engine/SetDirective.java
@@ -1,118 +1,118 @@
/*
* Copyright (c) 1998, 1999 Se... | true | true | public static final Object build(BuildContext rc,
Object lhs, Argument[] args) throws BuildException
{
if ((args.length != 1) || (! args[0].getName().equals("="))) {
throw new BuildException("SetDirective requites an = argument");
}
Object rhs = args[0].getValue();
Var... | public static final Object build(BuildContext rc,
Object lhs, Argument[] args) throws BuildException
{
if ((args.length != 1) || (! args[0].getName().equals("="))) {
throw new BuildException("SetDirective requires an '=' argument");
}
Object rhs = args[0].getValue();
V... |
diff --git a/core/src/visad/trunk/GriddedSet.java b/core/src/visad/trunk/GriddedSet.java
index 3050fae82..83161c506 100644
--- a/core/src/visad/trunk/GriddedSet.java
+++ b/core/src/visad/trunk/GriddedSet.java
@@ -1,877 +1,877 @@
//
// GriddedSet.java
//
/*
VisAD system for interactive analysis and visualizatio... | true | true | public void getNeighbors( int[][] neighbors )
throws VisADException
{
int ii, ix, iy, iz, ii_R, ii_L, ii_U, ii_D, ii_F, ii_B;
int LengthX;
int LengthY;
int LengthZ;
int LengthXY;
int LengthXYZ;
switch( ManifoldDimension )
{
case 1:
neighbors[0] = new in... | public void getNeighbors( int[][] neighbors )
throws VisADException
{
int ii, ix, iy, iz, ii_R, ii_L, ii_U, ii_D, ii_F, ii_B;
int LengthX;
int LengthY;
int LengthZ;
int LengthXY;
int LengthXYZ;
switch( ManifoldDimension )
{
case 1:
neighbors[0] = new in... |
diff --git a/xml/src/main/java/org/exolab/castor/xml/util/ClassResolutionByFile.java b/xml/src/main/java/org/exolab/castor/xml/util/ClassResolutionByFile.java
index cd2dbd88..4015c393 100644
--- a/xml/src/main/java/org/exolab/castor/xml/util/ClassResolutionByFile.java
+++ b/xml/src/main/java/org/exolab/castor/xml/util/... | false | true | public ClassDescriptor resolve(final Class type) {
ClassDescriptor classDesc = null;
ClassLoader classLoader = new ClassLoaderNature(this).getClassLoader();
Class descriptorClass = null;
StringBuffer descriptorClassName = new StringBuffer(type.getName());
descriptorClassName.... | public ClassDescriptor resolve(final Class type) {
ClassDescriptor classDesc = null;
ClassLoader classLoader = new ClassLoaderNature(this).getClassLoader();
Class descriptorClass = null;
StringBuffer descriptorClassName = new StringBuffer(type.getName());
descriptorClassName.... |
diff --git a/src/org/meta_environment/rascal/interpreter/TraversalEvaluator.java b/src/org/meta_environment/rascal/interpreter/TraversalEvaluator.java
index 5ab4ba7774..41635d611d 100644
--- a/src/org/meta_environment/rascal/interpreter/TraversalEvaluator.java
+++ b/src/org/meta_environment/rascal/interpreter/Traversal... | false | true | private TraverseResult traverseOnce(Result<IValue> subject, CasesOrRules casesOrRules,
DIRECTION direction,
PROGRESS progress){
Type subjectType = subject.getType();
boolean matched = false;
boolean changed = false;
Result<IValue> result = subject;
//System.err.println("traverseOnce: " + subject + "... | private TraverseResult traverseOnce(Result<IValue> subject, CasesOrRules casesOrRules,
DIRECTION direction,
PROGRESS progress){
Type subjectType = subject.getType();
boolean matched = false;
boolean changed = false;
Result<IValue> result = subject;
//System.err.println("traverseOnce: " + subject + "... |
diff --git a/src/com/dmdirc/parser/irc/ProcessListModes.java b/src/com/dmdirc/parser/irc/ProcessListModes.java
index 55ed93d2a..95b101353 100644
--- a/src/com/dmdirc/parser/irc/ProcessListModes.java
+++ b/src/com/dmdirc/parser/irc/ProcessListModes.java
@@ -1,233 +1,223 @@
/*
* Copyright (c) 2006-2009 Chris Smith, Sh... | false | true | public void process(String sParam, String[] token) {
ChannelInfo channel = getChannelInfo(token[3]);
String thisIRCD = myParser.getIRCD(true).toLowerCase();
String item = "";
String owner = "";
byte tokenStart = 4; // Where do the relevent tokens start?
boolean isCleverMode = false;
long time = 0;
char... | public void process(String sParam, String[] token) {
ChannelInfo channel = getChannelInfo(token[3]);
String thisIRCD = myParser.getIRCD(true).toLowerCase();
String item = "";
String owner = "";
byte tokenStart = 4; // Where do the relevent tokens start?
boolean isCleverMode = false;
long time = 0;
char... |
diff --git a/src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java b/src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java
index 3aade736b..cc6c05590 100644
--- a/src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java
+++ b/src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java
@@ -1,68 +1,73 ... | false | true | public boolean processLine(String line, ErrorParserManager eoParser) {
// msdev: filname(linenumber) : error/warning error_desc
int firstColon = line.indexOf(':');
if (firstColon != -1) {
/* Guard against drive in Windows platform. */
if (firstColon == 1) {
try {
String os = System.getProperty("o... | public boolean processLine(String line, ErrorParserManager eoParser) {
// msdev: filname(linenumber) : error/warning error_desc
int firstColon = line.indexOf(':');
if (firstColon != -1) {
/* Guard against drive in Windows platform. */
if (firstColon == 1) {
try {
String os = System.getProperty("o... |
diff --git a/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java b/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
index 25444e1c..c48c52eb 100644
--- a/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
+++ b/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
@@ -1... | true | true | public LinkedRuleBuilder forPattern(String pattern) {
final String keyPattern;
if (pattern == null || pattern.length() == 0) {
this.addError(new IllegalArgumentException("Null or empty pattern is not valid"));
keyPattern = null;
} else {
if (pattern.endsW... | public LinkedRuleBuilder forPattern(String pattern) {
final String keyPattern;
if (pattern == null || pattern.length() == 0) {
this.addError(new IllegalArgumentException("Null or empty pattern is not valid"));
keyPattern = null;
} else {
if (pattern.endsW... |
diff --git a/grisu-core/src/main/java/grisu/backend/model/job/UserJobManager.java b/grisu-core/src/main/java/grisu/backend/model/job/UserJobManager.java
index cff56fa7..daafca74 100644
--- a/grisu-core/src/main/java/grisu/backend/model/job/UserJobManager.java
+++ b/grisu-core/src/main/java/grisu/backend/model/job/UserJ... | false | true | private void processJobDescription(final Job job, final BatchJob parentJob)
throws NoSuchJobException, JobPropertiesException {
Boolean applicationCalculated = false;
Boolean submissionLocationCalculated = false;
final Document jsdl = job.getJobDescription();
// check whether this job was already submitt... | private void processJobDescription(final Job job, final BatchJob parentJob)
throws NoSuchJobException, JobPropertiesException {
Boolean applicationCalculated = false;
Boolean submissionLocationCalculated = false;
final Document jsdl = job.getJobDescription();
// check whether this job was already submitt... |
diff --git a/src/org/jsc/client/SettingsScreen.java b/src/org/jsc/client/SettingsScreen.java
index a75ed79..5bb6ef7 100644
--- a/src/org/jsc/client/SettingsScreen.java
+++ b/src/org/jsc/client/SettingsScreen.java
@@ -1,417 +1,418 @@
package org.jsc.client;
import com.google.gwt.core.client.GWT;
import com.google.g... | true | true | private void createAccount() {
GWT.log("Creating account...", null);
// Gather information from the form
String fname = fnameField.getText();
String mname = mnameField.getText();
String lname = lnameField.getText();
String email = emailField.getText();
St... | private void createAccount() {
GWT.log("Creating account...", null);
// Gather information from the form
String fname = fnameField.getText();
String mname = mnameField.getText();
String lname = lnameField.getText();
String email = emailField.getText();
St... |
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/RepositoryFilter.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/RepositoryFilter.java
index 5b336b2f..58404020 100644
--- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/RepositoryFilter.java
+++ b/org.eclip... | true | true | public void doFilter(final ServletRequest request,
final ServletResponse response, final FilterChain chain)
throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
if (request.getAttribute(ATTRIBUTE_REPOSITORY)... | public void doFilter(final ServletRequest request,
final ServletResponse response, final FilterChain chain)
throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
if (request.getAttribute(ATTRIBUTE_REPOSITORY)... |
diff --git a/srcj/com/sun/electric/tool/user/ActivityLogger.java b/srcj/com/sun/electric/tool/user/ActivityLogger.java
index b183699f6..d81631ffa 100644
--- a/srcj/com/sun/electric/tool/user/ActivityLogger.java
+++ b/srcj/com/sun/electric/tool/user/ActivityLogger.java
@@ -1,269 +1,269 @@
/* -*- tab-width: 4 -*-
*
... | true | true | public static synchronized void initialize(String fileName, boolean logMenuActivations, boolean logJobs,
boolean useTimeStamps, boolean enableLog, boolean multipleLog) {
ActivityLogger.logMenuActivations = logMenuActivations;
ActivityLogger.logJobs = lo... | public static synchronized void initialize(String fileName, boolean logMenuActivations, boolean logJobs,
boolean useTimeStamps, boolean enableLog, boolean multipleLog) {
ActivityLogger.logMenuActivations = logMenuActivations;
ActivityLogger.logJobs = lo... |
diff --git a/src/main/java/edu/stanford/pigir/TextualHTMLLinksRemover.java b/src/main/java/edu/stanford/pigir/TextualHTMLLinksRemover.java
index 192f7f7..c4e4b93 100644
--- a/src/main/java/edu/stanford/pigir/TextualHTMLLinksRemover.java
+++ b/src/main/java/edu/stanford/pigir/TextualHTMLLinksRemover.java
@@ -1,37 +1,37 ... | true | true | public static void main(String[] args) throws IOException {
final String usage = "Usage: java -jar linkRemover.jar edu.stanford.pigir.TextualHTMLLinksRemover <inFilePath> <outFilePath>";
if (args.length != 3) {
System.out.println(usage);
System.exit(1);
}
File inFile = new File(args[1]);
File outFile =... | public static void main(String[] args) throws IOException {
final String usage = "Usage: java -jar textualHTMLLinksRemover.jar edu.stanford.pigir.TextualHTMLLinksRemover <inFilePath> <outFilePath>";
if (args.length != 3) {
System.out.println(usage);
System.exit(1);
}
File inFile = new File(args[1]);
Fi... |
diff --git a/src/ca/eandb/jmist/math/Sphere.java b/src/ca/eandb/jmist/math/Sphere.java
index ac62fb42..7b374bff 100644
--- a/src/ca/eandb/jmist/math/Sphere.java
+++ b/src/ca/eandb/jmist/math/Sphere.java
@@ -1,375 +1,375 @@
/**
*
*/
package ca.eandb.jmist.math;
import java.io.Serializable;
/**
* A sphere... | true | true | public Interval intersect(Ray3 ray) {
//
// Algorithm from:
//
// A.S. Glassner, Ed.,
// "An Introduction to Ray Tracing",
// Morgan Kaufmann Publishers, Inc., San Francisco, CA, 2002
// Section 2.2
//
// Check for an empty box.
if (isEmpty()) {
return Interval.EMPTY;
}
// Check if the ra... | public Interval intersect(Ray3 ray) {
//
// Algorithm from:
//
// A.S. Glassner, Ed.,
// "An Introduction to Ray Tracing",
// Morgan Kaufmann Publishers, Inc., San Francisco, CA, 2002
// Section 2.2
//
// Check for an empty box.
if (isEmpty()) {
return Interval.EMPTY;
}
// Check if the ra... |
diff --git a/src/com/drewi/minesweeper/Board.java b/src/com/drewi/minesweeper/Board.java
index 3d9e76b..cb54e7c 100644
--- a/src/com/drewi/minesweeper/Board.java
+++ b/src/com/drewi/minesweeper/Board.java
@@ -1,261 +1,264 @@
package com.drewi.minesweeper;
import java.awt.Dimension;
import java.util.ArrayList;
imp... | false | true | public void onDualClick(MineButton button) {
if(!mIsBoardGenerated || mGameOver || button.isClickable()){
return;
}
Set<Integer> checkedPositions = new HashSet<Integer>();
Set<Integer> clickPositions = new HashSet<Integer>();
List<Integer> neighbours = getNeighbours(button);
int flags = 0;
for(int nei... | public void onDualClick(MineButton button) {
if(!mIsBoardGenerated || mGameOver || button.isClickable()){
return;
}
Set<Integer> checkedPositions = new HashSet<Integer>();
Set<Integer> clickPositions = new HashSet<Integer>();
List<Integer> neighbours = getNeighbours(button);
int flags = 0;
for(int nei... |
diff --git a/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java b/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java
index bc9d9bd..3df9a53 100644
--- a/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java
+++ b/src/net/appositedesigns/fileexplorer/quickac... | true | true | public void showQuickActions(final ImageView view, final FileListEntry entry) {
final File file = entry.getPath();
final QuickAction actions = new QuickAction(view);
int[] availableActions = FileActionsHelper.getContextMenuOptions(file, mContext);
if(new PreferenceUtil(mContext).getTheme() == android.R... | public void showQuickActions(final ImageView view, final FileListEntry entry) {
final File file = entry.getPath();
final QuickAction actions = new QuickAction(view);
int[] availableActions = FileActionsHelper.getContextMenuOptions(file, mContext);
if(new PreferenceUtil(mContext).getTheme() == android.R... |
diff --git a/src/org/microtitan/diffusive/launcher/config/ConfigUtils.java b/src/org/microtitan/diffusive/launcher/config/ConfigUtils.java
index 4f3849d..2ca2e61 100644
--- a/src/org/microtitan/diffusive/launcher/config/ConfigUtils.java
+++ b/src/org/microtitan/diffusive/launcher/config/ConfigUtils.java
@@ -1,75 +1,78 ... | true | true | public static List< String > validateEndpoints( final Collection< String > clientEndpoints )
{
final List< String > endpoints = new ArrayList<>();
for( String client : clientEndpoints )
{
URI uri;
try
{
uri = new URI( client );
endpoints.add( uri.getScheme() + "://" + uri.getHost() +":" + uri.g... | public static List< String > validateEndpoints( final Collection< String > clientEndpoints )
{
final List< String > endpoints = new ArrayList<>();
for( String client : clientEndpoints )
{
URI uri;
try
{
if( !client.isEmpty() )
{
uri = new URI( client );
endpoints.add( uri.getScheme() ... |
diff --git a/src/main/java/org/terasologylauncher/util/ImageUtils.java b/src/main/java/org/terasologylauncher/util/ImageUtils.java
index 8f7ca14..1ac7851 100644
--- a/src/main/java/org/terasologylauncher/util/ImageUtils.java
+++ b/src/main/java/org/terasologylauncher/util/ImageUtils.java
@@ -1,163 +1,163 @@
/*
* Cop... | true | true | private static final void convolve(final Kernel kernel, final int[] in, final int[] out, final int width,
final int height) {
final float[] matrix = kernel.getKernelData(null);
final int cols = kernel.getWidth();
final int halfCols = cols / 2;
... | private static void convolve(final Kernel kernel, final int[] in, final int[] out, final int width,
final int height) {
final float[] matrix = kernel.getKernelData(null);
final int cols = kernel.getWidth();
final int halfCols = cols / 2;
for (i... |
diff --git a/geronimo-saaj_1.3_spec/src/main/java/javax/xml/soap/SOAPFactory.java b/geronimo-saaj_1.3_spec/src/main/java/javax/xml/soap/SOAPFactory.java
index 681cdfef..c1094eb1 100644
--- a/geronimo-saaj_1.3_spec/src/main/java/javax/xml/soap/SOAPFactory.java
+++ b/geronimo-saaj_1.3_spec/src/main/java/javax/xml/soap/SO... | true | true | public static SOAPFactory newInstance() throws SOAPException {
try {
return (SOAPFactory)FactoryFinder.find(SOAPFactory.class, null);
if (factory == null) {
factory = newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
}
return factory;
} cat... | public static SOAPFactory newInstance() throws SOAPException {
try {
SOAPFactory factory = (SOAPFactory)FactoryFinder.find(SOAPFactory.class, null);
if (factory == null) {
factory = newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
}
return factory... |
diff --git a/src/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
index ec0e914a3..6657524ec 100644
--- a/src/org/apache/fop/fo/flow/InstreamForeignObject.java
+++ b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
@@ -1,329 +1,333 @@
/*
* $Id$
* Copyri... | true | true | protected InlineArea getInlineArea() {
if (children == null) {
return areaCurrent;
}
if (this.children.size() != 1) {
// error
return null;
}
FONode fo = (FONode)children.get(0);
if(!(fo instanceof XMLObj)) {
// error
... | protected InlineArea getInlineArea() {
if (children == null) {
return areaCurrent;
}
if (this.children.size() != 1) {
// error
return null;
}
FONode fo = (FONode)children.get(0);
if(!(fo instanceof XMLObj)) {
// error
... |
diff --git a/src/main/java/gov/nysenate/billbuzz/scripts/UpdateSenators.java b/src/main/java/gov/nysenate/billbuzz/scripts/UpdateSenators.java
index 3b5a676..882794f 100644
--- a/src/main/java/gov/nysenate/billbuzz/scripts/UpdateSenators.java
+++ b/src/main/java/gov/nysenate/billbuzz/scripts/UpdateSenators.java
@@ -1,7... | true | true | public void execute(CommandLine opts) throws IOException, SQLException
{
BillBuzzDAO dao = new BillBuzzDAO();
int session = dao.getSession();
Response response = Request.Get("http://open.nysenate.gov/legislation/senators/"+session+".json").execute();
JsonNode root = new ObjectMa... | public void execute(CommandLine opts) throws IOException, SQLException
{
BillBuzzDAO dao = new BillBuzzDAO();
int session = dao.getSession();
Response response = Request.Get("http://open.nysenate.gov/legislation/senators/"+session+".json").execute();
JsonNode root = new ObjectMa... |
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/LoaderTask.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/LoaderTask.java
index de436b065..a384612aa 100644
--- a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/LoaderTask.java
+++ b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/LoaderTask.java
@@ -1,165 +1,165 @@... | false | true | public void start() {
Thread thread = new Thread(new Runnable() {
public void run() {
if(getRunMode() == TaskRunMode.CONTINUE && TaskStage.DONE.equals(currentStage)) {
taskMan.notifyTaskFinished(LoaderTask.this);
return;
}
... | public void start() {
Thread thread = new Thread(new Runnable() {
public void run() {
if(getRunMode() == TaskRunMode.CONTINUE && TaskStage.DONE.equals(currentStage)) {
taskMan.notifyTaskFinished(LoaderTask.this);
return;
}
... |
diff --git a/src/generator/Fragmentizer.java b/src/generator/Fragmentizer.java
index d8493af..5b689fa 100644
--- a/src/generator/Fragmentizer.java
+++ b/src/generator/Fragmentizer.java
@@ -1,144 +1,144 @@
package generator;
import java.util.*;
import assembly.Fragment;
import assembly.FragmentPositionSource;
p... | false | true | public static List<List<Fragment>> groupByLine(List<Fragment> fragments, FragmentPositionSource source)
{
List<List<Fragment>> groupedList = new LinkedList<List<Fragment>>();
Set<Fragment> fragmentSet = new HashSet<Fragment>(fragments);
fragmentSet.addAll(fragments);
while (!fragmentSet.isEmpty())
{
Set<... | public static List<List<Fragment>> groupByLine(List<Fragment> fragments, FragmentPositionSource source)
{
List<List<Fragment>> groupedList = new LinkedList<List<Fragment>>();
Set<Fragment> fragmentSet = new HashSet<Fragment>(fragments);
fragmentSet.addAll(fragments);
while (!fragmentSet.isEmpty())
{
Set<... |
diff --git a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/wizard/importvariables/presenter/ImportVariablesStepPresenter.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/wizard/importvariables/presenter/ImportVariablesStepPresenter.java
index 62cee5b76..9c384796f 100644
--- a/opa... | true | true | public <T extends JavaScriptObject> void addResourceRequest(String resourceName, ResourceRequestBuilder<T> requestBuilder) {
ResourceRequestPresenter<T> resourceRequestPresenter = new ResourceRequestPresenter<T>(new ResourceRequestView(), eventBus, requestBuilder, new ImportVariablesResponseCodeCallback());
r... | public <T extends JavaScriptObject> void addResourceRequest(String resourceName, ResourceRequestBuilder<T> requestBuilder) {
ResourceRequestPresenter<T> resourceRequestPresenter = new ResourceRequestPresenter<T>(new ResourceRequestView(), eventBus, requestBuilder, new ImportVariablesResponseCodeCallback());
r... |
diff --git a/lib/java/src/org/apache/thrift/transport/TTransport.java b/lib/java/src/org/apache/thrift/transport/TTransport.java
index 378efdc3..c4086ba2 100644
--- a/lib/java/src/org/apache/thrift/transport/TTransport.java
+++ b/lib/java/src/org/apache/thrift/transport/TTransport.java
@@ -1,154 +1,159 @@
/*
* Licen... | true | true | public int readAll(byte[] buf, int off, int len)
throws TTransportException {
int got = 0;
int ret = 0;
while (got < len) {
ret = read(buf, off+got, len-got);
if (ret <= 0) {
throw new TTransportException("Cannot read. Remote side has closed. Tried to read " + len + " bytes, but on... | public int readAll(byte[] buf, int off, int len)
throws TTransportException {
int got = 0;
int ret = 0;
while (got < len) {
ret = read(buf, off+got, len-got);
if (ret <= 0) {
throw new TTransportException(
"Cannot read. Remote side has closed. Tried to read "
... |
diff --git a/code/src/at/photoselector/ui/ControlsDialog.java b/code/src/at/photoselector/ui/ControlsDialog.java
index 6cc7007..94dbaa0 100644
--- a/code/src/at/photoselector/ui/ControlsDialog.java
+++ b/code/src/at/photoselector/ui/ControlsDialog.java
@@ -1,183 +1,183 @@
package at.photoselector.ui;
import org.ecl... | true | true | protected Control createContents(final Composite parent) {
// create other windows
final Display display = getShell().getDisplay();
stagesDialog = new StagesDialog(new Shell(display), this);
display.asyncExec(stagesDialog);
drawerDialog = new DrawerDialog(new Shell(display), this);
display.asyncExec(drawe... | protected Control createContents(final Composite parent) {
// create other windows
final Display display = getShell().getDisplay();
stagesDialog = new StagesDialog(new Shell(display), this);
display.asyncExec(stagesDialog);
drawerDialog = new DrawerDialog(new Shell(display), this);
display.asyncExec(drawe... |
diff --git a/Card.java b/Card.java
index 9723d45..07ac3db 100644
--- a/Card.java
+++ b/Card.java
@@ -1,161 +1,162 @@
// Card.java
// Copyright (c) 2012 Andrew Downing
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ... | true | true | public static void loadImgs() throws FileNotFoundException {
// throw exception if back image file does not exist
if (!new File(BackImgPath).exists()) {
throw new FileNotFoundException("Could not find file \"" + BackImgPath + "\".\n"
+ "Make sure the card images wer... | public static void loadImgs() throws FileNotFoundException {
// throw exception if back image file does not exist
if (!new File(BackImgPath).exists()) {
throw new FileNotFoundException("Could not find file \"" + BackImgPath + "\".\n"
+ "Make sure you downloaded the ... |
diff --git a/org.intrace/src/org/intrace/client/gui/helper/InTraceUI.java b/org.intrace/src/org/intrace/client/gui/helper/InTraceUI.java
index 71fb6b7..40676e2 100644
--- a/org.intrace/src/org/intrace/client/gui/helper/InTraceUI.java
+++ b/org.intrace/src/org/intrace/client/gui/helper/InTraceUI.java
@@ -1,2034 +1,2034 ... | true | true | private TextOutputTab(Composite parent)
{
MigLayout windowLayout = new MigLayout("fill,wmin 0,hmin 0",
"[100][100][100][150][100][grow]", "[][][grow][]");
composite = new Composite(parent, SWT.NONE);
composite.setLayout(windowLayout);
Button saveText = new Button(composite, S... | private TextOutputTab(Composite parent)
{
MigLayout windowLayout = new MigLayout("fill,wmin 0,hmin 0",
"[100][100][100][150][100][grow]", "[][][grow][]");
composite = new Composite(parent, SWT.NONE);
composite.setLayout(windowLayout);
Button saveText = new Button(composite, S... |
diff --git a/src/uk/ac/cam/eoc21/populatingontologies/OntologyProcessor.java b/src/uk/ac/cam/eoc21/populatingontologies/OntologyProcessor.java
index b717136..61b9512 100644
--- a/src/uk/ac/cam/eoc21/populatingontologies/OntologyProcessor.java
+++ b/src/uk/ac/cam/eoc21/populatingontologies/OntologyProcessor.java
@@ -1,1... | true | true | public static Individual addInstance(final OntModel ontology,
final String nameSpace, final String owlClassName,
final String instanceName) {
OntClass owlClass = ontology.getOntClass(nameSpace + owlClassName);
Individual anIndividual = ontology.createIndividual(nameSpace
+ instanceName, owlClass);
anIn... | public static Individual addInstance(final OntModel ontology,
final String nameSpace, final String owlClassName,
final String instanceName) {
OntClass owlClass = ontology.getOntClass(nameSpace + owlClassName);
Individual anIndividual = ontology.createIndividual(nameSpace
+ instanceName, owlClass);
// an... |
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/filehistory/CVSFileHistory.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/filehistory/CVSFileHistory.java
index 3619cca04..5de566bc6 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/tea... | true | true | public boolean refresh(IProgressMonitor monitor) throws TeamException {
if (refetchRevisions) {
monitor.beginTask(NLS.bind(CVSMessages.CVSFileHistory_0, cvsFile.getRepositoryRelativePath()), 300);
try {
ILogEntry[] entries = cvsFile.getLogEntries(new SubProgressMonitor(monitor, 200));
if (entries.... | public boolean refresh(IProgressMonitor monitor) throws TeamException {
if (refetchRevisions) {
monitor.beginTask(NLS.bind(CVSMessages.CVSFileHistory_0, cvsFile.getRepositoryRelativePath()), 300);
try {
ILogEntry[] entries = cvsFile.getLogEntries(new SubProgressMonitor(monitor, 200));
if (entries.... |
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/gateways/transports/TransportUtils.java b/src/java/org/jivesoftware/sparkimpl/plugin/gateways/transports/TransportUtils.java
index 00bbbfe6..5ef3f21b 100644
--- a/src/java/org/jivesoftware/sparkimpl/plugin/gateways/transports/TransportUtils.java
+++ b/src/java/org... | true | true | public static void registerUser(XMPPConnection con, String gatewayDomain, String username, String password, String nickname) throws XMPPException {
Registration registration = new Registration();
registration.setType(IQ.Type.SET);
registration.setTo(gatewayDomain);
registration.addEx... | public static void registerUser(XMPPConnection con, String gatewayDomain, String username, String password, String nickname) throws XMPPException {
Registration registration = new Registration();
registration.setType(IQ.Type.SET);
registration.setTo(gatewayDomain);
registration.addEx... |
diff --git a/src/org/jovislab/tools/hadoop/hadoopgrams/HadoopGrams.java b/src/org/jovislab/tools/hadoop/hadoopgrams/HadoopGrams.java
index 7906f93..b802479 100644
--- a/src/org/jovislab/tools/hadoop/hadoopgrams/HadoopGrams.java
+++ b/src/org/jovislab/tools/hadoop/hadoopgrams/HadoopGrams.java
@@ -1,54 +1,53 @@
package ... | true | true | public int run(String[] args) throws Exception {
if (args.length < 3) {
System.out
.println("Usage: bin/hadoop jar HadoopGrams.jar org.jovislab.tools.hadoop.hadoopgrams.HadoopGrams <input_file> <output_file> <n> [<filter_class>] [<combiner_threshold>] [<reducer_threshold>]");
return -1;
}
Job job = n... | public int run(String[] args) throws Exception {
if (args.length < 3) {
System.out.println("Usage: bin/hadoop jar HadoopGrams.jar org.jovislab.tools.hadoop.hadoopgrams.HadoopGrams <input_file> <output_file> <n> [<filter_class>] [<combiner_threshold>] [<reducer_threshold>]");
return -1;
}
Job job = new Job... |
diff --git a/karaf/gshell/gshell-osgi/src/main/java/org/apache/felix/karaf/gshell/osgi/ListBundles.java b/karaf/gshell/gshell-osgi/src/main/java/org/apache/felix/karaf/gshell/osgi/ListBundles.java
index 9722120be..5c6996247 100644
--- a/karaf/gshell/gshell-osgi/src/main/java/org/apache/felix/karaf/gshell/osgi/ListBundl... | true | true | protected Object doExecute() throws Exception {
ServiceReference ref = getBundleContext().getServiceReference(StartLevel.class.getName());
StartLevel sl = null;
if (ref != null) {
sl = (StartLevel) getBundleContext().getService(ref);
}
if (sl == null) {
... | protected Object doExecute() throws Exception {
ServiceReference ref = getBundleContext().getServiceReference(StartLevel.class.getName());
StartLevel sl = null;
if (ref != null) {
sl = (StartLevel) getBundleContext().getService(ref);
}
if (sl == null) {
... |
diff --git a/util/src/ibis/util/Postpone.java b/util/src/ibis/util/Postpone.java
index 65d3ebfc..4ef2b5f6 100644
--- a/util/src/ibis/util/Postpone.java
+++ b/util/src/ibis/util/Postpone.java
@@ -1,121 +1,118 @@
/* $Id$ */
package ibis.util;
import java.io.FileOutputStream;
import java.io.PrintStream;
import ja... | false | true | public static void main(String[] args) {
if (args.length < 2) {
System.err.println("Usage: java ibis.util.Postpone "
+ "[ -o <outputfile> ] <seconds> <main class> ...");
System.exit(1);
}
int count = Integer.parseInt(args[0]);
int argsbase... | public static void main(String[] args) {
if (args.length < 2) {
System.err.println("Usage: java ibis.util.Postpone "
+ "[ -o <outputfile> ] <seconds> <main class> ...");
System.exit(1);
}
int count = Integer.parseInt(args[0]);
int argsbase... |
diff --git a/source/ch/cyberduck/ui/cocoa/ConnectionController.java b/source/ch/cyberduck/ui/cocoa/ConnectionController.java
index 4768f4dda..9e7bdd0ee 100644
--- a/source/ch/cyberduck/ui/cocoa/ConnectionController.java
+++ b/source/ch/cyberduck/ui/cocoa/ConnectionController.java
@@ -1,648 +1,647 @@
package ch.cyberdu... | true | true | public void protocolSelectionDidChange(final NSPopUpButton sender) {
log.debug("protocolSelectionDidChange:" + sender);
final Protocol protocol = Protocol.forName(protocolPopup.selectedItem().representedObject());
portField.setIntValue(protocol.getDefaultPort());
if(!protocol.isHostn... | public void protocolSelectionDidChange(final NSPopUpButton sender) {
log.debug("protocolSelectionDidChange:" + sender);
final Protocol protocol = Protocol.forName(protocolPopup.selectedItem().representedObject());
portField.setIntValue(protocol.getDefaultPort());
if(!protocol.isHostn... |
diff --git a/test/basicj/alpha1_3/MandelbrotSet.java b/test/basicj/alpha1_3/MandelbrotSet.java
index 7e723e2..c7c8413 100644
--- a/test/basicj/alpha1_3/MandelbrotSet.java
+++ b/test/basicj/alpha1_3/MandelbrotSet.java
@@ -1,56 +1,56 @@
package basicj.alpha1_3;
import basicj.BasicJ;
public class MandelbrotSet exte... | true | true | public MandelbrotSet() {
screen(676, 598);
autoFlush(0);
double xmax = 0.5;
double xmin = -2.1;
double ymax = 1.15;
double ymin = -1.15;
double dxw = (xmax - xmin)/width();
double dyh = (ymax - ymin)/height();
double ix = xmin;
... | public MandelbrotSet() {
screen(676, 598);
autoFlush(0);
double xmax = 0.5;
double xmin = -2.1;
double ymax = 1.15;
double ymin = -1.15;
double dxw = (xmax - xmin)/width();
double dyh = (ymax - ymin)/height();
double ix = xmin;
... |
diff --git a/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.java b/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.java
index 1f66a063..e23a5a63 100644
--- a/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.java
+++ b/xjc/src/com/sun/tools/xjc/reader/xmlschema/RawTypeSetBuilder.ja... | true | true | protected RawTypeSet.Mode canBeType(RawTypeSet parent) {
// if element substitution can occur, no way it can be mapped to a list of types
if(decl.getSubstitutables().size()>1)
return RawTypeSet.Mode.MUST_BE_REFERENCE;
// BIXSubstitutable also simulates this ef... | protected RawTypeSet.Mode canBeType(RawTypeSet parent) {
// if element substitution can occur, no way it can be mapped to a list of types
if(decl.getSubstitutables().size()>1)
return RawTypeSet.Mode.MUST_BE_REFERENCE;
// BIXSubstitutable also simulates this ef... |
diff --git a/code/src/com/kpro/main/Gio.java b/code/src/com/kpro/main/Gio.java
index 889a34c..498003f 100644
--- a/code/src/com/kpro/main/Gio.java
+++ b/code/src/com/kpro/main/Gio.java
@@ -1,638 +1,638 @@
package com.kpro.main;
import java.io.File; //for configuration file functionality
import java.io.FileInputS... | false | true | private void loadCLO(String[] args)
{
Options options = new Options();
// System.err.println(genProps);
String[][] clolist=
{
{"genConfig","true","general configuration file location"},
{"inWeightsLoc", "true", "input weights configuration file location"},
{"inDBLoc", "true", "input database fi... | private void loadCLO(String[] args)
{
Options options = new Options();
String[][] clolist=
{
//{"variable/optionname", "has an arguement"- "true"/"false", "description"},
{"genConfig","true","general configuration file location"},
{"inWeightsLoc", "true", "input weights configuration file locati... |
diff --git a/GameHandler.java b/GameHandler.java
index 49fc905..97b02c7 100644
--- a/GameHandler.java
+++ b/GameHandler.java
@@ -1,155 +1,156 @@
/* GameHandler
Associates two UserInfo (players) with a Game instance, and handles things like whose
turn it is, the performance of moves, and broadcasting of the game'... | false | true | private void promptTurn()
{
UserInfo curr;
String packet;
curr = players[turnIndex];
String[] tokens;
int x;
int y;
curr.sendMessage(prtcl.makePacket("Please enter a move", "message"));
packet = curr.getMessage();
if(prtcl.getCommand().equals("HELP"))
{
//curr.sendMessage(prtcl.makePac... | private void promptTurn()
{
UserInfo curr;
String packet;
curr = players[turnIndex];
String[] tokens;
int x;
int y;
curr.sendMessage(prtcl.makePacket("Please enter a move", "message"));
packet = curr.getMessage();
if(prtcl.getCommand(packet).equals("HELP"))
{
//curr.sendMessage(prtcl.m... |
diff --git a/src/test/java/SimpleTest.java b/src/test/java/SimpleTest.java
index bd7507d..c97e1fa 100644
--- a/src/test/java/SimpleTest.java
+++ b/src/test/java/SimpleTest.java
@@ -1,11 +1,11 @@
import junit.framework.Assert;
import org.testng.annotations.Test;
public class SimpleTest {
@Test
public void a... | true | true | public void alwaysTrue() {
Assert.assertTrue(false);
}
| public void alwaysTrue() {
Assert.assertTrue(true);
}
|
diff --git a/src/opennlp/ccg/test/Regression.java b/src/opennlp/ccg/test/Regression.java
index 4c02aee..9a47fef 100644
--- a/src/opennlp/ccg/test/Regression.java
+++ b/src/opennlp/ccg/test/Regression.java
@@ -1,1890 +1,1890 @@
///////////////////////////////////////////////////////////////////////////////
// Copyrigh... | false | true | private void runSingleTest(File regressionFile) throws IOException {
String testName = regressionFile.getName();
int lastDot = testName.lastIndexOf('.');
if (lastDot > 0) testName = testName.substring(0, lastDot);
// load testfile
System.out.println("Loading: " + testName);
... | private void runSingleTest(File regressionFile) throws IOException {
String testName = regressionFile.getName();
int lastDot = testName.lastIndexOf('.');
if (lastDot > 0) testName = testName.substring(0, lastDot);
// load testfile
System.out.println("Loading: " + testName);
... |
diff --git a/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java b/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java
index 9135343516f..58b0d056223 100644
--- a/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java
+++ b/src/main/java/org/elasti... | true | true | public Aggregator[] createSubAggregators(Aggregator parent, final long estimatedBucketsCount) {
Aggregator[] aggregators = new Aggregator[count()];
for (int i = 0; i < factories.length; ++i) {
final AggregatorFactory factory = factories[i];
final Aggregator first = createAndR... | public Aggregator[] createSubAggregators(Aggregator parent, final long estimatedBucketsCount) {
Aggregator[] aggregators = new Aggregator[count()];
for (int i = 0; i < factories.length; ++i) {
final AggregatorFactory factory = factories[i];
final Aggregator first = createAndR... |
diff --git a/src/main/java/se/DMarby/Pets/Pets.java b/src/main/java/se/DMarby/Pets/Pets.java
index 4096cfb..5c799d5 100755
--- a/src/main/java/se/DMarby/Pets/Pets.java
+++ b/src/main/java/se/DMarby/Pets/Pets.java
@@ -1,359 +1,359 @@
package se.DMarby.Pets;
import com.google.common.base.Strings;
import org.bukkit.B... | false | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (!label.equalsIgnoreCase("pet")) {
return false;
}
if (args.length == 1) {
if (!sender.hasPermission("pet.toggle") && !sender.hasPermission("pet.admin")) {
... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (!label.equalsIgnoreCase("pet")) {
return false;
}
if (args.length == 1) {
if (!sender.hasPermission("pet.toggle") && !sender.hasPermission("pet.admin")) {
... |
diff --git a/src/main/java/net/canadensys/processor/datetime/DateIntervalProcessor.java b/src/main/java/net/canadensys/processor/datetime/DateIntervalProcessor.java
index 929e57f..21ffa1a 100644
--- a/src/main/java/net/canadensys/processor/datetime/DateIntervalProcessor.java
+++ b/src/main/java/net/canadensys/processor... | true | true | public String[] process(String dateIntervalText, ProcessingResult result){
String[] output = new String[2];
if(StringUtils.isBlank(dateIntervalText)){
return output;
}
dateIntervalText = dateIntervalText.trim();
Matcher m = DATE_INTERVAL_SEPARATOR_PATTERN.matcher(dateIntervalText);
StringBuilder separat... | public String[] process(String dateIntervalText, ProcessingResult result){
String[] output = new String[2];
if(StringUtils.isBlank(dateIntervalText)){
return output;
}
dateIntervalText = dateIntervalText.trim();
Matcher m = DATE_INTERVAL_SEPARATOR_PATTERN.matcher(dateIntervalText);
StringBuilder separat... |
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/gateway/IndexShardGatewayService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/gateway/IndexShardGatewayService.java
index 06e079905ce..f40385a5246 100644
--- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/gatew... | true | true | public void recover(final RecoveryListener listener) throws IndexShardGatewayRecoveryException, IgnoreGatewayRecoveryException {
if (indexShard.state() == IndexShardState.CLOSED) {
// got closed on us, just ignore this recovery
listener.onIgnoreRecovery("shard closed");
r... | public void recover(final RecoveryListener listener) throws IndexShardGatewayRecoveryException, IgnoreGatewayRecoveryException {
if (indexShard.state() == IndexShardState.CLOSED) {
// got closed on us, just ignore this recovery
listener.onIgnoreRecovery("shard closed");
r... |
diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java
index 5edf6b826..612f2d38d 100644
--- a/core/src/processing/core/PGraphics.java
+++ b/core/src/processing/core/PGraphics.java
@@ -1,7882 +1,7882 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
... | true | true | public void text(char[] chars, int start, int stop, float x, float y) {
// If multiple lines, sum the height of the additional lines
float high = 0; //-textAscent();
for (int i = start; i < stop; i++) {
if (chars[i] == '\n') {
high += textLeading;
}
}
if (textAlignY == CENTER) ... | public void text(char[] chars, int start, int stop, float x, float y) {
// If multiple lines, sum the height of the additional lines
float high = 0; //-textAscent();
for (int i = start; i < stop; i++) {
if (chars[i] == '\n') {
high += textLeading;
}
}
if (textAlignY == CENTER) ... |
diff --git a/twitter4j-core/src/test/java/twitter4j/util/ImageUploadTest.java b/twitter4j-core/src/test/java/twitter4j/util/ImageUploadTest.java
index dd3c3488..c63cd61d 100644
--- a/twitter4j-core/src/test/java/twitter4j/util/ImageUploadTest.java
+++ b/twitter4j-core/src/test/java/twitter4j/util/ImageUploadTest.java
@... | true | true | protected void setUp() throws Exception {
super.setUp();
screenName = p.getProperty("id1");
oauthAuthorization = new OAuthAuthorization(
ConfigurationContext.getInstance()
, p.getProperty("browserConsumerKey")
, p.getProperty("browserConsumerSe... | protected void setUp() throws Exception {
super.setUp();
screenName = p.getProperty("id1");
oauthAuthorization = new OAuthAuthorization(
ConfigurationContext.getInstance()
, p.getProperty("desktopConsumerKey")
, p.getProperty("desktopConsumerSe... |
diff --git a/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java b/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java
index f7f0c789..0a79a174 100644
--- a/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java
+++ b/DroidPlanner/src/com/droidplanner/widgets/HUD/HUDwidget.java
@@ -1,591 +1,595 ... | true | true | private void drawRightScroller(Canvas canvas) {
final float textHalfSize = ScrollerText.getTextSize() / 2 - 1;
// Outside box
RectF scroller = new RectF(width * 0.5f - width*SCROLLER_WIDTH_PERCENT, -height
* SCROLLER_HEIGHT_PERCENT, width * .50f, height
* SCROLLER_HEIGHT_PERCENT);
// Draw Vertical... | private void drawRightScroller(Canvas canvas) {
final float textHalfSize = ScrollerText.getTextSize() / 2 - 1;
// Outside box
RectF scroller = new RectF(width * 0.5f - width*SCROLLER_WIDTH_PERCENT, -height
* SCROLLER_HEIGHT_PERCENT, width * .50f, height
* SCROLLER_HEIGHT_PERCENT);
// Draw Vertical... |
diff --git a/Plan/src/uk/co/jwlawson/plan/activities/PegViewActivity.java b/Plan/src/uk/co/jwlawson/plan/activities/PegViewActivity.java
index e6012de..d6e2598 100644
--- a/Plan/src/uk/co/jwlawson/plan/activities/PegViewActivity.java
+++ b/Plan/src/uk/co/jwlawson/plan/activities/PegViewActivity.java
@@ -1,131 +1,131 @@... | false | true | private void done() {
ArrayList<Line> lineList = new ArrayList<Line>(mPegView.getLineList());
if (lineList.isEmpty()) {
Toast.makeText(getApplicationContext(), "No walls added", Toast.LENGTH_SHORT).show();
return;
}
ArrayList<PointF> pointList = new ArrayList<PointF>();
Line l1 = lineList.get(0);
... | private void done() {
ArrayList<Line> lineList = new ArrayList<Line>(mPegView.getLineList());
if (lineList.isEmpty()) {
Toast.makeText(getApplicationContext(), "No walls added", Toast.LENGTH_SHORT).show();
return;
}
ArrayList<PointF> pointList = new ArrayList<PointF>();
Line l1 = lineList.get(0);
... |
diff --git a/parser/src/main/java/org/apache/abdera/parser/stax/FOMFeed.java b/parser/src/main/java/org/apache/abdera/parser/stax/FOMFeed.java
index 69584d13..7a6c01a7 100644
--- a/parser/src/main/java/org/apache/abdera/parser/stax/FOMFeed.java
+++ b/parser/src/main/java/org/apache/abdera/parser/stax/FOMFeed.java
@@ -1... | false | true | public Source getAsSource() {
FOMSource source = (FOMSource) ((FOMFactory)factory).newSource(null);
OMElement _source = source;
for (Iterator i = this.getChildElements(); i.hasNext();) {
OMElement _child = (OMElement) i.next();
if (!_child.getQName().equals(ENTRY)) {
_source.addChild(_... | public Source getAsSource() {
FOMSource source = (FOMSource) ((FOMFactory)factory).newSource(null);
for (Iterator i = this.getChildElements(); i.hasNext();) {
FOMElement child = (FOMElement)i.next();
if (!child.getQName().equals(ENTRY)) {
source.addChild((OMNode)child.clone());
}
... |
diff --git a/src/com/aokp/backup/RestoreFragment.java b/src/com/aokp/backup/RestoreFragment.java
index 5844b05..9b9e3ec 100644
--- a/src/com/aokp/backup/RestoreFragment.java
+++ b/src/com/aokp/backup/RestoreFragment.java
@@ -1,363 +1,361 @@
/*
* Copyright (C) 2012 Roman Birg
*
* Licensed under the Apache License... | true | true | public Dialog onCreateDialog(Bundle savedInstanceState) {
backupDir = Tools.getBackupDirectory(getActivity());
// This filter only returns directories
FileFilter fileFilter = new FileFilter() {
public boolean accept(File file) {
return fil... | public Dialog onCreateDialog(Bundle savedInstanceState) {
backupDir = Tools.getBackupDirectory(getActivity());
// This filter only returns directories
FileFilter fileFilter = new FileFilter() {
public boolean accept(File file) {
return fil... |
diff --git a/src/minecraft/co/uk/flansmods/client/TickHandlerClient.java b/src/minecraft/co/uk/flansmods/client/TickHandlerClient.java
index b8fa9091..d5a59f5a 100644
--- a/src/minecraft/co/uk/flansmods/client/TickHandlerClient.java
+++ b/src/minecraft/co/uk/flansmods/client/TickHandlerClient.java
@@ -1,244 +1,246 @@
... | false | true | public void rTickEnd(Minecraft mc)
{
if (FlansModClient.zoomOverlay != null && FMLClientHandler.instance().getClient().currentScreen == null)
{
ScaledResolution scaledresolution = new ScaledResolution(FlansModClient.minecraft.gameSettings, FlansModClient.minecraft.displayWidth, FlansModClient.minecraft.display... | public void rTickEnd(Minecraft mc)
{
if (FlansModClient.zoomOverlay != null && FMLClientHandler.instance().getClient().currentScreen == null)
{
ScaledResolution scaledresolution = new ScaledResolution(FlansModClient.minecraft.gameSettings, FlansModClient.minecraft.displayWidth, FlansModClient.minecraft.display... |
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FakeSelfEditController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FakeSelfEditController.java
index 4133d6fcf..ced418b36 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FakeSelfEditController.java
+++ b/webapp/src... | true | true | public void doGet( HttpServletRequest request, HttpServletResponse response )
throws IOException, ServletException {
// if (!checkLoginStatus(request, response)) {
// return;
// }
String redirectUrl = null;
String netid = null;
String ms... | public void doGet( HttpServletRequest request, HttpServletResponse response )
throws IOException, ServletException {
// if (!checkLoginStatus(request, response)) {
// return;
// }
String redirectUrl = null;
String netid = null;
String ms... |
diff --git a/java/client/org/apache/derby/client/am/Lob.java b/java/client/org/apache/derby/client/am/Lob.java
index e4aa4f84c..60aeaac33 100644
--- a/java/client/org/apache/derby/client/am/Lob.java
+++ b/java/client/org/apache/derby/client/am/Lob.java
@@ -1,404 +1,404 @@
/*
Derby - Class org.apache.derby.client... | true | true | protected InputStream materializeStream(InputStream is, String typeDesc)
throws SqlException {
final int GROWBY = 32 * 1024; // 32 KB
ArrayList byteArrays = new ArrayList();
byte[] curBytes = new byte[GROWBY];
int totalLength = 0;
int partLength = 0;
// Re... | protected InputStream materializeStream(InputStream is, String typeDesc)
throws SqlException {
final int GROWBY = 32 * 1024; // 32 KB
ArrayList byteArrays = new ArrayList();
byte[] curBytes = new byte[GROWBY];
int totalLength = 0;
int partLength = 0;
// Re... |
diff --git a/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java b/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java
index 3022e6d6a..8ac2fae1d 100644
--- a/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java
+++ b/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java
@@ ... | true | true | public static void main(String[] args) throws IOException {
if (args.length == 0 || (args.length == 1 && (args[0].startsWith("-h") || args[0].startsWith("--h")))) {
System.out.println("Usage: CMUTests <config-xml-file> *[<[component>->]<parameter>=<value>]");
System.out.println("Exam... | public static void main(String[] args) throws IOException {
if (args.length == 0 || (args.length == 1 && (args[0].startsWith("-h") || args[0].startsWith("--h")))) {
System.out.println("Usage: CMUTests <config-xml-file> *([[<component>->]<parameter>=<value>] )");
System.out.println("E... |
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
index cf10d6a7d2..3c86b9e99d 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
+++ b/lucene/core/src/test/org/apac... | true | true | public void testAddIndexOnDiskFull() throws IOException
{
// MemoryCodec, since it uses FST, is not necessarily
// "additive", ie if you add up N small FSTs, then merge
// them, the merged result can easily be larger than the
// sum because the merged FST may use array encoding for
// some arcs ... | public void testAddIndexOnDiskFull() throws IOException
{
// MemoryCodec, since it uses FST, is not necessarily
// "additive", ie if you add up N small FSTs, then merge
// them, the merged result can easily be larger than the
// sum because the merged FST may use array encoding for
// some arcs ... |
diff --git a/ngrinder-controller/src/main/java/org/ngrinder/perftest/service/samplinglistener/AgentDieHardListener.java b/ngrinder-controller/src/main/java/org/ngrinder/perftest/service/samplinglistener/AgentDieHardListener.java
index 09dc5ccb..b48a6327 100644
--- a/ngrinder-controller/src/main/java/org/ngrinder/perfte... | true | true | public void run() {
for (AgentStatus agentStates : agentManager.getAgentStatusSetConnectingToPort(singleConsole.getConsolePort())) {
SystemDataModel systemDataModel = agentStates.getSystemDataModel();
if (systemDataModel != null) {
// If the memory is available less than 2%.
double freeMemoryRatio = ((... | public void run() {
for (AgentStatus agentStates : agentManager.getAgentStatusSetConnectingToPort(singleConsole.getConsolePort())) {
SystemDataModel systemDataModel = agentStates.getSystemDataModel();
if (systemDataModel != null) {
// If the memory is available less than 2%.
double freeMemoryRatio = ((... |
diff --git a/src/gov/nysenate/inventory/android/Pickup1.java b/src/gov/nysenate/inventory/android/Pickup1.java
index 3a243c1..0895e08 100644
--- a/src/gov/nysenate/inventory/android/Pickup1.java
+++ b/src/gov/nysenate/inventory/android/Pickup1.java
@@ -1,571 +1,571 @@
package gov.nysenate.inventory.android;
import ... | false | true | public void continueButton(View view) {
// For testing...
// SessionManager.getSessionManager().checkServerResponse(true) == OK
if (checkServerResponse(true) == OK) {
int duration = Toast.LENGTH_SHORT;
String currentFromLocation = this.originLocationTV.getText()
... | public void continueButton(View view) {
// For testing...
// SessionManager.getSessionManager().checkServerResponse(true) == OK
if (checkServerResponse(true) == OK) {
int duration = Toast.LENGTH_SHORT;
String currentFromLocation = this.originLocationTV.getText()
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.