code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package org.tuubes.core.plugins /** * Trait that must be implemented by the companion object of each plugin's main class. It allows * Tuubes to access some plugin's information without creating an instance of that plugin. * * @see org.tuubes.core.plugins.PluginInfos * @see com.electronwill.macros.PluginMain * @a...
mcphoton/Photon-Server
core/src/main/scala/org/tuubes/core/plugins/PluginDescription.scala
Scala
lgpl-3.0
479
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
WindCanDie/spark
repl/src/main/scala-2.11/org/apache/spark/repl/SparkILoopInterpreter.scala
Scala
apache-2.0
9,557
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package controllers import features.{ApplicationFeatures, KMClusterManagerFeature} import kafka.manager.ApiError import kafka.manager.model._ import models.FollowLink import models.form._ import model...
patelh/kafka-manager
app/controllers/Cluster.scala
Scala
apache-2.0
15,728
/* * Copyright 2011-2019 Asakusa Framework Team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
ashigeru/asakusafw-spark
compiler/src/main/scala/com/asakusafw/spark/compiler/graph/AggregateInstantiator.scala
Scala
apache-2.0
2,796
/* * Copyright 2015 Nicolas Rinaudo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
nrinaudo/scala-csv
enumeratum/shared/src/test/scala/kantan/csv/enumeratum/EnumCodecTests.scala
Scala
mit
962
package onion.compiler.tools import onion.tools.Shell class ForeachSpec extends AbstractShellSpec { describe("Cat") { it("shows result of cat using foreach") { val resultCat = shell.run( """ |class Cat { |public: | static def main(args: String[]): String { ...
onionlang/onion
src/test/scala/onion/compiler/tools/ForeachSpec.scala
Scala
bsd-3-clause
771
// ================================================================================================= // Copyright 2012 Twitter, Inc. // ------------------------------------------------------------------------------------------------- // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use ...
imsut/commons
src/scala/com/twitter/common/example/JvmRunExample.scala
Scala
apache-2.0
1,291
package com.twitter.scrooge.backend import com.twitter.scrooge.ast.Document import com.twitter.scrooge.frontend.{ResolvedDocument, TypeResolver} import com.twitter.scrooge.mustache.HandlebarLoader import com.twitter.scrooge.testutil.Spec class TestGeneratorFactory extends GeneratorFactory { val language = "test" ...
benhoyt/scrooge
scrooge-generator/src/test/scala/com/twitter/scrooge/backend/GeneratorFactorySpec.scala
Scala
apache-2.0
897
package com.wbillingsley.handy.appbase trait IdentityT { val service:String val value:Option[String] val avatar:Option[String] val username:Option[String] val since:Long } object Identity { def defaultSince = System.currentTimeMillis } case class Identity ( service: String, valu...
wbillingsley/handy
handy-appbase-core/src/main/scala/com/wbillingsley/handy/appbase/Identity.scala
Scala
mit
698
package net.sansa_stack.inference.spark.backwardchaining.tree import org.apache.jena.reasoner.TriplePattern import org.apache.jena.reasoner.rulesys.Rule /** * @author Lorenz Buehmann */ class AndOrTree(val root: AndNode) { def depth: Unit = {} def size: Unit = {} override def toString: String = root.print...
SANSA-Stack/SANSA-RDF
sansa-inference/sansa-inference-spark/src/main/scala/net/sansa_stack/inference/spark/backwardchaining/tree/AndOrTree.scala
Scala
apache-2.0
1,049
package com.twitter.util import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import org.junit.runner.RunWith import scala.collection.mutable import java.util.concurrent.atomic.AtomicReference @RunWith(classOf[JUnitRunner]) class VarTest extends FunSuite { private case class U[T](init: T) extends Up...
mosesn/util
util-core/src/test/scala/com/twitter/util/VarTest.scala
Scala
apache-2.0
9,928
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
zzcclp/carbondata
integration/spark/src/main/scala/org/apache/spark/sql/CarbonCountStar.scala
Scala
apache-2.0
4,529
package shapiro.netfauxgo import akka.actor.ActorRef case class KillAgent(val killer:ActorRef, val target:ActorRef) case class AddAgent(val agent:ActorRef) case class MovePatches(val agent:ActorRef, val from:ActorRef, val to:ActorRef) case class AgentLeft(val agent:ActorRef) case class AgentEntered(val agent:Acto...
bennytheshap/Eierlegende_Wollmilchsau
src/main/scala/shapiro/netfauxgo/Messages.scala
Scala
gpl-3.0
627
/* * Copyright (C) 2009-2012 Johannes Rudolph and Mathias Doenitz * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
spray/sbt-revolver
src/main/scala/spray/revolver/AppProcess.scala
Scala
apache-2.0
2,017
/* * Copyright 2015 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
keithhall/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600/v3/B295.scala
Scala
apache-2.0
961
/* * Copyright 2017-2020 47 Degrees Open Source <https://www.47deg.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
frees-io/freestyle-rpc
modules/haskell-integration-tests/src/test/scala/integrationtest/protobuf/HaskellServerScalaClientSpec.scala
Scala
apache-2.0
3,040
/** * Copyright (C) 2014 Stratio (http://stratio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
mt0803/streaming-cep-engine
api/src/main/scala/com/stratio/streaming/api/messaging/MessageBuilder.scala
Scala
apache-2.0
2,897
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
h2oai/sparkling-water
ml/src/test/scala/ai/h2o/sparkling/ml/metrics/MetricsAssertions.scala
Scala
apache-2.0
1,657
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
chenc10/Spark-PAF
examples/src/main/scala/org/apache/spark/examples/ml/RandomForestExample.scala
Scala
apache-2.0
10,354
package sharry.restserver.routes import cats.data.OptionT import cats.effect._ import sharry.backend.BackendApp import sharry.backend.share._ import sharry.common._ import sharry.restapi.model.{ShareDetail => ShareDetailDto, _} import sharry.restserver.Config import sharry.restserver.http4s.ClientRequestInfo import ...
eikek/sharry
modules/restserver/src/main/scala/sharry/restserver/routes/ShareDetailResponse.scala
Scala
gpl-3.0
2,843
package com.github.probe.backend package rest import akka.util.Timeout import akka.util.duration._ import cc.spray.directives.PathElement import cc.spray.{ RequestContext, Directives } import cc.spray.http.{ HttpContent, StatusCodes, HttpResponse } import cc.spray.http.MediaTypes._ import data.{ DeviceSelector, Device...
khernyo/freezing-ninja
backend/src/main/scala/com/github/probe/backend/rest/RestApi.scala
Scala
apache-2.0
4,210
/** * Copyright 2014-2015 Martin Cooper * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
martincooper/scala-datatable
src/test/scala/com/github/martincooper/datatable/DataColumnSpecs/DataColumnReplaceValueSpec.scala
Scala
apache-2.0
2,982
class X extends E with C with B object Main { def main(args: Array[String]): Unit = { val x = new X val expected = args(0).toInt assert(x.x == expected, "Expected " + expected + ", got " + x.x) } }
mdedetrich/sbt
sbt/src/sbt-test/source-dependencies/trait-super/Main.scala
Scala
bsd-3-clause
208
package sms.core.actor import scala.reflect.runtime.{universe=>u} import scala.reflect.ClassTag trait IgnoreAccessModifiers { def access[T : u.TypeTag : ClassTag](obj: T, fieldName: String)(pf: PartialFunction[Any, Any]) { val tpe = u.typeTag[T].tpe val field = tpe.member(u.newTermName(fieldName)).asTerm ...
kjanosz/stock-market-sherlock
core/src/test/scala/sms/core/actor/IgnoreAccessModifiers.scala
Scala
apache-2.0
566
package org.aja.tej.examples.mllib.classification import org.aja.tej.examples.mllib.classification.StumbleuponUtils._ import org.apache.spark.mllib.classification.LogisticRegressionWithSGD import org.apache.spark.mllib.evaluation.BinaryClassificationMetrics import org.apache.spark.mllib.feature.StandardScaler import o...
Mageswaran1989/aja
src/examples/scala/org/aja/tej/examples/mllib/classification/LogisticRegressionWithSGDTest.scala
Scala
apache-2.0
4,517
/* * Copyright (c) 2011 Miles Sabin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
rorygraves/shapeless
core/src/main/scala/shapeless/syntax/records.scala
Scala
apache-2.0
4,395
package knot.net.stream import java.net.InetSocketAddress import knot.core.stream._ import knot.core.stream.graphs.{FlowGraph, GraphMaterializer, MatSelector, SourceGraph} import knot.core.{Done, Structure} import knot.data.ByteNode import knot.net.stream.sources.TcpSource import scala.concurrent.Future import scala...
defvar/knot
knot-net/src/main/scala/knot/net/stream/TcpStream.scala
Scala
mit
1,464
package com.enkidu.lignum.parsers.java.v8 import com.enkidu.lignum.parsers.ast.expression.types.annotations.Annotation import com.enkidu.lignum.parsers.ast.statement.modifers._ import org.parboiled2._ import shapeless.HNil abstract class JavaModifiersParser extends JavaExpressionParser { def annotation: Rule1[Annot...
marek1840/java-parser
src/main/scala/com/enkidu/lignum/parsers/java/v8/JavaModifiersParser.scala
Scala
mit
5,755
package drt.shared.coachTime import drt.shared.{ApiFlightWithSplits, PortCode} import drt.shared.CrunchApi.MillisSinceEpoch import drt.shared.Terminals.Terminal import drt.shared.api.Arrival object DefaultCoachWalkTime extends CoachWalkTime { override def walkTime(flight: Arrival): Option[MillisSinceEpoch] = None }...
UKHomeOffice/drt-scalajs-spa-exploration
shared/src/main/scala/drt/shared/coachTime/DefaultCoachWalkTime.scala
Scala
apache-2.0
321
package com.fortysevendeg.scala.android.modules.forecast import com.fortysevendeg.scala.android.modules.forecast.impl.ForecastServices import com.fortysevendeg.scala.android.modules.forecast.model._ import com.fortysevendeg.scala.android.{ContextWrapperContextTestSupport, BaseTestSpecification} import com.squareup.okh...
pamu/ScalaAndroidMacroid
src/test/scala/com/fortysevendeg/scala/android/modules/forecast/ForecastServicesSpec.scala
Scala
apache-2.0
2,919
import sbt._ object Version { val mockito = "1.10.19" val scalaTest = "2.2.4" val slf4j = "1.7.6" } object Library { val mockitoAll = "org.mockito" % "mockito-all" % Version.mockito val scalaTest = "org.scalatest" %% "scalatest" % Version.scalaTest val slf4jApi = ...
nasa-nccs-cds/CDASClientConsole
project/Dependencies.scala
Scala
gpl-3.0
2,422
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
pgandhi999/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/continuous/ContinuousDataSourceRDD.scala
Scala
apache-2.0
4,235
/** Copyright 2015 TappingStone, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
nvoron23/PredictionIO
data/src/main/scala/io/prediction/data/examples/Test.scala
Scala
apache-2.0
3,979
object Foo { def apply(x: String) = new Foo(x) } class Foo(name: String) case object Bar extends Foo("Bar") case class Baz() extends Foo("Baz") object Test extends App { Foo("Bar") match { case Bar => println("What?") case _ => println("OK") } Foo("Baz") match { case Baz() => println("What?") case...
som-snytt/dotty
tests/run/t0883.scala
Scala
apache-2.0
346
package akkevad.impl import org.osgi.service.event.{EventHandler, EventAdmin, Event} import akka.pattern.ask import akka.actor._ import scala.concurrent.{Future, Await} import scala.concurrent.duration._ import akka.util.Timeout import scala.Some import scala.concurrent.ExecutionContext.Implicits.global import org.osg...
mickej/akkevad
src/main/scala/akkevad/impl/EventAdminImpl.scala
Scala
mit
9,182
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
databricks/spark-xml
src/test/scala/com/databricks/spark/xml/TestUtils.scala
Scala
apache-2.0
1,326
package merkelonrails.ast import org.objectweb.asm.MethodVisitor import org.objectweb.asm.Opcodes._ import merkelonrails.SymbolTable case class DivisionExpressionNode(expression: AstNode ,operand: AstNode ) extends AstNode{ def generate(mv: MethodVisitor, symbolTable: SymbolTable) { expression.generate(mv, symb...
ubertroll/MerkelOnRails
src/main/scala/merkelonrails/ast/DivisionExpressionNode.scala
Scala
apache-2.0
396
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
allenday/adam
adam-cli/src/main/scala/org/bdgenomics/adam/cli/CountContigKmers.scala
Scala
apache-2.0
2,960
object Foo extends Foo { def f {} } class Foo object Test extends App { Foo }
felixmulder/scala
test/files/run/t1747.scala
Scala
bsd-3-clause
81
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
mike0sv/spark
streaming/src/test/scala/org/apache/spark/streaming/receiver/RateLimiterSuite.scala
Scala
apache-2.0
1,792
/* * Copyright 2011-2022 GatlingCorp (https://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
gatling/gatling
gatling-mqtt/src/main/scala/io/gatling/mqtt/action/builder/MqttActionBuilder.scala
Scala
apache-2.0
1,399
package org.jetbrains.plugins.scala.components.libinjection.ui import javax.swing.AbstractListModel import org.jetbrains.plugins.scala.components.libinjection.{InjectorPersistentCache, JarManifest} /** * @author mucianm * @since 15.04.16. */ class JarCacheModel(val cache: InjectorPersistentCache) extends Abst...
triplequote/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/components/libinjection/ui/JarCacheModel.scala
Scala
apache-2.0
1,057
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
wzhongyuan/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/optim/LocalPredictorSpec.scala
Scala
apache-2.0
12,349
/** * Copyright (C) 2010-2011 LShift Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
lshift/diffa
participants/src/main/scala/net/lshift/diffa/participants/FileParticipant.scala
Scala
apache-2.0
3,200
package com.twitter.concurrent import org.scalatestplus.mockito.MockitoSugar import com.twitter.util.{Promise, Return} import org.scalatest.wordspec.AnyWordSpec class FutureOfferTest extends AnyWordSpec with MockitoSugar { "Future.toOffer" should { "activate when future is satisfied (poll)" in { val p = n...
twitter/util
util-core/src/test/scala/com/twitter/util/FutureOfferTest.scala
Scala
apache-2.0
673
package cgta.oscala package extensions import cgta.oscala.util.Utf8Help ////////////////////////////////////////////////////////////// // Copyright (c) 2015 Ben Jackman // All Rights Reserved // please contact ben@jackman.biz // for licensing inquiries // Created by bjackman @ 2/10/15 5:44 PM ///////////////////////...
cgta/open
oscala/shared/src/main/scala/cgta/oscala/extensions/ByteArrayExtensions.scala
Scala
mit
479
package org.openurp.sns.photo.model import java.util.Date case class PhotoInfo(id: Long, userid: String, updatedAt: Date, photoid: String, remark: Option[String]) //object PhotoInfo { // // private val simple = { // get[Long]("id") ~ get[String]("code") ~ get[Date]("updated_at") ~ // get[String]("photo_id")...
openurp/sns-photo-webapp
webapp/src/main/scala/org/openurp/sns/photo/model/PhotoInfo.scala
Scala
gpl-3.0
1,290
/* * Copyright (c) 2013 Alex DiCarlo * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publis...
dicarlo2/ScalaEquals
core-test/src/test/scala/org/scalaequals/test/TypeMemberTraitTest.scala
Scala
mit
3,104
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
JerryYanWan/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/SpatialConvolutionMap.scala
Scala
apache-2.0
12,842
package org.deepdive.test.unit import akka.actor._ import akka.testkit._ import java.io.File import org.deepdive.inference.Sampler import org.scalatest._ import scala.util.{Success, Failure} class SamplerSpec(_system: ActorSystem) extends TestKit(_system) with ImplicitSender with FunSpecLike { def this() = this(Ac...
dennybritz/deepdive
src/test/scala/unit/inference/SamplerSpec.scala
Scala
apache-2.0
1,877
package com.sksamuel.elastic4s.requests.mappings import com.sksamuel.elastic4s.fields.ElasticField import com.sksamuel.elastic4s.requests.mappings.dynamictemplate.{DynamicMapping, DynamicTemplateRequest} trait MappingDefinitionLike { def all: Option[Boolean] def source: Option[Boolean] def sourceExcludes: Seq[S...
sksamuel/elastic4s
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/mappings/MappingDefinitionLike.scala
Scala
apache-2.0
812
import com.bot4s.telegram.api.declarative.Commands import com.bot4s.telegram.api.ChatActions import com.bot4s.telegram.future.Polling import com.bot4s.telegram.methods._ import com.bot4s.telegram.models.InputFile import scala.concurrent.Future /** * Such Telegram, many bots, so Dogesome. */ class DogeBot(token: Str...
mukel/telegrambot4s
examples/src-jvm/DogeBot.scala
Scala
apache-2.0
882
// code-examples/Concurrency/factory-actor-script.scala import scala.actors.Actor import scala.actors.Actor._ val paulNewman = actor { println("To be an actor, you have to be a child.") }
XClouded/t4f-core
scala/src/tmp/Concurrency/factory-actor-script.scala
Scala
apache-2.0
191
/* * Copyright (C) 2012 The Regents of The University California. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
sameeragarwal/blinkdb
src/main/scala/shark/parse/SharkExplainSemanticAnalyzer.scala
Scala
apache-2.0
2,110
package org.psesd.srx.shared.core.sif import org.scalatest.FunSuite class SifRequestActionTests extends FunSuite { test("fromHttpMethod DELETE --> DELETE") { assert(SifRequestAction.fromHttpMethod(SifHttpRequestMethod.Delete).equals(SifRequestAction.Delete)) } test("fromHttpMethod GET --> QUERY") { as...
PSESD/srx-shared-core
src/test/scala/org/psesd/srx/shared/core/sif/SifRequestActionTests.scala
Scala
mit
722
package rxthings.sensors import akka.actor.{Actor, ActorRef, ActorSystem, Props} import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._ import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Directives._ import com.typesafe.config.ConfigFactory import rxthings.sensors.DS18B20._ import...
jw3/DS18B20
src/main/scala/rxthings/sensors/HttpInterface.scala
Scala
apache-2.0
1,007
package com.tpersson.client.common.services.navigation import javafx.beans.property.{ReadOnlyObjectProperty, SimpleObjectProperty} import com.google.inject.Inject import com.tpersson.client.common.services.logging.Logger import scala.collection.mutable class NavigationServiceImpl @Inject() (logger: Logger) extends ...
TommyPersson/scala-mvvm-example
src/main/scala/com/tpersson/client/common/services/navigation/NavigationServiceImpl.scala
Scala
apache-2.0
1,267
package im.actor import sbt._ object Dependencies { object V { val akka = "2.3.13" val akkaExperimental = "1.0" val scalaz = "7.1.1" val slick = "3.0.0" val scalatest = "2.2.4" val catsVersion = "0.1.2" } object Compile { val akkaActor = "com.typesafe.akka" ...
Dreezydraig/actor-platform
actor-server/project/Dependencies.scala
Scala
mit
8,577
abstract class BulkSearch { type R <: Row type Rel <: Relation [R] type Corr <: Correspondence[R] def searchFor(input: Rel): Mapping[Corr] = { println("BulkSearch.searchFor called.") ; null } } object BulkSearchInstance extends BulkSearch { type R = UpRow type Rel = UpRel...
som-snytt/dotty
tests/run/t3452a/S_1.scala
Scala
apache-2.0
595
package com.localytics.sbt.dynamodb import java.net.Socket import sbt.File import sbt.Keys._ import scala.sys.process._ import scala.util.Try object StartDynamoDBLocal { private[dynamodb] def isDynamoDBLocalRunning(port: Int): Boolean = Try(new Socket("localhost", port).close()).isSuccess def apply(baseDir: F...
localytics/sbt-dynamodb
src/main/scala/com/localytics/sbt/dynamodb/StartDynamoDBLocal.scala
Scala
mit
1,460
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
guoxiaolongzte/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/WriteToDataSourceV2Exec.scala
Scala
apache-2.0
6,770
package tugboat import org.json4s.native.JsonMethods.parse import org.json4s._ object Event { case class Record(status: String, id: String, from: String, time: Long) } object Build { sealed trait Output case class Progress(message: String) extends Output case class Status(message: String) extends Output ca...
seal-software/tugboat
src/main/scala/StreamRep.scala
Scala
mit
4,353
package com.logikujo.www.error import scalaz.{-\\/, \\/-, \\/} import argonaut.Json import argonaut.Argonaut._ import unfiltered.response.{HttpResponse, Status, ResponseString, JsonContent} /** * * aitoriturri / LogiDev - [Fun Functional] / Logikujo.com * * com.logikujo.www.error 29/05/14 :: 11:23 :: eof * */ ...
AitorATuin/UnfilteredM
unfilteredMCore/src/main/scala/com/logikujo/www/error/JsonResponse.scala
Scala
mit
1,331
/*********************************************************************** * Copyright (c) 2013-2017 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
ronq/geomesa
geomesa-features/geomesa-feature-kryo/src/main/scala/org/locationtech/geomesa/features/kryo/serialization/KryoGeometrySerialization.scala
Scala
apache-2.0
737
package exercises.ch06 object Ex03 { def intDouble(rng: RNG): ((Int, Double), RNG) = { val (n, rng1) = rng.nextInt val (d, rng2) = Ex02.double(rng1) ((n,d), rng2) } def doubleInt(rng: RNG): ((Double, Int), RNG) = { val (n, rng1) = rng.nextInt val (d, rng2) = Ex02.double(rng1) ((d,n), rn...
VladMinzatu/fpinscala-exercises
src/main/scala/exercises/ch06/Ex03.scala
Scala
mit
702
package edu.berkeley.cs.amplab.adam.projections import org.apache.avro.Schema import scala.collection.JavaConversions._ import org.apache.avro.Schema.Field /** * Avro utility object to create a projection of a Schema */ object Projection { private def createProjection(fullSchema: Schema, fields: Set[String], exc...
fnothaft/adam
adam-core/src/main/scala/edu/berkeley/cs/amplab/adam/projections/Projection.scala
Scala
apache-2.0
1,504
/* * Copyright (c) 2014 Contributor. All rights reserved. */ package org.scalaide.ui.internal.repl import org.eclipse.core.resources.IResource import org.eclipse.core.resources.ResourcesPlugin import org.eclipse.core.runtime.CoreException import org.eclipse.debug.core.ILaunchConfiguration import org.eclipse.debug.co...
Kwestor/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/ui/internal/repl/InterpreterTabGroup.scala
Scala
bsd-3-clause
9,588
/** * © 2019 Refinitiv. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
dudi3001/CM-Well
server/cmwell-ws/app/security/NoncesManager.scala
Scala
apache-2.0
1,305
package com.eclipsesource.schema.internal.draft4.constraints import com.eclipsesource.schema.{SchemaMap, SchemaProp, SchemaResolutionContext, SchemaSeq, SchemaType, SchemaValue} import com.eclipsesource.schema.internal.Keywords import com.eclipsesource.schema.internal.constraints.Constraints.AnyConstraints import com....
eclipsesource/play-json-schema-validator
src/main/scala/com/eclipsesource/schema/internal/draft4/constraints/AnyConstraints4.scala
Scala
apache-2.0
2,801
import Macros._ object Test { def main(args: Array[String]): Unit = { assert2 { def bar(): Boolean = { println("bar") false } bar() } } }
som-snytt/dotty
tests/run-macros/quote-change-owner/Test_2.scala
Scala
apache-2.0
184
package pep_076 import common.Memo import Stream._ import scala.collection.mutable object Wip { object Solve1 { type Way = List[Int] // in decreasing order // (math.ceil(x / 2.0).toInt until x).map(i => List(i, x - i)).toSet def pairSet(x: Int): Set[Way] = for { h <- (math.ceil(x / 2.0).toInt u...
filippovitale/pe
pe-solution/src/main/scala/pep_076/Wip.scala
Scala
mit
1,557
/* * Copyright (C) 2013-2015 by Michael Hombre Brinkmann */ package net.twibs.web import com.google.common.net.MediaType import net.twibs.util.ApplicationSettings import net.twibs.util.Predef._ trait DetectedMimeType { self: Response => lazy val mimeType = asInputStream useAndClose { is => ApplicationSett...
hombre/twibs
twibs-web/src/main/scala/net/twibs/web/MimeTypes.scala
Scala
apache-2.0
1,593
package de.tu_berlin.formic.common.controlalgo import de.tu_berlin.formic.common.datastructure.{DataStructureOperation, HistoryBuffer, OperationTransformer} /** * The implementation of the Wave OT algorithm on the server side * * @author Ronny Bräunlich */ class WaveOTServer extends ControlAlgorithm { /** ...
rbraeunlich/formic
common/jvm/src/main/scala/de/tu_berlin/formic/common/controlalgo/WaveOTServer.scala
Scala
apache-2.0
2,114
package com.omearac.shared import akka.actor.ActorSystem import akka.stream.ActorMaterializer /** *This trait contains the components required to materialize and run Akka Streams */ trait AkkaStreams { implicit val system: ActorSystem implicit def executionContext = system.dispatcher implicit def mat...
omearac/reactive-kafka-microservice-template
src/main/scala/com/omearac/shared/AkkaStreams.scala
Scala
apache-2.0
354
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/ShouldExistLogicalOrSpec.scala
Scala
apache-2.0
12,899
package com.eevolution.context.dictionary.domain.model import ai.x.play.json.Jsonx import com.eevolution.context.dictionary.api.{ActiveEnabled, DomainModel, Identifiable, Traceable} import org.joda.time.DateTime /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This progra...
adempiere/ADReactiveSystem
dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/model/AttributeTrl.scala
Scala
gpl-3.0
3,050
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
MLnick/spark
external/kinesis-asl/src/main/scala/org/apache/spark/streaming/kinesis/KinesisInputDStream.scala
Scala
apache-2.0
12,457
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
gioenn/xSpark
yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
Scala
apache-2.0
30,375
package org.veripacks.data.dependenciesreader class Cls1
adamw/veripacks
verifier/src/test/scala/org/veripacks/data/dependenciesreader/Cls1.scala
Scala
apache-2.0
58
package moe.brianhsu.easytaipei import android.content.Context import java.io._ import org.json4s._ import org.json4s.native.JsonMethods._ class TolietDataGetter(context: Context) extends BaseDataGetter(context) { protected val jsonDataURL = "http://data.taipei/opendata/datalist/apiAccess?scope=resourceAquire&rid=...
brianhsu/EasyTaipei
src/main/scala/dataset/TolietDataGetter.scala
Scala
gpl-2.0
769
/** * Copyright 2011-2017 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
MykolaB/gatling
gatling-charts/src/main/scala/io/gatling/charts/template/RequestsPageTemplate.scala
Scala
apache-2.0
846
package fpinscala.datastructures sealed trait Tree[+A] case class Leaf[A](value: A) extends Tree[A] case class Branch[A](left: Tree[A], right: Tree[A]) extends Tree[A] object Tree { // Exercise 3.25: size. def size[A](t: Tree[A]): Int = ??? // Exercise 3.26: maximum. def maximum(t: Tree[Int]): Int = ??? ...
RheinMainScala/fpinscala
exercises/src/main/scala/fpinscala/datastructures/Tree.scala
Scala
mit
794
package controllers import javax.inject._ import actors._ import akka.NotUsed import akka.actor.ActorRef import akka.pattern.ask import akka.stream.scaladsl.Flow import akka.util.Timeout import play.api._ import play.api.libs.json.{JsValue, Json} import play.api.mvc._ import scala.concurrent.{ExecutionContext, Futur...
BijanVan/play-scala-websocket-demo
app/controllers/HomeController.scala
Scala
mit
2,280
package org.workcraft.plugins.stg21 import types._ import java.awt.geom.Point2D import org.workcraft.plugins.stg21.fields.VisualStgLenses import org.workcraft.exceptions.NotImplementedException import scalaz.Lens object StgOperations { import scalaz.State import StateExtensions._ def createMathPlace(name : Stri...
tuura/workcraft-2.2
STGPlugin21/src/main/scala/org/workcraft/plugins/stg21/StgOperations.scala
Scala
gpl-3.0
3,119
package weatherApp.models case class GithubUser( login: String = "", id: Int = -1, avatar_url: String = "", html_url: String = "", name: Option[String] = None ) case class UserRespon...
malaman/scala-weather-app
frontend/src/main/scala/weatherApp/models/GithubUser.scala
Scala
mit
596
package org.deeplearning4j.ui.views.html.defaultPage import play.twirl.api._ import play.twirl.api.TemplateMagic._ object DefaultPage_Scope0 { import models._ import controllers._ import play.api.i18n._ import views.html._ import play.api.templates.PlayMagic._ import play.api.mvc._ import play.api.data._ clas...
shuodata/deeplearning4j
deeplearning4j-ui-parent/deeplearning4j-play/src/main/scala/org/deeplearning4j/ui/views/html/defaultPage/DefaultPage.template.scala
Scala
apache-2.0
9,763
package com.mesosphere.cosmos.model import com.netaporter.uri.Uri /** Normalizes the representation of Marathon app IDs to ensure we can compare them correctly. * * Stores the app ID as a string for the common case where we're just passing it along with other * data. Converting it to a URI to invoke a Marathon ...
movicha/cosmos
cosmos-model/src/main/scala/com/mesosphere/cosmos/model/AppId.scala
Scala
apache-2.0
642
package codesample.scala.coursera.course1.week3 object ConsListExample { trait List[T] { def isEmpty: Boolean def head: T def tail: List[T] } class Cons[T](val head: T, val tail: List[T]) extends List[T] { override def isEmpty: Boolean = false } class Nil[T] extends List[T] { override ...
aquatir/remember_java_api
code-sample-scala/scala-coursera/src/main/scala/codesample/scala/coursera/course1/week3/ConsListExample.scala
Scala
mit
891
package rere.driver.connection import java.util.concurrent.ConcurrentHashMap import akka.Done import akka.actor.ActorSystem import akka.event.Logging import akka.stream.scaladsl.{GraphDSL, RunnableGraph, SourceQueueWithComplete} import akka.stream.testkit.scaladsl.{TestSink, TestSource} import akka.stream.{ActorMater...
pbaun/rere
modules/driver/src/test/scala/rere/driver/connection/LogicalConnectionStageTest.scala
Scala
apache-2.0
3,662
package com.cloudray.scalapress.plugin.listings.controller.renderer import scala.collection.JavaConverters._ import scala.xml.{Node, Unparsed} import collection.Iterable import com.cloudray.scalapress.item.Item import com.cloudray.scalapress.item.attr.{AttributeType, AttributeValue, Attribute} import com.cloudray.scal...
vidyacraghav/scalapress
src/main/scala/com/cloudray/scalapress/plugin/listings/controller/renderer/ListingFieldsRenderer.scala
Scala
apache-2.0
6,341
package org.imdex.tractor.dispatch import java.util.concurrent._ import scala.concurrent.duration._ import scala.language.postfixOps sealed trait ExecutionOrder object ExecutionOrder { case object FIFO extends ExecutionOrder case object LIFO extends ExecutionOrder } object BalancingDispatcher { val Defa...
Im-dex/trActor
tractor-actor/src/main/scala/org/imdex/tractor/dispatch/BalancingDispatcher.scala
Scala
mit
1,944
/** * Copyright 2010-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
scalatest/scalatest-website
app/examples/FeatureSpecExamples.scala
Scala
apache-2.0
10,325
package spire package math package poly import java.math.MathContext /** * A type class that can find roots of a polynomial. */ trait RootFinder[A] { /** * Returns the roots of the polynomial `poly`. */ def findRoots(poly: Polynomial[A]): Roots[A] } object RootFinder { final def apply[A](implicit find...
non/spire
core/src/main/scala/spire/math/poly/RootFinder.scala
Scala
mit
1,196
package scalax.collection.io.json package descriptor import reflect.ClassTag import net.liftweb.json._ import scalax.collection.GraphPredef._, scalax.collection.GraphEdge._ import scalax.collection.edge._, scalax.collection.edge.WBase._, scalax.collection.edge.LBase._, scalax.collection.edge.WLBase._, scalax.collect...
scala-graph/scala-graph
json/src/main/scala/scalax/collection/io/json/descriptor/EdgeDescriptor.scala
Scala
apache-2.0
13,783
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Thu May 12 11:56:13 EDT 2011 * @see LICENSE (MIT style license file). */ package scalation.stat import scala.math.{abs, cos} import scalation.linalgebra.VectorD import scalat...
scalation/fda
scalation_1.2/src/main/scala/scalation/stat/BatchVector.scala
Scala
mit
5,710
package com.arcusys.learn.liferay.update.migration import java.net.URLDecoder import com.arcusys.learn.liferay.update.version240.certificate._ import com.arcusys.valamis.certificate.model.CertificateStatuses import com.arcusys.valamis.model.PeriodTypes import com.arcusys.learn.liferay.update.version240.file.FileTable...
igor-borisov/valamis
learn-portlet/src/main/scala/com/arcusys/learn/liferay/update/migration/CertificateStorageMigration2303.scala
Scala
gpl-3.0
6,592
package unluac.decompile.block import unluac.decompile.Output import unluac.decompile.statement.{Return, Statement} import unluac.parse.LFunction import scala.collection.mutable.ArrayBuffer class OuterBlock(function: LFunction, length: Int) extends Block(function, 0, length + 1) { private final val statements: Arr...
danielwegener/unluac-scala
shared/src/main/scala/unluac/decompile/block/OuterBlock.scala
Scala
mit
1,032
/** * This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]]. */ // DO NOT EDIT MANUALLY package sbt.internal.bsp /** * Contains scala-specific metadata for compiling a target containing Scala sources. * This metadata is embedded in the data: Option[Json] field of the BuildTarget def...
xuwei-k/xsbt
protocol/src/main/contraband-scala/sbt/internal/bsp/ScalaBuildTarget.scala
Scala
apache-2.0
2,906
package org.scalarules.dsl.nl import org.scalarules.dsl.nl.datum.DatumImplicits import org.scalarules.dsl.nl.grammar._ import org.scalarules.dsl.nl.grammar.meta.DslMacros import org.scalarules.engine._ import scala.language.experimental.macros /** * Aggregates the keywords and implicit definitions of the Scala-Rul...
scala-rules/rule-engine
engine/src/main/scala/org/scalarules/dsl/nl/ScalaRulesDsl.scala
Scala
mit
960
import scala.reflect.runtime.universe._ import scala.tools.reflect.Eval object Test extends App { reify { implicit lazy val x = 2 println(implicitly[Int]) }.eval }
lampepfl/dotty
tests/disabled/macro/run/t5276_1b.scala
Scala
apache-2.0
177