code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package ar.edu.unq.tip.qsim.ui /** * Copyright 2014 Tatiana Molinari. * Copyright 2014 Susana Rosito * * 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 ...
molinarirosito/QSim_UI
src/main/scala/ar/edu/unq/tip/qsim/ui/QSimMain.scala
Scala
gpl-3.0
6,649
/* * Copyright 2012-2020 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Netflix/edda
src/main/scala/com/netflix/edda/ExecutionContexts.scala
Scala
apache-2.0
2,433
/* * 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 ...
bravo-zhang/spark
external/flume/src/main/scala/org/apache/spark/streaming/flume/package.scala
Scala
apache-2.0
906
package me.frmr.stripe import net.liftweb.json._ import Serialization._ import JsonDSL._ import Extraction._ import java.util.Arrays import scala.collection.JavaConversions._ trait StripeList[T] extends StripeObject { val data: List[T] val hasMore: Boolean val totalCount: Option[Int] val url: String ...
farmdawgnation/streifen
src/main/scala/me/frmr/stripe/StripeList.scala
Scala
apache-2.0
4,317
package com.twitter.finagle.httpx.netty import org.jboss.netty.handler.codec.http.{HttpMessage, HttpRequest, HttpMethod} /** Proxy for HttpRequest. Used by Request. */ private[finagle] trait HttpRequestProxy extends HttpMessageProxy { protected[finagle] def httpRequest: HttpRequest protected[finagle] def getHtt...
travisbrown/finagle
finagle-httpx/src/main/scala/com/twitter/finagle/httpx/netty/HttpRequestProxy.scala
Scala
apache-2.0
754
package mesosphere.marathon package core.task.termination.impl import java.time.Clock import akka.Done import akka.actor.{ Actor, Cancellable, Props } import akka.stream.ActorMaterializer import com.typesafe.scalalogging.StrictLogging import mesosphere.marathon.core.event.{ InstanceChanged, UnknownInstanceTerminated ...
guenter/marathon
src/main/scala/mesosphere/marathon/core/task/termination/impl/KillServiceActor.scala
Scala
apache-2.0
8,948
package scala.collection.immutable import org.scalacheck.Properties import scala.language.higherKinds import org.scalacheck.Arbitrary.arbInt import org.scalacheck.Arbitrary import org.scalacheck.Gen import org.scalacheck.commands.Commands import scala.collection.mutable import scala.util.{Success, Try} object MapPr...
scala/scala
test/scalacheck/scala/collection/immutable/MapProperties.scala
Scala
apache-2.0
5,302
object test {import scala.runtime.WorksheetSupport._; def main(args: Array[String])=$execute{;$skip(57); val problem = new Pouring(Vector(4,7));System.out.println("""problem : <error> = """ + $show(problem ))} }
frojasg/progfun
progfun/.worksheet/src/test.scala
Scala
mit
221
/* * Copyright 2001-2008 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...
hubertp/scalatest
src/test/scala/org/scalatest/matchers/ShouldBeASymbolSpec.scala
Scala
apache-2.0
13,246
import org.scalatest._ import scalaz.Monad import annotation.tailrec import scalaz._ import Scalaz._ class BasicFreeSpec extends FlatSpec with Matchers with Instrumented { import freez.view._ val testN = Seq[Int]( 1000, 1000, 1000 , 200000, 300000, 500000, 800000 , 1000000, 2000000, 3000000, 50...
mandubian/freez
src/test/scala/BasicFreeSpec.scala
Scala
apache-2.0
4,777
/** * Copyright 2011-2017 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...
MykolaB/gatling
gatling-commons/src/test/scala/io/gatling/commons/util/ClassHelperSpec.scala
Scala
apache-2.0
1,199
/*********************************************************************** * 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-filter/src/test/scala/org/locationtech/geomesa/filter/BoundsTest.scala
Scala
apache-2.0
7,480
/* scala-stm - (c) 2009-2014, Stanford University, PPL */ package scala.concurrent.stm package skel import org.scalatest.FunSuite import scala.reflect.ClassTag class AtomicArraySuite extends FunSuite { test("Unit") { runIsolatedTest(List((), (), ())) } test("Boolean") { runIsolatedTest(List(false, t...
nbronson/scala-stm
src/test/scala/scala/concurrent/stm/skel/AtomicArraySuite.scala
Scala
bsd-3-clause
3,270
package com.greencatsoft.angularjs.core import scala.scalajs.js import com.greencatsoft.angularjs.{ Service, injectable } @js.native @injectable("$scope") trait Scope extends js.Object { def $id: String = js.native def $apply(exp: js.Any = null): js.Any = js.native def $broadcast(name: String, args: js.Any*...
easel/scalajs-angular
src/main/scala/com/greencatsoft/angularjs/core/Scope.scala
Scala
apache-2.0
1,477
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-hbase/geomesa-hbase-spark-runtime/src/test/scala/org/locationtech/geomesa/hbase/spark/HBaseSparkProviderIntegrationTest.scala
Scala
apache-2.0
4,334
def &&(p: Prop) = Prop { (max,n,rng) => run(max,n,rng) match { case Passed => p.run(max, n, rng) case x => x } } def ||(p: Prop) = Prop { (max,n,rng) => run(max,n,rng) match { // In case of failure, run the other prop. case Falsified(msg, _) => p.tag(msg).run(max,n,rng) case x => x...
lucaviolanti/scala-redbook
answerkey/testing/09.answer.scala
Scala
mit
634
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js sbt plugin ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
mdedetrich/scala-js
js-envs/src/main/scala/org/scalajs/jsenv/rhino/package.scala
Scala
bsd-3-clause
1,560
package net.wrap_trap.goju.samples import akka.actor.ActorSystem import akka.testkit.TestActorRef import akka.testkit.TestKit import net.wrap_trap.goju.StopSystemAfterAll import org.scalatest.MustMatchers import org.scalatest.WordSpecLike /** * goju-to: HanoiDB(LSM-trees (Log-Structured Merge Trees) Indexed Storage)...
masayuki038/goju
src/test/scala/net/wrap_trap/goju/samples/HelloAkkaSpec.scala
Scala
mit
781
package fi.pyppe.ircbot.slave import org.joda.time.Period import org.joda.time.format.PeriodFormatterBuilder import org.jsoup.nodes.Document import java.text.NumberFormat import org.jsoup.Jsoup import scala.concurrent.{ExecutionContext, Future} import scala.util.Try object Youtube { private val hmsFormatter = ne...
Pyppe/akka-ircbot
slave/src/main/scala/fi/pyppe/ircbot/slave/Youtube.scala
Scala
mit
1,455
package uk.gov.dvla.vehicles.presentation.common.mappings import org.joda.time.LocalDate import play.api.data.Forms.{of, optional} import play.api.i18n.Messages import uk.gov.dvla.vehicles.presentation.common.services.DateService import Date.notBefore import Date.notInTheFuture import Date.formatter import Date.requir...
dvla/vehicles-presentation-common
app/uk/gov/dvla/vehicles/presentation/common/mappings/DateOfBirth.scala
Scala
mit
928
package lampetia.meta.feature import lampetia.meta.{Property, Feature, Model} import lampetia.model.util._ /** * @author Hossam Karim */ package object sql { sealed trait SqlFeature extends Any with Feature case object Optional extends SqlFeature def optional = Optional case class SqlName(value: String)...
hkarim/lampetia
lampetia-model/src/main/scala/lampetia/meta/feature/sql/package.scala
Scala
mit
4,533
package net.nightwhistler.nwcsc.rest import java.util.concurrent.TimeUnit import akka.actor.ActorRef import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.unmarshalling.PredefinedFromEntityUnmarshallers import akka.pattern.ask import akka.util.Timeout import com.typesafe.scalalogging.Logger import d...
NightWhistler/naivechain-scala
src/main/scala/net/nightwhistler/nwcsc/rest/RestInterface.scala
Scala
apache-2.0
2,470
package com.sksamuel.elastic4s.mappings import org.elasticsearch.common.xcontent.XContentBuilder case class TimestampDefinition(enabled: Boolean, path: Option[String] = None, format: Option[String] = None, default: Option[Str...
beni55/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/mappings/TimestampDefinition.scala
Scala
apache-2.0
1,326
package org.jetbrains.plugins.scala package lang package psi package api package expr import com.intellij.psi._ import com.intellij.psi.util.PsiTreeUtil import org.jetbrains.plugins.scala.extensions.PsiTypeExt import org.jetbrains.plugins.scala.lang.psi.api.base.ScConstructor import org.jetbrains.plugins.scala.lang.ps...
katejim/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ExpectedTypes.scala
Scala
apache-2.0
21,577
/** * This file is part of Facsimile. * * (C) Copyright 2017 Taylor Raack. * * Facsimile is free software: you can redistribute it and/or modify * it under the terms of the Affero GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) an...
facsimile-linux/facsimile
src/main/scala/info/raack/facsimile/Encryption.scala
Scala
agpl-3.0
6,255
/* * Copyright (C) 2009-2011 Mathias Doenitz * * 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...
sirthias/parboiled
parboiled-scala/src/main/scala/org/parboiled/scala/parserunners/BasicParseRunner.scala
Scala
apache-2.0
1,411
package com.seanshubin.todo.application.contract import java.io.InputStream import java.net.URL import java.util trait ClassLoaderContract { def loadClass(name: String): Class[_] def getResource(name: String): URL def getResources(name: String): util.Enumeration[URL] def getSystemResource(name: String): UR...
SeanShubin/todo-application
contract/src/main/scala/com/seanshubin/todo/application/contract/ClassLoaderContract.scala
Scala
unlicense
793
package gh2011c.models import net.liftweb.json.JsonAST.JValue case class GollumPage(title: String, summary: Option[String], sha: String, page_name: String, action: String) object GollumPage { def apply(json: JValue): Option[GollumPage] = { val n2s = gh3.node2String(json)(_) val n2os = gh3.node2Opti...
mgoeminne/github_etl
src/main/scala/gh2011c/models/GollumPage.scala
Scala
mit
706
/** * Copyright (C) 2013 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
orbeon/orbeon-forms
portlet-support/src/main/scala/org/orbeon/oxf/portlet/liferay/LiferaySupport.scala
Scala
lgpl-2.1
5,652
package spire package math import org.scalacheck.Arbitrary import org.scalacheck.Arbitrary.arbitrary import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks import org.scalatest.matchers.should.Matchers import org.scalatest.propspec.AnyPropSpec class RationalCheck extends AnyPropSpec with Matchers with Sc...
non/spire
tests/src/test/scala/spire/math/RationalCheck.scala
Scala
mit
3,903
package irc.utilities.urlparsers import java.text.{DateFormat, SimpleDateFormat} import java.util.{Date, TimeZone} import irc.utilities.URLParser import org.json.JSONObject object ChanParser { def find(url: String): String = { var title = "none" val s = url.replace("thread", "res") val ssplit = s.spl...
wiiam/IrcBot
src/main/scala/irc/utilities/urlparsers/ChanParser.scala
Scala
agpl-3.0
1,529
package com.example import java.nio.charset.StandardCharsets import java.util.Properties import kafka.consumer.ConsumerConfig import org.json4s.{DefaultFormats, jackson} import scala.collection.immutable.HashMap class SimpleKafkaConsumer(kafkaSocket: Socket, zooKeeperSocket: Socket, groupId: String, topic: String) { ...
frossi85/financial-statistics-collector
src/main/scala/com/example/SimpleKafkaConsumer.scala
Scala
apache-2.0
1,721
/* * ModLimiter.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 * [email protected] */ package de.sciss.fscape.modules ...
Sciss/FScape-next
modules/src/main/scala/de/sciss/fscape/modules/ModSlewRateLimiter.scala
Scala
agpl-3.0
5,362
package walfie.gbf.raidfinder.client.views import com.thoughtworks.binding import com.thoughtworks.binding.Binding import com.thoughtworks.binding.Binding._ import org.scalajs.dom import org.scalajs.dom.raw._ import scala.scalajs.js import scala.util.Try import walfie.gbf.raidfinder.client._ import walfie.gbf.raidfind...
xheres/api-gbfraidfinder
client/src/main/scala/walfie/gbf/raidfinder/client/views/SoundSelectionDialog.scala
Scala
mit
4,968
package ch32_matching import scala.util.control.Breaks.{break, breakable} object RabinKarp { def firstIndexOf(main: Array[Char], sub: Array[Char]): Int = { require(main != null, "main array required") require(sub != null, "sub array required") require(main.length >= sub.length, "sub array should be sma...
wangzheng0822/algo
scala/src/main/scala/ch32_matching/RabinKarp.scala
Scala
apache-2.0
1,035
/** * 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...
SumoLogic/sumobot
src/test/scala/com/sumologic/sumobot/http_frontend/SumoBotHttpServerTest.scala
Scala
apache-2.0
8,906
/* * 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
external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala
Scala
apache-2.0
94,015
package org.example.algorithms.trees import java.util.NoSuchElementException import scala.annotation.tailrec /** Prove: n keys -> height = O(log n) * Lemma: minimum F(H+2) + 1 vertices //F(n) denotes Fibonacci numbers * Proof. * Let m(h) - minimal amount of vertices for a given h * Obviously: m(h+2) = m(h+...
sayon/scala-algorithm
src/org/example/algorithms/trees/AVLTree.scala
Scala
bsd-3-clause
5,855
/* * 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
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
Scala
apache-2.0
157,410
/* - Coeus web framework ------------------------- * * Licensed under the Apache License, Version 2.0. * * Author: Spiros Tzavellas */ package com.tzavellas.coeus.mvc.view.scalate import javax.servlet.ServletContext import scala.collection.mutable.Map import org.fusesource.scalate.{ Binding, TemplateEngine } impo...
sptz45/coeus
src/main/scala/com/tzavellas/coeus/mvc/view/scalate/ScalateConfigurator.scala
Scala
apache-2.0
1,100
package skinny.worker import skinny.logging.Logging import org.joda.time.DateTime import java.util.concurrent._ /** * Service which manages workers. */ case class SkinnyWorkerService(name: String = "skinny-framework-worker-service", threadPoolSize: Int = 10) extends Logging { logger.info(s"SkinnyWorkerService (n...
BlackPrincess/skinny-framework
framework/src/main/scala/skinny/worker/SkinnyWorkerService.scala
Scala
mit
3,517
package vonsim.webapp import vonsim.utils.CollectionUtils._ import vonsim.simulator.InstructionInfo import scala.scalajs.js.annotation.ScalaJSDefined import scala.scalajs.js.annotation.JSName import org.scalajs.dom.html._ import org.scalajs.dom.raw.HTMLElement import org.scalajs.dom import scala.scalajs.js import js.JS...
facundoq/vonsim
src/main/scala/vonsim/webapp/TutorialUI.scala
Scala
agpl-3.0
8,001
/* * Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
zoo/src/main/scala/com/intel/analytics/zoo/common/TensorOperation.scala
Scala
apache-2.0
3,400
package special.collection import scalan.{NeverInline, RType} import spire.syntax.all.cfor class CViewColl[@specialized A, @specialized B](val source: Coll[A], val f: A => B)(implicit val tItem: RType[B]) extends Coll[B] { private var isCalculated: Array[Boolean] = Array.ofDim[Boolean](source.length)(RType.Boolea...
ScorexFoundation/sigmastate-interpreter
library-impl/src/main/scala/special/collection/ViewColls.scala
Scala
mit
9,083
/* * 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 ...
javachen/learning-spark
src/main/scala/org/apache/spark/examples/SparkKMeans.scala
Scala
apache-2.0
3,138
/** * <slate_header> * author: Kishore Reddy * url: https://github.com/kishorereddy/scala-slate * copyright: 2016 Kishore Reddy * license: https://github.com/kishorereddy/scala-slate/blob/master/LICENSE.md * desc: a scala micro-framework * usage: Please refer to license on github for more info. * </slat...
kishorereddy/akka-http
src/main/scala/slate/http/HttpJson.scala
Scala
mit
531
/* * Copyright 2015 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 ...
Drooids/spark-kernel
kernel-api/src/main/scala/com/ibm/spark/utils/KeyValuePairUtils.scala
Scala
apache-2.0
2,062
package cobase.user import java.util.UUID import com.mohiva.play.silhouette.api.{Identity, LoginInfo} /** * The user object. * * @param id The unique ID of the user. * @param loginInfo The linked login info. * @param firstName Maybe the first name of the authenticated user. * @param lastName Maybe the last nam...
Cobase/cobase-pro
app/cobase/user/User.scala
Scala
mit
764
package org.scaladebugger.api.lowlevel.events import org.scaladebugger.api.lowlevel.events.EventType.EventType /** * Represents an event manager whose operations do nothing. */ class DummyEventManager extends EventManager { /** * Adds the event function to this manager. The return value of the handler * fun...
ensime/scala-debugger
scala-debugger-api/src/main/scala/org/scaladebugger/api/lowlevel/events/DummyEventManager.scala
Scala
apache-2.0
2,881
/* * 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/nodes/physical/stream/StreamPhysicalLocalWindowAggregate.scala
Scala
apache-2.0
5,236
package org.jetbrains.plugins.scala package lang package psi package api package expr import org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.lang.psi.api.base.patterns.ScCaseClauses import com.intellij.psi.util.PsiTreeUtil /** * Author: Alexa...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ScCatchBlock.scala
Scala
apache-2.0
830
package notebook.front package widgets import scala.util.Random import scala.xml.{NodeSeq, UnprefixedAttribute, Null} import play.api.libs.json._ import play.api.libs.json.Json.JsValueWrapper import notebook._ import notebook.JsonCodec._ trait PipeComponent[X <: PipeComponent[X]] { def id:String def name:String ...
antonkulaga/spark-notebook
modules/common/src/main/scala/notebook/front/widgets/Flow.scala
Scala
apache-2.0
11,897
package com.bwsw.tstreamstransactionserver.netty.server.handler.data import com.bwsw.tstreamstransactionserver.netty.Descriptors import com.bwsw.tstreamstransactionserver.netty.server.TransactionServer import com.bwsw.tstreamstransactionserver.netty.server.handler.RequestHandler import com.bwsw.tstreamstransactionserv...
bwsw/tstreams-transaction-server
src/main/scala/com/bwsw/tstreamstransactionserver/netty/server/handler/data/GetTransactionDataHandler.scala
Scala
apache-2.0
1,408
/* * Copyright ActionML, LLC under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * ActionML licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except...
heshamMassoud/RouteMe-API
PredictionIOEngine/src/main/scala/Engine.scala
Scala
apache-2.0
3,753
package org.kimbasoft.akka.router import akka.actor.{Props, Actor} /** * Missing documentation. * * @author <a href="[email protected]">Steffen Krause</a> * @since 1.0 */ class ActorSupervisor(worker_type: String, worker_num: Int) extends Actor { println(s"""Creating $worker_num "$worker_type" wor...
kimba74/sandbox-scala
src/main/scala/org/kimbasoft/akka/router/ActorSupervisor.scala
Scala
gpl-3.0
754
package recommender import inputdata.DataHolder import cmd._ object mainHolder { private var recommender: Option[Recommender] = None private var dataHolder: Option[DataHolder] = None //private var dataHolder: Option[data_holder] = None def setup(conf: Conf): Unit ={ // dataHolder = Some(new MovieLe...
litaoran/spray-sample
src/main/scala/recommender/mainHolder.scala
Scala
mit
1,415
package com.sksamuel.scrimage.filter import com.sksamuel.scrimage.ImmutableImage import org.scalatest.{BeforeAndAfter, FunSuite, OneInstancePerTest} class RobertsFilterTest extends FunSuite with BeforeAndAfter with OneInstancePerTest { private val original = ImmutableImage.fromResource("/bird_small.png") test("...
sksamuel/scrimage
scrimage-filters/src/test/scala/com/sksamuel/scrimage/filter/RobertsFilterTest.scala
Scala
apache-2.0
525
/* * Copyright 2017 Datamountaineer. * * 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...
CodeSmell/stream-reactor
kafka-connect-rethink/src/test/scala/com/datamountaineer/streamreactor/connect/rethink/config/TestReThinkSourceSettings.scala
Scala
apache-2.0
1,722
package org.jetbrains.plugins.scala package lang package parser package parsing package top import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder import org.jetbrains.plugins.scala.lang.parser.parsing.top.template.TemplateBody obje...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/parser/parsing/top/TemplateOpt.scala
Scala
apache-2.0
570
package org.littlewings.tweetbot.config import org.jasypt.util.text.{BasicTextEncryptor, TextEncryptor} object EncryptTwitterConfigSupport { val DisabledEncrypt: Boolean = java.lang.Boolean.parseBoolean(System.getenv("TWEET_BOT_DISABLE_ENCRYPT_TWITTER_CONFIG")) val EncryptPassword: String = System.getenv("TW...
kazuhira-r/tweet-bot
src/main/scala/org/littlewings/tweetbot/config/EncryptTwitterConfigSupport.scala
Scala
mit
1,296
package foo {}; package bar {}; package baz {}
yusuke2255/dotty
tests/pos/t2973.scala
Scala
bsd-3-clause
47
package com.fhuertas.monkey.utils import akka.actor.{ActorRef, Props} import com.fhuertas.monkey.models.Monkey import scalaz.Reader class FastMonkey(canyon: ActorRef) extends Monkey(canyon) with FastConfiguration object FastMonkey { val props = Reader { (canyon: ActorRef) => Props(classOf[FastMonkey], canyon...
fhuertas/monkey
src/test/scala/com/fhuertas/monkey/utils/FastMonkey.scala
Scala
apache-2.0
329
// 1EC Graph Parser // Copyright (c) University of California // Copyright (c) Jonathan Kummerfeld // // This software is covered by a license. See the LICENSE.txt file in the // top-level directory of this distribution or at // https://github.com/jkkummerfeld/1ec-graph-parser for the full text of the // license. pac...
jkkummerfeld/1ec-graph-parser
parser/src/main/scala/fullStructureParser.scala
Scala
isc
27,050
/* * 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 ...
bravo-zhang/spark
sql/core/src/test/scala/org/apache/spark/sql/test/GenericFlatSpecSuite.scala
Scala
apache-2.0
1,772
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
mike0sv/spark
core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedClusterMessage.scala
Scala
apache-2.0
4,691
/* * Copyright 2017 PayPal * * 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 ...
anilgursel/squbs
squbs-unicomplex/src/main/scala/org/squbs/unicomplex/UnicomplexBoot.scala
Scala
apache-2.0
29,744
package model.auth import common.FieldError import jwt.model.Tokens import model.User case class AuthPayload( user: Option[User] = None, tokens: Option[Tokens] = None, errors: Option[List[FieldError]] = None )
sysgears/apollo-universal-starter-kit
modules/user/server-scala/src/main/scala/model/auth/AuthPayload.scala
Scala
mit
224
package com.wavesplatform.events.protobuf import cats.Monoid import com.google.protobuf.ByteString import com.wavesplatform.events.StateUpdate.AssetInfo import com.wavesplatform.events.protobuf.BlockchainUpdated.Append.Body import com.wavesplatform.events.protobuf.BlockchainUpdated.{Append, Rollback, Update} import co...
wavesplatform/Waves
grpc-server/src/main/scala/com/wavesplatform/events/protobuf/serde/package.scala
Scala
mit
6,240
/* * This file is part of eCobertura. * * Copyright (c) 2010 Joachim Hofer * All rights reserved. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/ep...
jmhofer/eCobertura
ecobertura.ui/src/main/scala/ecobertura/ui/util/layout/FormDataBuilder.scala
Scala
epl-1.0
1,737
package cmwell.analytics.util import org.apache.spark.sql.{Dataset, SparkSession} /** * Takes two Datasets that each contain a single 'uuid' column, and does a set difference on the two datasets * (i.e., determine the uuids in uuids1 that are not also in uuids2). The resulting uuids are expanded to include * th...
bryaakov/CM-Well
tools/dataConsistencyTool/cmwell-spark-analysis/src/main/scala/cmwell/analytics/util/SetDifferenceAndFilter.scala
Scala
apache-2.0
3,035
package taczombie.test.model import org.specs2.mutable._ import taczombie.test.model.TestObjects._ import taczombie.model.GameFactory import taczombie.model.util.CoordinateHelper._ class CoordinateHelperSpec extends Specification { val testFile = getClass().getResource("/TestLevel_correct") val testGame = Game...
mahieke/TacZombie
model/src/test/scala/taczombie/test/model/CoordinateHelperSpec.scala
Scala
gpl-2.0
3,651
package com.twitter.inject.server.tests import com.google.inject.AbstractModule import com.twitter.finagle.http.Status import com.twitter.inject.app.App import com.twitter.inject.server.{EmbeddedTwitterServer, Ports, TwitterServer} import com.twitter.inject.{Test, TwitterModule} import com.twitter.server.Lifecycle.War...
syamantm/finatra
inject/inject-server/src/test/scala/com/twitter/inject/server/tests/StartupIntegrationTest.scala
Scala
apache-2.0
5,541
package com.twitter.finagle.buoyant.h2 package netty4 import io.netty.buffer.{ByteBuf, ByteBufHolder, EmptyByteBuf, Unpooled} import io.netty.channel.ChannelHandler.Sharable import io.netty.channel.{ChannelHandlerContext, ChannelInboundHandlerAdapter} /** * This was originally copied from finagle's implementation of...
denverwilliams/linkerd
finagle/h2/src/main/scala/com/twitter/finagle/buoyant/h2/netty4/UnpoolHandler.scala
Scala
apache-2.0
2,386
package com.romankagan.languages.classroomanalysis /** * Created by roman on 5/6/15. */ object LongestImprovement extends App{ }
kagan770/talentbuddy
src/com/romankagan/languages/classroomanalysis/LongestImprovement.scala
Scala
apache-2.0
133
package org.littlewings.javaee7.rest import javax.enterprise.context.RequestScoped import javax.enterprise.inject.Instance import javax.enterprise.inject.spi.{Bean, BeanManager, CDI} import javax.inject.Inject import javax.naming.InitialContext import javax.ws.rs._ import javax.ws.rs.core.MediaType import org.littlew...
kazuhira-r/javaee7-scala-examples
cdi-programmatic-lookup/src/main/scala/org/littlewings/javaee7/rest/CalcResource.scala
Scala
mit
2,154
/* * -╥⌐⌐⌐⌐ -⌐⌐⌐⌐- * ≡╢░░░░⌐\\░░░φ ╓╝░░░░⌐░░░░╪╕ * ╣╬░░` `░░░╢┘ φ▒╣╬╝╜ ░░╢╣Q * ║╣╬░⌐ ` ╤▒▒▒Å` ║╢╬╣ * ╚╣╬░⌐ ╔▒▒▒▒`«╕ ╢╢╣▒ * ╫╬░░╖ .░ ╙╨╨ ╣╣╬░φ ╓φ░╢╢Å * ╙╢░░░░⌐"░░░╜ ╙Å░░░░⌐░░░░╝` * ``˚¬ ⌐ ˚˚⌐´ * * ...
Flipkart/connekt
commons/src/main/scala/com/flipkart/connekt/commons/entities/DeviceDetails.scala
Scala
mit
2,845
package dwaspada.thedaam.domain import java.io.Serializable trait ValueObject[V] extends Serializable { /** * Comparable to the same ValueObject * * @param other concrete type of ValueObject also * @return */ def sameValueAs(other: V): Boolean }
dewey92/commuterline-ddd
src/main/scala/dwaspada/thedaam/domain/ValueObject.scala
Scala
mit
273
package com.github.fellowship_of_the_bus package tdtd package game import IDMap._ import scala.collection.mutable.Set import lib.game.GameConfig import scala.math._ import GameMap._ trait TowerType { def damage: Float def damage_=(d: Float): Unit def fireRate: Int def fireRate_=(r: Int): Unit def range: Float d...
Fellowship-of-the-Bus/tdtd
src/main/scala/game/Tower.scala
Scala
apache-2.0
17,438
package net.stoerr.grokconstructor.patterntranslation import scala.util.matching.Regex /** * Translates a log4j conversation pattern into a grok pattern for parsing the log4j output * * @author <a href="http://www.stoerr.net/">Hans-Peter Stoerr</a> * @since 16.02.2015 * @see "https://logging.apache.org/log4...
stoerr/GrokConstructor
src/main/scala/net/stoerr/grokconstructor/patterntranslation/Log4jTranslator.scala
Scala
gpl-3.0
5,576
/** * This file is part of mycollab-mobile. * * mycollab-mobile 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. * * mycollab-mo...
maduhu/mycollab
mycollab-mobile/src/main/scala/com/esofthead/mycollab/mobile/shell/ShellUrlResolver.scala
Scala
agpl-3.0
1,806
/* * * /\\\\\\\\\\ * /\\\\\\///\\\\\\ * /\\\\\\/ \\///\\\\\\ /\\\\\\\\\\\\\\\\\\ /\\\\\\ /\\\\\\ * /\\\\\\ \\//\\\\\\ /\\\\\\/////\\\\\\ /\\\\\\\\\\\\\\\\\\\\\\ \\/// /\\\\\\\\\\ /\\\\\\\\\\ /\\\\\\ /\\\\\\ /\\\\\\\\\\\\\\\\\\\\ * \\/\\\\\\ \\/\\\\\\ \\/\\\\\\\\\\\\\\\\\\\...
vagm/Optimus
solver-gurobi/src/main/scala/optimus/optimization/Gurobi.scala
Scala
lgpl-3.0
9,261
/* Copyright 2012 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
benpence/scalding
scalding-core/src/test/scala/com/twitter/scalding/mathematics/HistogramTest.scala
Scala
apache-2.0
2,363
/*********************************************************************** * Copyright (c) 2013-2022 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...
locationtech/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/index/TemporalIndexCheckTest.scala
Scala
apache-2.0
4,580
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
shaneknapp/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/SubExprEliminationBenchmark.scala
Scala
apache-2.0
5,134
package metamorphic.generator.slick import metamorphic.MetamorphicException import metamorphic.dsl.model._ import metamorphic.dsl.generator._ import metamorphic.dsl.util.StringImplicits._ import metamorphic.dsl.util.Instantiator import scala.reflect.macros.blackbox.Context class SlickRepositoryGenerator extends Repo...
frroliveira/metamorphic
metamorphic-slick/src/main/scala/metamorphic/generator/slick/SlickRepositoryGenerator.scala
Scala
mit
5,684
package com.outr.arango case class ArangoError(code: Int, num: Int, message: String, exception: String) { lazy val errorCode: ArangoCode = ArangoCode(num) def is(code: ArangoCode): Boolean = code == errorCode override def toString: String = s"message: $message, exception: $exception, code: $errorCode" }
outr/scarango
driver/src/main/scala/com/outr/arango/ArangoError.scala
Scala
mit
313
/* * Copyright (C) 2012 Romain Reuillon * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progra...
openmole/openmole
openmole/plugins/org.openmole.plugin.domain.modifier/src/main/scala/org/openmole/plugin/domain/modifier/package.scala
Scala
agpl-3.0
4,394
/* * Copyright (C) 2016 Nikos Katzouris * * 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 program is d...
nkatzz/OLED
src/main/scala/oled/mwua/Learner.scala
Scala
gpl-3.0
63,191
package com.github.nethad.clustermeister.integration.sc03 // algorithm-specific message case class SignalMessage[@specialized SourceId, @specialized TargetId, @specialized SignalType](sourceId: SourceId, targetId: TargetId, signal: SignalType) { override def toString = "Signal(sourceId=" + sourceId + ", targetId=" +...
nethad/clustermeister
integration-tests/src/main/scala/com/github/nethad/clustermeister/integration/sc03/SignalMessage.scala
Scala
apache-2.0
361
package app import fuel.util.Options import scala.collection.mutable final case class MissingRequiredArgumentException(message: String, cause: Throwable = None.orNull) extends Exception(message, cause) final case class UnrecognizedArgumentException(message: String, cause: Throwable = None.orNull) extends Except...
kkrawiec/CDGP
src/main/scala/app/CDGPOptions.scala
Scala
mit
18,838
package nodes.misc import nodes.stats.TermFrequency import org.apache.spark.SparkContext import org.scalatest.FunSuite import workflow.PipelineContext class TermFrequencySuite extends FunSuite with PipelineContext { test("term frequency of simple strings") { sc = new SparkContext("local", "test") val in = S...
tomerk/keystone
src/test/scala/nodes/misc/TermFrequencySuite.scala
Scala
apache-2.0
1,138
/* * 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
core/shared/src/test/scala/kantan/csv/DecodeResultTests.scala
Scala
mit
1,596
package com.twitter.finagle import com.twitter.finagle.stats.DefaultStatsReceiver import com.twitter.finagle.toggle.{StandardToggleMap, ToggleMap} package object memcached { /** * The name of the finagle-memcached [[ToggleMap]]. */ private[this] val LibraryName: String = "com.twitter.finagle.memcached"...
twitter/finagle
finagle-memcached/src/main/scala/com/twitter/finagle/package.scala
Scala
apache-2.0
488
package com.twitter.finatra.http.tests.integration.doeverything.main.domain import com.twitter.finatra.validation.constraints.PastTime case class TestUserWithInvalidFieldValidation(@PastTime name: String)
twitter/finatra
http-server/src/test/scala/com/twitter/finatra/http/tests/integration/doeverything/main/domain/TestUserWithInvalidFieldValidation.scala
Scala
apache-2.0
207
package metamorphic.dsl.model.builder import metamorphic.dsl.model.Entity import metamorphic.dsl.util.Attachable class EntityBuilder(val entityName: String) extends Attachable { private var builders: List[PropertyBuilder] = Nil def build: Entity = { Entity(entityName, propertyBuilders.map(builder => builder...
frroliveira/metamorphic
metamorphic/src/main/scala/metamorphic/dsl/model/builder/EntityBuilder.scala
Scala
mit
950
package jp.opap.material.dao import java.util.UUID import com.mongodb.BasicDBObject import com.mongodb.client.MongoDatabase import jp.opap.material.dao.MongoComponentDao.FileAndThumbnail import jp.opap.material.dao.MongoDao.Documents import jp.opap.material.model.ComponentEntry import jp.opap.material.model.Component...
opap-jp/material-explorer
rest/src/main/scala/jp/opap/material/dao/MongoComponentDao.scala
Scala
mit
3,837
package com.sfxcode.sapphire.core.fxml import scala.reflect.runtime.universe import scala.reflect.runtime.universe._ case class FxmlLocation(path: String) extends scala.annotation.StaticAnnotation object FxmlLocation { def pathValue(clazzTag: scala.reflect.ClassTag[_]): String = { var result = "" val runt...
sfxcode/sapphire-core
src/main/scala/com/sfxcode/sapphire/core/fxml/FxmlLocation.scala
Scala
apache-2.0
802
/* * Copyright (C) 2011 Romain Reuillon * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progra...
openmole/openmole
openmole/core/org.openmole.core.workflow/src/test/scala/org/openmole/core/workflow/mole/HookSpec.scala
Scala
agpl-3.0
2,379
import scala.quoted.* inline def rewrite[T](inline x: Any): Any = ${ stringRewriter('x) } private def stringRewriter(e: Expr[Any])(using Quotes): Expr[Any] = StringRewriter.transform(e) private object StringRewriter extends ExprMap { def transform[T](e: Expr[T])(using Type[T])(using Quotes): Expr[T] = e match ...
dotty-staging/dotty
tests/run-macros/expr-map-1/Macro_1.scala
Scala
apache-2.0
503
package com.sksamuel.elastic4s import com.sksamuel.elastic4s.DefinitionAttributes._ import com.sksamuel.elastic4s.analyzers.Analyzer import org.elasticsearch.common.geo.GeoDistance import org.elasticsearch.common.unit.{DistanceUnit, Fuzziness} import org.elasticsearch.index.query.CommonTermsQueryBuilder.Operator impor...
sjoerdmulder/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/queries.scala
Scala
apache-2.0
49,125