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 com.github.diegopacheco.scala.playground.akka.cluster.scheduller import akka.actor.Actor import scala.concurrent.duration._ import akka.actor.ActorSystem import akka.actor.Props import com.typesafe.config.ConfigFactory import akka.cluster.Cluster class ScheduleInConstructor extends Actor { import context.d...
diegopacheco/scala-playground
scala-akka-cluster-frontend-backend/src/main/scala/com/github/diegopacheco/scala/playground/akka/cluster/scheduller/TickApp.scala
Scala
unlicense
984
package im.actor.server.http import akka.actor.ActorSystem import akka.http.scaladsl.unmarshalling.{ FromRequestUnmarshaller, Unmarshal, Unmarshaller } import akka.stream.Materializer import de.heikoseeberger.akkahttpplayjson.PlayJsonSupport import im.actor.api.rpc.{ AuthData, ClientData, PeersImplicits } import im.ac...
ljshj/actor-platform
actor-server/actor-tests/src/test/scala/im/actor/server/http/WebhookHandlerSpec.scala
Scala
mit
8,020
package org.jetbrains.plugins.scala.lang.psi import com.intellij.psi._ import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.lang.psi.api.statements.params.TypeParamIdOwner import org.jetbrains.plugins.scala.lang.psi.api.statements.{ScTypeAlias, ScTypeAliasDefinition} import org.jetbrains....
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/types/package.scala
Scala
apache-2.0
11,864
/** * ____ __ ____ ____ ____,,___ ____ __ __ ____ * ( _ \\ /__\\ (_ )(_ _)( ___)/ __) ( _ \\( )( )( _ \\ Read * ) / /(__)\\ / /_ _)(_ )__) \\__ \\ )___/ )(__)( ) _ < README.txt * (_)\\_)(__)(__)(____)(____)(____)(___/ (__) (______)(____/ LICENSE.txt */ ...
razie/wikireactor
diesel/src/main/scala/razie/audit/MdbAuditService.scala
Scala
apache-2.0
1,742
package com.eevolution.context.dictionary.infrastructure.repository import java.util.UUID import com.eevolution.context.dictionary.domain._ import com.eevolution.context.dictionary.domain.model.TreeNodeCMC import com.eevolution.context.dictionary.infrastructure.db.DbContext._ import com.eevolution.utils.PaginatedSequ...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/repository/TreeNodeCMCRepository.scala
Scala
gpl-3.0
2,901
package org.clulab.twitter4food.util import java.io.File import com.typesafe.config.ConfigFactory import org.slf4j.LoggerFactory import scala.util.Random /** * Test for one-tailed statistical significance of all systems compared to a named baseline * @author Dane Bell */ object BootstrapSignificance { def ...
clulab/twitter4food
src/main/scala/org/clulab/twitter4food/util/BootstrapSignificance.scala
Scala
apache-2.0
6,898
/*-------------------------------------------------------------------------*\\ ** ScalaCheck ** ** Copyright (c) 2007-2015 Rickard Nilsson. All rights reserved. ** ** http://www.scalacheck.org ** ** ...
sid-kap/scalacheck
src/main/scala/org/scalacheck/Arbitrary.scala
Scala
bsd-3-clause
10,828
package scalangine.engine trait GameRunner extends ScreenCleaner { var screenWidth = 640 var screenHeight = 480 }
sanecommajustin/scalangine
src/main/scala/scalangine/engine/GameRunner.scala
Scala
mit
116
package com.wavesplatform.lang.v1.evaluator import cats.syntax.functor._ import cats.syntax.either._ import cats.syntax.applicative._ import cats.{Eval, Monad} import com.wavesplatform.lang.ExecutionError import com.wavesplatform.lang.v1.compiler.Terms.{EVALUATED, EXPR} import com.wavesplatform.lang.v1.compiler.Types....
wavesplatform/Waves
lang/shared/src/main/scala/com/wavesplatform/lang/v1/evaluator/Contextful.scala
Scala
mit
2,920
package com.twitter.finagle.mysql import com.twitter.finagle.mysql.transport.{MysqlBuf, Packet} import com.twitter.io.Buf import com.twitter.util.{Return, Try} import scala.collection.immutable.IndexedSeq sealed trait Result /** * A decoder for Results contained in a single packet. */ trait Decoder[T <: Result] e...
spockz/finagle
finagle-mysql/src/main/scala/com/twitter/finagle/mysql/Result.scala
Scala
apache-2.0
8,786
package com.rocketfuel.sdbc.postgresql.jdbc import java.time.format.{DateTimeFormatterBuilder, DateTimeFormatter} package object implementation { private[implementation] val offsetTimeFormatter: DateTimeFormatter = { new DateTimeFormatterBuilder(). parseCaseInsensitive(). append(DateTimeFormatter.IS...
wdacom/sdbc
postgresql/src/main/scala/com/rocketfuel/sdbc/postgresql/jdbc/implementation/package.scala
Scala
bsd-3-clause
715
package com.twitter.finagle.http import com.twitter.io.{Buf, Reader => BufReader, Writer => BufWriter} import com.twitter.finagle.netty3.ChannelBufferBuf import com.twitter.util.{Await, Duration} import java.io.{InputStream, InputStreamReader, OutputStream, OutputStreamWriter, Reader, Writer} import java.util.{Iterato...
JustinTulloss/finagle
finagle-http/src/main/scala/com/twitter/finagle/http/Message.scala
Scala
apache-2.0
16,054
package scaladex.core.model import org.scalatest.funspec.AsyncFunSpec import org.scalatest.matchers.should.Matchers class LanguageTests extends AsyncFunSpec with Matchers { describe("Scala 3 versions") { it("Scala 3 label") { Scala.`3`.label shouldBe "3.x" } it("should not accept minor versions")...
scalacenter/scaladex
modules/core/shared/src/test/scala/scaladex/core/model/LanguageTests.scala
Scala
bsd-3-clause
500
/*********************************************************************** * Copyright (c) 2013-2015 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 is ...
drackaer/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/iterators/MultiIteratorTest.scala
Scala
apache-2.0
11,570
package edu.osu.cse.groenkeb.logic.proof.rules import edu.osu.cse.groenkeb.logic._ import edu.osu.cse.groenkeb.logic.proof._ trait Rule { /** * True if this rule can accept the given sentence as a major premise for inference, false otherwise. * Rules that do not define a major premise should return false on a...
bgroenks96/AutoMoL
core/src/main/scala/edu/osu/cse/groenkeb/logic/proof/rules/Rule.scala
Scala
mit
1,303
package com._3tierlogic.KinesisManager import ch.qos.logback.classic.LoggerContext import ch.qos.logback.classic.joran.JoranConfigurator import ch.qos.logback.core.joran.spi.JoranException import ch.qos.logback.core.util.StatusPrinter import org.slf4j.Logger import org.slf4j.LoggerFactory /** '''Provide Logging Hand...
3tierlogic/kinesis-manager
kinesis-common/src/main/scala/com/_3tierlogic/KinesisManager/LogbackLogging.scala
Scala
apache-2.0
1,422
/* ____ __ ____ ____ ____,,___ ____ __ __ ____ * ( _ \\ /__\\ (_ )(_ _)( ___)/ __) ( _ \\( )( )( _ \\ Read * ) / /(__)\\ / /_ _)(_ )__) \\__ \\ )___/ )(__)( ) _ < README.txt * (_)\\_)(__)(__)(____)(____)(____)(___/ (__) (______)(____/ LICENSE.txt */ package ...
razie/diesel-hydra
diesel/src/main/scala/razie/diesel/engine/DomEngECtx.scala
Scala
apache-2.0
9,472
package com.airbnb.common.ml.strategy.eval import scala.util.Try import org.apache.spark.rdd.RDD case class BinaryMetrics( posCount: Int, negCount: Int, posSugHigher: Int, posSugLower: Int, negSugHigher: Int, negSugLower: Int, increasePrecision: Double, increaseRecall: Double, de...
TDDFT/aerosolve
airlearner/airlearner-strategy/src/main/scala/com/airbnb/common/ml/strategy/eval/BinaryMetrics.scala
Scala
apache-2.0
7,082
package com.atomist.rug.kind.json import com.atomist.rug.kind.core.ProjectMutableView import com.atomist.source.{EmptyArtifactSource, SimpleFileBasedArtifactSource, StringFileArtifact} import com.atomist.tree.content.text.TextTreeNodeLifecycle import com.atomist.tree.pathexpression.PathExpressionEngine import com.atom...
atomist/rug
src/test/scala/com/atomist/rug/kind/json/JsonMutableViewTest.scala
Scala
gpl-3.0
3,517
/* * 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 ...
xieguobin/Spark_2.0.0_cn1
mllib/clustering/KMeans.scala
Scala
apache-2.0
20,695
package scala.meta.tests package prettyprinters import java.io._ import java.nio.charset.Charset import munit._ import scala.meta._ import compat.Platform.EOL class PublicSuite extends FunSuite { test("scala.meta.Dialect.toString") { // covered below } test("scala.meta.Tree.toString (manual)") { val tr...
scalameta/scalameta
tests/shared/src/test/scala/scala/meta/tests/prettyprinters/PublicSuite.scala
Scala
bsd-3-clause
12,325
/* * 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 ...
tophua/spark1.52
mllib/src/test/scala/org/apache/spark/mllib/tree/DecisionTreeSuite.scala
Scala
apache-2.0
56,139
/** * 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 ...
laserson/adam
adam-core/src/test/scala/org/bdgenomics/adam/models/CoverageSuite.scala
Scala
apache-2.0
4,280
/* Copyright 2015 White Label Personal Clouds Pty 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 a...
welcomer/framework
welcomer-signpost/src/main/scala/me/welcomer/signpost/spray/SprayOAuthProvider.scala
Scala
apache-2.0
1,727
/* * Copyright 2019 Scanamo * * 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 w...
scanamo/scanamo
alpakka/src/main/scala/org/scanamo/ops/AlpakkaInterpreter.scala
Scala
apache-2.0
3,594
package com.danielasfregola.twitter4s.http.clients.rest.lists.parameters import com.danielasfregola.twitter4s.http.marshalling.Parameters private[twitter4s] final case class SubscriptionsParameters(user_id: Option[Long], screen_name: Option[String], ...
DanielaSfregola/twitter4s
src/main/scala/com/danielasfregola/twitter4s/http/clients/rest/lists/parameters/SubscriptionsParameters.scala
Scala
apache-2.0
481
package de.kaufhof.pillar.config import com.typesafe.config.{Config, ConfigFactory} import org.scalatest.{BeforeAndAfter, FunSpec, Matchers} /** * Tests for Connection Configuration. */ class ConnectionConfigurationTest extends FunSpec with BeforeAndAfter with Matchers { val TRUST_STORE = "javax.net.ssl.trustSt...
Galeria-Kaufhof/pillar
src/test/scala/de/kaufhof/pillar/config/ConnectionConfigurationTest.scala
Scala
mit
5,176
package com.atomist.rug.test.gherkin import com.atomist.graph.GraphNode import com.atomist.project.archive.Rugs import com.atomist.project.common.InvalidParametersException import com.atomist.rug.runtime.js.interop.{NashornUtils, jsSafeCommittingProxy} import com.typesafe.scalalogging.LazyLogging import gherkin.ast.{S...
atomist/rug
src/main/scala/com/atomist/rug/test/gherkin/AbstractExecutableFeature.scala
Scala
gpl-3.0
6,291
/* * 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/fset-faststream
app/connectors/OnlineTestsGatewayClient.scala
Scala
apache-2.0
3,754
package org.niohiki.wishartmontecarlo.largesteigenvalue import org.niohiki.wishartmontecarlo.integrator.Bins import org.niohiki.wishartmontecarlo.integrator.Bin import org.niohiki.wishartmontecarlo.integrator.BinnerConfiguration import org.niohiki.wishartmontecarlo.integrator.Integrand import org.niohiki.wishartmontec...
niohiki/wishart-monte-carlo
src/org/niohiki/wishartmontecarlo/largesteigenvalue/Main.scala
Scala
gpl-3.0
1,223
package commands /** * Created by alex on 07/05/15. */ trait FilenameSanitiser { def sanitise(filename: String): String = { filename.toLowerCase.filter(ch => Character.isLetterOrDigit(ch) || Character.isWhitespace(ch)).replaceAll("""\\s+""", "_") } }
unclealex72/ripper
src/main/scala/commands/FilenameSanitiser.scala
Scala
mit
262
/* Copyright (c) 2012, The Children's Hospital of Philadelphia All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of cond...
chop-dbhi/dataexpress
src/main/scala/edu/chop/cbmi/dataExpress/dsl/statements/Get.scala
Scala
bsd-2-clause
2,615
package ark.optaplanner.deception import scala.collection.JavaConverters import scala.collection.JavaConverters._ import scala.collection.JavaConversions import scala.collection.JavaConversions._ import org.scalatest.Finders import org.scalatest.FunSpec import org.optaplanner.core.api.solver.SolverFactory import ark.Tr...
lucaster/ark-calc
src/test/scala/ark/optaplanner/deception/ComboSpec.scala
Scala
mit
1,606
package scodec package codecs import java.io.ByteArrayInputStream import java.security.KeyPairGenerator import java.security.cert.{ Certificate, CertificateFactory, X509Certificate } import java.util.Date import org.bouncycastle.asn1.x500.X500Name import org.bouncycastle.cert._ import org.bouncycastle.cert.jcajce._ im...
danielwegener/scodec
src/test/scala/scodec/codecs/CertificateCodecTest.scala
Scala
bsd-3-clause
1,299
/*********************************************************************** * Copyright (c) 2013-2018 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...
jahhulbert-ccri/geomesa
geomesa-fs/geomesa-fs-storage/geomesa-fs-storage-common/src/test/scala/org/locationtech/geomesa/fs/storage/common/PartitionSchemeConfTest.scala
Scala
apache-2.0
3,208
package io.udash.generator.plugins.sbt import java.io.File import io.udash.generator.exceptions.FileCreationError import io.udash.generator.plugins._ import io.udash.generator.plugins.utils.{FrontendPaths, UtilPaths} import io.udash.generator.utils._ import io.udash.generator.{FrontendOnlyProject, GeneratorPlugin, Ge...
tstangenberg/udash-generator
core/src/main/scala/io/udash/generator/plugins/sbt/SBTModulesPlugin.scala
Scala
apache-2.0
16,095
package fr.inria.spirals.actress.runtime.protocol import akka.actor.ActorRef sealed trait Message case class GetCapabilities() extends Message case class Capabilities(services: Seq[(String, ActorRef)]) extends Message case class Register(name: String, ref: ActorRef) extends Message case class GetAttribute(id: Str...
fikovnik/actress-mrt
src/main/scala/fr/inria/spirals/actress/runtime/protocol/Messages.scala
Scala
apache-2.0
616
package uk.gov.gds.common.audit import uk.gov.gds.common.mongo.UnauthenticatedMongoDatabaseManagerForTests object TestAuditEventRepository extends AuditEventRepositoryBase { protected val collection = UnauthenticatedMongoDatabaseManagerForTests("auditEvents") def testAudit(event: AuditEvent) = audit(event) }
alphagov/gds-scala-common
mongo-utils/src/test/scala/uk/gov/gds/common/audit/TestAuditEventRepository.scala
Scala
mit
317
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package test import play.api.test._ object RouterSpec extends PlaySpecification { "document the router" in new WithApplication() { val someRoute = implicitApp.injector .instanceOf[play.api.routing.Router] .documentation .find...
playframework/playframework
dev-mode/sbt-plugin/src/sbt-test/play-sbt-plugin/routes-compiler-namespace-reverse-router/tests/RouterSpec.scala
Scala
apache-2.0
1,487
package org.coalesce.coalescebot.command.executors.request import org.coalesce.coalescebot.command.{BotCommand, CommandContext} class RoleRequest extends BotCommand { val availableRoles: Set[Long] = Set (388145098199924736L, 388145098199924736L, 388145098199924736L, 388145098199924736L) override val...
Project-Coalesce/CoalesceBot
src/main/scala/org/coalesce/coalescebot/command/executors/request/RoleRequest.scala
Scala
mit
550
package com.dazito.scala.dakkabase import akka.actor.{Status, Actor} import akka.actor.Actor.Receive /** * Created by daz on 21/02/2016. */ class ScalaPongActor extends Actor { override def receive: Receive = { case "Ping" => sender() ! "Pong" case _ => sender() ! Status.Failure(new Exception("U...
dazito/LearningAkkaScalaServer
akkademy-db/src/main/scala/com/dazito/scala/dakkabase/ScalaPongActor.scala
Scala
mit
346
package csvside import cats.data.Validated trait CellReader[+A] extends (String => Validated[String, A]) { def map[B](func: A => B): CellReader[B] = CellReader[B](cell => this(cell).map(func)) } object CellReader { def apply[A](func: String => Validated[String, A]): CellReader[A] = new CellReader[A] { ...
davegurnell/csvside
src/main/scala/csvside/CellReader.scala
Scala
apache-2.0
397
/** * Copyright 2009 Google 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...
SeaUrchinBot/noop
core/src/main/scala/noop/model/MethodInvocationExpression.scala
Scala
apache-2.0
1,119
package slamdata.engine.api import unfiltered.request._ import unfiltered.response._ import slamdata.engine._ import slamdata.engine.fs._ import slamdata.engine.config._ import scalaz.concurrent._ object Server { def run(port: Int, fs: FSTable[Backend]): Task[Unit] = Task.delay { unfiltered.netty.Server.http(...
mossprescott/quasar
src/main/scala/slamdata/engine/api/server.scala
Scala
agpl-3.0
868
package mesosphere.marathon.state import org.apache.mesos.{ Protos => MesosProtos } import mesosphere.marathon.{ Protos, MarathonSpec } import mesosphere.marathon.api.JsonTestHelper import mesosphere.marathon.state.DiscoveryInfo.Port import org.scalatest.Matchers import play.api.libs.json.{ JsPath, JsError, Json } imp...
yp-engineering/marathon
src/test/scala/mesosphere/marathon/state/DiscoveryInfoTest.scala
Scala
apache-2.0
6,349
package com.neilconcepts.battlespace.domain import com.neilconcepts.battlespace.domain.Board.{ Point, BattleSpaceBoard } import com.neilconcepts.battlespace.domain.Messages.GameStateError import com.neilconcepts.battlespace.domain.bst.GameState /** * GameActions :: * All the game actions for game objects * Each ac...
bneil/battlespace
src/main/scala/com/neilconcepts/battlespace/domain/GameActions.scala
Scala
mit
1,407
/* * Copyright 2010 Red Hat, Inc. * * Red Hat licenses this file to you 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...
gnodet/fuse
fmc/fmc-rest/src/main/scala/org/fusesource/fabric/webui/patching/ProfileUpgradeResource.scala
Scala
apache-2.0
1,573
//////////////////////////////////////////////////////////////////////////////// // // // OpenSolid is a generic library for the representation and manipulation // // of geometric objects such as points, curves, surfaces, and volumes. ...
ianmackenzie/opensolid-core
src/test/scala/org/opensolid/core/Direction3dGenerators.scala
Scala
mpl-2.0
2,017
package com.orendainx.trucking.enrichment import java.io.{InputStreamReader, Reader} import java.util.{Calendar, Date} import better.files.File import com.github.tototoshi.csv.CSVReader /** * @author Edgar Orendain <[email protected]> */ object DriverTimesheetAPI { lazy val apply = new DriverTimesheetAPI(ne...
orendain/trucking-iot
enrichment/src/main/scala/com/orendainx/trucking/enrichment/DriverTimesheetAPI.scala
Scala
apache-2.0
1,648
package com.twitter.finagle.util import com.twitter.finagle.Stack import com.twitter.finagle.param.{Label, ProtocolLibrary} import com.twitter.util.registry.GlobalRegistry import java.util.concurrent.atomic.AtomicInteger object StackRegistry { /** * Represents an entry in the registry. */ case class Entry(...
luciferous/finagle
finagle-core/src/main/scala/com/twitter/finagle/util/StackRegistry.scala
Scala
apache-2.0
5,481
/* * 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
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/ApproximatePercentile.scala
Scala
apache-2.0
13,488
/* * Copyright (c) 2013 Daniel Krzywicki <[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 without limitation the rights to ...
eleaar/scala-mas
core/src/main/scala/pl/edu/agh/scalamas/mas/logic/PopulationStrategy.scala
Scala
mit
1,426
package routes import akka.actor.ActorRef import cattamer.CatMasterGeneral /** * Created by ruguer on 3/25/15. */ trait RequireMasterGeneral { val catMasterGeneral : ActorRef }
raymondpoling/CatsOfUlthar
src/main/scala/routes/RequireMasterGeneral.scala
Scala
apache-2.0
183
/** * 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...
bpupadhyaya/kafka
core/src/main/scala/kafka/network/SocketServer.scala
Scala
apache-2.0
21,361
package dotty.tools.scaladoc package tasty import scala.jdk.CollectionConverters._ import dotty.tools.scaladoc.Scaladoc.CommentSyntax import dotty.tools.scaladoc.tasty.comments.Comment import scala.quoted._ object ScaladocSupport: def parseCommentString(using Quotes, DocContext)(comment: String, sym: reflect.Sym...
dotty-staging/dotty
scaladoc/src/dotty/tools/scaladoc/tasty/ScalaDocSupport.scala
Scala
apache-2.0
1,853
object Holder { protected case class C } import Holder.C println(/* accessible: false */ C) println(classOf[/* accessible: false */ C])
ilinum/intellij-scala
testdata/resolve2/import/access/ProtectedClass.scala
Scala
apache-2.0
141
/* Copyright (c) 2012-2014, Université de Lorraine, Nancy, France Copyright (c) 2014-2015, Christophe Calvès All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of...
christophe-calves/zk.scala
scala/src/main/scala/zk/ELens.scala
Scala
bsd-3-clause
8,925
/* * Copyright © 2015-2019 the contributors (see Contributors.md). * * This file is part of Knora. * * Knora 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 *...
musicEnfanthen/Knora
webapi/src/test/scala/org/knora/webapi/e2e/v2/SearchRouteV2R2RSpec.scala
Scala
agpl-3.0
378,725
package net.nablux.dockergen import scala.collection.mutable trait DockerImage { protected var commands = new mutable.MutableList[List[String]] protected var maintainer: Option[String] = None def image: String def tag: String protected def addCommand(which: String, params: String*) = { commands += (w...
tgpfeiffer/dockergen
src/main/scala/net/nablux/dockergen/DockerImage.scala
Scala
bsd-3-clause
1,036
package meow import org.specs._ object GrowlSpec extends Specification { "Growl" should { "find a binary" in { Growl.bin must_== "/usr/local/bin/growlnotify" } "make sticky notifications" in { (Growl sticky() argList) must contain("-s") } "show notifications with a message" in { ...
softprops/meow
src/test/scala/meow/GrowlSpec.scala
Scala
mit
597
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package samples import scala.language.postfixOps import scala.util.parsing.combinator.RegexParsers class LoopParser extends RegexPars...
hjuergens/date-parser
date-rule-combinators/src/main/scala/samples/LoopParser.scala
Scala
apache-2.0
990
package dk.bayes.dsl.variable.gaussian.multivariate import dk.bayes.dsl.InferEngine import dk.bayes.dsl.variable.gaussian.multivariatelinear.MultivariateLinearGaussian import dk.bayes.math.gaussian.canonical.DenseCanonicalGaussian import breeze.linalg.inv import breeze.linalg.cholesky import dk.bayes.math.linear.invch...
danielkorzekwa/bayes-scala
src/main/scala/dk/bayes/dsl/variable/gaussian/multivariate/inferMultivariateGaussianSimplest.scala
Scala
bsd-2-clause
1,408
/* * 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/test/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/ACQ5034Spec.scala
Scala
apache-2.0
1,597
package scorex.testkit.properties import bifrost.PersistentNodeViewModifier import bifrost.consensus.{History, SyncInfo} import bifrost.transaction.Transaction import bifrost.transaction.box.Box import bifrost.transaction.box.proposition.Proposition import bifrost.transaction.state.{MinimalState, StateChanges} ...
Topl/Project-Bifrost
src/test/scala/scorex/testkit/properties/StateChangesGenerationTest.scala
Scala
mpl-2.0
1,401
package info.glennengstrand.news.dao import scala.concurrent.Future import scala.concurrent._ import ExecutionContext.Implicits.global import scala.collection.JavaConverters._ import com.datastax.oss.driver.api.core.cql.{BoundStatement, PreparedStatement} import info.glennengstrand.news.model.Outbound class Outbound...
gengstrand/clojure-news-feed
server/feed11/src/main/scala/info/glennengstrand/news/dao/OutboundDao.scala
Scala
epl-1.0
1,569
/** * Copyright (c) 2002-2012 "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 Foundati...
dksaputra/community
cypher/src/main/scala/org/neo4j/cypher/internal/pipes/SlicePipe.scala
Scala
gpl-3.0
2,457
package org.moe.runtime.nativeobjects import org.moe.runtime._ import scala.util.{Try, Success, Failure} class MoeStrObject( v: String, t : Option[MoeType] = None ) extends MoeNativeObject[String](v, t) { // runtime methods def increment (r: MoeRuntime): Unit = setNativeValue(MoeUtil.magicalStringIncremen...
MoeOrganization/moe
src/main/scala/org/moe/runtime/nativeobjects/MoeStrObject.scala
Scala
mit
7,713
/* * Licensed to Intel Corporation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Intel Corporation licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use t...
SeaOfOcean/BigDL
dl/src/test/scala/com/intel/analytics/bigdl/nn/MulConstantSpec.scala
Scala
apache-2.0
2,316
package dpla.ingestion3.reports import org.apache.spark.sql.{DataFrame, Dataset, SparkSession} import dpla.ingestion3.model._ import org.apache.spark.sql.functions.mean /** * Metadata Completeness QA report. */ class MetadataCompletenessReport( val input: Dataset[OreAggregation],...
dpla/ingestion3
src/main/scala/dpla/ingestion3/reports/MetadataCompletenessReport.scala
Scala
mit
7,334
/* * 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 ...
fhueske/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/sources/TableSourceUtil.scala
Scala
apache-2.0
18,134
package scala.build import sbt._, Keys._ object TestJDeps { val testJDepsImpl: Def.Initialize[Task[Unit]] = Def.task { val libraryJar = (packageBin in Compile in LocalProject("library")).value val reflectJar = (packageBin in Compile in LocalProject("reflect")).value // jdeps -s -P build/pack/lib/scala-...
martijnhoekstra/scala
project/TestJDeps.scala
Scala
apache-2.0
812
/** * MIT License * * Copyright (c) 2016-2018 James Sherwood-Jones <[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, includi...
jSherz/lsd-members
backend/src/test/scala/com/jsherz/luskydive/apis/LoginApiSpec.scala
Scala
mit
5,659
package com.twitter.finagle.client import com.twitter.finagle._ import com.twitter.finagle.param._ import com.twitter.finagle.factory.{ BindingFactory, RefcountedFactory, StatsFactoryWrapper, TimeoutFactory} import com.twitter.finagle.filter.{ExceptionSourceFilter, MonitorFilter} import com.twitter.finagle.loadbalan...
JustinTulloss/finagle
finagle-core/src/main/scala/com/twitter/finagle/client/StackClient.scala
Scala
apache-2.0
8,600
package robco import org.apache.spark.{SparkContext, SparkConf} import org.apache.spark.sql.functions._ object SparkSql2 { // case class Person(firstName: String, lastName: String, gender: String) case class CvcInfo(cvcId: String, description: String) case class AvcInfo(avcId: String, cvcId: String) case clas...
amazoncop/spark
src/main/scala/robco/SparkSql2.scala
Scala
apache-2.0
2,375
package rpgboss.editor.imageset.metadata import scala.swing._ import rpgboss.editor.uibase.SwingUtils._ import rpgboss.editor.misc.TileUtils import scala.swing.event._ import rpgboss.editor.Internationalized._ import rpgboss.editor.uibase._ import rpgboss.model._ import rpgboss.model.resource._ import java.awt.image.B...
lefay1982/rpgboss
desktop/src/main/scala/rpgboss/editor/imageset/metadata/TilesetsMetadataPanel.scala
Scala
agpl-3.0
5,397
package org.apache.spark.ml.util import org.apache.spark.Partitioner /** * Created by meng on 10/8/14. */ class IdentityPartitioner(override val numPartitions: Int) extends Partitioner { override def getPartition(key: Any): Int = key.asInstanceOf[Int] override def equals(other: Any): Boolean = { other match...
mengxr/spark-als
src/main/scala/org/apache/spark/ml/util/IdentityPartitioner.scala
Scala
apache-2.0
448
/* * 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
core/src/test/scala/org/apache/spark/util/JsonProtocolSuite.scala
Scala
apache-2.0
91,637
package com.jarhart.scat import org.scalatest.FreeSpec import org.scalatest.prop._ import shapeless._ class StackPrimitivesSpec extends FreeSpec with PropertyChecks with ArbitraryStacks { import StackPrimitives._ "dup duplicates the top value on the stack" in { forAll { (x: Int, stack: HList) => asse...
jarhart/scat
src/test/scala/com/jarhart/scat/StackPrimitivesSpec.scala
Scala
mit
587
/* * 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 ...
WeichenXu123/spark
resource-managers/kubernetes/integration-tests/src/test/scala/org/apache/spark/deploy/k8s/integrationtest/BasicTestsSuite.scala
Scala
apache-2.0
5,636
package eva4s package recombining import language.higherKinds import scala.util.Random import scalaz.Functor import scalaz.Length import scalaz.Unzip import scalaz.Zip /** One point crossover randomly selects a crossover point and interchanges the two parents at this * point to produce two new children. */ case...
wookietreiber/eva4s-old
core/main/scala/recombining/OnePointCrossover.scala
Scala
gpl-3.0
820
/* * Copyright 2022 Typelevel * * 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...
typelevel/sbt-typelevel
kernel/src/main/scala/org/typelevel/sbt/kernel/GitHelper.scala
Scala
apache-2.0
1,559
package com.ereisman.esurient.examples import org.apache.hadoop.conf.Configuration import org.apache.log4j.Logger import com.ereisman.esurient.EsurientConstants._ object EsurientDefaultTask { val LOG = Logger.getLogger(this.getClass()) } class EsurientDefaultTask extends com.ereisman.esurient.EsurientTask { ...
initialcontext/esurient
src/main/scala/com/ereisman/esurient/examples/EsurientDefaultTask.scala
Scala
apache-2.0
1,072
package models.street import models.utils.MyPostgresDriver.simple._ import play.api.Play.current case class StreetEdgeStreetNode(streetEdgeStreetNodeId: Int, streetEdgeId: Int, streetNodeId: Int) class StreetEdgeStreetNodeTable(tag: Tag) extends Table[StreetEdgeStreetNode](tag, Some("sidewalk"), "street_edge_parent...
danZzyy/SidewalkWebpage
sidewalk-webpage/app/models/street/StreetEdgeStreetNodeTable.scala
Scala
mit
796
package com.github.simonedeponti.play26lettuce import play.api.Configuration import play.api.cache.SyncCacheApi /** Dependency-injection provider for [[play.api.cache.SyncCacheApi]] * * @param configuration The application configuration * @param name The cache name (if not provided uses "default") */ class S...
simonedeponti/play26-lettuce
src/main/scala/com/github/simonedeponti/play26lettuce/SyncWrapperProvider.scala
Scala
bsd-3-clause
547
package org.bitcoins.core.protocol.tlv import org.bitcoins.testkitcore.gen.LnMessageGen import org.bitcoins.testkitcore.util.BitcoinSUnitTest import scodec.bits._ import scala.util.Try class LnMessageTest extends BitcoinSUnitTest { "LnMessage" must "have serialization symmetry" in { forAll(LnMessageGen.lnMess...
bitcoin-s/bitcoin-s
core-test/src/test/scala/org/bitcoins/core/protocol/tlv/LnMessageTest.scala
Scala
mit
2,769
package net.gree.aurora.scala.domain.clustergroup import java.util.{List => JList} import net.gree.aurora.domain.clustergroup.{ClusterGroup => JClusterGroup} import net.gree.aurora.scala.domain.cluster.{Cluster, ClusterId} import org.sisioh.dddbase.utils.{Try => JTry} import scala.collection.JavaConverters._ import sc...
gree/aurora
aurora-scala/src/main/scala/net/gree/aurora/scala/domain/clustergroup/ClusterGroupImpl.scala
Scala
mit
1,075
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js Test Suite ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013--2015, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
mdedetrich/scala-js
test-suite/shared/src/test/scala/org/scalajs/testsuite/scalalib/ArrayBuilderTest.scala
Scala
bsd-3-clause
7,758
/* * Copyright 2015 Magnus Madsen. * * 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 ...
magnus-madsen/umonitor
src/dk/umonitor/runtime/connector/SshConnector.scala
Scala
apache-2.0
1,171
package spark.broadcast import java.io._ import java.net._ import java.util.{BitSet, Comparator, Random, Timer, TimerTask, UUID} import java.util.concurrent.atomic.AtomicInteger import scala.collection.mutable.{ListBuffer, Map, Set} import scala.math import spark._ class BitTorrentBroadcast[T](@transient var value_...
javelinjs/spark
core/src/main/scala/spark/broadcast/BitTorrentBroadcast.scala
Scala
bsd-3-clause
45,047
/* ************************************************************************************* * Copyright 2014 Normation SAS ************************************************************************************* * * This file is part of Rudder. * * Rudder is free software: you can redistribute it and/or modify * it under the...
armeniaca/rudder
rudder-core/src/main/scala/com/normation/rudder/reports/ComplianceMode.scala
Scala
gpl-3.0
3,677
/* * Copyright 2014 Intelix Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
mglukh/ehub
modules/core/src/main/scala/common/actors/ActorObjWithConfig.scala
Scala
apache-2.0
872
/* * 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...
saurabharora80/hmrc-email-renderer
app/uk/gov/hmrc/hmrcemailrenderer/templates/awrs/AwrsTemplates.scala
Scala
apache-2.0
5,022
object Versions { val ScalaVer = "2.11.6" val JDKVer = "1.7" val TypesafeConfigVer = "1.2.1" val ScalaTestVer = "2.1.7" val ScalaCheckVer = "1.11.4" val JunitVer = "4.10" val AbideCoreVer = "0.1-SNAPSHOT" val AbideExtraVer = "0.1-SNAPSHOT" val Wartrem...
codejitsu/flower
project/Versions.scala
Scala
apache-2.0
377
package org.jetbrains.plugins.scala.format import com.intellij.psi.{PsiClass, PsiElement, PsiMethod} import org.jetbrains.plugins.scala.extensions.{&&, ContainingClass, PsiClassExt, PsiReferenceEx} import org.jetbrains.plugins.scala.lang.psi.api.base.ScLiteral import org.jetbrains.plugins.scala.lang.psi.api.expr.{Meth...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/format/PrintStringParser.scala
Scala
apache-2.0
1,657
package org.photon.login import com.typesafe.config.ConfigFactory import java.io.File import org.photon.common.components._ trait LoginServerComponent extends AnyRef with ConfigurationComponent with ServiceManagerComponent with ExecutorComponentImpl with DatabaseComponentImpl with UserRepositoryComponentImpl wi...
Emudofus/Photon
login/main/src/org/photon/login/LoginServer.scala
Scala
mit
876
/* Copyright (c) 2013-2016 Karol M. Stasiak Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
KarolS/units
units/src/main/scala/io/github/karols/units/internal/SingleUnits.scala
Scala
mit
1,973
/* * 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 ...
Dax1n/spark-core
core/src/main/scala/org/apache/spark/rdd/CheckpointRDD.scala
Scala
apache-2.0
6,806
package com.sksamuel.elastic4s import com.sksamuel.elastic4s.ElasticDate.{ElasticDateMathShow, TimestampElasticDateShow, UnparsedElasticDateShow} import com.sksamuel.elastic4s.ext.OptionImplicits._ import java.time.LocalDate import java.time.format.DateTimeFormatter import scala.language.implicitConversions abstract...
sksamuel/elastic4s
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/ElasticDate.scala
Scala
apache-2.0
3,592
/* * Copyright 2011-2022 GatlingCorp (https://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
gatling/gatling
gatling-commons-shared-unstable/src/test/scala/io/gatling/commons/shared/unstable/util/PathHelperSpec.scala
Scala
apache-2.0
2,297
package com.fuscus.seien.infra.core import play.api.Play.current import play.api.libs.concurrent.Akka import scala.concurrent.ExecutionContext /** * Custom context implicit val list. * * Created by watawuwu on 2014/09/11. */ object AppContext { implicit val jobExecutionContext: ExecutionContext = Akka.system.d...
watawuwu/seien-backend
modules/infra/app/com/fuscus/seien/infra/core/AppContext.scala
Scala
mit
481