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 cromwell.core import com.typesafe.config.ConfigFactory import common.util.TryUtil import spray.json._ import net.ceedubs.ficus.Ficus._ import scala.collection.JavaConverters._ import scala.util.{Failure, Success, Try} /** * WorkflowOptions is constructed with a String -> String map (usually as a JsObject). ...
ohsu-comp-bio/cromwell
core/src/main/scala/cromwell/core/WorkflowOptions.scala
Scala
bsd-3-clause
8,781
/* * 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 ...
barbaragomes/incubator-iota
fey-core/src/main/scala/org/apache/iota/fey/TrieNode.scala
Scala
apache-2.0
4,963
package mesosphere.marathon.state import mesosphere.marathon.MarathonSpec import org.joda.time.{ DateTime, DateTimeZone } class TimestampTest extends MarathonSpec { test("Ordering") { val t1 = Timestamp(1024) val t2 = Timestamp(2048) assert(t1.compare(t2) < 0) } test("Independent of timezone") { ...
quamilek/marathon
src/test/scala/mesosphere/marathon/state/TimestampTest.scala
Scala
apache-2.0
501
/* Copyright 2009-2011 Jay Conrod * * This file is part of Tungsten. * * Tungsten 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 of * the License, or (at your option) any late...
jayconrod/tungsten
core/src/main/scala/tungsten/Parameter.scala
Scala
gpl-2.0
1,027
/* * Copyright 2017 Zhang Di * * 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 ...
statgenetics/seqspark
src/main/scala/org/dizhang/seqspark/numerics/package.scala
Scala
apache-2.0
902
package org.sameersingh.mf import scala.collection.mutable import scala.collection.mutable.ArrayBuffer import scala.reflect.ClassTag import java.io._ import java.util.zip.GZIPOutputStream import scala.Some import scala.io.Source trait Parameters { type StochasticGradientType def name: String def gradientUpdat...
sameersingh/mf
src/main/scala/org/sameersingh/mf/Parameters.scala
Scala
apache-2.0
7,517
/** * * 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 ...
tveronezi/boxdata
src/main/scala/boxdata/ejb/DeviceUsageEjb.scala
Scala
apache-2.0
1,272
package fr.mycorp.soc.streaming import java.util.Properties import java.util.concurrent.TimeUnit import kafka.consumer.SimpleConsumer import kafka.integration.KafkaServerTestHarness import kafka.message.Message import kafka.server.KafkaConfig import kafka.utils.TestUtils import org.apache.kafka.clients.producer._ impo...
barkbay/flume-spark
src/test/scala/fr/mycorp/soc/streaming/FlumeKafkaStreamingTest.scala
Scala
apache-2.0
3,268
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package java.util.function @FunctionalInterfa...
scala-js/scala-js
javalib/src/main/scala/java/util/function/ObjLongConsumer.scala
Scala
apache-2.0
390
/* 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...
nkhuyu/tormenta
tormenta-kestrel/src/main/scala/com/twitter/tormenta/spout/KestrelSpout.scala
Scala
apache-2.0
1,167
/* * 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/distributed/PingActor.scala
Scala
gpl-3.0
1,319
package io.youi.image import io.youi.drawable.Context import io.youi.image.resize.ImageResizer import org.scalajs.dom.html.Canvas import reactify._ import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future class AnimatedImage(frames: Vector[Image], delay: Double) extends Image { asse...
outr/youi
gui/src/main/scala/io/youi/image/AnimatedImage.scala
Scala
mit
1,555
package com.twitter.finagle.redis.integration import com.twitter.conversions.time._ import com.twitter.finagle.redis.SentinelClientTest import com.twitter.finagle.redis.tags.{ClientTest, RedisTest} import com.twitter.finagle.redis.util.{BufToString, CBToString, StringToBuf, StringToChannelBuffer} import com.twitter.fi...
adriancole/finagle
finagle-redis/src/test/scala/com/twitter/finagle/redis/commands/sentinel/SentinelClientIntegrationSuite.scala
Scala
apache-2.0
8,298
package bootstrap.liftweb import _root_.net.liftweb.common._ import _root_.net.liftweb.util._ import _root_.net.liftweb.http._ import _root_.net.liftweb.sitemap._ import _root_.net.liftweb.sitemap.Loc._ import Helpers._ import _root_.net.liftweb.http.auth._ /** * A class that's instantiated early and run. It allo...
jeppenejsum/liftweb
examples/http-authentication/src/main/scala/bootstrap/liftweb/Boot.scala
Scala
apache-2.0
1,684
package com.blogspot.nurkiewicz import org.springframework.stereotype.Service import org.springframework.beans.factory.annotation.Autowired import org.springframework.data.domain.PageRequest import javax.annotation.PostConstruct import org.springframework.transaction.annotation.{Propagation, Transactional} import net....
nurkiewicz/spring-rest-wadl
showcase/src/main/scala/com/blogspot/nurkiewicz/BookService.scala
Scala
apache-2.0
4,636
/** Pretty-printing infrastructure using Kiama * * For each feature declaring a new Term constructor, * it should extend this trait. * * Subclass are obligated to override: * * - operatorPrecedence, for terms and types: * assign to each term constructor an integer * signifying how tightly the ...
inc-lc/ilc-scala
src/main/scala/ilc/feature/base/Pretty.scala
Scala
mit
5,304
/* * 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/main/scala/com/comcast/money/core/internal/SpanContext.scala
Scala
apache-2.0
886
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
VlachJosef/bforms
app/uk/gov/hmrc/bforms/models/ComponentTypeRaw.scala
Scala
apache-2.0
1,719
/************************************************************************* * * * 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/workflow/tool_manager/workflow/workflow_mixins/mongo/chemical_db/QueryChemicals.scala
Scala
gpl-3.0
7,859
/* * 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 ...
guoxiaolongzte/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/util/DateFormatterSuite.scala
Scala
apache-2.0
3,200
/* * Copyright 2011-2022 GatlingCorp (https://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
gatling/gatling
gatling-commons-shared-unstable/src/main/scala/io/gatling/commons/shared/unstable/model/stats/assertion/AssertionResult.scala
Scala
apache-2.0
856
package com.xenopsconsulting.gamedayapi import fetchstrategies.FetchStrategy import xml.Elem import java.util.Date class TestMissingStatsFetchStrategy(date: Date, team: String, nightcap: Boolean = false) extends FetchStrategy { val _date = date val _team = team val _nightcap = nightcap /* All test XML fi...
ecopony/scala-gameday-api
src/test/scala/com/xenopsconsulting/gamedayapi/TestMissingStatsFetchStrategy.scala
Scala
mit
121,888
import sbt._ import Keys._ object BendARoniBuild extends Build { lazy val bendARoni = (project in file(".") aggregate(core, examples) dependsOn(core, examples) settings(commonSettings: _*) settings( moduleName := "bend-a-roni-root" ) ) lazy val core = (project settings(commonSetti...
harveywi/bend-a-roni
project/Build.scala
Scala
mit
1,438
/* * Copyright 2016 Nicolas Rinaudo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
nrinaudo/kantan.codecs
core/jvm/src/main/scala/kantan/codecs/resource/bom/BomWriter.scala
Scala
apache-2.0
1,049
package com.github.ldaniels528.trifecta.modules.etl.io.trigger.impl import java.io.File import com.github.ldaniels528.trifecta.modules.etl.io.archive.Archive /** * Represents a Directory which may contain file files * @author lawrence.daniels@gmail.com */ case class FileFeedDirectory(path: String, feeds: Seq[F...
ldaniels528/trifecta
app-modules/etl/src/main/scala/com/github/ldaniels528/trifecta/modules/etl/io/trigger/impl/FileFeedDirectory.scala
Scala
apache-2.0
447
package com.asto.dmp.taobaowarn.service.impl import com.asto.dmp.taobaowarn.base.Constants import com.asto.dmp.taobaowarn.dao.impl.BizDaoForBShop import com.asto.dmp.taobaowarn.service.Service import com.asto.dmp.taobaowarn.util.FileUtils class BShopService extends Service { override def runServices() = { FileU...
zj-lingxin/dmp_taobao_warn
src/main/scala/com/asto/dmp/taobaowarn/service/impl/BShopService.scala
Scala
mit
602
package controllers import no.uio.musit.MusitResults.{ MusitError, MusitResult, MusitSuccess, MusitValidationError } import no.uio.musit.models.{ActorId, Email, MuseumId, Museums} import no.uio.musit.security.ModuleConstraint import no.uio.musit.security.Permissions.Permission import play.api.mvc.{Action, AnyC...
MUSIT-Norway/musit
service_backend/app/controllers/NodeAuthController.scala
Scala
gpl-2.0
3,210
import java.text.SimpleDateFormat import java.util.Date import com.typesafe.sbt.SbtScalariform._ import sbt.Keys._ import sbt._ import sbtassembly.Plugin.AssemblyKeys._ import sbtassembly.Plugin._ import sbtbuildinfo.Plugin._ object Resolvers { val codebragResolvers = Seq( "Sonatype releases" at "http://oss.son...
softwaremill/codebrag
project/Build.scala
Scala
agpl-3.0
10,968
import sbt._ import Keys._ import PlayProject._ object ApplicationBuild extends Build { val appName = "overlord" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq( "com.google.guava" % "guava" % "12.0", "org.jclouds" % "jclouds-compute" % "1.5.5", "org.jclouds" % "jclouds-loadb...
icambridge-old/overlord
project/Build.scala
Scala
mit
1,048
package metamorphic.dsl import metamorphic.dsl.util.StringImplicits._ import scala.reflect.macros.blackbox.Context package object model { implicit class EntityImplicits(entity: Entity) { def id: String = entity.name.id def obj: String = entity.name.obj def repository: String = entity.name.repository ...
frroliveira/metamorphic
metamorphic/src/main/scala/metamorphic/dsl/model/package.scala
Scala
mit
2,086
package lila.round import scala.concurrent.duration._ import akka.actor._ import akka.pattern.{ ask, pipe } import chess.{ Color, White, Black } import play.api.libs.iteratee._ import play.api.libs.json._ import actorApi._ import lila.common.LightUser import lila.game.actorApi.{ StartGame, UserStartGame } import lil...
Happy0/lila
modules/round/src/main/Socket.scala
Scala
mit
7,194
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author Arash Fard, Usman Nisar, Ayushi Jain, John Miller * @version 1.2 * @date Thu Nov 25 11:28:31 EDT 2013 * @see LICENSE (MIT style license file). */ package scalation.graphalytics import collection._ import collect...
mvnural/scalation
src/main/scala/scalation/graphalytics/DigTightSim.scala
Scala
mit
15,090
package com.twitter.util.security import com.twitter.logging.Logger import com.twitter.util.{Return, Throw, Try} import com.twitter.util.security.Pkcs8KeyManagerFactory._ import java.io.File import java.security.{KeyFactory, KeyStore, PrivateKey} import java.security.cert.X509Certificate import java.security.spec.PKCS...
BuoyantIO/twitter-util
util-security/src/main/scala/com/twitter/util/security/Pkcs8KeyManagerFactory.scala
Scala
apache-2.0
2,810
/** Copyright 2015 TappingStone, 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 ...
nvoron23/PredictionIO
tools/src/main/scala/export/EventsToFile.scala
Scala
apache-2.0
2,798
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
liquidarmour/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600/v3/B35.scala
Scala
apache-2.0
932
package com.thoughtworks.todo import com.thoughtworks.binding.{Binding, dom} import com.thoughtworks.binding.Binding.{BindingSeq, Constants, Var, Vars} import scala.scalajs.js.annotation.JSExport import org.scalajs.dom.{Event, KeyboardEvent, window} import org.scalajs.dom.ext.{KeyCode, LocalStorage} import org.scalajs...
slegrand45/todomvc
examples/binding-scala/js/src/main/scala/com/thoughtworks/todo/Main.scala
Scala
mit
6,552
package gh.test.gh2013.payload import gh2013.payloads.{PushEventPayload} import net.liftweb.json._ import org.scalatest.{Matchers, FlatSpec} class PushEventPayloadTest extends FlatSpec with Matchers { "A valid PushEvent payload" must "be correctly parsed" in { val json = parse( """ | { ...
mgoeminne/github_etl
src/test/scala/gh/test/gh2013/payload/PushEventPayloadTest.scala
Scala
mit
2,321
import java.util.Scanner object Problem1 { def main(args: Array[String]): Unit = { val input = new Scanner(System.in); print("Enter the word to search for: "); val word = input.nextLine(); print("Enter the text to search: "); val text = input.nextLine(); println("First...
CS-CLUB/contests
2012/submissions/Pat Smuk/1/Scala/Problem1.scala
Scala
gpl-3.0
392
package ru.dgolubets.jsmoduleloader.api.commonjs import java.io.{File, _} import jdk.nashorn.api.scripting.ScriptObjectMirror import org.scalatest._ import ru.dgolubets.jsmoduleloader.api.readers.TestFileModuleReader trait CommonJsLoaderSpecBase extends TestRegistration with Matchers { this: Suite => import or...
DGolubets/js-module-loader
src/test/scala/ru/dgolubets/jsmoduleloader/api/commonjs/CommonJsLoaderSpecBase.scala
Scala
mit
1,767
package com.twitter.finagle.service import com.twitter.finagle.{NotServableException, Service} import com.twitter.util.{Await, Future} import org.specs.SpecificationWithJUnit import org.specs.mock.Mockito class OptionallyServableFilterSpec extends SpecificationWithJUnit with Mockito { "OptionallyServableFilter" sho...
firebase/finagle
finagle-core/src/test/scala/com/twitter/finagle/service/OptionallyServableFilterSpec.scala
Scala
apache-2.0
1,157
package shredzzz.kirkwood.junit.tests.matrix.floats //class CuMatrixArithmeticOpsTest extends FloatCuMatrixTester //{ // val eps = 0.0001f // // val rows = 1000 // // val cols = 2000 // // @Test def testVal_:+@() { // withCuContext( // implicit ctx => { // testVal( // rows = 3, // ...
shredzzz/kirkwood
src/test/scala/shredzzz/kirkwood/junit/tests/matrix/floats/CuMatrixArithmeticOpsTest.scala
Scala
apache-2.0
27,764
package wandou.math.timeseries import scala.collection.mutable /** * * @author Caoyuan Deng */ abstract class ThingSer(_thing: Thing, _freq: TFreq) extends DefaultTBaseSer(_thing, _freq) { private var _shortName: String = thing.identifier private var _isAdjusted: Boolean = false val open = TVar[Double]("O"...
wandoulabs/wandou-math
wandou-math/src/main/scala/wandou/math/timeseries/ThingSer.scala
Scala
apache-2.0
597
package gh2011c.models import net.liftweb.json.JsonAST.JValue case class PullRequest(diff_url: Option[String], patch_url: Option[String], html_url: Option[String]) object PullRequest { def apply(json: JValue): Option[PullRequest] = { val n2os = gh3.node2OptionString(json)(_) val diff_url = n2os("d...
mgoeminne/github_etl
src/main/scala/gh2011c/models/PullRequest.scala
Scala
mit
584
package org.jetbrains.plugins.scala package codeInsight.intention.booleans import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.codeInsight.Scal...
JetBrains/intellij-scala
scala/codeInsight/src/org/jetbrains/plugins/scala/codeInsight/intention/booleans/SimplifyBooleanExprWithLiteralIntention.scala
Scala
apache-2.0
1,915
package org.jetbrains.plugins.scala.lang.resolve2 /** * Pavel.Fatin, 02.02.2010 */ class InheritanceThisLegacyTest extends ResolveTestBase { override def folderPath: String = { super.folderPath + "inheritance/this/legacy/" } def testClass = doTest def testObject = doTest def testTrait = doTest def...
triggerNZ/intellij-scala
test/org/jetbrains/plugins/scala/lang/resolve2/InheritanceThisLegacyTest.scala
Scala
apache-2.0
407
package com.datastax.spark.connector.mapper import java.lang.reflect.{Constructor, Method} import com.datastax.oss.driver.api.mapper.annotations.CqlName import com.datastax.spark.connector.ColumnRef import com.datastax.spark.connector.cql.StructDef import com.datastax.spark.connector.util.AnyObjectFactory._ import s...
datastax/spark-cassandra-connector
driver/src/main/scala/com/datastax/spark/connector/mapper/ReflectionColumnMapper.scala
Scala
apache-2.0
3,548
/** * Copyright 2014-2015 Martin Cooper * * 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 ...
martincooper/scala-datatable
src/test/scala/com/github/martincooper/datatable/examples/DataTableExamples.scala
Scala
apache-2.0
1,555
package org.eknet.spray.openid.model case class AssociationUnsupported(ns: String = namespaceOpenId2, error: String, errorCode: String, sessionType: Option[String], assocType: Option[...
eikek/spray-openid
src/main/scala/org/eknet/spray/openid/model/AssociationUnsupported.scala
Scala
apache-2.0
848
/* * Copyright (C) 2010 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...
ISCPIF/PSEExperiments
openmole-src/openmole/plugins/org.openmole.plugin.environment.egi/src/main/scala/org/openmole/plugin/environment/egi/EGIAuthentication.scala
Scala
agpl-3.0
6,233
package com.sdhu.elasticsearchprediction.spark import org.apache.spark.rdd.RDD import org.apache.spark.mllib.regression.{ LabeledPoint, GeneralizedLinearModel } import org.json4s._ import org.json4s.jackson.Serialization import java.nio.file.{Paths, Files} import java.nio.charset.StandardCharsets import scala.util....
sdhu/elasticsearch-prediction-spark
src/main/scala/SparkModelHelpers.scala
Scala
apache-2.0
3,884
/* * MIT License * * Copyright (c) 2016 Ramjet Anvil * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mod...
RamjetAnvil/padrone
server/src/main/scala/com/ramjetanvil/padrone/dev/MainPlayground.scala
Scala
mit
1,895
package dsmoq.taskServer import com.typesafe.config.ConfigFactory object AppConf { private val conf = ConfigFactory.load private val root = if (System.getProperty(Main.EnvironmentKey) == "test") conf.getConfig("test") else conf val fileDir = root.getString("taskserver.file_dir") val sampling_cycle = root.get...
nkawa/dsmoq
server/taskServer/src/main/scala/dsmoq/taskServer/AppConf.scala
Scala
apache-2.0
765
/* * Copyright (C) 2014 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...
adelapena/cassandra-lucene-index
plugin/src/main/scala/com/stratio/cassandra/lucene/partitioning/PartitionerOnVirtualNode.scala
Scala
apache-2.0
5,253
/** listes circulaires doublement chaînées */ class ListeC(v: Int) { var valeur: Int = v; var suivant: ListeC = this; var precedent: ListeC = this; /* insertion après un élément donnée */ def insererApres(v: Int) { var e = new ListeC(v); e.suivant = suivant; suivant = e; e.suivant.preceden...
tobast/compil-petitscala
tests/exec/Josephus.scala
Scala
gpl-3.0
1,882
package us.feliscat.text.normalizer.en import us.feliscat.m17n.EnglishLocale import us.feliscat.text.StringOption import us.feliscat.text.normalizer.MultiLingualDictionaryBasedNormalizer /** * @author K.Sakamoto * Created on 2016/08/06 */ object EnglishSentenceBeginningNormalizer extends MultiLingualD...
ktr-skmt/FelisCatusZero-multilingual
libraries/src/main/scala/us/feliscat/text/normalizer/en/EnglishSentenceBeginningNormalizer.scala
Scala
apache-2.0
591
package yiris.objects.secondarytreatment.aerobicbasins import org.scalatest.{FlatSpec, Matchers} import yiris.objects.secondarytreatment.aerobicbasins.ValueUnits._ import yiris.core.valueunit.ValueUnit /** * Created by ka-son on 11/22/15. */ class ValueUnitsSuite extends FlatSpec with Matchers { "ValueUnit(Xvss(...
kasonchan/yiris
objects/src/test/scala/yiris/objects/secondarytreatment/aerobicbasins/ValueUnitsSuite.scala
Scala
apache-2.0
5,166
package lila.tournament import chess.Color import lila.game.Game import lila.user.User case class Pairing( id: Game.ID, tourId: Tournament.ID, status: chess.Status, user1: User.ID, user2: User.ID, winner: Option[User.ID], turns: Option[Int], berserk1: Boolean, berserk2: Boolean ) {...
luanlv/lila
modules/tournament/src/main/Pairing.scala
Scala
mit
2,752
package org.jetbrains.plugins.scala package testingSupport.scalatest.scala2_10.scalatest2_2_1 import org.jetbrains.plugins.scala.testingSupport.scalatest.singleTest.FunSuiteSingleTestTest import org.junit.experimental.categories.Category /** * @author Roman.Shein * @since 16.10.2014. */ @Category(Array(classOf[Slo...
triplequote/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/testingSupport/scalatest/scala2_10/scalatest2_2_1/Scalatest2_10_2_2_1_SingleTestTestDynamic.scala
Scala
apache-2.0
485
package vggames.shared.player import br.com.caelum.vraptor.ioc.Component import scala.slick.driver.SQLiteDriver.simple._ import scala.slick.jdbc.JdbcBackend.Database.dynamicSession import vggames.shared.Database import scala.slick.lifted.TableQuery case class Player(id: Long, email: String, token: String, var lastTas...
rustaeja/rustaeja-project-8273
web/src/main/scala/vggames/shared/player/Players.scala
Scala
gpl-3.0
2,405
package services import com.google.inject.Inject import models.{Ticket, TicketDAO, UserDAO} import utils.LoggerHelper /** * Created by anand on 19/8/15. */ class TicketService @Inject()(ticketDAO: TicketDAO) extends LoggerHelper { /** * Get all available ticket * * @return */ def getAllTicket(): Li...
anand-singh/csr-ticketing-system
app/services/TicketService.scala
Scala
apache-2.0
1,283
package pulsar.actor import akka.actor._ import pulsar.action.Register import pulsar.command import pulsar.command.{RegisterCommand} import pulsar.factory.CommandFactory import zeromq._ /** * @author Alexander De Leon <me@alexdeleon.name> */ class Router(pulsarDispatcher: ActorRef) extends Actor with ActorLogging ...
pulsar-project/pulsar
src/main/scala/pulsar/actor/Router.scala
Scala
mit
757
package models import play.api.libs.json.{ Format, Json, Reads } import utils.db.Utils.EnumUtils package object db { object AccountRole extends Enumeration { val user, admin, business = Value def fromString(str: String) = { str match { case "user" => AccountRole.user case "business" ...
workingDog/SilverworkReact
server/src/main/scala/models/db/package.scala
Scala
apache-2.0
526
package relational.comparissions import relational.PartialStatement case class Not(comparission: Comparission) extends Comparission { lazy val partial = for(c <- comparission.partial) yield "NOT(" + c.query + ")" -> c.params }
mauricioszabo/relational-scala
src/main/scala/relational/comparissions/Not.scala
Scala
artistic-2.0
231
package slaq.session import java.sql.ResultSet sealed abstract class ResultSetType(val intValue: Int) { self => def apply[T](base: Session)(f: Session => T): T = f(base.forParameters(cursor = self)) def apply[T](f: => T)(using s: Session): T = apply(s)(_ => f) def withDefault(r: ResultSetType) = this } object ...
godenji/slaq
src/main/scala/slaq/scalaquery/session/ResultSetType.scala
Scala
bsd-2-clause
716
package com.nabijaczleweli.fancymagicks.potion import com.nabijaczleweli.fancymagicks.element.elements.{Element, ElementFire} import com.nabijaczleweli.fancymagicks.reference.Reference import com.nabijaczleweli.fancymagicks.util.{EntityUtil, IConfigurable} import net.minecraft.entity.EntityLivingBase import net.minecr...
nabijaczleweli/Magicks
src/main/scala/com/nabijaczleweli/fancymagicks/potion/PotionImmunityAura.scala
Scala
mit
1,806
/* * Copyright 2019 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-examples/src/main/scala/com/spotify/scio/examples/extra/ProtobufExample.scala
Scala
apache-2.0
1,653
import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.SparkConf import org.apache.spark.rdd.cl._ import Array._ import scala.math._ import org.apache.spark.rdd._ import java.net._ import scala.io.Source import org.apache.spark.mllib.linalg.Vectors import org.apache.spark.m...
agrippa/spark-swat
dataset-transformations/imagenet/src/main/scala/imagenet/ImagenetFakeOutputGenerator.scala
Scala
bsd-3-clause
1,682
package com.twitter.finatra.json.internal.caseclass.validation.validators import com.twitter.finatra.json.internal.caseclass.validation.validators.NotEmptyValidator._ import com.twitter.finatra.validation.{NotEmpty, ValidationMessageResolver, ValidationResult, Validator} object NotEmptyValidator { def errorMessage...
tom-chan/finatra
jackson/src/main/scala/com/twitter/finatra/json/internal/caseclass/validation/validators/NotEmptyValidator.scala
Scala
apache-2.0
1,371
/* * Copyright 2013 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...
twitter/storehaus
storehaus-core/src/main/scala/com/twitter/storehaus/Proxy.scala
Scala
apache-2.0
3,242
package net.mentalarray.doozie.TaskRunners import net.mentalarray.doozie.Tasks.IfTask import net.mentalarray.doozie.{Logging, TaskRunner} /** * Created by bgilcrease on 10/22/14. */ class IfTaskRunner extends WorkflowTaskRunner with Logging { override type T = IfTask // Impl override protected def doAction(s...
antagonist112358/tomahawk
workflow-engine/src/net/mentalarray/doozie/TaskRunners/IfTaskRunner.scala
Scala
apache-2.0
1,153
package com.blinkbox.books.marvin.processor.image import com.blinkbox.books.messaging.EventBody case class InvalidMessageType(message: EventBody) extends RuntimeException( s"Invalid event type: ${message.contentType.mediaType.toString()}") case class InvalidImageIsbn(fileName: String) extends RuntimeException( s...
blinkboxbooks/image-service
src/main/scala/com/blinkbox/books/marvin/processor/image/Exceptions.scala
Scala
mit
366
package org.jetbrains.plugins.scala.lang.psi import com.intellij.lang.ASTNode import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.progress.ProgressManager import com.intellij.openapi.project.Project import com.intellij.psi._ import com.intellij.psi.codeStyle.CodeStyleManager import com.intellij.p...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/ScImportsHolder.scala
Scala
apache-2.0
27,960
package com.datastax.spark.connector import java.net.InetAddress import com.datastax.spark.connector.cql._ import com.datastax.spark.connector.mapper.ColumnMapper import com.datastax.spark.connector.rdd.partitioner.{CassandraPartitionedRDD, ReplicaPartitioner} import com.datastax.spark.connector.rdd.reader._ import ...
shashwat7/spark-cassandra-connector
spark-cassandra-connector/src/main/scala/com/datastax/spark/connector/RDDFunctions.scala
Scala
apache-2.0
12,925
/* * 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 ...
hengyicai/OnlineAggregationUCAS
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/patterns.scala
Scala
apache-2.0
9,989
package de.windelknecht.stup.utils.tools.testing import de.windelknecht.stup.utils.tools.RandomHelper /** * Created by Me. * User: Heiko Blobner * Mail: heiko.blobner@gmx.de * * Date: 01.11.13 * Time: 14:35 * */ object StringHelper { /** * Append string with some noise. */ def appendWithNoise(conten...
windelknecht/stup-utils
src/main/scala/de/windelknecht/stup/utils/tools/testing/StringHelper.scala
Scala
mit
866
/* * Copyright 2016 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...
ahudspith-equalexperts/ct-calculations
src/main/scala/uk/gov/hmrc/ct/computations/CP7.scala
Scala
apache-2.0
956
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/metadata/FlinkRelMdPercentageOriginalRows.scala
Scala
apache-2.0
5,064
package net.truerss.tests import net.truerss.{Resources, ZIOMaterializer} import org.specs2.mutable.Specification import truerss.clients.PluginsApiHttpClient import truerss.dto.PluginsViewDto trait PluginsApiTests extends Specification with Resources { import ZIOMaterializer._ private val pluginHttpClient = new...
truerss/truerss
src/real/scala/net/truerss/tests/PluginsApiTests.scala
Scala
mit
612
package dotty.tools package dotc package transform import core.Annotations.Annotation import core.Contexts.Context import core.Definitions import core.Flags._ import core.Names.{DerivedName, Name, SimpleName, TypeName} import core.Symbols._ import core.TypeApplications.TypeParamInfo import core.TypeErasure.{erasure, i...
som-snytt/dotty
compiler/src/dotty/tools/dotc/transform/GenericSignatures.scala
Scala
apache-2.0
18,138
/* * 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 ...
himanshudhami/PredictionIO
examples/experimental/scala-parallel-friend-recommendation/src/main/scala/Sampling.scala
Scala
apache-2.0
5,751
/* * The MIT License (MIT) * * Copyright (c) 2016 Algolia * http://www.algolia.com/ * * 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...
algolia/algoliasearch-client-scala
src/main/scala/algolia/objects/Alternatives.scala
Scala
mit
1,419
/** * TABuddy-Model - a human-centric K,V framework * * Copyright (c) 2012-2015 Alexey Aksenov ezh@ezh.msk.ru * * 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.apach...
digimead/digi-TABuddy-model
src/test/scala/org/digimead/tabuddy/model/RecordSpec.scala
Scala
apache-2.0
7,376
/* * Copyright 2008-2011 WorldWide Conferencing, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
lzpfmh/framework-2
core/util/src/test/scala/net/liftweb/util/JsonCommandSpec.scala
Scala
apache-2.0
1,641
package name.abhijitsarkar.scauth.model import scala.Left import scala.collection.immutable.Seq import akka.http.scaladsl.model.HttpHeader import akka.http.scaladsl.model.HttpMethod import akka.http.scaladsl.model.HttpMethods.GET case class OAuthRequestConfig(requestMethod: HttpMethod = GET, baseUrl: String, query...
asarkar/akka
scauth/src/main/scala/name/abhijitsarkar/scauth/model/OAuthRequestConfig.scala
Scala
gpl-3.0
444
package org.jetbrains.plugins.scala package lang.overrideImplement import org.jetbrains.plugins.scala.overrideImplement.ScalaOIUtil import com.intellij.testFramework.fixtures.{ModuleFixture, JavaCodeInsightFixtureTestCase} import junit.framework.Assert.assertEquals import com.intellij.testFramework.builders.JavaModule...
consulo/consulo-scala
test/org/jetbrains/plugins/scala/lang/overrideImplement/FromJavaOverrideImplementTest.scala
Scala
apache-2.0
7,956
package com.twitter.finagle.mux.lease.exp import com.twitter.conversions.storage.intToStorageUnitableWholeNumber import com.twitter.conversions.time._ import com.twitter.util.{Duration, Time} import java.lang.management.{GarbageCollectorMXBean, MemoryPoolMXBean} import java.util.logging.Logger import org.mockito.Mocki...
mkhq/finagle
finagle-mux/src/test/scala/com/twitter/finagle/mux/lease/exp/CoordinatorTest.scala
Scala
apache-2.0
5,505
package com.weibo.datasys import akka.actor.{ Actor, ActorLogging } import org.slf4j.LoggerFactory /** * Created by tuoyu on 06/02/2017. */ trait BaseActor extends Actor with ActorLogging { override def preStart(): Unit = { log.info("Start Acotr " + getClass.getName) } override def postStop(): U...
batizty/wolong
src/main/scala/com/weibo/datasys/BaseActor.scala
Scala
apache-2.0
505
package models import play.api._ import play.api.test._ import play.api.test.Helpers._ class WithTestDb extends WithApplication(FakeApplication(additionalConfiguration = inMemoryDatabase(options = Map("MODE" -> "PostgreSQL"))))
vokhotnikov/sevstone-play
test/models/WithTestDb.scala
Scala
mit
229
package controllers import org.junit.runner.RunWith import org.junit.Test /** * @author davy <br> * 2014年5月8日 下午10:50:18 <br> * <B>The default encoding is UTF-8 </B><br> * email: davy@d-z.cc<br> * <a href="http://d-z.cc">d-z.cc</a><br> */ class ConfigServiceTest { val sevice=ne...
davy-zhang/config
config-manager/test/controllers/ConfigServiceTest.scala
Scala
apache-2.0
417
package akka.rtcweb.protocol.ice.stun import java.net.InetAddress import akka.rtcweb.CodecSpec import org.specs2.mutable.Specification import scodec.Attempt.Successful import scodec.DecodeResult import scodec.bits._ class StunAttributeSpec extends Specification with CodecSpec { "XOR-MAPPED-ADDRESS" should { ...
danielwegener/akka-rtcweb
src/test/scala/akka/rtcweb/protocol/ice/stun/StunAttributeSpec.scala
Scala
apache-2.0
954
package ecommerce.sales.view import com.typesafe.config.{Config, ConfigFactory} import ecommerce.shipping.{ShipmentCreated, ShipmentId, ShippingOfficeId} import ecommerce.shipping.ShippingStatus.Waiting import ecommerce.shipping.view.{ShipmentDao, ShipmentProjection} import org.scalatest._ import pl.newicom.dddd.messa...
pawelkaczor/ddd-leaven-akka-v2
shipping/read-back/src/test/scala/ecommerce/sales/view/ShipmentProjectionSpec.scala
Scala
mit
1,219
/* * 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 ...
bowenli86/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/utils/UpdatingPlanChecker.scala
Scala
apache-2.0
2,042
package hammock.asynchttpclient object AsyncHttpClientContentType { val `application/octet-stream` = "application/octet-stream" }
pepegar/hammock
hammock-asynchttpclient/src/main/scala/hammock/asynchttpclient/AsyncHttpClientContentType.scala
Scala
mit
134
package com.enginyoyen.statsd.io import java.net.InetSocketAddress import akka.actor.{Props, ActorRef, Actor} import akka.io._ import akka.util.ByteString /** * Created by Engin Yoeyen on 14/09/14. */ class UDPSender(remote: InetSocketAddress) extends Actor { import context.system IO(Udp) ! Udp.SimpleSender ...
enginyoyen/statsd-scala-server
src/main/scala/com/enginyoyen/statsd/io/UDPSender.scala
Scala
mit
895
package models.actors import com.google.inject.AbstractModule import models.actors.analyses._ import models.actors.dataimport._ import models.actors.scraper.ScraperActor import play.api.libs.concurrent.AkkaGuiceSupport class ActorsModule extends AbstractModule with AkkaGuiceSupport { def configure(): Unit ...
LeonardoZ/SAEB
app/models/actors/ActorsModule.scala
Scala
mit
1,343
package a { object `package` { val b2 = 42 } package b1 { class c } }
scala/scala
test/files/run/reflection-package-name-conflict/A_1.scala
Scala
apache-2.0
86
package uk.gov.gds.ier.transaction.ordinary import uk.gov.gds.ier.step.InprogressApplication import uk.gov.gds.ier.model._ import uk.gov.gds.ier.model.DateOfBirth import uk.gov.gds.ier.model.PartialNationality import uk.gov.gds.ier.model.PostalVote import uk.gov.gds.ier.model.Name import uk.gov.gds.ier.model.PossibleA...
michaeldfallen/ier-frontend
app/uk/gov/gds/ier/transaction/ordinary/InprogressOrdinary.scala
Scala
mit
2,008
package com.igorvovk.telegram.botapi import akka.actor.{Actor, ActorLogging, Props} object SimpleMessageLoggerActor { def apply(): Props = Props(classOf[SimpleMessageLoggerActor]) } class SimpleMessageLoggerActor extends Actor with ActorLogging { def receive = { case m: Message => log.info("Received new me...
igorynia/TelegramBotApi
src/main/scala/com/igorvovk/telegram/botapi/SimpleMessageLoggerActor.scala
Scala
mit
341
package chrome.webNavigation.bindings import scala.scalajs.js import scala.scalajs.js._ @js.native trait OnCreatedNavigationTargetDetails extends js.Object { /** * The ID of the tab in which the navigation is triggered. */ val sourceTabId: Int = native /** * The ID of the process that runs the rende...
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/webNavigation/bindings/OnCreatedNavigationTargetDetails.scala
Scala
mit
963
package cfor import scala.reflect.macros.Context import scala.language.experimental.macros case class SyntaxUtil[C <: Context with Singleton](val c: C) { import c.universe._ import definitions._ import Flag._ def name(s: String) = newTermName(c.fresh(s + "$")) def names(bs: String*) = bs.toList.map(name)...
scalalab/scalalab
source/src/main/scala/cfor/cfor.scala
Scala
mit
7,109