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
/* - Coeus web framework ------------------------- * * Licensed under the Apache License, Version 2.0. * * Author: Spiros Tzavellas */ package com.tzavellas.coeus.core import scala.collection.mutable.ArrayBuffer import com.tzavellas.coeus.mvc.view.NullView import interception.Interceptor import error.ExceptionHan...
sptz45/coeus
src/main/scala/com/tzavellas/coeus/core/InterceptorPipeline.scala
Scala
apache-2.0
1,826
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.3 * @date Thu Mar 28 13:43:50 EDT 2013 * @see LICENSE (MIT style license file) * @see www.ita.uni-heidelberg.de/~dullemond/lectures/.../Chapter_3.pdf * @see www2.hawaii.edu/~n...
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/dynamics_pde/FirstOrderPDE.scala
Scala
mit
7,798
package com.mesosphere.cosmos import com.mesosphere.cosmos.test.CosmosIntegrationTestClient import com.twitter.util.Await import scala.concurrent.duration._ object ItUtil { def waitForDeployment(adminRouter: AdminRouter)(attempts: Int): Boolean = { Stream.tabulate(attempts) { _ => Thread.sleep(1.second.t...
dcos/cosmos
cosmos-integration-tests/src/main/scala/com/mesosphere/cosmos/ItUtil.scala
Scala
apache-2.0
525
/* * Copyright (C) 2012 Romain Reuillon * * 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 di...
openmole/openmole
openmole/bin/org.openmole.ui/src/main/scala/org/openmole/ui/Application.scala
Scala
agpl-3.0
17,941
package models import com.mongodb.casbah.Imports._ import core.utils.TypeUtils.nullToNone /** * Image container for mongo. */ case class ImageSet( id: Option[ObjectId], original: ObjectId, thumb: Option[ObjectId] ) extends BaseTOModel { /** * Mapper to serialize object to MongoDBObject * @return The s...
maximx1/openwalrus
app/models/ImageSet.scala
Scala
mit
754
package monocle.std import monocle._ object bigdecimal extends BigDecimalOptics trait BigDecimalOptics { val bigDecimalToLong: Prism[BigDecimal, Long] = Prism[BigDecimal, Long](bi => if (bi.isValidLong) Some(bi.toLongExact) else None)(BigDecimal(_)) val bigDecimalToInt: Prism[BigDecimal, Int] = bigDecimalTo...
julien-truffaut/Monocle
core/shared/src/main/scala/monocle/std/BigDecimal.scala
Scala
mit
752
package me.frmr.stripe import net.liftweb.common._ import net.liftweb.json._ import JsonDSL._ import Extraction._ import net.liftweb.util.Helpers._ import dispatch._, Defaults._ case class Refund( id: String, amount: Long, created: Long, currency: String, balanceTransaction: String, charge: String, ...
farmdawgnation/streifen
src/main/scala/me/frmr/stripe/Refund.scala
Scala
apache-2.0
1,658
package spatutorial.client.components import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.prefix_<^._ import scala.language.implicitConversions import scala.scalajs.js import scalacss.ScalaCssReact._ import scalacss.Defaults._ /** * Common Bootstrap components for scalajs-react */ object Bootstrap {...
insdami/scalajs-spa-tutorial
client/src/main/scala/spatutorial/client/components/Bootstrap.scala
Scala
apache-2.0
3,474
/* * 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 ...
vsisko/incubator-ignite
examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
Scala
apache-2.0
2,643
package com.wavesplatform.history import com.wavesplatform.common.utils.EitherExt2 import com.wavesplatform.features.BlockchainFeatures import com.wavesplatform.history.Domain.BlockchainUpdaterExt import com.wavesplatform.state.diffs._ import com.wavesplatform.test.PropSpec import com.wavesplatform.transaction.Genesis...
wavesplatform/Waves
node/src/test/scala/com/wavesplatform/history/BlockchainUpdaterBadReferencesTest.scala
Scala
mit
7,204
package org.deepdive import akka.actor.ActorSystem import akka.pattern.ask import akka.util.Timeout import java.io.File import org.deepdive.datastore._ import org.deepdive.profiling.Profiler import org.deepdive.settings._ import scala.concurrent.Await import scala.concurrent.duration._ /* Describes the context of the...
feiranwang/deepdive
src/main/scala/org/deepdive/Context.scala
Scala
apache-2.0
569
import com.ketalo.play.plugins.emberjs.EmberJsKeys import sbt._ object ApplicationBuild extends Build with EmberJsKeys { val appName = "play-emberjs-sample" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq.empty val main = play.Project(appName, appVersion, appDependencies).settings( ...
ACenterAInc/play-emberjs
sample-1.3.0/project/Build.scala
Scala
mit
355
package sk.scalagine.math.transformation import org.scalatest.{Matchers, WordSpec} import sk.scalagine.math.{Matrix4x4, PlusMinusMatchers, Vector3} import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner /** * Created with IntelliJ IDEA. * User: zladovan * Date: 31.5.2014 * Time: 1:23 */ @RunWith(...
zladovan/scalagine
engine/math/src/test/scala/sk/scalagine/math/transformation/TransformationsTest.scala
Scala
mit
4,293
val unapply: PartialFunction[Char, (Int, Int) => Int] = (c: Char) => c match { case '+' => (x, y) => /*start*/x + y/*end*/ } //Int
ilinum/intellij-scala
testdata/typeInference/bugs5/SCL6089.scala
Scala
apache-2.0
132
package com.github.diegopacheco.scalaplayground.caliban import com.github.diegopacheco.scalaplayground.caliban.ExampleData.sampleCharacters import zio.{ExitCode, RIO, ZEnv, ZIO} import ExampleService.ExampleService import caliban.{ Http4sAdapter } import cats.data.Kleisli import cats.effect.Blocker import org.http4s.S...
diegopacheco/scala-playground
caliban-graphql-fun/src/main/scala/com/github/diegopacheco/scalaplayground/caliban/CalibanApp.scala
Scala
unlicense
1,688
package nz.wicker.autoencoder.neuralnet.rbm import java.awt.Graphics2D import java.awt.RenderingHints import java.awt.image.BufferedImage import nz.wicker.autoencoder.math.matrix.Mat import nz.wicker.autoencoder.neuralnet.FullBipartiteConnection import nz.wicker.autoencoder.neuralnet.autoencoder.Autoencoder import nz...
joergwicker/autoencoder
src/main/scala/nz/wicker/autoencoder/neuralnet/rbm/RbmStack.scala
Scala
gpl-3.0
4,106
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
tzulitai/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/batch/table/OverWindowITCase.scala
Scala
apache-2.0
33,407
/* * 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 ...
zhangjunfang/eclipse-dir
spark/core/src/main/scala/org/apache/spark/ui/storage/StorageTab.scala
Scala
bsd-2-clause
3,189
/* * 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 ...
apache/flink
flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/AllWindowTranslationTest.scala
Scala
apache-2.0
44,322
/** * Copyright 2017 Gianluca Amato <gianluca.amato@unich.it> * * This file is part of JANDOM: JVM-based Analyzer for Numerical DOMains * JANDOM 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, eith...
amato-gianluca/Jandom
core/src/main/scala/it/unich/jandom/targets/eqs/EQS.scala
Scala
lgpl-3.0
3,214
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package scalaguide.tests package services import models._ // #scalatest-repository trait UserRepository { def roles(user: User): Set[Role] } // #scalatest-repository
wegtam/playframework
documentation/manual/working/scalaGuide/main/tests/code/services/UserRepository.scala
Scala
apache-2.0
239
package com.stratio.clustercanary import akka.actor.ActorSystem import akka.cluster.Cluster import akka.cluster.client.ClusterClientReceptionist import com.stratio.clustercanary.actors.Echo object EchoServer extends App { val system = ActorSystem("CanaryFlock") Cluster(system).join(Cluster(system).selfAddress) ...
pfcoperez/akkaclusterarena
server/src/main/scala/com/stratio/clustercanary/EchoServer.scala
Scala
mit
445
/** * Β© 2019 Refinitiv. All Rights Reserved. * * 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 l...
dudi3001/CM-Well
server/cmwell-plugin-gremlin/src/main/scala/cmwell/blueprints/jena/RDFNodeExtensions.scala
Scala
apache-2.0
1,077
package org.jetbrains.plugins.scala.failed.typeInference import org.jetbrains.plugins.scala.PerfCycleTests import org.jetbrains.plugins.scala.lang.typeConformance.TypeConformanceTestBase import org.junit.experimental.categories.Category /** * @author Nikolay.Tropin */ @Category(Array(classOf[PerfCycleTests])) cla...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/failed/typeInference/ExistentialConformanceTest.scala
Scala
apache-2.0
1,205
/* * 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 ...
maropu/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/TryCastSuite.scala
Scala
apache-2.0
2,075
package utils import chrome.runtime.bindings.Runtime import scala.util.{Failure, Success, Try} object ErrorHandling { def lastErrorOrValue[T](value: => T): Try[T] = { Runtime.lastError.map { x => Failure(new Exception(x.message.getOrElse(""))) }.getOrElse(Success(value)) } }
amsayk/scala-js-chrome
bindings/src/main/scala/utils/ErrorHandling.scala
Scala
mit
299
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
tzulitai/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/api/stream/table/validation/OverWindowValidationTest.scala
Scala
apache-2.0
5,660
package springrtsru.repository import org.springframework.data.jpa.repository.JpaRepository import org.springframework.stereotype.Repository import springrtsru.model.News @Repository trait NewsRepository extends JpaRepository[News, java.lang.Long] { }
Eltario/springrts-ru-website
src/main/scala/springrtsru/repository/NewsRepository.scala
Scala
unlicense
255
package com.eevolution.context.dictionary.infrastructure.repository import java.util.UUID import com.eevolution.context.dictionary.domain._ import com.eevolution.context.dictionary.domain.model.DynamicValidationRule import com.eevolution.context.dictionary.infrastructure.db.DbContext._ import com.eevolution.utils.Pag...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/repository/DynamicValidationRuleRepository.scala
Scala
gpl-3.0
3,007
/* * Copyright 2016 Coral realtime streaming analytics (http://coral-streaming.github.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...
coral-streaming/coral
src/test/scala/io/coral/actors/connector/KafkaProducerActorSpec.scala
Scala
apache-2.0
4,303
/* * Copyright (C) 2015-2015 Paulo Angelo Alves Resende <pa@pauloangelo.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as * published by the Free Software Foundation. You may not use, modify or * distribute this program und...
pauloangelo/hogzilla
src/org/hogzilla/event/package.scala
Scala
gpl-2.0
906
/* * 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.xpath
core/src/test/scala/kantan/xpath/StringDecoderTests.scala
Scala
apache-2.0
991
/* * Copyright (c) 2017 Magomed Abdurakhmanov, Hypertino * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ package com.hypertino.facade.filters.annotated impo...
hypertino/hyperfacade
src/main/scala/com/hypertino/facade/filters/annotated/ErrorResponseFilterFactory.scala
Scala
mpl-2.0
2,231
package com.twitter.finagle.socks import java.net.{Inet4Address, Inet6Address, InetSocketAddress, SocketAddress} import java.util.concurrent.atomic.AtomicReference import org.jboss.netty.buffer.{ChannelBuffer, ChannelBuffers} import org.jboss.netty.channel._ import org.jboss.netty.util.CharsetUtil import com.twitter...
joshbedo/finagle
finagle-core/src/main/scala/com/twitter/finagle/socks/SocksConnectHandler.scala
Scala
apache-2.0
6,392
/* * Copyright (c) 2014 Ben Whitehead. * * 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 ...
BenWhitehead/finagle-gw2-client
src/test/scala/io/github/benwhitehead/gw2/api/client/GuildWars2ApiRestClientSpec.scala
Scala
apache-2.0
1,502
package apus.protocol import scala.xml.{Text, Null, UnprefixedAttribute, Elem} /** * A Message stanza. * Created by Hao Chen on 2014/11/24. */ case class Message(override val xml: Elem) extends Stanza{ import Message._ require(verify(xml), "This xml is not a valid Message stanza") val to = toOpt.get ov...
raulchen/Apus
src/main/scala/apus/protocol/Message.scala
Scala
apache-2.0
1,467
/********************************************************************************************************************** * This file is part of Scrupal, a Scalable Reactive Web Application Framework for Content Management * * ...
scrupal/scrupal
scrupal-utils/src/main/scala/scrupal/utils/ScrupalComponent.scala
Scala
apache-2.0
4,179
package org.jetbrains.plugins.scala.lang.psi.types.api.designator import com.intellij.psi.{PsiClass, PsiNamedElement} import org.jetbrains.plugins.scala.extensions.PsiClassExt import org.jetbrains.plugins.scala.lang.psi.ScalaPsiUtil import org.jetbrains.plugins.scala.lang.psi.api.statements.params.{PsiTypeParameterExt...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/types/api/designator/ScDesignatorType.scala
Scala
apache-2.0
4,566
/* * 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/core/src/main/scala/org/apache/spark/sql/execution/Generate.scala
Scala
apache-2.0
3,162
package example.project.main trait Workflow object Workflow { lazy val workflows = List(Manual, Auto, Netting) } case object Manual extends Workflow case object Auto extends Workflow case object Netting extends Workflow
agmenc/doc-jockey
src/test/scala/example/project/main/Workflow.scala
Scala
mit
226
package cs220.files import java.io.File object FileMatcher02 { private def filesHere = (new File(".")).listFiles type Matcher = (String, String) => Boolean //def filesMatching(query: String, matcher: Matcher) = //filesHere.filter(matcher(_: String, query))*/ def filesMatching(query: String, matcher: Matc...
umass-cs-220/weekly-topic-control-abstraction
code/func-comp/src/main/scala/cs220/files/FileMatcher02.scala
Scala
apache-2.0
636
/* * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
planet42/Laika
core/shared/src/main/scala/laika/rewrite/link/DocumentTargets.scala
Scala
apache-2.0
8,003
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2010, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/collection/generic/ImmutableSortedSetFactory.scala
Scala
apache-2.0
1,135
/* * Copyright (C) 2015 Language Technology Group * * 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. * * ...
tudarmstadt-lt/newsleak
common/src/main/scala/model/queryable/impl/TagQueryableImpl.scala
Scala
agpl-3.0
3,560
/* * 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 t...
srijs/zipkin
zipkin-query-service/src/main/scala/com/twitter/zipkin/builder/QueryServiceBuilder.scala
Scala
apache-2.0
2,036
import com.typesafe.sbt.web.SbtWeb import org.scalajs.sbtplugin.ScalaJSPlugin import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ import sbt.Keys._ import sbt._ object Build extends sbt.Build { val Scala211 = "2.11.7" val pouchDBVersion = "3.6.0" val leafletVersion = "0.7.5" type PE = Project => Project ...
maprohu/scalajs-facades
project/Build.scala
Scala
mit
5,661
package utils import com.mohiva.play.silhouette.impl.daos.DelegableAuthInfoDAO import com.mohiva.play.silhouette.impl.providers.OAuth2Info import com.mohiva.play.silhouette.impl.services.DelegableAuthInfoService trait AuthInfoServiceModule { lazy val authInfoService = new DelegableAuthInfoService(authInfoDAO) d...
yzernik/office-ladder
server/app/utils/AuthInfoServiceModule.scala
Scala
mit
371
package lila.fishnet import akka.actor._ import akka.pattern.ask import org.joda.time.DateTime import lila.hub.{ actorApi => hubApi } import makeTimeout.short private final class MoveDB( roundMap: ActorSelection, system: ActorSystem) { import Work.Move def add(move: Move) = actor ! Add(move) def acq...
clarkerubber/lila
modules/fishnet/src/main/MoveDB.scala
Scala
agpl-3.0
3,375
/* * 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 ...
tysonnorris/openwhisk
common/scala/src/main/scala/whisk/core/containerpool/HttpUtils.scala
Scala
apache-2.0
6,346
package com.rikmuld.camping.features.items.parts import com.rikmuld.camping.CampingMod import com.rikmuld.camping.Definitions.Parts import net.minecraft.init.Items import net.minecraft.item.ItemStack import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.mi...
Rikmuld/MC-Camping
scala/com/rikmuld/camping/features/items/parts/EventsServer.scala
Scala
gpl-3.0
1,043
/** * Copyright 2009 Jorge Ortiz * * 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...
mamdouhweb/nscala-time
src/main/scala/com/github/nscala_time/time/RichInstant.scala
Scala
apache-2.0
1,061
package scala.lms package common import scala.lms.common._ /** * IR: this is the front-end that defines what operations are available in user applications. Backends can share * packages if they choose. */ trait LiftScala extends LiftAll with LiftVariables with LiftEquals { this: ScalaOpsPkg => } trait Scal...
scalan/virtualization-lms-core
src/common/Packages.scala
Scala
bsd-3-clause
4,112
/* * Copyright 2014–2018 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
slamdata/matryoshka
core/shared/src/main/scala/matryoshka/implicits/AlgebraOps.scala
Scala
apache-2.0
1,151
package xyz.hyperreal.prolog import xyz.hyperreal.char_reader.CharReader abstract class PrologAST case class SourceAST(clauses: List[ClauseAST]) extends PrologAST case class ClauseAST(term: TermAST) extends PrologAST abstract class TermAST extends PrologAST { val pos: CharReader } case class StructureAST(pos: C...
edadma/funl
prolog/src/main/scala/xyz/hyperreal/prolog/PrologAST.scala
Scala
mit
990
package org.openstack.api.restful.ceilometer.v2.elements /** * ceilometer AlarmTimeConstraint representation * @author Antonio Murgia * @version 22/10/14 */ case class AlarmTimeConstraint(description : String, duration : Int, name : String, start : String, timezone : String) { } /* description Type: unicode The d...
tmnd1991/ceilometerAPI4s
src/main/scala/org/openstack/api/restful/ceilometer/v2/elements/AlarmTimeConstraint.scala
Scala
apache-2.0
592
package sp.milowrapper // SP import sp.domain._ import Logic._ import play.api.libs.json._ import scala.util.Try // Milo import org.eclipse.milo.opcua.stack.core.Identifiers import org.eclipse.milo.opcua.stack.core.BuiltinDataType import org.eclipse.milo.opcua.sdk.client.api.nodes.Node import org.eclipse.milo.opcua....
kristoferB/SP
spservices/opcua/src/main/scala/sp/milowrapper/OpcCommunication.scala
Scala
mit
10,399
/* * Copyright (C) 2015 Vladimir Konstantinov, Yuriy Gintsyak * * 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 3 of the License, or * (at your option) any later ver...
oxy-development/util
src/main/scala/io/cafebabe/util/io/package.scala
Scala
lgpl-3.0
2,364
package es.um.nosql.streaminginference.spark import scala.collection.immutable.HashMap import org.apache.spark.SparkConf import org.apache.spark.streaming.Milliseconds import org.apache.spark.streaming.StreamingContext import es.um.nosql.streaminginference.spark.input.DStreamManager import es.um.nosql.streaminginfer...
catedrasaes-umu/NoSQLDataEngineering
projects/es.um.nosql.streaminginference.json2dbschema/src/es/um/nosql/streaminginference/spark/Streaming.scala
Scala
mit
5,141
package org.jetbrains.plugins.scala package lang package psi package stubs package elements import com.intellij.psi.PsiElement import com.intellij.psi.stubs.{IndexSink, StubElement, StubInputStream, StubOutputStream} import org.jetbrains.plugins.scala.lang.psi.api.statements.params.ScTypeParamClause import org.jetbra...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/stubs/elements/ScTypeParamClauseElementType.scala
Scala
apache-2.0
1,494
import sbt._ import sbt.Keys._ import scala.util.Try import scala.io.Source import scala.sys.process.Process /** * Add to build.sbt: * * resourceGenerators in Compile <+= ( * resourceManaged in Compile, name, version * ) map { * (dir, n, v) => BooterPropertiesGenerator(dir, n, v) * } */ object BooterProper...
edmcouncil/rdf-serializer
project/BooterPropertiesGenerator.scala
Scala
mit
2,784
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
fhueske/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/nodes/physical/batch/BatchExecSort.scala
Scala
apache-2.0
5,698
package lila.irwin import lila.report.Suspect import lila.game.Game import lila.analyse.Analysis case class IrwinRequest( suspect: Suspect, origin: IrwinRequest.Origin, games: List[(Game, Option[Analysis])] ) object IrwinRequest { sealed trait Origin { def key = toString.toLowerCase } object ...
luanlv/lila
modules/irwin/src/main/IrwinRequest.scala
Scala
mit
464
package collins import org.specs2.matcher.Expectable import org.specs2.matcher.Matcher import org.specs2.specification.Scope import play.api.http.HeaderNames import play.api.libs.json.JsArray import play.api.libs.json.JsObject import play.api.libs.json.Json import play.api.mvc.AnyContent import play.api.mvc.AnyConten...
funzoneq/collins
test/collins/RequestHelpers.scala
Scala
apache-2.0
3,814
package org.opensplice.mobile.dev.dadds.core import java.util.concurrent.TimeUnit object Duration { import org.omg.dds.core.ServiceEnvironment def apply(d: Long, unit: TimeUnit)(implicit env: ServiceEnvironment) = env.getSPI.newDuration(d, unit) def zero()(implicit env: ServiceEnvironment) = env.getSPI.zeroDur...
levitha/levitha
src/main/scala/org/opensplice/mobile/dev/dadds/core/Core.scala
Scala
apache-2.0
793
// Copyright 2015-2016 Ricardo Gladwell. // Licensed under the GNU Affero General Public License. // See the LICENSE file for more information. package com.is_hosted_by.api.net import java.net.InetAddress import net.ripe.commons.ip._ case class IpRangePrefix(from: String, to: String) extends IpPrefix { val prefix...
is-hosted-by/is-hosted-by-api
src/main/scala/com/is_hosted_by/api/net/IpRangePrefix.scala
Scala
agpl-3.0
633
package piecewise import java.util.Objects import scala.annotation.tailrec import scala.math.{abs, signum} /** Trait for piecewise functions * Created by daniil-timofeev on 06.02.2016. */ abstract class PieceFunction{ /** The value of function at `x` argument * * @param x function argument */ def...
daniil-timofeev/gridsplines
piecewise/src/main/scala/piecewise/PieceFunction.scala
Scala
apache-2.0
12,113
package org.jetbrains.plugins.scala.lang.psi.implicits import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.lang.psi.types.ScType import scala.collection.immutable.HashMap /** * @author Alexander Podkhalyuzin */ object ImplicitsRecursionGuard { type RecursionMap = Map[PsiElement, List[ScType]] ...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/implicits/ImplicitsRecursionGuard.scala
Scala
apache-2.0
1,833
/* * 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 ...
Dax1n/spark-core
core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala
Scala
apache-2.0
2,221
package com.godatadriven.twitter_classifier import com.google.gson.Gson import org.apache.kafka.clients.producer.{ProducerRecord, KafkaProducer} import org.apache.spark.{SparkConf, SparkContext} import scala.collection.JavaConversions._ /** * Collect at least the specified number of tweets into json text files. *...
rweverwijk/twitter-to-neo4j
src/main/scala/com/godatadriven/twitter_classifier/HdfsToKafka.scala
Scala
apache-2.0
1,283
package play.modules.reactivemongo import scala.util.{ Failure, Success } import reactivemongo.bson._ import play.api.data.FormError import play.api.data.format.Formatter /** Instances of [[https://www.playframework.com/documentation/2.4.0/api/scala/index.html#play.api.data.format.Formatter Play Formatter]] for the...
duncancrawford/Play-Json-ReactiveMongo
src/main/scala/play/modules/reactivemongo/typeclasses.scala
Scala
apache-2.0
3,233
/* * Copyright 2016 Actian 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 applicable law or agree...
ActianCorp/spark-vector
src/main/scala/com/actian/spark_vector/sql/DefaultSource.scala
Scala
apache-2.0
2,520
package io.finch.petstore import com.twitter.finagle.{Service} import com.twitter.finagle.httpx.{FileElement, Request, RequestBuilder, Response} import com.twitter.io.{Buf, Reader} import com.twitter.util.{Await} import io.finch.test.ServiceSuite import org.scalatest.Matchers import org.scalatest.fixture.FlatSpec tra...
peel/finch
petstore/src/test/scala/io/finch/petstore/PetstoreStoreServiceSpec.scala
Scala
apache-2.0
2,986
package suiryc.scala.javafx.beans.value import javafx.beans.{value => jfxbv} case class ChangeListener[T](fn: (jfxbv.ObservableValue[_ <: T], T, T) => Unit) extends jfxbv.ChangeListener[T] { def changed(observable: jfxbv.ObservableValue[_ <: T], oldValue: T, newValue: T): Unit = fn(observable, oldValue, new...
swhgoon/suiryc-scala
javafx/src/main/scala/suiryc/scala/javafx/beans/value/ChangeListener.scala
Scala
gpl-3.0
330
package name.abhijitsarkar.scala import akka.actor.ActorSystem import org.springframework.context.ApplicationContext import akka.actor.Props import akka.actor.Extension import org.springframework.util.Assert._ import akka.actor.Actor class SpringExtensionImpl extends Extension { var applicationContext: ApplicationC...
asarkar/akka
weather-akka-scala-spring/src/main/scala/name/abhijitsarkar/scala/SpringExtensionImpl.scala
Scala
gpl-3.0
1,319
/* * 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 ...
RSulzmann/openwhisk
tests/src/test/scala/services/HeadersTests.scala
Scala
apache-2.0
10,631
package scala.slick.lifted import scala.slick.ast._ import scala.slick.ast.Util.nodeToNodeOps import scala.slick.model.ForeignKeyAction /** A Tag marks a specific row represented by an AbstractTable instance. */ sealed trait Tag { /** Return a new instance of the AbstractTable carrying this Tag, with a new path */ ...
dvinokurov/slick
src/main/scala/scala/slick/lifted/AbstractTable.scala
Scala
bsd-2-clause
5,328
package com.github.gdefacci.briscola.web.util import com.github.gdefacci.briscola.web.util.ArgonautEncodeHelper.asJson import argonaut.EncodeJson import rx.lang.scala.Observable trait WebSocketChannel[T] extends (T => Observable[String]) { def apply(pid: T): Observable[String] } object WebSocketChannel { def ...
gdefacci/briscola
ddd-briscola-web/src/main/scala/com/github/gdefacci/briscola/web/util/WebSocketChannel.scala
Scala
bsd-3-clause
889
/* Copyright 2012 Georgia Tech Research Institute Author: lance.gatlin@gtri.gatech.edu This file is part of org.gtri.util.scala.statemachine library. org.gtri.util.scala.statemachine library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
gtri-iead/org.gtri.util.scala
statemachine/src/main/scala/org/gtri/util/scala/statemachine/utility/TraversableEnumerator.scala
Scala
gpl-3.0
2,508
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
i8run/BigDL-1
spark/dl/src/test/scala/com/intel/analytics/bigdl/dataset/text/SentenceTokenizerSpec.scala
Scala
apache-2.0
3,635
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package controllers import java.util.Properties import _root_.features.ApplicationFeatures import kafka.manager._ import kafka.manager.features.KMLogKafkaFeature import kafka.manager.model.ActorModel...
patelh/kafka-manager
app/controllers/Logkafka.scala
Scala
apache-2.0
20,261
package com.example import akka.actor.{Props, ActorSystem} import spray.servlet.WebBoot // this class is instantiated by the servlet initializer // it needs to have a default constructor and implement // the spray.servlet.WebBoot trait class Boot extends WebBoot { // we need an ActorSystem to host our application ...
rohshall/sprayreadings
src/main/scala/com/example/Boot.scala
Scala
mit
480
package org.jetbrains.plugins.scala package codeInspection.typeAnnotation import com.intellij.codeInspection.ProblemsHolder import com.intellij.openapi.project.Project import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.codeInsight.intention.types.{AddOnlyStrategy, ToggleTypeAnnotation} import org.je...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/codeInspection/typeAnnotation/TypeAnnotationInspection.scala
Scala
apache-2.0
4,957
package controllers import play.api._ import com.codahale.metrics.JmxReporter object Global extends GlobalSettings { /** The application wide metrics registry. */ val metricRegistry = new com.codahale.metrics.MetricRegistry() val reporter = JmxReporter.forRegistry(metricRegistry).build() reporter.start() }
bartschuller/play-metrics-integration
app/controllers/Global.scala
Scala
mit
318
/* * 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 ...
zhangminglei/flink
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/functions/ScalarFunctions.scala
Scala
apache-2.0
4,623
package com.goyeau.kubernetes.client /** Event represents a single event to a watched resource. */ import io.circe._ import io.circe.generic.semiauto._ import io.circe.syntax._ sealed trait EventType object EventType { case object ADDED extends EventType case object DELETED extends EventType case object MO...
joan38/kubernetes-client
kubernetes-client/src/com/goyeau/kubernetes/client/WatchEvent.scala
Scala
apache-2.0
1,391
package org.scalaide.core object SdtConstants { // flags to enable using "-D..=true" vm arguments private[core] final val HeadlessProperty = "sdtcore.headless" private[core] final val NoTimeoutsProperty = "sdtcore.notimeouts" // Eclipse ids final val PluginId = "org.scala-ide.sdt.core" final val Aspects...
sschaef/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/core/SdtConstants.scala
Scala
bsd-3-clause
3,831
/******************************************************************************* * Copyright 2010 Maxime LΓ©vesque * * 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://...
broadinstitute/Squeryl
src/main/scala/org/squeryl/Query.scala
Scala
apache-2.0
2,496
/* * 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 ...
indhub/mxnet
scala-package/macros/src/main/scala/org/apache/mxnet/SymbolMacro.scala
Scala
apache-2.0
9,441
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frs105/boxes/AC436.scala
Scala
apache-2.0
1,463
/* * Copyright (c) 2014-2021 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
monifu/monifu
monix-reactive/shared/src/main/scala/monix/reactive/subjects/ConcurrentSubject.scala
Scala
apache-2.0
13,133
/* * 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 ...
jongwook/incubator-s2graph
s2core/src/main/scala/org/apache/s2graph/core/utils/Logger.scala
Scala
apache-2.0
2,256
// package recursive import pkg._ @plusTwo class CPreToplevelNocomp { override def toString = "CPreToplevelNocomp" } object CPreToplevelPrecomp { def apply() = new CPreToplevelPrecomp } @plusTwo class CPreToplevelPrecomp { override def toString = "CPreToplevelPrecomp" } @plusTwo class CPreToplevelPostcomp { override ...
scala/scala
test/macro-annot/run/recursive/recursive_2.scala
Scala
apache-2.0
3,854
import scala.language.postfixOps import scala.util._ import scala.util.control.NonFatal import scala.concurrent._ import scala.concurrent.duration._ import ExecutionContext.Implicits.global import scala.async.Async.{async, await} /** Contains basic data types, data structures and `Future` extensions. */ package objec...
mitochon/hexercise
src/mooc/reactive/week3.nodescala.orig/src/main/scala/nodescala/package.scala
Scala
mit
4,680
package modules import akka.event.slf4j.SLF4JLogging import com.github.kristofa.brave.SpanCollector import scaldi.Module class TracingModule extends Module with SLF4JLogging { bind[SpanCollector] to new SpanCollectorFactory().provide }
leanovate/microzon-web
app/modules/TracingModule.scala
Scala
mit
241
package hyperion import scala.io.StdIn import akka.actor.{Actor, ActorLogging, ActorRef} import hyperion.p1.TelegramReceived class FakeMeterAgent(messageDistributor: ActorRef) extends Actor with ActorLogging { override def receive: Actor.Receive = { case _ => log.warning("No messages expected") } log.war...
mthmulders/hyperion
test-app/src/main/scala/hyperion/FakeMeterAgent.scala
Scala
mit
755
package pl.pholda.malpompaaligxilo.form.field.calculateField.cost import pl.pholda.malpompaaligxilo.i18n._ abstract class CostValue { def total: Double } object CostValue { case class SingleCostValue(item: String, description: I18nString, cost: Double) extends CostValue { override def total: Double = cost ...
pholda/MalpompaAligxilo
core/shared/src/main/scala/pl/pholda/malpompaaligxilo/form/field/calculateField/cost/CostValue.scala
Scala
gpl-3.0
644
package dotty.tastydoc package comment trait CommentCleaner { import Regexes._ import java.util.regex.Matcher def clean(comment: String): List[String] = { def cleanLine(line: String): String = { // Remove trailing whitespaces TrailingWhitespace.replaceAllIn(line, "") match { case CleanCo...
som-snytt/dotty
tastydoc/src/dotty/tastydoc/comment/CommentCleaner.scala
Scala
apache-2.0
876
package org.scalawiki.json import java.time.{Instant, ZoneOffset, ZonedDateTime} import java.time.format.DateTimeFormatter import org.scalawiki.dto._ import play.api.libs.json.JsonValidationError import play.api.libs.json.{JsError, JsNumber, JsPath, JsResult, JsString, JsSuccess, JsValue, Reads, _} /** * Created b...
intracer/scalawiki
scalawiki-core/src/main/scala/org/scalawiki/json/WikiReads.scala
Scala
apache-2.0
7,539
package ohnosequences.metapasta.reporting.spreadsheeet import ohnosequences.nisperon.{longMonoid, doubleMonoid, intMonoid, Monoid} import scala.collection.mutable trait Context { def get[A <: AnyAttribute](attribute: A, index: Int): attribute.Type def getTotal[A <: AnyAttribute](attribute: A): attribute.Type d...
INTERCROSSING/metapasta
src/main/scala/ohnosequences/metapasta/reporting/spreadsheeet/Attribute.scala
Scala
agpl-3.0
6,583
/* * 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 ...
jeremiaswerner/openwhisk
common/scala/src/main/scala/org/apache/openwhisk/core/entity/InstanceId.scala
Scala
apache-2.0
5,996