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
/* * Copyright 2012-2014 Comcast Cable Communications Management, 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 * * Unl...
weggert/sirius
src/main/scala/com/comcast/xfinity/sirius/api/impl/membership/FileBasedClusterConfig.scala
Scala
apache-2.0
1,559
package org.jetbrains.plugins.scala package lang package psi package impl package expr import com.intellij.lang.ASTNode import org.jetbrains.plugins.scala.lang.psi.api.expr.ScConstrExpr /** * @author Alexander Podkhalyuzin * Date: 22.02.2008 */ class ScConstrExprImpl(node: ASTNode) extends ScalaPsiElementImpl(node) w...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/expr/ScConstrExprImpl.scala
Scala
apache-2.0
398
package com.autodesk.tct import akka.actor.{ActorSystem, Props} import com.autodesk.tct.challenger.cassandra.CassandraClient import com.autodesk.tct.challenger.data.repositories.RepositoryFactory import com.autodesk.tct.services.UserService import com.autodesk.tct.share.{ApplyPolicy, ApplyRegistrationPolicy} import pl...
adsk-cp-tct/challenger-backend
app/com/autodesk/tct/Boot.scala
Scala
gpl-3.0
1,537
package cromwell.backend.impl.spark import akka.actor.{ActorRef, Props} import cromwell.backend._ import cromwell.backend.io.JobPathsWithDocker import cromwell.backend.sfs.SharedFileSystemExpressionFunctions import cromwell.core.CallContext import wom.expression.IoFunctionSet import wom.graph.TaskCallNode case class ...
ohsu-comp-bio/cromwell
supportedBackends/spark/src/main/scala/cromwell/backend/impl/spark/SparkBackendFactory.scala
Scala
bsd-3-clause
1,916
/* * 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
mllib/src/main/scala/org/apache/spark/mllib/feature/StandardScaler.scala
Scala
apache-2.0
6,949
/*********************************************************************** * Copyright (c) 2013-2020 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...
aheyne/geomesa
geomesa-accumulo/geomesa-accumulo-jobs/src/test/scala/org/locationtech/geomesa/jobs/accumulo/AccumuloJobUtilsTest.scala
Scala
apache-2.0
3,433
// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2014-2015 Preferred Networks and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License version 2.1...
jubatus/jubatus-on-yarn
jubatusonyarn/jubatus-on-yarn-application-master/src/main/scala/us/jubat/yarn/applicationmaster/ApplicationMasterServlet.scala
Scala
lgpl-2.1
4,280
/* * 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 ...
ron8hu/spark
core/src/main/scala/org/apache/spark/executor/Executor.scala
Scala
apache-2.0
38,250
package im.actor.server.migrations import java.time.Instant import akka.actor.{ Props, ActorSystem } import akka.persistence.RecoveryCompleted import im.actor.server.event.TSEvent import im.actor.server.group.{ GroupEvents, GroupOffice } import im.actor.server.persist.GroupRepo import slick.driver.PostgresDriver.api....
ljshj/actor-platform
actor-server/actor-core/src/main/scala/im/actor/server/migrations/GroupCreatorMemberMigrator.scala
Scala
mit
2,834
/* * 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 ...
chuckchen/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveShowCreateTableSuite.scala
Scala
apache-2.0
13,730
/* * 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 ...
elbamos/Zeppelin-With-R
r/src/main/scala/org/apache/zeppelin/rinterpreter/RInterpreter.scala
Scala
apache-2.0
7,074
package test class A
pdalpra/sbt
sbt/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/A.scala
Scala
bsd-3-clause
22
package clashcode.wordguess.logic import scala.io.Source import org.apache.commons.lang.StringEscapeUtils import java.io.Writer import java.io.File import java.io.FileWriter trait GameStatePersistence { val separatorChar = '§' def loadFrom(src: Source): GameState = { val wordStates = (for { line <- ...
scala-vienna/wordguess-server
app/clashcode/wordguess/logic/GameStatePersistence.scala
Scala
mit
2,070
/* * 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...
intel-analytics/BigDL
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/utils/tf/loaders/Conv3DBackpropFilterV2.scala
Scala
apache-2.0
2,460
package scalanlp.tensor.sparse import scalala.scalar.Scalar import scalala.tensor.dense.DenseVector import scalala.tensor.mutable.{VectorLike, Vector} import java.util.Arrays import scalala.operators.{OpSub, OpAdd, BinaryOp} import scalala.generic.collection.{CanMapKeyValuePairs, CanMapValues} /** * * More or less ...
MLnick/scalanlp-core
data/src/main/scala/scalanlp/tensor/sparse/OldSparseVector.scala
Scala
apache-2.0
15,158
package com.mentatlabs.nsa package scalac package options /* -Xprint-pos * =========== * 2.1.7 - 2.5.1: Print tree positions (as offsets) // previously -Xprintpos * 2.6.0 - 2.8.2: Print tree positions (as offsets) * 2.9.0 - 2.12.0: Print tree positions, as offsets. */ case object ScalacXPrintPos ex...
mentat-labs/sbt-nsa
nsa-core/src/main/scala/com/mentatlabs/nsa/scalac/options/advanced/ScalacXPrintPos.scala
Scala
bsd-3-clause
385
trait Base { type exp <: Exp trait Exp { } } trait BaseNum extends Base { class Num(val value: Int) extends Exp { } type BaseNum = Num } trait BasePlus extends Base { class Plus(val left: exp, val right: exp) extends Exp { } type BasePlus = Plus } trait BaseNeg extends Base { class Neg(val ter...
ElvisResearchGroup/L42Docs
CaseStudyEcoop2018/src/scalaEP/mainFullyModularizedWithTests.scala
Scala
lgpl-3.0
13,169
/* * Copyright 2021 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...
hmrc/gmp-frontend
app/forms/BulkReferenceForm.scala
Scala
apache-2.0
2,613
import scala.reflect.ClassTag // new style: use ClassTag import org.scalacheck._ import Prop._ import Gen._ import Arbitrary._ import util._ import Buildable._ import scala.collection.mutable.ArraySeq object Test extends Properties("Array") { /** At this moment the authentic scalacheck Array Builder/Arb bits are com...
felixmulder/scala
test/files/scalacheck/array-new.scala
Scala
bsd-3-clause
1,128
/* * Copyright 2014-2022 Netflix, 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...
Netflix/atlas
atlas-jmh/src/main/scala/com/netflix/atlas/json/SeqDeser.scala
Scala
apache-2.0
2,131
/** * Copyright 2011-2016 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...
thkluge/gatling
gatling-http/src/main/scala/io/gatling/http/action/async/ws/WsClose.scala
Scala
apache-2.0
1,130
package pbdirect trait Pos { val _pos: Int } object Pos { implicit def posOrdering[P <: Pos]: Ordering[P] = new Ordering[P] { override def compare(x: P, y: P): Int = x._pos - y._pos } trait _0 extends Pos { override val _pos = 0 } trait _1 extends Pos { override val _pos = 1 } trait _2 extends Pos { ...
btlines/pbdirect
shared/src/main/scala/pbdirect/Pos.scala
Scala
mit
5,279
/* * 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 ...
rekhajoshm/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
Scala
apache-2.0
92,238
/* * 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-eval/shared/src/test/scala/monix/eval/TaskLiftSuite.scala
Scala
apache-2.0
2,842
package pl.writeonly.son2.path.providers import pl.writeonly.son2.apis.converters.Converter import pl.writeonly.son2.funs.liners.{Liner, LinerOpt} import pl.writeonly.son2.funs.streamers.{Streamer, StreamerPipeForeach} import pl.writeonly.son2.path.chain.ChainNotationPairPath import pl.writeonly.son2.path.core.{Config...
writeonly/son2
scallions-impl/scallions-path/src/test/scala/pl/writeonly/son2/path/providers/StrictVectorSpec.scala
Scala
apache-2.0
2,077
package com.tribetron.editor.io import org.json4s._ import org.json4s.JsonDSL._ import org.json4s.jackson.JsonMethods._ import com.tribetron.editor.objects.TribetronMap import java.io.{ FileNotFoundException, IOException, File, FileOutputStream } object MapFileUtil { private val folder = "maps/" private val postF...
Humakt83/tribetron-editor
src/main/scala/com/tribetron/editor/io/MapFileUtil.scala
Scala
mit
693
package bifrost.tokenBoxRegistry import java.io.File import bifrost.forging.ForgingSettings import bifrost.scorexMod.GenericMinimalState.VersionTag import bifrost.state.BifrostState.{BX, GSC} import bifrost.transaction.box._ import bifrost.transaction.box.proposition.PublicKey25519Proposition import bifrost.utils.Sco...
Topl/Project-Bifrost
src/main/scala/bifrost/tokenBoxRegistry/TokenBoxRegistry.scala
Scala
mpl-2.0
5,991
/* Title: Pure/Tools/update_comments.scala Author: Makarius Update formal comments in outer syntax: \\<comment> \\<open>...\\<close> */ package isabelle import scala.annotation.tailrec object Update_Comments { def update_comments(path: Path) { def make_comment(tok: Token): String = Sym...
larsrh/libisabelle
modules/pide/2019-RC4/src/main/scala/Tools/update_comments.scala
Scala
apache-2.0
1,920
package test import org.scalatest.WordSpec class ExampleWordSpec extends WordSpec { "A Set" when { "empty" should { "have size 0" in { assert(Set.empty.size == 0) } "produce NoSuchElementException when head is invoked" in { intercept[NoSuchElementException] { Set.em...
SRGOM/scalatest
scalatest-test.js/src/test/scala/test/ExampleWordSpec.scala
Scala
apache-2.0
358
package breeze.stats.distributions /** * * @author dlwh */ trait SufficientStatistic[T<:SufficientStatistic[T]] { this: T=> def +(t: T):T def *(weight: Double):T }
ktakagaki/breeze
src/main/scala/breeze/stats/distributions/SufficientStatistic.scala
Scala
apache-2.0
173
/** * 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-core/src/test/scala/io/gatling/core/check/extractor/jsonpath/JsonSample.scala
Scala
apache-2.0
903
// Copyright 2012 Foursquare Labs Inc. All Rights Reserved. package io.fsq.twofishes.util trait TwofishesLogger { def ifDebug(formatSpecifier: String, va: Any*): Unit def logDuration[T](ostrichKey: String, what: String)(f: => T): T def ifLevelDebug(level: Int, formatSpecifier: String, va: Any*): Unit def getLi...
foursquare/fsqio
src/jvm/io/fsq/twofishes/util/Logger.scala
Scala
apache-2.0
340
package common.build package object controllers { type AssetsBuilder = _root_.controllers.AssetsBuilder type Assets = _root_.controllers.Assets }
wsargent/playframework
documentation/manual/working/commonGuide/build/code/SubProjectAssets.scala
Scala
apache-2.0
152
package controllers import javax.inject.Inject import java.util.UUID import play.twirl.api.Html import play.api.mvc.{Action, Controller} import play.api.libs.ws._ import play.api.libs.json.{ Json, JsObject } import play.api.Configuration import scala.concurrent.{ ExecutionContext, Future } import db.dao.UsersDao impo...
trifectalabs/roadquality
web/app/controllers/Main.scala
Scala
bsd-3-clause
1,672
package com.novocode.junit import com.novocode.junit.Ansi._ import java.util.HashSet import scala.util.Try class RunSettings private (val color: Boolean, val decodeScalaNames: Boolean, val quiet: Boolean, val verbose: Boolean, val logAssert: Boolean, val logExceptionClass: Boolean) { private val ignoreRu...
mdedetrich/scala-js
junit-runtime/src/main/scala/com/novocode/junit/RunSettings.scala
Scala
bsd-3-clause
1,847
package sgwlpr.outpost import sgwlpr.packets._ import sgwlpr.events._ import sgwlpr.DistrictInfo import g2c._ import c2g._ import sgwlpr.db._ import sgwlpr.types._ import sgwlpr.world.Request class RequestHandler extends Handler { val world = context.actorFor("../world") private def inventoryPagePackets(stream...
th0br0/sgwlpr
outpost/src/main/scala/sgwlpr/outpost/RequestHandler.scala
Scala
agpl-3.0
1,486
package org.neo4j.spark import java.util import java.util.{Collections, NoSuchElementException} import org.apache.spark.Partition import org.apache.spark.SparkContext import org.apache.spark.TaskContext import org.apache.spark._ import org.apache.spark.rdd.RDD import org.apache.spark.rdd.RDD import org.neo4j.driver.v...
Mageswaran1989/aja
src/main/scala/org/neo4j/spark/TupleRDD.scala
Scala
apache-2.0
1,429
/* * 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 ...
cloud-fan/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/SubqueryBroadcastExec.scala
Scala
apache-2.0
5,396
package scrawler.actors.parser import java.net.URL import org.jsoup.Jsoup import org.jsoup.select.Elements class JSoupParser extends PageParser { override def fetchElements(url: URL, element: String): Elements = { Jsoup.connect(url.toString).timeout(0).get().select(element) } }
defpearlpilot/webcrawler
app/scrawler/actors/parser/JSoupParser.scala
Scala
gpl-3.0
292
/* * 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 ...
mylog00/flink
flink-tests/src/test/scala/org/apache/flink/api/scala/migration/StatefulJobSavepointMigrationITCase.scala
Scala
apache-2.0
12,603
/* * Copyright 2014-2021 Netflix, 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...
copperlight/atlas
atlas-core/src/main/scala/com/netflix/atlas/core/model/CollectorStats.scala
Scala
apache-2.0
2,373
package com.ing.baker.runtime.model import cats.effect.Sync import com.ing.baker.il.CompiledRecipe import com.ing.baker.il.petrinet.Transition import com.ing.baker.runtime.scaladsl.EventInstance import com.typesafe.scalalogging.Logger import org.joda.time.Period import org.joda.time.format.{PeriodFormatter, PeriodForm...
ing-bank/baker
core/baker-interface/src/main/scala/com/ing/baker/runtime/model/BakerLogging.scala
Scala
mit
5,305
package slick.memory import scala.language.{implicitConversions, existentials} import scala.collection.mutable.Builder import scala.reflect.ClassTag import scala.util.control.NonFatal import slick.ast._ import slick.ast.TypeUtil._ import slick.basic.{FixedBasicAction, FixedBasicStreamingAction} import slick.compiler....
knoldus/slick-1
slick/src/main/scala/slick/memory/MemoryProfile.scala
Scala
bsd-2-clause
10,872
/* * 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...
intel-analytics/BigDL
scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/integration/torch/VolumetricMaxPoolingSpec.scala
Scala
apache-2.0
16,533
package org.scaladebugger.test.info /** * Tests accessing fields in a variety of different scenarios. */ object Fields { trait TestTrait { val publicBaseFinalPrimitiveField: Int = 999 val publicBaseFinalObjectField: String = "test" var publicBaseMutablePrimitiveField: Int = 1000 var publicBaseMutab...
chipsenkbeil/scala-debugger
scala-debugger-test/src/main/scala/org/scaladebugger/test/info/Fields.scala
Scala
apache-2.0
2,347
package com.cdgore.test.mlspark import org.scalatest.FunSuite import org.scalatest.matchers.ShouldMatchers import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import com.cdgore.mlspark.SoftmaxLR import org.jblas.DoubleMatrix import org.jblas.MatrixFunctions import scala.util.Random class S...
cdgore/mlspark
src/test/scala/com/cdgore/mlspark/SoftmaxLRTest.scala
Scala
mit
2,764
/* * 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 ...
tillrohrmann/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/calls/IfCallGen.scala
Scala
apache-2.0
2,915
/* ************************************************************************************* * Copyright 2011 Normation SAS ************************************************************************************* * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
Kegeruneku/rudder
rudder-core/src/test/scala/com/normation/rudder/services/queries/TestStringQueryParser.scala
Scala
agpl-3.0
4,490
/** * 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 ...
tdanford/adam
adam-core/src/test/scala/org/bdgenomics/adam/rdd/LeftOuterShuffleRegionJoinSuite.scala
Scala
apache-2.0
1,647
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundatio...
HuangLS/neo4j
community/cypher/cypher/src/main/scala/org/neo4j/cypher/CypherOption.scala
Scala
apache-2.0
1,521
/** * 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...
iulianu/avro-scala-macro-annotations
examples/spark/src/main/scala/MyKryoRegistrator.scala
Scala
apache-2.0
1,349
package hiddenargs import org.scalatest._ class ExampleSpec extends FlatSpec with Matchers { private def example(name: String, run: => Unit): Unit = s"The example '$name'" should "be valid" in (run) example("count", new count()) example("factorial", new factorial()) example("fibonacci", new fibon...
keddelzz/hidden-args
examples/src/test/scala/hiddenargs/ExampleSpec.scala
Scala
mit
447
package com.twitter.algebird import org.scalatest._ class TupleAggregatorsTest extends WordSpec with Matchers { // This gives you an implicit conversion from tuples of aggregators // to aggregator of tuples val data = List(1, 3, 2, 0, 5, 6) val MinAgg = Aggregator.min[Int] val longData = data.map{ _.toLon...
nvoron23/algebird
algebird-test/src/test/scala/com/twitter/algebird/TupleAggregatorsTest.scala
Scala
apache-2.0
47,038
package com.saikocat.meownificent.service import akka.actor.{ActorRefFactory, Actor} import spray.routing.{HttpService, Route} import com.saikocat.meownificent.configuration.Settings import com.saikocat.meownificent.protocol.ApiMediaType import com.saikocat.meownificent.directive.AcceptHeaderDirective import com.sai...
saikocat/meownificent
rest/src/main/scala/com/saikocat/meownificent/service/RootService.scala
Scala
mit
754
/* * This file is part of Kiama. * * Copyright (C) 2013-2015 Anthony M Sloane, Macquarie University. * * Kiama 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, or ...
solomono/kiama
library/src/org/kiama/output/Filters.scala
Scala
gpl-3.0
3,437
package asia import akka.actor.ActorSystem import com.typesafe.config.ConfigFactory import org.scaia.util.asia.example.DilemmaPref._ import org.scaia.asia.{Activity, Coalition, Group, Matching} import org.scaia.solver.asia._ import org.scaia.util.MathUtils._ import org.scalatest.FlatSpec class TestDilemmaPref extend...
maximemorge/ScaIA
src/test/scala/asia/TestDilemmaPref.scala
Scala
gpl-3.0
9,035
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Mon Sep 7 15:05:06 EDT 2009 * @see LICENSE (MIT style license file). */ package scalation.util //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::...
NBKlepp/fda
scalation_1.2/src/main/scala/scalation/util/Monitor.scala
Scala
mit
1,915
import sbt._ import Keys._ import scala.language.implicitConversions import scala.language.postfixOps object Common { def newProject(projectName: String, base: File): Project = Project(projectName, base).settings( name := projectName, organization := "JetBrains", scalaVersion := Versions.scalaV...
triggerNZ/intellij-scala
project/Common.scala
Scala
apache-2.0
936
package com.twitter.scalding.bdd import cascading.flow.FlowException import com.twitter.scalding.typed.TDsl import com.twitter.scalding._ import org.scalatest.{ Matchers, WordSpec } import scala.math._ import scala.collection.mutable case class UserWithGender(name: String, gender: String) case class UserWithAge(name...
sriramkrishnan/scalding
scalding-core/src/test/scala/com/twitter/scalding/bdd/TypedApiTest.scala
Scala
apache-2.0
7,093
// Copyright (C) 2011-2012 the original author or authors. // See the LICENCE.txt file distributed with this work for additional // information regarding copyright ownership. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
firebase/scalastyle
src/test/scala/org/scalastyle/SourceFileParserTest.scala
Scala
apache-2.0
1,458
package st import org.scalatest.FreeSpec class FreeSpecTest extends FreeSpec { "A Set" - { "when empty" - { "should have size 0" in { assert(Set.empty.isEmpty) } "should produce NoSuchElementException when head is invoked" in { intercept[NoSuchElementException] { Set...
objektwerks/scala.test
src/test/scala/st/FreeSpecTest.scala
Scala
mit
361
package com.sksamuel.scrimage.filter import org.scalatest.{ OneInstancePerTest, BeforeAndAfter, FunSuite } import com.sksamuel.scrimage.Image /** @author Stephen Samuel */ class EdgeFilterTest extends FunSuite with BeforeAndAfter with OneInstancePerTest { val original = getClass.getResourceAsStream("/bird_small.pn...
carlosFattor/scrimage
scrimage-filters/src/test/scala/com/sksamuel/scrimage/filter/EdgeFilterTest.scala
Scala
apache-2.0
541
package db.scalikejdbc import org.intracer.wmua.cmd.SetCurrentRound import org.specs2.mutable.Specification class RoundSpec extends Specification with TestDb { sequential stopOnFail "rounds" should { "be empty" in { withDb { val rounds = roundDao.findAll() rounds.size === 0 } ...
intracer/wlxjury
test/db/scalikejdbc/RoundSpec.scala
Scala
apache-2.0
2,424
/* * Copyright (c) 2018. Fengguo Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 * which accompanies this distribution, and is available at * https://www.apache.org/licenses/LICENSE-2.0 * * Detailed contributors ar...
arguslab/Argus-SAF
jawa/src/test/scala/org/argus/jawa/flow/util/UtilTest.scala
Scala
apache-2.0
805
package org.jetbrains.plugins.scala.worksheet.settings.ui import com.intellij.openapi.module.Module import org.jetbrains.plugins.scala.worksheet.settings.WorksheetExternalRunType private case class WorksheetSettingsData( isInteractive: Boolean, isMakeBeforeRun: Boolean, runType: WorksheetExternalRunType, cpMo...
JetBrains/intellij-scala
scala/worksheet/src/org/jetbrains/plugins/scala/worksheet/settings/ui/WorksheetSettingsData.scala
Scala
apache-2.0
362
package ch5 import scala.annotation.tailrec import Stream._ object Exercise2 { implicit class StreamExt[+A](val self: Stream[A]) extends AnyVal { def take(n: Int): Stream[A] = self match { case Cons(h, t) if n > 1 => cons(h(), t().take(n - 1)) case Cons(h, _) if n == 1 => cons(h(), empty) case ...
rucka/fpinscala
src/main/scala/fpinscala/ch5/Exercise2.scala
Scala
gpl-2.0
805
package com.twitter.finagle.filter import com.twitter.concurrent.AsyncSemaphore import com.twitter.finagle._ import com.twitter.finagle.tracing.Annotation.BinaryAnnotation import com.twitter.finagle.tracing.{BufferingTracer, Record, Trace} import com.twitter.util.{Await, Future} import org.scalatest.funsuite.AnyFunSui...
twitter/finagle
finagle-core/src/test/scala/com/twitter/finagle/filter/RequestSemaphoreFilterTest.scala
Scala
apache-2.0
1,834
package models.quiz import models.{QuestionId, SkillId} case class Skill2Question(skillId: SkillId, questionId: QuestionId)
kristiankime/calc-tutor
app/models/quiz/Skill2Question.scala
Scala
mit
125
/* * Copyright 2017 PayPal * * 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 ...
Harikiranvuyyuru/squbs
squbs-actorregistry/src/main/scala/org/squbs/actorregistry/ActorLookup.scala
Scala
apache-2.0
7,040
/* * Licensed to Cloudera, Inc. under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Cloudera, Inc. licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use thi...
vmanoria/bluemix-hue-filebrowser
hue-3.8.1-bluemix/apps/spark/java/livy-server/src/test/scala/com/cloudera/hue/livy/server/interactive/BaseSessionSpec.scala
Scala
gpl-2.0
2,903
/******************************************************************************* Copyright (c) 2013-2014, KAIST, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **********************************************************...
darkrsw/safe
src/main/scala/kr/ac/kaist/jsaf/analysis/typing/models/DOMHtml5/Storage.scala
Scala
bsd-3-clause
7,368
/** * Copyright 2011-2016 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...
ryez/gatling
gatling-commons/src/main/scala/io/gatling/commons/util/PushbackIterator.scala
Scala
apache-2.0
1,054
/* * Copyright 2018 http4s.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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
http4s/http4s
scalatags/src/main/scala/org/http4s/scalatags/ScalatagsInstances.scala
Scala
apache-2.0
1,214
/* * Copyright 2014 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 agreed t...
zhoffice/zipkin
zipkin-redis/src/test/scala/com/twitter/zipkin/storage/redis/RedisSpanStoreSpec.scala
Scala
apache-2.0
1,117
package scala.collection.immutable /** * This class allows to create custom integer values that have a * hash code that differs from the value itself. * * The main use-case for this class is to simulate hash-collisions * when testing collection data structures. */ class CustomHashInt(val value: Int, val ha...
scala/scala
test/junit/scala/collection/immutable/CustomHashInt.scala
Scala
apache-2.0
709
package com.nikolastojiljkovic.quilltrait import io.getquill.{ MysqlAsyncContext, MysqlEscape } package object mysql { object testContext extends MysqlAsyncContext[MysqlEscape]("testMysqlDB") with AnnotatedTraitSupport }
nstojiljkovic/quill-trait
quill-trait-core/jvm/src/test/scala/com/nikolastojiljkovic/quilltrait/mysql/package.scala
Scala
apache-2.0
225
/* * Copyright (c) 2015. Paweł Cesar Sanjuan Szklarz. * * 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...
paweld2/Service-Architecture-Model
infrastructure/src/main/scala/eu/pmsoft/sam/see/CanonicalTransportLayer.scala
Scala
apache-2.0
17,902
/** * 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 appli...
aprescott/diffa
agent/src/main/scala/net/lshift/diffa/agent/notifications/SmtpNotifier.scala
Scala
apache-2.0
3,259
package tastytest import scala.collection.mutable import tastytest.Suite.Context import scala.util.control.NonFatal import scala.reflect.ClassTag class Suite(val name: String) { private[this] val counts = mutable.Map.empty[String, Int] private[this] val tests = mutable.ArrayBuffer.empty[(Context, () => Unit)] ...
lrytz/scala
test/tasty/run/pre/tastytest/Suite.scala
Scala
apache-2.0
1,966
/* * The Reactive Summit Austin talk * Copyright (C) 2016 Jan Machacek * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
eigengo/reactive-summit-2016
vision-scene-classification/src/main/scala/org/eigengo/rsa/scene/v100/SceneClassifier.scala
Scala
gpl-3.0
3,404
/** * 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...
unix1986/universe
tool/kafka-0.8.1.1-src/core/src/main/scala/kafka/common/ControllerMovedException.scala
Scala
bsd-2-clause
1,016
/** * Digi Configgy is a library for handling configurations * * Copyright 2009 Robey Pointer <robeypointer@gmail.com> * Copyright 2012-2013 Alexey Aksenov <ezh@ezh.msk.ru> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You m...
ezh/digi-configgy
src/main/scala/org/digimead/configgy/JmxWrapper.scala
Scala
apache-2.0
4,787
package org.jetbrains.plugins.scala package codeInspection.methodSignature import com.intellij.codeInspection.LocalInspectionTool import com.intellij.testFramework.EditorTestUtil import com.intellij.testFramework.fixtures.CodeInsightTestFixture import org.jetbrains.plugins.scala.codeInspection.{InspectionBundle, Scala...
loskutov/intellij-scala
test/org/jetbrains/plugins/scala/codeInspection/methodSignature/UnitMethodDefinedLikeProcedureInspectionTest.scala
Scala
apache-2.0
2,305
package gitbucket.core.model trait DeployKeyComponent extends TemplateComponent { self: Profile => import profile.api._ lazy val DeployKeys = TableQuery[DeployKeys] class DeployKeys(tag: Tag) extends Table[DeployKey](tag, "DEPLOY_KEY") with BasicTemplate { val deployKeyId = column[Int]("DEPLOY_KEY_ID", O A...
imeszaros/gitbucket
src/main/scala/gitbucket/core/model/DeployKey.scala
Scala
apache-2.0
974
class RandomNumberIterator extends scala.collection.Iterator[Int] { def hasNext = true def next = scala.util.Random.nextInt(10) } object Migration { val a = new RandomNumberIterator a.collect { case x => x.toString } }
grzegorzbalcerek/scala-book-examples
examples/Migration.scala
Scala
mit
227
/** * This file is part of the TA Buddy project. * Copyright (c) 2013 Alexey Aksenov ezh@ezh.msk.ru * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Global License version 3 * as published by the Free Software Foundation with the addition of t...
digimead/digi-TABuddy-desktop
part-core-ui/src/main/scala/org/digimead/tabuddy/desktop/core/ui/definition/widget/SCompositeHSash.scala
Scala
agpl-3.0
2,764
package io.getquill.context.jdbc.postgres import io.getquill.context.sql.CaseClassQuerySpec import org.scalatest.Matchers._ class CaseClassQueryJdbcSpec extends CaseClassQuerySpec { val context = testContext import testContext._ override def beforeAll = { testContext.transaction { testContext.run(qu...
mentegy/quill
quill-jdbc/src/test/scala/io/getquill/context/jdbc/postgres/CaseClassQueryJdbcSpec.scala
Scala
apache-2.0
2,599
package me.ivanyu.luscinia.entities /** * Node log operation */ sealed trait LogOperation case object EmptyOperation extends LogOperation case object SomeOperation extends LogOperation /** * Log entry * @param term term of entry * @param operation operation */ case class LogEntry(term: Term, operation: LogOpera...
ivanyu/luscinia
node/src/main/scala/me/ivanyu/luscinia/entities/LogEntry.scala
Scala
unlicense
326
package com.sksamuel.elastic4s.handlers.searches.suggestion import com.sksamuel.elastic4s.EnumConversions import com.sksamuel.elastic4s.json.{XContentBuilder, XContentFactory} import com.sksamuel.elastic4s.requests.searches.suggestion.TermSuggestion object TermSuggestionBuilderFn { def apply(term: TermSuggestion): ...
sksamuel/elastic4s
elastic4s-handlers/src/main/scala/com/sksamuel/elastic4s/handlers/searches/suggestion/TermSuggestionBuilderFn.scala
Scala
apache-2.0
1,419
package uscala.net object MapViewShim { implicit class MapViewImplicitShim[K, V](map: Map[K, V]) { def mapValuesShim[W](f: (V) => W): Map[K, W] = map.mapValues(f) } }
albertpastrana/uscala
url/src/main/scala-2.13-/uscala/net/MapViewShim.scala
Scala
mit
176
// Copyright (C) Maxime MORGE 2017 package org.scaia.experiments import akka.actor.ActorSystem import org.scaia.asia._ import org.scaia.solver.ASIA2HedonicSolver import org.scaia.solver.asia._ import org.scaia.solver.hedonic._ /** * Main app to test multiples random examples * */ object TestHedonicSolver{ val de...
maximemorge/ScaIA
src/main/scala/org/scaia/experiments/TestHedonicSolver.scala
Scala
gpl-3.0
2,010
package org.bitcoins.dlc.testgen import java.io.File import org.bitcoins.core.currency.Satoshis import org.bitcoins.core.wallet.fee.SatoshisPerVirtualByte import play.api.libs.json.{JsResult, JsValue} import scala.concurrent.Future object DLCFeeTestVectorGen extends TestVectorGen[DLCFeeTestVector, DLCFeeTestVec...
bitcoin-s/bitcoin-s
dlc-test/src/test/scala/org/bitcoins/dlc/testgen/DLCFeeTestVectorGen.scala
Scala
mit
2,933
/* * Copyright 2014 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 agreed to...
twitter/storehaus
storehaus-http/src/test/scala/com/twitter/storehaus/http/HttpStringStoreProperties.scala
Scala
apache-2.0
4,109
/* * 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
core/src/main/scala/org/apache/spark/metrics/source/JVMCPUSource.scala
Scala
apache-2.0
2,035
/* * Copyright 2015 Webtrends (http://www.webtrends.com) * * See the LICENCE.txt file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
mjwallin1/wookiee-spray
src/test/scala/com/webtrends/harness/component/spray/SprayTestConfig.scala
Scala
apache-2.0
1,641
package `with spaces` { // error class Foo } package +.* { // error // error class Bar } package object `mixed_*` { // error class Baz }
lampepfl/dotty
tests/neg-custom-args/fatal-warnings/symbolic-packages.scala
Scala
apache-2.0
145
package sbn.core.models.graph import sbn.core.CustomSpec import sbn.core.io.DataFileLoader import sbn.core.variables.{Variable, VariableFactory} import scalax.collection.GraphEdge.DiEdge import scalax.collection.immutable.Graph class DirectedGraphSpec extends CustomSpec{ val dataSet = DataFileLoader.loadImmutable...
fernandoj92/sbn
core/src/test/scala/sbn/core/models/graph/DirectedGraphSpec.scala
Scala
apache-2.0
3,376
/* * 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/maven
src/main/scala/org/beangle/maven/plugin/container/DependenciesMojo.scala
Scala
lgpl-3.0
3,043
/* * 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 ...
zimmermatt/flink
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/catalog/InMemoryExternalCatalogTest.scala
Scala
apache-2.0
5,272
/* * Copyright 2021 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...
hmrc/amls-frontend
test/views/supervision/which_professional_bodySpec.scala
Scala
apache-2.0
2,773