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 lila.api import play.api.libs.json._ import chess.format.Forsyth import lila.common.paginator.Paginator import lila.common.PimpedJson._ import lila.game.{ Game, PerfPicker } final class UserGameApi(bookmarkApi: lila.bookmark.BookmarkApi) { import lila.round.JsonView._ def filter(filterName: String, pag...
Happy0/lila
modules/api/src/main/UserGameApi.scala
Scala
mit
1,660
/**************************************************************************** * Copyright Fabien Sartor * Contributors: Fabien Sartor ([email protected]) * http://fasar.fr * * This software is a computer program whose purpose to compute differences * between two files. * ****************...
fasar/diffTools
core/console/src/main/scala/fsart/diffTools/script/scriptEngineImpl/DefaultScriptEngine.scala
Scala
apache-2.0
3,685
package com.malliina.bundler import com.malliina.bundler.ClientPlugin.autoImport.writeAssets import com.malliina.live.LiveReloadPlugin.autoImport.refreshBrowsers import com.malliina.live.LiveRevolverPlugin import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport.{fastOptJS, fullOptJS, scalaJSStage} import org.scalajs.sbt...
malliina/sbt-utils
bundler/src/main/scala/com/malliina/bundler/ServerPlugin.scala
Scala
mit
1,992
/* * 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 org.scalajs.testsuite.niobuffer impor...
scala-js/scala-js
test-suite/shared/src/test/scala/org/scalajs/testsuite/niobuffer/ShortBufferTest.scala
Scala
apache-2.0
4,344
package mot.unit import org.scalatest.FunSuite import mot.Context import mot.Client import mot.Server import mot.Address import mot.util.UnaryPromise import mot.IncomingResponse import mot.Message import java.util.concurrent.TimeUnit import org.scalatest.BeforeAndAfterAll import org.scalatest.ConfigMap import scala.co...
marianobarrios/mot
src/test/scala/mot/unit/Test.scala
Scala
bsd-2-clause
4,067
package backend.shared import akka.stream.BidiShape import akka.stream.io.Framing import akka.stream.scaladsl.{BidiFlow, Flow, FlowGraph} import akka.util.ByteString /** * Basic TCP Framing stage */ object FramingStage { def apply() = BidiFlow.fromGraph(FlowGraph.create() { b => val delimiter = ByteString("...
intelix/activator-reactive-fx
app/backend/shared/FramingStage.scala
Scala
apache-2.0
502
import akka.actor.ActorRef import codebook.runtime.packet.Packet import codebook.runtime.protocol.{Decoder, Request} import codebook.runtime.server.UserServiceActorBase object State extends Enumeration { val Running = Value } class UserServiceActor(val socket:ActorRef) extends UserServiceActorBase[State.Value,Int] ...
RustyRaven/CodebookRuntime
scala/tlstest/src/main/scala/UserServiceActor.scala
Scala
mit
601
/** * @author Petri Kivikangas * @date 1.2.2011 * */ package cdl.query import scala.collection.mutable.StringBuilder import org.neo4j.cypher.ExecutionResult import org.slf4j.LoggerFactory import cdl.objects.{ Arc, Concept, DefinitionLabel, Statement } import cdl.wrappers.NeoWrapper import cdl.parser.CDLParser o...
Valafar/cdl-toolkit
src/main/scala/cdl/query/CDLQuery.scala
Scala
gpl-3.0
3,876
package org.opensplice.mobile.dev.paxos import nuvo.nio.prelude._ import nuvo.nio._ import nuvo.core.Tuple import org.opensplice.mobile.dev.common.Uuid object PaxosSamplesTypeRegistration { val typeList = List("org.opensplice.mobile.dev.paxos.Propose", "org.opensplice.mobile.dev.paxos.Adopt", "org.opensplice.mobil...
levitha/levitha
src/main/generated/org/opensplice/mobile/dev/paxos/PaxosSamplesHelper.scala
Scala
apache-2.0
25,555
package controllers import javax.inject.Inject import play.api.mvc.{AbstractController, ControllerComponents} class HomeController @Inject()(cc: ControllerComponents) extends AbstractController(cc) { def index() = Action { Ok(views.html.index()) } }
play2-maven-plugin/play2-maven-test-projects
play28/scala/streaming-example/app/controllers/HomeController.scala
Scala
apache-2.0
263
package visceljs.connection import org.scalajs.dom import org.scalajs.dom.ServiceWorkerContainer import rescala.default.{Events, Signal, _} import viscel.shared.Log import scala.concurrent.Future import scala.scalajs.concurrent.JSExecutionContext.Implicits.queue import scala.scalajs.js import scala.scalajs.js.timers....
rmgk/viscel
code/js/src/main/scala/visceljs/connection/ServiceWorker.scala
Scala
agpl-3.0
2,336
package com.mesosphere.cosmos.label.v1.circe import com.mesosphere.cosmos.label import com.mesosphere.universe.v2.circe.Decoders._ import io.circe.Decoder import io.circe.generic.semiauto._ object Decoders { implicit val decodeLabelV1PackageMetadata: Decoder[label.v1.model.PackageMetadata] = { deriveFor[label....
movicha/cosmos
cosmos-json/src/main/scala/com/mesosphere/cosmos/label/v1/circe/Decoders.scala
Scala
apache-2.0
361
object One { val value = 1 }
mscoutermarsh/exercism_coveralls
test/fixtures/scala/one/example.scala
Scala
agpl-3.0
31
package net.sansa_stack.examples.flink.rdf import net.sansa_stack.rdf.flink.io._ import org.apache.flink.api.scala.ExecutionEnvironment object TripleWriter { def main(args: Array[String]) { parser.parse(args, Config()) match { case Some(config) => run(config.in, config.out) case None => ...
SANSA-Stack/SANSA-RDF
sansa-examples/sansa-examples-flink/src/main/scala/net/sansa_stack/examples/flink/rdf/TripleWriter.scala
Scala
apache-2.0
1,325
package ru.vsu.amm.problems.entities import main.ru.vsu.amm.problems.entities.{IntMatrix, Matrix} import scala.collection.mutable import scala.util.Try /** * Created by FManukovskiy on 14.11.17. */ class AssignmentMatrixBad(matrix: Seq[Seq[Int]]) extends AssignmentMatrix(matrix) { protected def crossRows(matri...
FeodorM/amm_code
problems/assignment-problem/src/main/ru/vsu/amm/problems/entities/AssignmentMatrixBad.scala
Scala
mit
6,153
/** * Copyright 2012 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 agreed to i...
gitlon/edda
src/main/scala/com/netflix/edda/ElectorPoller.scala
Scala
apache-2.0
1,807
/* * Copyright 2001-2013 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...
cheeseng/scalatest
scalatest-test/src/test/scala/org/scalatest/ShouldBeWritableSpec.scala
Scala
apache-2.0
7,060
package org.hammerlab.bgzf.block import java.io.{ IOException, InputStream } import java.nio.ByteBuffer import org.hammerlab.channel.ByteChannel /** * BGZF-block header * * @param size size of header, in bytes * @param compressedSize compressed size of block, parsed from header */ case class Header(size: Int, c...
ryan-williams/spark-bam
bgzf/src/main/scala/org/hammerlab/bgzf/block/Header.scala
Scala
apache-2.0
2,114
/* * Copyright (c) 2013 koiroha.org. * All sources and related resources are available under Apache License 2.0. * http://www.apache.org/licenses/LICENSE-2.0.html */ package com.kazzla.asterisk import scala.concurrent.{Future, Promise} import scala.collection._ import javax.net.ssl._ import java.util.concurrent.ato...
torao/asterisque
core-scala/src_back/main/scala/com/kazzla/asterisk/Wire.scala
Scala
apache-2.0
11,786
def f(a: Int, a: Int) {} f(/* resolved: false */ a = 1)
ilinum/intellij-scala
testdata/resolve2/element/clash/NamedParameter.scala
Scala
apache-2.0
58
package scaldi.jsr330 import scaldi._ /** Injector that creates JSR 330 compliant bindings on-demand (when they are injected) */ class OnDemandAnnotationInjector extends MutableInjectorUser with InjectorWithLifecycle[OnDemandAnnotationInjector] with ShutdownHookLifecycleManager { private var bindings: L...
scaldi/scaldi-jsr330
src/main/scala/scaldi/jsr330/OnDemandAnnotationInjector.scala
Scala
apache-2.0
1,831
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Stratio/spark-mongodb
spark-mongodb/src/test/scala/com/stratio/datasource/mongodb/schema/MongodbSchemaIT.scala
Scala
apache-2.0
4,157
package net.revenj.server import net.revenj.patterns.ServiceLocator import net.revenj.serialization.Serialization import scala.concurrent.Future trait ServerCommand { def execute[TInput, TOutput]( locator: ServiceLocator, input: Serialization[TInput], output: Serialization[TOutput], dat...
ngs-doo/revenj
scala/revenj-akka/src/main/scala/net/revenj/server/ServerCommand.scala
Scala
bsd-3-clause
420
package ua.ds.persistent.iteration3 sealed trait PersistentList[+T] { import PersistentList._ def exists(predicate: (T) => Boolean): Boolean = this match { case Empty => false case Cons(head, tail) => predicate(head) || tail.exists(predicate) } def takeWhile(predicate: T => Boolean):...
Alex-Diez/persistent-data-sturctures
data-structures-practices/persistent-list/src/main/scala/ua/ds/persistent/iteration3/PersistentList.scala
Scala
mit
2,875
/* (c) rtm-scala contributors, 2012. All rights reserved. */ package net.combinatory.rtm import org.joda.time.DateTime case class TaskSeries( id: String, created: DateTime, modified: DateTime, name: String, source: String, url: Option[String], locationId: Option[String] ) case class Task( id: String,...
comb/rtm-scala
src/main/scala/net/combinatory/rtm/Tasks.scala
Scala
apache-2.0
678
package pt.pimentelfonseca.activatorexample.db.dao import scala.slick.driver.SQLiteDriver.simple._ import pt.pimentelfonseca.activatorexample.db.tables.TableDatabaseVersions class DatabaseVersions(tag: Tag) extends TableDatabaseVersions(tag) { // Extra DAO logic here. }
luismfonseca/agile-scala-android-example
src/main/scala/pt/pimentelfonseca/activatorexample/db/dao/DatabaseVersions.scala
Scala
cc0-1.0
287
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala /** An annotati...
martijnhoekstra/scala
src/library/scala/unchecked.scala
Scala
apache-2.0
1,393
/** * 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...
ajw625/orbeon-forms
src/main/scala/org/orbeon/oxf/xforms/function/xxforms/XXFormsClientId.scala
Scala
lgpl-2.1
1,006
// code-examples/Traits/trait-construction-script.scala trait T1 { println( " in T1: x = " + x ) val x=1 println( " in T1: x = " + x ) } trait T2 { println( " in T2: y = " + y ) val y="T2" println( " in T2: y = " + y ) } class Base12 { println( " in Base12: b = " + b ) val b="Base12" println( "...
foomango/scalaex
code-examples/Traits/trait-construction-script.scala
Scala
mit
771
package org.separatepackage import org.coroutines._ import org.scalatest._ import scala.util.Failure class SeparatePackageTest extends FunSuite with Matchers { test("should declare and run a coroutine") { val rube = coroutine { (x: Int) => yieldval(x * 2) if (x > 0) yieldval(x) else yieldv...
storm-enroute/coroutines
src/test/scala/org/separatepackage/SeparatePackageTest.scala
Scala
bsd-3-clause
1,026
/* * Copyright (C) 2014 - 2017 Contributors as noted in the AUTHORS.md file * * 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)...
Tensei-Data/tensei-agent
src/test/scala/com/wegtam/tensei/agent/helpers/DFASDLValidator$Test.scala
Scala
agpl-3.0
3,072
package eventstreams /* * Copyright 2014-15 Intelix Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
intelix/eventstreams
es-core/es-api/src/test/scala/eventstreams/ClusterManagerTest.scala
Scala
apache-2.0
4,770
package tk.monnef.mcmapper import java.io.File object Utils { implicit final class ForwardPipe[T](val x: T) extends AnyVal { def |>[B](f: (T) => B) = f(x) } implicit final class OrElseCrash[T](val x: Option[T]) extends AnyVal { def orElseCrash: T = x match { case None => throw new McMapperExcept...
mnn/mcMapperLib
src/main/scala/tk/monnef/mcmapper/Utils.scala
Scala
apache-2.0
548
package se.gigurra.util.serialization.json.writer /** * Created by johan on 2015-03-27. */ object ScalaMapWriter extends TypeWriter { override def apply(x: Any)(implicit buffer: StringBuilder, writer: JsonWriter): Unit = { if (x != null) { val m = x.asInstanceOf[collection.Map[_, _]] buffer.append(...
GiGurra/gigurra-game-challenge
ext/gigurra-util/src/main/scala/se/yabs/util/serialization/json/writer/ScalaMapWriter.scala
Scala
gpl-2.0
579
package dog package autodoc import scalaz._, Id._, Free._ import httpz._ import argonaut.DecodeJson trait AutodocMarker { def generate(title: String, format: Autodoc.Format): String } sealed abstract class Autodoc[A: Show] extends AutodocMarker { def description: Option[String] def request: Request def re...
pocketberserker/dog-autodoc
core/src/main/scala/dog/autodoc/Autodoc.scala
Scala
mit
2,775
package au.com.dius.pact.consumer import au.com.dius.pact.model.{RequestResponseInteraction, _} import difflib.DiffUtils import groovy.json.JsonOutput @Deprecated object PrettyPrinter { //TODO: allow configurable context lines val defaultContextLines = 3 def print(session: PactSessionResults): String = { p...
Fitzoh/pact-jvm
pact-jvm-consumer/src/main/scala/au/com/dius/pact/consumer/PrettyPrinter.scala
Scala
apache-2.0
2,986
//====================================================================================================================== // 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-util/src/main/scala/org/facsim/util/log/package.scala
Scala
lgpl-3.0
2,206
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.3 * @date Sun Mar 2 20:37:18 EST 2014 * @see LICENSE (MIT style license file). */ package apps.event import scalation.model.Modelable import scalation.event.{Entity, Event, Model, Wai...
scalation/fda
scalation_1.3/scalation_models/src/main/scala/apps/event/Machine.scala
Scala
mit
7,059
package warsztat import org.scalatest.{FlatSpec, Matchers} class RichByteArrayTest extends FlatSpec with Matchers { it should "render byte array" in { import warsztat.RichByteArray.RichByteArray val in = "some data" in.getBytes.render("|") shouldBe s"|$in" } }
bjankie1/warsztat-scala
src/test/scala/warsztat/RichByteArrayTest.scala
Scala
apache-2.0
281
package leo.modules.calculus import leo.datastructures.Term import leo.modules.HOLSignature.{<=>, o} import leo.{Checked, LeoTestSuite} /** * Created by mwisnie on 1/14/16. */ class DefExpansionTest extends LeoTestSuite{ implicit val s = getFreshSignature test("DefExpansion Equivalenz", Checked) { val a =...
lex-lex/Leo-III
src/test/scala/leo/modules/calculus/DefExpansionTest.scala
Scala
bsd-3-clause
491
package org.clulab.sequences import java.io._ import org.clulab.learning._ import org.clulab.processors.{Document, Sentence} import org.clulab.sequences.SequenceTaggerLogger._ import org.clulab.struct.Counter import org.clulab.utils.SeqUtils import scala.collection.mutable.ArrayBuffer import scala.reflect.ClassTag ...
sistanlp/processors
main/src/main/scala/org/clulab/sequences/BiMEMMSequenceTagger.scala
Scala
apache-2.0
9,503
package creational /** * Scala provides concise direct realization of the singleton pattern in the language * Objects can inherit methods from classes or interfaces. Object can be referenced (directly or via an inherited interface). * In Scala, objects are initialized on-demand. * * @author Daniel Leon */ object...
LeonDaniel/DesignPatterns
ScalaPatterns/src/main/scala/creational/Singleton.scala
Scala
lgpl-3.0
507
package org.bitcoins.rpc.client.common import java.util.UUID import akka.actor.ActorSystem import akka.http.javadsl.model.headers.HttpCredentials import akka.http.scaladsl.Http import akka.http.scaladsl.model._ import akka.stream.{ActorMaterializer, StreamTcpException} import akka.util.ByteString import org.bitcoins....
bitcoin-s/bitcoin-s-core
bitcoind-rpc/src/main/scala/org/bitcoins/rpc/client/common/Client.scala
Scala
mit
12,342
import sbt._ import Keys._ import play.Project._ object ApplicationBuild extends Build { val appName = "WAMPlay" val appVersion = "0.2.6-SNAPSHOT" val appDependencies = Seq( javaCore ) val main = play.Project(appName, appVersion, appDependencies).settings( organization := "ws.wamplay", ...
blopker/WAMPlay
module/project/Build.scala
Scala
mit
708
package chrome.downloads.bindings sealed trait InterruptReason object InterruptReason { val FILE_FAILED: InterruptReason = "FILE_FAILED".asInstanceOf[InterruptReason] val FILE_ACCESS_DENIED: InterruptReason = "FILE_ACCESS_DENIED".asInstanceOf[InterruptReason] val FILE_NO_SPACE: InterruptReason = "FILE_NO_SPACE"....
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/downloads/bindings/InterruptReason.scala
Scala
mit
2,471
package com.yiguang.mcdb import java.util.concurrent.CountDownLatch import com.yiguang.mcdb.storage.Leveldb import scala.util.Random import com.yiguang.util.StringUtils._ /** * Created by yigli on 14-12-11. */ object Benchmark extends App { val nThread = 100 val leveldbConfig = new Leveldb.Config val le...
liyiguang/memcachedb
src/test/scala/com/yiguang/mcdb/Benchmark.scala
Scala
apache-2.0
1,092
/* * 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/ct600e/v2/E9.scala
Scala
apache-2.0
837
import org.apache.spark.mllib.classification.SVMModel import org.apache.spark.mllib.linalg.Vector import org.apache.spark.mllib.optimization.{HingeGradient,LBFGS, SquaredL2Updater} import org.apache.spark.mllib.regression.GeneralizedLinearAlgorithm import org.apache.spark.mllib.util.DataValidators /** * Created by di...
wxhC3SC6OPm8M1HXboMy/spark-ml-optimization
src/main/scala/SVMWithBFGS.scala
Scala
apache-2.0
704
package lore.compiler.transformation import lore.compiler.core.Position import lore.compiler.semantics.expressions.Expression import lore.compiler.semantics.functions.MultiFunctionDefinition import lore.compiler.semantics.scopes.{Binding, StructConstructorBinding, TypedBinding} import lore.compiler.typing.InferenceVar...
marcopennekamp/lore
compiler/src/lore/compiler/transformation/BindingProcessors.scala
Scala
mit
1,142
/** * Copyright (c) 2014-2016 Tim Bruijnzeels * 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 the above copyright notice, * this list of...
timbru/rpki-ca
src/main/scala/nl/bruijnzeels/tim/rpki/ca/provisioning/MyIdentity.scala
Scala
bsd-3-clause
2,606
/** * Copyright (c) 2016 Intel Corporation  * * 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...
ashaarunkumar/spark-tk
sparktk-core/src/main/scala/org/trustedanalytics/sparktk/frame/internal/ops/timeseries/AugmentedDickeyFullerTest.scala
Scala
apache-2.0
3,092
package audits import doobie.imports._ import javax.inject.Inject import play.api.Logger import play.api.db.Database /** Implementaci&oacute;n con doobie de dao de eventos */ class EventDaoDoobie @Inject() (db: Database) extends EventDao { import daos.doobie.DoobieTransactor.transactor import EventDaoDoobie.qWrit...
kdoomsday/kaminalapp
app/audits/EventDaoDoobie.scala
Scala
mit
641
/* smile-df.scala Testing the use of Smile DataFrames */ object SmileApp { def main(args: Array[String]): Unit = { val df2 = smile.read.csv("../r/cars93.csv") val df3 = df2.filter{ _("EngineSize").asInstanceOf[Double] <= 4.0 } val w = df3.select("Weight") val wkg = w map {_(0).asInstanceOf[Int]...
darrenjw/scala-course
examples/C6-DataFrames/smiledf/src/main/scala/smile-df.scala
Scala
gpl-3.0
625
package chrome.webRequest.bindings import scala.scalajs.js @js.native trait WebResponseErrorDetails extends WebResponseCacheDetails { /** * The error description. This string is not guaranteed to remain backwards compatible between releases. You must * not parse and act based upon its content. */ val ...
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/webRequest/bindings/WebResponseErrorDetails.scala
Scala
mit
348
package model.blog import org.joda.time.DateTime import org.joda.time.format.DateTimeFormat import model.DBEntity /** * A file reference to store information of uploaded files to the database * * @author Stefan Bleibinhaus * */ case class FileRef( override val id: Option[String], val name: String, va...
ExNexu/scablo
app/model/blog/FileRef.scala
Scala
bsd-2-clause
919
package org.openapitools.models import io.circe._ import io.finch.circe._ import io.circe.generic.semiauto._ import io.circe.java8.time._ import org.openapitools._ import org.openapitools.models.Link /** * * @param self * @param actions * @param runs * @param queue * @param Underscoreclass */ case class ...
cliffano/swaggy-jenkins
clients/scala-finch/generated/src/main/scala/org/openapitools/models/BranchImpllinks.scala
Scala
mit
792
/* * 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 ...
ksattler/piglet
src/main/scala/dbis/pig/plan/PipeNameGenerator.scala
Scala
apache-2.0
2,401
/** * FILE: BuildingWithLevelDAOTest.scala * PERCORSO /Codice/sgad/servertier/src/test/scala/sgad/servertier/dataaccess/databaseaccess/shareddatadao * DATA CREAZIONE: 20 Febbraio 2014 * AUTORE: ProTech * EMAIL: [email protected] * * Questo file è proprietà del gruppo ProTech, viene rilasciato sotto licenza...
protechunipd/SGAD
Codice/sgad/servertier/src/test/scala/sgad/servertier/dataaccess/databaseaccess/shareddatadao/BuildingWithLevelDAOTest.scala
Scala
apache-2.0
9,641
/* - Coeus web framework ------------------------- * * Licensed under the Apache License, Version 2.0. * * Author: Spiros Tzavellas */ package com.tzavellas.coeus.i18n.locale import java.util.Locale import javax.servlet.http.Cookie import org.junit.{Test, Before} import org.junit.Assert._ import org.springframewo...
sptz45/coeus
src/test/scala/com/tzavellas/coeus/i18n/locale/CookieLocaleResolverTest.scala
Scala
apache-2.0
1,639
package org.scalastyle.scalariform import java.util.regex.Pattern import org.scalastyle.CombinedAst import org.scalastyle.CombinedChecker import org.scalastyle.PositionError import org.scalastyle.ScalastyleError import scalariform.lexer.Tokens /** * comment check for line comment style TODO or FIXME */ class Todo...
asaitov/scalastyle
src/main/scala/org/scalastyle/scalariform/TodoCommentChecker.scala
Scala
apache-2.0
964
package redis.api.scripting import java.io.File import java.security.MessageDigest import redis.protocol.{MultiBulk, Bulk} import redis._ import akka.util.ByteString object RedisScript { def fromFile(file: File): RedisScript = { val source = scala.io.Source.fromFile(file) val lines = try source.mkString.str...
mspielberg/rediscala
src/main/scala/redis/api/Scripting.scala
Scala
apache-2.0
3,260
package org.zalando.nakadi.client.scala import scala.concurrent.duration.DurationInt import org.scalatest.Matchers import org.scalatest.WordSpec import org.zalando.nakadi.client.scala.model._ import org.zalando.nakadi.client.scala.model.ScalaJacksonJsonMarshaller import org.zalando.nakadi.client.utils.AkkaConfig impor...
zalando/nakadi-klients
client/src/test/scala/org/zalando/nakadi/client/scala/SerializerDeserializerTest.scala
Scala
mit
3,589
/* * Copyright 2015 Shao Tian-Chen (Austin) * * 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 ag...
au9ustine/org.au9ustine.puzzles.s99
src/main/scala/org/au9ustine/puzzles/s99/P09.scala
Scala
apache-2.0
1,310
package org.elasticmq.actor import akka.actor.{ActorRef, Props} import org.elasticmq._ import org.elasticmq.actor.queue.{QueueActor, QueueEvent} import org.elasticmq.actor.reply._ import org.elasticmq.msg._ import org.elasticmq.util.{Logging, NowProvider} import scala.reflect._ class QueueManagerActor(nowProvider: N...
adamw/elasticmq
core/src/main/scala/org/elasticmq/actor/QueueManagerActor.scala
Scala
apache-2.0
2,622
package com.kolor.docker.api.entities import play.api.libs.json._ sealed case class ContainerConfiguration( image: Option[String] = None, cmd: Option[Seq[String]] = None, hostname: Option[String] = None, user: Option[String] = None, memory: Option[Long] = None, memorySwap: Option[Long] = None,...
tldeti/reactive-docker
src/main/scala/com/kolor/docker/api/entities/ContainerConfiguration.scala
Scala
mit
1,870
object Test extends App { val xs = List.tabulate(4)(List(_)) val i = xs.map(_.iterator).reduce { (a,b) => a.hasNext a ++ b } val r1 = i.toList val r2 = xs.flatten.toList assert(r1 == r2, r1) }
som-snytt/dotty
tests/run/t8428.scala
Scala
apache-2.0
215
/* * 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/dsl/HasDsl.scala
Scala
mit
2,010
/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.14.85 * apibuilder 0.14.93 app.apibuilder.io/apicollective/apibuilder-common/latest/anorm_2_8_parsers */ import anorm._ package io.apibuilder.common.v0.anorm.parsers { import io.apibuilder.common.v0.anorm.conversions.Standard._ i...
mbryzek/apidoc
api/app/generated/ApicollectiveApibuilderCommonV0Parsers.scala
Scala
mit
3,318
/* * Copyright 2015 * * 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, ...
TouK/influxdb-reporter
core/src/main/scala/influxdbreporter/core/metrics/pull/PullingCachedGauge.scala
Scala
apache-2.0
1,812
package org.bitcoins.dlc.wallet.models import org.bitcoins.core.currency.CurrencyUnit import org.bitcoins.core.protocol.BlockTimeStamp import org.bitcoins.core.protocol.dlc.models._ import org.bitcoins.core.protocol.tlv.{ContractDescriptorTLV, OracleParamsV0TLV} import org.bitcoins.crypto._ /** This table contains al...
bitcoin-s/bitcoin-s
dlc-wallet/src/main/scala/org/bitcoins/dlc/wallet/models/DLCContractDataDb.scala
Scala
mit
826
package com.ubirch.user.util.server import java.net.URLEncoder import java.util.UUID /** * author: cvandrei * since: 2017-03-22 */ object RouteConstants { final val apiPrefix = "api" final val serviceName = "userService" final val currentVersion = "v1" final val check = "check" final val deepCheck =...
ubirch/ubirch-user-service
util/src/main/scala/com/ubirch/user/util/server/RouteConstants.scala
Scala
apache-2.0
3,382
package mesosphere.util import java.util.concurrent.TimeUnit import com.codahale.metrics.{ MetricRegistry, Timer } /** * Utils for timer metrics collection. */ object TimerUtils { class ScalaTimer(val timer: Timer) { def apply[T](block: => T): T = { val startTime = System.nanoTime() try { ...
quamilek/marathon
src/main/scala/mesosphere/util/TimerUtils.scala
Scala
apache-2.0
645
package org.jetbrains.plugins.scala.failed.typeInference import org.jetbrains.plugins.scala.lang.typeConformance.TypeConformanceTestBase /** * @author mucianm * @since 25.03.16. */ class PrimitivesConformanceTest extends TypeConformanceTestBase{ override protected def shouldPass: Boolean = false def test...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/failed/typeInference/PrimitivesConformanceTest.scala
Scala
apache-2.0
451
/* * Copyright (c) 2014-2020 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...
alexandru/monifu
monix-eval/shared/src/test/scala/monix/eval/TypeClassLawsForParallelApplicativeSuite.scala
Scala
apache-2.0
1,314
package org.denigma.kappa import fastparse.core.Parsed import org.denigma.kappa.notebook.parsers.{PaperParser, PaperSelection} import org.denigma.kappa.parsers.AST import org.scalatest.{Inside, Matchers, WordSpec} class PaperParserSuite extends WordSpec with Matchers with Inside { "parse IRIs and prefixes" in { ...
antonkulaga/kappa-notebook
app/js/src/test/scala/org/denigma/kappa/PaperParserSuite.scala
Scala
mpl-2.0
3,875
package org.jetbrains.plugins.scala.failed.annotator import org.jetbrains.plugins.scala.PerfCycleTests import org.jetbrains.plugins.scala.base.ScalaLightCodeInsightFixtureTestAdapter import org.junit.experimental.categories.Category /** * Created by kate on 3/29/16. */ @Category(Array(classOf[PerfCycleTests])) c...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/failed/annotator/ApplicationNotTakeParamImplicit.scala
Scala
apache-2.0
1,273
/* * Copyright (c) 2009 Michel Alexandre Salim. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this lis...
michel-slm/minikanren-scala
src/info/hircus/kanren/Subst.scala
Scala
bsd-3-clause
6,821
package org.bitcoins.rpc.bitcoincore.blockchain import org.bitcoins.rpc.bitcoincore.blockchain.softforks.SoftForks /** * Created by Tom on 1/11/2016. */ trait BlockchainInfo { def chain : String def blockCount : Int def headerCount : Int def bestBlockHash : String def difficulty : Double def verificatio...
bitcoin-s/bitcoin-s-rpc-client
src/main/scala/org/bitcoins/rpc/bitcoincore/blockchain/BlockchainInfo.scala
Scala
mit
642
/* * Copyright 2013 Eike Kettner * * 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...
eikek/publet-sharry
src/main/scala/org/eknet/publet/sharry/SharryServiceMBeanImpl.scala
Scala
apache-2.0
1,472
/* * MIT License * * Copyright (c) 2016 Gonçalo Marques * * 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, ...
gonmarques/slick-repo
src/test/scala/com/byteslounge/slickrepo/version/JodaTimeVersionImplicits.scala
Scala
mit
1,654
/* * LazyValuesTest.scala * Lazy range computation tests. * * Created By: Avi Pfeffer ([email protected]) * Creation Date: Dec 27, 2013 * * Copyright 2013 Avrom J. Pfeffer and Charles River Analytics, Inc. * See http://www.cra.com or email [email protected] for information. * * See http://www.github.com...
agarbuno/figaro
Figaro/src/test/scala/com/cra/figaro/test/algorithm/lazyfactored/LazyValuesTest.scala
Scala
bsd-3-clause
7,683
package com.qbert65536 // TODO: Rewrite RelationAST to be Option[Relation], not Relation(Option,Option ) // TODO: Stop matching on Option, use high order functions as in FPIS import java.net.URL import codechecker.ModelChecker import codegenerator._ import com.qbert65536.sql.{SQLConfigFactory, SQLManipulator} impor...
qorrect/squall
src/main/scala/com/qbert65536/Compiler.scala
Scala
apache-2.0
6,740
/* * 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 ...
zhreshold/mxnet
scala-package/core/src/main/scala/org/apache/mxnet/module/Module.scala
Scala
apache-2.0
28,456
/** * Copyright 2015 Thomson Reuters * * 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 ag...
nruppin/CM-Well
server/cmwell-plugin-gremlin/src/main/scala/cmwell/blueprints/jena/JenaVertex.scala
Scala
apache-2.0
3,387
import org.atnos.site._ object index extends UserGuidePage { def is = "eff".title ^ s2""" Extensible effects are an alternative to monad transformers for computing with effects in a functional way. This library is based on the "free-er" monad and an "open union" of effects described by Oleg Kiselyov in [Freer monads,...
etorreborre/eff
jvm/src/test/scala/org/atnos/site/index.scala
Scala
mit
1,370
// scalastyle:off line.size.limit /* * Ported by Alistair Johnson from * https://github.com/gwtproject/gwt/blob/master/user/test/com/google/gwt/emultest/java/math/BigIntegerNotTest.java */ // scalastyle:on line.size.limit package org.scalajs.testsuite.javalib.math import java.math.BigInteger import org.scalajs.jas...
doron123/scala-js
test-suite/src/test/scala/org/scalajs/testsuite/javalib/math/BigIntegerNotTest.scala
Scala
bsd-3-clause
5,726
package deaktator.cats.free.ex1.free import deaktator.cats.free.ex1.support.Account /** * From Ch 5 of "Functional and Reactive Domain Modeling", Debasish Ghosh. * * @tparam A */ sealed trait AccountRepoA[+A] case class Query(no: String) extends AccountRepoA[Account] case class Store(account: Account) extends...
deaktator/learn-cats
src/main/scala/deaktator/cats/free/ex1/free/AccountRepoA.scala
Scala
mit
398
/* * 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 ...
practice-vishnoi/dev-spark-1
streaming/src/main/scala/org/apache/spark/streaming/util/FileBasedWriteAheadLogReader.scala
Scala
apache-2.0
2,716
package chandu0101.scalajs.react.components import chandu0101.macros.tojs.JSMacro import japgolly.scalajs.react._ import japgolly.scalajs.react.raw._ import japgolly.scalajs.react.vdom.VdomElement import org.scalajs.dom.raw.HTMLElement import scala.scalajs.js import scala.scalajs.js.annotation.JSImport @JSImport("re...
chandu0101/scalajs-react-components
core/src/main/scala/chandu0101/scalajs/react/components/ReactInfinite.scala
Scala
apache-2.0
1,462
/* * Copyright (c) 2014-2018 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...
Wogan/monix
monix-reactive/shared/src/main/scala/monix/reactive/internal/consumers/FromObserverConsumer.scala
Scala
apache-2.0
2,589
/* * 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/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveTableScanSuite.scala
Scala
apache-2.0
7,686
package models.daos.tables import java.util.UUID import models.User import slick.jdbc.JdbcProfile import slick.lifted.ProvenShape.proveShapeOf trait DBTableDefinitions { protected val profile: JdbcProfile import profile.api._ val users = TableQuery[Users] val passwords = TableQuery[Passwords] class User...
wjglerum/bamboesmanager
app/models/daos/tables/DBTableDefinitions.scala
Scala
mit
1,021
package org.orbroker.config.dynamic import org.orbroker._ import SQLStatement._ import org.orbroker.adapt.BrokerAdapter import org.orbroker.callback.ExecutionCallback import java.io.{ StringReader, StringWriter } import freemarker.template._ private[orbroker] class FreeMarkerStatement( id: Symbol, freemarkerSQL: ...
nilskp/orbroker
src/main/scala/org/orbroker/config/dynamic/FreeMarkerStatement.scala
Scala
mit
2,016
package edu.umd.mith.sga.mss import java.io.File import scala.xml._ trait TeiTemplates { def cleanString(s: String): String = s .replaceAll("\\u00A0", " ") .replaceAll("&", "&amp;") .replaceAll("--", "&#8212;") .replaceAll("<", "&lt;").replaceAll(">", "&gt;") def spanString(span: Span): String = ...
umd-mith/pbs-mss
src/main/scala/TeiTemplates.scala
Scala
apache-2.0
5,590
package instrumentti object LinkO { val UNIDIRECTION: Int = 0 val BIDIRECTONAL: Int = 1 } class Link(a: Node, b: Node, var dir: Int) extends Element(ElementCollection.getNextLinkId) { ElementCollection.addLink(this) def display() = { InstrumenttiMain.stroke(0); InstrumenttiMain.line(a.location, b.lo...
transfluxus/PublicInstrumentti
src/instrumentti/Link.scala
Scala
mit
374
// scalac: '-Wconf:msg=shadowing a nested class of a parent is deprecated:s' package a { trait Test { class Shadow def test: Shadow = new Shadow } } package b { trait Test extends a.Test { class Shadow extends super.Shadow override def test: Shadow = super.test } }
scala/scala
test/files/neg/t8777.scala
Scala
apache-2.0
291
/* * 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 ...
sgururajshetty/carbondata
integration/spark-common/src/main/scala/org/apache/carbondata/spark/util/GlobalDictionaryUtil.scala
Scala
apache-2.0
33,886
/* * Copyright 2014–2020 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
slamdata/quasar
foundation/src/test/scala/quasar/contrib/matryoshka/UnionWidth.scala
Scala
apache-2.0
1,654
// // Copyright (c) 2015 IronCore Labs // package com.ironcorelabs.davenport package syntax import db.{ Key, DBProg, DBDocument } import argonaut.{ DecodeJson, EncodeJson, CodecJson } // The convention is for syntax objects to start with lower case, so they look // like package names. Scalastyle doesn't care for this...
BobWall23/davenport
src/main/scala/com/ironcorelabs/davenport/syntax/key.scala
Scala
mit
976
/* * 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 ...
spark0001/spark2.1.1
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingQueryManagerSuite.scala
Scala
apache-2.0
12,781