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
trait Foo[T] trait FooSub[T] extends Foo[T] { type Super = Foo[T] } object FooSub { implicit def fooSub[T: Bar]: FooSub[T] = new FooSub[T] {} } trait Bar[T] class Quux object Quux { implicit val barQuux: Bar[Quux] = new Bar[Quux] {} val fooSubQuux = implicitly[FooSub[Quux]] implicit val fooQuux: fooSubQ...
lrytz/scala
test/files/run/implicit-caching.scala
Scala
apache-2.0
398
package aims.core import akka.http.model.{ HttpMethod, HttpMethods, MediaType, MediaTypes } import scala.annotation.StaticAnnotation /** * Component: * Description: * Date: 2014/12/23 * @author Andy Ai */ object Annotations { final case class pattern(pattern: String, method: HttpMethod = HttpMethods.GET) ext...
aiyanbo/aims
aims-core/src/main/scala/aims/core/Annotations.scala
Scala
mit
542
package com.tpalanga.test.config import com.tpalanga.testlib.test.config.RestServiceConfig import com.typesafe.config.Config object TestConfig { def apply(config: Config): TestConfig = new TestConfig( restServiceConfig = RestServiceConfig(config.getConfig("remote.service")) ) } case class TestConfig(...
tpalanga/akka-http-microservice
newsletterServiceTest/src/test/scala/com/tpalanga/test/config/TestConfig.scala
Scala
unlicense
358
final class PulseOx extends ICE_MDS { // Metadata... override val vmds : Map[String, ICE_VMD] = Map( "pulseox" -> new ICE_PulseOx_VMD { override val status : ICE_VMD_Status = new ICE_VMD_Status { override val exchange : ICE_Get_Exchange = new GetExchange {} } override val channels ...
scbarrett/aadl-translator
mdcf-architect-documentation/src/site/sphinx/dml-build/language/PulseOx.scala
Scala
epl-1.0
907
package me.yingrui.segment.filter import me.yingrui.segment.conf.SegmentConfiguration import me.yingrui.segment.core.SegmentResult import me.yingrui.segment.dict.POSUtil import me.yingrui.segment.filter.ner.HmmNameFilter import org.junit.{Assert, Test} class HmmNameFilterTest { var filter = HmmNameFilter(SegmentCo...
yingrui/mahjong
lib-segment/src/test/scala/me/yingrui/segment/filter/HmmNameFilterTest.scala
Scala
gpl-3.0
10,339
package com.twitter.finagle.ssl import org.scalatest.funsuite.AnyFunSuite class ApplicationProtocolsTest extends AnyFunSuite { test("Supported with alpn or npn values succeeds") { val appProtos = ApplicationProtocols.Supported(Seq("h2", "http/1.1")) assert(appProtos == ApplicationProtocols.Supported(Seq("h...
twitter/finagle
finagle-core/src/test/scala/com/twitter/finagle/ssl/ApplicationProtocolsTest.scala
Scala
apache-2.0
3,608
// ' Project: smath // Module: commons / ode // Description: Adapter between FirstOrderSystem and math-commons FirstOrderDifferentialEquations // // Copyright (c) 2015 Johannes Kastner <jokade@karchedon.de> // Distributed under the MIT License (see included file LICENSE) package biz.enef.smath.ode....
jokade/smath
commons/src/main/scala/biz/enef/smath/ode/commons/FirstOrderSystemWrapper.scala
Scala
mit
804
/* * 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 ...
maropu/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
Scala
apache-2.0
45,171
package edu.depauw.csc.scala.graphics3d; import javax.media.j3d.Appearance import javax.media.j3d.ColoringAttributes import javax.media.j3d.TransformGroup import javax.media.j3d.Transform3D import javax.media.j3d.BranchGroup import javax.media.j3d.Material import javax.vecmath.Color3f import javax.vecmath.Vector3d imp...
bhoward/EscalatorOld
ScalaGraphics/src/edu/depauw/csc/scala/graphics3d/Cone.scala
Scala
apache-2.0
5,166
/* * Copyright 2014 Adam Rosenberger * * 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...
arosenberger/nalloc_2.10
sandbox/src/main/scala/org/nalloc/bitb/kcits/sandbox/foreach/BlockInlineLambda.scala
Scala
apache-2.0
1,149
// scalac: -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global import scala.tools.testkit.async.Async._ import scala.concurrent.duration.Duration object Test extends App { test def func1() = async { "hello" } def func(a: Option[Boolean]) = async {a match { case null | None => await(fun...
scala/scala
test/async/jvm/concurrent_patternAlternativeBothAnnotations.scala
Scala
apache-2.0
432
package bad.robot.temperature import org.specs2.matcher.DisjunctionMatchers._ import org.specs2.mutable.Specification class TemperatureTest extends Specification { "Celsius" >> { Temperature(23.125).celsius must_== 23.125 } "Fahrenheit" >> { Temperature(23.125).fahrenheit must_== 73.625 } "Disp...
tobyweston/temperature-machine
src/test/scala/bad/robot/temperature/TemperatureTest.scala
Scala
apache-2.0
840
package com.scalableQuality.quick.core.fileComponentDescriptions import com.scalableQuality.quick.core.Reporting.ComparisonBetweenTwoColumns import com.scalableQuality.quick.core.checks.{Check, CheckColumnValue} import com.scalableQuality.quick.core.fileComponentDescriptions.errorMessages.DelimitedColumnDescriptionErr...
MouslihAbdelhakim/Quick
src/main/scala/com/scalableQuality/quick/core/fileComponentDescriptions/DelimitedColumnDescription.scala
Scala
apache-2.0
6,754
package reactivemongo.api.commands.bson import reactivemongo.bson.{ BSONBooleanLike, BSONDocument, BSONDocumentReader, BSONDocumentWriter } import reactivemongo.api.ReadConcern import reactivemongo.api.commands.{ Command, CommandError, UnitBox } @deprecated("Internal: will be made private", "0.16.0") object ...
ornicar/ReactiveMongo
driver/src/main/scala/api/commands/bson/bsoncommands.scala
Scala
apache-2.0
1,965
/* * 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 ...
apache/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/calls/JsonObjectCallGen.scala
Scala
apache-2.0
3,877
package controllers.stack import scalaz._ import Scalaz._ import scalaz.Validation._ import scala.concurrent.Future import net.liftweb.json._ import net.liftweb.json.JsonParser._ import controllers.Constants._ import io.megam.auth.funnel._ import io.megam.auth.funnel.FunnelErrors._ import io.megam.auth.stack.Account...
megamsys/verticegateway
app/controllers/stack/Results.scala
Scala
mit
775
/* * Copyright 2022 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/self-service-time-to-pay-frontend
test/pagespecs/pages/NotOnIaPage.scala
Scala
apache-2.0
3,513
package edu.cmu.cs.oak.lib.array import edu.cmu.cs.oak.core.OakInterpreter import edu.cmu.cs.oak.value.OakValue import edu.cmu.cs.oak.lib.InterpreterPlugin import edu.cmu.cs.oak.lib.InterpreterPluginProvider import edu.cmu.cs.oak.env.Environment import java.nio.file.Path import com.caucho.quercus.expr.Expr import edu....
smba/oak
edu.cmu.cs.oak/src/main/scala/edu/cmu/cs/oak/lib/array/ArraySlice.scala
Scala
lgpl-3.0
1,883
/* * 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 ...
savaki/samza
samza-kafka/src/main/scala/org/apache/samza/system/kafka/KafkaSystemAdmin.scala
Scala
apache-2.0
17,168
/* * 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
jnsaf/src/main/scala/org/argus/jnsaf/submitter/ApkSubmitter.scala
Scala
apache-2.0
2,045
package org.jetbrains.plugins.scala package lang package completion import java.io.File import com.intellij.codeInsight.completion.{CodeCompletionHandlerBase, CompletionType} import com.intellij.codeInsight.lookup.impl.LookupImpl import com.intellij.codeInsight.lookup.{LookupElement, LookupElementPresentation, LookupM...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/completion/CompletionTestBase.scala
Scala
apache-2.0
4,023
package net.snowflake.spark.snowflake import java.sql.Connection import net.snowflake.spark.snowflake.Parameters.MergedParameters import net.snowflake.spark.snowflake.io.{CloudStorage, SupportedFormat} import net.snowflake.spark.snowflake.io.SupportedFormat.SupportedFormat import net.snowflake.spark.snowflake.Default...
snowflakedb/spark-snowflakedb
src/main/scala/net/snowflake/spark/snowflake/streaming/package.scala
Scala
apache-2.0
6,787
package chrome.sockets.tcp package object bindings { type SocketId = Int }
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/sockets/tcp/bindings/package.scala
Scala
mit
80
/* * 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 ...
dbtsai/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/jdbc/connection/DB2ConnectionProviderSuite.scala
Scala
apache-2.0
1,227
/* * Copyright (c) 2015 Andreas Wolf * * See te LICENSE file in the project root for further copyright information. */ package info.andreaswolf.roadhopper.road object Turn { def splitSegmentBeforeTurn(turn: Turn): Seq[RoadSegment] = { splitSegmentBeforeTurn(turn.from, turn.to) } def splitSegmentBeforeTurn(f...
andreaswolf/roadhopper
src/main/scala/info/andreaswolf/roadhopper/road/Turn.scala
Scala
mit
1,780
/* Copyright (c) 2009, 2010 Hanno Braun <mail@hannobraun.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 applicable law or...
hannobraun/ScalableDynamics
src/main/scala/com/hannobraun/sd/collision/CollisionDetector.scala
Scala
apache-2.0
1,723
package org.riedelcastro.frontlets.programs import org.scalatest.FunSpec import org.scalatest.matchers.MustMatchers import org.riedelcastro.frontlets.Frontlet /** * @author Sebastian Riedel */ class CompilerSpec extends FunSpec with MustMatchers{ import TermImplicits._ describe("A compiler") { it ("should...
riedelcastro/frontlets
src/test/scala/org/riedelcastro/frontlets/programs/CompilerSpec.scala
Scala
apache-2.0
1,205
package chrome.app.window.bindings import scala.scalajs.js object CreateWindowOptions { def apply(id: js.UndefOr[String] = js.undefined, innerBounds: js.UndefOr[BoundsSpecification] = js.undefined, outerBounds: js.UndefOr[BoundsSpecification] = js.undefined, alphaEnabled: js.Und...
amsayk/scala-js-chrome
bindings/src/main/scala/chrome/app/window/bindings/CreateWindowOptions.scala
Scala
mit
1,624
/* * 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 ...
abhishek-ch/incubator-ignite
modules/visor-console/src/test/scala/org/apache/ignite/visor/commands/deploy/VisorDeployCommandSpec.scala
Scala
apache-2.0
1,250
package com.baeldung.scala /** * Some utility methods. * * @author Chandra Prakash * */ object Utils { def average(x : Double, y : Double): Double = (x + y) / 2 def randomLessThan(d : Double): Double = { var random = 0d do { random = Math.random() } while (random >= d) random } def...
Niky4000/UsefulUtils
projects/tutorials-master/tutorials-master/core-scala/src/main/scala/com/baeldung/scala/Utils.scala
Scala
gpl-3.0
650
package com.mehmetakiftutuncu.muezzinapi.data import java.io.FileInputStream import com.google.auth.oauth2.GoogleCredentials import com.google.firebase.database.{DataSnapshot, DatabaseReference, FirebaseDatabase} import com.google.firebase.{FirebaseApp, FirebaseOptions} import com.google.inject.{ImplementedBy, Single...
mehmetakiftutuncu/MuezzinAPI
app/com/mehmetakiftutuncu/muezzinapi/data/FirebaseRealtimeDatabase.scala
Scala
mit
2,339
package com.twitter.finagle.stats /** * Provides a `StatsReceiver` that prints nice summaries. Handy for * short-lived programs where you want summaries. */ import com.google.common.util.concurrent.AtomicLongMap import com.google.common.cache.{CacheBuilder, CacheLoader} import scala.collection.JavaConverters._ imp...
kristofa/finagle
finagle-core/src/main/scala/com/twitter/finagle/stats/SummarizingStatsReceiver.scala
Scala
apache-2.0
3,753
/* * 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...
wangyixiaohuihui/spark2-annotation
core/src/main/scala/org/apache/spark/rpc/RpcCallContext.scala
Scala
apache-2.0
1,383
package com.typesafe.slick.testkit.tests import org.junit.Assert._ import com.typesafe.slick.testkit.util.{TestkitTest, TestDB} class ZipTest(val tdb: TestDB) extends TestkitTest { import tdb.profile.simple._ object Categories extends Table[(Int, String)]("categories") { def id = column[Int]("id") def na...
zefonseca/slick-1.0.0-scala.2.11.1
slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/ZipTest.scala
Scala
bsd-2-clause
1,627
package com.twitter.finagle.http.filter import com.twitter.finagle.Service import com.twitter.finagle.http.{Request, Response} import com.twitter.finagle.stats.MetricBuilder.{CounterType, HistogramType} import com.twitter.finagle.stats.{InMemoryStatsReceiver, MetricBuilder} import com.twitter.util.{Await, Duration, Fu...
twitter/finagle
finagle-http/src/test/scala/com/twitter/finagle/http/filter/StatsFilterTest.scala
Scala
apache-2.0
2,269
package knot.net.http import knot.data.ByteNode import knot.net.http.models.ParserStates._ import knot.net.http.models._ import knot.net.http.models.headers.{`Content-Length`, `Transfer-Encoding`} import scala.annotation.tailrec import scala.collection.mutable.ListBuffer class HttpRequestParser(headerParser: HttpHea...
defvar/knot
knot-net/src/main/scala/knot/net/http/HttpRequestParser.scala
Scala
mit
4,207
/* * 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 ...
ConeyLiu/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/noop/NoopStreamSuite.scala
Scala
apache-2.0
2,945
package com.blstream.sbtsearchmavenplugin import org.specs2.mutable.Specification class ArtifactsPrinterTest extends Specification with ArtifactsPrinter { "printArtifacts" should { "properly format artifacts output" >> { val artifacts = List( Artifact("org.scalaz", "z", "1"), Artifact...
blstream/sbt-search-maven-plugin
src/test/scala/com/blstream/sbtsearchmavenplugin/ArtifactsPrinterTest.scala
Scala
mit
692
/* * 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 ...
aljoscha/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/rules/physical/stream/StreamExecIntervalJoinRule.scala
Scala
apache-2.0
3,298
/** * ***************************************************************************** * Copyright (c) 2013 Guillaume DUBUISSON DUPLESSIS <guillaume.dubuisson_duplessis@insa-rouen.fr>. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0...
GuillaumeDD/scala99problems
src/main/scala/list/P23/sol02.scala
Scala
gpl-3.0
1,535
/* * Copyright 2014 Nick Edwards * * 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...
njeuk/dbmapper-macros
src/main/scala/com/github/njeuk/dbmapper/macros/CodeToSql.scala
Scala
apache-2.0
1,137
package korolev.server import java.util.concurrent.ConcurrentLinkedQueue import bridge.JSAccess import korolev.Async import korolev.Async.Promise import scala.annotation.switch import scala.collection.concurrent.TrieMap import scala.collection.mutable import scala.language.higherKinds /** * @author Aleksey Fomkin ...
PhilAndrew/JumpMicro
JMSangriaGraphql/src/main/scala/korolev/server/JsonQueuedJsAccess.scala
Scala
mit
2,818
package org.jetbrains.plugins.scala package lang package completion package filters.toplevel import psi.api.base.patterns.{ScCaseClause, ScStableReferenceElementPattern, ScReferencePattern} import psi.api.base.ScStableCodeReferenceElement import com.intellij.lang.ASTNode import psi.api.ScalaFile; import com.intellij.p...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/completion/filters/toplevel/TemplateFilter.scala
Scala
apache-2.0
2,270
/* * 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 agreed t...
prat0318/zipkin
zipkin-sampler/src/test/scala/com/twitter/zipkin/sampler/StoreRateCheckTest.scala
Scala
apache-2.0
2,981
/* * * 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 * distri...
flaminem/flamy
src/main/scala/com/flaminem/flamy/parsing/hive/HiveToken.scala
Scala
apache-2.0
3,278
/* * 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/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/RewriteDistinctAggregates.scala
Scala
apache-2.0
12,766
/* * 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/ct-calculations
src/main/scala/uk/gov/hmrc/ct/box/Linked.scala
Scala
apache-2.0
715
package controllers import play.api.mvc._ object Application extends Controller { def index = Action { Ok(views.html.miruo()) } }
kamekoopa/redis-miruo
app/controllers/Application.scala
Scala
apache-2.0
142
import sbt._ import Keys._ import play.twirl.sbt.Import.TwirlKeys object ApplicationBuild extends Build { val appName = "play2-auth" val playVersion = play.core.PlayVersion.current lazy val baseSettings = Seq( version := "0.15.0", scalaVersion := "2.11.8", crossSca...
tototoshi/play2-auth
project/Build.scala
Scala
apache-2.0
7,616
class ann(i: Int) extends scala.annotation.Annotation class cfann(x: String) extends annotation.ConstantAnnotation // annotations on abstract types abstract class C2[@deprecated @ann(1) T <: Number, V] abstract class C3 { @ann(2) type X <: Number } object Test { // bug #1028 ...
lrytz/scala
test/files/pos/annotations.scala
Scala
apache-2.0
2,317
/* * 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 ...
aosagie/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetReadSupport.scala
Scala
apache-2.0
16,598
package ch.epfl.bluebrain.nexus.iam.index import java.util.concurrent.ConcurrentHashMap import java.util.function.BiFunction import cats.Applicative import ch.epfl.bluebrain.nexus.iam.acls._ import ch.epfl.bluebrain.nexus.iam.config.AppConfig.{HttpConfig, PermissionsConfig} import ch.epfl.bluebrain.nexus.iam.index.InM...
hygt/nexus-iam
src/main/scala/ch/epfl/bluebrain/nexus/iam/index/InMemoryAclsTree.scala
Scala
apache-2.0
5,363
/** * Copyright 2015 Mohiva Organisation (license at mohiva dot 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 req...
cemcatik/play-silhouette
silhouette/test/com/mohiva/play/silhouette/impl/providers/oauth2/FoursquareProviderSpec.scala
Scala
apache-2.0
9,378
package dtable.dblayer import shared.model.{Account, User} object AccountDB { import slick.jdbc.SQLiteProfile.api._ val userDb = UserDB class Accounts(tag: Tag) extends Table[Account](tag, "accounts") { import slick.jdbc.SQLiteProfile.api._ def * = (user, token, active) <> (Account.tupled, Account.un...
SergiiPolokhalo/DTable
server/src/main/scala/dtable/dblayer/AccountDB.scala
Scala
apache-2.0
654
package domino import org.osgi.framework.{ ServiceReference, BundleContext } /** * Wrapper for a service reference which adds methods to resolve the corresponding service. * * @constructor Wraps the given service reference. * @param ref Wrapped service reference * @param bundleContext Bundle context for resolvi...
helgoboss/domino
src/main/scala/domino/RichServiceReference.scala
Scala
mit
1,047
package wrappers.scala { import scalan._ import special.wrappers.WrappersModule trait WOptions extends Base { self: WrappersModule => @External("Option") @ContainerType @FunctorType @Liftable @WithMethodCallRecognizers trait WOption[A] extends Def[WOption[A]] { implicit def eA: Elem[A]; @Externa...
ScorexFoundation/sigmastate-interpreter
library/src/main/scala/wrappers/scala/WOptions.scala
Scala
mit
870
package quisp.enums import spray.json.{JsString, JsValue, JsonFormat} /** * Enum classes are represented by implementations of this trait * A companion object will contain case objects, one for each valid value * The simplified class name of the companion object is returned by toString() * @author rodneykinney *...
rodneykinney/quisp
src/main/scala/quisp/enums/EnumTrait.scala
Scala
apache-2.0
688
package blended.container.context.impl.internal import java.io.File import java.util.Properties import scala.collection.JavaConverters._ import blended.container.context.api.ContainerContext import blended.updater.config.{ LocalOverlays, OverlayRef, RuntimeConfig } import blended.util.logging.Logger import com.types...
lefou/blended
blended.container.context.impl/src/main/scala/blended/container/context/impl/internal/ContainerContextImpl.scala
Scala
apache-2.0
4,671
package com.seanshubin.web.sync.domain import java.nio.file.Path trait Logger { def summary(logPath: Path, downloadResults: Seq[DownloadResult]) }
SeanShubin/web-sync
domain/src/main/scala/com/seanshubin/web/sync/domain/Logger.scala
Scala
unlicense
151
package org.jetbrains.plugins.scala package lang package psi package api package toplevel package imports import org.jetbrains.plugins.scala.lang.psi.api.base.ScStableCodeReferenceElement /** * @author Alexander Podkhalyuzin * Date: 20.02.2008 */ trait ScImportSelector extends ScalaPsiElement { def im...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/toplevel/imports/ScImportSelector.scala
Scala
apache-2.0
465
import boxity.BlackboxParserMacroSuite import suites.IncorrectParserMacros class BlackboxMetaIncorrectMacros extends BlackboxParserMacroSuite with IncorrectParserMacros
Duhemm/parsermacros
tests/src/test/scala/BlackboxMetaIncorrectMacros.scala
Scala
bsd-3-clause
170
/** * 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...
TiVo/kafka
core/src/test/scala/unit/kafka/coordinator/group/GroupCoordinatorTest.scala
Scala
apache-2.0
186,767
package com.signalcollect.dcop.evaluation.maxsum import com.signalcollect.dcop.benchmark.BenchmarkConfiguration import com.signalcollect.configuration.ExecutionMode import com.signalcollect.dcop.benchmark.BenchmarkModes import scala.collection.mutable.ListBuffer class MaxSumAlgorithm(config: BenchmarkConfiguration) {...
gmazlami/dcop-maxsum
src/main/scala/com/signalcollect/dcop/evaluation/maxsum/MaxSumAlgorithm.scala
Scala
apache-2.0
4,890
/* * 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 ...
ptkool/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala
Scala
apache-2.0
28,255
package org.jetbrains.plugins.scala.project.gradle import java.io.File import java.util import com.intellij.openapi.externalSystem.model.project.ProjectData import com.intellij.openapi.externalSystem.model.{DataNode, Key} import com.intellij.openapi.module.ModuleManager import org.jetbrains.plugins.gradle.model.data....
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/project/gradle/ScalaGradleDataServiceTest.scala
Scala
apache-2.0
6,974
/* * 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
app/models/bankdetails/BankAccountRegistered.scala
Scala
apache-2.0
1,426
/* * The MIT License (MIT) * * Copyright (c) 2013 Association du Paris Java User Group. * * 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 limitat...
dadoonet/cfp-devoxx
app/library/GitUtils.scala
Scala
mit
2,119
/* * 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 ...
aokolnychyi/spark
core/src/test/scala/org/apache/spark/util/AccumulatorV2Suite.scala
Scala
apache-2.0
4,120
package com.chinthaka.imagesimilarity.db import java.sql.{ResultSet, Statement, PreparedStatement, DriverManager, Connection} import java.util.logging.Logger import com.chinthaka.imagesimilarity.util.GlobalContext import com.chinthaka.imagesimilarity.storage.ImageMetadataStorage /** * @author - Eran Withana (eran.c...
echinthaka/ImageSimilarity
src/main/scala/com/chinthaka/imagesimilarity/db/PostgresImageMetadataStorage.scala
Scala
apache-2.0
5,953
/* * 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...
lhfei/spark-in-action
spark-2.x/src/main/scala/org/apache/spark/examples/ml/PolynomialExpansionExample.scala
Scala
apache-2.0
1,775
package net.takasing import org.slf4j.LoggerFactory /** * @author takasing */ object HelloWorld extends App { val logger = LoggerFactory.getLogger(this.getClass()) def logging(x : String): Unit = { logger.info(x) } def sumOfInt(n: Int, m: Int): BigInt = { var a : BigInt = 0 for (i <- n to m) a +...
takasing/scala-playground
src/main/scala/net/takasing/HelloWorld.scala
Scala
mit
412
/* * 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/test/scala/com/asakusafw/spark/compiler/operator/user/join/BroadcastMasterCheckOperatorCompilerSpec.scala
Scala
apache-2.0
17,293
package scala.generator.mock import com.bryzek.apidoc.generator.v0.models.{File, InvocationForm} import generator.ServiceFileNames import lib.generator.CodeGenerator import lib.Text._ import scala.models.ApidocComments import scala.generator._ object MockClientGenerator { object Play24 extends CodeGenerator { ...
Seanstoppable/apidoc-generator
scala-generator/src/main/scala/models/generator/mock/MockClientGenerator.scala
Scala
mit
5,636
package scala.collection.parallel import org.scalacheck._ import org.scalacheck.Gen import org.scalacheck.Gen._ import org.scalacheck.Prop._ import org.scalacheck.Properties import scala.collection._ import scala.collection.parallel._ abstract class ParallelSeqCheck[T](collName: String) extends ParallelIterabl...
shimib/scala
test/scalacheck/scala/collection/parallel/ParallelSeqCheck.scala
Scala
bsd-3-clause
10,905
package net.sansa_stack.rdf.spark.qualityassessment.metrics.conciseness import org.apache.jena.graph.Triple import org.apache.spark.rdd.RDD /** * @author Gezim Sejdiu */ object ExtensionalConciseness { /** * The extensional conciseness * This metric metric checks for redundant resources in the assessed data...
SANSA-Stack/SANSA-RDF
sansa-rdf/sansa-rdf-spark/src/main/scala/net/sansa_stack/rdf/spark/qualityassessment/metrics/conciseness/ExtensionalConciseness.scala
Scala
apache-2.0
1,452
// Copyright 2014 Commonwealth Bank of Australia // // 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...
CommBank/maestro
maestro-schema/src/main/scala/au/com/cba/omnia/maestro/schema/taste/Sample.scala
Scala
apache-2.0
3,558
/** * This file is part of mycollab-web. * * mycollab-web 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 version. * * mycollab-web is d...
maduhu/mycollab
mycollab-web/src/main/scala/com/esofthead/mycollab/module/project/view/settings/UserUrlResolver.scala
Scala
agpl-3.0
4,480
package boilerplate import jsactor.bridge.client.SocketManager import jsactor.bridge.client.util.RemoteActorListener import jsactor.logging.impl.JsPrintlnActorLoggerFactory import jsactor.{JsActorRef, JsActorSystem} import org.scalajs.dom import scala.scalajs.js.Dynamic /** * Created by Milan Satala * Date: 7.6.20...
msatala/wunderx
wunderx-client/src/main/scala/boilerplate/WebsocketJsActors.scala
Scala
mit
1,131
package com.cave.metrics.data.kinesis import java.util.{List => JList} import com.amazonaws.services.kinesis.clientlibrary.interfaces.{IRecordProcessor, IRecordProcessorCheckpointer} import com.amazonaws.services.kinesis.clientlibrary.types.ShutdownReason import com.amazonaws.services.kinesis.model.Record import com....
gilt/cave
core/src/main/scala/com/cave/metrics/data/kinesis/RecordProcessor.scala
Scala
mit
2,289
package hello import org.springframework.context.annotation.{Configuration, ComponentScan} import org.springframework.boot.autoconfigure.EnableAutoConfiguration import org.springframework.boot; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; ...
JudeMartin/CMPE-273-Lab-1
src/main/scala/hello/HelloConfig.scala
Scala
mit
813
/* * 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 ...
sgururajshetty/carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/filterexpr/TestGrtLessFilter.scala
Scala
apache-2.0
3,578
package common import java.io._ import java.security.MessageDigest import java.text.SimpleDateFormat import java.util import java.util.concurrent.Executors import java.util.zip.{GZIPInputStream, GZIPOutputStream} import java.util.{Date, TimeZone, UUID} import com.fasterxml.jackson.databind.{DeserializationFeature, Ob...
livehl/paipai
src/main/scala/common/Tool.scala
Scala
apache-2.0
11,915
package com.github.libsml.aggregation.evaluation /** * Created by huangyu on 15/9/9. */ object Evaluation { }
libsml/libsml
aggregation/src/main/scala/com/github/libsml/aggregation/evaluation/Evaluation.scala
Scala
apache-2.0
116
package co.blocke.scalajack package json.mapkeys import co.blocke.scala_reflection._ import TestUtil._ import munit._ import munit.internal.console import co.blocke.scalajack.json.JSON class ListCollKeys() extends FunSuite: val sj = co.blocke.scalajack.ScalaJack() test("List as key") { describe( "----...
gzoller/ScalaJack
core/src/test/scala/co.blocke.scalajack/json/mapkeys/ListCollKeys.scala
Scala
mit
5,686
package util /** * An object containing the Functor typeclass */ object Functors { type Id[+T] = T /** * F has a map on it */ abstract class Functor[F[_]] { def map[T, U](f: T => U): F[T] => F[U] } implicit object IdFunctor extends Functor[Id] { def map[T, U](f: T => U) = (x: T) => f(x) }...
manojo/parsequery
macros/src/main/scala/util/Functor.scala
Scala
mit
596
package com.karasiq.shadowcloud.metadata.tika import java.io.File import akka.stream.scaladsl.{FileIO, Keep} import akka.stream.testkit.scaladsl.TestSink import akka.util.ByteString import com.karasiq.shadowcloud.metadata.Metadata import com.karasiq.shadowcloud.test.utils.{ActorSpec, ActorSpecImplicits} import org.ap...
Karasiq/shadowcloud
metadata/tika/src/test/scala/com/karasiq/shadowcloud/metadata/tika/TikaMetadataProviderTest.scala
Scala
apache-2.0
2,557
package com.dukeforthought.lsystem import scala.annotation.tailrec case class LSystem( constants : Set[Char], axiom : Seq[Char], rules : Map[Char, Seq[Char]], iterations : Int) { // Check that there are no rules associated with constants rules.keys foreach { symbol => require( ...
krnhotwings/L-system
src/com/dukeforthought/lsystem/LSystem.scala
Scala
mit
1,418
/* * 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-reactive/js/src/main/scala/monix/reactive/observers/buffers/SyncBufferedSubscriber.scala
Scala
apache-2.0
11,404
/* * 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/models/businessdetails/ContactingYouSpec.scala
Scala
apache-2.0
1,106
package akka.rtcweb.protocol.ice.stun import java.net.InetAddress import akka.rtcweb.CodecSpec import akka.rtcweb.protocol.ice.stun.`ERROR-CODE`.Code import scodec.Attempt.Successful import scodec.DecodeResult import scodec.bits._ import shapeless.HNil class StunMessageSpec extends org.specs2.mutable.Specification w...
danielwegener/akka-rtcweb
src/test/scala/akka/rtcweb/protocol/ice/stun/StunMessageSpec.scala
Scala
apache-2.0
2,051
/** * Copyright (C) 2014, George B. Norr, All Rights Reserved * Date: 2/1/14 */ package org.norr.xwp.service import org.springframework.test.context.ContextConfiguration import org.scalatest.junit.JUnitSuiteLike import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests import org....
gnorr/xwp-spring-scala
src/test/scala/org/norr/xwp/service/XwpServiceTest.scala
Scala
apache-2.0
1,060
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package scalaguide.tests package services import models._ // #scalatest-userservice class UserService(userRepository : UserRepository) { def isAdmin(user:User) : Boolean = { userRepository.roles(user).contains(Role("ADMIN")) } } // #s...
jyotikamboj/container
pf-documentation/manual/working/scalaGuide/main/tests/code/services/UserService.scala
Scala
mit
341
import pl.iterators.kebs.json.KebsSpray import spray.json.{DefaultJsonProtocol, JsArray, JsBoolean, JsNull, JsNumber, JsObject, JsString, JsonFormat, NullOptions, RootJsonFormat} import org.scalatest.funsuite.AnyFunSuite import org.scalatest.matchers.should.Matchers class SprayJsonFormatSnakifyVariantTests extends Any...
theiterators/kebs
spray-json/src/test/scala/SprayJsonFormatSnakifyVariantTests.scala
Scala
mit
5,498
package nexus import nexus.diff.Input import nexus.diff.ops._ import nexus.diff.optimizers._ import nexus.diff.execution._ import nexus.diff.syntax._ import nexus.jvm._ import nexus.jvm.setFloat32AsDefault._ import nexus.diff.modules._ import nexus._ import nexus.syntax._ /** * @author Tongfei Chen */ object Logist...
ctongfei/nexus
jvm-ref/backend/src/test/scala/nexus/LogisticRegressionTest.scala
Scala
mit
1,367
package filodb.cassandra.columnstore import java.net.InetSocketAddress import java.nio.ByteBuffer import java.util.concurrent.TimeUnit import scala.collection.mutable.ArrayBuffer import scala.concurrent.{Await, ExecutionContext, Future} import scala.concurrent.duration._ import com.datastax.driver.core.{ConsistencyL...
tuplejump/FiloDB
cassandra/src/main/scala/filodb.cassandra/columnstore/CassandraColumnStore.scala
Scala
apache-2.0
24,150
/* https://www.reddit.com/r/dailyprogrammer/comments/bazy5j/20190408_challenge_377_easy_axisaligned_crate/ */ object Boxes { /* For instance, if the crate is size X = 25 by Y = 18, and the boxes are size x = 6 by y = 5, then the answer is 12. You can fit 4 boxes along the x-axis (because 6*4 <= 25), and 3 boxe...
frankivo/dailyprogrammer
377/src/main/scala/Boxes.scala
Scala
gpl-3.0
1,829
package com.twitter.zk import scala.collection.JavaConverters._ import scala.collection.{Seq, Set} import org.apache.zookeeper.common.PathUtils import org.apache.zookeeper.data.{ACL, Stat} import org.apache.zookeeper.{CreateMode, KeeperException, WatchedEvent} import com.twitter.concurrent.{Broker, Offer} import com...
travisbrown/util
util-zk/src/main/scala/com/twitter/zk/ZNode.scala
Scala
apache-2.0
13,127
package ml.combust.mleap.runtime.test import java.io.File import java.nio.file.{Files, Path} import ml.combust.mleap.core.regression.DecisionTreeRegressionModel import ml.combust.mleap.core.tree.{ContinuousSplit, InternalNode, LeafNode, Node} /** * Created by hollinwilkins on 9/28/16. */ object TestUtil { val...
combust/mleap
mleap-runtime/src/test/scala/ml/combust/mleap/runtime/test/TestUtil.scala
Scala
apache-2.0
1,226
package com.github.gtache.lsp.client.languageserver.requestmanager import java.util import java.util.concurrent.CompletableFuture import com.github.gtache.lsp.client.languageserver.ServerStatus import com.github.gtache.lsp.client.languageserver.wrapper.LanguageServerWrapper import com.intellij.openapi.diagnostic.Logg...
gtache/intellij-lsp
intellij-lsp/src/com/github/gtache/lsp/client/languageserver/requestmanager/SimpleRequestManager.scala
Scala
apache-2.0
13,710
package com.sksamuel.scapegoat.inspections.collections import com.sksamuel.scapegoat.PluginRunner import org.scalatest.{ FreeSpec, Matchers, OneInstancePerTest } class ReverseTakeReverseTest extends FreeSpec with Matchers with PluginRunner with OneInstancePerTest { override val inspections = Seq(ne...
vdichev/scapegoat
src/test/scala/com/sksamuel/scapegoat/inspections/collections/ReverseTakeReverseTest.scala
Scala
apache-2.0
692