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 ...
u2009cf/spark-radar
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/ExpressionParserSuite.scala
Scala
apache-2.0
20,815
class Test private[doesnotexist]()
yusuke2255/dotty
tests/untried/neg/t7388.scala
Scala
bsd-3-clause
35
/* * 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 ...
chenc10/Spark-PAF
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/server/SparkSQLOperationManager.scala
Scala
apache-2.0
2,433
/* * Copyright 2019 Spotify AB. * * 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 ...
spotify/scio
scio-test/src/test/scala/com/spotify/scio/ArgsTest.scala
Scala
apache-2.0
5,548
/* * 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
blueeyes/src/main/scala/quasar/blueeyes/json/serialization/DefaultDecomposers.scala
Scala
apache-2.0
6,259
/* * Copyright 2012 Twitter Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
jfeltesse-mdsol/zipkin
zipkin-cassandra/src/main/scala/com/twitter/zipkin/cassandra/CassandraSpanStoreFactory.scala
Scala
apache-2.0
4,180
package sclack.domain /** * Store basic application information about Sclack here (authors, versions * etc). * * @author Simon Symeonidis */ object Sclack { }
psyomn/sclack
src/main/scala/domain/Sclack.scala
Scala
gpl-3.0
167
import com.eklavya.scqla._ import org.omg.PortableInterceptor.SUCCESSFUL import org.scalatest.concurrent.ScalaFutures import org.scalatest.{ Matchers, BeforeAndAfterAll, FlatSpec } import scala.concurrent.Await import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration._ import Scqla._ /...
EchoSYSU/Scqla
src/test/scala/QuerySpec.scala
Scala
apache-2.0
3,699
package com.github.karlhigley.spark.neighbors.lsh import java.util.Random import org.apache.spark.mllib.linalg.SparseVector /** * * References: * - Broder, A. "On the resemblance and containment of documents." * Compression and Complexity of Sequences: Proceedings, 1997. * * @see [[https://en.wikipedia.org...
L2V/like2vec
src/prediction/src/main/scala/com/github/karlhigley/spark/neighbors/lsh/MinhashFunction.scala
Scala
apache-2.0
1,705
package dotty.tools.scaladoc import org.scalajs.dom._ import org.scalajs.dom.ext._ import utils.HTML._ class SocialLinks: def addIcon(elem: html.Element) = elem.appendChild( img(src := s"${Globals.pathToRoot}images/${elem.getAttribute("data-icon-path")}")() ) document.querySelectorAll(".social-ic...
lampepfl/dotty
scaladoc-js/main/src/social-links/SocialLinks.scala
Scala
apache-2.0
380
package org.tagsharp.util import scala.util.matching.Regex import org.scalatest.matchers.{MatchResult, Matcher} import org.tagsharp.test.{Pass, Result} trait CustomMatchers { /** * @see http://www.scalatest.org/user_guide/using_matchers#usingCustomMatchers */ class PassMatcher extends Matcher[Result] { ...
reggoodwin/tagsharp
src/test/scala/org/tagsharp/util/CustomMatchers.scala
Scala
mit
1,118
/* * 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/pensions-lifetime-allowance-frontend
app/forms/CommonBinders.scala
Scala
apache-2.0
11,435
/* * -╥⌐⌐⌐⌐ -⌐⌐⌐⌐- * ≡╢░░░░⌐\\░░░φ ╓╝░░░░⌐░░░░╪╕ * ╣╬░░` `░░░╢┘ φ▒╣╬╝╜ ░░╢╣Q * ║╣╬░⌐ ` ╤▒▒▒Å` ║╢╬╣ * ╚╣╬░⌐ ╔▒▒▒▒`«╕ ╢╢╣▒ * ╫╬░░╖ .░ ╙╨╨ ╣╣╬░φ ╓φ░╢╢Å * ╙╢░░░░⌐"░░░╜ ╙Å░░░░⌐░░░░╝` * ``˚¬ ⌐ ˚˚⌐´ * * ...
Flipkart/connekt
busybees/src/main/scala/com/flipkart/connekt/busybees/streams/flows/eventcreators/NotificationQueueRecorder.scala
Scala
mit
2,959
/* * 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 ...
WindCanDie/spark
sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala
Scala
apache-2.0
24,475
package de.hpi.asg.breezetestgen.domain.components.brzcomponents import de.hpi.asg.breezetestgen.domain.components.{BrzComponent, BrzComponentBehaviour, HandshakeComponent} import BrzComponent._ class DecisionWait(id: HandshakeComponent.Id, activate: SyncSpec, inps: Seq[SyncSpec]...
0x203/BreezeTestGen
src/main/scala/de/hpi/asg/breezetestgen/domain/components/brzcomponents/DecisionWait.scala
Scala
mit
2,287
package org.jetbrains.plugins.scala package project.converter import java.io.File import java.nio.charset.Charset import java.nio.file.Path import com.google.common.io.Files import com.intellij.conversion.{ConversionContext, ModuleSettings} import com.intellij.openapi.components.StorageScheme import com.intellij.open...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/project/converter/LibraryReference.scala
Scala
apache-2.0
4,232
/* Copyright 2009 David Hall, Daniel Ramage 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...
maxim-rabinovich/epic
src/test/scala/epic/features/PorterStemmerTest.scala
Scala
apache-2.0
1,362
package org.jetbrains.bsp.project import com.intellij.ide.util.projectWizard.EmptyModuleBuilder import com.intellij.openapi.module.{Module, ModuleConfigurationEditor, ModuleType} import com.intellij.openapi.roots.ui.configuration._ import javax.swing.Icon import org.jetbrains.bsp.project.BspSyntheticModuleType._ impor...
jastice/intellij-scala
bsp/src/org/jetbrains/bsp/project/bspModuleType.scala
Scala
apache-2.0
1,639
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
alexandru/monifu
monix-execution/js/src/test/scala/monix/execution/internal/PlatformSuite.scala
Scala
apache-2.0
1,243
import java.io.Reader package object mg { implicit def ReaderOps(value: Reader) = new ReaderOps(value) } class ReaderOps(val reader: Reader) extends AnyVal { /** Read the reader into a string, unless the size limit is exceeded, * in which case IllegalArgumentException. * * Closes the reader when fini...
benhutchison/mg-web
src/main/scala/mg/package.scala
Scala
apache-2.0
864
package com.twitter.scalding.reducer_estimation import cascading.flow.FlowException import com.twitter.scalding._ import com.twitter.scalding.platform.{ HadoopPlatformJobTest, HadoopSharedPlatformTest } import java.io.FileNotFoundException import org.scalatest.{ Matchers, WordSpec } import scala.collection.JavaConvert...
tdyas/scalding
scalding-estimators-test/src/test/scala/com/twitter/scalding/reducer_estimation/ReducerEstimatorTest.scala
Scala
apache-2.0
11,607
package com.datastax.spark.connector.writer import java.io.IOException import com.datastax.spark.connector.mapper.DefaultColumnMapper import scala.collection.JavaConversions._ import com.datastax.spark.connector._ import com.datastax.spark.connector.cql._ import com.datastax.spark.connector.SomeColumns import com.d...
willgalen/REVEL
spark-cassandra-connector/src/it/scala/com/datastax/spark/connector/writer/TableWriterSpec.scala
Scala
apache-2.0
18,780
/* * 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...
barbaragomes/incubator-iota
fey-core/src/test/scala/org/apache/iota/fey/UtilsSpec.scala
Scala
apache-2.0
8,280
package commands import model.UserId sealed trait Command { val caller: UserId } sealed trait CommandDescription { def name: String def description: String } sealed trait NoArgCommand extends CommandDescription { def apply(caller: UserId): Command } sealed trait OneArgCommand extends CommandDescript...
mturlo/lunchbot
src/main/scala/commands/Commands.scala
Scala
mit
3,500
/* * 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 ...
jianran/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/statsEstimation/FilterEstimationSuite.scala
Scala
apache-2.0
15,566
. // error: expected class or object definition \\u890u3084eu // error: error in unicode escape // error: illegal character '\\uffff'
densh/dotty
tests/neg/firstError.scala
Scala
bsd-3-clause
134
/** * 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-http/src/main/scala/io/gatling/http/action/async/ReconciliateAction.scala
Scala
apache-2.0
1,188
/*********************************************************************** * Copyright (c) 2013-2022 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...
locationtech/geomesa
geomesa-fs/geomesa-fs-storage/geomesa-fs-storage-common/src/main/scala/org/locationtech/geomesa/fs/storage/common/metadata/FileBasedMetadataFactory.scala
Scala
apache-2.0
5,270
package com.nulabinc.backlog.migration.common.services import java.nio.file.Path import cats.Foldable.ops._ import cats.Monad import cats.Monad.ops._ import cats.data.Validated.{Invalid, Valid} import com.nulabinc.backlog.migration.common.codec.{UserMappingDecoder, UserMappingEncoder} import com.nulabinc.backlog.migr...
nulab/backlog-migration-common
core/src/main/scala/com/nulabinc/backlog/migration/common/services/UserMappingFileService.scala
Scala
mit
5,988
/* * Copyright 2015 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-report-generator
src/test/scala/uk/gov/hmrc/EmisReportGeneratorSpec.scala
Scala
apache-2.0
2,550
/* * Copyright (C) 2016 University of Basel, Graphics and Vision Research Group * * 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) an...
unibas-gravis/scalismo-ui
src/main/scala/scalismo/ui/model/ImageNode.scala
Scala
gpl-3.0
3,119
package com.github.gdefacci.di.macrodef import scala.reflect.macros.blackbox.Context class DagGraph[C <: Context](val context: C) { import context.universe._ val typeDag = new TypeDag[context.type](context) import com.github.gdefacci.di.graph def graphModel(typ: Type, mappings: typeDag.Providers[typeD...
gdefacci/di
macros/src/main/scala/com/github/gdefacci/di/macrodef/DagGraph.scala
Scala
mit
3,275
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.api.tools import com.lightbend.lagom.internal.spi.ServiceAcl import com.lightbend.lagom.internal.spi.ServiceDescription import com.lightbend.lagom.internal.spi.ServiceDiscovery import com.typesafe.config....
ignasi35/lagom
api-tools/src/main/scala/com/lightbend/lagom/internal/api/tools/ServiceDetector.scala
Scala
apache-2.0
2,561
package com.markfeeney.circlet.middleware import com.markfeeney.circlet._ import org.scalatest.FunSuite class ParamsTest extends FunSuite { // helper to rip Params out of Request that the app ultimately sees private def params(req: Request): Params = { var ps: Params = null val h = Circlet.handler { req ...
overthink/circlet
src/test/scala/com/markfeeney/circlet/middleware/ParamsTest.scala
Scala
mit
3,317
package example import org.scalatra.test.scalatest.ScalatraFlatSpec import skinny.micro._ import scala.concurrent.Future object TypedHelloServlet extends TypedSingleApp { def message(implicit ctx: Context) = { s"Hello, ${params(ctx).getOrElse("name", "Anonymous")}" } // synchronous action get("/hello")...
xerial/skinny-micro
micro/src/test/scala/example/TypedHelloServletSpec.scala
Scala
bsd-2-clause
1,407
/* * 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 ...
yanboliang/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveVersionSuite.scala
Scala
apache-2.0
2,414
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file...
Stratio/stratio-connector-sparkSQL
connector-sparksql/src/main/scala/com/stratio/connector/sparksql/core/connection/Connection.scala
Scala
apache-2.0
1,253
/* * Copyright 2014–2020 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...
slamdata/quasar
connector/src/main/scala/quasar/connector/datasource/Datasource.scala
Scala
apache-2.0
3,638
package org.jetbrains.plugins.scala.projectHighlighting import com.intellij.openapi.util.TextRange import com.intellij.pom.java.LanguageLevel import org.jetbrains.plugins.scala.FlakyTests import org.junit.experimental.categories.Category @Category(Array(classOf[FlakyTests])) class ScalaFiddleEditorProjectHighlighting...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/projectHighlighting/ScalaFiddleEditorProjectHighlightingTest.scala
Scala
apache-2.0
834
/* * Copyright 2013 http4s.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
http4s/http4s
core/shared/src/main/scala/org/http4s/EntityEncoder.scala
Scala
apache-2.0
8,612
package name.abhijitsarkar.user.repository import com.mongodb.casbah.MongoClient import com.mongodb.casbah.commons.MongoDBObject import name.abhijitsarkar.user.domain.UserAttributes._ import org.slf4j.LoggerFactory object MongoDBCollectionFactory { private val logger = LoggerFactory.getLogger(getClass) def new...
asarkar/akka
user-service/src/main/scala/name/abhijitsarkar/user/repository/MongoDBCollectionFactory.scala
Scala
gpl-3.0
771
/** * The MIT License (MIT) * Copyright (c) 2016 Microsoft Corporation * * 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 righ...
khdang/azure-documentdb-spark
src/main/scala/com/microsoft/azure/documentdb/BridgeInternal.scala
Scala
mit
1,974
/* * 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 ...
SarunasG/zeppelin-oidc
cassandra/src/main/scala/org/apache/zeppelin/cassandra/InterpreterLogic.scala
Scala
apache-2.0
19,326
package edu.gemini.util.security.permission import scalaz._ import Scalaz._ import java.security.{BasicPermission, Permission} import edu.gemini.spModel.core.SPProgramID trait ProgramPermission { this : Permission => } object ProgramPermission { /** Does the user have permission to read the specified program? */ ...
arturog8m/ocs
bundle/edu.gemini.util.security/src/main/scala/edu/gemini/util/security/permission/ProgramPermission.scala
Scala
bsd-3-clause
424
package com.timushev.sbt.updates import com.timushev.sbt.updates.versions.Version import sbt._ import scala.collection.immutable.SortedSet import com.timushev.sbt.updates.Compat._ trait UpdatesKeys { lazy val dependencyUpdatesReportFile = settingKey[File]("Dependency updates report file") @deprecated( "depen...
rtimush/sbt-updates
src/main/scala/com/timushev/sbt/updates/UpdatesKeys.scala
Scala
bsd-3-clause
1,351
package ch6 import scala.annotation.tailrec import RNG._ object Exercise10 { import State._ case class State[S, +A] (run: S => (A, S)) { def map[B](f: A => B): State[S, B] = flatMap(a => unit(f(a))) def map2[B, C](sb: State[S, B])(f: (A, B) => C): State[S, C] = flatMap(a => sb.map(b => f(a, b))) ...
rucka/fpinscala
src/main/scala/fpinscala/ch6/Exercise10.scala
Scala
gpl-2.0
1,001
/* * 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/ops/Expm1.scala
Scala
apache-2.0
1,491
package com.ecfront.ez.framework.cluster.nats import com.ecfront.ez.framework.core.cluster._ import scala.beans.BeanProperty object NatsCluster extends Cluster { override val rpc: ClusterRPC = NatsClusterRPC override val mq: ClusterMQ = NatsClusterMQ override val dist: ClusterDist = null override val cac...
gudaoxuri/ez-framework
services/cluster-nats/src/main/scala/com/ecfront/ez/framework/cluster/nats/NatsCluster.scala
Scala
apache-2.0
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 ...
trueyao/spark-lever
core/src/test/scala/org/apache/spark/deploy/worker/ExecutorRunnerTest.scala
Scala
apache-2.0
1,793
/* * 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...
monixio/monix
monix-reactive/shared/src/main/scala/monix/reactive/internal/operators/MapAccumulateObservable.scala
Scala
apache-2.0
2,603
package eu.timepit.refined.types import eu.timepit.refined.types.all._ import org.scalacheck.Prop._ import org.scalacheck.Properties class CharTypesSpec extends Properties("CharTypes") { property("LowerCaseChar.from('a')") = secure { LowerCaseChar.from('a').isRight } property("LowerCaseChar.from('A')") = ...
fthomas/refined
modules/core/shared/src/test/scala/eu/timepit/refined/types/CharTypesSpec.scala
Scala
mit
621
/* * Copyright 2016 Nikolay Tatarinov * * 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...
rockjam/iq-notes
src/test/scala/com/github/rockjam/iqnotes/AuthSpec.scala
Scala
apache-2.0
3,137
/* * Copyright 2016 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...
ahudspith-equalexperts/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600a/v3/LP04.scala
Scala
apache-2.0
1,076
package mysql2hbase import java.io.Serializable import java.util import java.util.BitSet import java.util.concurrent.atomic.AtomicLong import com.github.shyiko.mysql.binlog.event.{DeleteRowsEventData, UpdateRowsEventData, WriteRowsEventData} import org.apache.commons.lang3.time.StopWatch import org.apache.hadoop.conf....
chenm11/mysql-hbase-replicator
src/main/scala/mysql2hbase/HbaseApplier.scala
Scala
mit
9,952
/* * Copyright 2020 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 applicable l...
lift/framework
persistence/mongodb-record/src/test/scala/net/liftweb/mongodb/record/testmodels/UUIDTest.scala
Scala
apache-2.0
994
package cromwell.engine.workflow.lifecycle.execution import akka.actor.{Actor, Props} import akka.testkit.{EventFilter, TestActorRef, TestDuration, TestProbe} import com.typesafe.config.ConfigFactory import cromwell._ import cromwell.backend.AllBackendInitializationData import cromwell.core.{SimpleIoActor, WorkflowId}...
ohsu-comp-bio/cromwell
engine/src/test/scala/cromwell/engine/workflow/lifecycle/execution/WorkflowExecutionActorSpec.scala
Scala
bsd-3-clause
7,247
/** MACHINE-GENERATED FROM AVRO SCHEMA. DO NOT EDIT DIRECTLY */ package example.idl.string import other.ns.string.ExternalDependency sealed trait ImportProtocol extends Product with Serializable final case class DependentRecord(dependency: ExternalDependency, number: Int) extends ImportProtocol final case class Dep...
julianpeeters/avrohugger
avrohugger-core/src/test/expected/standard/example/idl/string/ImportProtocol.scala
Scala
apache-2.0
486
package latis.time class TimeUnit(val seconds: Double, val name: String) { override def toString: String = name } object TimeUnit { //TODO: look at definitions from other time APIs that we could reuse //TODO: implement as case class or other form of enumeration? // Keep a map of units so we can access...
dlindhol/LaTiS
src/main/scala/latis/time/TimeUnit.scala
Scala
epl-1.0
2,330
package com.twitter.algebird.macros import scala.language.experimental.{ macros => sMacros } import scala.reflect.macros.Context import scala.reflect.runtime.universe._ /** * "Cubes" a case class or tuple, i.e. for a tuple of type * (T1, T2, ... , TN) generates all 2^N possible combinations of type * (Option[T1], ...
erikerlandson/algebird
algebird-core/src/main/scala/com/twitter/algebird/macros/Cuber.scala
Scala
apache-2.0
5,265
package edu.rit.csh.linter.parser import edu.rit.csh.linter.language.Patterns._ import fastparse.WhitespaceApi import fastparse.all._ import fastparse.core.Parser object Patterns { import Types._ import Literals._ val whitespace = WhitespaceApi.Wrapper{ import fastparse.all._ NoTrace(" ".rep) } im...
JDrit/ScalaLint
src/main/scala/edu/rit/csh/linter/parser/Patterns.scala
Scala
apache-2.0
2,309
package models; import play.api.db.slick.Config.driver.simple._ case class Sample(id: Option[Int], name: String, created: java.sql.Timestamp) class SampleTable(tag: Tag) extends Table[Sample](tag, "sample") { val tsvFiles = TableQuery[TSVFileTable] def id = column[Int]("id", O.PrimaryKey, O.AutoInc) def na...
seqprodbio/restoule
app/models/Sample.scala
Scala
gpl-3.0
502
/* * 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...
i8run/BigDL-1
spark/dl/src/test/scala/com/intel/analytics/bigdl/nn/mkldnn/SoftMaxSpec.scala
Scala
apache-2.0
6,587
package rpi import akka.actor.{ActorSystem, Props} import akka.testkit.{ImplicitSender, TestKit} import model.FishAccess import org.mockito.Matchers import org.scalatest.{BeforeAndAfterAll, WordSpecLike} class FishTest(_system: ActorSystem) extends TestKit(_system) with ImplicitSender with WordSpecLike with BeforeAnd...
Jorik5702/nasw4
test/rpi/FishTest.scala
Scala
mit
784
/* * 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/main/scala/org/apache/spark/sql/execution/datasources/v2/AddPartitionExec.scala
Scala
apache-2.0
2,823
package com.trainologic.samples.petclinic.repository import com.trainologic.samples.petclinic._ import Stacks._ import model.Owner import model.Pet import model.PetType import org.atnos.eff.Fx import org.atnos.eff.Eff abstract class OwnerRepository[M[_]] { type S = Fx.prepend[M, BasicStack] def findByLastName(last...
Trainologic/petclinic_eff
src/main/scala/com/trainologic/samples/petclinic/repository/Repositorie.scala
Scala
apache-2.0
626
package pulsar.actor import akka.actor.ActorSystem import akka.testkit._ import akka.util.ByteString import org.scalatest.{BeforeAndAfter, Matchers, WordSpecLike} import pulsar.action.{Dispatch, Kill, Reschedule, Schedule} import pulsar.model.Task import scala.concurrent.duration._ /** * @author Alexander De Leon <...
pulsar-project/pulsar
src/test/scala/pulsar/actor/SchedulerTest.scala
Scala
mit
1,762
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, 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...
capitalone/Hydrograph
hydrograph.engine/hydrograph.engine.spark/src/main/scala/hydrograph/engine/spark/components/InputFileXMLComponent.scala
Scala
apache-2.0
4,726
/* * 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 ...
brad-kaiser/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategySuite.scala
Scala
apache-2.0
8,033
package com.seanshubin.todo.persistence.domain import org.scalatest.FunSuite class EntryPointRunnerTest extends FunSuite { test("valid configuration") { //given val serverPortString = "12345" val dataFileDirectoryString = "data/file/directory" val helper = new Helper(serverPortString, dataFileDirect...
SeanShubin/todo-persistence
domain/src/test/scala/com/seanshubin/todo/persistence/domain/EntryPointRunnerTest.scala
Scala
unlicense
2,120
/* * Copyright 2016 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...
ahudspith-equalexperts/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600e/v2/E8.scala
Scala
apache-2.0
822
package com.wordnik.client.api import com.wordnik.client.model.User import java.io.File import org.scalatra.{ TypedParamSupport, ScalatraServlet } import org.scalatra.swagger._ import org.json4s._ import org.json4s.JsonDSL._ import org.scalatra.json.{ JValueResult, JacksonJsonSupport } import org.scalatra.servlet.{...
jfiala/swagger-spring-demo
user-rest-service-1.0.2/generated-code/scalatra/src/main/scala/com/wordnik/client/api/UsercompletepostcompleteApi.scala
Scala
apache-2.0
1,443
/* * Copyright (C) 2010 Lalit Pant <[email protected]> * * The contents of this file are subject to the GNU General Public License * Version 3 (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.gnu.org/copyleft/gpl.html * *...
vnkmr7620/kojo
KojoEnv/src/net/kogics/kojo/mathworld/MwLineSegment.scala
Scala
gpl-3.0
1,921
/*********************************************************************** * 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-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/index/legacy/z3/Z3WritableIndex.scala
Scala
apache-2.0
7,305
// scalac: -Xasync object Test extends scala.tools.partest.JUnitTest(classOf[scala.async.run.exceptions.ExceptionsSpec]) package scala.async.run.exceptions { import scala.tools.testkit.async.Async.{async, await} import scala.concurrent.{Future, ExecutionContext, Await} import ExecutionContext.Implicits._ im...
scala/scala
test/async/jvm/exceptions.scala
Scala
apache-2.0
1,771
package x7c1.chaff.publish import sbt.State object CommandRunner { /** * Convert the given command string to a release step action, * preserving and invoking remaining commands * Note: This was copied from https://github.com/sbt/sbt-release/blob/663cfd426361484228a21a1244b2e6b0f7656bdf/src/main/scala/Rele...
x7c1/Chaff
chaff-publish/src/main/scala/x7c1/chaff/publish/CommandRunner.scala
Scala
mit
1,030
package beyond.route import akka.actor.Actor import akka.actor.ActorLogging import beyond.Authenticated import org.apache.curator.framework.CuratorFramework import org.apache.curator.framework.recipes.cache.NodeCache import org.apache.curator.framework.recipes.cache.NodeCacheListener import play.api.libs.json.JsArray ...
SollmoStudio/beyond
core/app/beyond/route/RoutingTableWatcher.scala
Scala
apache-2.0
1,314
package domala.tests.dao import domala._ import domala.jdbc.Config import domala.tests._ import domala.tests.models._ import org.scalatest.{BeforeAndAfter, FunSuite} class ProtectedDefTestSuite extends FunSuite with BeforeAndAfter { private implicit val config: Config = new H2TestConfigTemplate("protected_def_test"...
bakenezumi/domala
paradise/src/test/scala/domala/tests/dao/ProtectedDefTestSuite.scala
Scala
apache-2.0
1,215
package com.github.j5ik2o.dddbase.example.repository.util import org.scalatest.concurrent.ScalaFutures import org.scalatest.time.{ Seconds, Span } trait ScalaFuturesSupportSpec { this: ScalaFutures => override implicit def patienceConfig: PatienceConfig = PatienceConfig(timeout = scaled(Span(60, Seconds)), inter...
j5ik2o/scala-ddd-base-functional
example/src/test/scala/com/github/j5ik2o/dddbase/example/repository/util/ScalaFuturesSupportSpec.scala
Scala
mit
354
/** * 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...
crashlytics/kafka
core/src/main/scala/kafka/network/BoundedByteBufferSend.scala
Scala
apache-2.0
2,423
package scalty.tests.types import scalty.tests.context.TestScaltyExecutionContext import scalty.tests.suites.ScaltySuiteWithTestScaltyExecutionContext import scala.concurrent.{Await, Future} import scala.concurrent.duration._ import scala.language.postfixOps class CustomExecutionScaltyExecutionContextTest extends Sc...
awesome-it-ternopil/scalty
src/test/scala/scalty/tests/types/CustomExecutionScaltyExecutionContextTest.scala
Scala
mit
601
package com.dividezero.stubby.core.service.model import org.scalatest.FunSuite import com.dividezero.stubby.core.model.StubRequest import com.dividezero.stubby.core.model.StubParam import com.dividezero.stubby.core.service.model.FieldType._ import com.dividezero.stubby.core.util.OptionUtils import org.scalatest.Matche...
themillhousegroup/http-stub-server-scala
core/src/test/scala/com/dividezero/stubby/core/service/model/RequestPatternTest.scala
Scala
apache-2.0
8,822
/* * 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 ...
trueyao/spark-lever
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaDStreamLike.scala
Scala
apache-2.0
18,049
package com.twitter.algebird.caliper import com.twitter.algebird._ import scala.util.Random import com.twitter.bijection._ import java.util.concurrent.Executors import com.twitter.algebird.util._ import com.google.caliper.{ Param, SimpleBenchmark } import java.nio.ByteBuffer import scala.math._ class OldQTreeSemigr...
vidma/algebird
algebird-caliper/src/test/scala/com/twitter/algebird/caliper/QTreeBenchmark.scala
Scala
apache-2.0
1,366
/* * Copyright 2014–2020 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...
slamdata/quasar
qsu/src/test/scala/quasar/qsu/mra/UopSpec.scala
Scala
apache-2.0
2,021
package es.weso.typing import cats._, data._ import cats.implicits._ abstract class Typing[Key,Value,Error,Evidence] { type Evidences = List[Evidence] def hasType(key: Key, value: Value): Boolean = getOkValues(key) contains value def getValues(key: Key): Map[Value,TypingResult[Error,Evidence]] def getOkVal...
labra/rbe
src/main/scala/es/weso/typing/Typing.scala
Scala
mit
1,504
/* * 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...
fjsc/sparta
serving-api/src/test/scala/com/stratio/sparta/serving/api/service/http/PluginsHttpServiceTest.scala
Scala
apache-2.0
2,468
package sbt import complete.{ Completion, Completions, DefaultParsers, HistoryCommands, Parser, TokenCompletions } import classpath.ClasspathUtilities.toLoader import DefaultParsers._ import Types.{ const, idFun } import Function.tupled import Command.applyEffect import HistoryCommands.{ Start => HistoryPrefix } impor...
twitter-forks/sbt
main/command/src/main/scala/sbt/BasicCommands.scala
Scala
bsd-3-clause
13,448
package de.fosd.typechef.crewrite import de.fosd.typechef.featureexpr._ import java.io.StringWriter import de.fosd.typechef.parser.c._ import de.fosd.typechef.typesystem._ import de.fosd.typechef.error.{Severity, TypeChefError} import de.fosd.typechef.parser.c.FunctionDef import de.fosd.typechef.parser.c.TranslationU...
mbeddr/TypeChef
CRewrite/src/main/scala/de/fosd/typechef/crewrite/CAnalysisFrontend.scala
Scala
lgpl-3.0
13,856
package com.github.chengpohi.repl import java.io.IOException import java.util import jline.console.ConsoleReader import jline.console.completer.{ CandidateListCompletionHandler, CompletionHandler } import scala.collection.JavaConverters._ /** * ELKCompletionHandler * Created by chengpohi on 3...
chengpohi/elasticshell
modules/repl/src/main/scala/com/github/chengpohi/repl/EQLCompletionHandler.scala
Scala
apache-2.0
1,284
package com.blogspot.nurkiewicz.spring import org.apache.commons.dbcp.BasicDataSource import org.springframework.transaction.annotation.EnableTransactionManagement import org.springframework.stereotype.Controller import org.springframework.web.servlet.config.annotation.EnableWebMvc import org.springframework.orm.jpa.v...
nurkiewicz/jmx-dashboard
src/main/scala/com/blogspot/nurkiewicz/spring/SpringConfiguration.scala
Scala
apache-2.0
4,208
package com.eclipsesource.schema.internal import java.text.MessageFormat import com.osinka.i18n.{Lang, Messages} import scala.util.Try object ValidatorMessages { val DefaultMessages: Map[String, String] = Map( "obj.missing.prop.dep" -> "Missing property dependency {0}.", "obj.max.props" -> "Too many prop...
eclipsesource/play-json-schema-validator
src/main/scala/com/eclipsesource/schema/internal/ValidatorMessages.scala
Scala
apache-2.0
3,121
package com.bloomberg.sparkflow.serialization import org.apache.spark.hax.MyClosureCleaner import org.scalatest.FunSuite import com.bloomberg.sparkflow._ import com.bloomberg.sparkflow.serialization.Hashing._ import org.apache.spark.hax.SerializeUtil.clean /** * Created by ngoehausen on 3/23/16. */ class HashingT...
nimbusgo/spark-flow
src/test/scala/com/bloomberg/sparkflow/serialization/HashingTest.scala
Scala
apache-2.0
1,179
package com.chobostudy.audtjddld.datastructure import org.scalatest.FunSuite import com.chobostudy.datastructure._ /** * @author audtjddld * @since 08/24/2017 */ class SolutionP55Test extends FunSuite { test("this test case that check of hasSubsequence. ex) List(1,2,3,4) hasSubsequence List(1,2)") { val ex...
codechobostudy/FPIS
src/test/scala/com/chobostudy/audtjddld/datastructure/SolutionP55Test.scala
Scala
apache-2.0
899
/* Copyright 2014 Google Inc. 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 law or agreed to in ...
googlegenomics/spark-examples
src/main/scala/com/google/cloud/genomics/spark/examples/rdd/VariantsRDD.scala
Scala
apache-2.0
9,668
package com.wordtrellis.projecteuler /** * * Problem 4 * A palindromic number reads the same both ways. * The largest palindrome made from the product of two 2-digit numbers is * 9009 = 91 * 99. * Find the largest palindrome made from the product of two 3-digit numbers. * * @author : Todd Cook *...
todd-cook/Effective-Scala-with-Project-Euler
src/main/scala/com/wordtrellis/projecteuler/problem_4.scala
Scala
mit
1,210
package sample.blog.author import java.util.concurrent.atomic.AtomicInteger import akka.actor.ActorSystem import scala.collection.immutable import scala.concurrent.duration._ import scala.concurrent.Await import scala.util.Success import akka.testkit.{ TestActorRef, TestProbe } import akka.util.Timeout import demesn...
dmrolfs/demesne
examples/src/test/scala/blog/AuthorListingModuleSpec.scala
Scala
apache-2.0
5,715
package chrome import scala.scalajs.js package object alarms { def create(name: String, alarmInfo: AlarmInfo): Unit = Impl.create(name, alarmInfo) def create(alarmInfo: AlarmInfo): Unit = Impl.create(alarmInfo) def get(name: String, callback: js.Function1[js.UndefOr[Alarm], _]): Unit = Impl.get(name, callback)...
erdavila/auto-steamgifts
src/main/scala/chrome/alarms/package.scala
Scala
mit
667
/* * Copyright 2011-2021 Asakusa Framework Team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
asakusafw/asakusafw-spark
compiler/src/test/scala/com/asakusafw/spark/compiler/UsingCompilerContext.scala
Scala
apache-2.0
2,381
/* * 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-core/src/main/scala/io/gatling/core/check/jsonpath/JsonPathExtractors.scala
Scala
apache-2.0
1,636
/* * Copyright 2015 The kdtree 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...
hoesler/kdtree
src/main/scala/org/asoem/kdtree/PointValueTuple.scala
Scala
apache-2.0
922