Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Hi! We cleaned up your code for you! #26

Closed
wants to merge 1 commit into from

1 participant

@GunioRobot

Hi there!

This is WhitespaceBot from Gun.io. I'm an open-source robot that removes trailing white space in your code, and gives you a gitignore file if you didn't have one! I've only cleaned your most popular project, and I've added you to a list of users not to contact again, so you won't get any more pull requests from me unless you ask. If I'm misbehaving, please email my owner and tell him to turn me off!

== About Gun.io ==
Gun.io is a place for hackers to hire each other for small tasks. We offer no-hassle, winner-take-all freelance gigs, by hackers, for hackers. Got a bug you can't fix or a feature you want for your project? Post a gig and have somebody else sort it out for you. Oh, and it's free for open source! Sign up and get notified about new gigs you can work on!

== About WhitespaceBot==
WhitespaceBot is a simple open source robot which uses GitHub's API as a way of cleaning up open source projects! We've put up a paid bounty for whoever can add security fixing features to it.

@ge0rg ge0rg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 21, 2011
  1. Remove whitespace [Gun.io WhitespaceBot]

    Gun.io Whitespace Robot authored
This page is out of date. Refresh to see the latest.
View
2  build.properties
@@ -1,5 +1,5 @@
# This file is used to override default values used by the Ant build system.
-#
+#
# This file must be checked in Version Control Systems, as it is
# integral to the build system of your project.
View
4 default.properties
@@ -1,8 +1,8 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
+#
# This file must be checked in Version Control Systems.
-#
+#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.
View
2  src/AprsPacket.scala
@@ -23,7 +23,7 @@ object AprsPacket {
case _ => (passcode(callssid).toString() == pass)
}
}
-
+
def formatCallSsid(callsign : String, ssid : String) : String = {
if (ssid != null && ssid != "")
View
4 src/AprsService.scala
@@ -135,9 +135,9 @@ class AprsService extends Service with LocationListener {
}
override def onBind(i : Intent) : IBinder = null
-
+
override def onUnbind(i : Intent) : Boolean = false
-
+
def showToast(msg : String) {
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show()
addPost(StorageDatabase.Post.TYPE_INFO, null, msg)
View
2  src/MessageActivity.scala
@@ -18,7 +18,7 @@ class MessageActivity extends LoadingListActivity
lazy val targetcall = getIntent().getDataString()
lazy val storage = StorageDatabase.open(this)
-
+
lazy val mycall = prefs.getCallSsid()
lazy val pla = new MessageListAdapter(this, prefs, mycall, targetcall)
View
2  src/MessageService.scala
@@ -39,7 +39,7 @@ class MessageService(s : AprsService) {
s.addPost(StorageDatabase.Post.TYPE_POST, status, ack.toString)
}
if (is_new)
- ServiceNotifier.instance.notifyMessage(s, s.prefs,
+ ServiceNotifier.instance.notifyMessage(s, s.prefs,
ap.getSourceCall(), msg.getMessageBody())
}
s.sendBroadcast(new Intent(AprsService.MESSAGE).putExtra(AprsService.STATUS, ap.toString))
View
4 src/PrefsWrapper.scala
@@ -5,7 +5,7 @@ import _root_.android.preference.PreferenceManager
class PrefsWrapper(val context : Context) {
val prefs = PreferenceManager.getDefaultSharedPreferences(context)
-
+
// wrap the "dumb" methods
def getString(key : String, defValue : String) = prefs.getString(key, defValue)
def getBoolean(key : String, defValue : Boolean) = prefs.getBoolean(key, defValue)
@@ -35,7 +35,7 @@ class PrefsWrapper(val context : Context) {
def getShowSatellite() = prefs.getBoolean("show_satellite", false)
def getShowAge() = getStringInt("show_age", 30)*60L*1000
-
+
// this is actually a hack!
def getVersion() = context.getString(R.string.build_version).split(" ").take(2).mkString(" ")
View
2  src/StationActivity.scala
@@ -16,7 +16,7 @@ class StationActivity extends LoadingListActivity
lazy val storage = StorageDatabase.open(this)
lazy val postlist = findViewById(R.id.postlist).asInstanceOf[ListView]
-
+
lazy val mycall = prefs.getCallSsid()
lazy val pla = new StationListAdapter(this, prefs, mycall, targetcall, StationListAdapter.SSIDS)
lazy val la = new PostListAdapter(this)
View
6 src/UIHelper.scala
@@ -12,7 +12,7 @@ import _root_.android.widget.{EditText, Toast}
trait UIHelper extends Activity
with LoadingIndicator
- with DialogInterface.OnClickListener
+ with DialogInterface.OnClickListener
with DialogInterface.OnCancelListener {
var menu_id : Int = -1
@@ -77,7 +77,7 @@ trait UIHelper extends Activity
def saveFirstRun(call : String, passcode : String) {
val pe = prefs.prefs.edit()
call.split("-") match {
- case Array(callsign) =>
+ case Array(callsign) =>
pe.putString("callsign", callsign)
case Array(callsign, ssid) =>
pe.putString("callsign", callsign)
@@ -258,7 +258,7 @@ trait UIHelper extends Activity
case _ => false
}
}
-
+
abstract override def onCreateContextMenu(menu : ContextMenu, v : View,
menuInfo : ContextMenu.ContextMenuInfo) {
super.onCreateContextMenu(menu, v, menuInfo)
View
2  src/backend/AfskUploader.scala
@@ -11,7 +11,7 @@ class AfskUploader(prefs : PrefsWrapper) extends AprsIsUploader(prefs) {
var FrameLength = prefs.getStringInt("afsk.prefix", 1000)*1200/8/1000
var Digis = prefs.getString("digi_path", "WIDE1-1")
val output = new Afsk()
-
+
def start() {
}
View
2  src/backend/BluetoothTnc.scala
@@ -116,7 +116,7 @@ class BluetoothTnc(service : AprsService, prefs : PrefsWrapper) extends AprsIsUp
service.postSubmit(line)
}
} catch {
- case e : Exception =>
+ case e : Exception =>
e.printStackTrace()
log("Reconnecting in 3s...")
try {
Something went wrong with that request. Please try again.