code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package de.endrullis.sta import org.junit.runner.RunWith import org.specs2._ import org.specs2.runner.JUnitRunner import org.specs2.specification.BeforeAll /** * Tests for a small 'Hello World' example. * * @author Stefan Endrullis <stefan@endrullis.de> */ @RunWith(classOf[JUnitRunner]) class HelloWorldSpec...
xylo/scala-tikz-animations
src-test/de/endrullis/sta/HelloWorldSpec.scala
Scala
apache-2.0
954
package scifn.gen import scifn.api.imports import scifn.func.Fn import scala.language.experimental.macros import scala.language.implicitConversions import scala.reflect.api.Universe import scala.reflect.macros.blackbox import scala.reflect.runtime.{currentMirror, universe => ru} import scala.reflect.{macros => srm} i...
scifn/scifn
scifn-gen/src/main/scala-2.11/scifn/gen/reflectionEnvs.scala
Scala
mit
13,665
/* * Copyright 2016 Lightcopy * * 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...
lightcopy/parquet-index
src/main/scala/org/apache/spark/sql/internal/IndexConf.scala
Scala
apache-2.0
4,074
/* * Copyright 2015 eleflow.com.br. * * 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 ...
eleflow/uberdata
iuberdata_core/src/main/scala/eleflow/uberdata/core/data/json/Block.scala
Scala
apache-2.0
1,548
package eventstore.examples import akka.actor.ActorSystem import eventstore.{ EventStream, EventNumber, ReadEvent, EsConnection } import eventstore.tcp.ConnectionActor class APIsExample { val system = ActorSystem() def methodCall() { val connection = EsConnection(system) val future = connection future Re...
pawelkaczor/EventStore.JVM
src/main/scala/eventstore/examples/APIsExample.scala
Scala
bsd-3-clause
547
package edu.scaps object Hello extends App { println("Hi!") } class Hello { def iu(number: Int): Int = number } class Miz { def mau(times: Int): String = 1.to(times).foldLeft("")((str, _) => str + "mau, ") def mauNice(times: Int): String = (1 to times).map(_ => "mau").mkString(", ") }
flomerz/scala-ide-scaps-testproject
src/main/scala/edu/scaps/Hello.scala
Scala
mpl-2.0
299
package com.greencatsoft.angularjs import scala.scalajs.js import scala.scalajs.js.Any.fromFunction11 import scala.scalajs.js.UndefOr import scala.scalajs.js.UndefOr.undefOr2ops trait Filter[A] extends Factory[js.Function] { override def apply(): js.Function = (item: A, arg0: UndefOr[Any], arg1: UndefOr[Any], arg2...
7thsense/scalajs-angular
src/main/scala/com/greencatsoft/angularjs/Filter.scala
Scala
apache-2.0
863
/* * 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 ...
mrchristine/spark-examples-dbc
src/main/scala/org/apache/spark/examples/mllib/NaiveBayesExample.scala
Scala
apache-2.0
1,966
package app.claim import utils.WithJsBrowser import utils.pageobjects.preview.PreviewTestableData import utils.pageobjects.s_eligibility.GBenefitsPage import utils.pageobjects._ import app.FunctionalTestCommon /** * End-to-End functional tests using input files created by Steve Moody. * @author Jorge Migueis * ...
Department-for-Work-and-Pensions/ClaimCapture
c3/test/app/claim/FunctionalTestCase7Spec.scala
Scala
mit
2,591
package ml.wolfe.term import ml.wolfe.WolfeSpec /** * @author riedel */ class IntTermSpecs extends WolfeSpec { import ml.wolfe.term.TermImplicits._ "A int term" should { "have a singleton domain if its a constant" in { val i:IntTerm = 1 i.domain.values should be (1 until 2) } "have an...
wolfe-pack/wolfe
wolfe-core/src/test/scala/ml/wolfe/term/IntTermSpecs.scala
Scala
apache-2.0
813
package arena.market.order abstract class OrderBookRequest case class NewOrder(timestamp: Long, tradeID: String, symbol: String, qty: Long, isBuy: Boolean, price: Option[Double]) extends OrderBookRequest case class Cancel(timestamp: Long, order: NewOrder) extends OrderBookRequest case class Amend(timestamp: Long, o...
quedexco/arena-scala
src/main/scala/arena/market/order/OrderBookRequest.scala
Scala
apache-2.0
408
package im.actor.server.group import java.time.{ LocalDateTime, ZoneOffset } import akka.actor.Status import akka.pattern.pipe import com.google.protobuf.ByteString import com.trueaccord.scalapb.GeneratedMessage import im.actor.api.rpc.Update import im.actor.api.rpc.groups._ import im.actor.api.rpc.messaging.ServiceM...
stonegithubs/actor-platform
actor-server/actor-core/src/main/scala/im/actor/server/group/GroupCommandHandlers.scala
Scala
mit
17,062
/* * Copyright 2010 Michael Fortin <mike@brzy.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 la...
m410/brzy
src/test/scala/org/brzy/webapp/persistence/MockPersistable.scala
Scala
apache-2.0
1,612
package org.jetbrains.plugins.scala.debugger.breakpoints import com.intellij.debugger.engine.{DebugProcessImpl, JavaBreakpointHandler, JavaBreakpointHandlerFactory} /** * @author Nikolay.Tropin */ class ScalaBreakpointHandlerFactory extends JavaBreakpointHandlerFactory { override def createHandler(process: DebugP...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/debugger/breakpoints/ScalaBreakpointHandlerFactory.scala
Scala
apache-2.0
524
package scalaz.contrib package geo sealed trait Elevation { val value: Double } trait Elevations { def elevation(d: Double) = new Elevation { val value = d.abs } } object Elevation { implicit val elevationInstances = new scalaz.Show[Elevation] with scalaz.Order[Elevation] { override def shows(e: E...
drstevens/scalaz-geo
src/main/scala/scalaz/geo/Elevation.scala
Scala
bsd-3-clause
445
package com.twitter.inject.app.internal import com.google.inject.Key import com.twitter.finatra.annotations.FlagImpl import com.twitter.inject.{TwitterModule, Logging} object FlagsModule { def create(flags: Seq[com.twitter.app.Flag[_]]) = { val flagsMap = (for (flag <- flags) yield { flag.name -> flag() ...
kaushik94/finatra
inject/inject-app/src/main/scala/com/twitter/inject/app/internal/FlagsModule.scala
Scala
apache-2.0
796
package org.jetbrains.plugins.scala package codeInspection.typeChecking import com.intellij.codeInspection.{ProblemHighlightType, ProblemsHolder} import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.codeInspection.collections.MethodRepr import org.jetbrains.plugins.scala.codeInspection.typeChecking.Co...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/codeInspection/typeChecking/ComparingUnrelatedTypesInspection.scala
Scala
apache-2.0
4,312
package edu.gemini.catalog.ui.image import java.beans.{PropertyChangeEvent, PropertyChangeListener} import java.nio.file.Path import java.time.Instant import java.util.concurrent.atomic.AtomicInteger import java.util.concurrent.{ExecutorService, Executors, ThreadFactory} import java.util.logging.{Level, Logger} impor...
spakzad/ocs
bundle/jsky.app.ot/src/main/scala/edu/gemini/catalog/ui/image/BackgroundImageLoader.scala
Scala
bsd-3-clause
9,902
package jp.ac.nagoya_u.dsmoq.sdk.response case class StatisticsDetail( private val dataset_amount: Long, private val real_size: Long, private val local_size: Long, private val s3_size: Long, private val total_size: Long ) { def getDatasetAmount = dataset_amount def getRealSize = real_size def getLocalS...
nkawa/dsmoq
sdk/src/main/java/jp/ac/nagoya_u/dsmoq/sdk/response/Statistics.scala
Scala
apache-2.0
397
/* * NumericOptionSpinnerModel.scala * (LucreSwing) * * Copyright (c) 2014-2021 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU Affero General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * contact@sciss.de */ package de.sciss....
Sciss/LucreSwing
jvm/src/main/scala/de/sciss/lucre/swing/impl/NumericOptionSpinnerModel.scala
Scala
agpl-3.0
3,331
import sbt._ import sbt.Keys._ import com.typesafe.sbteclipse.plugin.EclipsePlugin._ object SynergyBuild extends Build { lazy val synergy = Project( id = "synergy", base = file("."), settings = Project.defaultSettings ++ Seq( name := "synergy", organization := "net.caoticode.syner...
mdread/synergy
project/SynergyBuild.scala
Scala
mit
853
package test import org.scalatest.FunSuite import scala.offheap._ @data class L1(x: Byte, y: Byte) @data class L2(x: Byte, y: Short) @data class L3(x: Byte, y: Int) @data class L4(x: Byte, y: Long) @data class L5(x: Int, y: Long) @data class L6(x: Byte, @embed emb: L5) @data class L7(x: Int, y: Short) @data class L8...
adamwy/scala-offheap
tests/src/test/scala/LayoutSuite.scala
Scala
bsd-3-clause
2,583
package scalacookbook.chapter10 /** * Created by liguodong on 2016/7/30. */ object CreateLazyViewOnCollection extends App{ println(1 to 5) println((1 to 5).view) val view = (1 to 5).view println(view) val x = view.force println(x) println("----------------") //通过几种方式去看向集合中增加view的影响 //usin...
liguodongIOT/java-scala-mix-sbt
src/main/scala/scalacookbook/chapter10/CreateLazyViewOnCollection.scala
Scala
apache-2.0
2,116
class ImplicitParametersDeeperLevel { class A class B object D { implicit val s: B = new B } object K { implicit def g(implicit s: B): A = new A } def foo()(implicit x: A) = 123 import D._ import K._ foo() } /* class ImplicitParametersDeeperLevel { class A class B object D { ...
ilinum/intellij-scala
testdata/optimize/implicits/ImplicitParametersDeeperLevel.scala
Scala
apache-2.0
494
/* * 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 ...
pronix/spark
sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala
Scala
apache-2.0
6,616
/* * 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 ...
ronanstokes/SparkOnHBase
src/main/scala/com/cloudera/spark/hbase/example/HBaseBulkPutHdfsTmpExample.scala
Scala
apache-2.0
2,720
package com.atomist.rug.kind.java import com.atomist.rug.kind.java.JavaSourceType._ import com.atomist.source.ArtifactSource import com.github.javaparser.JavaParser import org.scalatest.Matchers /** * Utilities for use in testing. */ object JavaVerifier extends Matchers { /** * Verify that the contents of ...
atomist/rug
src/test/scala/com/atomist/rug/kind/java/JavaVerifier.scala
Scala
gpl-3.0
696
package skinny.micro import javax.servlet.http.{ HttpServlet, HttpServletRequest, HttpServletResponse } import javax.servlet._ import skinny.micro.context.SkinnyContext import skinny.micro.implicits.{ RicherStringImplicits, ServletApiImplicits } import skinny.micro.util.UriDecoder import scala.util.control.Exception...
xerial/skinny-micro
micro/src/main/scala/skinny/micro/SkinnyMicroServletBase.scala
Scala
bsd-2-clause
4,488
package ml.sparkling.graph.operators.measures.vertex.clustering import it.unimi.dsi.fastutil.longs.LongOpenHashSet import ml.sparkling.graph.api.operators.measures.{VertexMeasure, VertexMeasureConfiguration} import ml.sparkling.graph.operators.measures.utils.CollectionsUtils._ import ml.sparkling.graph.operators.measu...
sparkling-graph/sparkling-graph
operators/src/main/scala/ml/sparkling/graph/operators/measures/vertex/clustering/LocalClustering.scala
Scala
bsd-2-clause
2,264
package com.socrata.geoexport.mocks import java.io.{InputStream, ByteArrayOutputStream, DataOutputStream} import javax.servlet.http.HttpServletResponse.{SC_OK => ScOk} import org.velvia.MsgPack import com.socrata.http.common.util.Acknowledgeable class BinaryResponse(val payload: Array[Byte], ove...
socrata-platform/geo-export
src/test/scala/com.socrata.geoexport/mocks/BinaryResponse.scala
Scala
apache-2.0
1,278
package skinny.dbmigration import scalikejdbc._ import org.slf4j.LoggerFactory /** * DBSeeds runner. */ class DBSeedsRunner extends DBSeeds /** * Seeds database tables or records instantly. * * This module is surely inspired by Rails rake db:seed. */ trait DBSeeds { private[this] val logger = LoggerFactory....
BlackPrincess/skinny-framework
orm/src/main/scala/skinny/dbmigration/DBSeeds.scala
Scala
mit
2,284
package mgoeminne.scalaggplot.geom import mgoeminne.scalaggplot.position.Position import mgoeminne.scalaggplot.stat.Statistic import mgoeminne.scalaggplot.{position, aes, stat} import org.saddle.Frame /** * Adds heatmap of 2d bin counts. * * == Aesthetics == * * This method understands the following aesthetics (...
mgoeminne/scala-ggplot
src/main/scala/mgoeminne/scalaggplot/geom/bin2d.scala
Scala
lgpl-3.0
1,391
/* * 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/main/scala/org/scalactic/TripleEquals.scala
Scala
apache-2.0
9,809
/* * 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 ...
sryza/spark
core/src/test/scala/org/apache/spark/rdd/PairRDDFunctionsSuite.scala
Scala
apache-2.0
14,293
/** * 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...
noslowerdna/kafka
core/src/main/scala/kafka/security/CredentialProvider.scala
Scala
apache-2.0
2,239
package com.thoughtworks.datacommons.prepbuddy.imputations import com.thoughtworks.datacommons.prepbuddy.SparkTestCase import com.thoughtworks.datacommons.prepbuddy.rdds.TransformableRDD import com.thoughtworks.datacommons.prepbuddy.types.CSV import com.thoughtworks.datacommons.prepbuddy.utils.RowRecord import org.apa...
data-commons/prep-buddy
src/test/scala/com/thoughtworks/datacommons/prepbuddy/imputations/ImputationTest.scala
Scala
apache-2.0
8,159
// NOTE: commented out in order to avoid scope pollution for typecheckError // package scala.meta.tests // package api import munit._ import org.scalameta.tests._ class PublicSuite extends FunSuite { test("quasiquotes without import") { assert(typecheckError(""" q"hello" """) == "value q is not a memb...
scalameta/scalameta
tests/jvm/src/test/scala/scala/meta/tests/api/PublicSuite.scala
Scala
bsd-3-clause
7,102
package ch.descabato.core import java.util.Objects import java.util.concurrent.{ExecutorService, Executors} import akka.actor.{ActorSystem, TypedActor, TypedProps} import akka.stream.ActorMaterializer import ch.descabato.core.actors._ import ch.descabato.core.config.BackupFolderConfiguration import ch.descabato.core....
Stivo/DeScaBaTo
core/src/main/scala/ch/descabato/core/Universe.scala
Scala
gpl-3.0
4,535
/* * 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 ...
MLnick/spark
core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala
Scala
apache-2.0
17,912
/* * 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
streaming/src/main/scala/org/apache/spark/streaming/util/FileBasedWriteAheadLogReader.scala
Scala
apache-2.0
3,299
package org.flowpaint.util /** * * * @author Hans Haggstrom */ case class RectangleImpl( x1 : Int, y1 : Int, width : Int, height : Int ) extends Rectangle
zzorn/flowpaint
src/main/scala/org/flowpaint/util/RectangleImpl.scala
Scala
gpl-2.0
166
package org.bowlerframework.persistence import org.squeryl.{KeyedEntity, Table} import org.squeryl.PrimitiveTypeMode._ import com.recursivity.commons.bean.{GenericTypeDefinition} import org.squeryl.dsl.QueryYield /** * Created by IntelliJ IDEA. * User: wfaler * Date: 30/01/2011 * Time: 03:50 * To change this tem...
rkpandey/Bowler
persistence-mapper/src/test/scala/org/bowlerframework/persistence/SquerylDao.scala
Scala
bsd-3-clause
1,620
package scommons.client.controller import io.github.shogowada.scalajs.reactjs.router.RouterProps.RouterProps class RouteParams(props: RouterProps) { def pathParams: PathParams = PathParams(props.location.pathname) def allParams: PathParams = { val location = props.location PathParams(s"${location.path...
viktor-podzigun/scommons
ui/src/main/scala/scommons/client/controller/RouteParams.scala
Scala
apache-2.0
411
package com.rasterfoundry.datamodel import io.circe._ import cats.syntax.either._ sealed abstract class ObjectType(val repr: String) { override def toString = repr } object ObjectType { case object Project extends ObjectType("PROJECT") case object Scene extends ObjectType("SCENE") case object Datasource exte...
azavea/raster-foundry
app-backend/datamodel/src/main/scala/ObjectType.scala
Scala
apache-2.0
2,660
package com.eevolution.context.dictionary.domain.model import ai.x.play.json.Jsonx import com.eevolution.context.dictionary.api.{ActiveEnabled, DomainModel, Identifiable, Traceable} import org.joda.time.DateTime /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This progra...
adempiere/ADReactiveSystem
dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/model/WorkflowProcess.scala
Scala
gpl-3.0
4,140
/* * Copyright 2016 Nicolas Rinaudo * * 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...
nrinaudo/kantan.codecs
enumeratum/core/shared/src/test/scala/kantan/codecs/enumeratum/values/IntEnumCodecTests.scala
Scala
apache-2.0
1,249
package com.github.projectflink.spark import org.apache.spark.rdd.RDD import org.apache.spark.{SparkConf, SparkContext} import org.apache.spark.SparkContext._ import org.apache.zookeeper.KeeperException.SystemErrorException import _root_.scala.collection.mutable object Pagerank { def main(args: Array[String]): ...
dataArtisans/performance
spark-jobs/src/main/scala/com/github/projectflink/spark/Pagerank.scala
Scala
apache-2.0
2,375
class Hello2 { def speak: String = "Hello" } class Hi2 extends Hello2 { override def speak: String = "Hi" def hi: String = speak } class Speak2(override val speak: String) extends Hello2
grzegorzbalcerek/scala-book-examples
examples/Extending2.scala
Scala
mit
191
package com.thetestpeople.trt.analysis import com.thetestpeople.trt.model._ import com.thetestpeople.trt.service.Clock import com.thetestpeople.trt.utils.HasLogger import com.thetestpeople.trt.utils.Utils import com.thetestpeople.trt.utils.LockUtils._ import com.thetestpeople.trt.utils.CoalescingBlockingQueue import j...
thetestpeople/trt
app/com/thetestpeople/trt/analysis/AnalysisService.scala
Scala
mit
4,772
/* * 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/scheduler/ResultTask.scala
Scala
apache-2.0
5,117
package com.twitter.scalding import com.twitter.algebird.Semigroup object ExecutionUtil { /** * Generate a list of executions from a date range * * @param duration * Duration to split daterange * @param fn * Function to run a execution given a date range * @return * Sequence of Execut...
twitter/scalding
scalding-core/src/main/scala/com/twitter/scalding/ExecutionUtil.scala
Scala
apache-2.0
2,836
/* * 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 writ...
devcamcar/zipkin
zipkin-hadoop-job-runner/src/main/scala/com/twitter/zipkin/hadoop/Postprocess.scala
Scala
apache-2.0
3,842
/* * 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 ...
shaneknapp/spark
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingQuerySuite.scala
Scala
apache-2.0
50,896
/* * 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 ...
apache/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/batch/HashAggCodeGenerator.scala
Scala
apache-2.0
8,940
/* * Copyright (C) 2018 Joan Goyeau. * * 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, Ver...
KevinLiLu/kafka
streams/streams-scala/src/test/scala/org/apache/kafka/streams/scala/kstream/KStreamTest.scala
Scala
apache-2.0
5,678
import scala.reflect.runtime.universe._ class Foo(bar: String) extends annotation.ConstantAnnotation object Test extends App { val tree = reify{@Foo(bar = "qwe") class C}.tree println(tree.toString) }
scala/scala
test/files/run/t5224.scala
Scala
apache-2.0
207
/* * Copyright (c) 2015-2017 Toby Weston * * 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...
tobyweston/learn-scala-java-devs
src/main/scala/s4j/scala/chapter19/Mappable.scala
Scala
apache-2.0
1,759
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play.core.j import javax.inject.Inject import play.api.http.HttpRequestHandler import play.api.mvc.RequestHeader import play.http.{ HttpRequestHandler => JHttpRequestHandler, HandlerForRequest } import play.mvc.Http.{ RequestHeader =...
wsargent/playframework
framework/src/play/src/main/scala/play/core/j/JavaHttpRequestHandlerAdapter.scala
Scala
apache-2.0
1,185
/* * Copyright (C) 2017 HAT Data Exchange Ltd * SPDX-License-Identifier: AGPL-3.0 * * This file is part of the Hub of All Things project (HAT). * * HAT 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 Founda...
Hub-of-all-Things/HAT2.0
project/BuildSettings.scala
Scala
agpl-3.0
8,317
/** * 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...
ryez/gatling
gatling-charts/src/main/scala/io/gatling/charts/stats/buffers/ResponseTimeRangeBuffers.scala
Scala
apache-2.0
2,199
package api import spray.http.StatusCodes._ import spray.http._ import spray.routing._ import directives.{CompletionMagnet, RouteDirectives} import spray.util.{SprayActorLogging, LoggingContext} import util.control.NonFatal import spray.httpx.marshalling.Marshaller import spray.http.HttpHeaders.RawHeader import akka.a...
opyate/taximeter
src/main/scala/api/services.scala
Scala
mit
1,445
/*********************************************************************** * Copyright (c) 2013-2019 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...
elahrvivaz/geomesa
geomesa-kudu/geomesa-kudu-tools/src/main/scala/org/locationtech/geomesa/kudu/tools/KuduRunner.scala
Scala
apache-2.0
1,785
/* * 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
foundation/src/main/scala/quasar/contrib/iota/package.scala
Scala
apache-2.0
1,948
package twitter case class Tweet( contributors: Option[Seq[Contributor]], coordinates: Option[Coordinates], created_at: String, current_user_retweet: Option[Map[String, String]], entities: Option[Entities], favo...
callicles/akka-streams-intro
src/main/scala/twitter/Tweet.scala
Scala
mit
6,759
/* * Copyright (c) 2014-2018 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...
Wogan/monix
monix-tail/shared/src/test/scala/monix/tail/IterantTakeLastSuite.scala
Scala
apache-2.0
2,549
/* * Copyright 2018 Dell Inc. or its subsidiaries. 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. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * or in the "...
EMCECS/ecs-samples
aws-scala-workshop/src/main/scala/com/dellemc/ecs/s3/sample/_03_UpdateObjects.scala
Scala
apache-2.0
1,922
package graffiti import scala.concurrent.Future /** * @author Alexander De Leon <me@alexdeleon.name> */ package object oauth { type TokenAuthenticator[U] = Option[String] => Future[Option[U]] }
alexdeleon/graffiti
core/src/main/scala/graffiti/oauth/package.scala
Scala
mit
200
package demo package components package materialui import chandu0101.scalajs.react.components.materialui.{MuiList, MuiListItem} import demo.components.materialui.svgicons._ import japgolly.scalajs.react.ReactComponentB import japgolly.scalajs.react.vdom.prefix_<^._ object MuiListDemo { val code = """ | M...
tpdi/scalajs-react-components
demo/src/main/scala/demo/components/materialui/MuiListDemo.scala
Scala
apache-2.0
1,148
/* * Copyright 2015 Dmitriy Yefremov * * 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...
dmitriy-yefremov/sleipnir
generator/src/main/scala/net/yefremov/sleipnir/generator/types/EnumTypeGenerator.scala
Scala
apache-2.0
1,908
package flyweight case class Code(code: String)
BBK-PiJ-2015-67/sdp-portfolio
exercises/week11/src/main/scala/flyweight/Code.scala
Scala
unlicense
49
package controllers import models.User trait WebController extends AuthController[User]
chang850/play_slick
app/controllers/WebController.scala
Scala
mit
90
package controllers import play.api._ import play.api.mvc._ import play.api.data._ import play.api.data.Forms._ import models._ import views._ object Application extends Controller { // -- Authentication val loginForm = Form( tuple( "email" -> text, "password" -> text ) verifying ("Invalid ...
gslowikowski/scoverage-maven-samples
playframework/singlemodule/zentasks/zentasks-scala-2.11/app/controllers/Application.scala
Scala
apache-2.0
2,710
/* * Copyright 2015 eleflow.com.br. * * 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 ...
eleflow/uberdata
iuberdata_core/src/main/scala/org/apache/spark/ml/param/shared/TimeSeriesBestModelFinderParam.scala
Scala
apache-2.0
1,697
/* * 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 ...
likithkailas/StreamingSystems
core/src/main/scala/org/apache/spark/TaskContextImpl.scala
Scala
apache-2.0
4,548
package genetic.func import java.lang.Math._ import java.util.Random import genetic.func.Func._ import genetic.util.Util.formatScientific abstract class Func(val minX: Double, val maxX: Double, val minY: Double, val maxY: Double) { val name: String // The function's minimum should be 0. protected def evaluate...
NightRa/AILab
Genetic/src/main/scala/genetic/func/FuncSolution.scala
Scala
apache-2.0
1,903
package mesos.dns.client.model case class Service(service: String, host: String, ip: String, port: Int)
jmarin/mesos-proxy
src/main/scala/mesos/dns/client/model/Service.scala
Scala
apache-2.0
105
package com.twitter.finagle.stats /** * Exposes the value of a function. For example, one could add a gauge for a * computed health metric. */ trait Gauge { def remove() }
BuoyantIO/twitter-util
util-stats/src/main/scala/com/twitter/finagle/stats/Gauge.scala
Scala
apache-2.0
178
package com.sksamuel.elastic4s.requests.searches.aggs import com.sksamuel.elastic4s.requests.searches.queries.Query import com.sksamuel.elastic4s.ext.OptionImplicits._ case class KeyedFiltersAggregation(name: String, filters: Iterable[(String, Query)], ...
sksamuel/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/requests/searches/aggs/KeyedFiltersAggregation.scala
Scala
apache-2.0
1,029
package ru.arkoit.finchrich.controller.internal import io.finch.Endpoint import ru.arkoit.finchrich.controller.Controller import scala.reflect.macros.whitebox import macrocompat.bundle @bundle private[finchrich] class FinchRichMacro(val c: whitebox.Context) { import c.universe._ def materialize[T <: Controller :...
akozhemiakin/finchrich
controller/src/main/scala/ru/arkoit/finchrich/controller/internal/FinchRichMacro.scala
Scala
apache-2.0
2,270
package io.findify.s3mock.transfermanager import java.io.{ByteArrayInputStream, File, FileInputStream} import com.amazonaws.services.s3.model.ObjectMetadata import io.findify.s3mock.S3MockTest import scala.io.Source /** * Created by shutty on 11/23/16. */ class PutGetTest extends S3MockTest { override def beh...
findify/s3mock
src/test/scala/io/findify/s3mock/transfermanager/PutGetTest.scala
Scala
mit
1,328
/* * Copyright 2014 Eric Zoerner * * 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...
ezoerner/scalable-chat
client/src/main/scala/scalable/client/LoginController.scala
Scala
apache-2.0
3,688
package com.sksamuel.elastic4s.requests.searches.queries import com.sksamuel.elastic4s.JsonSugar import com.sksamuel.elastic4s.handlers.searches.queries import com.sksamuel.elastic4s.handlers.searches.queries.IntervalsQueryBuilderFn import com.sksamuel.elastic4s.requests.script.Script import org.scalatest.GivenWhenThe...
sksamuel/elastic4s
elastic4s-core/src/test/scala/com/sksamuel/elastic4s/requests/searches/queries/IntervalsQueryBuilderFnTest.scala
Scala
apache-2.0
3,848
package scalapb.spark import com.google.protobuf.ByteString import com.google.protobuf.Descriptors.{ EnumValueDescriptor, FieldDescriptor } import com.google.protobuf.Descriptors.FieldDescriptor.JavaType import scalapb.{ GeneratedMessage, GeneratedMessageCompanion, Message } import org.apache.spark.sql.types.{ ArrayTy...
trueaccord/sparksql-scalapb
sparksql-scalapb/src/main/scala/scalapb/spark/ProtoSQL.scala
Scala
apache-2.0
2,914
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
tillrohrmann/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/MapTypeTest.scala
Scala
apache-2.0
8,226
package org.template.sr /* * Copyright KOLIBERO under one or more contributor license agreements. * KOLIBERO licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * htt...
goliasz/pio-template-sr
src/main/scala/Engine.scala
Scala
apache-2.0
1,227
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.api.routing.sird import java.net.URL import java.net.URI import java.util.regex.Pattern import play.api.mvc.RequestHeader import play.utils.UriEncoding import scala.collection.concurrent.TrieMap import scala.util.matching.Regex /** * ...
marcospereira/playframework
core/play/src/main/scala/play/api/routing/sird/PathExtractor.scala
Scala
apache-2.0
3,305
package org.krazykat.ontapi.models.naElement.mode7 import org.krazykat.ontapi.models.naElement.BaseVersion case class Version(version: String, isClustered: Boolean) extends BaseVersion(version, isClustered)
ehudkaldor/scala-ontapi
src/main/scala/org/krazykat/ontapi/models/naElement/mode7/Version.scala
Scala
gpl-2.0
209
package akka.persistence.kafka import akka.actor.ActorRef import akka.persistence.kafka.BrokerWatcher.BrokersUpdated import akka.persistence.kafka.MetadataConsumer.Broker import kafka.utils.{ZkUtils, ZKStringSerializer, ZKConfig} import org.I0Itec.zkclient.ZkClient object BrokerWatcher { case class BrokersUpdated...
crispywalrus/akka-persistence-kafka
src/main/scala/akka/persistence/kafka/BrokerWatcher.scala
Scala
apache-2.0
995
/** * The MIT License (MIT) * <p/> * Copyright (c) 2016 ScalateKids * <p/> * 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 ...
ScalateKids/Actorbase-Server
src/main/scala/com/actorbase/actorsystem/actors/storekeeper/Storekeeper.scala
Scala
mit
7,654
package com.politach import akka.actor._ import akka.stream.FlowMaterializer import akka.http.Http import akka.http.server._ import akka.http.server.Directives._ import akka.http.model._ import com.typesafe.config.Config class HttpApi(config: Config)(implicit system: ActorSystem, materializer: FlowMaterializer) { i...
Politach/web-app
src/main/scala/com/politach/HttpApi.scala
Scala
mit
819
package dbpedia.dataparsers.util.wikiparser /** * Represents a page. * * @param title The title of this page * @param id The page ID * @param revision The revision of this page * @param timestamp The timestamp of the revision, in milliseconds since 1970-01-01 00:00:00 UTC * @param contributorID The ID of the l...
FnOio/dbpedia-parsing-functions-scala
src/main/scala/dbpedia/dataparsers/util/wikiparser/PageNode.scala
Scala
gpl-2.0
977
/* * 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/ShouldEqualEqualitySpec.scala
Scala
apache-2.0
25,632
// Copyright 2016 Jim Pivarski // // 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...
diana-hep/rootconverter
scaroot-reader/src/test/scala/test.scala
Scala
apache-2.0
27,796
package org.apache.spark.ml.bundle.ops.feature import ml.combust.bundle.BundleContext import ml.combust.bundle.dsl._ import ml.combust.bundle.op.OpModel import org.apache.spark.ml.attribute.{Attribute, BinaryAttribute, NominalAttribute, NumericAttribute} import org.apache.spark.ml.bundle._ import org.apache.spark.ml.f...
combust-ml/mleap
mleap-spark/src/main/scala/org/apache/spark/ml/bundle/ops/feature/OneHotEncoderOp.scala
Scala
apache-2.0
3,061
/* * Copyright 2001-2015 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/tools/scalasbt/FaulthyBeforeAndAfterAllSuite.scala
Scala
apache-2.0
849
package com.lyrx.markdown import java.io.File import com.lyrx.text.StringGenerator._ import com.lyrx.text._; /** * Created by alex on 17.10.16. */ trait MarkdownGenerator { //implicit def toBold() implicit class StringToMarkdown(aString: String) { def code()(implicit cb: StringCollector) = cb.coll...
lyrx/lyrxgenerator
src/main/scala/com/lyrx/markdown/MarkdownGenerator.scala
Scala
gpl-3.0
2,859
package com.github.andr83.parsek.pipe import com.github.andr83.parsek._ import org.scalatest.{FlatSpec, Inside, Matchers} /** * @author andr83 */ class ParseJsonSpec extends FlatSpec with Matchers with Inside { implicit val context = new PipeContext() "Json string" should "be parsed to PMap value" in { val...
andr83/parsek
core/src/test/scala/com/github/andr83/parsek/pipe/ParseJsonSpec.scala
Scala
mit
969
package spire package math import org.scalatest.FunSuite import spire.implicits.{eqOps => _, _} import java.math.MathContext class ComplexTest extends FunSuite { test("create Complex[Double]") { val (real, imag) = (3.0, 44.0) val c = Complex(real, imag) assert(c.real === real) assert(c.imag === imag...
adampingel/spire
tests/src/test/scala/spire/math/ComplexTest.scala
Scala
mit
4,797
package org.maikalal.seccam.videos import com.typesafe.config.Config import com.typesafe.config.ConfigFactory import scala.collection.JavaConversions._ case class SecCamVideoUploadSettings(conf:Config) { conf.checkValid(ConfigFactory.load("ref-video-upload.config"),"dailymotion" ) val dailymotionApiKey = co...
pratimsc/scalaRestInteraction
src/main/scala/org/maikalal/seccam/videos/SecCamVideoUploadSettings.scala
Scala
gpl-3.0
1,793
/** * (c) Copyright 2012 WibiData, Inc. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * 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...
alexandre-normand/kiji-schema-shell
src/test/scala/org/kiji/schema/shell/TestMockKijiSystem.scala
Scala
apache-2.0
7,833