This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.yieldmo.storm; | |
| import backtype.storm.Config | |
| import backtype.storm.LocalCluster | |
| import backtype.storm.StormSubmitter | |
| import backtype.storm.spout.Scheme | |
| import backtype.storm.tuple.Fields | |
| import backtype.storm.tuple.Values | |
| import com.yieldmo.common.kafka.KafkaConfigYieldmo | |
| import com.yieldmo.common.kafka.KafkaConfigYieldmo._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.yieldmo.storm.scheme | |
| import backtype.storm.spout.Scheme | |
| import backtype.storm.tuple.Fields | |
| import com.google.protobuf._ | |
| import collection.JavaConversions._ | |
| class ProtoScheme[T <: Message: ClassManifest](emittedField: String) extends Scheme { | |
| val serialVersionUID = 1L; | |
| @transient lazy val builder = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.yieldmo.storm.scheme | |
| import backtype.storm.spout.Scheme | |
| import backtype.storm.tuple.Fields | |
| import com.google.protobuf._ | |
| import collection.JavaConversions._ | |
| import java.lang.reflect.Modifier | |
| class ProtoScheme[T <: Message: ClassManifest](emittedField: String) extends Scheme { | |
| val serialVersionUID = 1L; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.yieldmo.tools | |
| import com.google.common.cache._ | |
| import com.yieldmo.common.DBUtil | |
| import com.yieldmo.storm.StateSaver | |
| import com.yieldmo.common.protobuf.Events._ | |
| import com.github.theon.uri.Uri._ | |
| import kafka.producer.ProducerConfig | |
| import scala.collection.JavaConversions._ | |
| import scala.io.Source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Routes | |
| # This file defines all application routes (Higher priority routes first) | |
| # ~~~~ | |
| GET / com.tuplejump.playYeoman.Yeoman.redirectRoot(base="/ui/") | |
| GET /ui/ com.tuplejump.playYeoman.Yeoman.index | |
| -> /ui yeoman.Routes | |
| #controllers | |
| GET /foo controllers.Application.index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package controllers | |
| import play.api._ | |
| import play.api.mvc._ | |
| object Application extends Controller { | |
| def index = Action { | |
| Ok("Your new application is ready.") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package controllers | |
| import play.api._ | |
| import play.api.mvc._ | |
| object Application extends Controller { | |
| def index = Action { | |
| Ok("Your new application is ready.") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object TopURLHelper { | |
| // expects a list of aggregates of type 'only' URL or RR | |
| // def combine(l: List[Aggregate]): Aggregate = { | |
| // val builder = Aggregate.newBuilder() | |
| // } | |
| def combine(l: List[Event]): List[Aggregate] = { | |
| val map = new HashMap[ByteString, Aggregate.Builder]() | |
| l.map { x => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.yieldmo.common.publisher; | |
| import com.google.common.cache._ | |
| import com.yieldmo.common.DBUtil | |
| import java.util.concurrent.TimeUnit | |
| import java.sql.Connection | |
| import anorm._ | |
| import anorm.SqlParser._ | |
| import resource._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| For all major modes: | |
| 111797 53.45% ensime-mouse-motion | |
| 22321 10.67% self-insert-command | |
| 19929 9.53% next-line | |
| 16250 7.77% previous-line | |
| 6111 2.92% forward-char | |
| 5132 2.45% backward-char | |
| 3289 1.57% ignore | |
| 1883 0.90% save-buffer |