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 (c) 2013-2017 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
ronq/geomesa
geomesa-spark/geomesa-spark-sql/src/test/scala/org/locationtech/geomesa/spark/SparkSQLGeometricConstructorsTest.scala
Scala
apache-2.0
9,649
package org.codeswarm.tnsconfig /** The string identifier of an entry in a tnsnames.ora file. */ sealed case class TnsAlias(name: String)
chris-martin/tns-config
src/main/scala/TnsAlias.scala
Scala
apache-2.0
141
/* * Copyright 2018 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/worldpay-downloader
test/support/steps/PaymentsWorldpayClearanceSteps.scala
Scala
apache-2.0
2,000
/* * La Trobe University - Distributed Deep Learning System * Copyright 2016 Matthias Langer ([email protected]) * * 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.apa...
bashimao/ltudl
cublaze/src/main/scala/edu/latrobe/cublaze/modules/Layer_CUDA.scala
Scala
apache-2.0
1,100
package pl.touk.nussknacker.processCounts.influxdb import org.scalatest.{FunSuite, Matchers} import pl.touk.nussknacker.engine.api.CirceUtil import pl.touk.nussknacker.test.PatientScalaFutures import sttp.client.Identity import sttp.client.monad.IdMonad import java.time.Instant class InfluxGeneratorSpec extends FunS...
TouK/nussknacker
ui/processReports/src/test/scala/pl/touk/nussknacker/processCounts/influxdb/InfluxGeneratorSpec.scala
Scala
apache-2.0
2,934
package io.swagger.client.model import org.joda.time.DateTime case class Variable ( name: String, // User-defined variable display name. originalName: String, // Name used when the variable was originally created in the `variables` table. category: String, // Variable category like Mood, Sleep, Physical Act...
QuantiModo/QuantiModo-SDK-Async-Scala
src/main/scala/io/swagger/client/model/Variable.scala
Scala
apache-2.0
851
package akka.contrib.persistence.mongodb import akka.NotUsed import akka.actor.{Actor, ActorLogging, ActorRef, ExtendedActorSystem, Props} import akka.persistence.query._ import akka.persistence.query.javadsl.{AllPersistenceIdsQuery => JAPIQ, CurrentEventsByPersistenceIdQuery => JCEBP, CurrentPersistenceIdsQuery => JC...
alari/akka-persistence-mongo
common/src/main/scala/akka/contrib/persistence/mongodb/MongoReadJournal.scala
Scala
apache-2.0
9,333
package tests import so.eval.Router import akka.actor.{ ActorSystem, Props } import akka.pattern.ask import akka.util.Timeout import scala.concurrent.duration._ import org.scalatest.{ BeforeAndAfter, FunSpec, Inside, ParallelTestExecution } import org.scalatest.matchers.ShouldMatchers /** A common trait that all o...
eval-so/minibcs
src/test/scala/LanguageTest.scala
Scala
apache-2.0
716
package play import sbt.{ Project => _, _ } import sbt.Keys._ import play.console.Colors import com.typesafe.sbt.SbtNativePackager.packageArchetype object Project extends Plugin with PlayExceptions with play.Keys with PlayReloader with PlayCommands with PlayRun with play.Settings with PlayPositionMapper with Pla...
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/sbt-plugin/src/main/scala/play/Project.scala
Scala
mit
2,414
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
danielcsant/sparta
driver/src/main/scala/com/stratio/sparta/driver/util/ReflectionUtils.scala
Scala
apache-2.0
3,628
package com.madgag.git.bfg.test import com.madgag.git._ import com.madgag.git.test._ import org.eclipse.jgit.internal.storage.file.{GC, ObjectDirectory} import org.eclipse.jgit.lib.Constants.OBJ_BLOB import org.eclipse.jgit.lib.{ObjectId, ObjectReader, Repository} import org.eclipse.jgit.revwalk.{RevCommit, RevTree} i...
rtyley/bfg-repo-cleaner
bfg-test/src/main/scala/com/madgag/git/bfg/test/unpackedRepo.scala
Scala
gpl-3.0
4,524
package com.twitter.finagle.service import com.twitter.finagle.{FailedFastException, ServiceFactory, Service} import com.twitter.util._ import com.twitter.finagle.MockTimer import com.twitter.finagle.stats.NullStatsReceiver import com.twitter.conversions.time._ import java.util.concurrent.atomic.AtomicInteger import o...
yancl/finagle-6.22.0
finagle-core/src/test/scala/com/twitter/finagle/service/FailFastFactoryTest.scala
Scala
apache-2.0
5,861
package com.rasterfoundry.batch.stacExport import geotrellis.server.stac._ import com.rasterfoundry.datamodel._ import geotrellis.proj4.CRS import geotrellis.vector.reproject.Reproject import cats.implicits._ import io.circe._ import java.sql.Timestamp import shapeless._ object StacCatalogBuilder { sealed trait Ca...
aaronxsu/raster-foundry
app-backend/batch/src/main/scala/stacExport/StacCatalogBuilder.scala
Scala
apache-2.0
9,285
package im.mange.driveby.pool //TODO: seems like application stuff should be in application package (like browser) case class Application(name: String, port: Int, host: String = "127.0.0.1") { def baseUrl = "http://" + host + ":" + port }
alltonp/driveby
src/main/scala/im/mange/driveby/pool/Application.scala
Scala
apache-2.0
242
package sangria.validation.rules import org.scalatest.WordSpec import sangria.util.{Pos, ValidationSupport} class KnownFragmentNamesSpec extends WordSpec with ValidationSupport { override val defaultRule = Some(new KnownFragmentNames) "Validate: Known fragment names" should { "known fragment names are valid...
narahari92/sangria
src/test/scala/sangria/validation/rules/KnownFragmentNamesSpec.scala
Scala
apache-2.0
1,309
/** * 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-commons/src/main/scala/io/gatling/commons/util/ByteBuffers.scala
Scala
apache-2.0
1,884
package edu.rice.habanero.benchmarks.big import java.util.Random import akka.actor.{ActorRef, Props} import edu.rice.habanero.actors.{AkkaActor, AkkaActorState} import edu.rice.habanero.benchmarks.big.BigConfig.{ExitMessage, Message, PingMessage, PongMessage} import edu.rice.habanero.benchmarks.{Benchmark, BenchmarkR...
smarr/savina
src/main/scala/edu/rice/habanero/benchmarks/big/BigAkkaActorBenchmark.scala
Scala
gpl-2.0
3,396
package reactiverogue.record package field import reactivemongo.bson.BSONObjectID trait ObjectIdPk[OwnerType <: MongoRecord[OwnerType]] { self: OwnerType => def defaultIdValue = BSONObjectID.generate object id extends ObjectIdField(this.asInstanceOf[OwnerType]) { override def name = "_id" override def d...
whisklabs/reactiverogue
reactiverogue-core/src/main/scala/reactiverogue/record/field/ObjectIdPk.scala
Scala
apache-2.0
355
package mesosphere.marathon package core.election.impl import akka.event.EventStream import mesosphere.AkkaUnitTest import mesosphere.chaos.http.HttpConf import mesosphere.marathon.core.base.{ CrashStrategy, LifecycleState } import mesosphere.marathon.core.election.{ ElectionCandidate, ElectionService, LocalLeadershi...
Caerostris/marathon
src/test/scala/mesosphere/marathon/core/election/impl/PseudoElectionServiceTest.scala
Scala
apache-2.0
5,219
package actors import akka.actor.{Props, ActorRef, Actor} import utils.{StockQuote, PretendStockQuote} import scala.util.Random import scala.collection.immutable.{HashSet, Queue} import scala.concurrent.duration._ import scala.concurrent.ExecutionContext.Implicits.global import play.libs.Akka /** * There is one Stoc...
alanktwong/typesafe_activators
reactive-stocks/app/actors/StockActor.scala
Scala
mit
2,766
package coursera.week1 import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class PascalSuite extends FunSuite { import Main.pascal test("pascal: col=0,row=2") { assert(pascal(0,2) === 1) } test("pascal: col=1,row=2") { ...
testnaz/ScalaSandbox
src/test/scala/coursera/week1/PascalSuite.scala
Scala
gpl-3.0
430
/* * Copyright 2015-2016 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
xin-cai/openwhisk
core/controller/src/main/scala/whisk/core/entitlement/Collection.scala
Scala
apache-2.0
5,672
import org.scalatestplus.play._ import scala.collection.mutable class TestSpec extends PlaySpec { "A Stack" must { "pop values in last-in-first-out order" in { val stack = new mutable.Stack[Int] stack.push(1) stack.push(2) stack.pop() mustBe 2 stack.pop() mustBe 1 } "throw...
agoetschm/linkmanager
server/test/TestSpec.scala
Scala
gpl-3.0
520
/* * 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-blink/src/test/scala/org/apache/flink/table/planner/codegen/agg/AggsHandlerCodeGeneratorTest.scala
Scala
apache-2.0
3,931
package org.ferrit.core.crawler import akka.actor.{ActorSystem, Actor, ActorRef, Props} import akka.testkit.{TestKit, ImplicitSender} import akka.pattern.ask import akka.util.Timeout import scala.concurrent.{Await, Future, Promise} import scala.concurrent.duration._ import org.scalatest.{BeforeAndAfterAll, FlatSpec} i...
reggoodwin/ferrit
src/test/scala/org/ferrit/core/crawler/TestCrawlerManager.scala
Scala
mit
11,233
package mg import domain._ import java.util.concurrent.Executors import prickle._ import unfiltered.jetty.ContextAdder import unfiltered.request._ import unfiltered.response._ import scala.collection.mutable.Buffer import scala.concurrent.{ExecutionContext, Await, Future, Promise} import scala.util.{Random, Failur...
benhutchison/mg-web
src/main/scala/mg/UnfilteredApp.scala
Scala
apache-2.0
4,739
import sbt._ import Keys._ trait Default { lazy val defaultSettings = Seq( organization := "org.hrscala.sbt" , version := "0.0.1" , scalaVersion := "2.11.7" ) } object MyBuild extends Build with Default { lazy val api = Project( "api" , file("api") , settings = defaultSettings ) la...
dstimac/its-so-sbt
31-sbt-multi-project-build/project/MyBuild.scala
Scala
unlicense
496
package com.landoop.streamreactor.connect.hive.orc.vectors import org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector object BytesVectorWriter extends OrcVectorWriter[BytesColumnVector, Array[Byte]] { override def write(vector: BytesColumnVector, offset: Int, value: Option[Array[Byte]]): Unit = value match { ...
datamountaineer/stream-reactor
kafka-connect-hive/src/main/scala/com/landoop/streamreactor/connect/hive/orc/vectors/BytesVectorWriter.scala
Scala
apache-2.0
472
package io.mpjsons.impl.deserializer.immutables import io.mpjsons.impl.deserializer.jsontypes.AbstractJsonArrayDeserializer import io.mpjsons.impl.util.Context import io.mpjsons.impl.{DeserializerFactory, StringIterator} import scala.collection.immutable.ListSet import scala.reflect.runtime.universe._ /** * @author...
marpiec/mpjsons
src/main/scala/io/mpjsons/impl/deserializer/immutables/ListSetDeserializer.scala
Scala
apache-2.0
672
package org.apache.spark.mllib.clustering import breeze.linalg.{ DenseVector => DBV, DenseMatrix => DBM, diag, max, eigSym, Vector => BV, Matrix => BM } import org.apache.spark.mllib.util.{ MLUtils, Loader, Saveable } import org.apache.spark.mllib.stat.distribution.{ MultivariateGaussian, Dirichlet, Wishart, NormalWis...
geb5101h/BayesGaussianMixture
src/main/scala/bayesGaussianMixture/VBGaussianMixtureModel.scala
Scala
mit
3,984
/*********************************************************************** * Copyright (c) 2013-2016 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 ...
tkunicki/geomesa
geomesa-features/geomesa-feature-avro/src/test/scala/org/locationtech/geomesa/features/avro/serde/Version2ASF.scala
Scala
apache-2.0
12,465
/* * 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/main/scala/org/apache/flink/table/runtime/aggregate/RowTimeSortProcessFunction.scala
Scala
apache-2.0
4,801
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
asorianostratio/incubator-toree
kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/ActorLoaderSpec.scala
Scala
apache-2.0
3,408
package controllers import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future import actions.Actions import daos.ProductDao import be.objectify.deadbolt.scala.{ActionBuilders, AuthenticatedRequest} import javax.inject.Inject import play.api.i18n.{MessagesApi, I18nSupport} import play.ap...
kdoomsday/doomcart
app/controllers/Application.scala
Scala
unlicense
1,179
/* * Copyright (c) 2014-2022 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apach...
snowplow/schema-ddl
modules/core/src/main/scala/com.snowplowanalytics/iglu.schemaddl/jsonschema/Keyword.scala
Scala
apache-2.0
3,134
/************************************************************************\\ ** Project ** ** ______ ______ __ ______ ____ ** ** / ____/ / __ / / / / __ / / __/ (c) 2011-2014 ** ** / /__ / /_...
lrytz/spire
core/src/main/scala/spire/random/rng/MersenneTwister32.scala
Scala
mit
4,663
/* * 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 n...
wangcy6/storm_app
frame/kafka-0.11.0/kafka-0.11.0.1-src/core/src/test/scala/unit/kafka/coordinator/transaction/TransactionCoordinatorTest.scala
Scala
apache-2.0
32,232
package com.twitter.finagle.netty4.ssl.client import com.twitter.finagle.Address import com.twitter.finagle.netty4.param.Allocator import com.twitter.finagle.netty4.ssl.Netty4SslConfigurations import com.twitter.finagle.ssl._ import com.twitter.finagle.ssl.client.{SslClientConfiguration, SslClientEngineFactory} import...
koshelev/finagle
finagle-netty4/src/main/scala/com/twitter/finagle/netty4/ssl/client/Netty4ClientEngineFactory.scala
Scala
apache-2.0
5,744
package repositories.analysis.dao import com.google.inject.{Inject, Singleton} import models.analysis._ import models.analysis.events.SampleCreated import no.uio.musit.MusitResults.{MusitDbError, MusitResult, MusitSuccess} import no.uio.musit.repositories.events.EventActions import no.uio.musit.models.ObjectTypes.Samp...
MUSIT-Norway/musit
service_backend/app/repositories/analysis/dao/SampleObjectDao.scala
Scala
gpl-2.0
6,231
/* * 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/nn/onnx/ShapeSpec.scala
Scala
apache-2.0
1,585
/* * 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 ...
csantanapr/incubator-openwhisk
tests/src/test/scala/invokerShoot/ShootInvokerTests.scala
Scala
apache-2.0
14,899
/* * Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
zoo/src/main/scala/com/intel/analytics/zoo/serving/utils/FileUtils.scala
Scala
apache-2.0
2,342
package com.rasterfoundry.api.toolrun import com.rasterfoundry.akkautil.Authentication import com.rasterfoundry.database.MapTokenDao import cats.effect.IO import cats.implicits._ import akka.http.scaladsl.server._ import doobie.Transactor import doobie.implicits._ import doobie._ import scala.concurrent.ExecutionCon...
azavea/raster-foundry
app-backend/api/src/main/scala/toolrun/ToolRunAuthorizationDirective.scala
Scala
apache-2.0
1,004
package calculator object Polynomial { def computeDelta(a: Signal[Double], b: Signal[Double], c: Signal[Double]): Signal[Double] = { Signal( b() * b() - 4 * a() * c() ) } def computeSolutions(a: Signal[Double], b: Signal[Double], c: Signal[Double], delta: Signal[Double]): Signal[Set[Do...
shouya/thinking-dumps
progfun2/week4-calculator/src/main/scala/calculator/Polynomial.scala
Scala
mit
615
/* * Copyright (c) 2014 koiroha.org. * All sources and related resources are available under Apache License 2.0. * http://www.apache.org/licenses/LICENSE-2.0.html */ package org.asterisque.msg import java.lang.reflect.Modifier import org.specs2.Specification // ++++++++++++++++++++++++++++++++++++++++++++++++++++...
torao/asterisque
core-scala/src/test/scala/org/asterisque/msg/AbortSpec.scala
Scala
apache-2.0
917
/* * Copyright (c) 2010-2011 Belmont Technology Pty Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
GrahamLea/SodaTest
sodatest-runtime/src/main/scala/org/sodatest/runtime/data/results/BlockResult.scala
Scala
apache-2.0
1,453
package controllers import play.api.mvc.{Result, Controller, Results} import play.api.test.FakeRequest import utils.{PlaySpecification, WithApplication} import scala.concurrent.Future class ClaimEndingSpec extends PlaySpecification with Results { class TestController() extends Controller section("unit") "Clai...
Department-for-Work-and-Pensions/ClaimCapture
c3/test/controllers/ClaimEndingSpec.scala
Scala
mit
1,922
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js Test Suite ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
jmnarloch/scala-js
test-suite/src/test/scala/org/scalajs/testsuite/jsinterop/StrangeNamedTests.scala
Scala
bsd-3-clause
1,003
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play.filters.headers import javax.inject.{ Inject, Provider, Singleton } import play.api.Configuration import play.api.inject._ import play.api.mvc._ /** * This class sets a number of common security headers on the HTTP request. *...
ktoso/playframework
framework/src/play-filters-helpers/src/main/scala/play/filters/headers/SecurityHeadersFilter.scala
Scala
apache-2.0
8,598
package jp.que.ti.sv.validator.immutable.pram1 import jp.que.ti.sv.Validator1ParamIF class Min protected (validators: Traversable[Validator1ParamIF]) extends AndValidator(validators) object Min { def apply(min: Int) = new Min(Number() :: MinValue(min) :: Nil) def apply(min: Long) = new Min(Number() :: MinValue(m...
yangiYA/simple-validator
simple-valid/src/main/scala/jp/que/ti/sv/validator/immutable/pram1/Min.scala
Scala
mit
333
object cool { def main(args: Array[String]) { // Put code here } }
LoyolaChicagoBooks/introcs-scala-examples
cool/cool.scala
Scala
gpl-3.0
75
/* * 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 ...
Panos-Bletsos/spark-cost-model-optimizer
core/src/test/scala/org/apache/spark/scheduler/FakeTask.scala
Scala
apache-2.0
2,130
package recfun import org.scalatest.FunSuite import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class BalanceSuite extends FunSuite { import Main.balance test("trivial case, empty list") { assert(balance("".toList)) } test("trivial success case") { ...
xfornesa/progfun
recfun/src/test/scala/recfun/BalanceSuite.scala
Scala
mit
797
/* Copyright 2009-2021 EPFL, Lausanne */ object NestedFunState6 { def simpleSideEffect(n: BigInt): BigInt = { require(n > 0) var a = BigInt(0) def incA(prevA: BigInt): Unit = { require(prevA == a) a += 1 } ensuring(_ => a == prevA + 1) incA(a) incA(a) incA(a) incA(a) ...
epfl-lara/stainless
frontends/benchmarks/imperative/valid/NestedFunState6.scala
Scala
apache-2.0
349
package observatory import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import org.scalatest.prop.Checkers import Interaction._ import scala.collection.concurrent.TrieMap @RunWith(classOf[JUnitRunner]) class InteractionTest extends FunSuite with Checkers { test("ti...
kevllino/scala-specialization
observatory/src/test/scala/observatory/InteractionTest.scala
Scala
mit
619
/* * 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 ...
bdrillard/spark
core/src/test/scala/org/apache/spark/StatusTrackerSuite.scala
Scala
apache-2.0
4,588
/* * 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 writin...
anilgursel/squbs
squbs-unicomplex/src/test/scala/org/squbs/dispatcher/ForkJoinConfiguratorSpec.scala
Scala
apache-2.0
4,091
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/expressions/DecimalTypeTest.scala
Scala
apache-2.0
5,153
package services.alertwatcherct import javax.inject._ import scala.concurrent.Future import utils.Awaits import models.alertwatcherct.Alert import dao.alertwatcherct.AlertWatcherCTDao import dao.alertwatcherct.IAlertWatcherCTDao import org.joda.time.DateTime import org.joda.time.LocalDate import java.sql.Timestamp imp...
tnddn/iv-web
portal/rest-portal/app/services/alertwatcherct/AlertWatcherCTService.scala
Scala
apache-2.0
2,273
/** * © 2019 Refinitiv. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
e-orz/CM-Well
server/cmwell-dc/src/main/scala/cmwell/dc/stream/InfotonAllMachinesDistributerAndIngester.scala
Scala
apache-2.0
7,947
package test import org.scalatest.Tag import org.scalatest.time.{Milliseconds, Seconds, Span} /** * ToolConstants for our tests. */ object ToolConstants { val DefaultMaxInputQueueSize = 50000 val DefaultMaxOutputQueueSize = 50000 val AccumulationTimeout = Span(500, Milliseconds) val EventuallyTimeout = Span...
ensime/scala-debugger
scala-debugger-tool/src/it/scala/test/ToolConstants.scala
Scala
apache-2.0
513
/* * Copyright 2014 - 2015 SlamData 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 a...
mossprescott/scala-pathy
tests/src/test/scala/pathy/path.scala
Scala
apache-2.0
6,666
/** * 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...
flange/drift-dev
kafka/00-kafka_2.11-0.10.1.0/libs/tmp/kafka/server/DelayedOperationKey.scala
Scala
apache-2.0
1,999
/* * Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
zoo/src/main/scala/com/intel/analytics/zoo/pipeline/api/autograd/InternalWithoutInput.scala
Scala
apache-2.0
696
/* * 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
sql/hive/src/test/scala/org/apache/spark/sql/sources/HadoopFsRelationTest.scala
Scala
apache-2.0
28,171
/* * Terron Ishihara * * A script to determine which users in the database are most relevant. * Relevance here is defined by * - users who most frequently tweet (who have the most tweets in the database) * - have a picture (TODO: consider using only pics that contain the user's face) * - being human (not an orga...
clulab/twitter4food
src/main/scala/org/clulab/twitter4food/t2dm/RelevantUsers.scala
Scala
apache-2.0
3,681
package org.openapitools.server.model /** * @param `class` for example: ''null'' */ final case class Label1 ( `class`: Option[String] )
cliffano/swaggy-jenkins
clients/scala-akka-http-server/generated/src/main/scala/org/openapitools/server/model/Label1.scala
Scala
mit
143
package org.machine.engine.exceptions class InternalErrorException(message: String = null, cause: Throwable = null) extends Exception(message, cause)
sholloway/graph-engine
src/main/scala/org/machine/engine/exceptions/InternalErrorException.scala
Scala
mit
151
package org.scaladebugger.api.profiles.java.info import org.scaladebugger.api.lowlevel.events.misc.NoResume import org.scaladebugger.api.profiles.java.JavaDebugProfile import org.scaladebugger.api.profiles.traits.info.{IndexedVariableInfo, ThreadInfo} import org.scaladebugger.api.utils.JDITools import org.scaladebugge...
ensime/scala-debugger
scala-debugger-api/src/it/scala/org/scaladebugger/api/profiles/java/info/JavaThreadInfoIntegrationSpec.scala
Scala
apache-2.0
4,276
package ru.maizy.ambient7.core.util /** * Copyright (c) Nikita Kovaliov, maizy.ru, 2016-2017 * See LICENSE.txt for details. */ import java.time.ZonedDateTime import java.time.temporal.ChronoUnit import scala.concurrent.duration.Duration // TODO: generalize for any date order past->future, future->past class DateT...
maizy/ambient7
core/src/main/scala/ru/maizy/ambient7/core/util/DateTimeIterator.scala
Scala
apache-2.0
1,060
package controllers import io.apibuilder.api.v0.models.{Publication, SubscriptionForm} import java.util.UUID import org.scalatestplus.play.guice.GuiceOneServerPerSuite import org.scalatestplus.play.PlaySpec class SubscriptionsSpec extends PlaySpec with MockClient with GuiceOneServerPerSuite { import scala.concurre...
gheine/apidoc
api/test/controllers/SubscriptionsSpec.scala
Scala
mit
5,904
package org.broadinstitute.clio.server.webservice import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server._ import org.broadinstitute.clio.server.service.IndexService import org.broadinstitute.clio.transfer.model.GvcfIndex import org.broadinstitute.clio.transfer.model.gvcf.GvcfKey import org.bro...
broadinstitute/clio
clio-server/src/main/scala/org/broadinstitute/clio/server/webservice/GvcfWebService.scala
Scala
bsd-3-clause
938
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
scalatest/scalatest
jvm/scalatest-test/src/test/scala/org/scalatest/DeprecatedParallelTestExecutionOrderExamples.scala
Scala
apache-2.0
20,592
package controller import skinny._ import skinny.filter.TxPerRequestFilter class SampleTxApiController extends SkinnyApiController with TxPerRequestFilter { def index = throw new RuntimeException("test") }
Kuchitama/skinny-framework
example/src/main/scala/controller/SampleTxApiController.scala
Scala
mit
211
package org.jetbrains.plugins.scala.lang.completion.keyword package generated class KeywordCompletionToplevelTest extends KeywordCompletionTestBase { //This class was generated by build script, please don't change this override def folderPath: String = super.folderPath + "toplevel/" def testcaseClass() = doTest...
katejim/intellij-scala
test/org/jetbrains/plugins/scala/lang/completion/keyword/generated/KeywordCompletionToplevelTest.scala
Scala
apache-2.0
453
package coursier.cli.install import java.io.File import java.nio.charset.StandardCharsets import java.nio.file.Files import cats.data.{NonEmptyList, Validated, ValidatedNel} import cats.implicits._ import coursier.cli.jvm.SharedJavaParams import coursier.cli.params.{CacheParams, EnvParams, OutputParams, RepositoryPar...
alexarchambault/coursier
modules/cli/src/main/scala/coursier/cli/install/InstallParams.scala
Scala
apache-2.0
2,940
/* Copyright 2014-2015 - Big Data Technologies S.R.L. All Rights Reserved. */ package supler import app.utils.IDGenerator import japgolly.scalajs.react.ReactElement import scala.collection.mutable.ListBuffer import scala.scalajs.js import app.utils.ExtJSON._ import japgolly.scalajs.react.vdom.prefix_<^._ case class...
aparo/scalajs-supler
supler/js/src/main/supler/Form.scala
Scala
apache-2.0
5,196
package scorex.app.api.http import akka.util.Timeout import play.api.libs.json.{JsObject, JsValue} import scorex.account.Account import scorex.app.Controller import scorex.block.Block import scorex.crypto.{Base58, SigningFunctionsImpl} import scala.concurrent.duration._ trait CommonApiFunctions { implicit val time...
pozharko/Scorex-Lagonaki
src/main/scala/scorex/app/api/http/CommonApiFunctions.scala
Scala
cc0-1.0
1,510
package org.crockeo.genericplatformer.game.world import org.crockeo.genericplatformer.assets.TextureManager import org.crockeo.genericplatformer.game.World import org.crockeo.genericplatformer.geom._ import org.crockeo.genericplatformer.Graphics class Player(sp: Vector) extends WorldObject(sp, new Vector(32, 64)) { ...
crockeo/generic-platformer
src/org/crockeo/genericplatformer/game/world/Player.scala
Scala
gpl-3.0
4,682
/* * 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 ...
sequenceiq/spark-native-yarn
src/main/scala/org/apache/spark/tez/io/TezSourceReader.scala
Scala
apache-2.0
3,358
/* * 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 ...
daewon/incubator-s2graph
s2core/src/test/scala/org/apache/s2graph/core/benchmark/OrderingUtilBenchmarkSpec.scala
Scala
apache-2.0
3,326
/* * 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/plan/nodes/physical/stream/StreamPhysicalLocalGroupAggregate.scala
Scala
apache-2.0
3,585
/* * 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/internal/compatibility/CompatibilityFor1_9.scala
Scala
apache-2.0
3,791
/* * 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 ...
kl0u/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/stream/table/TableToDataStreamITCase.scala
Scala
apache-2.0
9,920
package org.nexbook.performance.app import com.typesafe.config.ConfigFactory import org.nexbook.tags.Performance import org.slf4j.LoggerFactory /** * Created by milczu on 1/2/16. */ class OrderBookAppScenarioA03PerformanceTest extends OrderBookAppPerformanceTest { val logger = LoggerFactory.getLogger(classOf[...
milczarekIT/nexbook
src/test/scala/org/nexbook/performance/app/OrderBookAppScenarioA03PerformanceTest.scala
Scala
apache-2.0
1,081
package org.apache.spark.hbase.helpers import org.apache.hadoop.hbase.util.Bytes import org.apache.spark.hbase.Serde /** * Created by mharis on 07/08/15. */ trait SerdeInt extends Serde[Int] { override def toBytes = (value: Int) => Bytes.toBytes(value) override def fromBytes = (bytes: Array[Byte], o: Int, l: ...
michal-harish/spark-on-hbase
src/main/scala/org/apache/spark/hbase/helpers/SerdeInt.scala
Scala
apache-2.0
353
package xml.circumstances import models.domain.{CircumstancesPaymentChange, Claim} import scala.xml.NodeSeq import xml.XMLHelper._ object PaymentChange { def xml(circs :Claim): NodeSeq = { val circsPaymentChangeOption: Option[CircumstancesPaymentChange] = circs.questionGroup[CircumstancesPaymentChange] cir...
Department-for-Work-and-Pensions/ClaimCapture
c3/app/xml/circumstances/PaymentChange.scala
Scala
mit
1,913
import sbt._ import sbt.Keys._ object BuildSettings { val Name = "activator-scalding" val Version = "1.1.0" val ScalaVersion = "2.10.4" import Scalding._ val basicSettings = Defaults.defaultSettings ++ scaldingSettings ++ Seq ( name := Name, version := Version, scalaVersion := ...
softberries/ugproject
activator-scalding/project/Build.scala
Scala
unlicense
4,376
package com.teamisotope.techexpansion.item.special import java.util import cofh.api.energy.ItemEnergyContainer import com.teamisotope.techexpansion.TechExpansion import net.minecraft.entity.player.EntityPlayer import net.minecraft.item.ItemStack import net.minecraft.util.{ActionResult, EnumActionResult, EnumHand} imp...
collaborationmods/TechExpansion
src/main/scala/com/teamisotope/techexpansion/item/special/CoFHTest.scala
Scala
gpl-3.0
999
package special import scalan.RType import scalan.util.CollectionUtil import scala.reflect.ClassTag import scalan.RType.SomeType import special.collection.Coll object Types { type StructData = Coll[Any] def structRType(names: Array[String], types: Array[SomeType]): RType[StructData] = StructType(names, types) ...
ScorexFoundation/sigmastate-interpreter
library-api/src/main/scala/special/Types.scala
Scala
mit
1,890
//: ---------------------------------------------------------------------------- //: Copyright (C) 2014 Verizon. All Rights Reserved. //: //: Licensed under the Apache License, Version 2.0 (the "License"); //: you may not use this file except in compliance with the License. //: You may obtain a copy of the Licen...
ShengC/remotely
core/src/main/scala/codecs/EncodingFailure.scala
Scala
apache-2.0
927
/* * Copyright (C) 2012 The Regents of The University California. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
sameeragarwal/blinkdb_dev
src/test/scala/shark/SortSuite.scala
Scala
apache-2.0
1,600
/* * Copyright (c) 2014-2021 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...
monifu/monifu
monix-reactive/shared/src/test/scala/monix/reactive/observers/OverflowStrategyDropNewSuite.scala
Scala
apache-2.0
16,081
package com.twitter.finagle.netty3.channel import com.twitter.finagle.{ClientConnection, Service, ServiceFactory} import com.twitter.util.TimeConversions._ import com.twitter.util.{Await, Future, Promise, Time} import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import org.junit.runner.RunWith import ...
jpederzolli/finagle
finagle-core/src/test/scala/com/twitter/finagle/netty3/channel/IdleConnectionFilterTest.scala
Scala
apache-2.0
5,269
/* * 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 ...
Intel-bigdata/OAP
oap-cache/oap/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/SkipAndReadValueWithPackedDefinitionLevelsSuite.scala
Scala
apache-2.0
9,043
/* * Copyright 2014–2018 SlamData 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...
jedesah/Quasar
rdbms/src/main/scala/quasar/physical/rdbms/planner/Planner.scala
Scala
apache-2.0
3,556
/* * Copyright 2015 Matt Massie * * 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...
massie/avrotuples
src/main/scala/com/github/massie/avrotuples/AvroTuple22.scala
Scala
apache-2.0
9,046
package liang.don.dzviewer.log import liang.don.dzviewer.config.ViewerProperties import liang.don.dzviewer.config.ViewerProperties.{LogType, BuildTarget} /** * Logs information. * * @author Don Liang * @Version 0.1, 15/09/2011 */ object Logger { protected val baseFolder = "log" private val _logger: LoggerI...
dl2k84/DeepZoomViewer
src/liang/don/dzviewer/log/Logger.scala
Scala
mit
1,267
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
yusuke2255/dotty
src/scala/Product0.scala
Scala
bsd-3-clause
913
/** * Created by cnavarro on 15/10/15. */ import org.apache.spark._ object PipeExample { def main(args: Array[String]) { val master = args.length match { case x: Int if x > 0 => args(0) case _ => "local" } val sc = new SparkContext(master, "PipeExample", System.getenv("SPARK_HOME")) val...
canademar/me_extractors
spark_test/src/main/scala/PipeExample.scala
Scala
gpl-2.0
843