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 ...
jnadler/spark-testing-base
src/test/1.3/scala/com/holdenkarau/spark/testing/SampleDataFrameTest.scala
Scala
apache-2.0
4,570
package org.jetbrains.plugins.scala.debugger.evaluation import com.intellij.debugger.SourcePosition import com.intellij.debugger.engine.evaluation._ import com.intellij.debugger.engine.evaluation.expression._ import com.intellij.lang.java.JavaLanguage import com.intellij.openapi.diagnostic.ControlFlowException import ...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/debugger/evaluation/ScalaEvaluatorBuilder.scala
Scala
apache-2.0
10,579
package com.nthportal.euler.maths.streams private[streams] trait ReusableStream[T] extends (() => Stream[T]) { val get: Stream[T] final override def apply(): Stream[T] = get }
NthPortal/euler-n-scala
src/main/scala/com/nthportal/euler/maths/streams/ReusableStream.scala
Scala
mit
182
package com.sksamuel.elastic4s.requests.snapshots import com.fasterxml.jackson.annotation.{JsonProperty, JsonSubTypes, JsonTypeInfo} import com.sksamuel.elastic4s.requests.common.Shards import scala.concurrent.duration._ case class CreateRepositoryResponse(acknowledged: Boolean) @JsonTypeInfo(use = JsonTypeInfo.Id.DE...
sksamuel/elastic4s
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/snapshots/response.scala
Scala
apache-2.0
2,438
package org.jetbrains.plugins.scala package lang package parser package parsing package params import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder import org.jetbrains.plugins.scala.lang.parser.parsing.expressions.Annotation impor...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/parser/parsing/params/TypeParam.scala
Scala
apache-2.0
2,471
package components /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Signature Class - rps * * Author: * Ryan Needham * * Issues: * * Notes: * * Given a piece of text it will be displayed at the bottom * of the screen in white ...
MyForteIsTimeTravel/RockPaperScissors
src/components/Signature.scala
Scala
gpl-3.0
1,123
/* Copyright 2016 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...
twitter/algebird
algebird-test/src/main/scala/com/twitter/algebird/scalacheck/IntervalInstances.scala
Scala
apache-2.0
2,525
object Test { def main(args: Array[String]): Unit = { println(Nil.getClass.getGenericSuperclass) println(None.getClass.getGenericSuperclass) } }
lrytz/scala
test/files/jvm/getGenericSuperclass.scala
Scala
apache-2.0
157
package inloopio.util import java.lang.reflect.Constructor import java.lang.reflect.ParameterizedType import java.lang.reflect.Type import scala.annotation.tailrec import scala.collection.immutable import scala.util.Try import scala.util.control.NonFatal /** * Collection of internal reflection utilities which may or...
dcaoyuan/inloopio-libs
inloopio-util/src/main/scala/inloopio/util/Reflect.scala
Scala
bsd-3-clause
5,661
/* * Copyright 2009-2017. DigitalGlobe, 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 ...
ngageoint/mrgeo
mrgeo-mapalgebra/mrgeo-mapalgebra-rastermath/src/main/scala/org/mrgeo/mapalgebra/binarymath/LessThanMapOp.scala
Scala
apache-2.0
2,394
package org.kimbasoft.scala.codingstyle.oo.classes /** * Missing documentation * * @since 1.0 */ object Linearization { /** * The algorithm for the linearization of inheritance is defined as follows: * Step 1. Put type of instance as first element * Step 2. Right-to-left compute the linearization o...
kimba74/sandbox-scala
src/main/scala/org/kimbasoft/scala/codingstyle/oo/classes/Linearization.scala
Scala
gpl-3.0
2,760
package org.dele.text.lapa.patterns import org.dele.text.maen.{AtomPropMatcherLib, TInput} //import org.dele.text.maen.TestHelper._ import org.dele.text.maen.matchers.{TMatcher, MatcherManager} import org.scalatest.ShouldMatchers import org.scalatest.testng.TestNGSuite import org.testng.annotations.Test /** * Creat...
new2scala/text-util
lapa/src/test/scala/org/dele/text/lapa/patterns/PtnApplicationTest.scala
Scala
apache-2.0
3,418
package tscfg.example final case class ScalaIssue40Cfg( memory : scala.Long ) object ScalaIssue40Cfg { def apply(c: com.typesafe.config.Config): ScalaIssue40Cfg = { val $tsCfgValidator: $TsCfgValidator = new $TsCfgValidator() val parentPath: java.lang.String = "" val $result = ScalaIssue40Cfg( me...
carueda/tscfg
src/test/scala/tscfg/example/ScalaIssue40Cfg.scala
Scala
apache-2.0
1,167
package org.higherstate.jameson.parsers import org.higherstate.jameson.Path import org.higherstate.jameson.extractors.LongExtractor import org.higherstate.jameson.failures.Success case object LongParser extends LongExtractor[Long] { def apply(value:Long, path:Path) = Success(value) def schema = Map("type" ->...
HigherState/jameson
src/main/scala/org/higherstate/jameson/parsers/LongParser.scala
Scala
apache-2.0
389
package com.twitter.diffy import com.twitter.diffy.proxy._ import com.twitter.diffy.workflow._ import com.twitter.finatra.http.HttpServer import com.twitter.finatra.http.routing.HttpRouter import com.twitter.logging.Logger object Main extends MainService class MainService extends HttpServer { //Set root log level ...
twitter/diffy
src/main/scala/com/twitter/diffy/Main.scala
Scala
apache-2.0
977
package one.lockstep.util.internal import scala.reflect.ClassTag trait ReflectionModule { /** * obtain simple name for type parameter's class, falling back to fully qualified class name */ def safeNameOf[A : ClassTag]: String = { val clazz = implicitly[ClassTag[A]].runtimeClass try { clazz.g...
lockstep-one/vault
vault-common/src/main/scala/one/lockstep/util/internal/ReflectionModule.scala
Scala
agpl-3.0
607
/* * 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 ...
bOOm-X/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLCommandSuite.scala
Scala
apache-2.0
38,293
object Test extends App { val xs = List(4, 5, 6) val ys = List(1, 2, 3, xs: _*) def mkList1(x: Int) = List(x) def mkList2(x: Boolean) = List(x) mkList1(xs: _*) def f(x: Int*) = List(x: _*) def f(x: Boolean, y: Int*) = List(y: _*) def g[a](x: a*) = List(x: _*) f(true, 1, xs: _*) g(1, xs:_*) }
AlexSikia/dotty
tests/untried/neg/t875.scala
Scala
bsd-3-clause
319
/* * Copyright 2013 - 2020 Outworkers Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
outworkers/phantom
phantom-dsl/src/main/scala/com/outworkers/phantom/builder/query/prepared/PreparedBuilder.scala
Scala
apache-2.0
5,992
package be.wegenenverkeer.rxhttpclient.fs2 import be.wegenenverkeer.rxhttpclient.rxjava.RxJavaHttpClient /** * Created by Karel Maesen, Geovise BVBA on 20/04/2020. */ object Implicits { implicit class RxJavaHttpClientOps(client: RxJavaHttpClient) { def fs2HttpApi: Fs2HttpApi = new Fs2HttpClient(client) } ...
WegenenVerkeer/RxHttpClient
modules/fs2/src/main/scala/be/wegenenverkeer/rxhttpclient/fs2/Implicits.scala
Scala
mit
323
package com.flowy.common.utils import scala.concurrent.{ExecutionContext, Future} object FutureHelpers { implicit class PimpedFuture[T](future: Future[T])(implicit val ec: ExecutionContext) { def mapToUnit = future.map(_ => ()) } }
asciiu/fomo
common/src/main/scala/com/flowy/common/utils/FutureHelpers.scala
Scala
apache-2.0
242
class A { private[this] def f1(): Unit = {} protected[this] def f2(): Unit = {} private[A] def f3(): Unit = {} } class B extends A { f1() super.f1() def otherb(b2: B) = b2.f2() f3() super.f3() }
yusuke2255/dotty
tests/untried/neg/t464-neg.scala
Scala
bsd-3-clause
211
// Copyright (c) 2018. Distributed under the MIT License (see included LICENSE file). package cocoa.foundation import scala.language.experimental.macros import scalanative.native._ import objc._ @ObjC class NSFileSecurity extends NSObject with NSCopying with NSCoding { }
jokade/scalanative-cocoa
foundation/src/main/scala/cocoa/foundation/NSFileSecurity.scala
Scala
mit
274
package org.elasticmq case class NewMessageData(id: Option[MessageId], content: String, messageAttributes: Map[String, String], nextDelivery: NextDelivery)
everyonce/elasticmq
core/src/main/scala/org/elasticmq/NewMessageData.scala
Scala
apache-2.0
236
import scala.quoted.* import scala.quoted.staging.* object Test { def main(args: Array[String]): Unit = { given Compiler = Compiler.make(getClass.getClassLoader) def x(using Quotes): Expr[Int] = '{3} def f2(using Quotes): Expr[Int => Int] = '{ def f(x: Int): Int = x + x f } def expr...
dotty-staging/dotty
tests/run-staging/i3876-b.scala
Scala
apache-2.0
470
package io.eels.component.hive.partition import io.eels.schema.{Partition, PartitionEntry} import org.apache.hadoop.fs.Path case class PartitionMetaData(location: Path, // just the part of the path unique to the partition // usually this will be the same as th...
eel-lib/eel
eel-hive/src/main/scala/io/eels/component/hive/partition/PartitionMetaData.scala
Scala
mit
967
/* * 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 ...
mkolod/incubator-spark
core/src/main/scala/org/apache/spark/rdd/MappedValuesRDD.scala
Scala
apache-2.0
1,333
package nodes.learning import breeze.linalg._ import breeze.numerics.{exp, log => bLog} import breeze.stats._ import breeze.stats.distributions.{Uniform, ThreadLocalRandomGenerator, RandBasis, Rand} import org.apache.commons.math3.random.MersenneTwister import org.apache.spark.rdd.RDD import pipelines.Logging import u...
tomerk/keystone
src/main/scala/nodes/learning/GaussianMixtureModelEstimator.scala
Scala
apache-2.0
7,643
/* * 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 ...
samaitra/ignite
modules/spark/src/test/scala/org/apache/ignite/spark/IgniteOptimizationMathFuncSpec.scala
Scala
apache-2.0
11,962
package com.sksamuel.elastic4s.http.search.aggs import com.sksamuel.elastic4s.http.ScriptBuilderFn import com.sksamuel.elastic4s.searches.aggs.StatsAggregationDefinition import org.elasticsearch.common.xcontent.{XContentBuilder, XContentFactory, XContentType} object StatsAggregationBuilder { def apply(agg: StatsAgg...
aroundus-inc/elastic4s
elastic4s-http/src/main/scala/com/sksamuel/elastic4s/http/search/aggs/StatsAggregationBuilder.scala
Scala
apache-2.0
799
/* * 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
runtime/src/main/scala/com/asakusafw/spark/runtime/graph/DirectOutputPrepare.scala
Scala
apache-2.0
8,600
package com.twitter.finatra.kafkastreams.flushing import com.twitter.finagle.stats.{Stat, StatsReceiver, Verbosity} import com.twitter.finatra.kafkastreams.internal.utils.ProcessorContextLogging import com.twitter.util.{Duration, Future} import java.util.concurrent.ConcurrentLinkedQueue import org.apache.kafka.streams...
twitter/finatra
kafka-streams/kafka-streams/src/main/scala/com/twitter/finatra/kafkastreams/flushing/AsyncTransformer.scala
Scala
apache-2.0
7,684
package ua.nure.lab4 import scala.collection.mutable /** * Class Table implementation. */ class Table { private var innerHtml: mutable.MutableList[List[String]] = new mutable.MutableList[List[String]] def ||(other: String): Table = { // This a new row innerHtml += List(other) this } def |(...
isCompetent/spp
src/main/scala/ua/nure/lab4/Table.scala
Scala
mit
1,004
package pl.newicom.dddd.process import akka.actor._ import akka.testkit.{ImplicitSender, TestKit, TestProbe} import org.scalatest.{BeforeAndAfterAll, WordSpecLike} import pl.newicom.dddd.actor.PassivationConfig import pl.newicom.dddd.aggregate.EntityId import pl.newicom.dddd.delivery.protocol.alod.Delivered import pl....
AndreyLadniy/akka-ddd
akka-ddd-test/src/test/scala/pl/newicom/dddd/process/SagaSpec.scala
Scala
mit
4,125
package com.twitter.gizzard import java.util.concurrent._ import scala.collection.mutable import com.twitter.util.Time import com.twitter.conversions.time._ import org.specs.Specification import org.specs.mock.{ClassMocker, JMocker} import com.twitter.gizzard.util.Future import com.twitter.gizzard.thrift.conversions.S...
kangkot/gizzard
src/test/scala/com/twitter/gizzard/FutureSpec.scala
Scala
apache-2.0
2,644
package com.whistleblower.sentries.filesystem import java.io.{File, FileOutputStream, IOException} import java.nio.file.FileVisitResult.CONTINUE import java.nio.file._ import java.nio.file.attribute.BasicFileAttributes import org.scalatest.{FlatSpec, Matchers} import scala.concurrent.ExecutionContext.Implicits.globa...
gszeliga/whistleblower
src/test/scala/com/whistleblower/sentries/filesystem/TestFileSentry.scala
Scala
mit
2,617
package org.raisercostin.util import org.scalatest._ import org.junit.runner.RunWith import org.junit.Assert._ import org.scalatest.junit.JUnitRunner import org.raisercostin.tags.raw import org.raisercostin.jedi.Locations import org.raisercostin.util.gps.Gps import org.raisercostin.tags.Formats import org.joda.time.Dat...
raisercostin/ownit
src/test/scala/org/raisercostin/util/ExifTagsTest.scala
Scala
apache-2.0
12,553
package object holder { class C object O } import /* */holder._ trait T { println(/* line: 3 */ O.getClass) println(classOf[ /* line: 2 */ C]) }
ilinum/intellij-scala
testdata/resolve2/import/source/PackageObject.scala
Scala
apache-2.0
154
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js IR ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2014, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
jmnarloch/scala-js
ir/src/main/scala/org/scalajs/core/ir/ClassKind.scala
Scala
bsd-3-clause
1,502
package behavioral /** * Null Object represents the absence of an object by defining a neutral, “do nothing” behavior. * This approach has an advantage over using null references, because there’s no need to explicitly check the validity of references before usage. * * We use so-called “for comprehension” to proces...
LeonDaniel/DesignPatterns
ScalaPatterns/src/main/scala/behavioral/NullObject.scala
Scala
lgpl-3.0
848
package lore.compiler.types import lore.compiler.core.CompilationException import lore.compiler.types.TypeVariable.Variance import lore.compiler.utils.CollectionExtensions.VectorMapExtension object Simplification { /** * Constructs a type of `kind`, either a sum type or intersection type, from the given parts....
marcopennekamp/lore
compiler/src/lore/compiler/types/Simplification.scala
Scala
mit
5,933
package vep.app.seo import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.Route import vep.Configuration import vep.app.seo.sitemap.SitemapIntegrationModule import vep.app.seo.views.ViewsIntegrationModule import vep.app.user.UserService trait SeoIntegrationModule extends SitemapIntegrationM...
kneelnrise/vep
src/main/scala/vep/app/seo/SeoIntegrationModule.scala
Scala
mit
563
package auth import play.api.mvc._ import play.api.mvc.Results._ import scala.reflect._ import jp.t2v.lab.play2.auth.{CookieIdContainer, IdContainer, AuthConfig} import play.api.mvc.AcceptExtractors import model.{Administrator, Permission} import dao.UserDao import scala.concurrent.{Future, ExecutionContext} /** * T...
SunriseSoftVN/hayhayblog
core/app/auth/AuthConfigImpl.scala
Scala
gpl-2.0
1,631
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Dax1n/spark-core
core/src/main/scala/org/apache/spark/SSLOptions.scala
Scala
apache-2.0
8,080
package it.polimi.genomics.manager.Exceptions /** * Created by Abdulrahman Kaitoua on 13/09/15. * Email: abdulrahman.kaitoua@polimi.it * * Exception to specify that the GMQL job is not found */ class InvalidGMQLJobException(message: String) extends RuntimeException(message){ }
DEIB-GECO/GMQL
GMQL-SManager/src/main/scala/it/polimi/genomics/manager/Exceptions/InvalidGMQLJobException.scala
Scala
apache-2.0
287
package knot.msgpack.macros import knot.testKit.TestData import org.scalatest.FunSpec class GeneratorSpec extends FunSpec { describe("macro") { it("type") { val ser = Generator.generate[TestData] println(ser) } it("builtin Generic") { val ser = Generator.generate[Map[Int, Long]] ...
defvar/knot
knot-msgpack/src/test/scala/knot/msgpack/macros/GeneratorSpec.scala
Scala
mit
448
package net.kogics.kojo import java.awt.Color import java.awt.Paint import net.kogics.kojo.picture.AxesOnc import net.kogics.kojo.picture.FlipXc import net.kogics.kojo.picture.FlipYc import core.Picture package object picture { type Painter = core.Painter def rot(angle: Double) = Rotc(angle) def rotp(angle:...
vnkmr7620/kojo
KojoEnv/src/net/kogics/kojo/picture/package.scala
Scala
gpl-3.0
3,113
/* Copyright 2009-2016 EPFL, Lausanne */ package leon import leon.annotation._ import leon.lang._ import scala.language.implicitConversions package object instrumentation { @library def steps: BigInt = 0 @library def steps[T](arg: T): BigInt = 0 @library def stack: BigInt = 0 @library def rec: Big...
epfl-lara/leon
library/leon/instrumentation/package.scala
Scala
gpl-3.0
436
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 b...
hpe-cct/cct-core
src/main/scala/cogx/compiler/codegenerator/opencl/generator/UserWithVariantsKernel.scala
Scala
apache-2.0
3,232
/* * Derived from https://github.com/spray/spray/blob/v1.1-M7/spray-http/src/main/scala/spray/http/HttpHeader.scala * * Copyright (C) 2011-2012 spray.io * Based on code copyright (C) 2010-2011 by the BlueEyes Web Framework Team (http://github.com/jdegoes/blueeyes) * * Licensed under the Apache License, Version 2....
reactormonk/http4s
core/src/main/scala/org/http4s/Header.scala
Scala
apache-2.0
4,416
/* * Copyright 2014 Aurel Paulovic (aurel.paulovic@gmail.com) (aurelpaulovic.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 * ...
AurelPaulovic/crdt
src/main/scala/com/aurelpaulovic/crdt/immutable/state/PNCounter.scala
Scala
apache-2.0
2,932
package spoiwo.natures.xlsx import org.apache.poi.xssf.usermodel.{XSSFFont, XSSFRow, XSSFSheet, XSSFWorkbook} import Model2XlsxConversions.convertRow import scala.util.Try import scala.language.postfixOps import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers import spoiwo.model.Heigh...
norbert-radyk/spoiwo
core/src/test/scala/spoiwo/natures/xlsx/Model2XlsxConversionsForRowSpec.scala
Scala
mit
5,460
package presenter import model.{JsSongDetail, SongReference} import org.scalajs.dom import org.scalajs.dom.html.{Audio, Div, Input} import org.scalajs.dom.{Event, Node, XMLHttpRequest} import scala.scalajs.js.JSON class SongDetailPresenter(val song: SongReference, val contentPane: Node) extends SongPresenter { va...
rak4music/My-Musical-Flip-Card
client/src/main/scala/presenter/SongDetailPresenter.scala
Scala
apache-2.0
6,364
import play.api._ import models._ import anorm._ object Global extends GlobalSettings { override def onStart(app: Application) { InitialData.insert() } } /** * Initial set of data to be imported * in the sample application. */ object InitialData { def date(str: String) = new java.text.SimpleDateForma...
olegsmetanin/playapingmod
app/Global.scala
Scala
mit
2,585
/* * 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...
keithhall/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/AC426.scala
Scala
apache-2.0
933
/* * 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 ...
lhaiesp/samza
samza-core/src/main/scala/org/apache/samza/job/local/ProcessJobFactory.scala
Scala
apache-2.0
5,222
package mesosphere.marathon.event.http import java.io.{ IOException, EOFException } import java.util.concurrent.CountDownLatch import akka.actor.{ Actor, ActorSystem, Props } import akka.event.EventStream import akka.testkit.{ ImplicitSender, TestActorRef, TestKit } import mesosphere.marathon.MarathonSpec import meso...
sepiroth887/marathon
src/test/scala/mesosphere/marathon/event/http/HttpEventStreamHandleActorTest.scala
Scala
apache-2.0
3,554
package com.github.pedrovgs.haveaniceday.smiles import javax.inject.Inject import com.github.pedrovgs.haveaniceday.smiles.model.SmilesGenerationResult import scala.concurrent.Future class GenerateSmiles @Inject()(smilesGenerator: SmilesGenerator) { def apply(): Future[SmilesGenerationResult] = smilesGenerator.ge...
pedrovgs/HaveANiceDay
src/main/scala/com/github/pedrovgs/haveaniceday/smiles/GenerateSmiles.scala
Scala
gpl-3.0
338
package controllers import api.{WebsiteApiConfig, WebsiteApi} import models.{WebsiteDb, Website} import play.api.Play import play.api.libs.json._ import play.api.mvc._ import scalaz._ import Scalaz._ object WebsiteApiController extends Controller with ControllerHelper { val websiteApiConfig : WebsiteApiConfig =...
jlcanela/fastcms
app/controllers/WebsiteApiController.scala
Scala
apache-2.0
2,555
/* * 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 ...
practice-vishnoi/dev-spark-1
streaming/src/main/scala/org/apache/spark/streaming/receiver/ReceiverSupervisor.scala
Scala
apache-2.0
7,760
/* * 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
core/src/main/scala/org/apache/spark/deploy/rest/SubmitRestProtocolRequest.scala
Scala
apache-2.0
3,922
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
maropu/spark
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaRelationSuite.scala
Scala
apache-2.0
25,365
/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.15.47 * apibuilder 0.15.33 app.apibuilder.io/apicollective/apibuilder-api/latest/play_2_8_client */ package io.apibuilder.api.v0.models { /** * Represents a single diff in an application */ sealed trait Diff extends _root_.sc...
apicollective/apibuilder
generated/app/ApicollectiveApibuilderApiV0Client.scala
Scala
mit
221,322
/* * 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
examples/scala-2.10/src/main/scala/org/apache/spark/examples/streaming/DirectKafkaWordCount.scala
Scala
apache-2.0
2,651
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
laserson/adam
adam-core/src/test/scala/org/bdgenomics/adam/models/SequenceDictionarySuite.scala
Scala
apache-2.0
7,883
/* * Copyright 2011-2014 Chris de Vreeze * * 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...
EBPI/yaidom
src/main/scala/nl/ebpi/yaidom/core/ENameProvider.scala
Scala
apache-2.0
8,110
package lila.gameSearch private[gameSearch] object Fields { val status = "s" val turns = "t" val rated = "r" val perf = "p" val uids = "u" val winner = "w" val winnerColor = "c" val averageRating = "a" val ai = "i" val opening = "o" val date = "d" val duration = "l" ...
JimmyMow/lila
modules/gameSearch/src/main/Fields.scala
Scala
mit
414
package epam.idobrovolskiy.wikipedia.trending.document /** * Created by Igor_Dobrovolskiy on 21.07.2017. */ abstract class WikiDocumentWithBody ( id: Int, title: String, url: String ) extends WikiDocumentHeader(id, title, url) { type TBody val body: TBody override val toString = super.toString + s",...
igor-dobrovolskiy-epam/wikipedia-analysis-scala-core
src/main/scala/epam/idobrovolskiy/wikipedia/trending/document/WikiDocumentWithBody.scala
Scala
apache-2.0
330
package com.peterpotts.snake.coercion object Min extends Coercion[Any] { def boolean(left: Boolean, right: Boolean): Any = if (left < right) left else right def int(left: Int, right: Int): Any = if (left < right) left else right def long(left: Long, right: Long): Any = if (left < right) left else right def ...
peterpotts/snake
src/main/scala/com/peterpotts/snake/coercion/Min.scala
Scala
mit
483
package com.tactix4.t4openerp.connector.transport import org.scalatest.FunSuite import org.scalatest.prop.GeneratorDrivenPropertyChecks import org.scalacheck.{Arbitrary, Gen} import org.scalacheck.Gen._ import org.scalacheck.Arbitrary._ import com.tactix4.t4xmlrpc._ import scala.language.implicitConversions object Xm...
NeovaHealth/t4openerp-connector
src/test/scala/com/tactix4/t4openerp/connector/transport/XmlRpcToOETest.scala
Scala
agpl-3.0
2,637
package io.eels.component.avro import java.io.File import io.eels.schema.StructType import io.eels.{Row, Sink, SinkWriter} import org.apache.hadoop.conf.Configuration import org.apache.hadoop.fs.permission.FsPermission import org.apache.hadoop.fs.{FileSystem, Path} case class AvroSink(path: Path, ...
sksamuel/eel-sdk
eel-core/src/main/scala/io/eels/component/avro/AvroSink.scala
Scala
apache-2.0
1,699
package org.monkeynuthead.monkeybarrel.streams import akka.stream.ActorMaterializer import akka.stream.scaladsl.Source import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.{MustMatchers, WordSpec} import scala.concurrent.Await import scala.concurrent.duration._ import ...
georgenicoll/monkey-barrel
old20150804/core/jvm/src/test/scala/org/monkeynuthead/monkeybarrel/streams/SetUpStreamsSpec.scala
Scala
gpl-2.0
1,017
package com.github.morikuni.locest.frequency.domain.repository.impl import com.github.morikuni.locest.frequency.domain.model.{WordId, Word, WordProperty} import com.github.morikuni.locest.frequency.domain.repository.{DependWordRepositoryTransactionManger, DependWordRepository, WordRepositorySession, WordRepository} im...
morikuni/locest
frequency/app/com/github/morikuni/locest/frequency/domain/repository/impl/WordRepositoryImpl.scala
Scala
mit
1,823
package com.appliedscala.generator.configuration import play.api.libs.json.{Json, Reads} case class Directories(basedir: String, content: String, output: String, archive: String, templates: String) object Directories { implicit val reads: Reads[Directories] = Json.reads[Directories] }
denisftw/s2gen
src/main/scala/com/appliedscala/generator/configuration/Directories.scala
Scala
mit
291
/* * Copyright (C) 2012 Romain Reuillon * * 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) any later version. * * This progra...
ISCPIF/PSEExperiments
openmole-src/openmole/plugins/org.openmole.plugin.task.jvm/src/main/scala/org/openmole/plugin/task/jvm/package.scala
Scala
agpl-3.0
1,087
/* * 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...
122689305/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/BCECriterion.scala
Scala
apache-2.0
4,407
package io.viper.examples import _root_.io.viper.core.server.router._ import io.viper.common.{NestServer, RestServer} import io.viper.core.server.security.HttpBasicAuthHandler import org.jboss.netty.handler.codec.http.HttpRequest import java.util object BasicAuthSecured { def main(args: Array[String]) { NestSe...
briangu/viper.io
examples/src/main/scala/io/viper/examples/BasicAuthSecured.scala
Scala
apache-2.0
760
/* * Copyright 2020 Precog Data * * 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 ...
quasar-analytics/quasar
impl/src/main/scala/quasar/impl/storage/CodecPrefixStore.scala
Scala
apache-2.0
2,882
package se.gigurra.wallace.gamemodel import se.gigurra.wallace.gamemodel object WorldVector { val zero = WorldVector(0L, 0L) import gamemodel.WorldVector def apply(x: Long = 0, y: Long = 0): WorldVector = new WorldVector(x, y) }
GiGurra/Wall-Ace
game_model/src/main/scala/se/gigurra/wallace/gamemodel/WorldVector.scala
Scala
gpl-2.0
238
package com.crunchdevelopment.twitterstreaming.core import akka.actor.{ActorRef, Actor, Props} import scala.concurrent.Future import spray.http._ import akka.actor._ import com.crunchdevelopment.twitterstreaming.auth._ import com.crunchdevelopment.twitterstreaming.ClusterRoles import akka.cluster.Cluster import com.ty...
alexanderscott/akka-twitter-streaming-cluster
src/main/scala/com/crunchdevelopment/twitterstreaming/core/TwitterStreamSupervisor.scala
Scala
apache-2.0
2,220
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/AC210B.scala
Scala
apache-2.0
1,129
package com.datastax.spark.connector.types import java.net.InetAddress import java.nio.ByteBuffer import java.util.{Calendar, GregorianCalendar, UUID, Date} import scala.collection.JavaConversions._ import scala.collection.immutable.{TreeMap, TreeSet} import scala.reflect.runtime.universe._ import org.apache.commons...
uncommoncode/spark-cassandra-connector
spark-cassandra-connector/src/main/scala/com/datastax/spark/connector/types/TypeConverter.scala
Scala
apache-2.0
29,582
/* * 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
core/src/main/scala/org/apache/spark/deploy/security/HadoopDelegationTokenManager.scala
Scala
apache-2.0
12,455
import Macro.* @main def Test() = { // hello mac() }
dotty-staging/dotty
tests/run-macros/i8746/Test_2.scala
Scala
apache-2.0
56
class C(private[this] var c: String) { c = "good" ; def f = c } object Test { def main(args: Array[String]) = println { new C("bad").f } }
lrytz/scala
test/files/run/t6880.scala
Scala
apache-2.0
149
// See Test.scala for comments trait T { def f = 1 } class A { // member class class B // member trait trait C // member object object D { class B trait C object D new T { } (() => "-1") def f = { class KB } } // anonymous class, not a member new T { } // anonymous functi...
martijnhoekstra/scala
test/files/jvm/javaReflection/Classes_1.scala
Scala
apache-2.0
994
/* * 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 ...
lxsmnv/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JsonInferSchema.scala
Scala
apache-2.0
14,145
/** * Copyright 2011-2016 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...
thkluge/gatling
gatling-core/src/main/scala/io/gatling/core/check/extractor/regex/RegexExtractorFactory.scala
Scala
apache-2.0
1,839
package ohnosequences.mg7.loquats import ohnosequences.mg7._ import ohnosequences.loquat._, utils.files._ import ohnosequences.statika._ import ohnosequences.blast.api._ import ohnosequences.cosas._, types._, klists._ import ohnosequences.datasets._ import ohnosequences.fastarious._, fasta._ import sys.process._ case...
ohnosequences/mg7
src/main/scala/mg7/loquats/3.blast.scala
Scala
agpl-3.0
3,323
package skinny.test import skinny._ import skinny.controller.SkinnyController import skinny.filter.SkinnySessionFilter case class Foo(str: String, value: Int) extends java.io.Serializable class SkinnyTestSupportSpec extends SkinnyFlatSpec with SkinnyTestSupport with Serializable { object SessionInjectorTest exten...
seratch/skinny-framework
test/src/test/scala/skinny/test/SkinnyTestSupportSpec.scala
Scala
mit
2,657
/* * 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 ...
jkbradley/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/StaticSQLConf.scala
Scala
apache-2.0
8,073
package io.eels.component.orc import java.util.concurrent.atomic.AtomicInteger import java.util.function.IntUnaryOperator import com.sksamuel.exts.Logging import com.typesafe.config.ConfigFactory import io.eels.Row import io.eels.schema.StructType import org.apache.hadoop.conf.Configuration import org.apache.hadoop.f...
sksamuel/eel-sdk
eel-orc/src/main/scala/io/eels/component/orc/OrcWriter.scala
Scala
apache-2.0
3,271
package com.github.cuzfrog trait OptionParam[+T] case class SomeParam[T](value:T) extends OptionParam[T] case object NoneParam extends OptionParam[Nothing] object OptionParam{ implicit def enclose[T](v: T): OptionParam[T] = if(v == null) NoneParam else SomeParam(v) } object CustomOptionTest extends App{ def cons...
cuzfrog/scala_sbt_template
src/main/scala/com/github/cuzfrog/CustomOption.scala
Scala
apache-2.0
402
package models case class UserRegistration( companyName: String, zip1: String, zip2: String, zip3: String, prefecture: Prefecture, address1: String, address2: String, address3: String, tel: String, fax: String, title: String, firstName: String, middleName: String, lastName: String, email:...
ruimo/store2
app/models/UserRegistration.scala
Scala
apache-2.0
1,491
/* 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...
tdyas/scalding
scalding-core/src/test/scala/com/twitter/scalding/CoreTest.scala
Scala
apache-2.0
58,056
package com.mentatlabs.nsa package scalac package dsl package experimental trait ScalacXNoDSL extends ScalacExperimentalDSL { object Xno { val unary_- = new { def -(f: forwarders.type) = options.ScalacXNoForwarders def -(p: patmat.type) = new { def -(a: analysis.type) = options.ScalacXN...
melezov/sbt-nsa
nsa-dsl/src/main/scala/com/mentatlabs/nsa/scalac/dsl/experimental/advanced/ScalacXNoDSL.scala
Scala
bsd-3-clause
413
/* * 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 ...
rezasafi/spark
external/kafka-0-10/src/test/scala/org/apache/spark/streaming/kafka010/mocks/MockTime.scala
Scala
apache-2.0
1,954
/* * Copyright 2014-2022 Netflix, 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...
Netflix/atlas
atlas-module-akka/src/test/scala/com/netflix/atlas/akka/AkkaModuleSuite.scala
Scala
apache-2.0
1,819
package io.taric.domains import concurrent.Future import io.taric.services.FlatFileRecord /** * File created: 2013-01-13 18:46 * * Copyright Solvies AB 2013 * For licensing information see LICENSE file */ object LocatingTaricFiles { private[this] def fNum( f: String ): Int = f.take( 4 ).toInt def latestFil...
magnusart/taric.io
taric-import/src/main/scala/io/taric/domains/LocatingTaricFiles.scala
Scala
apache-2.0
1,172
package com.geeksville.andropilot.service import android.bluetooth._ import android.content._ import scala.collection.JavaConverters._ import java.util.UUID import com.ridemission.scandroid.AndroidLogger import java.io.IOException import java.io.InputStream import java.io.OutputStream import java.io.FilterInputStream ...
geeksville/arduleader
andropilot/src/main/scala/com/geeksville/andropilot/service/BluetoothConnection.scala
Scala
gpl-3.0
3,527