- 123
- 213
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. | |
case class ComplexEntity(test: EntityType) | |
trait EntityType | |
object EntityType { | |
def fromString(value: String): EntityType = value match { | |
case "Account" => Account |
libraryDependencies ++= Seq( | |
"org.scalanlp" %% "scalanlp-learn" % "0.4.RC1" | |
, "org.scalala" %% "scalala" % "1.0.0.RC2" | |
) |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<properties> | |
<jetty-maven-plugin.version>8.1.1.v20120215</jetty-maven-plugin.version> | |
</properties> | |
<parent> |
import akka.actor.{Props, ActorRef, Actor, ActorSystem} | |
import TestActors._ | |
import com.typesafe.config.ConfigFactory | |
object MainServer extends App { | |
start(asServer = true) | |
} | |
object MainClient extends App { |
class NB { | |
var examples = List[(String, Iterable[String])]() | |
/** | |
* Put your code for adding information to your NB classifier here | |
*/ | |
def addExample(klass: String, words: Iterable[String]): Unit = { | |
examples ::=(klass, words) | |
} | |
def count[T, TT](i: Iterable[T])(pf: PartialFunction[T, (TT, Double)]) = |
import org.vaadin.navigator7.uri.ParamPageResource | |
import org.vaadin.navigator7.interceptor.PageInvocation | |
/** | |
*/ | |
class BaseController[M <: BaseModel] { | |
def application = SpringWebApplication.current | |
private[this] var _model: M = _ |
import org.specs2.mock.Mockito | |
import org.specs2.mutable.SpecificationWithJUnit | |
import org.specs2.mock.mockito.MockitoFunctions | |
class LearningTest extends SpecificationWithJUnit { | |
trait Logger { | |
def error(a: String, e: Throwable) | |
} |
object NeuroCon { | |
sealed trait StateName | |
object ReadyState extends StateName | |
object ProcState extends StateName | |
sealed trait StateData | |
case class ReadyData(net: ActorRef) extends StateData | |
case class ProcData(net: ActorRef, task: ActorRef, env: TaskEnv) extends StateData | |
} |
Getting net.java.dev.jna jna 3.2.3 ... | |
:: retrieving :: org.scala-sbt#boot-jna | |
confs: [default] | |
1 artifacts copied, 0 already retrieved (838kB/24ms) | |
Getting org.scala-sbt sbt 0.13.0-Beta2 ... | |
:: retrieving :: org.scala-sbt#boot-app | |
confs: [default] | |
44 artifacts copied, 0 already retrieved (12515kB/158ms) | |
Getting Scala 2.10.2-RC2 (for sbt)... | |
:: retrieving :: org.scala-sbt#boot-scala |