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 (c) 2012 Roberto Tyley * * This file is part of 'BFG Repo-Cleaner' - a tool for removing large * or troublesome blobs from Git repositories. * * BFG Repo-Cleaner is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fr...
NeilBryant/bfg-repo-cleaner
bfg-library/src/main/scala/com/madgag/git/bfg/cleaner/commits.scala
Scala
gpl-3.0
2,059
import com.mongodb.casbah.Imports._ object RepoNumber { def extractNumber(obj:DBObject):Option[Int] = { val repos = obj.getAs[List[DBObject]]("repos") orElse { println("Could not find or parse 'repos' field") None } repos.map { _.size } } val collection = MongoClient()("github")("user...
pbugnion/s4ds
chap08/RepoNumber.scala
Scala
apache-2.0
917
package com.datafellas.g3nerator.model import java.net.{URL => JURL} import java.nio.file.Paths import org.scalatest.{Matchers, WordSpec} class URLTests extends WordSpec with Matchers { import com.datafellas.g3nerator.model.URL._ "an URL (wrapper)" should { "create an URL from a valid url in a String" in { ...
andypetrella/spark-notebook
modules/sbt-project-generator/src/test/scala/com/datafellas/g3nerator/model/UrlConfigTests.scala
Scala
apache-2.0
1,449
/* * Copyright (c) 2014-2021 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
monifu/monifu
monix-reactive/shared/src/main/scala/monix/reactive/internal/builders/Zip4Observable.scala
Scala
apache-2.0
6,919
object Solution { def main(args: Array[String]): Unit = { val n = scala.io.StdIn.readInt (scala.io.StdIn.readLine.split(" ") map { _.toInt } reverse) foreach { x => print(x.toString + " ") } } }
iandmyhand/scala-tester
src/hackerrank/SolutionArray.scala
Scala
mit
243
package controllers import actors.TransactionsLoggerActor.Transaction import controllers.AdministrationDashboardController._ import models._ import org.joda.time.LocalDateTime import play.api.Play import play.api.libs.concurrent.Akka import play.api.mvc.{ Action, Controller } import utils.Security.Authentication impor...
FHK-ADV/lwm
app/controllers/DegreeManagementController.scala
Scala
mit
4,193
/* * 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 ...
JihongMA/incubator-carbondata
integration/spark2/src/main/scala/org/apache/spark/sql/parser/CarbonSparkSqlParser.scala
Scala
apache-2.0
7,927
/* * Copyright 2015 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/tabulate
generic/shared/src/main/scala/kantan/csv/generic/GenericInstances.scala
Scala
mit
2,539
import sbt._ import Keys._ import com.typesafe.sbt.SbtMultiJvm import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm object ApplicationBuild extends Build { val appName = "akka-raft" val appVersion = "1.0-SNAPSHOT" import Dependencies._ val debugInUse = SettingKey[Boolean]("debug-in-use", "debug is use...
colin-scott/akka-raft
project/Build.scala
Scala
apache-2.0
1,931
package de.uniulm.dds.defaultimpl import de.uniulm.dds.base._ /** * Tests for the default implementation * * User: Felix * Date: 23.04.13 * Time: 17:11 */ class DefaultImplTests extends AbstractTests { def createContext[V, T](ordering: Ordering[Variable[V]] = lexicographicOrdering[V]): Context[V, T] = Context...
uulm-ai/scadd
src/test/scala/de/uniulm/dds/defaultimpl/DefaultImplTests.scala
Scala
mit
350
/* * Copyright 2016 agido GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
agido/pageobject
test/src/test/scala/org/pageobject/core/TestSpec.scala
Scala
apache-2.0
784
package io.github.daithiocrualaoich.utils.validation object `package` { implicit class Any2Validation[A](val a: A) extends AnyVal { def success[E]: Validation[E, A] = Success(a) def failure[X]: Validation[A, X] = Failure(a) } }
daithiocrualaoich/utils
src/main/scala/io.github.daithiocrualaoich.utils/validation/package.scala
Scala
apache-2.0
242
package edu.rice.habanero.benchmarks.trapezoid import edu.rice.habanero.actors.{FuncJavaActor, FuncJavaActorState, FuncJavaPool} import edu.rice.habanero.benchmarks.trapezoid.TrapezoidalConfig.{ResultMessage, WorkMessage} import edu.rice.habanero.benchmarks.{Benchmark, BenchmarkRunner} /** * * @author <a href="http...
shamsmahmood/savina
src/main/scala/edu/rice/habanero/benchmarks/trapezoid/TrapezoidalFuncJavaActorBenchmark.scala
Scala
gpl-2.0
3,270
package mesosphere.marathon.core.matcher.reconcile.impl import mesosphere.marathon.core.launcher.TaskOp import mesosphere.marathon.core.task.Task.LocalVolumeId import mesosphere.marathon.core.task.tracker.TaskTracker import mesosphere.marathon.core.task.tracker.TaskTracker.TasksByApp import mesosphere.marathon.core.ta...
timcharper/marathon
src/test/scala/mesosphere/marathon/core/matcher/reconcile/impl/OfferMatcherReconcilerTest.scala
Scala
apache-2.0
6,059
/* * Artificial Intelligence for Humans * Volume 1: Fundamental Algorithms * Scala Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * Copyright 2013 by Jeff Heaton * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
PeterLauris/aifh
vol1/scala-examples/src/test/scala/com/heatonresearch/aifh/general/fns/link/TestLogitLinkFunction.scala
Scala
apache-2.0
1,576
package auth.service.jwt import auth.service.Config import scala.util.{Failure, Success, Try} /** * Created by cf on 10/5/2016. */ object JWTConfig { import Config._ lazy val keyUpdateDelay = Try(app.getInt("jwt.key-update-delay")) match { case Success(v) => v case Failure(_) => 120 } lazy val ...
astrofed/akka-rest-slick-flyway-auth-token
authenticator/src/main/scala/auth/service/jwt/JWTConfig.scala
Scala
mit
429
package org.scaladebugger.api.lowlevel.classes import org.scalamock.scalatest.MockFactory import org.scalatest.{FunSpec, Matchers, ParallelTestExecution} import org.scaladebugger.api.lowlevel.DummyOperationException import org.scaladebugger.test.helpers.ParallelMockFunSpec class DummyClassUnloadManagerSpec extends Pa...
ensime/scala-debugger
scala-debugger-api/src/test/scala/org/scaladebugger/api/lowlevel/classes/DummyClassUnloadManagerSpec.scala
Scala
apache-2.0
2,043
/* * Copyright (c) 2015, * Ilya Sergey, Christopher Earl, Matthew Might and David Van Horn * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain t...
ilyasergey/reachability
test/org/ucombinator/scheme/scalatest/SExpParsingTest.scala
Scala
bsd-3-clause
2,830
/* sbt -- Simple Build Tool * Copyright 2010 Mark Harrah */ package sbt package inc import java.io.File object FileBasedStore { def apply(file: File): AnalysisStore = new AnalysisStore { def set(analysis: Analysis, setup: CompileSetup) { Using.fileWriter(IO.utf8)(file) { writer => TextAnalysisFormat.wri...
pdalpra/sbt
compile/persist/src/main/scala/sbt/inc/FileBasedStore.scala
Scala
bsd-3-clause
616
package play.api.cache.redis.impl import scala.concurrent.duration._ import play.api.cache.redis._ import org.specs2.concurrent.ExecutionEnv import org.specs2.mutable.Specification class RedisCacheSpec(implicit ee: ExecutionEnv) extends Specification with ReducedMockito { import Implicits._ import RedisCacheImp...
KarelCemus/play-redis
src/test/scala/play/api/cache/redis/impl/RedisCacheSpec.scala
Scala
mpl-2.0
11,478
trait Foo { def foobar: Unit; } trait Bar extends Foo { def foobar: Unit = super.foobar } // the following definition breaks the compiler abstract class Foobar extends Bar
yusuke2255/dotty
tests/untried/neg/t700.scala
Scala
bsd-3-clause
178
/* * 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 ...
savaki/samza
samza-core/src/main/scala/org/apache/samza/container/grouper/task/GroupByContainerCountFactory.scala
Scala
apache-2.0
1,196
/* * MatrixAssocViewImpl.scala * (SysSon) * * Copyright (c) 2013-2017 Institute of Electronic Music and Acoustics, Graz. * Copyright (c) 2014-2019 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU General Public License v3+ * * * For further information, please contact H...
iem-projects/sysson
src/main/scala/at/iem/sysson/gui/impl/MatrixAssocViewImpl.scala
Scala
gpl-3.0
7,433
/* * Copyright 2014 Treode, 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...
Treode/store
store/src/com/treode/store/catalog/CatalogKit.scala
Scala
apache-2.0
1,699
package spray.oauth.utils import com.typesafe.config.ConfigFactory /** * Created with IntelliJ IDEA. * User: hasan.ozgan * Date: 4/18/14 * Time: 10:40 AM * To change this template use File | Settings | File Templates. */ object OAuth2Parameters { lazy val conf = ConfigFactory.load() val SCOPE_SEPARATOR = c...
hasanozgan/spray-oauth
core/src/main/scala/spray/oauth/utils/OAuth2Parameters.scala
Scala
apache-2.0
1,624
/* * Copyright (C) 2005 - 2019 Schlichtherle IT Services. * All rights reserved. Use is subject to license terms. */ package global.namespace.truelicense.ui import global.namespace.truelicense.ui.LicenseWizardMessage._ import global.namespace.truelicense.ui.MessagesTestSupport._ import org.scalatest.prop.TableDrive...
christian-schlichtherle/truelicense
ui/src/test/scala/global/namespace/truelicense/ui/MessagesSpec.scala
Scala
apache-2.0
1,419
/* * 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 ...
nilsgrabbert/spark
mllib/src/test/scala/org/apache/spark/ml/feature/RFormulaSuite.scala
Scala
apache-2.0
21,271
package es.alvsanand.spark_recommender import es.alvsanand.spark_recommender.trainer.ALSTrainer import es.alvsanand.spark_recommender.utils.{Logging, MongoConfig} import org.apache.spark.SparkConf import scopt.OptionParser /** * @author ${user.name} */ object RecommenderTrainerApp extends App with Logging { ov...
alvsanand/spark_recommender
src/main/scala/es/alvsanand/spark_recommender/RecommenderTrainerApp.scala
Scala
apache-2.0
2,796
/* * 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/ct600e/v2/E1043.scala
Scala
apache-2.0
1,288
package frameless import scala.annotation.implicitNotFound /** Types that can be bitwise ORed, ANDed, or XORed by Catalyst. * Note that Catalyst requires that when performing bitwise operations between columns * the two types must be the same so in some cases casting is necessary. */ @implicitNotFound("Cannot d...
imarios/frameless
core/src/main/scala/frameless/CatalystBitwise.scala
Scala
apache-2.0
932
package de.multamedio trait Reviewer { def reviewCode() = println("Reviewing Code...") }
JohannesDienst/polyglot_integration
scala_integration/src/main/scala/de/multamedio/Reviewer.scala
Scala
mit
97
/* * 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 ...
ArvinDevel/onlineAggregationOnSparkV2
yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
Scala
apache-2.0
25,032
/* * Copyright 2014 Philip L. McMahon * * Philip L. McMahon 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: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
rascql/rascql
src/main/scala/rascql/postgresql/stream/AuthenticationStage.scala
Scala
apache-2.0
1,542
package algorithms.recursion object ArithmeticExpressions { def solution(seq: List[Int], s: String = "", acc: Long = 0): Option[String] = { seq match { case Nil if (acc % 101) == 0 => Some(s) case Nil => None case head :: tail if s.isEmpty => solution(tail, head.toStr...
1178615156/hackerrank
src/main/scala/algorithms/recursion/ArithmeticExpressions.scala
Scala
apache-2.0
1,037
package ru.biocad.ig.common.io.fasta import ru.biocad.ig.common.io.common.{SourceReader, SequenceReader, Sequence} import java.io._ import scala.io.Source /** * Created with IntelliJ IDEA. * User: pavel * Date: 08.02.14 * Time: 23:59 */ class FastaReader(source : Source, saveGaps : Boolean = false) extends Seque...
zmactep/igcat
lib/ig-common/src/main/scala/ru/biocad/ig/common/io/fasta/FastaReader.scala
Scala
bsd-2-clause
1,650
package EasyJson import scala.collection.mutable; object Parser { def scan(string: String, allowAnyRoot: Boolean): Result[Any] = { val tokens = mutable.Buffer[String](); val value = scanForwardValue(string.trim()); value match { case Ok(v) => { if (allowAnyRoot...
Dentosal/EasyJson
src/main/scala/EasyJson/Parser.scala
Scala
mit
11,016
object Days extends Enumeration { type Day = DayValue val Mon, Tue, Wed, Thu, Fri, Sat, Sun = new DayValue // DayValue protected class DayValue extends Val { def isWeekday: Boolean = this match { case Sun => false case Sat => false case _ => true } } } object Test exten...
som-snytt/dotty
tests/run/t3719.scala
Scala
apache-2.0
719
/** * Copyright 2017 https://github.com/sndnv * * 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 applicabl...
sndnv/noisecluster
vili/app/vili/ApplicationService.scala
Scala
apache-2.0
5,357
/* * 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 ...
USCDataScience/sparkler
sparkler-app/src/main/scala/edu/usc/irds/sparkler/storage/SparklerGroupPartition.scala
Scala
apache-2.0
1,113
/* * 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/vat-registration-frontend
test/views/BusinessActivityDescriptionViewSpec.scala
Scala
apache-2.0
1,668
/* * Copyright University of Basel, Graphics and Vision Research Group * * 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 ...
unibas-gravis/scalismo-faces
src/main/scala/scalismo/faces/sampling/face/evaluators/LandmarksInBoxEvaluator.scala
Scala
apache-2.0
1,631
package auth.service import akka.actor.{ActorRef, ActorSystem} import akka.event.{Logging, LoggingAdapter} import akka.http.scaladsl.Http import akka.stream.{ActorMaterializer, Materializer} import akka.util.Timeout import auth.service.jwt.SecretKeyManager import common.util.AppConfig import scala.concurrent.duration...
astrofed/akka-rest-slick-flyway-auth-token
authenticator/src/main/scala/auth/service/Authenticator.scala
Scala
mit
1,444
//====================================================================================================================== // Facsimile: A Discrete-Event Simulation Library // Copyright © 2004-2020, Michael J Allen. // // This file is part of Facsimile. // // Facsimile is free software: you can redistribute it and/or mod...
MichaelJAllen/facsimile
facsimile-simulation/src/main/scala/org/facsim/sim/application/FacsimileConfig.scala
Scala
lgpl-3.0
7,593
package org.jetbrains.plugins.scala.lang.scaladoc.psi.impl import java.util import com.intellij.psi.impl.source.tree.LazyParseablePsiElement import com.intellij.psi.javadoc.PsiDocTag import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.tree.IElementType import com.intellij.psi._ import org.jetbrain...
gtache/intellij-lsp
intellij-lsp-dotty/src/org/jetbrains/plugins/scala/lang/scaladoc/psi/impl/ScDocCommentImpl.scala
Scala
apache-2.0
3,902
/* * 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 ...
aljoscha/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/stream/table/TemporalTableFunctionJoinTest.scala
Scala
apache-2.0
6,471
package sheetkram.model case class Workbook private ( sheets : IndexedSeq[ Sheet ] ) { private def ensure( idx : Int ) : IndexedSeq[ Sheet ] = { if ( idx >= sheets.size ) sheets ++ IndexedSeq.fill( idx - sheets.size + 1 )( Sheet( "Sheet " + idx ) ) else sheets } def appendSheet( name : ...
kfwalkow/sheetkram
src/main/scala/sheetkram/model/Workbook.scala
Scala
bsd-3-clause
749
import akka.actor._ import scala.collection.breakOut package object demo { implicit val actorSystem = ActorSystem("demo-system") def isPrime(n: Int) = (2 until n) forall (n % _ != 0) def circular[A](a: Seq[A]): Stream[A] = { val repeat = a.toStream def b: Stream[A] = repeat #::: b b } }
JohnMurray/actor-based-concurrency-presentation
demo/src/main/scala/demo/package.scala
Scala
mit
312
package edu.gemini.pot.sp.version import edu.gemini.shared.util.VersionComparison /** * */ object VersionMap { val ordering = new PartialOrdering[VersionMap]() { // If both are the same, keep the same value. If either is zero, favor // the other. Otherwise, they conflict. private def combine(i0: In...
arturog8m/ocs
bundle/edu.gemini.pot/src/main/scala/edu/gemini/pot/sp/version/VersionMap.scala
Scala
bsd-3-clause
2,633
package com.ybrikman.ping.scalaapi.compose import com.ybrikman.ping.scalaapi.bigpipe.HtmlStream import play.api.http.HeaderNames import play.api.libs.iteratee.Iteratee import play.api.mvc.{Cookies, Cookie, Codec, Result} import play.twirl.api.Html import scala.concurrent.{Future, ExecutionContext} /** * Helpers for...
carlosFattor/ping-play
big-pipe/src/main/scala/com/ybrikman/ping/scalaapi/compose/Compose.scala
Scala
mit
4,431
/* * 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/async/TestData.scala
Scala
apache-2.0
1,355
package mesosphere.mesos.protos case class OfferID(value: String)
mesosphere/mesos-utils
src/main/scala/mesosphere/mesos/protos/OfferID.scala
Scala
apache-2.0
67
package main import add.{AddActor, AddService} import akka.actor.{ActorSystem, Props} import akka.http.scaladsl.Http import akka.http.scaladsl.server.RouteConcatenation import akka.stream.ActorMaterializer import ch.megard.akka.http.cors.scaladsl.CorsDirectives.cors import client.{TimeSeriesDailyActor, TimeSeriesDaily...
jiancoding/stock-data
app/main/Rest.scala
Scala
apache-2.0
1,629
package edu.rice.habanero.benchmarks.bitonicsort import java.util.Random import edu.rice.habanero.actors.{LiftActor, LiftActorState, LiftPool} import edu.rice.habanero.benchmarks.philosopher.PhilosopherAkkaActorBenchmark.ExitMessage import edu.rice.habanero.benchmarks.{Benchmark, BenchmarkRunner} import scala.collec...
smarr/savina
src/main/scala/edu/rice/habanero/benchmarks/bitonicsort/BitonicSortLiftActorBenchmark.scala
Scala
gpl-2.0
16,524
/* * Copyright 2001-2009 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...
tu-team/2
dataservice.knowledgebaseserver/src/test/scala/KbTest.scala
Scala
gpl-3.0
2,849
package com.github.mrpowers.spark.spec.ml.linalg import org.scalatest.FunSpec import org.apache.spark.ml.linalg.SparseVector class SparseVectorSpec extends FunSpec { describe("new") { it("creates a SparseVector") { // new SparseVector(size: Int, indices: Array[Int], values: Array[Double]) // size...
MrPowers/spark-spec
src/test/scala/com/github/mrpowers/spark/spec/ml/linalg/SparseVectorSpec.scala
Scala
mit
1,017
package scalaDemo /** * Created by liush on 17-7-14. */ object RelationalOperatorTest { def main(args: Array[String]) { var a = 10; var b = 20; //==检查两个操作数的值是否相等,如果是的话那么条件为真 println("a == b = " + (a == b) ); //!=检查两个操作数的值是否相等,如果值不相等,则条件变为真。 println("a != b = " + (a != b) ); println("a...
tophua/spark1.52
examples/src/main/scala/scalaDemo/RelationalOperatorTest.scala
Scala
apache-2.0
1,725
package org.scalaide.core.completion import scala.util.matching.Regex trait ProposalRelevanceCfg { def favoritePackages: Seq[Regex] def preferredPackages: Seq[Regex] def unpopularPackages: Seq[Regex] def shunnedPackages: Seq[Regex] override def toString = { s"ProposalRelevanceCfg[favoritePackages=$fav...
scala-ide/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/core/completion/ProposalRelevanceCfg.scala
Scala
bsd-3-clause
841
// // DumpState.scala -- Scala object DumpState // Project OrcScala // // Created by amp on Feb 5, 2015. // // Copyright (c) 2018 The University of Texas at Austin. All rights reserved. // // Use and redistribution of this file is governed by the license terms in // the LICENSE file found in the project's top-level dir...
orc-lang/orc
OrcScala/src/orc/lib/util/DumpState.scala
Scala
bsd-3-clause
947
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
jianran/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SimpleCatalystConf.scala
Scala
apache-2.0
2,124
/*********************************************************************** * Copyright (c) 2013-2018 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
ddseapy/geomesa
geomesa-accumulo/geomesa-accumulo-raster/src/test/scala/org/locationtech/geomesa/raster/index/RasterEntryTest.scala
Scala
apache-2.0
2,534
/* * Copyright 2015-2016 David R. Bild * * 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...
nscala-money/nscala-money
core/src/main/scala/com/github/nscala_money/money/RichCurrencyUnit.scala
Scala
apache-2.0
1,385
package com.github.j5ik2o.chatwork.domain.room import com.github.j5ik2o.chatwork.domain.room.Room.Member import com.github.j5ik2o.chatwork.infrastructure.api.Client import com.github.j5ik2o.chatwork.infrastructure.api.room.{MemberApiService, RoomApiService} import com.github.j5ik2o.chatwork.infrastructure.api.room.{Ro...
j5ik2o/chatwork-client
src/test/scala/com/github/j5ik2o/chatwork/domain/room/AsyncRoomRepositoryImplSpec.scala
Scala
apache-2.0
4,896
package io.vamp.persistence import akka.actor.Actor import io.vamp.common.notification.NotificationProvider import io.vamp.model.artifact._ import scala.language.postfixOps trait DeploymentPersistenceMessages { case class UpdateDeploymentServiceStatus(deployment: Deployment, cluster: DeploymentCluster, service: D...
magneticio/vamp
persistence/src/main/scala/io/vamp/persistence/DeploymentPersistenceOperations.scala
Scala
apache-2.0
5,534
package org.http4s package server package tomcat import cats.effect.{IO, Timer} import cats.implicits._ import java.io.IOException import java.net.{HttpURLConnection, URL} import java.nio.charset.StandardCharsets import org.apache.catalina.webresources.TomcatURLStreamHandlerFactory import org.http4s.dsl.io._ import or...
ChristopherDavenport/http4s
tomcat/src/test/scala/org/http4s/tomcat/TomcatServerSpec.scala
Scala
apache-2.0
2,921
/* * 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...
matterche/scalatest
scalactic-test/src/test/scala/org/scalactic/GeneralContainElementSpec.scala
Scala
apache-2.0
1,076
/* * GimpSlur.scala * (FScape) * * Copyright (c) 2001-2022 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.fscape package gra...
Sciss/FScape-next
core/shared/src/main/scala/de/sciss/fscape/graph/GimpSlur.scala
Scala
agpl-3.0
3,717
package com.harrys.hyppo.worker.actor.queue import java.time.Duration import com.harrys.hyppo.worker.actor.amqp.QueueNaming import com.harrys.hyppo.worker.scheduling.RecentResourceContention import com.harrys.hyppo.worker.{ProcessedDataStub, TestConfig, TestObjects} import org.scalatest.{Matchers, WordSpec} /** * ...
harrystech/hyppo-worker
worker/src/test/scala/com/harrys/hyppo/worker/actor/queue/QueueMetricsTrackerTests.scala
Scala
mit
1,690
/* * 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
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/FilterPushdownSuite.scala
Scala
apache-2.0
39,047
/* * Copyright 2014-2021 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
brharrington/atlas
atlas-core/src/test/scala/com/netflix/atlas/core/model/BlockSuite.scala
Scala
apache-2.0
11,575
package org.jetbrains.plugins.hydra import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.project.Project import org.jetbrains.plugins.scala.project.{ProjectExt, ScalaModule, ScalaSdk, Version} /** * @author Maris Alexandru */ object HydraVersions { val DefaultHydraVersion = "0.9.7" priva...
jastice/intellij-scala
hydra/src/org/jetbrains/plugins/hydra/HydraVersions.scala
Scala
apache-2.0
2,770
/* * The MIT License (MIT) * * Copyright (c) 2014 Ben Howell * * 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, c...
benhowell/diminutives
src/main/scala/net/benhowell/diminutives/controller/TrialController.scala
Scala
mit
1,682
package models import play.api.libs.iteratee.Enumerator import reactivemongo.bson.{BSONDocument, BSONObjectID} import scala.concurrent.ExecutionContext.Implicits.global import utils.mongoBuilder._ import scala.concurrent.Future case class TVChannelCategory(category: String, id: Option[BSONObjectID] = Some(BSONObjectI...
tvlive/tv-api
app/models/TVChannelCategory.scala
Scala
apache-2.0
1,268
package com.github.gdefacci.raz import shapeless._ import shapeless.ops.hlist.Tupler import scala.language.implicitConversions object UriTemplate extends TUriTemplate[PathPosition.Segment, PathPosition.Segment](None, None, Nil, Nil, None) {// with RootPathBuilder[TUriTemplate] { def apply(scheme:Scheme, authori...
gdefacci/raz
raz/src/main/scala/com/github/gdefacci/raz/UriTemplate.scala
Scala
mit
5,190
package foo.bar import play.api.libs.json._ import scala.concurrent.{Future, Await, ExecutionContext} import org.reactivecouchbase.ReactiveCouchbaseDriver import scala.concurrent.duration.Duration import java.util.concurrent.TimeUnit case class Person(name: String, surname: String, age: Int) object Utils { implici...
ReactiveCouchbase/reactivecouchbase-starter-kit
src/main/scala/foo/bar/MyApplication.scala
Scala
apache-2.0
2,117
/* * 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 ...
tzulitai/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/RankITCase.scala
Scala
apache-2.0
39,631
/*********************************************************************** * Copyright (c) 2013-2016 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 ...
tkunicki/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/stats/Z3Frequency.scala
Scala
apache-2.0
5,198
package $organization$ /** * 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...
tillrohrmann/flink-project.g8
src/main/g8/src/main/scala/$organization__packaged$/Job.scala
Scala
apache-2.0
2,133
/* * Copyright 2013 Katarzyna Szawan <kat.szwn@gmail.com> * and Michał Rus <https://michalrus.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/l...
michalrus/agh-mindmap
akka/src/main/scala/edu/agh/mindmapd/actors/http/Poller.scala
Scala
apache-2.0
2,586
package no.uio.musit.test.matchers import no.uio.musit.test.matchers.DateTimeEquivalence._ import org.joda.time.DateTime import org.scalactic.TripleEquals._ trait DateTimeMatchers { final class DateTimeMatcher(val leftSideValue: DateTime) { def mustApproximate(right: DateTime): Unit = leftSideValue === right ...
MUSIT-Norway/musit
musit-test/src/main/scala/no/uio/musit/test/matchers/DateTimeMatchers.scala
Scala
gpl-2.0
762
package com.outr.arango.api import com.outr.arango.api.model._ import io.youi.client.HttpClient import io.youi.http.HttpMethod import io.youi.net._ import io.circe.Json import scala.concurrent.{ExecutionContext, Future} object APICollectionCollectionNameRecalculateCount { def put(client: HttpClient, collecti...
outr/arangodb-scala
api/src/main/scala/com/outr/arango/api/APICollectionCollectionNameRecalculateCount.scala
Scala
mit
575
import scala.language.experimental.macros trait LowPriorityCsvImplicits { implicit def csvFormat[A]: CsvFormat[A] = macro CsvMacros.csvFormatMacro[A] } trait CsvImplicits extends LowPriorityCsvImplicits { def apply[A](func: A => Seq[String]) = new CsvFormat[A] { def apply(value: A) = func(value) } im...
underscoreio/essential-macros
csv/lib/src/main/scala/CsvImplicits.scala
Scala
apache-2.0
470
/* * 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 ...
ksimar/incubator-carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/filterexpr/NullMeasureValueTestCaseFilter.scala
Scala
apache-2.0
2,141
/** * Copyright 2015, deepsense.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 applicable law or agreed ...
deepsense-io/seahorse-workflow-executor
deeplang/src/main/scala/io/deepsense/deeplang/doperables/spark/wrappers/params/common/HasPredictionColumnSelectorParam.scala
Scala
apache-2.0
1,357
package models import java.util.{Date, UUID} import scala.collection.JavaConversions._ import com.datastax.driver.core.utils.UUIDs import com.datastax.driver.core.querybuilder.QueryBuilder import database.{ElasticSearch, Cassandra} import constants.Table import constants.PubSub._ import pubsub.{AliasData, TopicCreat...
lequangdzung/quora-clone
api-app/app/models/Topic.scala
Scala
gpl-2.0
3,824
/* * 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
core/src/main/scala/org/apache/spark/SparkHadoopWriter.scala
Scala
apache-2.0
5,332
package ucesoft.cbm.remote trait RemoteC64 { def updateVideo(x1:Int,y1:Int,x2:Int,y2:Int) : Unit def isConnected : Boolean def stopRemoting : Unit }
abbruzze/kernal64
Kernal64/src/ucesoft/cbm/remote/RemoteC64.scala
Scala
mit
155
package reactivemongo.api.commands.bson import reactivemongo.api.BSONSerializationPack import reactivemongo.api.commands._ import reactivemongo.bson._ object BSONGetLastErrorImplicits { implicit object GetLastErrorWriter extends BSONDocumentWriter[GetLastError] { def write(wc: GetLastError): BSONDocument = { ...
charleskubicek/ReactiveMongo
driver/src/main/scala/api/commands/bson/rwcommands.scala
Scala
apache-2.0
6,712
/* * 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 ...
wangmiao1981/spark
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetRangeCalculator.scala
Scala
apache-2.0
4,870
// scalac: -language:higherKinds // class Foo[+CC[X]] { type Coll = CC[_] }
scala/scala
test/files/neg/t8265.scala
Scala
apache-2.0
76
/* * 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 ...
citlab/vs.msc.ws14
flink-0-7-custom/flink-tests/src/test/scala/org/apache/flink/api/scala/operators/JoinOperatorTest.scala
Scala
apache-2.0
8,748
package sampler.aggr.emp import sampler._ import delta.Projector case class EmpState( name: String, soch: String, dob: MyDate, salary: Int, title: String) private class StateHandler(state: EmpState = null) extends EmpEventHandler { type Return = EmpState def on(evt: EmployeeRegistered): R...
nilskp/delta
src/test/scala/sampler/aggr/emp/state.scala
Scala
mit
860
package io.getquill.norm import io.getquill.ast._ import scala.collection.immutable.{ Map => IMap } /** * How do we want beta reduction to treat Quats? Typically the right answer is when any variable x type X * is reduced to t type T we check that T is a subtype of X and replace it e.g: * <pre>x.foo reduce v:V ->...
getquill/quill
quill-core-portable/src/main/scala/io/getquill/norm/BetaReduction.scala
Scala
apache-2.0
9,491
/* * 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
streaming/src/test/scala/org/apache/spark/streaming/DStreamScopeSuite.scala
Scala
apache-2.0
9,161
package scalap import java.io.{PrintStream, ByteArrayOutputStream} import scala.reflect.internal.pickling.ByteCodecs import scala.tools.scalap.scalax.rules.scalasig.ClassFileParser.{ArrayValue, ConstValueIndex, Annotation} import scala.tools.scalap.scalax.rules.scalasig._ /** * @author Alefas * @since 11/09/15 *...
LPTK/intellij-scala
scalap/src/scalap/Decompiler.scala
Scala
apache-2.0
3,824
package com.originate.scalypher.where import com.originate.scalypher.ConstantString import com.originate.scalypher.ToQuery import com.originate.scalypher.types.IdentifiableMap import com.originate.scalypher.types.Identifiable import com.originate.scalypher.path.Path sealed trait Projection extends ToQuery { def app...
Originate/scalypher
src/main/scala/where/Collection.scala
Scala
mit
914
case object A case object B object Test { def main(args: Array[String]): Unit = { assert(Array(A, B).toList.toString == "List(A, B)") } }
som-snytt/dotty
tests/run/i1284.scala
Scala
apache-2.0
147
/* _ _ _ *\\ ** | (_) | | ** ** ___| |_ __| | ___ clide 2 ** ** / __| | |/ _` |/ _ \\ (c) 2012-2014 Martin Ring ...
martinring/clide2
modules/clide-core/src/main/scala/clide/persistence/Profile.scala
Scala
lgpl-3.0
1,975
package org.jetbrains.plugins.scala.lang.refactoring.extractMethod import com.intellij.psi.{PsiAnnotation, PsiPrimitiveType} import com.intellij.refactoring.util.VariableData import org.jetbrains.plugins.scala.ScalaFileType import org.jetbrains.plugins.scala.lang.psi.api.toplevel.ScTypedDefinition import org.jetbrains...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/extractMethod/ScalaVariableData.scala
Scala
apache-2.0
1,238
package com.twitter /** * =Twitter Server= * * Provides a common configuration setup for internal Twitter servers based on * [[com.twitter.app.App]]. * * An HTTP server is bound to a configurable port (default: 9900) to which commands can be sent * and information queried. Additional handlers can be provided by...
wwezhuimeng/twitter-server
src/main/scala/com/twitter/server/package.scala
Scala
apache-2.0
762
/* * 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 ...
bwsw/sj-platform
core/sj-common/src/test/scala-2.12/com/bwsw/sj/common/dal/model/stream/TstreamStreamDomainTestSuit.scala
Scala
apache-2.0
3,302