code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
/* * Copyright 2015 Dennis Vriend * * 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...
dnvriend/activiti-test
helloworld/src/test/scala/com/github/dnvriend/FollowUpTest.scala
Scala
apache-2.0
2,696
/* * Copyright 2017 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...
saurabharora80/hmrc-email-renderer
test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiDeveloperPasswordResetSpec.scala
Scala
apache-2.0
3,265
package com.arcusys.learn.liferay.update.version300 import java.sql.Connection import com.arcusys.learn.liferay.update.version300.lesson.{LessonGradeTableComponent, LessonTableComponent} import com.arcusys.valamis.lesson.model.LessonType import com.arcusys.valamis.persistence.common.{SlickDBInfo, SlickProfile} import...
igor-borisov/valamis
learn-portlet/src/test/scala/com/arcusys/learn/liferay/update/version300/UpdateLessonGradeTest.scala
Scala
gpl-3.0
2,490
import sbt._ import Keys._ import Build.data object Marc4jBuild extends Build { lazy val marc4jCore = Project( id = "marc4j-core", base = file("core"), settings = commonSettings ++ Seq( moduleName := "marc4j", libraryDependencies <++= scalaVersion { sv => Seq( "com.ibm.icu" % "icu4j" ...
travisbrown/marc4j-old
project/Build.scala
Scala
lgpl-2.1
899
/* Copyright 2009-2021 EPFL, Lausanne */ package stainless package termination import scala.collection.mutable.{Map => MutableMap, Set => MutableSet, ListBuffer} import trees._ import inox._ /** A context-insensitive, field-sensitive control-flow analysis that computes * the closures that are passed to call backs...
epfl-lara/stainless
core/src/main/scala/stainless/termination/ControlFlowAnalysis.scala
Scala
apache-2.0
18,517
/* * Copyright 2001-2014 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
scalatest/scalatest
jvm/scalactic-test/src/test/scala/org/scalactic/anyvals/PosZFiniteFloatSpec.scala
Scala
apache-2.0
15,072
package com.mesosphere.cosmos.model.thirdparty.marathon case class MarathonAppContainer(`type`: String, docker: Option[MarathonAppContainerDocker])
movicha/cosmos
cosmos-model/src/main/scala/com/mesosphere/cosmos/model/thirdparty/marathon/MarathonAppContainer.scala
Scala
apache-2.0
149
/* * Copyright 2017 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...
liquidarmour/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/AC213D.scala
Scala
apache-2.0
1,138
// using com.lihaoyi::os-lib:0.7.8 object UpdateBrewFormula { def gitUsername = "Github Actions" def gitEmail = "actions@github.com" val workDir = os.pwd / "target" val templateFile = os.pwd / ".github" / "scripts" / "coursier.rb.template" def main(args: Array[String]): Unit = { val dryRun = args ...
coursier/coursier
.github/scripts/UpdateBrewFormula.scala
Scala
apache-2.0
3,734
/* * 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/input/WholeTextFileInputFormat.scala
Scala
apache-2.0
2,646
package api import models.{AggregationRule, Article, Source, RoutingRule} import anorm.SqlParser._ object DbApi { import java.sql.Connection import anorm._ def fetchRoutingRule(implicit conn: Connection): List[RoutingRule] = { SQL("Select * from RULE").as(int("ID") ~ str("HOST") ~ str("URI") ~ str("CONTE...
jlcanela/fastcms
app/api/DbApi.scala
Scala
apache-2.0
1,204
package common import scalaz.{Validation, Failure, Success} case class Error(msg: String, exception: String = "") { override def toString = "%s - %s".format(msg, exception) } object Error { // returns None if an exception is thrown, Some[A] otherwise def unsafeOption[A](op: => A): Option[A] = try { Some(...
jurajzachar/obyvacka
app/common/Error.scala
Scala
artistic-2.0
543
package mesosphere.marathon package raml import mesosphere.UnitTest import mesosphere.marathon.test.SettableClock import mesosphere.marathon.core.launcher.OfferMatchResult import mesosphere.marathon.core.launchqueue.LaunchStats.QueuedInstanceInfoWithStatistics import mesosphere.marathon.state.{AppDefinition, PathId, T...
gsantovena/marathon
src/test/scala/mesosphere/marathon/raml/QueueInfoConversionTest.scala
Scala
apache-2.0
5,292
/* * 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/computations/CPQ8.scala
Scala
apache-2.0
1,694
package org.jetbrains.plugins.scala package lang package psi package impl package expr import com.intellij.lang.ASTNode import org.jetbrains.plugins.scala.ScalaBundle import org.jetbrains.plugins.scala.lang.psi.api.expr._ import org.jetbrains.plugins.scala.lang.psi.types.result._ import org.jetbrains.plugins.scala.lan...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/expr/ScParenthesisedExprImpl.scala
Scala
apache-2.0
999
package algorithms.implementation /** * Created by yujieshui on 2017/5/23. */ object OrganizingContainersOfBalls { type Contain = Vector[Long] type Matrix = Seq[Contain] def solution(matrix: Matrix): Boolean = { matrix.map(_.sum).sorted == matrix.transpose.map(_.sum).sorted } def readListInt() = io...
1178615156/hackerrank
src/main/scala/algorithms/implementation/OrganizingContainersOfBalls.scala
Scala
apache-2.0
763
package spire package algebra /** A left module is a generalization of a vector space over a field, where * the scalars are the elements of a ring (not necessarily commutative). * * A left module has left multiplication by scalars. Let V be an abelian group * (with additive notation) and R the scalar ring, we ...
non/spire
core/src/main/scala/spire/algebra/Module.scala
Scala
mit
2,618
package com.thangiee.lolhangouts.data.usecases import com.thangiee.lolchat.LoLChat import com.thangiee.lolchat.error.NoSession import com.thangiee.lolhangouts.data.Cached import com.thangiee.lolhangouts.data.datasources.entities.SummSearchHistEntity import com.thangiee.lolhangouts.data.datasources.entities.mappers.Sum...
Thangiee/LoL-Hangouts
src/com/thangiee/lolhangouts/data/usecases/ManageSearchHistUseCase.scala
Scala
apache-2.0
1,480
/* * Copyright 2016 rdbc contributors * * 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...
rdbc-io/rdbc
rdbc-api-scala/src/main/scala/io/rdbc/sapi/exceptions/NoKeysReturnedException.scala
Scala
apache-2.0
757
package org.ai4fm.proofprocess.project.core import org.eclipse.emf.cdo.transaction.CDOTransaction import org.ai4fm.proofprocess.project.core.PProcessDataManager.PProcessData import scala.collection.mutable; import org.eclipse.core.resources.IProject /** * Provides a mutable cache for transactions of PP data roots fo...
andriusvelykis/proofprocess
org.ai4fm.proofprocess.project.core/src/org/ai4fm/proofprocess/project/core/PProcessDataStore.scala
Scala
epl-1.0
1,117
package com.wavesplatform.lang.v1.evaluator.ctx import cats.Monad import cats.syntax.applicative._ import cats.syntax.either._ import com.wavesplatform.lang.v1.compiler.Terms.CaseObj import com.wavesplatform.lang.v1.compiler.Types.UNIT package object impl { def notImplemented[F[_] : Monad, R](funcName: String, args...
wavesplatform/Waves
lang/shared/src/main/scala/com/wavesplatform/lang/v1/evaluator/ctx/impl/package.scala
Scala
mit
670
/* ************************************************************************************* * Copyright 2011 Normation SAS ************************************************************************************* * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
jooooooon/rudder
rudder-core/src/main/scala/com/normation/rudder/services/queries/DynGroupUpdaterService.scala
Scala
agpl-3.0
4,668
package lib import play.api.Logger import play.api.data.validation.ValidationError import play.api.http.HeaderNames import play.api.libs.json._ import play.api.mvc.{Result, _} import scala.language.postfixOps /** * HTTP responses wrapper. Mostly done for logging and nesting results in ResponseContainer */ objec...
lrimkus/microservice-example
app/lib/ResponseHelper.scala
Scala
mit
6,339
package com.github.vicpara.eda import com.github.vicpara.eda.stats.{ SequenceStats, PercentileStats, PercentileStatsWithFilterLevel, PrettyPercentileStats } import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import org.specs2.matcher.ScalaCheckMatchers import org.specs2.mutable.Specification import ...
vicpara/exploratory-data-analysis
src/test/scala/com/github/vicpara/eda/StatsSpec.scala
Scala
mit
8,721
package org.infinispan.spark.suites import org.infinispan.client.hotrod.Search import org.infinispan.spark.domain._ import org.infinispan.spark.test._ import org.scalatest.{DoNotDiscover, FunSuite, Matchers} @DoNotDiscover class FilterByQueryProtoAnnotationSuite extends FunSuite with RunnersCache with Spark with Mul...
galderz/infinispan-spark
src/test/scala/org/infinispan/spark/suites/FilterByQueryProtoAnnotationSuite.scala
Scala
apache-2.0
1,990
package uk.gov.dvla.vehicles.presentation.common.pages import org.openqa.selenium.{WebDriver} import org.scalatest.selenium.WebBrowser.Element import org.scalatest.selenium.WebBrowser.find import org.scalatest.selenium.WebBrowser.id import uk.gov.dvla.vehicles.presentation.common.helpers.webbrowser.{Page, WebDriverFac...
dvla/vehicles-presentation-common
common-test/test/uk/gov/dvla/vehicles/presentation/common/pages/AddressPickerPage.scala
Scala
mit
935
package com.twitter.finagle.stats /** * Interface used via the LoadService mechanism to obtain a stats * registry used in MetricsRegistry. This avoids MetricsHandler, * (which uses a stats registry), in twitter-server, having a * dependency on finagle-stats. */ private[twitter] trait StatsRegistry { def getStat...
yancl/finagle-6.22.0
finagle-core/src/main/scala/com/twitter/finagle/stats/StatsRegistry.scala
Scala
apache-2.0
620
package is.hail.compatibility import is.hail.HailContext import is.hail.expr.JSONAnnotationImpex import is.hail.expr.ir.ExecuteContext import is.hail.types.encoded._ import is.hail.types.virtual._ import is.hail.io._ import is.hail.io.fs.FS import is.hail.rvd.{AbstractRVDSpec, IndexSpec2, IndexedRVDSpec2, RVD, RVDPart...
danking/hail
hail/src/main/scala/is/hail/compatibility/LegacyRVDSpecs.scala
Scala
mit
5,166
import scala.tools.partest.ReplTest import scala.tools.util.Javap object Test extends ReplTest { // ugh, windows def expectedOutput = """Type in expressions to have them evaluated. Type :help for more information. scala> scala> object Bippy { class Dingus ; object Bop } defined module Bippy scala> :javap Bi...
felixmulder/scala
test/disabled/run/t4532.scala
Scala
bsd-3-clause
939
/* * 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 ...
hvanhovell/spark
core/src/test/scala/org/apache/spark/util/KeyLockSuite.scala
Scala
apache-2.0
3,995
package com.ecfront.fs.operation import com.jcraft.jsch.JSch import org.apache.commons.net.ftp.FTPReply import scala.collection.mutable.ArrayBuffer class SFTPOperation(host: String, port: Int, userName: String, password: String) extends FSOperation { private val jsch = new JSch() private val session = jsch.getS...
gudaoxuri/ez-fs
src/main/scala/com/ecfront/fs/operation/SFTPOperation.scala
Scala
apache-2.0
1,851
package at.logic.gapt.proofs.reduction import at.logic.gapt.expr._ import at.logic.gapt.formats.babel.BabelSignature import at.logic.gapt.proofs._ import at.logic.gapt.proofs.expansion.{ ETAtom, ETWeakQuantifier, ExpansionProof } import at.logic.gapt.proofs.resolution.{ Input, MguResolution, eliminateSplitting } impor...
gebner/gapt
tests/src/test/scala/at/logic/gapt/proofs/reduction/ErasureReductionTest.scala
Scala
gpl-3.0
4,170
/* * Copyright 2015 Webtrends (http://www.webtrends.com) * * See the LICENCE.txt 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. * Yo...
Webtrends/wookiee-socko
src/main/scala/com/webtrends/harness/component/socko/client/CoreSockoClient.scala
Scala
apache-2.0
5,133
/* * 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 ...
pgandhi999/spark
core/src/test/scala/org/apache/spark/internal/config/ConfigEntrySuite.scala
Scala
apache-2.0
13,530
package dtos.report import models.qlkh.Task import play.api.libs.json.Json /** * The Class TaskDto. * * @author Nguyen Duc Dung * @since 4/15/14 2:44 PM * */ case class TaskDto( id: Long, name: String, code: String, donVi: String, ...
SunriseSoftVN/sunerp
app/dtos/report/TaskDto.scala
Scala
apache-2.0
585
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.maven import java.net.URLClassLoader import javax.inject.{ Inject, Singleton } import org.eclipse.aether.artifact.Artifact /** * Implements sharing of Scala classloaders, to save on memory */ @Singleton class ...
rstento/lagom
dev/maven-plugin/src/main/scala/com/lightbend/lagom/maven/ScalaClassLoaderManager.scala
Scala
apache-2.0
2,286
package object functions { def map[A, B](list: List[A])(fn: A => B): List[B] = list match { case head :: tail => fn(head) :: map(tail)(fn) case _ => Nil } def filter[A](list: List[A])(fn: A => Boolean): List[A] = list match { case head :: tail => val rest = filter(tail)(fn) if (fn(head...
helton-hcs/scala-sandbox
Sandbox/src/main/scala/functions/package.scala
Scala
mit
685
/* * Copyright 2014–2017 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...
drostron/quasar
mongodb/src/main/scala/quasar/physical/mongodb/expression/ExprOpOps.scala
Scala
apache-2.0
2,525
package io.citrine.lolo.trees.impurity /** * Calculate the weighted Gini Impurity: weight * (1 - \\sum_j f_j^2), where f_j is the frequency of the jth label * * @param totalCategoryWeights the total weight of each label * @param totalSquareSum the sum of the squares of the weights * @param totalWeight ...
CitrineInformatics/lolo
src/main/scala/io/citrine/lolo/trees/impurity/GiniCalculator.scala
Scala
apache-2.0
2,945
package scrupal.html import scalatags.generic.Util /** Polymer Paper Elements * Paper elements are a set of visual elements that implement Google's Material Design. */ trait PolymerPaperTags[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT] { /** Material design status message for elements *...
scrupal/scrupal-core
scrupal-shared/src/main/scala/scrupal/html/PolymerPaperTags.scala
Scala
apache-2.0
3,355
package com.esri case class OnlineMu(var n: Int = 0, var mx: Double = 0.0, var my: Double = 0.0) { def add(x: Double, y: Double) = { n += 1 val dx = x - mx mx += dx / n val dy = y - my my += dy / n this } def deviations(xy: Iterable[(Double, Double)]) = { xy.foldLeft((Array.empty...
mraad/spark-std-dist
src/main/scala/com/esri/OnlineMu.scala
Scala
apache-2.0
537
// Copyright 2017 EPFL DATA Lab (data.epfl.ch) // // 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...
epfldata/squid
core/src/main/scala/squid/utils/Tuple2List.scala
Scala
apache-2.0
1,734
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
aosagie/spark
sql/core/v1.2.1/src/test/scala/org/apache/spark/sql/execution/datasources/orc/OrcFilterSuite.scala
Scala
apache-2.0
20,343
/*** * Copyright 2014 Rackspace US, 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 applica...
wdschei/api-checker
util/src/main/scala/com/rackspace/com/papi/compenents/checker/util/URLResolver.scala
Scala
apache-2.0
1,246
package org.scalaide.core package sbtbuilder import org.junit.Test import org.eclipse.core.runtime.NullProgressMonitor import org.eclipse.core.resources.IncrementalProjectBuilder import org.eclipse.jdt.core.IJavaModelMarker import org.eclipse.jdt.core.JavaCore import org.eclipse.jdt.core.IProblemRequestor import org.e...
Kwestor/scala-ide
org.scala-ide.sdt.core.tests/src/org/scalaide/core/sbtbuilder/ScalaCompilerClasspathTest.scala
Scala
bsd-3-clause
2,680
package com.github.uchibori3.mfcloud.invoice.service import akka.{ Done, NotUsed } import akka.actor.ActorSystem import akka.http.javadsl.model.headers.RawHeader import akka.http.scaladsl.model.ContentTypes.`application/json` import akka.http.scaladsl.model._ import akka.http.scaladsl.model.headers.OAuth2BearerToken i...
Uchibori3/mfcloud-invoice-scala
src/main/scala/com/github/uchibori3/mfcloud/invoice/service/Bills.scala
Scala
apache-2.0
3,590
/* * MUSIT is a museum database to archive natural and cultural history data. * Copyright (C) 2016 MUSIT Norway, part of www.uio.no (University of Oslo) * * 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 Softw...
kpmeen/musit
service_actor/app/services/UserService.scala
Scala
gpl-2.0
1,338
package viewModel import com.thetestpeople.trt.model._ import com.github.nscala_time.time.Imports._ import org.joda.time.LocalDate import com.thetestpeople.trt.utils.DateUtils case class WeatherInfo(weather: Double) { def iconPath: String = WeatherIcons.weatherIcon(weather) def passRate: String = "Pass rate: " ...
thetestpeople/trt
app/viewModel/TestView.scala
Scala
mit
2,900
/* * 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 ...
aokolnychyi/spark
sql/core/src/test/scala/org/apache/spark/sql/streaming/EventTimeWatermarkSuite.scala
Scala
apache-2.0
13,973
package com.example import scala.util.Random import akka.actor.Actor import spray.routing._ import spray.http._ import spray.http.DateTime import MediaTypes._ import spray.json._ import DefaultJsonProtocol._ import spray.httpx.SprayJsonSupport._ import com.example.model.Ticket import java.util.UUID import scala.collec...
enigma11/spray-can-server-heroku-sample
src/main/scala/com/example/MyService.scala
Scala
unlicense
2,096
/* * Copyright 2013-2016 the original author or 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 ap...
amuramatsu/Laika
core/src/main/scala/laika/parse/rst/ext/StandardSpanDirectives.scala
Scala
apache-2.0
4,573
package rocks.muki import rocks.muki.graphql.GraphQLPlugin.autoImport.graphqlSchemas import rocks.muki.graphql.schema.{GraphQLSchema, GraphQLSchemas} import sbt._ import sbt.complete.DefaultParsers._ import sbt.complete.{FixedSetExamples, Parser} package object graphql { /** * Throw an exception without a stac...
muuki88/sbt-graphql
src/main/scala/rocks/muki/graphql/package.scala
Scala
apache-2.0
2,259
package metal package generic import scala.reflect.ClassTag import spire.syntax.cfor._ /* We do not extract a common `Seq` base type, because [[Buffer]] would be its only subtype. * Let's make a `Seq` base trait when we have more input on its design. */ trait Buffer[@specialized V] extends Collection with NElement...
denisrosset/ptrcoll
library/src/main/scala/metal/generic/Buffer.scala
Scala
mit
4,824
/* * 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
frontend/src/main/scala/quasar/frontend/logicalplan/JoinDir.scala
Scala
apache-2.0
1,226
package beam.sim import java.util.concurrent.TimeUnit import akka.actor.Status.Success import akka.actor.{Actor, ActorLogging, ActorRef, ActorSystem, Cancellable, DeadLetter, Props, Terminated} import akka.pattern.ask import akka.util.Timeout import beam.agentsim.agents.BeamAgent.Finish import beam.agentsim.agents.ri...
colinsheppard/beam
src/main/scala/beam/sim/BeamMobsim.scala
Scala
gpl-3.0
12,280
/* * Copyright 2007-2011 WorldWide Conferencing, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
lzpfmh/framework-2
web/webkit/src/main/scala/net/liftweb/http/js/JsCommands.scala
Scala
apache-2.0
29,323
package com.raquo.dombuilder.generic.modifiers import com.raquo.domtypes.generic.Modifier class ModifierSeq[N]( val modifiers: Iterable[Modifier[N]] ) extends Modifier[N] { override def apply(node: N): Unit = { modifiers.foreach(_(node)) } }
raquo/scala-dom-builder
shared/src/main/scala/com/raquo/dombuilder/generic/modifiers/ModifierSeq.scala
Scala
mit
255
/* * Copyright (C) 2013 Alcatel-Lucent. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * Licensed 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 cop...
molecule-labs/molecule
molecule-core/src/main/scala/molecule/process/Process.scala
Scala
apache-2.0
7,442
/* * -╥⌐⌐⌐⌐ -⌐⌐⌐⌐- * ≡╢░░░░⌐\\░░░φ ╓╝░░░░⌐░░░░╪╕ * ╣╬░░` `░░░╢┘ φ▒╣╬╝╜ ░░╢╣Q * ║╣╬░⌐ ` ╤▒▒▒Å` ║╢╬╣ * ╚╣╬░⌐ ╔▒▒▒▒`«╕ ╢╢╣▒ * ╫╬░░╖ .░ ╙╨╨ ╣╣╬░φ ╓φ░╢╢Å * ╙╢░░░░⌐"░░░╜ ╙Å░░░░⌐░░░░╝` * ``˚¬ ⌐ ˚˚⌐´ * * ...
Flipkart/connekt
commons/src/main/scala/com/flipkart/connekt/commons/services/SchedulerService.scala
Scala
mit
2,444
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not ed...
cliffano/swaggy-jenkins
clients/scala-sttp/generated/src/main/scala/org/openapitools/client/model/ListView.scala
Scala
mit
589
object Foo { enum MyEnum { case Red case Blue(msg: String) } export MyEnum._ } object Bar { type Blue = Foo.Blue } import Foo._ def foo(a: MyEnum): Seq[Bar.Blue] = a match { case Red => Seq.empty case m: Foo.Blue => Seq(m) }
som-snytt/dotty
tests/pos-special/fatal-warnings/i7219.scala
Scala
apache-2.0
248
package com.arcusys.valamis.lesson.generator import java.util.UUID import com.arcusys.valamis.file.service.FileService import com.arcusys.valamis.lesson.generator.scorm.ScormPackageGenerator import com.arcusys.valamis.lesson.generator.tincan.TinCanPackageGeneratorProperties import com.arcusys.valamis.lesson.generator....
ViLPy/Valamis
valamis-lesson-generator/src/main/scala/com/arcusys/valamis/lesson/generator/QuizPublishManager.scala
Scala
lgpl-3.0
3,320
package unfiltered.request import org.specs2.mutable._ class MimeSpec extends Specification { "Mime" should { "match strings with known extensions" in { ("test.json" match { case Mime(mime) => Some(mime) case _ => None }) must beSome("application/json") } "match strings with ...
omarkilani/unfiltered
library/src/test/scala/MimeSpec.scala
Scala
mit
817
package io.iohk.ethereum.network.p2p.messages import akka.util.ByteString import io.iohk.ethereum.domain._ import io.iohk.ethereum.mpt.{MptNode, MptTraversals} import io.iohk.ethereum.network.p2p.{Message, MessageSerializableImplicit} import io.iohk.ethereum.rlp.RLPImplicitConversions._ import io.iohk.ethereum.rlp.RLP...
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/network/p2p/messages/PV63.scala
Scala
mit
7,963
/* * Copyright (c) 2014 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org...
artsy/snowplow
3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/CampaignAttributionEnrichment.scala
Scala
apache-2.0
5,525
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014 Adobe Systems Incorporated. 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 ...
alexland/spark-parquet-thrift-example
src/main/scala/SparkParquetThriftApp.scala
Scala
apache-2.0
3,257
/* * 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
niflheim/src/main/scala/quasar/niflheim/NIHDBActor.scala
Scala
apache-2.0
16,632
package examples.rules //https://github.com/davegurnell/functional-data-validation object Validation { sealed trait Result[+A] { def ap[B](fn: Result[A => B]): Result[B] = (this, fn) match { case (Pass(a), Pass(b)) => Pass(b(a)) case (Fail(a), Pass(b)) => Fail(a) case (Pass(a), Fai...
haghard/shapeless-playbook
src/main/scala/examples/rules/Validation.scala
Scala
apache-2.0
2,631
package com.enkidu.lignum.parsers.ast.statement.parameter import com.enkidu.lignum.parsers.ast.expression.types.Type import com.enkidu.lignum.parsers.ast.expression.types.annotations.Annotation case class VariableArityParameter(annotations: Seq[Annotation], isFinal: Boolean, `type`: ...
marek1840/java-parser
src/main/scala/com/enkidu/lignum/parsers/ast/statement/parameter/VariableArityParameter.scala
Scala
mit
499
/* * Copyright 2011-2021 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
src/docs/content/reference/current/extensions/functional_specs/code/GatlingFunSpecSample.scala
Scala
apache-2.0
1,202
/* * 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 ...
andrewor14/iolap
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/SortMergeJoin.scala
Scala
apache-2.0
6,227
/* * 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 ...
witgo/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetIOSuite.scala
Scala
apache-2.0
32,139
package reactivemongo.api.commands import reactivemongo.api.SerializationPack trait DistinctCommand[P <: SerializationPack] extends ImplicitCommandHelpers[P] { case class Distinct( //{ distinct: <collection>, key: <key>, query: <query> } keyString: String, query: Option[pack.Document]) extends Collectio...
viktortnk/ReactiveMongo
driver/src/main/scala/api/commands/distinct.scala
Scala
apache-2.0
457
package com.karasiq.bootstrap.table import scala.language.postfixOps import rx.{Rx, Var} import com.karasiq.bootstrap.context.{ClassModifiers, RenderingContext} import com.karasiq.bootstrap.utils.Utils trait Tables extends TableRows with TableStyles { self: RenderingContext with ClassModifiers with Utils ⇒ import...
Karasiq/scalajs-bootstrap
library/shared/src/main/scala/com/karasiq/bootstrap/table/Tables.scala
Scala
mit
751
/* * Copyright (c) 2013-2015 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 which * accompanies this distribution and is available at * http://www.opensource.org/licenses/apache2.0.php. ...
vpipkt/geomesa
geomesa-convert/geomesa-convert-xml/src/main/scala/org/locationtech/geomesa/convert/xml/XmlFunctionFactory.scala
Scala
apache-2.0
1,757
/** * Copyright (c) 2013 Saddle Development 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 ...
jyt109/saddle
saddle-core/src/main/scala/org/saddle/scalar/ScalarTagDouble.scala
Scala
apache-2.0
2,274
/* * 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 ...
srowen/spark
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
Scala
apache-2.0
7,947
package io.buoyant.router.http import com.twitter.finagle.buoyant.Dst import com.twitter.finagle.http.{Request, Version} import com.twitter.finagle.{Dtab, Path} import com.twitter.util.Future import io.buoyant.router.RoutingFactory import io.buoyant.router.RoutingFactory.{IdentifiedRequest, RequestIdentification, Unid...
hhtpcd/linkerd
router/http/src/main/scala/io/buoyant/router/http/MethodAndHostIdentifier.scala
Scala
apache-2.0
1,580
package lara.epfl.scalasca.rules import lara.epfl.scalasca.core._ import scala.tools.nsc._ import scala.collection.mutable.LinkedList case class UnfreedResources(unfreedResources: Set[ControlFlowGraphNode]) extends RuleResult { override def warning = Warning("MEM_MISSING_RESOURCE_CLOSING", "Some resources seem n...
jean-andre-gauthier/scalasca
src/main/scala/lara/epfl/scalasca/rules/UnfreedResourcesControlFlowAnalysis.scala
Scala
bsd-3-clause
4,480
// Copyright: 2010 - 2018 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.server import java.net._ import scala.concurrent.Await import scala.concurrent.duration._ import scala.util.Try import org.ensime.AkkaBackCompat import org.ensime.fixtur...
yyadavalli/ensime-server
server/src/it/scala/org/ensime/server/ServerStartupSpec.scala
Scala
gpl-3.0
3,619
/* * Copyright 2013 - 2017 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...
websudos/morpheus
morpheus-dsl/src/main/scala/com/outworkers/morpheus/sql/DefaultSQLImplicits.scala
Scala
bsd-2-clause
6,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 may ...
chenc10/Spark-PAF
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala
Scala
apache-2.0
37,846
package com.twitter.finagle.service import org.junit.runner.RunWith import org.mockito.Mockito.{verify, when, times} import org.mockito.Matchers._ import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import org.scalatest.mock.MockitoSugar import com.twitter.finagle.{WriteException, Service, Status} imp...
mkhq/finagle
finagle-core/src/test/scala/com/twitter/finagle/service/CloseOnReleaseServiceTest.scala
Scala
apache-2.0
1,342
package net.atos.kjc.fruitshop.checkoutsystem import org.scalatest.{FreeSpec, Matchers} class CheckoutSpec extends FreeSpec with Matchers { val checkoutName = "Eco Fruit shop checkout system" "Checkout system should" - { "Present right name" - { Checkout.name shouldBe checkoutName } } }
kjcaputa/hmrc-test
src/test/scala/net/atos/kjc/fruitshop/checkoutsystem/Checkout.scala
Scala
apache-2.0
311
package org.refptr.iscala trait Compatibility trait InterpreterCompatibility extends Compatibility { self: Interpreter => }
nkhuyu/IScala
src/main/scala_2.11/Compatibility.scala
Scala
mit
125
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundatio...
HuangLS/neo4j
community/cypher/frontend-2.3/src/test/scala/org/neo4j/cypher/internal/frontend/v2_3/ast/MultiplyTest.scala
Scala
apache-2.0
1,843
/* * 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...
pmadrigal/Crossdata
server/src/main/scala/com/stratio/crossdata/server/actors/JobActor.scala
Scala
apache-2.0
5,627
package com.github.mijicd.waes.domain import com.github.mijicd.waes.TestSpec import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class DecoderSpec extends TestSpec with Decoder { "Decoder" should "decode base64 content" in { val content ="dGVzdA==" decode(co...
mijicd/spray-json-diff
src/test/scala/com/github/mijicd/waes/domain/DecoderSpec.scala
Scala
mit
539
package org.jetbrains.plugins.scala package lang package psi package api package expr import org.jetbrains.plugins.scala.lang.psi.api.statements.params._ import com.intellij.psi.PsiElement import types.ScType import lexer.ScalaTokenTypes import types.nonvalue.Parameter /** * @author Alexander Podkhalyuzin * Date: 07...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ScArgumentExprList.scala
Scala
apache-2.0
2,515
/* * The MIT License * * Copyright 2015 misakura. * * 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 rights * to use, copy, modify...
t-kgd/library-water
water-scala-core/src/main/scala/jp/gr/java_conf/kgd/library/water/scala/core/value/SimplePoint4.scala
Scala
mit
2,446
/* * Copyright © 2015 Cask Data, 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...
caskdata/cdap
cdap-examples/LogAnalysis/src/main/scala/co/cask/cdap/examples/loganalysis/ResponseCounterProgram.scala
Scala
apache-2.0
2,235
package se.ramn.bottfarmen.runner.screen import com.badlogic.gdx.Gdx import com.badlogic.gdx.Game import com.badlogic.gdx.Screen import com.badlogic.gdx.graphics.GL20 import com.badlogic.gdx.graphics.OrthographicCamera import se.ramn.bottfarmen.runner.BottfarmenGuiRunner class MainMenuScreen(val game: BottfarmenGui...
ramn/bottfarmen
common/src/main/scala/runner/screen/MainMenuScreen.scala
Scala
gpl-3.0
927
package services.analysis import models.analysis.events.AnalysisResults.{DatingResult, GenericResult} import models.analysis.events.{Analysis, AnalysisCollection} import models.analysis.events.EventCategories.Genetic import no.uio.musit.models.{ActorId, EventId} import no.uio.musit.models.MuseumCollections.Archeology ...
kpmeen/musit
service_management/test/services/analysis/AnalysisServiceSpec.scala
Scala
gpl-2.0
8,648
package extracells.integration.opencomputers import appeng.api.AEApi import appeng.api.config.Actionable import appeng.api.implementations.tiles.IWirelessAccessPoint import appeng.api.networking.security.MachineSource import appeng.api.networking.storage.IStorageGrid import appeng.api.networking.{IGrid, IGridHost, IGr...
ieatbedrock/Bedrocks-AE2-addons
src/main/scala/extracells/integration/opencomputers/UpgradeAE.scala
Scala
mit
13,192
package spotlight.analysis import scala.concurrent.{ ExecutionContext, Future } import scala.util.Try import akka.actor.{ Actor, ActorRef, Props } import akka.agent.Agent import akka.event.LoggingReceive import cats.data.Kleisli import cats.instances.future._ import cats.instances.list._ import cats.syntax.traverse._...
dmrolfs/lineup
core/src/main/scala/spotlight/analysis/DetectionAlgorithmRouter.scala
Scala
mit
10,264
package org.powlab.jeye.decode.pattern.stream import scala.collection.mutable.ArrayBuffer import org.powlab.jeye.decode.graph.OpcodeDetails._ import org.powlab.jeye.decode.graph.GroupOpcodeNode import org.powlab.jeye.decode.graph.OpcodeNode import org.powlab.jeye.decode.graph.OpcodeTree import org.powlab.jeye.decode.p...
powlab/jeye
src/main/scala/org/powlab/jeye/decode/pattern/stream/IncLoadPreStreamPattern.scala
Scala
apache-2.0
1,277
package com.signalcollect import com.signalcollect.interfaces.AggregationOperation import scala.collection.immutable.SortedMap /** Container for the deliver and collect duration measurements */ case class ActivityTime(signal: Int, deliver: Int, collect: Int) extends Ordered[ActivityTime] { override def toString: St...
danihegglin/DynDCO
src/main/scala/com/signalcollect/Timeable.scala
Scala
apache-2.0
2,720
/* Copyright (C) 2008-2014 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
digitalreasoning/factorie-scala-210
src/main/scala/cc/factorie/tutorial/SimpleLDA.scala
Scala
apache-2.0
2,991
/** * 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"); yo...
guozhangwang/kafka
core/src/test/scala/unit/kafka/log/LogCleanerManagerTest.scala
Scala
apache-2.0
39,217
/* * Copyright (c) 2015-2022 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.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.ap...
opencypher/openCypher
tools/tck-api/src/test/scala/org/opencypher/tools/tck/api/events/TCKEventsTest.scala
Scala
apache-2.0
4,095