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
/* * 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 ...
icexelloss/spark
core/src/main/scala/org/apache/spark/MapOutputTracker.scala
Scala
apache-2.0
35,692
/** * 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/AExpression.scala
Scala
apache-2.0
786
/******************************************************************************* * Copyright (c) 2012-2013 CWI * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http...
msteindorfer/oopsla15-artifact
pdb.values.persistent.scala/src/main/scala/org/eclipse/imp/pdb/facts/impl/persistent/scala/TypelessMapWriter.scala
Scala
epl-1.0
1,654
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. package scalaxb.error.types /** * See http://www.w3.org/XML/1998/namespace.html and * http://www.w3.org/TR/REC-xml for information about this namespace. * * This schema document describes the XML namespace, in a form * suitable for import by other schema ...
lespea/scalaxb-issue
src/main/scala/scalaxb/error/types/xml.scala
Scala
mit
2,370
package uk.gov.gds.ier.validation.constraints import uk.gov.gds.ier.test.FormTestSuite import uk.gov.gds.ier.model.{PreviousName, Name} import play.api.data.validation.{Invalid, Valid} class NameCommonConstraintsTests extends FormTestSuite with NameCommonConstraints { behavior of "NameCommonConstraints.firstN...
alphagov/ier-frontend
test/uk/gov/gds/ier/validation/constraints/NameCommonConstraintsTests.scala
Scala
mit
6,367
/* * Copyright (c) 2011-2017 Interfaculty Department of Geoinformatics, University of * Salzburg (Z_GIS) & Institute of Geological and Nuclear Sciences Limited (GNS Science) * in the SMART Aquifer Characterisation (SAC) programme funded by the New Zealand * Ministry of Business, Innovation and Employment (MBIE) * ...
ZGIS/smart-portal-backend
test/MdMetadataSpec.scala
Scala
apache-2.0
10,561
package modules import com.google.inject.{ AbstractModule, Provides } import com.mohiva.play.silhouette.api.repositories.AuthInfoRepository import com.mohiva.play.silhouette.api.services._ import com.mohiva.play.silhouette.api.util._ import com.mohiva.play.silhouette.api.{LoginInfo, Environment, EventBus} import com.m...
glidester/play-silhouette-seed
app/modules/SilhouetteModule.scala
Scala
apache-2.0
12,346
/* * 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
mongodb/src/main/scala/quasar/physical/mongodb/workflowbuilder.scala
Scala
apache-2.0
33,262
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ // GENERATED CODE: DO NOT EDIT...
scala/scala
src/library/scala/runtime/AbstractFunction16.scala
Scala
apache-2.0
604
package sharry.restserver.routes.tus import cats.data.OptionT import cats.effect._ import cats.implicits._ import sharry.backend.BackendApp import sharry.backend.auth.AuthToken import sharry.backend.share.{FileInfo, UploadResult} import sharry.common._ import sharry.common.syntax.all._ import sharry.restserver.Config...
eikek/sharry
modules/restserver/src/main/scala/sharry/restserver/routes/tus/TusRoutes.scala
Scala
gpl-3.0
4,142
/*- * #%L * FWAPP Framework * %% * Copyright (C) 2016 - 2017 Open Design Flow * %% * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) a...
opendesignflow/fwapp
src/main/scala/org/odfi/wsb/fwapp/framework/websocket/WebsocketView.scala
Scala
agpl-3.0
4,510
/** * 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/Pipe.scala
Scala
gpl-3.0
4,570
package julienrf.forms.manual class Presenters { """ ## Presenters The last piece of the puzzle are [`Presenter`](http://julienrf.github.io/play-forms/0.0.0-SNAPSHOT/api/#julienrf.forms.presenters.Presenter)s. As its name suggests, a `Presenter[A]` defines how to present a field of type `A` to the client. play-form...
julienrf/play-forms
manual/src/main/scala/julienrf/forms/manual/Presenters.scala
Scala
mit
816
package scala.xml import org.junit.Test import org.junit.Assert.assertEquals class XMLEmbeddingTest { @Test def basic: Unit = { val ya = <x>{{</x> assertEquals("{", ya.text) val ua = <x>}}</x> assertEquals("}", ua.text) val za = <x>{{}}{{}}{{}}</x> assertEquals("{}{}{}", za.text) } }
scala/scala-xml
shared/src/test/scala/scala/xml/XMLEmbeddingTest.scala
Scala
apache-2.0
319
package com.twitter.finagle.httpx.filter import com.twitter.finagle.Service import com.twitter.finagle.httpx.{Request, Response, Status, Method} import com.twitter.util.{Await, Future, Duration} import org.junit.runner.RunWith import org.scalatest.{FlatSpec, MustMatchers} import org.scalatest.junit.JUnitRunner @RunWi...
travisbrown/finagle
finagle-httpx/src/test/scala/com/twitter/finagle/httpx/filter/CorsTest.scala
Scala
apache-2.0
4,215
package org.scalatest.examples.featurespec.infopending import org.scalatest._ class TVSet { private var on: Boolean = false def isOn: Boolean = on def pressPowerButton() { on = !on } } class TVSetSpec extends FeatureSpec with GivenWhenThen { info("As a TV set owner") info("I want to be able to tur...
hubertp/scalatest
examples/src/main/scala/org/scalatest/examples/featurespec/infopending/TVSetSpec.scala
Scala
apache-2.0
874
/* * Copyright (C) 2012 Romain Reuillon * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
openmole/openmole
openmole/plugins/org.openmole.plugin.sampling.combine/src/main/scala/org/openmole/plugin/sampling/combine/ShuffleSampling.scala
Scala
agpl-3.0
1,514
/* * 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...
travisbrown/scalatest
src/test/scala/org/scalatest/tools/JUnitXmlReporterSuite.scala
Scala
apache-2.0
9,804
import com.typesafe.config.ConfigFactory import org.scalatest.{FlatSpec, Matchers} class TestConfigValueSerializer extends FlatSpec with Matchers { import eu.inn.binders.tconfig._ "ConfigValue " should " deserialize class with String" in { val config = ConfigFactory.parseString("obj.string-val:abc") val...
InnovaCo/binders-typesafe-config
src/test/scala/TestConfigValueSerializer.scala
Scala
bsd-3-clause
443
package org.podval.families.template.split.family trait T1Base[F <: Family[F]] extends FamilyMember[F] { this: F#T1 => def add(t2: F#T1): F#T1 = family.createT1 def double: F#T1 = add(this) // TODO To avoid compilation errors, instead of type aliases, use F#Ti directly. // type T2 = F#T2 }
dubinsky/podval-families
src/main/scala/org/podval/families/template/split/family/T1Base.scala
Scala
apache-2.0
301
/* * 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 ...
kissmetrics/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/command/AnalyzeColumnCommand.scala
Scala
apache-2.0
4,851
/* * 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
sql/core/src/test/scala/org/apache/spark/sql/streaming/FileStreamSourceSuite.scala
Scala
apache-2.0
44,077
package org.jetbrains.plugins.scala package lang package psi package api package expr import com.intellij.openapi.progress.ProgressManager import com.intellij.psi._ import org.jetbrains.plugins.scala.caches.CachesUtil import org.jetbrains.plugins.scala.extensions.ElementText import org.jetbrains.plugins.scala.lang.lex...
ghik/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ScExpression.scala
Scala
apache-2.0
26,078
package debop4s.data.slick.examples import java.sql.{Blob, Date, Time, Timestamp} import java.util.UUID import javax.sql.rowset.serial.SerialBlob import debop4s.core.io.Serializers import debop4s.core.utils.Streams import debop4s.data.slick.SlickExampleDatabase._ import debop4s.data.slick.SlickExampleDatabase.driver....
debop/debop4s
debop4s-data-slick/src/test/scala/debop4s/data/slick/examples/JdbcTypeFunSuite.scala
Scala
apache-2.0
7,038
/* 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 to in writing, software distr...
MansurAshraf/chill
chill-scala/src/main/scala/com/twitter/chill/config/ScalaAnyRefMapConfig.scala
Scala
apache-2.0
1,385
package walfie.gbf.raidfinder.server import play.api.http.HttpErrorHandler import play.api.libs.json._ import play.api.mvc._ import play.api.mvc.Results._ import scala.concurrent.Future class ErrorHandler extends HttpErrorHandler { // TODO: Make this more structured private def jsonResponse(statusCode: Int, messa...
gnawnoraa/GBF-Raider-Copy
server/src/main/scala/walfie/gbf/raidfinder/server/ErrorHandler.scala
Scala
mit
887
package jp.co.dwango.s99 import org.scalatest.{DiagrammedAssertions, FunSpec} import binary_trees._ import P61a._ class P61aSpec extends FunSpec with DiagrammedAssertions { describe("P61a") { it("collect value of leaves") { assert( Node('a', Node('b'), Node('c', Node('d'), Node('e'))).leafList.toS...
dwango/S99
src/test/scala/jp/co/dwango/s99/P61aSpec.scala
Scala
mit
501
package scaladex.data package maven import scaladex.core.model.Artifact /** Abstract model of a released artifact. Initially modeled after the POM model. Tweaked to fit with ivy.xml descriptors */ // POM Model // https://maven.apache.org/pom.html // javadoc: https://maven.apache.org/ref/3.3.9/maven-model/apidocs/org/...
scalacenter/scaladex
modules/data/src/main/scala/scaladex/data/maven/ArtifactModel.scala
Scala
bsd-3-clause
5,478
package restapis import java.util.UUID import play.api.mvc._ import play.api.libs.functional.syntax._ import play.api.libs.json._ import play.api.libs.json.Json._ import play.api.libs.json.Reads._ import play.api.libs.iteratee._ import play.api.libs.concurrent.Execution.Implicits.defaultContext import play.api.Play.c...
lequangdzung/quora-clone
api-app/app/restapis/AnswerRest.scala
Scala
gpl-2.0
2,496
/*********************************************************************** * 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...
ddseapy/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/geotools/converters/StringCollectionConverterFactory.scala
Scala
apache-2.0
5,104
package paperdoll.scalaz import scalaz.EitherT import paperdoll.core.effect.Effects import scalaz.Functor import paperdoll.core.layer.Layer import scalaz.Disjunction object EitherTLayer { def sendEitherT[F[_]: Functor, A, B](et: EitherT[F, A, B]): Effects.Two[Layer.Aux[F], Disjunction_[A], B] = Effects.sendTU[F...
m50d/paperdoll
scalaz/src/main/scala/paperdoll/scalaz/EitherTLayer.scala
Scala
apache-2.0
369
package net.cucumbersome.rpgRoller.warhammer.infrastructure.repositories import akka.Done import com.danielasfregola.randomdatagenerator.RandomDataGenerator import net.cucumbersome.UnitSpec import net.cucumbersome.rpgRoller.warhammer.infrastructure.repositories.ActorRepository.FilterExpression import net.cucumbersome....
CucumisSativus/rpgRollerBackend
src/test/scala/net/cucumbersome/rpgRoller/warhammer/infrastructure/repositories/MongoDbActorRepositorySpec.scala
Scala
mit
4,572
package reactive.jaxjug import java.lang.{Long => JLong} import java.util.concurrent.TimeUnit._ import org.scalatest.{FunSuite, ShouldMatchers} import rx.Observable import rx.observers.TestSubscriber import rx.schedulers.TestScheduler import rx.subjects.PublishSubject import scala.collection.JavaConverters._ class ...
coacoas/presentation-reactive
src/test/scala/reactive/jaxjug/TestSchedulerSample.scala
Scala
apache-2.0
2,181
package toguru.helpers import akka.actor.ActorSystem import akka.persistence.inmemory.extension._ import akka.stream.ActorMaterializer import akka.testkit.TestProbe import com.typesafe.config.ConfigFactory import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, MustMatchers} import org.scalatestplus.play.PlaySpec...
andreas-schroeder/toguru
test/toguru/helpers/ActorSpec.scala
Scala
mit
1,349
/* * 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
mllib/src/main/scala/org/apache/spark/mllib/clustering/BisectingKMeans.scala
Scala
apache-2.0
20,129
package suiryc.scala.misc import suiryc.scala.math.BigDecimals // TODO - handle time system (separate for human readable form, or introduce 'cumulative' notion ?) // TODO - handle floating points in human representation parsing ? object Units { val scaleSI = 1000L val scaleBinary = 1024L private val ValueReg...
suiryc/suiryc-scala
core/src/main/scala/suiryc/scala/misc/Units.scala
Scala
gpl-3.0
4,023
/* * 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...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/fixture/AsyncFeatureSpecLikeSpec.scala
Scala
apache-2.0
34,866
package db import anorm._ import models.CruitedProduct import play.api.Logger import play.api.Play.current import play.api.db.DB import services.GlobalConfig object DbAdmin { def reCreateTables() { } private def dropTable(tableName: String) { DB.withConnection { implicit c => val query = "drop table ...
PanzerKunst/redesigned-cruited.com-frontend
website/app/db/DbAdmin.scala
Scala
gpl-3.0
1,551
/* * 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 ...
hengyicai/OnlineAggregationUCAS
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
Scala
apache-2.0
11,790
package com.example.integration import akka.kafka.scaladsl.{Consumer, Producer} import akka.kafka.{ProducerMessage, Subscriptions} import org.apache.kafka.clients.producer.ProducerRecord import com.example._ object CommitConsumerToSinkProducer { /** * Consume from from one topic and write to another with Sinks...
arukavytsia/kafka-samples
akka-streams-kafka/src/main/scala/com/example/integration/CommitConsumerToSinkProducer.scala
Scala
apache-2.0
684
package com.socrata.curator import com.typesafe.config.Config class DiscoveryBrokerConfig(config: Config, curatorRoot: String, discoveryRoot: String) { def this(config: Config, root: String) { // scalastyle:ignore this(config, root, root) } /** Zookeeper configuration. */ lazy val curator = new CuratorCo...
socrata-platform/socrata-curator-utils
core/src/main/scala/com.socrata.curator/DiscoveryBrokerConfig.scala
Scala
apache-2.0
449
package com.wavesplatform.serialization import com.wavesplatform.api.http.ApiError import com.wavesplatform.lang.v1.compiler.Terms._ import play.api.libs.json.{JsObject, Json} object ScriptValuesJson { def serializeValue(e: EVALUATED): JsObject = (e: @unchecked) match { case CONST_LONG(num) => Json.ob...
wavesplatform/Waves
node/src/main/scala/com/wavesplatform/serialization/ScriptValuesJson.scala
Scala
mit
1,108
package edu.nus.hipci.cli import java.nio.file.Paths import scala.concurrent.Await import akka.actor.ActorSystem import akka.pattern._ import com.typesafe.config.ConfigFactory import edu.nus.hipci.core._ sealed trait MainRequest case class InitCLI(args: Seq[String]) extends MainRequest /** Singleton descriptor of th...
rgoulter/hipci
src/main/edu/nus/hipci/cli/Main.scala
Scala
mit
1,932
/* * 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 ...
mlperf/training_results_v0.6
Fujitsu/benchmarks/resnet/implementations/mxnet/scala-package/examples/src/test/scala/org/apache/mxnetexamples/imclassification/IMClassificationExampleSuite.scala
Scala
apache-2.0
2,262
package org.jetbrains.plugins.scala.console import com.intellij.execution.console.ConsoleHistoryController import com.intellij.execution.process.ProcessHandler import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile import com.intellij.util.containers.Conta...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/console/ScalaConsoleInfo.scala
Scala
apache-2.0
3,857
package com.sksamuel.elastic4s.http.cat import com.fasterxml.jackson.annotation.JsonProperty case class CatAlias(alias: String, index: String, filter: String, routing: Routing) case class Routing(index: String, search: String) case class CatShards(index: String, shard: String, ...
aroundus-inc/elastic4s
elastic4s-http/src/main/scala/com/sksamuel/elastic4s/http/cat/domain.scala
Scala
apache-2.0
3,541
/* * 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 ...
ddna1021/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/GenerateSafeProjection.scala
Scala
apache-2.0
7,645
package shapeless.contrib.scalaz import scalaz.{Semigroup, Monoid, Equal, Order, Show, Ordering, Cord} import shapeless._ import shapeless.contrib._ trait Empty { def emptyProduct = new Monoid[HNil] with Order[HNil] with Show[HNil] { def zero = HNil def append(f1: HNil, f2: => HNil) = HNil override de...
milessabin/shapeless-contrib
scalaz/src/main/scala/typeclass.scala
Scala
mit
6,781
/* * 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 ...
ueshin/apache-spark
sql/core/src/test/scala/org/apache/spark/sql/execution/RowToColumnConverterSuite.scala
Scala
apache-2.0
5,533
package recfun object Main { def main(args: Array[String]) { println("Pascal's Triangle") for (row <- 0 to 10) { for (col <- 0 to row) print(pascal(col, row) + " ") println() } } /** * Exercise 1 */ def pascal(c: Int, r: Int): Int = if (c == 0 || c == r) 1 else p...
tavaresdong/courses
epfl_scala/course1/recfun/src/main/scala/recfun/Main.scala
Scala
mit
544
package tomby.scala.bricks import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers import tomby.scala.bricks.Matrix._ class MatrixSpec extends AnyFlatSpec with Matchers { "A Matrix" should "be empty at the beginning" in { val matrix = Matrix(3, 3) println(matrix.mkStr...
tonivade/scala-bricks
src/test/scala/tomby/scala/bricks/MatrixSpec.scala
Scala
mit
4,327
package scalaz.stream import scalaz.concurrent.Task import scalaz._ import scalaz.\\/._ import Process.{Process1, Sink} import org.scalacheck._ import Prop._ object CreatingStreams extends Properties("creating-streams") { /* Streams, sources, sinks, and stream transducers are represented in scalaz-stream u...
Spinoco/scalaz-stream
src/test/scala/scalaz/stream/examples/CreatingStreams.scala
Scala
mit
5,396
/* * Copyright 2019 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/hmrctest
src/main/scala/uk/gov/hmrc/play/test/JsonLookups.scala
Scala
apache-2.0
1,640
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package org.scalajs.testsuite.utils import sc...
gzm0/scala-js
test-suite/js/src/main/scala/org/scalajs/testsuite/utils/Platform.scala
Scala
apache-2.0
5,040
package com.shocktrade.util import java.text.SimpleDateFormat import java.util.{Calendar, Date, TimeZone} import org.joda.time.DateTime import scala.concurrent.duration.FiniteDuration import scala.language.implicitConversions /** * ShockTrade Date Utility * @author lawrence.daniels@gmail.com */ object DateUtil {...
ldaniels528/shocktrade-server
app-server/app/com/shocktrade/util/DateUtil.scala
Scala
apache-2.0
14,112
/* * 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/ml/feature/IDFSuite.scala
Scala
apache-2.0
5,078
/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.10.42 * apibuilder 0.15.33 app.apibuilder.io/flow/error/latest/anorm_2_8_parsers */ import anorm._ package io.flow.error.v0.anorm.parsers { import io.flow.error.v0.anorm.conversions.Standard._ import io.flow.error.v0.anorm.conver...
flowcommerce/dependency
api/app/generated/FlowErrorV0Parsers.scala
Scala
mit
1,522
package com.cloudray.scalapress.item.attr import org.scalatest.FunSuite import org.scalatest.mock.MockitoSugar import org.springframework.context.support.ClassPathXmlApplicationContext import com.cloudray.scalapress.TestDatabaseContext /** @author Stephen Samuel */ class AttributeDaoTest extends FunSuite with Mockito...
vidyacraghav/scalapress
src/test/scala/com/cloudray/scalapress/item/attr/AttributeDaoTest.scala
Scala
apache-2.0
1,584
package svez.akka.stream.syntax import akka.stream.scaladsl.{Flow, Keep, Sink, Source} import cats.data.Ior import svez.akka.stream.stages.diverters.DivertLeftIor import svez.akka.stream.stages.ior import scala.concurrent.{ExecutionContext, Future} object metadata { final implicit class SourceMetaOps[M, O, Mat](v...
svezfaz/akka-stream-fp
core/src/main/scala/svez/akka/stream/syntax/metadata.scala
Scala
apache-2.0
1,771
/* * Copyright 2011-2018 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 applic...
wiacekm/gatling
gatling-core/src/main/scala/io/gatling/core/check/extractor/css/FormExtractor.scala
Scala
apache-2.0
6,183
package client import akka.actor.{ActorRef, ActorSystem} import communication.{Ping, Request} import index.{DirectoryIndex, FileIndex} import akka.pattern.ask import scala.concurrent.Await import scala.concurrent.duration._ import utils.Jade import utils.{NodeController, IndexUtils} import scala.collection.mutable i...
mprzewie/cloudia-client
src/main/scala/client/CloudiaClientServlet.scala
Scala
mit
3,212
/* * 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...
sjyk/sampleclean
src/main/scala/shark/execution/Operator.scala
Scala
apache-2.0
11,856
package ch.epfl.bluebrain.nexus.iam.auth /** * A data structure which represents an access token * * @param value the token value */ final case class AccessToken(value: String)
hygt/nexus-iam
src/main/scala/ch/epfl/bluebrain/nexus/iam/auth/AccessToken.scala
Scala
apache-2.0
186
/* * 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-native-sql/core/src/test/scala/org/apache/spark/sql/expressions/ExpressionInfoSuite.scala
Scala
apache-2.0
8,379
package gkit.mongo import play.api.libs.iteratee.Enumerator import reactivemongo.bson.BSONDocument import reactivemongo.api._ import reactivemongo.api.commands.GetLastError import reactivemongo.core.commands._ import scala.concurrent.ExecutionContext import scalaz.syntax.std.option._ import scalaz.syntax.either._ ...
kindleit/gkit
mongo/src/main/scala/Collection.scala
Scala
apache-2.0
2,993
/* * 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
core/src/main/scala/org/apache/spark/SparkContext.scala
Scala
apache-2.0
121,911
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/nn/internal/AveragePooling1D.scala
Scala
apache-2.0
3,060
package org.scalamu.testing.specs2 import org.specs2.mutable.Specification class Failed extends Specification { def foo(): Unit = throw new RuntimeException "this is my specification" >> { "where example 1 must be true" >> { 1.must_==(1) } "where example 2 must be true" >> { 2.must_==(2) ...
sugakandrey/scalamu
testing/specs2/src/test/scala/org/scalamu/testing/specs2/Failed.scala
Scala
gpl-3.0
485
/* * 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 ...
darionyaphet/spark
core/src/main/scala/org/apache/spark/deploy/StandaloneResourceUtils.scala
Scala
apache-2.0
17,257
/* * 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/memory/UnifiedMemoryManager.scala
Scala
apache-2.0
11,485
package freecli package option package dsl import shapeless._ import shapeless.ops.hlist.{Diff, Intersection, LeftFolder} import core.api.CanProduce import option.dsl.OptDslBuilder.DefaultValue trait DefaultImplicits { type DefaultTypes[T] = DefaultValue[T] :: HNil implicit def canProduceDefault[H <: HList, T, ...
pavlosgi/freecli
core/src/main/scala/freecli/option/dsl/DefaultImplicits.scala
Scala
apache-2.0
1,056
/* * Copyright 2012-2013 Stephane Godbillon (@sgodbillon) and Zenexity * * 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...
qubell/ReactiveMongo
driver/src/main/scala/api/bulk.scala
Scala
apache-2.0
3,986
package uk.gov.gds.common.placesclient.api.client.implementations import uk.gov.gds.common.model.{LocalAuthority, Address} import uk.gov.gds.common.http.ApiResponseException import uk.gov.gds.common.placesclient.api.client.PlacesApiClient object MockPlacesApiClient extends PlacesApiClient { private case class Mock...
alphagov/gds-scala-common
govuk-clients/src/main/scala/uk/gov/gds/common/placesclient/api/client/implementations/MockPlacesApiClient.scala
Scala
mit
4,124
package ro.cipex.eai.pattern.message_bus import scala.language.postfixOps import scala.collection.mutable import scala.concurrent.duration._ import org.scalatest.Matchers import org.scalatest.WordSpecLike import akka.actor.ActorSystem import akka.actor.{ Actor, ActorRef, ActorLogging, Props } import akka.event.Loggi...
ibnHatab/EAI_DomainModel
src/test/scala/patterns/eai/MessageBusSpec.scala
Scala
artistic-2.0
5,069
/* * ScalaRay - Ray tracer based on pbrt (see http://pbrt.org) written in Scala * Copyright (C) 2009, 2010, 2011 Jesper de Jong * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either ve...
jesperdj/scalaray
src/main/scala/org/jesperdj/scalaray/shape/Cylinder.scala
Scala
gpl-3.0
4,244
package org.intracer.wmua import java.time.ZonedDateTime import scalikejdbc._ case class Comment( id: Long, userId: Long, username: String, roundId: Long, contestId: Option[Long], room: Long, createdAt: String, body: String) object CommentJdbc extends SQLSyntaxSupport[Comment] { override val tabl...
intracer/wlxjury
app/org/intracer/wmua/Comment.scala
Scala
apache-2.0
2,985
package gcli import org.scalatest._ class GcliSpec extends FlatSpec with Matchers { }
sthzg/gcli-scala
src/test/scala/gcli/GcliSpec.scala
Scala
mit
88
package c02 case class Item(name: String) trait NumberTo { def method1(numberBe: NumberBe): NumberBe } case class NumberToS(tail: () => NumberTo, head: Item) extends NumberTo { override def method1(numberBe: NumberBe): NumberBe = numberBe.method2(tail()) } case object NumberToT extends NumberTo { override def m...
djx314/ubw
a58-jysg项目存档/src/main/scala/c02/Counter.scala
Scala
bsd-3-clause
690
package com.geishatokyo.sqlgen.logger /** * * User: takeshita * Create: 12/01/24 23:50 */ trait Logger { def log(message : String) : Unit def log(message : String , e : Exception) : Unit def replace( valueType : String , before : String , after : String) : Unit } object Logger extends Logger{ val logge...
geishatokyo/sql-generator
src/main/scala/com/geishatokyo/sqlgen/logger/Logger.scala
Scala
mit
994
/** * Copyright (C) 2017 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
orbeon/orbeon-forms
xforms-web/src/main/scala/org/orbeon/xforms/rpc/RpcClient.scala
Scala
lgpl-2.1
2,690
/* * Copyright 2009-2011 WorldWide Conferencing, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
dacr/json4s
ast/src/main/scala/org/json4s/JsonDSL.scala
Scala
apache-2.0
4,108
import scala.reflect.runtime.universe._ import scala.reflect.runtime.{currentMirror => m} import scala.reflect.runtime.{universe => u} object Test extends App { locally { try { case class Test(a:String,b:List[Int]) val lookAtMe = m.reflect(Test("a",List(5))) val value = u.typeOf[Test] va...
yusuke2255/dotty
tests/untried/neg/t6323a.scala
Scala
bsd-3-clause
632
package org.jetbrains.plugins.scala package lang package psi package api package expr import org.jetbrains.plugins.scala.lang.psi.api.base.ScConstructor import org.jetbrains.plugins.scala.lang.psi.api.toplevel.typedef.ScTemplateDefinition /** * @author Alexander Podkhalyuzin * Date: 06.03.2008 */ trait ScNewTemplateD...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ScNewTemplateDefinition.scala
Scala
apache-2.0
485
package uk.co.pragmasoft.validate import org.scalatest.{Matchers, FlatSpec} class TypeValidationDSLSpec extends FlatSpec with Matchers { case class TestClass(property1: String, property2: Boolean) case class OtherTestClass(property1: String, property2: Boolean) import uk.co.pragmasoft.validate.TypeValidation...
galarragas/ValiData
src/test/scala/uk/co/pragmasoft/validate/TypeValidationDSLSpec.scala
Scala
apache-2.0
5,679
package ru.maizy.influxdbclient.util /** * Copyright (c) Nikita Kovaliov, maizy.ru, 2016-2017 * See LICENSE.txt for details. */ import java.time.format.DateTimeFormatter import java.time.{ Instant, ZoneId, ZoneOffset, ZonedDateTime } import scala.util.Try object Dates { val INFLUXDB_TIMEZONE = ZoneOffset.UTC ...
maizy/ambient7
influxdb-client/src/main/scala/ru/maizy/influxdbclient/util/Dates.scala
Scala
apache-2.0
826
package specs.box import com.plasmaconduit.conveyance.{ConveyedError, ConveyedInput, Conveyor, Box} import org.specs2.mutable._ class BoxErrorSpecification extends Specification { "Creating a box w/ Box.error()" should { "produce a box containing the passed in value" in { var error = "" Box.error[S...
plasmaconduit/conveyance
src/test/scala/specs/box/BoxErrorSpecification.scala
Scala
mit
512
trait IterateeT[F[_]] trait StepT[F[_]] class Test { def iterateeT[F[_]](s: F[StepT[F]]): IterateeT[F] = ??? def fail[M[+_]]: IterateeT[M] = { val back: M[StepT[M]] = ??? iterateeT(back) // fails after SI-2066 fix } def okay1[M[_]]: IterateeT[M] = { val back: M[StepT[M]] = ??? iterateeT(back)...
lrytz/scala
test/files/pos/t8522.scala
Scala
apache-2.0
483
/* * Copyright (c) 2016. Fengguo (Hugo) Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Detailed co...
arguslab/argus-cit-intellij
src/main/scala/org/argus/cit/intellij/jawa/annotator/gutter/JawaLineMarkerProvider.scala
Scala
epl-1.0
1,840
package at.fabricate.openthings package snippet import net.liftweb.common.Logger import net.liftweb.http.DispatchSnippet import model.User import net.liftweb.http.S import scala.xml.NodeSeq import net.liftweb.util._ import net.liftweb.common._ import net.liftweb.util.Helpers._ import net.liftweb.mapper.Descending impo...
Fabricate/OpenthingsImplementation
src/main/scala/at/fabricate/openthings/snippet/UserSnippet.scala
Scala
lgpl-3.0
4,486
package org.helgoboss.domino import org.osgi.framework.BundleContext import org.helgoboss.capsule._ /** * Provides the basis for the Domino DSL by binding the bundle lifecycle to a capsule scope. * * @groupname Basics Basics * @groupdesc Basics Basic methods * @see [[org.helgoboss.capsule]] */ trait OsgiContext...
lefou/domino
src/main/scala/org/helgoboss/domino/OsgiContext.scala
Scala
mit
2,521
package main.factory import main.util.{MainHolder, SparkEnv} /** * Created by zhy on 2015/8/2 0002. */ /** * 推荐算法输入数据 */ trait InputRecData extends Serializable { protected val sc = SparkEnv.sc protected val ratings = MainHolder.getDataHolder().getData MainHolder.getDataHolder().getDataDesc //分割数据集为训练集、...
zhanghaoyu1993/MachineLearning_in_Spark
sparkML/src/main/factory/AlgTrait.scala
Scala
mit
1,312
package chrome.management.bindings import scala.scalajs.js @js.native trait ExtensionInfo extends js.Object { val id: String = js.native val name: String = js.native val shortName: String = js.native val description: String = js.native val version: String = js.native val mayDisable: Boolean = js.native ...
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/management/bindings/ExtensionInfo.scala
Scala
mit
2,202
package com.sksamuel.elastic4s.streams import akka.actor.ActorSystem import com.sksamuel.elastic4s.bulk.BulkCompatibleDefinition import com.sksamuel.elastic4s.jackson.ElasticJackson import com.sksamuel.elastic4s.testkit.{AbstractElasticSugar, ClassLocalNodeProvider} import org.reactivestreams.tck.SubscriberWhiteboxVer...
ulric260/elastic4s
elastic4s-streams/src/test/scala/com/sksamuel/elastic4s/streams/BulkIndexingSubscriberWhiteboxTest.scala
Scala
apache-2.0
2,632
package com.atomist.rug.kind.impact import com.atomist.graph.GraphNode import com.atomist.rug.kind.core.ProjectType import com.atomist.rug.runtime.js.ExecutionContext import com.atomist.rug.spi.{ReflectivelyTypedType, Type} import com.atomist.tree.TreeNode import com.atomist.tree.utils.NodeUtils /** * Type represen...
atomist/rug
src/main/scala/com/atomist/rug/kind/impact/ImpactType.scala
Scala
gpl-3.0
2,202
package at.logic.gapt.formats.veriT import at.logic.gapt.expr._ import at.logic.gapt.expr._ import at.logic.gapt.expr._ import java.io._ import at.logic.gapt.proofs.HOLSequent import org.apache.commons.lang3.StringEscapeUtils import at.logic.gapt.expr.{ Ti, To } object SmtLibExporter { /** * Takes a sequent an...
loewenheim/gapt
src/main/scala/at/logic/gapt/formats/veriT/SmtLibExporter.scala
Scala
gpl-3.0
5,648
package list import list.P10.encode import org.scalatest.{FlatSpec, ShouldMatchers} class P10Spec extends FlatSpec with ShouldMatchers { "encode" must "return an empty list when given an empty list" in { val list = List() encode(list) should be(Nil) } it must "return a list of a single tuple when give...
zjt1114/scala99
src/test/scala/list/P10Spec.scala
Scala
apache-2.0
979
package org.jetbrains.plugins.scala package annotator import com.intellij.lang.annotation.AnnotationHolder import org.jetbrains.plugins.scala.extensions.{PsiMethodExt, ResolvesTo} import org.jetbrains.plugins.scala.lang.psi.ScalaPsiUtil import org.jetbrains.plugins.scala.lang.psi.api.base.ScStableCodeReferenceElement ...
triplequote/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/annotator/PatternAnnotator.scala
Scala
apache-2.0
10,579
package org.eichelberger.sfc import com.typesafe.scalalogging.slf4j.LazyLogging import org.eichelberger.sfc.CompactHilbertCurve.Mask import org.eichelberger.sfc.SpaceFillingCurve.{OrdinalVector, SpaceFillingCurve, _} import org.junit.runner.RunWith import org.specs2.mutable.Specification import org.specs2.runner.JUnit...
cne1x/sfseize
src/test/scala/org/eichelberger/sfc/SpaceFillingCurveTest.scala
Scala
apache-2.0
3,859
package com.highcharts.test.frontend import org.scalajs.dom import scalatags.JsDom.all._ case class NavigationTab(name: String, id: String, icon: String, content: dom.Element, active: Boolean = false) /** * Simple bootstrap navigation bar * @param barId Navbar id * @param tabs Navbar tabs */ final class Nav...
Karasiq/scalajs-highcharts
test/frontend/src/main/scala/com/highcharts/test/frontend/NavigationBar.scala
Scala
mit
1,947
/* * Copyright (C) 2015 Jason Mar * * 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...
jasonmar/scala-bigcollections
src/main/scala/com/jasonmar/BitMap.scala
Scala
apache-2.0
3,479