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 play.modules.reactivemongo import javax.inject._ import scala.concurrent.ExecutionContext import play.api._ import play.api.inject.{ ApplicationLifecycle, Binding, Module } /** * MongoDB module. */ @Singleton final class ReactiveMongoModule extends Module { import DefaultReactiveMongoApi.BindingInfo ...
ReactiveMongo/Play-ReactiveMongo
src/main/scala/play/modules/reactivemongo/ReactiveMongoModule.scala
Scala
apache-2.0
1,730
/* * 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/operators/DoOnEarlyStopOperator.scala
Scala
apache-2.0
2,179
package com.monsanto.arch.kamon.prometheus.spray import com.monsanto.arch.kamon.prometheus.converter.SnapshotConverter.{KamonCategoryLabel, KamonNameLabel} import com.monsanto.arch.kamon.prometheus.metric._ import kamon.metric.SingleInstrumentEntityRecorder import kamon.util.MilliTimestamp import org.scalactic.Uniform...
MonsantoCo/kamon-prometheus
library/src/test/scala/com/monsanto/arch/kamon/prometheus/spray/SprayEndpointSpec.scala
Scala
bsd-3-clause
11,151
package sbt import java.lang.reflect.{ Array => _, _ } import java.lang.annotation.Annotation import annotation.tailrec import sbt.classfile.ClassFile import xsbti.api import xsbti.SafeLazy import SafeLazy.strict import collection.mutable object ClassToAPI { def apply(c: Seq[Class[_]]): api.SourceAPI = process(c)._...
jasonchaffee/sbt
compile/api/src/main/scala/sbt/ClassToAPI.scala
Scala
bsd-3-clause
18,108
package com.fhuertas.monkey.models import akka.actor.{Actor, ActorRef, Props} import com.fhuertas.monkey.messages._ import com.fhuertas.monkey.models.Directions._ import com.typesafe.scalalogging.LazyLogging class Canyon extends Actor with LazyLogging { override def receive: Receive = empty var starvationActorR...
fhuertas/monkey
src/main/scala/com/fhuertas/monkey/models/Canyon.scala
Scala
apache-2.0
4,297
package x import scala.annotation._ import scala.quoted._ trait CB[+T] object CBM: def pure[T](t:T):CB[T] = ??? def map[A,B](fa:CB[A])(f: A=>B):CB[B] = ??? def flatMap[A,B](fa:CB[A])(f: A=>CB[B]):CB[B] = ??? def spawn[A](op: =>CB[A]): CB[A] = ??? @compileTimeOnly("await should be inside async block") def a...
dotty-staging/dotty
tests/neg-macros/i13809/Macros_1.scala
Scala
apache-2.0
10,548
/* * 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 ...
andrewor14/iolap
sql/core/src/test/scala/org/apache/spark/sql/parquet/ParquetIOSuite.scala
Scala
apache-2.0
16,921
// Copyright (c) 2011 Thomas Suckow // are made available under the terms of the Eclipse Public License v1.0 // which accompanies this distribution, and is available at // http://www.eclipse.org/legal/epl-v10.html package net.codingwell.weave.languages.silk import org.parboiled.scala._ import net.codingwell.parboil...
codingwell/Weave
lang-silk/src/main/scala/net/codingwell/weave/languages/silk/SilkParser.scala
Scala
epl-1.0
4,378
package au.id.cxd.math.probability.random /** * Parameters used in the GSL RBinom algorithm * These are computed once and then used during the calculation * @param p * @param q * @param np */ case class RBinomParameters(val p:Double, val q:Double, val np:Double ) { val s:Double = p / q // parameters t...
cxd/scala-au.id.cxd.math
math/src/main/scala/au/id/cxd/math/probability/random/RBinomParameters.scala
Scala
mit
1,686
/** * Copyright (C) 2010 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
orbeon/orbeon-forms
xforms-runtime/shared/src/main/scala/org/orbeon/oxf/xforms/control/ControlExtensionAttributesSupport.scala
Scala
lgpl-2.1
3,745
/** Copyright 2015 TappingStone, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
ch33hau/PredictionIO
data/src/main/scala/io/prediction/data/storage/elasticsearch/package.scala
Scala
apache-2.0
795
package net.fwbrasil.zoot.spray import scala.concurrent.Await import scala.concurrent.Future import scala.concurrent.duration.Duration import akka.actor.ActorSystem import akka.io.IO import akka.pattern.ask import akka.util.Timeout import net.fwbrasil.zoot.core.request.Request import net.fwbrasil.zoot.core.response.R...
fwbrasil/zoot
zoot-spray/src/main/scala/net/fwbrasil/zoot/spray/SprayClient.scala
Scala
lgpl-2.1
971
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.api.libs.ws.ahc /** An object for parsing application/x-www-form-urlencoded data */ private[ahc] object FormUrlEncodedParser { /** * Parse the content type "application/x-www-form-urlencoded" which consists of a bunch of & separated...
playframework/play-ws
play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/FormUrlEncodedParser.scala
Scala
apache-2.0
3,593
package mesosphere.marathon.upgrade import java.util.UUID import akka.actor.{ ActorSystem, Props } import akka.testkit.{ TestActorRef, TestProbe } import akka.util.Timeout import mesosphere.marathon.core.launchqueue.LaunchQueue import mesosphere.marathon.event.MesosStatusUpdateEvent import mesosphere.marathon.health....
hangyan/marathon
src/test/scala/mesosphere/marathon/upgrade/DeploymentActorTest.scala
Scala
apache-2.0
12,395
package com.jayway.textmining import scala.collection.mutable import util.Random /** * Copyright 2012 Amir Moulavi (amir.moulavi@gmail.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...
amir343/grape
src/main/scala/com/jayway/textmining/RandomSelector.scala
Scala
apache-2.0
1,655
// Instantiate a new mutable Map val m = scala.collection.mutable.Map[String, String]() // Convert an immutable Map to a mutable Map val m = collection.immutable.Map(1->"one", 2->"two") val n = collection.mutable.Map(m.toSeq: _*) // Iterate through a Map val m = Map(1->"one", 2->"two") for((k, v) <- m) println(s"${k}...
datability-io/learn-scala
snippet/map.scala
Scala
mit
767
/** * This file is part of the TA Buddy project. * Copyright (c) 2014-2015 Alexey Aksenov ezh@ezh.msk.ru * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Global License version 3 * as published by the Free Software Foundation with the addition...
digimead/digi-TABuddy-desktop
part-core-keyring/src/main/scala/org/digimead/tabuddy/desktop/core/keyring/KeyRingExchange.scala
Scala
agpl-3.0
8,026
/* * 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...
jackylk/incubator-carbondata
integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/Vector2TestCase.scala
Scala
apache-2.0
16,144
package usbinstall import javafx.beans.property.{SimpleBooleanProperty, SimpleStringProperty} abstract class AbstractStepButton( val visible: Boolean, xdisabled: Boolean, xlabel: String, var onTrigger: () => Boolean ) { def triggered(): Unit val disableProperty = new SimpleBooleanProperty(xdisabled) ...
suiryc/usbinstall
src/main/scala/usbinstall/StepButton.scala
Scala
gpl-3.0
1,190
/** * 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...
aayushidwivedi01/spark-tk
sparktk-core/src/test/scala/org/trustedanalytics/sparktk/graph/internal/ops/LoopyBeliefPropagationTest.scala
Scala
apache-2.0
3,883
/* * 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...
intel-analytics/BigDL
scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/utils/tf/loaders/ConcatV2LoadTFSerialTest.scala
Scala
apache-2.0
1,241
package franka.lang sealed trait Cardinality object Cardinality { case class Finite (value : BigInt) extends Cardinality case class Infinite (aleph : Int) extends Cardinality }
bylt/franka
src/main/scala/franka/lang/Cardinality.scala
Scala
mit
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 may...
KevinLiLu/kafka
core/src/test/scala/unit/kafka/controller/ControllerFailoverTest.scala
Scala
apache-2.0
3,919
package com.velorin import org.scalatest._ abstract class UnitSpec extends FlatSpec with Matchers with OptionValues with Inside with Inspectors
AmirHooshangi/ACMG-S
src/test/scala/com/velorin/UnitSpec.scala
Scala
gpl-3.0
148
package ui.shader.builder.value import org.scalajs.dom import ui.shader.builder.types.GlFloatType abstract class GlFloatVal extends GlValue[GlFloatType] { } object GlFloatVal { def apply(double: Double): GlValue[GlFloatType] = { new GlFloatValD(double) } def apply(float: Float): GlValue[G...
gvatn/play-scalajs-webgl-spark
client/src/main/scala/ui/shader/builder/value/GlFloatVal.scala
Scala
mit
1,342
package htwg.scalmon.model import org.scalatest._ import scala.language.reflectiveCalls import htwg.scalmon.Listener class ModelSpec extends FlatSpec with Matchers with GivenWhenThen { def fixture = new { val m1 = new Model(1) val m5 = new Model(5) } "A Model" should "have a game size for scaling" in ...
themerius/scalmon
src/test/scala/htwg/scalmon/model/ModelSpec.scala
Scala
lgpl-3.0
2,898
package domala.jdbc.builder import java.util.function.{Function, Supplier} import java.util.stream import domala.internal.jdbc.scalar.Scalars import domala.internal.{OptionConverters, WrapIterator} import domala.jdbc.entity.EntityDesc import domala.jdbc.query.SqlSelectQuery import domala.jdbc.{Config, SelectOptions, ...
bakenezumi/domala
core/src/main/scala/domala/jdbc/builder/SelectBuilder.scala
Scala
apache-2.0
13,460
/* * 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 ...
sh-cho/cshSpark
io/CompressionCodec.scala
Scala
apache-2.0
7,429
package com.whisk.docker.testkit.scalatest import java.util.concurrent.ForkJoinPool import com.spotify.docker.client.{DefaultDockerClient, DockerClient} import com.whisk.docker.testkit._ import org.scalatest.{Args, Status, Suite, SuiteMixin} import scala.concurrent.ExecutionContext import scala.language.implicitConv...
whisklabs/docker-it-scala
scalatest/src/main/scala/com/whisk/docker/testkit/scalatest/DockerTestKitForAll.scala
Scala
mit
1,301
/* * Copyright 2013 - 2015, Daniel Krzywicki <daniel.krzywicki@agh.edu.pl> * * 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 ...
ros3n/IntOb
emas/src/main/scala/pl/edu/agh/scalamas/emas/EmasTypes.scala
Scala
mit
1,838
/* * The MIT License * * Copyright (c) 2016 Fulcrum Genomics LLC * * 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 us...
fulcrumgenomics/dagr
src/main/scala/dagr/cmdline/DagrMain.scala
Scala
mit
1,512
package org.jetbrains.plugins.scala.lang.psi import org.jetbrains.plugins.scala.lang.psi.types.recursiveUpdate.ScSubstitutor import org.jetbrains.plugins.scala.lang.resolve.ScalaResolveResult /** * @author Nikolay.Tropin */ package object implicits { type Candidate = (ScalaResolveResult, ScSubstitutor) }
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/implicits/package.scala
Scala
apache-2.0
314
package tmvault.util import org.junit._ class SHA1HashTest { @Test def toStringParseRoundtripTest() : Unit = { val testData = (0 until 1000).map(_.toString.getBytes("UTF-8")) for(bytes <- testData) { val hash0 = SHA1Hash.hash(bytes) val text0 = hash0.toString val hash1 = SHA1Hash.parse...
rklaehn/tmvault
tmvault/src/test/scala/tmvault/util/SHA1HashTest.scala
Scala
apache-2.0
369
package spark import java.util.concurrent.LinkedBlockingQueue import java.util.concurrent.TimeUnit import scala.collection.mutable.{ArrayBuffer, HashMap, HashSet, Map} // A task created by the DAG scheduler. Knows its stage ID and map ouput tracker generation. abstract class DAGTask[T](val stageId: Int) extends Task[...
jperla/spark-advancers
core/src/main/scala/spark/DAGScheduler.scala
Scala
bsd-3-clause
12,822
import bio._ import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers package bio.test { class PamlWriterSpec extends FlatSpec with ShouldMatchers { import bio._ import bio.DNA._ import java.io._ "PamlWriter" should "write PAML file" in { val f = new FastaReader("./test/dat...
shamim8888/bioscala
src/test/scala/bio/db/paml/pamlwriter_spec.scala
Scala
bsd-2-clause
841
// // EditScriptCRGMW96.scala -- Scala object EditScriptCRGMW96 // Project OrcScala // // $Id: EditScriptCRGMW96.scala 2933 2011-12-15 16:26:02Z jthywissen $ // // Copyright (c) 2011 The University of Texas at Austin. All rights reserved. // // Use and redistribution of this file is governed by the license terms in // ...
laurenyew/cOrcS
src/orc/lib/progswap/EditScriptCRGMW96.scala
Scala
bsd-3-clause
9,018
/* * The MIT License * * Copyright (c) 2017 Fulcrum Genomics LLC * * 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 us...
fulcrumgenomics/dagr
tasks/src/main/scala/dagr/tasks/fgbio/CallDuplexConsensusReads.scala
Scala
mit
3,177
/* * RotateWindow.scala * (FScape) * * Copyright (c) 2001-2022 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU Affero General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * contact@sciss.de */ package de.sciss.fscape package...
Sciss/FScape-next
core/shared/src/main/scala/de/sciss/fscape/graph/RotateWindow.scala
Scala
agpl-3.0
2,062
/* Copyright 2016-2019 UniCredit S.p.A. * * 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 wr...
unicredit/lethe
src/main/scala/unicredit/lethe/client/UnencryptedClient.scala
Scala
apache-2.0
862
package com.cterm2.miniflags import net.minecraft.nbt._ import net.minecraft.world._ import net.minecraft.client.multiplayer.WorldClient import net.minecraft.entity.player.{EntityPlayer, EntityPlayerMP} import net.minecraft.util.ChatComponentText import cpw.mods.fml.relauncher.{Side, SideOnly} import net.minecraftforg...
Pctg-x8/miniflags
src/objectManager.scala
Scala
lgpl-2.1
7,636
package org.jetbrains.plugins.scala.tasty import dotty.tools.tasty.TastyFormat.NameTags // dotty.tools.tasty.TastyFormat.NameTags // dotty.tools.dotc.core.NameKinds // dotty.tools.dotc.core.StdNames private class TermName(private val value: String) extends AnyVal { override def toString: String = value def asSi...
JetBrains/intellij-scala
tasty/runtime/src/org/jetbrains/plugins/scala/tasty/TermName.scala
Scala
apache-2.0
1,128
/* * 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/ct600j/v3/J45A.scala
Scala
apache-2.0
992
/* * 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 ...
ksimar/incubator-carbondata
examples/spark/src/main/scala/org/apache/carbondata/examples/DataUpdateDeleteExample.scala
Scala
apache-2.0
3,872
package com.maxmouchet.vamk.timetables.parser.table.sources import com.maxmouchet.vamk.timetables.parser.table.HTMLTableParser class RemoteTableSource(parser: HTMLTableParser) extends TableSource { def getTable: Array[Array[String]] = parser.parse }
OpenLamas/vamk-timetables
lib/scala/src/main/scala/com/maxmouchet/vamk/timetables/parser/table/sources/RemoteTableSource.scala
Scala
mit
254
package is.hail import is.hail.backend.spark.SparkBackend import org.testng.annotations.Test class HailContextSuite extends HailSuite { @Test def testGetOrCreate(): Unit = { val backend = SparkBackend.getOrCreate() val hc2 = HailContext.getOrCreate(backend) assert(hc == hc2) } }
hail-is/hail
hail/src/test/scala/is/hail/HailContextSuite.scala
Scala
mit
298
package spire.math import java.lang.Math import scala.annotation.tailrec import scala.math.{ScalaNumber, ScalaNumericConversions} import scala.{specialized => sp} import spire.algebra._ import spire.syntax.field._ import spire.syntax.isReal._ import spire.syntax.nroot._ object Quaternion extends QuaternionInstances...
lrytz/spire
core/src/main/scala/spire/math/Quaternion.scala
Scala
mit
11,446
package org.scaladebugger.tool.commands import org.scaladebugger.api.utils.JDITools import org.scaladebugger.test.helpers.ParallelMockFunSpec import org.scalatest.concurrent.Eventually import test.{ToolConstants, ToolFixtures, ToolTestUtilities} class IgnoreBothCommandIntegrationSpec extends ParallelMockFunSpec wit...
chipsenkbeil/scala-debugger
scala-debugger-tool/src/it/scala/org/scaladebugger/tool/commands/IgnoreBothCommandIntegrationSpec.scala
Scala
apache-2.0
9,891
/* * 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 ...
brad-kaiser/spark
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala
Scala
apache-2.0
10,326
/**************************************************************************** * Copyright (c) 2011, Monnet Project * 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...
monnetproject/kap
laif.editor/src/main/scala/eu/monnetproject/kap/laif/editor/HTMLConversions.scala
Scala
bsd-3-clause
8,912
// Copyright 2014,2015,2016,2017,2018,2019,2020 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 // // Unles...
CommBank/grimlock
grimlock-examples/src/main/scala/commbank/grimlock/scalding/DerivedData.scala
Scala
apache-2.0
4,262
package com.querydsl.scala import java.io.File import java.io.File.pathSeparator import com.google.common.base.Charsets import com.google.common.io.Files import scala.tools.nsc._ import scala.tools.nsc.reporters.ConsoleReporter object CompileTestUtils { private def jarPathOfClass(className: String) = { Class...
balazs-zsoldos/querydsl
querydsl-scala/src/test/scala/com/querydsl/scala/CompileTestUtils.scala
Scala
apache-2.0
1,656
// See LICENSE for license details. package fringe import chisel3.Module import chisel3.iotesters.{ChiselFlatSpec, Driver, PeekPokeTester} abstract class ArgsTester[+T <: Module](c: T)(implicit args: Array[String]) extends PeekPokeTester(c) { def printFail(msg: String) = println(Console.BLACK + Console.RED_B + s"...
stanford-ppl/spatial-lang
spatial/core/resources/chiselgen/template-level/fringeHW/CommonMain.scala
Scala
mit
2,273
package net.pointsgame.actor import akka.actor.{ActorRef, ActorSystem, Actor, Props} import net.liftweb.common.Loggable import scala.collection.mutable object AkkaManager extends Loggable { private val system = ActorSystem("root") private val roomList = mutable.HashMap[String, ActorRef]() // private val roomSuperv...
vn971/points-wip
modules/lift-server/src/main/scala/net/pointsgame/actor/AkkaManager.scala
Scala
agpl-3.0
763
package sample.context import java.util.Locale import java.util.ResourceBundle import scala.beans.BeanProperty import scala.collection.JavaConverters._ import org.springframework.boot.context.properties.ConfigurationProperties import org.springframework.context.support.ResourceBundleMessageSource /** * ResourceBun...
jkazama/sample-boot-scala
src/main/scala/sample/context/ResourceBundleHandler.scala
Scala
mit
2,590
package com.thesamet.intellij import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.editor.Document import com.intellij.openapi.vfs.VirtualFile import scalariform.formatter.ScalaFormatter import scalariform.formatter.preferences.AlignSingleLineCaseStatements.MaxArrowIndent import scal...
Mistyputt/scalariform-intellij-plugin
src/com/thesamet/intellij/ScalariformFormatter.scala
Scala
apache-2.0
3,037
package scredis.io import com.typesafe.scalalogging.LazyLogging import akka.actor._ import scredis.protocol.Request import scredis.protocol.requests.ConnectionRequests.{ Auth, Select, Quit } import scredis.protocol.requests.ServerRequests.{ ClientSetName, Shutdown } import scala.concurrent.{ ExecutionContext, Futur...
Livestream/scredis
src/main/scala/scredis/io/AbstractAkkaConnection.scala
Scala
apache-2.0
2,764
/* * 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 ...
hequn8128/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/expressions/literals.scala
Scala
apache-2.0
6,082
case class A(private[this] val foo:String) { }
folone/dotty
tests/untried/neg/t1422.scala
Scala
bsd-3-clause
47
/*********************************************************************** * Copyright (c) 2013-2020 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...
aheyne/geomesa
geomesa-index-api/src/main/scala/org/locationtech/geomesa/index/index/attribute/legacy/AttributeIndexV6.scala
Scala
apache-2.0
5,152
/* * Copyright (C) 2012 The Regents of The University California. * 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/LICEN...
sameeragarwal/blinkdb
src/main/scala/shark/execution/package.scala
Scala
apache-2.0
1,189
package rotationsymmetry.sxgboost import org.apache.spark.ml.param._ trait SparkXGBoostParams extends Params { final val alpha: DoubleParam = new DoubleParam(this, "alpha", "L1 regularization term on weights") setDefault(alpha -> 0.0) final val lambda: DoubleParam = new DoubleParam(this, "lambda", "L2...
rotationsymmetry/sparkxgboost
src/main/scala/rotationsymmetry/sxgboost/SparkXGBoostParams.scala
Scala
apache-2.0
2,095
package com.nulabinc.backlog.r2b.redmine.service import javax.inject.Inject import com.nulabinc.backlog.migration.common.utils.Logging import com.taskadapter.redmineapi.RedmineManager import com.taskadapter.redmineapi.bean.IssuePriority import scala.jdk.CollectionConverters._ /** * @author uchida */ class Prior...
nulab/BacklogMigration-Redmine
redmine/src/main/scala/com/nulabinc/backlog/r2b/redmine/service/PriorityServiceImpl.scala
Scala
mit
671
package hercules.test.utils import akka.actor.ActorRef import akka.actor.Props import akka.actor.Actor import akka.actor.ActorLogging import akka.contrib.pattern.ClusterReceptionistExtension object FakeMaster { case class MasterWrapped(msg: Any) def props(testProbe: ActorRef): Props = Props(new FakeMaster(testPro...
johandahlberg/hercules
src/test/scala/hercules/test/utils/FakeMaster.scala
Scala
mit
646
/** * Copyright 2016, 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/main/scala/io/deepsense/deeplang/doperations/WriteTransformer.scala
Scala
apache-2.0
3,640
object Test { def main(args: Array[String]): Unit = { val f1 = (x1: Int, x2: Int) => (x1, x2, x1 + x2) val g1 = (x1: Int, x2: Int, x3: Int) => x1 + x2 + x3 val h1 = f1.andThen(g1) println(h1(1, 2)) val f2 = (x1: Int, x2: Int) => (1, x1, x2, x1 + x2, x1 * x2) val g2 = (x1: Int, x2: Int, x3: I...
som-snytt/dotty
tests/run/tupled-function-andThen.scala
Scala
apache-2.0
2,221
package example import akka.actor.{ActorSystem, Props} import example.StudentMessages.Study object SchoolApplication extends App { implicit val system = ActorSystem("SchoolApplication") val teacher = system.actorOf(Props[TeacherActor], "teacher") val student = system.actorOf(Props(new StudentActor2(teacher)), "...
jvorhauer/akka-workshop
src/main/scala/example/SchoolApplication.scala
Scala
apache-2.0
394
package com.wuyuntao.aeneas.dsl import com.wuyuntao.aeneas.util.Text abstract class Query extends Table { def name = "{}_queries".format(Text.underscore(getClass.getSimpleName)) }
wuyuntao/Aeneas
aeneas-dsl/src/main/scala/com/wuyuntao/aeneas/dsl/Query.scala
Scala
apache-2.0
189
package net.tridb.core case class Athlete(uid : String, name : String)
tridb/core
src/main/scala/tridb/core/Athlete.scala
Scala
mit
72
package org.jetbrains.plugins.scala package lang package psi package stubs import com.intellij.psi.stubs.StubElement trait ScPackagingStub extends StubElement[api.toplevel.ScPackaging] { def packageName: String def parentPackageName: String def isExplicit: Boolean }
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/stubs/ScPackagingStub.scala
Scala
apache-2.0
277
trait GenTraversableLike[+A, +Repr] extends Any object O { (null: Any) match { case _: LongTraversableLike[_] => } } trait LongTraversable extends LongTraversableLike[LongTraversable] trait LongTraversableLike[+Repr <: LongTraversableLike[Repr]] extends GenTraversableLike[Any, Repr] /* % scalac-hash v2.11.0...
felixmulder/scala
test/files/pos/t1786-cycle.scala
Scala
bsd-3-clause
3,115
package org.ai4fm.proofprocess.ui.internal import java.net.{MalformedURLException, URL} import org.eclipse.jface.resource.ImageDescriptor /** ProofProcess image definitions. * * When images are used in label providers (e.g. where Image) is required, they must be disposed manually. * For convenience, [[org.ec...
andriusvelykis/proofprocess
org.ai4fm.proofprocess.ui/src/org/ai4fm/proofprocess/ui/internal/PProcessImages.scala
Scala
epl-1.0
987
package lore.compiler.constraints import lore.compiler.constraints.ReturnConstraints.{DeadCode, DefinitelyReturns, ImpossibleReturn, IsReturnAllowed} import lore.compiler.feedback.{Feedback, Reporter} import lore.compiler.syntax.visitor.{CombiningTopLevelExprVisitor, TopLevelExprVisitor, VerificationTopLevelExprVisito...
marcopennekamp/lore
compiler/src/lore/compiler/constraints/ReturnConstraints.scala
Scala
mit
4,911
package jkm.cineclub.raft import jkm.cineclub.raft.PersistentState._ import com.typesafe.config.{ConfigFactory, Config, ConfigValue} import scala.collection.JavaConversions._ /** * Created with IntelliJ IDEA. * User: cineclub * Date: 12/26/13 * Time: 9:04 PM * To change this template use File | Settings | File T...
stepist/scalaraft
src/main/scala/jkm/cineclub/raft/RaftConfig.scala
Scala
apache-2.0
3,008
package slick.migration.dialect import java.net.{URL, URLClassLoader} import java.sql.Driver import com.typesafe.config.Config import scala.collection.mutable import scala.slick.driver.{JdbcProfile => SlickDriver} import scala.slick.jdbc.meta._ import scala.slick.jdbc.{StaticQuery => Q} class DbInit(confName: Strin...
itryapitsin/slick-migration
drivers/sybase/src/test/scala/slick/migration/dialect/DbInit.scala
Scala
apache-2.0
3,680
import io.SdfIO import parsers.ResourceUrlParser import services.ResourceCopyService import scala.concurrent.Await import scala.concurrent.duration.Duration object SimpleFileDownloaderClient extends App { override def main(args: Array[String]): Unit = { val stdIO = new SdfIO val resourceUrlParser = new Reso...
arpanchaudhury/SFD
src/main/scala/SimpleFileDownloaderClient.scala
Scala
mit
704
/* * Copyright (C) 2005, The Beangle Software. * * 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 version. * * This...
beangle/data
orm/src/main/scala/org/beangle/data/dao/QueryPage.scala
Scala
lgpl-3.0
1,310
/* * 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-execution/shared/src/main/scala/monix/execution/CancelableFuture.scala
Scala
apache-2.0
12,868
package com.googlecode.kanbanik.migrate import com.googlecode.kanbanik.db.HasMongoConnection import com.mongodb.casbah.Imports._ import com.mongodb.casbah.commons.MongoDBObject import com.googlecode.kanbanik.commands.CreateUserCommand import com.mongodb.DBObject import com.googlecode.kanbanik.model._ import org.bson.t...
nagyistoce/kanbanik
kanbanik-server/src/main/scala/com/googlecode/kanbanik/migrate/MigrateDb.scala
Scala
apache-2.0
12,688
package org.jetbrains.sbt.project.data.service import com.intellij.openapi.externalSystem.model.{DataNode, ProjectKeys} import com.intellij.openapi.externalSystem.service.project.ProjectStructureHelper import com.intellij.openapi.module.Module import com.intellij.openapi.project.Project /** * @author Nikolay Obedin ...
SergeevPavel/intellij-scala
src/org/jetbrains/sbt/project/data/service/SafeProjectStructureHelper.scala
Scala
apache-2.0
653
package com.haskforce.cabal.lang.psi.impl import com.intellij.psi.PsiElement import com.haskforce.cabal.lang.psi._ import com.haskforce.utils.PQ trait BuildDependsImpl extends PsiElement { /** Retrieves the package names as strings. */ def getPackageNames: Array[String] = PQ.getChildOfType(this, classOf[Depende...
carymrobbins/intellij-haskforce
src/com/haskforce/cabal/lang/psi/impl/BuildDependsImpl.scala
Scala
apache-2.0
584
import java.sql.DriverManager import scala.collection.mutable import sh.echo.simqle._ object Main extends App { Class.forName("org.h2.Driver") val db = Db("jdbc:h2:mem:demo;MODE=MYSQL;DB_CLOSE_DELAY=-1") db.withConnection { conn ⇒ val stmt = conn.createStatement() stmt.execute("create table users (id ...
echojc/simqle-sdu
code/simqle-full/src/main/scala/Main.scala
Scala
mit
878
/* * 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
api/src/main/scala/quasar/api/push/param/IntegerStep.scala
Scala
apache-2.0
1,279
package mesosphere.marathon.core.task.tracker.impl import mesosphere.marathon.Protos.MarathonTask import mesosphere.marathon.core.task.Task import mesosphere.marathon.core.task.Task.LocalVolumeId import mesosphere.marathon.core.task.state.MarathonTaskStatus import mesosphere.marathon.state.{ PathId, Timestamp } import...
timcharper/marathon
src/test/scala/mesosphere/marathon/core/task/tracker/impl/TaskSerializerTest.scala
Scala
apache-2.0
11,785
package be.cmpg.simulatedDataAnalysis import java.io.FileWriter class ROCPlotValuesCreator(selected: Set[String], positives: Set[String], all: Set[String]) { val value = { val negatives = all.--(positives) val truePositives = positives.&(selected) val trueNegatives = (negatives).&(all.--(selected...
spulido99/SSA
src/main/scala/be/cmpg/simulatedDataAnalysis/ROCPlotValuesCreator.scala
Scala
gpl-2.0
880
package com.voldy.beans import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonIgnoreProperties import scala.beans.BeanProperty @JsonIgnoreProperties(ignoreUnknown = true) class RoutingDetails (){ @BeanProperty @JsonProperty("customer_name") var customer_name: String ...
amoghrao2003/cmpe273-assignment2
src/main/scala/com/voldy/beans/RoutingDetails.scala
Scala
mit
1,624
/* * 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 ...
MLnick/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/Exchange.scala
Scala
apache-2.0
3,558
// Copyright: 2010 - 2018 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.core.javac import scala.collection.JavaConverters._ import scala.collection.breakOut import akka.event.slf4j.SLF4JLogging import com.sun.source.tree._ import com.sun.sour...
yyadavalli/ensime-server
core/src/main/scala/org/ensime/core/javac/Helpers.scala
Scala
gpl-3.0
3,603
/* This file is part of ZikDroid. * Copyright (C) 2015 Sacha Delanoue <contact@shaac.me> * * ZikDroid 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...
Shaac/ZikDroid
src/Protocol.scala
Scala
gpl-3.0
1,735
/* * DigiSSHD - DigiControl component for Android Platform * Copyright (c) 2012, Alexey Aksenov ezh@ezh.msk.ru. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public ...
ezh/android-component-DigiSSHD
src/main/scala/org/digimead/digi/ctrl/sshd/service/option/TextViewItem.scala
Scala
gpl-3.0
1,404
package controllers import io.apibuilder.api.v0.models.json._ import db.MembershipsDao import java.util.UUID import javax.inject.{Inject, Singleton} import play.api.libs.json.Json @Singleton class Memberships @Inject() ( val apiBuilderControllerComponents: ApiBuilderControllerComponents, membershipsDao: Membershi...
apicollective/apibuilder
api/app/controllers/Memberships.scala
Scala
mit
1,685
/* * Copyright 2015 Dennis Vriend * * 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...
dnvriend/reactive-programming
src/test/scala/com/test/week4/RxOperatorsTest.scala
Scala
apache-2.0
7,307
package com.xhachi.gae4s.datastore import com.google.appengine.api.datastore.{Key => LLKey, KeyFactory} import scala.reflect.ClassTag object EntityMeta { import scala.language.experimental.macros implicit def createMeta[E <: Entity[E]]: EntityMeta[E] = macro EntityMacro.createMeta[E] } trait EntityType { ty...
thachi/gae4s
core/src/main/scala/com/xhachi/gae4s/datastore/EntityMeta.scala
Scala
apache-2.0
3,751
/* * Copyright (C) 2014 GRNET S.A. * * 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 distrib...
grnet/snf-vmcatcher
src/main/scala/gr/grnet/egi/vmcatcher/Json.scala
Scala
gpl-3.0
1,972
/* * 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 ...
prccaraujo/openwhisk
core/invoker/src/main/scala/whisk/core/containerpool/docker/DockerClient.scala
Scala
apache-2.0
6,905
// AORTA is copyright (C) 2012 Dustin Carlino, Mike Depinet, and Piyush // Khandelwal of UT Austin // License: GNU GPL v2 package utexas.aorta.map import scala.collection.mutable import utexas.aorta.map.make.MapStateWriter import utexas.aorta.common.{Util, StateReader, VertexID, EdgeID, RoadID} class Graph( val r...
dabreegster/aorta
utexas/aorta/map/Graph.scala
Scala
gpl-2.0
3,868
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js Test Suite ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
lrytz/scala-js
test-suite/js/src/test/scala/org/scalajs/testsuite/jsinterop/StrangeNamedTests.scala
Scala
bsd-3-clause
1,364
/* * 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
sql/core/src/test/scala/org/apache/spark/sql/sources/v2/FileDataSourceV2FallBackSuite.scala
Scala
apache-2.0
6,124
package se.gigurra.leavu3.datamodel import com.github.gigurra.heisenberg.MapData._ import com.github.gigurra.heisenberg.{Schema, Parsed} case class GameVersion(source: SourceData = Map.empty) extends SafeParsed[GameVersion.type] { val productName = parse(schema.productName) val fileVersion = parse(schema.fi...
GiGurra/leavu3
src/main/scala/se/gigurra/leavu3/datamodel/GameVersion.scala
Scala
mit
693
package ch.epfl.perfNetwork.drawn import scala.scalajs.js.Date import ch.epfl.perfNetwork.webapp.Algebra._ /** * @author Thibault Urien * * Hold the information about the time scale. * Contain each days that contain a commit in the graph, sorted in chronological order. * Each day is matched with the absolute dis...
ThibaultUrien/SemesterProject
js/src/main/scala/ch/epfl/perfNetwork/drawn/StretchyTimeScale.scala
Scala
bsd-3-clause
3,343
package hulk.oauth import java.util.Date import akka.http.scaladsl.model.HttpMethods import hulk.HulkHttpServer import hulk.auth.{Authorized, OAuthGrantFlow, OAuthGrantFlowData} import hulk.http._ import hulk.routing.{RouteDef, Router} import play.api.libs.json.Json import scala.concurrent.Future import scalaoauth2....
reneweb/hulk
examples/src/main/scala/hulk/oauth/OAuthGrantFlowApplication.scala
Scala
apache-2.0
4,098