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 ...
GJL/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/rules/logical/FlinkLogicalRankRuleForConstantRangeTest.scala
Scala
apache-2.0
6,052
/* * 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 ...
nickpan47/samza
samza-core/src/test/scala/org/apache/samza/util/TestUtil.scala
Scala
apache-2.0
3,949
package teksol.mybank.domain.events import teksol.domain.FamilyId import teksol.infrastructure.Event import teksol.mybank.domain.models.AccountId case class AccountCreated(familyId: FamilyId, accountId: AccountId) extends Event { override def toJson: String = s"""{"family_id":${familyId.toJson},"account_id":${acc...
francois/family
src/main/scala/teksol/mybank/domain/events/AccountCreated.scala
Scala
mit
341
/* * Copyright 2021 Spotify AB. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
spotify/scio
scio-extra/src/main/scala/com/spotify/scio/extra/rollup/syntax/SCollectionSyntax.scala
Scala
apache-2.0
3,742
package java.lang /* This is a hijacked class. Its instances are primitive numbers. * Constructors are not emitted. */ final class Short private () extends Number with Comparable[Short] { def this(value: scala.Short) = this() def this(s: String) = this() @inline override def shortValue(): scala.Short = t...
xuwei-k/scala-js
javalanglib/src/main/scala/java/lang/Short.scala
Scala
bsd-3-clause
2,443
/* * 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 ...
lvdongr/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LocalRelation.scala
Scala
apache-2.0
3,750
/* * This file is part of the "silex" library of helpers for Apache Spark. * * Copyright (c) 2016 Red Hat, 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.ap...
willb/silex
src/main/scala/com/redhat/et/silex/rdd/multiplex.scala
Scala
apache-2.0
19,095
/* * Copyright (c) 2011-14 Miles Sabin * * 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...
lukasz-golebiewski/shapeless
core/src/test/scala/shapeless/typeable.scala
Scala
apache-2.0
13,964
package eventstore package core package operations import scala.util.{ Failure, Success } import org.specs2.mutable.Specification import Inspection.Decision.{Retry, Stop, Fail} import OperationError._ import TestData._ class TransactionCommitInspectionSpec extends Specification { val inspection = TransactionCommitI...
EventStore/EventStore.JVM
core/src/test/scala/eventstore/core/operations/TransactionCommitInspectionSpec.scala
Scala
bsd-3-clause
1,424
package ml.combust.mleap.core.feature import ml.combust.mleap.core.types._ import org.scalatest.FunSpec class WordLengthFilterModelSpec extends FunSpec { describe("word length filter model") { val model = new WordLengthFilterModel(5) it("has the right input schema") { assert(model.inputSchema.fields...
combust/mleap
mleap-core/src/test/scala/ml/combust/mleap/core/feature/WordLengthFilterModelSpec.scala
Scala
apache-2.0
553
package com.datastax.spark.connector.rdd.partitioner import org.scalatest.{Matchers, FlatSpec} import com.datastax.spark.connector.cql.CassandraConnector import com.datastax.spark.connector.embedded.EmbeddedCassandra import com.datastax.spark.connector.rdd.partitioner.dht.LongToken import com.datastax.spark.connector...
rafaelbarreto87/spark-cassandra-connector
spark-cassandra-connector/src/it/scala/com/datastax/spark/connector/rdd/partitioner/DataSizeEstimatesSpec.scala
Scala
apache-2.0
2,547
/* * Tables.scala * * Copyright 2017 wayfarerx <x@wayfarerx.net> (@thewayfarerx) * * 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 *...
wayfarerx/dreamsleeve
shared/data/src/main/scala/net/wayfarerx/dreamsleeve/data/binary_data/Tables.scala
Scala
apache-2.0
1,437
package com.twitter.finatra.thrift.tests.doeverything.filters import com.twitter.finagle.{TimeoutException, Service} import com.twitter.finatra.thrift.thriftscala.ServerErrorCause.InternalServerError import com.twitter.finatra.thrift.thriftscala.{ServerError, NoClientIdError, UnknownClientIdError, ClientError} import ...
syamantm/finatra
thrift/src/test/scala/com/twitter/finatra/thrift/tests/doeverything/filters/ExceptionTranslationFilter.scala
Scala
apache-2.0
1,204
package views /** * * @author ponkotuy * Date: 15/02/09. */ object URL { val Host = "https://myfleet.moe" def Index = Host val Entire = s"${Host}/entire" val Statistics = s"${Entire}/activities" val Login = s"${Entire}/login" val Favicon = s"${Host}/favicon.ico" val Assets = s"${Host}/assets" }
b-wind/myfleet_web
app/views/URL.scala
Scala
mit
315
package org.jetbrains.plugins.scala package lang package psi package api package base import org.jetbrains.plugins.scala.lang.psi.api.statements.ScAnnotationsHolder import org.jetbrains.plugins.scala.lang.psi.api.statements.params._ import org.jetbrains.plugins.scala.lang.psi.api.toplevel.ScTypeParametersOwner import ...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/base/ScPrimaryConstructor.scala
Scala
apache-2.0
5,653
/* * OpenURP, Open University Resouce Planning * * Copyright (c) 2013-2014, OpenURP Software. * * OpenURP is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your ...
openurp/edu-attendance-core
attendance/src/main/scala/org/openurp/ws/services/teach/attendance/impl/ShardDaemon.scala
Scala
gpl-3.0
3,600
package guide object _12_InfoTransformerHell extends App { val g = newGlobal("-Ystop-after:delambdafy -Ydelambdafy:method") import g._ val tree = compile("class VC(val a: Any) extends AnyVal; class D { def foo = (x: VC) => x }", g).assertNoErrors().tree println(show(tree)) val sym = tree.collect { case ...
retronym/scalac-survival-guide
src/main/scala/guide/_12_InfoTransformerHell.scala
Scala
bsd-3-clause
573
/* * 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 ...
rednaxelafx/apache-spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveSQLViewSuite.scala
Scala
apache-2.0
6,203
package pages.vrm_retention import org.openqa.selenium.WebDriver import org.scalatest.selenium.WebBrowser.{find, id} import uk.gov.dvla.vehicles.presentation.common.helpers.webbrowser.{Page, WebDriverFactory} import views.vrm_retention.RetainFailure.ExitId object RetainFailurePage extends Page { def address = buil...
dvla/vrm-retention-online
test/pages/vrm_retention/RetainFailurePage.scala
Scala
mit
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 ...
StephanEwen/incubator-flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/RelExplainUtil.scala
Scala
apache-2.0
29,824
package models.persistance import models.ReleaseTSVFileLink import models.ReleaseTSVFileLinkTable import play.api.db.slick.Config.driver.simple._ object ReleaseTSVFileLinkDAO { val releaseTSVLinks = TableQuery[ReleaseTSVFileLinkTable] def getFileIdsFromReleaseId(releaseId: Int) = { implicit session: Session ...
seqprodbio/restoule
app/models/persistance/ReleaseTSVFileLinkDAO.scala
Scala
gpl-3.0
1,349
package io.scalaland.chimney.internal sealed abstract class TransformerFlags object TransformerFlags { final class Default extends TransformerFlags final class Enable[F <: Flag, Flags <: TransformerFlags] extends TransformerFlags final class Disable[F <: Flag, Flags <: TransformerFlags] extends TransformerFlags ...
scalalandio/chimney
chimney/src/main/scala/io/scalaland/chimney/internal/TransformerFlags.scala
Scala
apache-2.0
602
package coursier.cli import java.io.{File, FileWriter} import coursier.moduleString import coursier.cli.options.DependencyOptions import coursier.cli.params.DependencyParams import coursier.parse.JavaOrScalaModule import utest._ object ParamsTests extends TestSuite { def withFile(content: String)(testCode: (File,...
coursier/coursier
modules/cli/src/test/scala/coursier/cli/ParamsTests.scala
Scala
apache-2.0
3,323
package ch.squan.game.model.command import org.newdawn.slick.command.BasicCommand /** * Created by chris on 23/01/16. */ case object CommandRight extends BasicCommand("Right")
cbenning/space2d
src/main/scala/ch/squan/game/model/command/CommandRight.scala
Scala
apache-2.0
182
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
ueshin/apache-spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/ForeachBatchSink.scala
Scala
apache-2.0
2,129
/* * 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 ...
Quantiply/samza
samza-core/src/main/scala/org/apache/samza/config/TaskConfig.scala
Scala
apache-2.0
4,804
class t4612 { trait Ann[A] { def foo: A } class Bob extends Ann[Bob] { def foo = new Bob trait Cris extends Ann[Cris] { self: Bob => def foo = new Bob } } }
scala/scala
test/files/neg/t4612.scala
Scala
apache-2.0
197
/* * 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/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/pythonLogicalOperators.scala
Scala
apache-2.0
2,990
package ai.verta.repository import ai.verta.blobs.Blob /** The walker runs on every file in that given folder and all of its subfolders. * @tparam T Type of the returned value over the walk. */ trait FolderWalker[+T] { /** Filters files and subfolders to be walked on. * The returned folder can contain less e...
mitdbg/modeldb
client/scala/src/main/scala/ai/verta/repository/FolderWalker.scala
Scala
mit
797
package fr.hmil.roshttp.node private[roshttp] abstract class Module[T](val name: String) { def isAvailable: Boolean = require.isDefined def require(): Option[T] lazy val api = require.getOrElse(throw new ModuleNotFoundException(name)) } private[roshttp] class ModuleNotFoundException(name: String) extends Runt...
hmil/RosHTTP
js/src/main/scala/fr/hmil/roshttp/node/Module.scala
Scala
mit
366
package org.jetbrains.plugins.scala package lang.refactoring.introduceField import com.intellij.internal.statistic.UsageTrigger import com.intellij.openapi.actionSystem.DataContext import com.intellij.openapi.editor.markup.RangeHighlighter import com.intellij.openapi.editor.{Document, Editor} import com.intellij.opena...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/introduceField/ScalaIntroduceFieldFromExpressionHandler.scala
Scala
apache-2.0
8,055
/* * Copyright 2014–2020 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
slamdata/quasar
foundation/src/main/scala/quasar/contrib/cats/data/nonEmptySet.scala
Scala
apache-2.0
843
/* * 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
streaming/src/main/scala/org/apache/spark/streaming/ui/StreamingPage.scala
Scala
apache-2.0
20,786
/** * 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...
vkroz/kafka
core/src/test/scala/other/kafka/TestOffsetManager.scala
Scala
apache-2.0
11,034
/* * Copyright 2014 IBM Corp. * * 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...
bpburns/spark-kernel
kernel/src/main/scala/com/ibm/spark/kernel/protocol/v5/security/SignatureProducerActor.scala
Scala
apache-2.0
1,372
/* * 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
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDataFrameWindowSuite.scala
Scala
apache-2.0
12,003
package example object Lists { /** * This method computes the sum of all elements in the list xs. There are * multiple techniques that can be used for implementing this method, and * you will learn during the class. * * For this example assignment you can use the following methods in class * `Lis...
binout/progfun1
example/src/main/scala/example/Lists.scala
Scala
apache-2.0
1,727
package dao.generic import generated.Tables.LinkedAccount import generated.Tables.profile.api._ import play.api.db.slick._ import slick.lifted.CanBeQueryCondition import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent._ /** * Generic DAO implementation */ abstract class GenericDaoImpl[...
bravegag/play-authenticate-usage-scala
app/dao/generic/GenericDaoImpl.scala
Scala
apache-2.0
3,506
package rta.misc import rta.model.BaseModel import rta.model.triggers.Implicits._ import scala.collection.Iterator import spire.math._ trait StateGen { final def singleSize: Int = 8 def batteryGen: Iterator[Battery] = { def level: Iterator[UByte] = (0 to 100 by 5).iterator.map(UByte(_)) def plugged: It...
kjanosz/RuleThemAll
app/src/test/scala/rta/misc/StateGen.scala
Scala
apache-2.0
2,219
package com.lateralthoughts.points.controllers import com.lateralthoughts.points.controllers.handlers.HandlingError import com.lateralthoughts.points.model.ApplicationError import org.scalatra.{ActionResult, Created, NoContent, Ok} trait Controller extends HandlingError { private def render[T](status: (Any, Map[St...
vincentdoba/points
points-server/src/main/scala/com/lateralthoughts/points/controllers/Controller.scala
Scala
mit
677
/* * 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...
Stratio/crossdata
cassandra/src/test/scala/com/stratio/crossdata/connector/cassandra/CassandraCreateExternalTableIT.scala
Scala
apache-2.0
3,920
/* * Copyright 2020 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/vat-registration-frontend
it/controllers/registration/applicant/MinorEntityIdControllerISpec.scala
Scala
apache-2.0
12,879
package com.temportalist.weepingangels.common.extended import com.temportalist.origin.internal.common.extended.ExtendedEntityHandler import com.temportalist.weepingangels.common.WAOptions import com.temportalist.weepingangels.common.entity.EntityAngel import com.temportalist.weepingangels.common.lib.AngelUtility impor...
TheTemportalist/WeepingAngels
src/main/scala/com/temportalist/weepingangels/common/extended/AngelPlayerHandler.scala
Scala
apache-2.0
4,740
package scoverage import java.text.{DecimalFormat, DecimalFormatSymbols} import java.util.Locale object DoubleFormat { private[this] val twoFractionDigitsFormat: DecimalFormat = { val fmt = new DecimalFormat() fmt.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.US)) fmt.setMinimumIntegerDigits(1...
rorygraves/scalac-scoverage-plugin
scalac-scoverage-plugin/src/main/scala/scoverage/DoubleFormat.scala
Scala
apache-2.0
512
package models.services import models.{ Department } import scala.concurrent.Future trait DepartmentService { def findById(id: String): Future[Department] def findByName(name: String): Future[Option[Department]] def all(): Future[Seq[Department]] def insert(Department: Department): Future[Str...
yoo-haemin/hufs-planner
project/app/models/services/DepartmentService.scala
Scala
agpl-3.0
329
/************************************************************************* * * * This file is part of the 20n/act project. * * 20n/act enables DNA prediction for synthetic biology/bioengineering. * * Copyright (C) 201...
20n/act
reachables/src/main/scala/com/act/biointerpretation/rsmiles/single_sar_construction/SingleSarChemicals.scala
Scala
gpl-3.0
9,163
package biz.mediabag.qcoder.ffmpeg import avformat._ import avcodec._ import avutil._ import com.sun.jna._ import com.ochafik.lang.jnaerator.runtime._ import com.ochafik.lang.jnaerator.runtime.Structure import grizzled.slf4j.Logger import java.nio._ import biz.mediabag.qcoder._ import grizzled.slf4j.Logging object FFm...
sumo/QCoder
src/main/scala/biz/mediabag/qcoder/ffmpeg/FFmpegUtils.scala
Scala
bsd-2-clause
2,667
/* * Copyright 2015 The SIRIS Project * * 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...
simulator-x/core
src/simx/core/worldinterface/entity/NewEntityRegistration.scala
Scala
apache-2.0
4,880
package sample.stream.word_count import java.io.File import akka.actor.ActorSystem import akka.stream.ActorMaterializer import akka.stream.io.SynchronousFileSource import akka.stream.scaladsl._ import akka.util.ByteString object WordCounterClosedShape { def main(args: Array[String]) { val fileSource = Synchron...
pallavig/akka-examples
src/main/scala/sample/stream/word_count/WordCounterClosedShape.scala
Scala
cc0-1.0
1,216
/* * Copyright 2012 Comcast Cable Communications Management, 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 require...
Comcast/money
money-core/src/test/scala/com/comcast/money/core/MoneyTraceProviderSpec.scala
Scala
apache-2.0
2,749
package scalan.collections import scalan.{ScalanDslStd, Scalan} import scalan.it.BaseItTests import scalan.primitives.Functions trait SimpleMapProg extends Scalan { lazy val mapEmpty = fun {_:Rep[Int] => MMap.empty[Int,Int] } lazy val mapPutContains = fun { p:Rep[(Int,Double)] => val m = MMap.empty[Int...
PCMNN/scalan-ce
core/src/test/scala/scalan/collections/SimpleMapTests.scala
Scala
apache-2.0
4,776
/** * 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...
engagepoint/camel
components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/SThreadsDefinition.scala
Scala
apache-2.0
1,282
package contests.worldCodeSpring /** * Created by yuJieShui on 2016/6/26. */ object MinimumDistances { def solution(seq: Seq[Int], i: Int, startIndex: Map[Int, Int], historyDistances: Map[Int, Int]): Int = seq match { case Nil => scala.util.Try(h...
1178615156/hackerrank
src/main/scala/contests/worldCodeSpring/MinimumDistances.scala
Scala
apache-2.0
1,143
package xitrum import akka.actor.{Actor, PoisonPill} import io.netty.handler.codec.http.HttpResponseStatus import xitrum.handler.HandlerEnv import xitrum.handler.inbound.Dispatcher /** * An actor will be created when there's request. It will be stopped when: * - The connection is closed * - The response has been s...
xitrum-framework/xitrum
src/main/scala/xitrum/ActorAction.scala
Scala
mit
3,151
/* * 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
foundation/src/test/scala/quasar/contrib/specs2/PendingWithActualTracking.scala
Scala
apache-2.0
3,162
/** * 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-http/src/main/scala/io/gatling/http/action/async/sse/SseTx.scala
Scala
apache-2.0
1,133
/* * Copyright © 2014 Nemanja Stanarevic <nemanja@alum.mit.edu> * * Made with ❤ in NYC at Hacker School <http://hackerschool.com> * * Licensed under the GNU Affero General Public License, Version 3 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the ...
nemanja-stanarevic/gmail-api-scala-client
src/main/scala/gmailapi/methods/Threads.scala
Scala
agpl-3.0
4,378
/* * Wire * Copyright (C) 2016 Wire Swiss GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progr...
wireapp/wire-android-sync-engine
zmessaging/src/main/scala/com/waz/sync/queue/SyncContentUpdater.scala
Scala
gpl-3.0
6,870
package test trait B { def foo: Int } class traitSuper extends B { def <caret>foo: Int = 0 }
ilinum/intellij-scala
testdata/supers/traits/traitSuper.scala
Scala
apache-2.0
100
package atari.st.disk.exceptions class InvalidFormatException(msg: String = null, cause: Throwable = null) extends Exception(msg, cause)
suiryc/atari-st-tools
src/main/scala/atari/st/disk/exceptions/InvalidFormatException.scala
Scala
gpl-3.0
138
/* * Copyright 2013-2021 JetBrains s.r.o. * * 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...
JetBrains/sbt-tc-logger
logger/src/main/scala/jetbrains/buildServer/sbtlogger/SbtTeamCityLogger.scala
Scala
apache-2.0
6,308
/* * Copyright 2015 Niklas Grossmann * * 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...
ngrossmann/momo
src/main/scala/net/n12n/momo/TcpReceiverActor.scala
Scala
apache-2.0
1,939
package chat.tox.antox.utils object StorageType extends Enumeration { type StorageType = Value val NONE, INTERNAL, EXTERNAL = Value }
wiiam/Antox
app/src/main/scala/chat/tox/antox/utils/StorageType.scala
Scala
gpl-3.0
138
package com.mesosphere.cosmos.thirdparty.adminrouter.circe import com.mesosphere.cosmos.thirdparty.adminrouter.model.DcosVersion import com.mesosphere.universe.v3.circe.Decoders._ import com.mesosphere.universe.v3.model.DcosReleaseVersion import io.circe.{Decoder, HCursor} object Decoders { implicit val decodeDcos...
movicha/cosmos
cosmos-json/src/main/scala/com/mesosphere/cosmos/thirdparty/adminrouter/circe/Decoders.scala
Scala
apache-2.0
627
package test.endtoend.auctionsniper import auctionsniper.ui.MainWindow.{NEW_ITEM_ID_NAME, NEW_ITEM_STOP_PRICE_NAME} import com.objogate.wl.swing.matcher.IterableComponentsMatcher.matching import com.objogate.wl.swing.matcher.JLabelTextMatcher.withLabelText import java.lang.String.valueOf import javax.swing.{JButton, ...
sptz45/goos-scala
test/end-to-end/test/endtoend/auctionsniper/AuctionSniperDriver.scala
Scala
apache-2.0
2,042
package ua.nure.lab5 import java.io.File import akka.actor.{Actor, ActorIdentity, ActorRef, ActorSystem, Props, Terminated} import scala.collection.mutable import scala.io.Source /** * Class Matchers implementation. * * @author Bohdan_Suprun */ object Matchers { def main(args: Array[String]): Unit = { ...
isCompetent/spp
src/main/scala/ua/nure/lab5/Matchers.scala
Scala
mit
2,233
/* * 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 ...
fhueske/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/rules/logical/PushFilterIntoTableSourceScanRule.scala
Scala
apache-2.0
6,064
package org.machine.engine.communication.routes import akka.http.javadsl.model.HttpHeader; import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.model.HttpResponse import akka.http.scaladsl.server.Directives import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.Directives._ impo...
sholloway/graph-engine
src/main/scala/org/machine/engine/communication/routes/IdentityServiceRouteBuilder.scala
Scala
mit
8,462
package scala.meta.internal.javacp /** * Minimal utility to resolve generic signature type variables to fully qualified symbols. * * @param bindings Map from type variable names to their resolved symbols. */ class Scope(bindings: Map[String, String]) { /** Resolve a type variable name to a symbol */ def r...
olafurpg/scalameta
semanticdb/metacp/src/main/scala/scala/meta/internal/javacp/Scope.scala
Scala
bsd-3-clause
834
package ru.makkarpov.scalingua.pofile.parse import java_cup.runtime.ComplexSymbolFactory.Location case class ParserException(left: Location, right: Location, msg: String) extends RuntimeException(s"at ${left.getUnit}:${left.getLine}:${left.getColumn}: $msg") { }
makkarpov/scalingua
scalingua/shared/src/main/scala/ru/makkarpov/scalingua/pofile/parse/ParserException.scala
Scala
apache-2.0
266
package webcrank package data import scalaz._, Scalaz._ /** http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1 */ sealed trait Method object Method { case object Options extends Method case object Get extends Method case object Head extends Method case object Post extends Method case object Put...
webcrank/webcrank.scala
src/main/scala/webcrank/data/Method.scala
Scala
bsd-3-clause
623
package wakfutcp.protocol import java.nio.ByteBuffer import akka.util.{ByteString, ByteStringBuilder} trait BinarSerialPart { def id: Byte } trait BinarSerialCodec[B <: BinarSerialPart] extends Codec[Seq[_ <: B]] { import Encoder.DefaultOrder def fromId(id: Byte): Codec[_ <: B] final override def decode(b...
OpenWakfu/wakfutcp
protocol/src/main/scala/wakfutcp/protocol/BinarSerialCodec.scala
Scala
mit
1,564
package edu.mayo.hadoop.commons.examples import org.apache.spark.SparkConf import org.apache.spark.SparkContext import edu.mayo.hadoop.commons.hbase.AutoConfigure import org.apache.hadoop.hbase.client.HBaseAdmin import org.apache.hadoop.hbase.TableName import org.apache.hadoop.hbase.HTableDescriptor import org.apache....
drachimera/GenomicWarehouse
hadoop-commons/src/main/scala/edu/mayo/hadoop/commons/examples/HBaseTest.scala
Scala
apache-2.0
2,167
package uk.gov.gds.ier.form import uk.gov.gds.ier.test.UnitTestSuite import uk.gov.gds.ier.validation.{ErrorMessages, FormKeys} import uk.gov.gds.ier.model.{HasAddressOption, PartialManualAddress, PartialAddress, LastAddress} import uk.gov.gds.ier.transaction.forces.confirmation.ConfirmationForms import play.api.data....
michaeldfallen/ier-frontend
test/uk/gov/gds/ier/form/AddressHelpersTests.scala
Scala
mit
6,168
/* * Derived from https://github.com/spray/spray/blob/v1.1-M7/spray-http/src/main/scala/spray/http/HttpEncoding.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 ...
ZizhengTai/http4s
core/src/main/scala/org/http4s/ContentCoding.scala
Scala
apache-2.0
2,489
/* * 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/cypher/src/test/scala/org/neo4j/cypher/internal/compiler/v2_3/TraversalMatcherBuilderTest.scala
Scala
apache-2.0
5,655
package com.caibowen.webface.gae.misc /** * exact request location info, including time, ip, geo info * used as return value as well as query filters * Created by Bowen Cai on 9/3/2015. */ case class ReqLocation(timestamp: Long, ip: String, country: String, region: String, city: St...
xkommando/WebFace
src/com/caibowen/webface/gae/misc/ReqLocation.scala
Scala
apache-2.0
410
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
dbtsai/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcDeserializer.scala
Scala
apache-2.0
10,507
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package scalaguide.akka.typed import org.specs2.mutable.Specification import play.api.inject.Injector import play.api.inject.guice.GuiceApplicationBuilder import play.api.inject.guice.GuiceableModule final class AkkaTypedDocSpec extends Specification...
benmccann/playframework
documentation/manual/working/commonGuide/akka/code/scalaguide/akka/typed/AkkaTypedDocSpec.scala
Scala
apache-2.0
2,286
/* * ========================================================================================= * Copyright © 2013-2017 the kamon project <http://kamon.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...
kamon-io/kamon-netty
src/main/scala/kamon/netty/instrumentation/ChannelInstrumentation.scala
Scala
apache-2.0
1,738
package opencl.generator import java.io._ import ir._ import ir.ast._ import lift.arithmetic.SizeVar import opencl.executor.{Execute, Executor, TestWithExecutor} import opencl.ir._ import opencl.ir.pattern._ import org.junit.Assert._ import org.junit.{Ignore, Test} import scala.language.postfixOps import scala.sys.p...
lift-project/lift
src/test/opencl/generator/TestGraphTheory.scala
Scala
mit
10,042
package sttp.client3.impl.cats import java.util.concurrent.TimeoutException import cats.effect.IO import cats.effect.unsafe.IORuntime import sttp.client3.testing.ConvertToFuture import sttp.monad.MonadError import scala.concurrent.ExecutionContext import scala.concurrent.duration.DurationInt trait CatsTestBase { ...
softwaremill/sttp
effects/cats/src/test/scala/sttp/client3/impl/cats/CatsTestBase.scala
Scala
apache-2.0
833
package akka.persistence.jdbc.integration import akka.persistence.jdbc.serialization.StoreOnlySerializableMessagesTest import akka.persistence.jdbc.testkit.internal.MySQL import akka.persistence.jdbc.testkit.internal.Oracle import akka.persistence.jdbc.testkit.internal.Postgres import akka.persistence.jdbc.testkit.int...
dnvriend/akka-persistence-jdbc
core/src/it/scala/akka/persistence/jdbc/integration/StoreOnlySerializableMessagesTest.scala
Scala
apache-2.0
856
/* * Copyright 2012-2020 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...
planet42/Laika
io/src/main/scala/laika/helium/generate/FOStyles.scala
Scala
apache-2.0
11,635
fmap(f)(alpha(h)) == alpha(f compose h)
hmemcpy/milewski-ctfp-pdf
src/content/2.4/code/scala/snippet08.scala
Scala
gpl-3.0
39
/* * 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 ...
goldmedal/spark
core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala
Scala
apache-2.0
30,265
/* * 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 ...
djspiewak/quasar
impl/src/main/scala/quasar/impl/external/ClassName.scala
Scala
apache-2.0
735
/* * (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/cogdebugger/ui/components/LoadingAnimationPanel.scala
Scala
apache-2.0
1,524
package at.forsyte.apalache.tla.bmcmt.analyses import at.forsyte.apalache.tla.lir._ import at.forsyte.apalache.tla.lir.oper.TlaBoolOper import com.google.inject.Inject import com.typesafe.scalalogging.LazyLogging /** * <p>This analysis finds formulas of specific structure and labels them with hints. * For instanc...
konnov/dach
tla-bmcmt/src/main/scala/at/forsyte/apalache/tla/bmcmt/analyses/HintFinder.scala
Scala
apache-2.0
1,170
/* * 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...
yiheng/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/StaticGraph.scala
Scala
apache-2.0
5,069
package com.sksamuel.scrimage.filter import com.sksamuel.scrimage.Image import org.scalatest.FunSuite /** @author Stephen Samuel */ class VignetteFilterTest extends FunSuite { val original = Image(getClass.getResourceAsStream("/bird_small.png")) test("filter output matches expected") { val expected = Image(...
carlosFattor/scrimage
scrimage-filters/src/test/scala/com/sksamuel/scrimage/filter/VignetteFilterTest.scala
Scala
apache-2.0
497
/* * Derived from https://github.com/spray/spray/blob/v1.1-M7/spray-http/src/main/scala/spray/http/parser/CookieHeaders.scala * * Copyright (C) 2011-2012 spray.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 obtai...
ZizhengTai/http4s
core/src/main/scala/org/http4s/parser/CookieHeader.scala
Scala
apache-2.0
3,590
package templemore.onx.version3 import org.scalatest.matchers.MustMatchers import org.scalatest. {FeatureSpec, GivenWhenThen} /** * @author Chris Turner */ class GridSpec extends FeatureSpec with GivenWhenThen with MustMatchers { import Token._ feature("The OnX grid") { info("As a player") info("I wa...
skipoleschris/OandX
src/test/scala/templemore/onx/version3/GridSpec.scala
Scala
apache-2.0
2,892
package org.apache.datacommons.prepbuddy.clusterers import org.apache.commons.lang.StringUtils import scala.collection.mutable /** * This algorithm generates a key using Simple Fingerprint Algorithm for * every cardinal value (facet) in column and add them to the Cluster. */ class SimpleFingerprintAlgorithm ex...
blpabhishek/prep-buddy
src/main/scala/org/apache/datacommons/prepbuddy/clusterers/SimpleFingerprintAlgorithm.scala
Scala
apache-2.0
894
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
u2009cf/spark-radar
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala
Scala
apache-2.0
51,519
package dotty.tools package dotc package reporting import core.Contexts.Context import collection.mutable import Reporter.Diagnostic import config.Printers._ /** * This class implements a Reporter that stores all messages */ class StoreReporter extends Reporter { val infos = new mutable.ListBuffer[Diagnostic] ...
magarciaEPFL/dotty
src/dotty/tools/dotc/reporting/StoreReporter.scala
Scala
bsd-3-clause
561
/* * Copyright 2022 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/help-to-save-frontend
app/uk/gov/hmrc/helptosavefrontend/controllers/BaseController.scala
Scala
apache-2.0
2,008
/* * ScalaRay - Ray tracer based on pbrt (see http://pbrt.org) written in Scala * Copyright (C) 2009, 2010, 2011 Jesper de Jong * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either ve...
jesperdj/scalaray
src/main/scala/org/jesperdj/scalaray/renderer/PixelBuffer.scala
Scala
gpl-3.0
3,155
package com.arcusys.learn.liferay.update.version300.migrations.scorm import com.arcusys.valamis.persistence.common.SlickProfile import com.arcusys.valamis.persistence.impl.scorm.model.SequencingModel import com.arcusys.valamis.persistence.impl.scorm.schema.SequencingTableComponent import slick.driver.JdbcProfile impor...
igor-borisov/valamis
learn-portlet/src/main/scala/com/arcusys/learn/liferay/update/version300/migrations/scorm/SequencingMigration.scala
Scala
gpl-3.0
3,246
/** * 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/server/AddPartitionsToTxnRequestServerTest.scala
Scala
apache-2.0
2,862