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 counter.manager import akka.actor.{Actor, ActorRef, Props} import akka.persistence.{RecoveryCompleted, PersistentActor} import counter.manager.Counter._ import counter.operation.StartOperation.Started import counter.warning.WarningCollector.CounterExceeded class Counter(name: String, warningCollector: ActorRe...
grzesiekw/counter
counter-core/src/main/scala/counter/manager/Counter.scala
Scala
apache-2.0
1,897
package me.eax.examples.tracing import akka.actor._ import akka.pattern.ask import kamon.trace.Tracer import scala.concurrent.Future case object SecondActor { case class SayHelloSecond(msg: String) case class AskExt(ref: ActorRef) extends AskHelper { def sayHello(msg: String): Future[Unit] = { (ref ?...
afiskon/akka-tracing-example
tracing/src/main/scala/me/eax/examples/tracing/SecondActor.scala
Scala
mit
641
package com.twitter.server import com.twitter.app.App import com.twitter.finagle.tracing.Trace import com.twitter.util.Time import java.util.logging.{Formatter, Level, LogRecord, Logger} import java.io.{PrintWriter, StringWriter} import scala.reflect.NameTransformer trait LogFormat { app: App => premain { for (...
nshkrob/twitter-server
src/main/scala/com/twitter/server/LogFormat.scala
Scala
apache-2.0
1,848
package counter.operation import akka.actor.{Actor, ActorRef, Props} import counter.manager.Counter.CounterDetails import counter.manager.CounterManager.{Details, NotFound} import counter.operation.DetailsOperation.GetCounter import counter.operation.OperationReceiver.CounterNotFound class DetailsOperation(counterMan...
grzesiekw/counter
counter-core/src/main/scala/counter/operation/DetailsOperation.scala
Scala
apache-2.0
909
/* * 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 ...
sh-cho/cshSpark
rdd/PairRDDFunctions.scala
Scala
apache-2.0
51,854
/* * Copyright 2015 the original author or 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 applicab...
arkadius/micro-burn
src/main/scala/org/github/microburn/domain/TaskStatus.scala
Scala
apache-2.0
898
/* * Copyright 2013 Commonwealth Computer Research, 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 applica...
anthonyccri/geomesa
geomesa-core/src/main/scala/geomesa/core/iterators/RowOnlyIterator.scala
Scala
apache-2.0
1,419
package com.github.gabadi.scalajooq import com.google.common.base.CaseFormat.{LOWER_CAMEL, LOWER_UNDERSCORE, UPPER_UNDERSCORE} import org.jooq.{DSLContext, Field, Record, Table} import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context import scala.util.{Failure, Success} trait JooqMacro...
gabadi/JOOQ-scala-mappings
src/main/scala/com/github/gabadi/scalajooq/JooqMacroMapper.scala
Scala
apache-2.0
13,809
/* * Copyright (C) 2020 MapRoulette contributors (see CONTRIBUTORS.md). * Licensed under the Apache License, Version 2.0 (see LICENSE). */ package org.maproulette.models.dal.mixin import anorm.NamedParameter import org.maproulette.models.utils.DALHelper import org.maproulette.session.SearchParameters import org.map...
mgcuthbert/maproulette2
app/org/maproulette/models/dal/mixin/SearchParametersMixin.scala
Scala
apache-2.0
7,741
/* * 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...
asorianostratio/incubator-toree
client/src/test/scala/org/apache/toree/kernel/protocol/v5/client/socket/ShellClientSpec.scala
Scala
apache-2.0
3,092
package lift.profiler import scala.annotation.StaticAnnotation import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context class Profile(extraContext: String = "") extends StaticAnnotation { def macroTransform(annottees: Any*) = macro Profile.impl } object Profile { def impl(c: Context...
lift-project/lift
lib/Profiler/src/main/scala/Profiler.scala
Scala
mit
1,779
package io.vamp.container_driver.marathon import io.vamp.container_driver.Docker import io.vamp.model.artifact.{ HealthCheck, Port } case class MarathonApp( id: String, container: Option[Container], ipAddress: Option[MarathonAppIpAddress], instances: Int, cpus: Doub...
magneticio/vamp
dcos/src/main/scala/io/vamp/container_driver/marathon/MarathonApp.scala
Scala
apache-2.0
2,670
/** * Copyright (C) 2014 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
wesley1001/orbeon-forms
src/main/scala/org/orbeon/oxf/http/Headers.scala
Scala
lgpl-2.1
7,092
package ilc package language package bacchus import org.scalatest.FunSuite import ilc.feature._ class BacchusReificationSuite extends FunSuite with Syntax // for mapLiteral with Subjects // for type shorthands with Evaluation with naturals.Reification with maps.Reification with maybe.Reification ...
inc-lc/ilc-scala
src/test/scala/ilc/language/bacchus/ReificationSuite.scala
Scala
mit
830
/** * Helpers: * ======== * * io.Source.stdin.getLines() * readInt() * readLine() * readLine().toList * readLine().split(" ") .split("\\s+") * println("%.2f\n".format(res)) * .toInt * .toDouble * .toFloat * var Array(x1,x2) = readLine().split(" ").map(_.toInt) * for (i <- 0 until readInt()) * mutable.Ar...
amezhenin/codechef_scala_template
src/main/scala/Main.scala
Scala
gpl-2.0
808
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala package reflect ...
martijnhoekstra/scala
src/reflect/scala/reflect/api/ImplicitTags.scala
Scala
apache-2.0
5,089
package daos import org.junit.runner._ import org.specs2.mutable._ import org.specs2.runner._ import play.api.test._ import scala.collection.LinearSeq import scaldi._ import utils.test.WithFakeDb @RunWith(classOf[JUnitRunner]) class HealthcheckDaoSpec extends Specification { private val dao = new HealthcheckD...
umatrangolo/shrt
test/daos/HealthcheckDaoSpec.scala
Scala
mit
734
/* * Copyright (c) 2014-2015 by its authors. Some rights reserved. * See the project homepage at: http://www.monifu.org * * 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://...
virtualirfan/monifu
monifu/shared/src/test/scala/monifu/reactive/internals/operators/OnErrorRetryIfSuite.scala
Scala
apache-2.0
2,603
/* * Copyright (C) 2015 Language Technology Group * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * ...
tudarmstadt-lt/newsleak
common/src/test/scala/model/KeyTermQueryableImplTest.scala
Scala
agpl-3.0
2,658
package com.twitter.finagle.postgresql import java.nio.file.Files import java.nio.file.attribute.PosixFilePermission import com.spotify.docker.client.messages.HostConfig import com.twitter.finagle.PostgreSql import com.twitter.finagle.ssl.TrustCredentials import com.twitter.finagle.ssl.client.SslClientConfiguration i...
twitter/finagle
finagle-postgresql/src/it/scala/com/twitter/finagle/postgresql/TlsSpec.scala
Scala
apache-2.0
3,968
package im.actor.server.session import scala.concurrent.Await import scala.concurrent.duration._ import scala.util.Random import akka.testkit.TestProbe import com.google.protobuf.ByteString import scodec.bits._ import im.actor.api.rpc.auth._ import im.actor.api.rpc.codecs._ import im.actor.api.rpc.contacts.UpdateCon...
sc4599/actor-platform
actor-server/actor-tests/src/test/scala/im/actor/server/session/SessionSpec.scala
Scala
mit
10,901
package com.wavesplatform.lang.v1.repl.node.http.response.model import com.wavesplatform.lang.v1.traits.DataType import io.circe.{Decoder, DecodingFailure, HCursor} private[node] case class DataEntry(key: String, value: Any, `type`: DataType) private[node] object DataEntry { implicit val decoder: Decoder[DataEntry...
wavesplatform/Waves
repl/shared/src/main/scala/com/wavesplatform/lang/v1/repl/node/http/response/model/DataEntry.scala
Scala
mit
957
package com.github.jmora.scala.util.data.collection import scala.concurrent.Future import scala.concurrent.Await import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration.Duration import com.github.jmora.scala.util.boilerplate._ import scala.collection.AbstractIterator class PrefetchI...
jmora/scala.util
src/main/scala/com/github/jmora/scala/util/data/collection/PrefetchIterator.scala
Scala
mit
872
package mesosphere.marathon.state import mesosphere.marathon.metrics.Metrics import mesosphere.marathon.upgrade.DeploymentPlan import scala.collection.immutable.Seq import scala.concurrent.Future class DeploymentRepository( val store: EntityStore[DeploymentPlan], val maxVersions: Option[Int] = None, val metrics...
EasonYi/marathon
src/main/scala/mesosphere/marathon/state/DeploymentRepository.scala
Scala
apache-2.0
751
/* * Copyright 2015 Foundational Development * * 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 appl...
rssvihla/datastax_work
spark_commons/examples/spark_bulk_operations/src/main/scala/pro/foundev/scala/FindWithArgs.scala
Scala
apache-2.0
1,097
package lore.compiler.types import lore.compiler.semantics.functions.FunctionSignature import lore.compiler.semantics.structures.StructPropertyDefinition case class StructType( schema: StructSchema, assignments: TypeVariable.Assignments, ) extends DeclaredType { /** * The struct's properties, their types i...
marcopennekamp/lore
compiler/src/lore/compiler/types/StructType.scala
Scala
mit
1,351
package sample.camel import org.apache.camel.Exchange import org.apache.camel.Processor import org.apache.camel.builder.RouteBuilder import akka.actor.Actor import akka.actor.ActorRef import akka.actor.ActorSystem import akka.actor.Props import akka.camel.CamelExtension import akka.camel.CamelMessage import akka.camel...
alanktwong/typesafe_activators
akka-sample-camel-scala/src/main/scala/sample/camel/CustomRouteExample.scala
Scala
mit
1,756
package info.glennengstrand.news import java.sql.PreparedStatement import info.glennengstrand.io._ import org.specs2.mutable.Specification import spray.testkit.Specs2RouteTest trait MockWriter extends PersistentDataStoreWriter { def write(o: PersistentDataStoreBindings, state: Map[String, Any], criteria: Map[Strin...
Krasnyanskiy/clojure-news-feed
server/feed2/src/test/scala/info/glennengstrand/news/FeedSpec.scala
Scala
epl-1.0
5,257
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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...
hpe-cct/cct-core
src/main/scala/cogx/compiler/codegenerator/opencl/hyperkernels/fastfouriertransform/ClFFTDim3.scala
Scala
apache-2.0
1,565
package shared.requests.policies case class GetPolicyRequest ( pathParams: GetPolicyRequestPathParams ) case class GetPolicyRequestPathParams( organizationId: String, policyName: String )
beikern/foulkon-ui
shared/src/main/scala/shared/requests/policies/GetPolicyRequest.scala
Scala
apache-2.0
196
/* * Copyright 2016 LinkedIn Corp. * * 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 i...
nntnag17/dr-elephant-1
app/com/linkedin/drelephant/spark/SparkMetricsAggregator.scala
Scala
apache-2.0
6,237
/* * 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 ...
witgo/spark
core/src/test/scala/org/apache/spark/deploy/master/MasterSuite.scala
Scala
apache-2.0
44,184
/* *\\ ** Squants ** ** ** ** Scala Quantities and Units of Measure Library and DSL ** ** (c) 2013-2015, G...
typelevel/squants
shared/src/main/scala/squants/market/Money.scala
Scala
apache-2.0
21,364
/** * ____ __ ____ ____ ____,,___ ____ __ __ ____ * ( _ \\ /__\\ (_ )(_ _)( ___)/ __) ( _ \\( )( )( _ \\ Read * ) / /(__)\\ / /_ _)(_ )__) \\__ \\ )___/ )(__)( ) _ < README.txt * (_)\\_)(__)(__)(____)(____)(____)(___/ (__) (______)(____/ LICENSE.txt */ ...
razie/diesel-rx
diesel/src/main/scala/razie/wiki/model/Wikis.scala
Scala
apache-2.0
32,988
/* * 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 ...
lhaiesp/samza
samza-kafka/src/main/scala/org/apache/samza/system/kafka/KafkaSystemFactory.scala
Scala
apache-2.0
5,710
package com.sksamuel.elastic4s.http.search import com.sksamuel.elastic4s.HitReader case class MultiSearchResponse(responses: Seq[SearchResponse]) { def size: Int = responses.size def to[T: HitReader]: IndexedSeq[T] = responses.flatMap(_.hits.hits).map(_.to[T]).toIndexedSeq def safeTo[T: HitReader]: IndexedSeq[E...
FabienPennequin/elastic4s
elastic4s-http/src/main/scala/com/sksamuel/elastic4s/http/search/MultiSearchResponse.scala
Scala
apache-2.0
406
/** * The MIT License (MIT) Copyright (c) 2014 University of Applied Sciences, Berlin, Germany * For more detailed information, please read the licence.txt in the root directory. **/ package org.onepercent.Jobs //Scala imports import scala.util.{Failure, Success, Try} //JAVA imports import java.text.SimpleDateF...
isn0gud/onepercent
src/main/scala/org/onepercent/Jobs/TopHashtagJob.scala
Scala
mit
3,388
package gitbucket.core.controller.api import gitbucket.core.api._ import gitbucket.core.controller.ControllerBase import gitbucket.core.model.{Account, Issue} import gitbucket.core.service.{AccountService, IssueCreationService, IssuesService, MilestonesService} import gitbucket.core.service.IssuesService.IssueSearchCon...
takezoe/gitbucket
src/main/scala/gitbucket/core/controller/api/ApiIssueControllerBase.scala
Scala
apache-2.0
4,478
package jsentric import jsentric.queryTree.QueryTree import org.scalatest.{FunSuite, Matchers} import argonaut._ import Argonaut._ class QueryTests extends FunSuite with Matchers { import Jsentric._ test("Existance/nonexistance of field") { object Query1 extends Contract { val field = \?[String]("field...
HigherState/jsentric
src/test/scala/jsentric/QueryTests.scala
Scala
apache-2.0
7,900
package objektwerks.types import org.scalatest.funsuite.AnyFunSuite import org.scalatest.matchers.should.Matchers sealed trait Canine class Dog extends Canine class Wolf extends Canine class TypeVarianceTest extends AnyFunSuite with Matchers { test("invariant") { class Vet[T] { def heal[U](canine: T): T ...
objektwerks/scala
src/test/scala/objektwerks/types/TypeVarianceTest.scala
Scala
apache-2.0
2,178
package graphql.schema.marshalling import common.InputUnmarshallerGenerator import model._ import sangria.marshalling.FromInput object Unmarshallers extends InputUnmarshallerGenerator { implicit val addPostInputUnmarshaller: FromInput[AddPostInput] = inputUnmarshaller { input => AddPostInput( tit...
sysgears/apollo-universal-starter-kit
modules/post/server-scala/src/main/scala/graphql/schema/marshalling/Unmarshallers.scala
Scala
mit
1,514
package com.github.agourlay.cornichon.steps.wrapped import cats.data.StateT import cats.syntax.monoid._ import com.github.agourlay.cornichon.core._ import com.github.agourlay.cornichon.dsl.BlockScopedResource case class WithBlockScopedResource(nested: List[Step], resource: BlockScopedResource) extends WrapperStep { ...
agourlay/cornichon
cornichon-core/src/main/scala/com/github/agourlay/cornichon/steps/wrapped/WithBlockScopedResource.scala
Scala
apache-2.0
1,233
package im.actor.server.persist.contact import im.actor.server.model.contact.UserContact import slick.dbio.Effect.Write import im.actor.server.db.ActorPostgresDriver.api._ import slick.profile.FixedSqlAction private[contact] abstract class UserContactBase[T](tag: Tag, tname: String) extends Table[T](tag, tname) { d...
EaglesoftZJ/actor-platform
actor-server/actor-persist/src/main/scala/im/actor/server/persist/contact/UserContactRepo.scala
Scala
agpl-3.0
3,649
package org.apache.mesos.chronos.scheduler.jobs import java.util.concurrent.atomic.{AtomicBoolean, AtomicReference} import java.util.concurrent.{TimeUnit, Executors, Future} import java.util.logging.{Level, Logger} import akka.actor.ActorSystem import org.apache.mesos.chronos.scheduler.graph.JobGraph import org.apach...
BoopBoopBeepBoop/chronos
src/main/scala/org/apache/mesos/chronos/scheduler/jobs/JobScheduler.scala
Scala
apache-2.0
27,711
package scoverage.report import java.io.File class BaseReportWriter(sourceDirectories: Seq[File], outputDir: File) { // Source paths in canonical form WITH trailing file separator private val formattedSourcePaths: Seq[String] = sourceDirectories filter (_.isDirectory) map (_.getCanonicalPath + File.separator...
scoverage/scalac-scoverage-plugin
scalac-scoverage-plugin/src/main/scala/scoverage/report/BaseReportWriter.scala
Scala
apache-2.0
1,326
package tu.coreservice.action.way2think import tu.model.knowledge.communication.{ContextHelper, ShortTermMemory} import tu.model.knowledge.domain.ConceptNetwork import tu.model.knowledge.{Constant, Resource, SolvedIssue} import org.slf4j.LoggerFactory import tu.model.knowledge.narrative.Narrative /** * @author adel ...
keskival/2
coreservice.action.way2think/src/main/scala/tu/coreservice/action/way2think/SearchSolution.scala
Scala
gpl-3.0
2,403
/* * Copyright 2015 Foundational Development * * 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 appl...
rssvihla/datastax_work
spark_commons/commons/src/main/scala/pro/foundev/commons/benchmarking/OutputWriter.scala
Scala
apache-2.0
767
package slick.codegen import slick.SlickException import slick.ast.ColumnOption import slick.{model => m} import slick.model.ForeignKeyAction import slick.relational.RelationalProfile import slick.sql.SqlProfile /** Base implementation for a Source code String generator */ abstract class AbstractSourceCodeGenerator(m...
Radsaggi/slick
slick-codegen/src/main/scala/slick/codegen/AbstractSourceCodeGenerator.scala
Scala
bsd-2-clause
10,530
package fpscala.c03 import fpscala.datastructures.{List => FpList, Nil => FpNil} import org.scalatest.{FlatSpec, Matchers} class Exercise14Spec extends FlatSpec with Matchers { "foldRight append" should "work" in { Exercise14.append(FpList(1, 2, 3, 4), FpList(5, 6)) shouldBe FpList(1, 2, 3, 4, 5, 6) Exerci...
willtaylor/fpscala
src/test/scala/fpscala/c03/Exercise14Spec.scala
Scala
gpl-3.0
376
/* * Copyright 2016 okumin * * 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 wr...
okumin/influent
influent-transport/src/test/scala/influent/internal/nio/NioEventLoopTaskSpec.scala
Scala
apache-2.0
9,279
package wordcount import org.apache.hadoop.fs.Path import org.apache.hadoop.io.{IntWritable, Text} import org.apache.hadoop.mapred.{FileInputFormat, FileOutputFormat, JobConf, JobClient} import org.apache.hadoop.conf.Configured import org.apache.hadoop.util.{GenericOptionsParser, Tool, ToolRunner} // Enable existenti...
deanwampler/scala-hadoop
src/main/scala/wordcount/WordCount.scala
Scala
apache-2.0
4,297
/* * Copyright 2015 the original author or 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 applicab...
arkadius/micro-burn
src/main/scala/org/github/microburn/DevMain.scala
Scala
apache-2.0
719
import com.typesafe.sbt.web.SbtWeb.autoImport._ import play.Play.autoImport._ import play.sbt.PlayImport._ import play.sbt.routes.RoutesKeys._ import play.twirl.sbt.Import._ import PlayKeys._ import sbt._, Keys._ object ApplicationBuild extends Build { val appName = "idbase" val appVersion = "1.1" val appDepen...
ornicar/idbase
project/Build.scala
Scala
mit
1,202
package test import io.keen.client.scala.AttemptCountingEventStore import scala.collection.concurrent.TrieMap import scala.collection.mutable.ListBuffer import org.specs2.mutable.BeforeAfter abstract class AttemptCountingEventStoreSpecBase extends EventStoreSpecBase { var attemptCountingStore: AttemptCountingEven...
ches/KeenClient-Scala
src/test/scala/AttemptCountingEventStoreSpecBase.scala
Scala
mit
2,118
package cn.gridx.scala.lang.io.files import java.io.{File, FileWriter, PrintWriter} import scala.io.{BufferedSource, Source} /** * Created by tao on 6/27/15. */ object ReadWriteTextFiles { def main(args: Array[String]): Unit = { CreateFile("jg.txt") /* val a = "\u0000" val b =...
TaoXiao/Scala
lang/src/main/scala/cn/gridx/scala/lang/io/files/ReadWriteTextFiles.scala
Scala
apache-2.0
1,889
package org.concurrency.ch2 import scala.annotation.tailrec import scala.collection.mutable object Exs extends App { // 1 def parallel[A,B] (a: => A, b: => B): (A,B) = { var resA:A = null.asInstanceOf[A] var resB:B = null.asInstanceOf[B] val tA = Thread.thread { resA = a } val tB = Threa...
marcos-sb/concurrent-programming-scala
src/main/scala-2.11/org/concurrency/ch2/Exs.scala
Scala
apache-2.0
6,533
package com.lucidchart.piezo.admin.controllers import com.lucidchart.piezo.admin.utils.JobUtils import play.api._ import play.api.mvc._ import com.lucidchart.piezo.{JobHistoryModel, TriggerHistoryModel, WorkerSchedulerFactory} import org.quartz.impl.matchers.GroupMatcher import scala.collection.JavaConverters._ import...
pauldraper/piezo
admin/app/com/lucidchart/piezo/admin/controllers/Jobs.scala
Scala
apache-2.0
8,314
package tungsten import org.junit.Test import org.junit.Assert._ class RuntimeTest { def testModule(module: Module) { val errors = module.validate assertEquals(Nil, errors) } @Test def runtime64IsValid { testModule(Runtime.getRuntime(true)) } @Test def runtime32IsValid { testModule(Run...
jayconrod/tungsten
core/src/test/scala/tungsten/RuntimeTest.scala
Scala
gpl-2.0
350
package sampler.data import sampler.math.Random import sampler.Implicits._ import org.scalatest.Matchers import org.scalatest.FreeSpec import org.scalatest.BeforeAndAfter class EmpiricalTableTest extends FreeSpec with BeforeAndAfter with Matchers { implicit val r = Random var tolerance: Double = 1e-6 var d1: E...
tsaratoon/Sampler
sampler-core/src/test/scala/sampler/data/EmpiricalTableTest.scala
Scala
apache-2.0
2,090
package io.github.mandar2812.dynaml.optimization import breeze.linalg.{DenseVector, norm} import io.github.mandar2812.dynaml.models.gp.AbstractGPRegressionModel import org.apache.log4j.Logger /** * Created by mandar on 16/1/16. */ class GPMLOptimizer[I, T, M <: AbstractGPRegressionModel[T, I]](model: M) extends...
sisirkoppaka/bayeslearn
src/main/scala/io/github/mandar2812/dynaml/optimization/GPMLOptimizer.scala
Scala
apache-2.0
2,063
package collins.models.asset import play.api.libs.json.JsObject import play.api.libs.json.JsString import play.api.libs.json.JsValue import play.api.libs.json.Json import collins.models.Asset import collins.models.AssetMetaValue import collins.models.IpAddresses import collins.models.IpmiInfo import collins.models.Ll...
funzoneq/collins
app/collins/models/asset/AllAttributes.scala
Scala
apache-2.0
2,806
package com.avast.cactus.grpc.server trait GrpcService
avast/cactus
grpc-server/src/main/scala/com/avast/cactus/grpc/server/GrpcService.scala
Scala
apache-2.0
56
/* * The MIT License (MIT) * * Copyright (C) 2012 47 Degrees, LLC http://47deg.com [email protected] * * 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 with...
47deg/mvessel
samples/simple-android/project/build.scala
Scala
mit
735
package sri.relay.container import sri.core.ReactElement import sri.relay.{RelayComponentProps, RelayComponent} import sri.relay.container.RelayContainer.{Fragment, Fragments, RootQueries} import sri.relay.mutation.RelayMutationTransaction import sri.relay.query.{RelayFragmentReference, RelayQueryFragment} import sri....
hamazy/sri
relay/src/main/scala/sri/relay/container/RelayContainer.scala
Scala
apache-2.0
4,191
package meritserver.http.directives import akka.http.scaladsl.server.Directive0 import akka.http.scaladsl.server.Directives.authorize import meritserver.services.{TeamService, UserService} import meritserver.utils.Configuration /** * Created by boss on 11.02.17. */ trait AuthDirectives extends Configuration { d...
tafli/MeritServer
src/main/scala/meritserver/http/directives/AuthDirectives.scala
Scala
mit
1,246
package bloggers.fp_state_based import bloggers.fp_state_based.Blogger.uninitialized import bloggers.fp_state_based.Events.Deactivated import bloggers.fp_state_based.Events._ import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll, Matchers, FunSuite} class BloggersTest extends FunSuite with Matchers with BeforeAndAf...
speedcom/es_cqrs_example
src/test/scala/bloggers/fp_state_based/BloggersTest.scala
Scala
apache-2.0
3,469
package io.buoyant.namer.consul import com.twitter.finagle._ import com.twitter.finagle.stats.StatsReceiver import com.twitter.util._ import io.buoyant.consul.v1 import io.buoyant.namer.Metadata import scala.util.control.NoStackTrace private[consul] case class SvcKey(name: String, tag: Option[String]) { override de...
denverwilliams/linkerd
namer/consul/src/main/scala/io/buoyant/namer/consul/SvcAddr.scala
Scala
apache-2.0
4,848
package com.arcusys.learn.models.request import com.arcusys.learn.models.{ BaseSortableCollectionRequestModel, BaseCollectionRequest, BaseCollectionRequestModel } import com.arcusys.learn.service.util.Parameter import org.scalatra.{ ScalatraBase } /** * Created by Iliya Tryapitsin on 12.03.14. */ object BaseCollect...
ViLPy/Valamis
learn-portlet/src/main/scala/com/arcusys/learn/models/request/BaseCollectionFilteredRequest.scala
Scala
lgpl-3.0
931
/* * Copyright 2012 Twitter 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 agree...
chang2394/zipkin
zipkin-query-service/src/test/scala/com/twitter/zipkin/config/ConfigSpec.scala
Scala
apache-2.0
1,294
package it.almawave.kb.http.models import it.almawave.linkeddata.kb.catalog.models.URIWithLabel import it.almawave.linkeddata.kb.catalog.models.ItemByLanguage import it.almawave.linkeddata.kb.catalog.models.Version import it.almawave.linkeddata.kb.catalog.models.LANG // REVIEW case class OntologyMetaModel( id: Str...
seralf/daf-semantics
semantic_standardization/src/main/scala/it/almawave/kb/http/models/Models.scala
Scala
apache-2.0
864
package com.ponkotuy.intercept import io.lemonlabs.uri.Uri import io.netty.buffer.ByteBuf /** * * @author ponkotuy * Date: 14/02/18. */ trait Interceptor { def input(uri: Uri, requestContent: ByteBuf, responseContent: ByteBuf): Unit }
ttdoda/MyFleetGirls
client/src/main/scala/com/ponkotuy/intercept/Interceptor.scala
Scala
mit
243
/* * Copyright 2011 Arktekk AS * * 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 i...
arktekk/scala-atom
src/main/scala/no/arktekk/atom/extension/opensearch/Query.scala
Scala
apache-2.0
3,314
package org.eichelberger.sfc import com.typesafe.scalalogging.slf4j.LazyLogging import org.eichelberger.sfc.utils.Lexicographics import Lexicographics.Lexicographic import org.eichelberger.sfc.SpaceFillingCurve._ object RowMajorCurve { def apply(x: OrdinalNumber*): RowMajorCurve = new RowMajorCurve(OrdinalVector(x:...
cne1x/sfseize
src/main/scala/org/eichelberger/sfc/RowMajorCurve.scala
Scala
apache-2.0
2,409
package client import common._ import com.typesafe.config.ConfigFactory import akka.actor.{Actor, ActorRef, ActorLogging, ActorSystem, Props, AddressFromURIString} import akka.remote.routing.RemoteRouterConfig import akka.routing.RoundRobinPool import scala.util.control._ import scala.concurrent.duration._ import sca...
highlanderkev/ChatShare
twitterapp/client/src/main/scala/clientactor.scala
Scala
mit
4,581
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc.intera...
lrytz/scala
src/interactive/scala/tools/nsc/interactive/tests/core/TestSettings.scala
Scala
apache-2.0
1,026
/* * Copyright 2017 Sumo Logic * * 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 i...
SumoLogic/epigraph
java/codegen/src/main/scala/ws/epigraph/java/service/projections/req/ReqProjectionGen.scala
Scala
apache-2.0
5,011
package com.typesafe.akka.http.benchmark.handlers import akka.http.scaladsl.marshalling.{Marshaller, ToEntityMarshaller} import akka.http.scaladsl.model.HttpCharsets._ import akka.http.scaladsl.model.MediaTypes._ import akka.http.scaladsl.model._ import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl....
jeevatkm/FrameworkBenchmarks
frameworks/Scala/akka-http/src/main/scala/com/typesafe/akka/http/benchmark/handlers/FortunesHandler.scala
Scala
bsd-3-clause
1,142
package juan.ddd.proto import org.scalatest.concurrent.ScalaFutures import org.scalatest.{Matchers, WordSpec} import scala.concurrent.duration._ import spray.testkit.ScalatestRouteTest /** * Standard base class for tests. Includes the following features: * * - WordSpec style tests with Matcher DSL for assertion...
juan62/ddd-proto
src/test/scala/juan/ddd/proto/StandardSpec.scala
Scala
mit
633
package scala // #scalaexample import javax.net.ssl._ import play.core.ApplicationProvider import play.server.api._ class CustomSSLEngineProvider(appProvider: ApplicationProvider) extends SSLEngineProvider { override def createSSLEngine(): SSLEngine = { // change it to your custom implementation SSLContext...
jyotikamboj/container
pf-documentation/manual/detailedTopics/production/code/scala/CustomSSLEngineProvider.scala
Scala
mit
372
package org.jetbrains.plugins.scala.lang.refactoring.introduceVariable import java.{util => ju} import com.intellij.internal.statistic.UsageTrigger import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.openapi.util.{Pass, TextRange} import com.intellij.psi.PsiModifi...
triplequote/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/refactoring/introduceVariable/IntroduceExpressions.scala
Scala
apache-2.0
18,191
/* * Copyright 2007-2010 WorldWide Conferencing, LLC * * 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 applica...
wsaccaco/lift
framework/lift-base/lift-util/src/main/scala/net/liftweb/util/CombParserHelpers.scala
Scala
apache-2.0
7,743
/* * Copyright (c) 2014-2018 by The Monix Project Developers. * See the project homepage at: https://monix.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...
Wogan/monix
monix-reactive/shared/src/main/scala/monix/reactive/internal/util/PromiseCounter.scala
Scala
apache-2.0
1,574
package com.ing.baker.runtime.scaladsl import com.ing.baker.runtime.common.LanguageDataStructures.ScalaApi import com.ing.baker.runtime.{common, javadsl} import com.ing.baker.types.Value case class IngredientInstance(name: String, value: Value) extends common.IngredientInstance with ScalaApi { def asJava: javadsl....
ing-bank/baker
core/baker-interface/src/main/scala/com/ing/baker/runtime/scaladsl/IngredientInstance.scala
Scala
mit
384
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.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...
alexandru/monifu
monix-tail/shared/src/test/scala/monix/tail/TypeClassLawsForIterantTaskSuite.scala
Scala
apache-2.0
2,088
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package kafka.manager.utils import java.util.Properties import kafka.manager.model._ trait LogkafkaNewConfigs { def configNames : Set[String] def configMaps: Map[String, String] def validate(p...
xuwei-k/kafka-manager
app/kafka/manager/utils/LogkafkaNewConfigs.scala
Scala
apache-2.0
1,518
/* * Copyright 2017 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...
liquidarmour/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frsse2008/boxes/ACQ8114.scala
Scala
apache-2.0
827
package chana.jpql import chana.jpql.nodes.JPQLParser import chana.jpql.rats.JPQLGrammar import java.io.StringReader import org.scalatest.BeforeAndAfterAll import org.scalatest.Matchers import org.scalatest.WordSpecLike import xtc.tree.Node class JPQLGrammarSpec extends WordSpecLike with Matchers with BeforeAndAfterA...
wandoulabs/chana
src/test/scala/chana/jpql/JPQLGrammarSpec.scala
Scala
apache-2.0
9,869
import markets.StackableActor /** Financial conduct authority supervises/regulates LSE. */ class FinancialConductAuthority extends StackableActor { override def receive: Receive = { super.receive } }
ScalABM/models-library
farmer-patelli-zovko/src/main/scala-2.11/FinancialConductAuthority.scala
Scala
apache-2.0
211
/** * Copyright (c) 2017-2018, Benjamin Fradet, and other contributors. * * 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...
BenFradet/struct-type-encoder
core/src/main/scala/ste/selector.scala
Scala
apache-2.0
6,807
/*** * Copyright 2014 Rackspace US, 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 applica...
tylerroyal/api-checker
core/src/main/scala/com/rackspace/com/papi/components/checker/handler/ConsoleResultHandler.scala
Scala
apache-2.0
1,608
package at.logic.gapt.proofs.hoare import at.logic.gapt.expr._ object usedVariables { def apply( p: Program ): List[FOLVar] = p match { case Assign( x, t ) => x :: freeVariables( t ).toList case IfElse( c, a, b ) => freeVariables( c ).toList ++ usedVariables( a ) ++ usedVariables( b ) case ForLoop(...
gebner/gapt
core/src/main/scala/at/logic/gapt/proofs/hoare/utils.scala
Scala
gpl-3.0
2,377
package org.bitcoins.core.serializers.script import org.bitcoins.core.protocol.script.ScriptPubKey import org.bitcoins.core.script.bitwise.OP_EQUALVERIFY import org.bitcoins.core.script.constant._ import org.bitcoins.core.script.crypto.{ OP_CHECKSIG, OP_HASH160 } import org.bitcoins.core.script.stack.OP_DUP import or...
Christewart/bitcoin-s-core
src/test/scala/org/bitcoins/core/serializers/script/RawScriptPubKeyParserTest.scala
Scala
mit
2,964
package ch.wsl.box.rest.logic.cron import ch.wsl.box.jdbc.Connection import ch.wsl.box.model.boxentities.BoxCron import ch.wsl.box.jdbc.PostgresProfile.api._ import ch.wsl.box.services.Services import scribe.Logging import scala.concurrent.ExecutionContext class BoxCronLoader(cronScheduler:CronScheduler) extends Log...
Insubric/box
server/src/main/scala/ch/wsl/box/rest/logic/cron/BoxCronLoader.scala
Scala
apache-2.0
685
package org.sgine.ui import org.powerscala.Resource /** * @author Matt Hicks <[email protected]> */ object Scale9Example extends UI { val scale9 = Scale9(Resource("scale9test.png"), 50.0, 50.0, 450.0, 450.0) scale9.size.width := 200.0 contents += scale9 }
Axiometry/sgine
ui/src/test/scala/org/sgine/ui/Scale9Example.scala
Scala
bsd-3-clause
264
package scala.pickling.`null`.binary import org.scalatest.FunSuite import scala.pickling._, scala.pickling.Defaults._, binary._ import static._ case class D(d: String) case class C(x: String, y: Int, d: D) class NullBinaryTest extends FunSuite { test("main") { val c = C(null, 0, null) implicit val pd = imp...
scala/pickling
core/src/test/scala/scala/pickling/binary/NullBinaryTest.scala
Scala
bsd-3-clause
687
/* * Beangle, Agile Development Scaffold and Toolkits. * * Copyright © 2005, The Beangle Software. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License...
beangle/beangle
style/src/main/scala/org/beangle/style/maven/WSCheckMojo.scala
Scala
lgpl-3.0
2,719
/* * Copyright 2016 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/kantan.regex
java8/src/main/scala/kantan/regex/java8/package.scala
Scala
apache-2.0
2,288
// Copyright (C) Maxime MORGE 2017 package org.scaia.solver.asia import org.scaia.asia._ /** * Local search algorithm which returns a "good" matching * @param pb to solve * @param rule to apply (maximize the utilitarian/egalitarian welfare */ class HillClimbingSolver(pb : IAProblem, rule: SocialRule) exten...
maximemorge/ScaIA
src/main/scala/org/scaia/solver/asia/HillClimbingSolver.scala
Scala
gpl-3.0
3,392
package com.chrisomeara.pillar import java.util.Date import java.io.InputStream import scala.collection.mutable import scala.io.Source object Parser { def apply(): Parser = new Parser private val MatchAttribute = """^-- (authoredAt|description|up|down):(.*)$""".r } class PartialMigration { var description: St...
weirded/pillar
src/main/scala/com/chrisomeara/pillar/Parser.scala
Scala
mit
2,803
package be.studiocredo.aws object AwsConfigKeys { val accessKey: String = "aws.access-key" val secretKey: String = "aws.secret-key" val keyPairId: String = "aws.key-pair.id" val keyPairPrivateKeyResource: String = "aws.key-pair.private-key.resource" val keyPairPrivateKeyPath: String = "aws.key-pair.private-k...
studiocredo/ticket-reservation
app/be/studiocredo/aws/AwsConfigKeys.scala
Scala
apache-2.0
663