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
/* * Tranquility. * Copyright 2013, 2014, 2015 Metamarkets Group, 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...
deepikakhera/spark-tranquility
storm/src/test/scala/com/metamx/tranquility/test/StormDruidTest.scala
Scala
apache-2.0
3,569
package org.testobjects trait ATestInt { def withValue(int: Int): Int = int val nonNull: Int = 0 }
test-objects/test-objects-for-scala-jvm1.7
src/main/scala/org/testobjects/ATestInt.scala
Scala
apache-2.0
107
package yuuto.enhancedinventories.block import java.util.List import net.minecraftforge.common.util.ForgeDirection import net.minecraft.tileentity.TileEntity import yuuto.enhancedinventories.tile.TileCabinet import net.minecraft.world.World import net.minecraft.block.material.Material import net.minecraft.nbt.NBTTagCo...
AnimeniacYuuto/EnhancedInventories
src/main/scala/yuuto/enhancedinventories/block/BlockCabinet.scala
Scala
gpl-2.0
4,720
package pl.touk.nussknacker.sql.utils import io.circe.generic.JsonCodec import pl.touk.nussknacker.engine.api._ import pl.touk.nussknacker.engine.api.process.{EmptyProcessConfigCreator, _} import pl.touk.nussknacker.engine.lite.api.utils.sinks.LazyParamSink import pl.touk.nussknacker.engine.requestresponse.utils.JsonR...
TouK/nussknacker
components/sql/src/test/scala/pl/touk/nussknacker/sql/utils/RequestResponseConfigCreator.scala
Scala
apache-2.0
1,686
package org.jetbrains.plugins.scala package lang package completion package filters.definitions import com.intellij.psi._ import com.intellij.psi.filters.ElementFilter import org.jetbrains.annotations.NonNls import org.jetbrains.plugins.scala.lang.completion.ScalaCompletionUtil._ import org.jetbrains.plugins.scala.lan...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/lang/completion/filters/definitions/DefinitionsFilter.scala
Scala
apache-2.0
2,878
package com.houseofmoran.zeitgeist import org.json4s.JValue trait Snapshotable { def toJSON(): JValue }
mikemoraned/zeitgeist
src/main/scala/com/houseofmoran/zeitgeist/Snapshotable.scala
Scala
mit
108
package io.iohk.ethereum.ets.blockchain import akka.util.ByteString import io.iohk.ethereum.consensus.Protocol import io.iohk.ethereum.consensus.ethash.validators.ValidatorsExecutor import io.iohk.ethereum.domain.{Address, UInt256} import io.iohk.ethereum.utils.{BlockchainConfig, DaoForkConfig, MonetaryPolicyConfig} i...
input-output-hk/etc-client
src/ets/scala/io/iohk/ethereum/ets/blockchain/BlockchainTestConfig.scala
Scala
mit
16,764
package models.daos import org.scalatest._ import play.api.libs.concurrent.Execution.Implicits.defaultContext import org.scalatest.concurrent._ import scala.concurrent.duration._ import scala.concurrent._ import models.Gathering import models.Goal import slick.driver.PostgresDriver.api._ import java.util.UUID import ...
leannenorthrop/play-mantra-accumulations
test/models/daos/GatheringsDAOSpec.scala
Scala
apache-2.0
4,318
import _root_.io.gatling.core.scenario.Simulation import ch.qos.logback.classic.{Level, LoggerContext} import io.gatling.core.Predef._ import io.gatling.http.Predef._ import org.slf4j.LoggerFactory import scala.concurrent.duration._ /** * Performance test for the Auspraegung entity. */ class AuspraegungGatlingTest ...
t08094a/ffManagementSuite
src/test/gatling/user-files/simulations/AuspraegungGatlingTest.scala
Scala
gpl-3.0
3,396
package akka import akka.event.Logging import akka.http.scaladsl.testkit.ScalatestRouteTest import akka.stream.QueueOfferResult import akka.stream.QueueOfferResult.Enqueued import akka.stream.scaladsl.SourceQueueWithComplete import akka.testkit.{TestActorRef, TestProbe} import com.omearac.consumers.{DataConsumer, Even...
omearac/reactive-kafka-microservice-template
src/test/scala/akka/HTTPInterfaceSpec.scala
Scala
apache-2.0
3,384
package eu.ace_design.island.geom import eu.ace_design.island.util.{LogSilos, Logger} /** * This file is part of the Island project. * @author mosser **/ /** * A MeshBuilder is used to generate an Island mesh based on a given set of Points. * * Remark: this class exploits the JTS Topology Suites for Voronoi an...
ace-design/island
engine/src/main/scala/eu/ace_design/island/geom/MeshBuilder.scala
Scala
lgpl-3.0
9,291
package com.innoq.leanpubclient import akka.NotUsed import akka.stream.scaladsl.Source import com.innoq.leanpubclient.ResponseHandler._ import play.api.libs.json._ import play.api.libs.ws.{StandaloneWSClient, StandaloneWSRequest} import scala.concurrent.duration._ import scala.concurrent.{ExecutionContext, Future} /...
innoq/leanpub-client
src/main/scala/com/innoq/leanpubclient/LeanPubClient.scala
Scala
mit
7,036
package org.jetbrains.plugins.scala package lang package psi package impl package statements package params import com.intellij.lang.ASTNode import com.intellij.psi._ import com.intellij.psi.scope.PsiScopeProcessor import org.jetbrains.plugins.scala.JavaArrayFactoryUtil.ScTypeParamFactory import org.jetbrains.plugins....
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/statements/params/ScTypeParamClauseImpl.scala
Scala
apache-2.0
1,460
package gie.app.gbb.db ////////////////////////////////////////////////////////////////////////////////// import gie.app.gbb.SlickProfile.profile.simple._ import com.github.nscala_time.time.Imports._ import gie.UUIDMapper._ import gie.DateTimeMapper._ /////////////////////////////////////////////////////////////////...
igorge/gbb
src/main/scala/code/db/ddl.scala
Scala
gpl-2.0
3,273
package nz.wicker.autoencoder.neuralnet import nz.wicker.autoencoder.math.matrix._ import nz.wicker.autoencoder.math.matrix.Mat import nz.wicker.autoencoder.math.structure.VectorSpace import nz.wicker.autoencoder.visualization.Visualizable import java.awt.Image import java.awt.image.BufferedImage /** * Represents a ...
joergwicker/autoencoder
src/main/scala/nz/wicker/autoencoder/neuralnet/Layer.scala
Scala
gpl-3.0
3,378
package com.advancedspark.pmml.spark.ml import java.io.File import scala.collection.JavaConverters._ import org.apache.spark.SparkConf import org.apache.spark.SparkContext import org.apache.spark.sql.SQLContext import org.apache.spark.ml.Pipeline import org.apache.spark.ml.PipelineStage import org.apache.spark.ml.Pr...
fluxcapacitor/source.ml
apachespark.ml/demos/pmml/src/main/scala/com/advancedspark/pmml/spark/ml/GeneratePMML.scala
Scala
apache-2.0
6,665
/* * Copyright 2011-2017 Chris de Vreeze * * 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...
dvreeze/yaidom
shared/src/main/scala/eu/cdevreeze/yaidom/queryapi/DocumentApi.scala
Scala
apache-2.0
1,432
/* * 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/Profiling.scala
Scala
apache-2.0
3,050
package mesosphere.marathon.core.storage.store.impl.cache import java.util.UUID import com.codahale.metrics.MetricRegistry import mesosphere.AkkaUnitTest import mesosphere.marathon.core.storage.store.PersistenceStoreTest import mesosphere.marathon.core.storage.store.impl.InMemoryTestClass1Serialization import mesosph...
timcharper/marathon
src/test/scala/mesosphere/marathon/core/storage/store/impl/cache/LazyCachingPersistenceStoreTest.scala
Scala
apache-2.0
1,592
package io.surfkit.typebus.actors import akka.actor.{Actor, ActorLogging, Props} import io.surfkit.typebus.AvroByteStreams import io.surfkit.typebus.bus.Publisher import io.surfkit.typebus.event._ /*** * ProducerActor - wraps the bus and publishes request to it. (Kafka / Kinesis) * Note that we wrap all messages ...
coreyauger/typebus
typebus/src/main/scala/io/surfkit/typebus/actors/ProducerActor.scala
Scala
mit
1,074
// Copyright 2013 Sean Wellington // // 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...
sean8223/akka-sqs
src/test/scala/sqs/sean8223/SQSPollerSpec.scala
Scala
apache-2.0
1,074
package scscene import java.awt.Graphics2D import java.io.File import java.net.URI import java.util.{ Vector => JVector } import com.kitfox.svg._ import scgeom._ object SvgFigure { def load(file:File):SVGDiagram = load(file.toURI) def load(uri:URI):SVGDiagram = SVGCache.getSVGUniverse getDiagram uri } case class...
ritschwumm/scscene
src/main/scala/scscene/SvgFigure.scala
Scala
bsd-2-clause
927
package me.frmr.kafka.detective import java.util.Properties import org.apache.kafka.common._ import org.apache.kafka.clients.consumer._ import org.scalatest._ import org.scalatest.concurrent._ import scala.collection.JavaConverters._ class CallbackKafkaConsumerSpec extends FlatSpec with Matchers with Eventually { "...
farmdawgnation/kafka-detective
daemon/src/test/scala/me/frmr/kafka/detective/CallbackKafkaConsumerSpec.scala
Scala
apache-2.0
4,745
package views.html import play.templates._ import play.templates.TemplateMagic._ import play.api.templates._ import play.api.templates.PlayMagic._ import models._ import controllers._ import play.api.i18n._ import play.api.mvc._ import play.api.data._ import views.html._ /* userCountDown Template File */ object user...
pamu/FooService
FooService2/target/scala-2.10/src_managed/main/views/html/userCountDown.template.scala
Scala
apache-2.0
4,406
package sbtmarathon import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.atomic.AtomicInteger import scala.collection.JavaConverters._ import com.twitter.finagle.Service import com.twitter.finagle.http._ import com.twitter.finagle.http.path._ import com.twitter.finagle.http.service.RoutingService ...
Tapad/sbt-marathon
marathon/src/test/scala/sbtmarathon/MockMarathonService.scala
Scala
bsd-3-clause
2,419
/* * Copyright 2015 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 t...
rspieldenner/atlas
atlas-core/src/main/scala/com/netflix/atlas/core/model/MathVocabulary.scala
Scala
apache-2.0
20,824
/* * Copyright 2014 http4s.org * * 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...
http4s/http4s
server/shared/src/test/scala/org/http4s/server/middleware/ErrorActionSuite.scala
Scala
apache-2.0
3,847
/** * This file is part of mycollab-web. * * mycollab-web is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * mycollab-web is d...
uniteddiversity/mycollab
mycollab-web/src/main/scala/com.esofthead.mycollab.module.project.view.parameters/ProjectModuleScreenData.scala
Scala
agpl-3.0
986
/** * Magmanics Licensing. This web application allows for centralized control * of client application activation, with optional configuration parameters * to control licensable features, and storage of supplementary information * about the client machine. Client applications may interface with this * central serv...
manicmonkey/licensing
Licensing-Server/src/main/scala/com/magmanics/licensing/endpoint/CustomerEndpoint.scala
Scala
gpl-3.0
2,576
package common.models import anorm.NamedParameter import common.api.PermissionLevel.PermissionLevel import common.api.{Model, PermissionLevel} case class CustomCommand(guildId: Long, commandName: String, permissionLevel: Int = PermissionLevel.EVERYONE.id, commandContent: String = "") extends Model { override val...
Cobbleopolis/MonsterTruckBot
modules/common/app/common/models/CustomCommand.scala
Scala
mit
611
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.sbt object Colors { import play.runsupport.{ Colors => RunColors } lazy val isANSISupported = RunColors.isANSISupported def red(str: String): String = RunColors.red(str) def blue(str: String): String = RunColors.blue(str)...
mkurz/playframework
dev-mode/sbt-plugin/src/main/scala/play/sbt/Colors.scala
Scala
apache-2.0
730
package org.scalatra.test import org.eclipse.jetty.server.Server import org.eclipse.jetty.servlet.ServletContextHandler trait EmbeddedJettyContainer extends JettyContainer { /** * Sets the port to listen on. 0 means listen on any available port. */ def port: Int = 0 /** * The port of the currently ru...
louk/scalatra
test/src/main/scala/org/scalatra/test/EmbeddedJettyContainer.scala
Scala
bsd-2-clause
1,198
/** * Copyright 2011-2017 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
timve/gatling
gatling-charts/src/main/scala/io/gatling/charts/stats/LogFileReader.scala
Scala
apache-2.0
13,126
// Copyright 2014 Commonwealth Bank of Australia // // 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...
shyam334/ebenezer
test/src/test/scala/au/com/cba/omnia/ebenezer/test/HiveTestSupportSpec.scala
Scala
apache-2.0
3,616
package org.http4s.server.middleware import cats.effect._ import org.http4s.{Http4sSpec, HttpRoutes, Request, Status} import org.http4s.server.{MockRoute, Router} import org.http4s.Uri.uri class AutoSlashSpec extends Http4sSpec { val route = MockRoute.route() val pingRoutes = { import org.http4s.dsl.io._ ...
aeons/http4s
server/src/test/scala/org/http4s/server/middleware/AutoSlashSpec.scala
Scala
apache-2.0
2,019
package org.jetbrains.plugins.scala.lang.parser.parsing.base import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.parser.ErrMsg import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder /** * @author adkozlov */ /* * AccessModifier ::= '[' (i...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/lang/parser/parsing/base/AccessQualifier.scala
Scala
apache-2.0
1,042
package controllers import java.util.UUID import javax.inject.Inject import com.mohiva.play.silhouette.api._ import com.mohiva.play.silhouette.api.repositories.AuthInfoRepository import com.mohiva.play.silhouette.api.util.{PasswordHasherRegistry, PasswordInfo} import com.mohiva.play.silhouette.impl.providers....
epot/Gifter
app/controllers/ResetPasswordController.scala
Scala
mit
3,095
package controllers.backend import java.util.Date import org.mockito.ArgumentMatchers import org.specs2.mock.Mockito import scala.concurrent.ExecutionContext.Implicits._ import scala.concurrent.Future import com.overviewdocs.query.Field import com.overviewdocs.searchindex.SearchWarning import models.{InMemorySelectio...
overview/overview-server
web/test/controllers/backend/NullSelectionBackendSpec.scala
Scala
agpl-3.0
2,257
package com.jasperdenkers.play.auth import org.scalatestplus.play._ class CapabilitySpec extends PlaySpec { "Capabilities" must { object TokenA extends Token object TokenB extends Token object CapabilityByTokenA extends CapabilityByToken { def predicate = _ == TokenA } object Capability...
jasperdenkers/play-auth
core/test/com/jasperdenkers/play/auth/CapabilitySpec.scala
Scala
mit
780
package pt.up.fe.iart.proj1.solver import pt.up.fe.iart.proj1.collections.QueueLike import scala.annotation.tailrec import scala.collection.mutable import scala.collection.immutable /* Possible search results that various search algorithms can return */ sealed abstract class SearchResult[+A] case class Success[A](re...
migulorama/feup-iart-2014
src/main/scala/pt/up/fe/iart/proj1/solver/Search.scala
Scala
mit
4,555
/** * Copyright 2015, deepsense.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
deepsense-io/seahorse-workflow-executor
deeplang/src/it/scala/io/deepsense/deeplang/doperations/examples/BinarizeExample.scala
Scala
apache-2.0
1,085
package com.featurefm.riversong import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.testkit.ScalatestRouteTest import com.featurefm.riversong.message.Message import com.featurefm.riversong.routes.LifecycleRouting import com.typesafe.config.ConfigFactory import org.json4s.JsonAST.JObject import org.sc...
ListnPlay/RiverSong
src/test/scala/com/featurefm/riversong/LifecycleRouteSpec.scala
Scala
mit
2,239
/* * OverviewUser.scala * * Overview * Created by Jonas Karlsson, Aug 2012 */ package models import com.github.t3hnar.bcrypt._ import java.sql.Timestamp import java.util.Date import models.tables.Users import com.overviewdocs.database.HasBlockingDatabase import com.overviewdocs.models.UserRole /** * A user th...
overview/overview-server
web/app/models/OverviewUser.scala
Scala
agpl-3.0
7,552
package picfg import java.text.SimpleDateFormat import java.util.Date import sodium.StreamSink object log { sealed trait Log{ val ts = new Date() } case class Info(msg: String) extends Log case class Error(msg: String, e: Exception) extends Log private object LogSupport { // stream for log eve...
j-keck/picfg
src/main/scala/picfg/log.scala
Scala
mit
613
/* * Copyright 2013 http4s.org * * 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...
http4s/http4s
core/shared/src/main/scala/org/http4s/Protocol.scala
Scala
apache-2.0
935
def curry[A,B,C](f: (A, B) => C): A => (B => C) = { a: A => b: B => f(a, b)}
hiroqn/scalaz-study
src/p2-3.scala
Scala
mit
77
package de.frosner.broccoli.routes import javax.inject.Inject import com.google.inject.Provider import de.frosner.broccoli.controllers._ import play.api.mvc.{Action, Results} import play.api.routing.Router.Routes import play.api.routing.SimpleRouter import play.api.routing.sird._ /** * Routes for Broccoli REST API...
FRosner/cluster-broccoli
server/src/main/scala/de/frosner/broccoli/routes/ApiV1Router.scala
Scala
apache-2.0
1,907
package com.twitter.querulous.async import java.sql.Connection import concurrent._ import com.twitter.querulous.{StatsCollector, NullStatsCollector } import com.twitter.querulous.database.{Database, DatabaseFactory} import com.twitter.querulous.config class BlockingDatabaseWrapperFactory( contextFactory :() => E...
kievbs/querulous210
src/main/scala/com/twitter/querulous/async/BlockingDatabaseWrapper.scala
Scala
apache-2.0
5,856
package edu.gemini.osgi.tools /** A version per R4 spec section 3.1.4. The qualifier is unused. */ case class Version(major: Int, minor: Int, micro: Int) extends Ordered[Version] { implicit class ZeroOrElse(n: Int) { def orElse(m: Int) = if (n != 0) n else m } def compare(other: Version) = (maj...
arturog8m/ocs
project/src/main/scala/edu/gemini/osgi/tools/Version.scala
Scala
bsd-3-clause
915
package com.twitter.finagle.mysql import com.twitter.finagle.mysql.transport.{MysqlBuf, Packet} import com.twitter.finagle.transport.Transport import com.twitter.finagle.Stack import com.twitter.util.{Future, Return, Throw, Try} /** * A base class for exceptions related to client incompatibility with an * upstream ...
luciferous/finagle
finagle-mysql/src/main/scala/com/twitter/finagle/mysql/Handshake.scala
Scala
apache-2.0
3,925
package io.circe.cursor import cats.Functor import io.circe.{ Context, Cursor, Json } private[circe] case class CJson(focus: Json) extends Cursor { def context: List[Context] = Nil def up: Option[Cursor] = None def delete: Option[Cursor] = None def withFocus(f: Json => Json): Cursor = CJson(f(focus)) def wi...
alexarchambault/circe
core/shared/src/main/scala/io/circe/cursor/CJson.scala
Scala
apache-2.0
427
package free import simple.Console._ object ConsoleSimple { def main(args: Array[String]) { val instrs = GetLine { line => PutLine("we got: " ++ line, Stop) } execute(instrs) } }
YoEight/psug-free
src/main/scala/free/ConsoleSimpleExample.scala
Scala
mit
224
package com.bwsw.tstreamstransactionserver.configProperties import com.bwsw.tstreamstransactionserver.netty.ExecutionContext import scala.concurrent.ExecutionContextExecutorService class ServerExecutionContext(rocksWriteNThreads: Int, rocksReadNThreads: Int) { private val commitLogExecutionContext = ExecutionConte...
bwsw/tstreams-transaction-server
src/main/scala/com/bwsw/tstreamstransactionserver/configProperties/ServerExecutionContext.scala
Scala
apache-2.0
1,209
package com.rikmuld.camping.features.blocks.logseat import com.rikmuld.camping.CampingMod import com.rikmuld.corerm.network.PacketSender import net.minecraft.client.Minecraft import net.minecraft.entity.Entity import net.minecraft.entity.player.EntityPlayer import net.minecraft.nbt.NBTTagCompound import net.minecraft....
Rikmuld/MC-Camping
scala/com/rikmuld/camping/features/blocks/logseat/EntityMountable.scala
Scala
gpl-3.0
1,440
package org.jetbrains.plugins.scala.debugger.evaluation.evaluator import com.intellij.debugger.engine.evaluation.EvaluationContextImpl import com.intellij.debugger.engine.evaluation.expression.{DisableGC, Evaluator} import com.intellij.debugger.engine.{DebugProcess, DebugProcessImpl, JVMName} import com.intellij.debug...
triplequote/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/debugger/evaluation/evaluator/ScalaMethodEvaluator.scala
Scala
apache-2.0
11,717
package org.scaladebugger.language.models sealed trait Function extends BaseValue { val parameters: Seq[Identifier] val documentation: Option[String] override def toScalaValue: AnyRef = s"Parameters: ${parameters.map(_.name).mkString(",")}" } sealed trait CallableFunction extends Function /** * Represents...
chipsenkbeil/scala-debugger
scala-debugger-language/src/main/scala/org/scaladebugger/language/models/Function.scala
Scala
apache-2.0
1,913
/******************************************************************************* Copyright (c) 2013-2014, KAIST. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. ******************************************************************...
darkrsw/safe
src/main/scala/kr/ac/kaist/jsaf/bug_detector/WIDLChecker.scala
Scala
bsd-3-clause
37,903
package io.ecumene.worker import org.msgpack.core.{ MessagePacker, MessageUnpacker } import io.ecumene.core._ import io.ecumene.core.Implicits._ final class EcumeneFunctionImpl9[-T1: CanUnpack, -T2: CanUnpack, -T3: CanUnpack, -T4: CanUnpack, -T5: CanUnpack, -T6: CanUnpack, -T7: CanUnpack, -T8: CanUnpack, -T9: CanUnp...
ZizhengTai/ecumene-scala
src/main/scala/EcumeneFunctionImpl9.scala
Scala
lgpl-3.0
1,084
package com.twitter.finagle.mux.lease import java.lang.management.GarbageCollectorMXBean /** * This is the experimental package of mux.lease. Right now, this is all * experimental code around leasing, especially leasing around garbage * collections. We haven't hammered out exactly what the api will be, so it's ...
latur19318/finagle
finagle-mux/src/main/scala/com/twitter/finagle/mux/lease/exp/package.scala
Scala
apache-2.0
4,927
/* * This file is part of Kiama. * * Copyright (C) 2008-2015 Anthony M Sloane, Macquarie University. * * Kiama 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 ...
solomono/kiama
library/src/org/kiama/example/dataflow/DataflowTree.scala
Scala
gpl-3.0
1,384
package fr.inria.spirals.sigma.ttc14.fixml.objlang.support import fr.inria.spirals.sigma.ttc14.fixml.objlang.StringLiteral; import fr.unice.i3s.sigma.support.EMFProxyBuilder; import fr.unice.i3s.sigma.support.EMFScalaSupport; trait StringLiteralScalaSupport extends EMFScalaSupport { type StringLiteral = fr.inria.s...
fikovnik/ttc14-fixml-sigma
ttc14-fixml-extension-3/src-gen/fr/inria/spirals/sigma/ttc14/fixml/objlang/support/StringLiteralScalaSupport.scala
Scala
epl-1.0
886
/** * MIT License * * Copyright (c) 2016-2018 James Sherwood-Jones <james.sherwoodjones@gmail.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, includi...
jSherz/lsd-members
backend/src/main/scala/com/jsherz/luskydive/util/UuidJsonFormat.scala
Scala
mit
2,019
/* Copyright 2017-19, Emmanouil Antonios Platanios. 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 ...
eaplatanios/tensorflow_scala
modules/api/src/main/scala/org/platanios/tensorflow/api/io/events/EventAccumulator.scala
Scala
apache-2.0
24,900
package org.openurp.teach.action import scala.collection.mutable.ListBuffer import org.beangle.data.model.Entity import org.beangle.webmvc.api.context.ContextHolder import org.beangle.webmvc.api.view.View import org.beangle.webmvc.entity.action.{ AbstractEntityAction, RestfulAction } import org.openurp.teach.code.Grad...
openurp/edu-core
grade/webapp/src/main/scala/org/openurp/teach/action/LessonGradeReportAction.scala
Scala
gpl-3.0
3,745
package org.jetbrains.plugins.scala package lang.refactoring.ui import com.intellij.refactoring.ui.ComboBoxVisibilityPanel import org.jetbrains.plugins.scala.lang.refactoring.ui.ScalaComboBoxVisibilityPanel._ /** * Nikolay.Tropin * 2014-09-01 */ class ScalaComboBoxVisibilityPanel(additional: String*) exten...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/ui/ScalaComboBoxVisibilityPanel.scala
Scala
apache-2.0
804
/* * Copyright 2018 TWO SIGMA OPEN SOURCE, 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 applicable...
jpallas/beakerx
kernel/scala/src/main/scala/com/twosigma/beakerx/scala/chart/xychart/NanoPlot.scala
Scala
apache-2.0
891
package darkpool.tools import java.util.UUID import akka.actor._ import com.github.nscala_time.time.Imports._ import darkpool.actors.{MatchingEngineActor, QueryActor} import darkpool.book.OrderBook import darkpool.engine.commands._ import darkpool.models.Trade import darkpool.models.orders._ import scala.concurrent.d...
film42/dark-pool
src/main/scala/darkpool/tools/RobotTrader.scala
Scala
mit
1,183
package tv.camfire.media_server.model /** * User: jonathan * Date: 7/12/13 * Time: 1:26 PM */ class StreamInfo() { var id: java.lang.Long = null var created: java.lang.Long = System.currentTimeMillis() }
jgrowl/camfire-signaling
signaling-server/src/main/scala/tv/camfire/media_server/model/StreamInfo.scala
Scala
mit
214
package com.shocktrade.models.contest import java.util.Date import com.shocktrade.models.contest.ContestStatuses.ContestStatus import com.shocktrade.util.BSONHelper._ import play.api.libs.functional.syntax._ import play.api.libs.json.Reads._ import play.api.libs.json.{Reads, Writes, __} import play.modules.reactivemo...
ldaniels528/shocktrade-server
app-server/app/com/shocktrade/models/contest/Contest.scala
Scala
apache-2.0
4,875
package edu.msstate.dasi.csb.workload.neo4j import edu.msstate.dasi.csb.workload.Workload import org.apache.spark.graphx.Graph import scala.reflect.ClassTag /** * Collects the neighbors for each vertex. * * @note Vertices with no edges are ignored. */ class Neighbors(engine: Neo4jEngine) extends Workload { val...
msstate-dasi/csb
csb/src/main/scala/edu/msstate/dasi/csb/workload/neo4j/Neighbors.scala
Scala
gpl-3.0
604
package eu.devtty.ipld import eu.devtty.ipfs.{DagGetResult, IpfsNode} import scala.concurrent.Future package object util { implicit class IPLDLinkUtils(val link: IPLDLink) extends AnyVal { @inline def get(implicit ipfs: IpfsNode): Future[DagGetResult] = { ipfs.dag.get(link./) } } }
magik6k/scalajs-ipfs-api
core-api/src/main/scala/eu/devtty/ipld/util/package.scala
Scala
mit
310
package io.vamp.model.reader import io.vamp.model.notification.{ EmptyImportError, ImportDefinitionError } import io.vamp.model.reader.YamlSourceReader._ case class Import(base: Map[String, Any], references: List[ImportReference]) case class ImportReference(name: String, kind: String) { override def toString = s"$...
dragoslav/vamp
model/src/main/scala/io/vamp/model/reader/ImportReader.scala
Scala
apache-2.0
1,305
/* * Copyright (C) 2016 Language Technology Group and Interactive Graphics Systems Group, Technische Universität Darmstadt, Germany * * 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, ...
thorbenwiese/newsleak-frontend
app/models/services/package.scala
Scala
agpl-3.0
906
package cookbook.core // fintrospect-core object Serving_Static_Content_Example extends App { import com.twitter.finagle.Http import com.twitter.finagle.http.path.Root import com.twitter.util.Await.ready import io.fintrospect.{Module, ResourceLoader, StaticModule} val module: Module = StaticModule(Root, R...
daviddenton/fintrospect
src/test/scala/cookbook/core/Serving_Static_Content_Example.scala
Scala
apache-2.0
445
package org.sisioh.aws4s.eb.model import com.amazonaws.services.elasticbeanstalk.model.{ OptionSpecification, DescribeConfigurationOptionsRequest } import org.sisioh.aws4s.PimpedType import scala.collection.JavaConverters._ object DescribeConfigurationOptionsRequestFactory { def create(): DescribeConfigurationOpt...
everpeace/aws4s
aws4s-eb/src/main/scala/org/sisioh/aws4s/eb/model/RichDescribeConfigurationOptionsRequest.scala
Scala
mit
2,222
class i1[i1](override val i1: i1[i1]) { def i1: i1[i1] = i1(null) } object i1 { implicit def i2[i2](i2: i2[i1]): i1[i2] = ??? }
som-snytt/dotty
tests/pending/fuzzy/SOE-bb0e91970b9373329dfd57a639c7d9211ebf3139.scala
Scala
apache-2.0
132
/** * Copyright 2013, 2016 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/ui/cli/Conf.scala
Scala
lgpl-3.0
1,632
/* * 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 ...
tillrohrmann/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/table/CalcITCase.scala
Scala
apache-2.0
23,921
/* * Copyright (c) 2014-2016 * nonblocking.at gmbh [http://www.nonblocking.at] * * This file is part of Cliwix. * * Cliwix 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...
nonblocking/cliwix
cliwix-core/src/main/scala/at/nonblocking/cliwix/core/util/UseMapDbCollectionForPotentialHugeListsUnmarshalListener.scala
Scala
agpl-3.0
2,111
package org.velvia.filo.vectors import org.scalatest.{FunSpec, Matchers} import org.velvia.filo.{FiloVector, GrowableVector, VectorTooSmall} class IntBinaryVectorTest extends FunSpec with Matchers { describe("IntAppendingVector") { it("should append a mix of Ints and read them all back") { val builder = I...
velvia/filo
filo-scala/src/test/scala/org.velvia.filo/vectors/IntBinaryVectorTest.scala
Scala
apache-2.0
9,421
package ir.ast.debug import ir.Type import ir.ast.{FPattern, Lambda, Pattern} import ir.interpreter.Interpreter._ /** * A pattern for debugging Lift code. * PrintView adds a comment into the OpenCL kernel with the optional message and * a string representation of the View at the point in expression where Print...
lift-project/lift
src/main/ir/ast/debug/PrintView.scala
Scala
mit
821
package ersirjs import ersir.shared.Posting import ersirjs.ErsirJS.Postings import org.scalajs.dom.{CanvasRenderingContext2D, FileReader, UIEvent, html} import rescala.extra.Tags._ import rescala.default._ import scalatags.JsDom import scalatags.JsDom.all._ import scalatags.JsDom.tags2.{article, main} class Index(con...
guidosalva/REScala
Code/Examples/Ersir/web/src/main/scala/ersirjs/Index.scala
Scala
apache-2.0
3,028
package info.armado.ausleihe.database.converter import java.sql.Timestamp import java.time.LocalDateTime import javax.persistence.{AttributeConverter, Converter} /** * A converter used to convert [[LocalDateTime]] instances to [[Timestamp]] instances, which can be persisted inside a database via JPA. * * @autho...
Spielekreis-Darmstadt/lending
lending-database/src/main/scala/info/armado/ausleihe/database/converter/LocalDateTimeConverter.scala
Scala
apache-2.0
750
package de.sciss.fscape.tests import de.sciss.file._ import de.sciss.fscape.gui.SimpleGUI import de.sciss.fscape.{Graph, graph, stream} import scala.swing.Swing object TransposeTest extends App { val width = 2048 // 1920 // 1024 val height = 1535 // 1080 // 768 val fIn = userHome / "Pictures" / "naya" /...
Sciss/FScape-next
core/jvm/src/test/scala/de/sciss/fscape/tests/TransposeTest.scala
Scala
agpl-3.0
1,265
package ohnosequences.db.rna16s import com.amazonaws.services.s3.AmazonS3ClientBuilder import ohnosequences.s3.{S3Object, request} import java.io.File /** * Helpers: * - Partial applications of functions from `s3`, using a standard S3Client * built here, [[helpers.s3Client]], and with a default part size, *...
ohnosequences/db.rna16s
src/main/scala/helpers.scala
Scala
agpl-3.0
1,869
package spgui.widgets.itemexplorer import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ import scalacss.ScalaCssReact._ import spgui.SPWidget import spgui.components.Icon import java.util.UUID import scalajs.js import js.Dynamic.{ literal => l } import js.JSON // TODO refactor this and TreeV...
kristoferB/SP
spgui/src/main/scala/spgui/widgets/itemexplorer/ItemExplorer.scala
Scala
mit
3,036
/* * 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 ...
WindCanDie/spark
mllib/src/test/scala/org/apache/spark/ml/util/MLTestingUtils.scala
Scala
apache-2.0
11,930
package org.jetbrains.plugins.scala package findUsages package setter import com.intellij.psi._ import com.intellij.psi.search.searches.ReferencesSearch import com.intellij.psi.search.{PsiSearchHelper, SearchScope, TextOccurenceProcessor, UsageSearchContext} import com.intellij.util.{Processor, QueryExecutor} import o...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/findUsages/setter/SetterMethodSearcher.scala
Scala
apache-2.0
3,743
/* Copyright 2009-2021 EPFL, Lausanne */ package stainless.lang import stainless.annotation._ /** * @author Mikael */ object StrOps { @ignore def concat(a: String, b: String): String = { a + b } @ignore def bigLength(s: String): BigInt = { BigInt(s.length) } @ignore def bigSubstring(s: St...
epfl-lara/stainless
frontends/library/stainless/lang/StrOps.scala
Scala
apache-2.0
412
package com.tsmms.hackathon.choices.miniwicket import java.io.{ByteArrayInputStream, ByteArrayOutputStream, PrintWriter} import java.util.logging.Logger import javax.servlet._ import javax.servlet.http.{HttpServletRequest, HttpServletResponse, HttpServletResponseWrapper} import scala.collection.mutable import scala.x...
stoerr/Groupchoices
src/main/scala/com/tsmms/hackathon/choices/miniwicket/MiniWicketServletFilter.scala
Scala
apache-2.0
2,381
/* Copyright 2013 Ilya Lakhin (Илья Александрович Лахин) 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...
Eliah-Lakhin/papa-carlo
src/main/scala/name.lakhin.eliah.projects/papacarlo/lexis/Token.scala
Scala
apache-2.0
2,180
/** * This file is part of SensApp [ http://sensapp.modelbased.net ] * * Copyright (C) 2011- SINTEF ICT * Contact: SINTEF ICT <nicolas.ferry@sintef.no> * * Module: net.modelbased.sensapp * * SensApp is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public L...
SINTEF-9012/sensapp
_attic/net.modelbased.sensapp.rrd/src/main/scala/net/modelbased/sensapp/rrd/services/RRDTemplateRegistryService.scala
Scala
lgpl-3.0
3,614
package com.example.test import android.os.Build.VERSION_CODES.LOLLIPOP import com.example.R import org.robolectric.RuntimeEnvironment import org.robolectric.annotation.Config import org.scalatest.{Matchers, FlatSpec, FeatureSpec, RobolectricSuite} @Config( sdk = Array( LOLLIPOP ) ) class Test extends FlatSpec with...
Taig/Scala-on-Android
src/main/page/testing/robolectric/usage.scala
Scala
mit
507
package com.sksamuel.elastic4s import com.sksamuel.elastic4s.ElasticDsl._ import org.scalatest.{Matchers, WordSpec} import scala.concurrent.duration._ /** @author Stephen Samuel */ class ValidateTest extends WordSpec with ElasticSugar with Matchers { implicit val duration: Duration = 10.seconds client.execute ...
alexander-svendsen/elastic4s
elastic4s-core/src/test/scala/com/sksamuel/elastic4s/ValidateTest.scala
Scala
apache-2.0
1,014
/* * 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 ...
openwhisk/openwhisk
common/scala/src/main/scala/org/apache/openwhisk/core/containerpool/logging/SplunkLogStore.scala
Scala
apache-2.0
8,552
/** * Copyright (C) 2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl) * * 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...
DANS-KNAW/easy-split-multi-deposit
src/main/scala/nl.knaw.dans.easy.multideposit/actions/ReportDatasets.scala
Scala
apache-2.0
1,941
/* * 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 ...
mohammadshahidkhan/incubator-carbondata
integration/spark2/src/test/scala/org/apache/spark/carbondata/bucketing/TableBucketingTestCase.scala
Scala
apache-2.0
7,297
/*********************************************************************** * Copyright (c) 2013-2019 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
elahrvivaz/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/data/stats/StatsCombinerTest.scala
Scala
apache-2.0
2,118
/** * 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...
themarkypantz/kafka
core/src/main/scala/kafka/consumer/ConsumerFetcherThread.scala
Scala
apache-2.0
7,194
package sio.regions import sio.core.{IORef, IO} /** * Created by alex on 9/3/16. */ final case class RefCountedFinalizer(run: IO[Unit], refCount: IORef[Int])
alexknvl/sio
regions/src/main/scala/sio/regions/RefCountedFinalizer.scala
Scala
mit
164