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
/* * Copyright 2010 Sanjiv Sahayam * Licensed under the Apache License, Version 2.0 */ package shortbread import sbt._ import org.openqa.selenium.remote.RemoteWebDriver import scala.Option trait ShortbreadPlugin extends ShortBreadProperties with PluginSupport with ConsolePrinter { this:DefaultWebProject => //I...
ssanj/Shortbread
src/main/scala/ShortbreadPlugin.scala
Scala
apache-2.0
868
package org.fusesource.camel.tooling.util import java.io.File import org.junit.Assert._ /** */ class XmlAttributeParseTest extends RouteXmlTestSupport { test("parses valid XML file with > in xml attribute") { val x = assertRoutes(new File(baseDir, "src/test/resources/blueprintWithGreaterThanInAttribute.xml"),...
janstey/fuse
tooling/camel-tooling-util/src/test/scala/org/fusesource/camel/tooling/util/XmlAttributeParseTest.scala
Scala
apache-2.0
500
/* * Copyright (C) 2016-2017 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.scaladsl.broker.kafka import akka.util.ByteString import com.lightbend.lagom.scaladsl.api.deser.MessageSerializer.{ NegotiatedDeserializer, NegotiatedSerializer } import org.apache.kafka.common.serializati...
edouardKaiser/lagom
service/scaladsl/kafka/client/src/main/scala/com/lightbend/lagom/internal/scaladsl/broker/kafka/KafkaSerializers.scala
Scala
apache-2.0
1,484
/* * Create a `Process[IO,O]` from the lines of a file, using * the `resource` combinator above to ensure the file is closed * when processing the stream of lines is finished. */ def lines(filename: String): Process[IO,String] = resource { IO(io.Source.fromFile(filename)) } { src => lazy val iter ...
ud3sh/coursework
functional-programming-in-scala-textbook/answerkey/streamingio/11.answer.scala
Scala
unlicense
982
package com.anphoenix.demo import java.util.Random import scala.math.exp import breeze.linalg.{Vector, DenseVector} import org.apache.spark._ /** * Logistic regression based classification. */ object CorrectSparkLR { val D = 3 // Numer of dimensions val ITERATIONS = 500 case class DataPoint(x: Vector[Double], y: Do...
anphoenix/demo_spark
correctSparkLR/correctSparkLR.scala
Scala
apache-2.0
1,332
import leon.annotation._ import leon.lang._ import leon.collection._ import leon.lang._ object BatchedQueue { sealed abstract class List case class Cons(head: Int, tail: List) extends List case object Nil extends List def content(l: List): Set[Int] = l match { case Nil => Set.empty case Cons(head, ta...
regb/leon
testcases/synthesis/condabd/benchmarks/BatchedQueue/BatchedQueue.scala
Scala
gpl-3.0
2,048
package utils import enums.LevelEnum import models.conf._ import play.api.{Logger, Play} import play.api.libs.json.{JsObject, Json} import scala.language.postfixOps /** * Created by jinwei on 1/7/14. */ object TaskTools { implicit val hostFormat = Json.format[Host_v] implicit val envFormat = Json.format[Enviro...
sdgdsffdsfff/bugatti
app/utils/TaskTools.scala
Scala
bsd-2-clause
8,521
/* * 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 ...
eribeiro/kafka
core/src/main/scala/kafka/api/ApiVersion.scala
Scala
apache-2.0
5,522
/* * Copyright 2011-2018 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 applic...
wiacekm/gatling
gatling-commons/src/main/scala/io/gatling/commons/util/JavaRuntime.scala
Scala
apache-2.0
744
/* * MIT License * * Copyright (c) 2016 Gonçalo Marques * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
gonmarques/slick-repo
src/test/scala/com/byteslounge/slickrepo/test/oracle/OracleJodaTimeVersionedRepositoryTest.scala
Scala
mit
1,379
package com.codahale.jerkson.tests import com.codahale.jerkson.Json._ import com.codahale.jerkson.ParsingException import java.io.ByteArrayInputStream import org.scalatest.FlatSpec import org.scalatest.Matchers class EdgeCaseSpec extends FlatSpec with Matchers { behavior of "Deserializing lists" it should "doesn'...
gilt/jerkson
src/test/scala/com/codahale/jerkson/tests/EdgeCaseSpec.scala
Scala
mit
2,389
/* * * * Copyright 2015 Skymind,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 * * * * U...
Mageswaran1989/aja
src/main/scala/org/aja/dhira/src/main/scala/org/dhira/core/optimize/listeners/ScoreIterationListener.scala
Scala
apache-2.0
1,947
package ozmi.lambda_core package lib import org.kiama.rewriting.Strategy import org.kiama.rewriting.Rewriter._ object Library { val typeClasses : Seq[TypeClass] = Seq (Eq, Num, Ord, Row) val typeInstances : Seq[TypeInstance] = Seq (Bool, Coll, Decimal, Integer) lazy val evalRules : Strategy = ...
ozmi/lambda_core
src/main/scala/ozmi/lambda_core/lib/Library.scala
Scala
mit
514
package scalariform.formatter import scalariform.parser._ import scalariform.formatter.preferences._ // format: OFF class ParamGroupsOnNewlineTest extends AbstractFormatterTest { { implicit val formattingPreferences: FormattingPreferences = FormattingPreferences. setPreference(AllowParamGroupsOnNewlines,...
mdr/scalariform
scalariform/src/test/scala/scalariform/formatter/ParamGroupsOnNewlineTest.scala
Scala
mit
3,121
package devnull.sessions import java.util.UUID import devnull.UuidFromString import org.json4s.native.JsonMethods.parse import org.scalatest.{FunSpec, Matchers} class SleepingPillHttpSessionClientSpec extends FunSpec with Matchers { describe("SleepingPillHttpSessionClient") { val baseUrl = "https://test-slee...
javaBin/devnull
src/test/scala/devnull/sessions/SleepingPillHttpSessionClientSpec.scala
Scala
apache-2.0
2,839
package amphip.stoch import scala.language.implicitConversions import scala.collection.mutable.ListBuffer import scalaz.std.option.optionSyntax._ import scalaz.syntax.show._ import scalaz.syntax.std.boolean._ import scalaz.Scalaz.stringInstance //import scalaz.std.list.listSyntax._ import cats.syntax.list._ import ...
gerferra/amphip
core/src/main/scala/amphip/stoch/StochData.scala
Scala
mpl-2.0
20,865
/* * 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
client/shared/src/main/scala/org/http4s/client/RequestKey.scala
Scala
apache-2.0
1,106
// // Taranos Cloud Sonification Framework: Service Core // Copyright (C) 2018 David Hinson, Netrogen Blue LLC (dhinson@netrogenblue.com) // // 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 F...
taranos/taranoscsf-core
src/main/scala/org/taranos/mc/trunk/intraprocess/SignalSinkPlant.scala
Scala
agpl-3.0
5,776
package providers import error.NotificationsError trait ProviderError extends NotificationsError { def providerName: String }
guardian/mobile-n10n
common/src/main/scala/providers/ProviderError.scala
Scala
apache-2.0
130
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.concurrent /** ...
lrytz/scala
src/library/scala/concurrent/SyncChannel.scala
Scala
apache-2.0
1,887
package polystyrene.torus import scala.collection.mutable.LinkedHashSet import peersim.config.Configuration import peersim.core.Control import peersim.core.Network import peersim.core.Node import peersim.core.CommonState import polystyrene.core.DataPoint class TorusPolyInitializer(prefix : String) extends Control {...
HKervadec/Polystyrene
src/polystyrene/torus/TorusPolyInitializer.scala
Scala
gpl-2.0
1,427
package components import models._ import play.api.Logger import models.TransactionOrBalance import models.PurseBalance import models.BalanceOnly import models.BalanceDiff import java.util.Currency class BalanceCalculator { type BalanceMap = Map[Long, PurseBalance] def calculateBalances(rows: Seq[TransactionOrB...
vatt2001/finprocessor
app/components/BalanceCalculator.scala
Scala
mit
4,281
package cook.config.dsl import cook.ref.DirRef import cook.ref.FileRef import cook.target.Target import cook.target.TargetResult import scala.collection.mutable class ConfigContext(val cookFileRef: FileRef) { private [config] val targets = mutable.Map[String, Target[TargetResult]]() def dir = cookFileRef.dir ...
timgreen/cook
src/cook/config/dsl/ConfigContext.scala
Scala
apache-2.0
414
package acceptance.support import com.mongodb.casbah.Imports._ import org.bson.types.ObjectId import org.joda.time.DateTime trait Mongo { val mongoDB: MongoDB def createCollection(name: String): MongoCollection = mongoDB(name) def dropCollection(coll: MongoCollection) = coll.drop() def removeCollection(co...
tvlive/tv-api
test/acceptance/support/Mongo.scala
Scala
apache-2.0
2,220
/* * 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 ...
akopich/spark
mllib/src/test/scala/org/apache/spark/ml/regression/GBTRegressorSuite.scala
Scala
apache-2.0
8,134
/*********************************************************************** * Copyright (c) 2013-2018 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...
jahhulbert-ccri/geomesa
geomesa-spark/geomesa-spark-jts/src/main/scala/org/locationtech/geomesa/spark/jts/udaf/ConvexHull.scala
Scala
apache-2.0
2,285
package x7c1.wheat.splicer.core.logger import ch.qos.logback.classic.encoder.PatternLayoutEncoder import ch.qos.logback.classic.spi.ILoggingEvent import ch.qos.logback.core.FileAppender import ch.qos.logback.core.rolling.{RollingFileAppender, TimeBasedRollingPolicy} import x7c1.wheat.splicer.core.logger.Tap.implicits....
x7c1/Wheat
wheat-splicer/src/test/scala/x7c1/wheat/splicer/core/logger/RollingFileSetting.scala
Scala
mit
1,240
package sangria.validation.rules import sangria.util.{Pos, ValidationSupport} import org.scalatest.wordspec.AnyWordSpec class VariablesInAllowedPositionSpec extends AnyWordSpec with ValidationSupport { override val defaultRule = Some(new VariablesInAllowedPosition) "Validate: Variables are in allowed positions"...
OlegIlyenko/sangria
modules/core/src/test/scala/sangria/validation/rules/VariablesInAllowedPositionSpec.scala
Scala
apache-2.0
7,366
/* * Copyright (c) 2013 Bridgewater Associates, LP * * Distributed under the terms of the Modified BSD License. The full license is in * the file COPYING, distributed as part of this software. */ package notebook.kernel.remote import java.io.File import notebook.kernel.pfork.ProcessFork import notebook.kernel....
bigdatagenomics/mango-notebook
modules/kernel/src/main/scala/notebook/kernel/remote/Subprocess.scala
Scala
apache-2.0
1,438
package autolift.test.algebird import org.scalatest.FlatSpec import com.twitter.algebird.{Monad, Functor} case class Foo[A](a: A) object Foo{ implicit val bind = new Monad[Foo]{ def apply[T](t: T) = Foo(t) def flatMap[T, U](foo: Foo[T])(fn: T => Foo[U]) = fn(foo.a) } } case class Bar[A](a: A) object Bar{ impl...
wheaties/AutoLifts
autolift-algebird/src/test/scala/autolift/algebird/BaseTest.scala
Scala
apache-2.0
497
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
practice-vishnoi/dev-spark-1
mllib/src/test/scala/org/apache/spark/ml/param/ParamsSuite.scala
Scala
apache-2.0
8,087
package org.openapitools.server.model /** * @param durationInMillis for example: ''null'' * @param estimatedDurationInMillis for example: ''null'' * @param enQueueTime for example: ''null'' * @param endTime for example: ''null'' * @param id for example: ''null'' * @param organization for example: ''null''...
cliffano/swaggy-jenkins
clients/scala-akka-http-server/generated/src/main/scala/org/openapitools/server/model/PipelineBranchesitemlatestRun.scala
Scala
mit
1,112
package com.eevolution.context.dictionary.infrastructure.repository import com.eevolution.context.dictionary.domain.model.WorkflowProcess import com.eevolution.context.dictionary.infrastructure.db.DbContext._ /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This program i...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/repository/WorkflowProcessMapping.scala
Scala
gpl-3.0
2,000
/* * 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 ...
tophua/spark1.52
core/src/main/scala/org/apache/spark/scheduler/ActiveJob.scala
Scala
apache-2.0
1,736
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
travisbrown/scalatest
src/test/scala/org/scalactic/UncheckedEqualitySpec.scala
Scala
apache-2.0
21,501
package co.pjrt.stags.cli import java.io._ import java.nio.file._ import java.util.zip._ import scala.util.Random import scala.io.Source import org.scalatest._ import co.pjrt.stags.paths.AbsolutePath final class CliTest extends FreeSpec with BeforeAndAfter { import Matchers._ private def mkTempDir: Path = { ...
pjrt/stags
cli/src/test/scala/co/pjrt/stags/cli/CliTest.scala
Scala
mit
6,112
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
practice-vishnoi/dev-spark-1
examples/src/main/scala/org/apache/spark/examples/mllib/FPGrowthExample.scala
Scala
apache-2.0
2,923
/* * Copyright 2017 Spotify AB. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
spotify/featran
core/src/main/scala/com/spotify/featran/transformers/MaxAbsScaler.scala
Scala
apache-2.0
2,524
package com.nelly.monitor import java.nio.file.{StandardWatchEventKinds => EventType} import akka.actor.{ActorLogging, ActorSystem} import better.files.FileWatcher._ import better.files._ import com.nelly.core.domain.LogEntry class LogMonitor(logFile: File, changeObserversRootPath: String)( implicit logEntryParse...
ezinelony/http-log-monitor
monitor/src/main/scala/com/nelly/monitor/LogMonitor.scala
Scala
mit
1,731
package ml.sparkling.graph.operators.measures.vertex.betweenness.hua.struct import ml.sparkling.graph.operators.measures.vertex.betweenness.hua.struct.messages.DFSPointer import org.apache.spark.graphx.VertexId /** * Created by mth on 5/6/17. */ class NOVertex(val vertexId: VertexId, val bfsMap: Ma...
sparkling-graph/sparkling-graph
operators/src/main/scala/ml/sparkling/graph/operators/measures/vertex/betweenness/hua/struct/NOVertex.scala
Scala
bsd-2-clause
1,827
package org.http4s.blazecore package websocket import fs2.Stream import fs2.concurrent.{Queue, SignallingRef} import cats.effect.IO import cats.implicits._ import java.util.concurrent.atomic.AtomicBoolean import org.http4s.Http4sSpec import org.http4s.blaze.pipeline.LeafBuilder import org.http4s.websocket.{WebSocket, ...
ChristopherDavenport/http4s
blaze-core/src/test/scala/org/http4s/blazecore/websocket/Http4sWSStageSpec.scala
Scala
apache-2.0
3,444
// Copyright 2012 Brennan Saeta // // This file is part of Axess // // Axess 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. ...
saeta/axess
test/models/BasicSiteSpec.scala
Scala
agpl-3.0
2,062
object InfiniteSubtypingLoopPossibility { trait A[X] trait B extends A[B] trait Min[+S <: B with A[S]] def c: Any = ??? c match { case pc: Min[_] => } }
lampepfl/dotty
tests/pos/infinite-loop-potential.scala
Scala
apache-2.0
170
/* * 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 ...
rahul003/mxnet
scala-package/macros/src/main/scala/org/apache/mxnet/APIDocGenerator.scala
Scala
apache-2.0
9,826
/* * TimelineFrame.scala * (Mellite) * * Copyright (c) 2012-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.mellite imp...
Sciss/Mellite
app/src/main/scala/de/sciss/mellite/TimelineFrame.scala
Scala
agpl-3.0
875
package org.scaladebugger.api.profiles.java.info import com.sun.jdi.{ReferenceType, StackFrame, ThreadReference, VirtualMachine} import org.scaladebugger.api.profiles.traits.info.{FrameInfo, ThreadStatusInfo} import org.scaladebugger.api.virtualmachines.ScalaVirtualMachine import org.scaladebugger.test.helpers.Paralle...
ensime/scala-debugger
scala-debugger-api/src/test/scala/org/scaladebugger/api/profiles/java/info/JavaThreadStatusInfoSpec.scala
Scala
apache-2.0
6,366
package org.salgo.geometry.structures import org.salgo.common.{Comparison, MathUtils} case class Point3D(x: Double, y: Double, z: Double) { def + (toAdd: Point3D) : Vector3D = { Vector3D(this.x + toAdd.x, this.y + toAdd.y, this.z + toAdd.z) } def - (subtrahend: Point3D) : Vector3D = { Vector3D(this.x -...
ascensio/salgo
src/org.salgo/geometry/structures/Point3D.scala
Scala
apache-2.0
2,957
package org.jetbrains.plugins.scala package format import com.intellij.psi.PsiElement import lang.psi.api.base.ScInterpolatedStringLiteral import lang.psi.api.expr.{ScBlockExpr, ScExpression} import lang.lexer.ScalaTokenTypes import com.intellij.openapi.util.text.StringUtil /** * Pavel Fatin */ object Interpolated...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/format/InterpolatedStringParser.scala
Scala
apache-2.0
3,099
package net.hearthstats.util import java.io.File import java.io.FileWriter import java.io.BufferedWriter import org.scalatest._ import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class FileObserverSpec extends FlatSpec with Matchers with OneInstancePerTest { ignor...
HearthStats/HearthStats.net-Uploader
companion/src/test/scala/net/hearthstats/util/FileObserverSpec.scala
Scala
bsd-3-clause
755
/* * 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/test/scala/monix/reactive/internal/operators/FlatScanSuite.scala
Scala
apache-2.0
3,174
package ml.wolfe.nlp.syntax import ml.wolfe.nlp.Token import ml.wolfe.nlp.io.ConstituentTreeFactory import scala.collection.mutable.HashMap // , Map => MMap} /** * Created by narad on 12/5/14. */ /** * A constituent tree. */ case class ConstituentTree(node: ConstituentNode, children : List[ConstituentTree] = Li...
wolfe-pack/wolfe
wolfe-nlp/src/main/scala/ml/wolfe/nlp/syntax/ConstituentTree.scala
Scala
apache-2.0
17,059
package core.filter import com.lvxingpai.yunkai.Userservice.{ FinagledClient => YunkaiClient } import core.Implicits.TwitterConverter._ import core.exception.GroupMemberException import models.Message import play.api.Play import play.api.Play.current import scala.concurrent.ExecutionContext.Implicits.global import sc...
Lvxingpai/Hedylogos-Server
app/core/filter/GroupMemberFilter.scala
Scala
apache-2.0
1,601
package org.sbuild.plugins.aether.impl import org.scalatest.FreeSpec import java.io.File import org.sbuild.plugins.aether.Repository import org.eclipse.aether.graph.Dependency import org.eclipse.aether.graph.Exclusion import org.eclipse.aether.collection.CollectRequest import org.sbuild.plugins.aether.ArtifactDependen...
SBuild-org/sbuild-aether-plugin
org.sbuild.plugins.aether/src/test/scala/org/sbuild/plugins/aether/impl/AetherTests.scala
Scala
apache-2.0
3,114
/* * 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/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JsonFileFormat.scala
Scala
apache-2.0
6,132
import sbt._ import sbt.Keys._ import sbtassembly.Plugin._ import AssemblyKeys._ /** * Build settings for MLlib. To build against a specific Spark version (e.g., 1.1.0), use * {{{ * sbt -Dspark.version=1.1.0 clean ... * }}} */ object MLlibTestsBuild extends Build { val sparkVersion = settingKey[String]("Spark ...
nchammas/spark-perf
mllib-tests/project/MLlibTestsBuild.scala
Scala
apache-2.0
2,356
object safe_number_input_stub { def main(args: Array[String]) { // Put code here } }
LoyolaChicagoBooks/introcs-scala-examples
safe_number_input_stub/safe_number_input_stub.scala
Scala
gpl-3.0
93
package provingground.library import provingground._ import HoTT._ import induction._ import implicits._ import shapeless._ import Fold._ object uliftInd { lazy val value = Subst.Lambda( "$b" :: Type, ConstructorSeqTL( ConstructorSeqDom.Cons( ApplnSym( "ulift.up" :: piDefn("'c_58690270...
siddhartha-gadgil/ProvingGround
leanlib/src/main/scala/provingground/library/inductive-types/uliftInd.scala
Scala
mit
825
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.collection packa...
lrytz/scala
src/library/scala/collection/immutable/IntMap.scala
Scala
apache-2.0
19,313
package org.openurp.edu.eams.teach.grade.course.service.impl import org.beangle.data.model.dao.EntityDao import org.beangle.commons.entity.metadata.Model import org.openurp.edu.teach.code.GradeType import org.openurp.edu.eams.teach.code.industry.ScoreMarkStyle import org.openurp.edu.eams.teach.grade.course.service.Ma...
openurp/edu-eams-webapp
grade/src/main/scala/org/openurp/edu/eams/teach/grade/course/service/impl/DefaultMarkStyleStrategy.scala
Scala
gpl-3.0
3,064
package dsl.reactive.syntaxops import scala.virtualization.lms.common.{Base, EffectExp, ScalaGenFunctions, FunctionsExp} import dsl.reactive.phantom._ import language.implicitConversions /** Defines Signal syntax, methods and code generators. */ trait SignalSyntax extends Base { /* Enabling signal.map(_ + 1) via i...
markus1189/OptiReactive
src/main/scala/dsl/reactive/syntaxops/Signals.scala
Scala
gpl-3.0
2,386
/* * 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...
qiuxin2012/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/ops/Lgamma.scala
Scala
apache-2.0
1,412
/* * 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
integration/spark2/src/main/scala/org/apache/spark/util/CleanFiles.scala
Scala
apache-2.0
1,934
/* * Copyright (C) 2013 Alcatel-Lucent. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * Licensed to you 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 cop...
molecule-labs/molecule
molecule-core/src/main/scala/molecule/utils/Reflect.scala
Scala
apache-2.0
5,080
/* * Copyright 2010-2011 WorldWide Conferencing, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
pbrant/framework
web/webkit/src/test/scala/net/liftweb/http/rest/XMLApiSpec.scala
Scala
apache-2.0
5,505
/* * Accio is a platform to launch computer science experiments. * Copyright (C) 2016-2018 Vincent Primault <v.primault@ucl.ac.uk> * * Accio 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...
privamov/accio
accio/javatests/fr/cnrs/liris/accio/discovery/libraries/TestOps1.scala
Scala
gpl-3.0
1,409
package gitbucket.core.controller import gitbucket.core.model.Account import gitbucket.core.service.RepositoryService.RepositoryInfo import gitbucket.core.service.{AccountService, RepositoryService} import gitbucket.core.servlet.Database import gitbucket.core.util._ import gitbucket.core.util.SyntaxSugars._ import git...
nobusugi246/gitbucket
src/main/scala/gitbucket/core/controller/FileUploadController.scala
Scala
apache-2.0
4,408
/* * Copyright 2001-2015 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
dotty-staging/scalatest
examples/src/test/scala/org/scalatest/examples/asyncfreespec/ignoreall/AddSpec.scala
Scala
apache-2.0
1,449
package org.http4s package server package middleware import cats.~> import cats.arrow.FunctionK import cats.implicits._ import cats.data.OptionT import cats.effect.{Bracket, Concurrent, Sync} import cats.effect.Sync._ import fs2.Stream import org.http4s.util.CaseInsensitiveString import org.log4s.getLogger /** * Si...
ChristopherDavenport/http4s
server/src/main/scala/org/http4s/server/middleware/Logger.scala
Scala
apache-2.0
3,271
package com.stulsoft.ysps.plambda /** * Created by Yuriy Stul on 9/13/2016. */ object Lambda { def main(args: Array[String]): Unit = { println("==>main") lambda1() println("<==main") } def lambda1(): Unit = { println("==>lambda1") val max: (Int, Int) => Int = (m: Int, n: Int) => if (m > ...
ysden123/ysps
src/main/scala/com/stulsoft/ysps/plambda/Lambda.scala
Scala
mit
410
/** **\\ ** Copyright (c) 2012 Center for Organic and Medicinal Chemistry ** ** Zurich University of Applied Sciences ** ** Wädenswil, Switzerland ** \\** ...
stefan-hoeck/chemf
src/test/scala/chemf/ElementTest.scala
Scala
gpl-3.0
1,173
// Copyright 2012 Brennan Saeta // // This file is part of Axess // // Axess 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. ...
saeta/axess
app/axess/Worker.scala
Scala
agpl-3.0
3,051
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.util import java.io.{ File => JFile, _ } import java.nio.charset.Charset import java.util.regex.Pattern import java.nio.file.Files import scala.collection.JavaConverters....
pascr/ensime-server
util/src/main/scala/org/ensime/util/file.scala
Scala
gpl-3.0
3,528
package org.jetbrains.plugins.scala.codeInspection.typeLambdaSimplify import com.intellij.codeInspection.{LocalQuickFix, ProblemDescriptor, ProblemsHolder} import com.intellij.openapi.project.Project import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.codeInspection.typeLambdaSimplify.KindProjectorUs...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/codeInspection/typeLambdaSimplify/KindProjectorUseCorrectLambdaKeywordInspection.scala
Scala
apache-2.0
3,554
// Copyright (c) 2013-2020 Rob Norris and Contributors // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT package doobie.hi import doobie.enumerated.JdbcType import doobie.util.{ Get, Put } import doobie.enumerated.ColumnNullable import...
tpolecat/doobie
modules/core/src/main/scala/doobie/hi/preparedstatement.scala
Scala
mit
8,528
package scala /** A base trait of all enum classes */ trait Enum { /** A number uniquely identifying a case of an enum */ def ordinal: Int protected def $ordinal: Int }
som-snytt/dotty
library/src/scala/Enum.scala
Scala
apache-2.0
177
package uk.co.morleydev.ghosthunt.controller.impl.game import uk.co.morleydev.ghosthunt.controller.Controller import uk.co.morleydev.ghosthunt.model.net.{AcceptJoinGameRequest, NetworkMessage, ClientId, game} import uk.co.morleydev.ghosthunt.model.GameTime import uk.co.morleydev.ghosthunt.data.store.{Maze, EntityCompo...
MorleyDev/GhostHunt
src/main/scala/uk/co/morleydev/ghosthunt/controller/impl/game/ServerLobbyController.scala
Scala
mit
5,952
/* * Copyright (c) 2014-2015 by its authors. Some rights reserved. * See the project homepage at: http://www.monifu.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://...
virtualirfan/monifu
monifu/shared/src/test/scala/monifu/reactive/internals/builders/FromTaskSuite.scala
Scala
apache-2.0
1,940
package net.bmjames.opts.types import scalaz.Functor import scalaz.syntax.applicative._ import CReader._ sealed trait OptReader[A] { final def names: List[OptName] = this match { case OptionReader(ns, _, _) => ns case FlagReader(ns, _) => ns case _ => Nil } } case class OptionReader[A...
bmjames/scala-optparse-applicative
src/main/scala/net/bmjames/opts/types/OptReader.scala
Scala
bsd-3-clause
1,542
import akka.actor.ActorSystem import language.postfixOps import akka.http.scaladsl.Http import akka.http.scaladsl.model.Uri.Query import akka.http.scaladsl.model.{Uri, HttpRequest} import akka.http.scaladsl.model.StatusCodes._ import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server._ import akk...
OlegIlyenko/sangria-auth-example
src/main/scala/Server.scala
Scala
apache-2.0
10,039
package warsztat import scala.concurrent.duration.{DurationInt, FiniteDuration} class Implicits { implicit val TIMEOUT: FiniteDuration = 2 seconds def execute(id: String) (implicit timeout: FiniteDuration): Option[String] = ??? val result = execute("1") }
bjankie1/warsztat-scala
src/main/scala/warsztat/Implicits.scala
Scala
apache-2.0
281
package com.nabijaczleweli.minecrasmer.block import com.nabijaczleweli.minecrasmer.entity.tile.TileEntityOverclocker import net.minecraft.block.ITileEntityProvider import net.minecraft.world.World object BlockAccessoryOverclocker extends AccessoryGeneric("overclocker") with ITileEntityProvider { override def createN...
nabijaczleweli/ASMifier
src/main/scala/com/nabijaczleweli/minecrasmer/block/BlockAccessoryOverclocker.scala
Scala
mit
390
package net.danielkza.http2.hpack import scalaz._ import scalaz.std.AllInstances._ import scalaz.syntax.traverse._ import org.specs2.matcher.DataTables import org.specs2.mutable.Specification import org.specs2.specification.Scope import akka.util.ByteString import net.danielkza.http2.TestHelpers import net.danielkza....
danielkza/h2scala
core/src/test/scala/net/danielkza/http2/hpack/HeaderBlockCoderTest.scala
Scala
apache-2.0
2,706
package com.mattrjacobs.rxscala.slides import rx.lang.scala.Observable trait Slide141 extends App { trait VideoService { trait Video { val id: Long def getMetadata(): Observable[Map[String, Object]] } def getVideos(userId: Long): Observable[Video] def getBookmark(video: Video, userId: ...
mattrjacobs/RxScalaDemo
src/main/scala/slides/Slide141.scala
Scala
apache-2.0
1,173
package com.typesafe.slick.testkit.tests import org.junit.Assert._ import com.typesafe.slick.testkit.util.{TestkitTest, TestDB} class JoinTest(val tdb: TestDB) extends TestkitTest { import tdb.profile.simple._ object Categories extends Table[(Int, String)]("categories") { def id = column[Int]("id") def n...
boldradius/slick
slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/JoinTest.scala
Scala
bsd-2-clause
3,143
/** * Copyright 2014 Frank Austin Nothaft * * 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 ...
fnothaft/snark
snark-core/src/main/scala/net/fnothaft/snark/rdd/NestedRDD.scala
Scala
apache-2.0
17,554
println ("Primera claificacion") val clalificacion1=readFloat() println ("Segunda claificacion") val clalificacion2=readFloat() println ("Tercera claificacion") val clalificacion3=readFloat() println ("Examen Final") val clalificacionExamenFinal=readFloat() println ("Trabajo Final") val Trabajo Final=readFloa...
ReneFloresG/poo1-1
Ej1-1.scala
Scala
mit
484
/* * 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/builders/CombineLatest3Observable.scala
Scala
apache-2.0
5,310
package org.retistruen.instrument import org.retistruen._ /** A simple [[org.retistruen.Source]] [[org.retistruen.Emitter]] to be used as entry point */ class SourceEmitter[T](val name: String) extends Source[T] with CachingEmitter[T] /** An [[org.retistruen.OpenSource]] [[org.retistruen.Emitter]] to be used as en...
plalloni/retistruen
src/main/scala/org/retistruen/instrument/SourceEmitter.scala
Scala
mit
445
package com.criteo.dev.cluster.docker import com.criteo.dev.cluster.aws.AwsUtilities.NodeRole import com.criteo.dev.cluster._ import com.criteo.dev.cluster.config.GlobalConfig import org.slf4j.LoggerFactory import scala.sys.process.Process /** * Start docker container */ @Public object StartLocalCliAction extend...
criteo/berilia
src/main/scala/com/criteo/dev/cluster/docker/StartLocalCliAction.scala
Scala
apache-2.0
1,693
package tastytest final class annot extends scala.annotation.StaticAnnotation
lrytz/scala
test/tasty/neg-isolated/src-3-A/annot.scala
Scala
apache-2.0
79
// // $Id$ // // Wiggle - a 2D game development library - http://code.google.com/p/wiggle/ // Copyright 2008-2010 Michael Bayne // Distributed under the "Simplified BSD License" in LICENSE.txt package wiggle.util /** * A trait used by things that wish to maintain a list of tasks and tick those tasks every frame. */...
zdevzee/wiggle
src/main/scala/wiggle/util/Taskable.scala
Scala
bsd-3-clause
2,046
import java.io.File import avrohugger._ import avrohugger.format.Scavro import org.specs2._ class ScavroGeneratorSpec extends mutable.Specification { "a ScavroGenerator" should { "correctly generate a case class definition in a package" in { val infile = new java.io.File("avrohugger-core/src/test/a...
ppearcy/avrohugger
avrohugger-core/src/test/scala/scavro/ScavroGeneratorSpec.scala
Scala
apache-2.0
1,877
package filodb.stress import scala.concurrent.{Await, Future} import scala.concurrent.duration._ import scala.util.Try import com.opencsv.CSVReader import org.apache.spark.rdd.RDD import org.apache.spark.sql.{SaveMode, SparkSession} import org.apache.spark.streaming.{Milliseconds, StreamingContext} import org.joda.ti...
filodb/FiloDB
stress/src/main/scala/filodb.stress/StreamingStress.scala
Scala
apache-2.0
4,848
package ee.cone.c4actor_branch import ee.cone.c4actor.ArgTypes.LazyList import ee.cone.c4actor._ import scala.collection.immutable.Seq import ee.cone.c4actor_branch.BranchProtocol.S_BranchResult import ee.cone.c4actor.Types.SrcId import ee.cone.c4actor_branch.BranchTypes.BranchKey import ee.cone.c4proto._ object Br...
conecenter/c4proto
base_lib/src/main/scala/ee/cone/c4actor_branch/BranchApi.scala
Scala
apache-2.0
2,096
package org.higherstate.jameson import org.scalatest.{MustMatchers, WordSpec} import org.higherstate.jameson.DefaultRegistry._ import org.higherstate.jameson.Dsl._ import org.higherstate.jameson.parsers.Parser import org.higherstate.jameson.failures.Success class NestedStructuresSpec extends WordSpec with MustMatcher...
HigherState/jameson
src/test/scala/org/higherstate/jameson/NestedStructuresSpec.scala
Scala
apache-2.0
2,487
package edu.umass.ciir.kbbridge.search import collection.mutable import edu.umass.ciir.kbbridge.util.ConfInfo import edu.umass.ciir.kbbridge.data.DocumentProvider import org.lemurproject.galago.tupleflow.Parameters /** * User: jdalton * Date: 6/10/13 */ object DocumentBridgeMap extends DocumentProvider { // tod...
daltonj/KbBridge
src/main/scala/edu/umass/ciir/kbbridge/search/DocumentBridgeMap.scala
Scala
apache-2.0
2,107
package ch16 object ex06 extends App { val xml = <html> <head> <title> My list of jokes </title> </head> <body> <div class="otherprojects"> <div class="otherprojects-item"> <a href="http://www.wiktionary....
tuxdna/scala-for-the-impatient-exercises
src/main/scala/ch16/ex06.scala
Scala
apache-2.0
1,648
package pl.newicom.dddd.messaging.event import org.joda.time.DateTime import pl.newicom.dddd.aggregate.DomainEvent import pl.newicom.dddd.messaging.MetaData.CorrelationId import pl.newicom.dddd.messaging.{EntityMessage, Message} import pl.newicom.dddd.utils.UUIDSupport._ object EventMessage { def unapply(em: EventM...
ahjohannessen/akka-ddd
akka-ddd-messaging/src/main/scala/pl/newicom/dddd/messaging/event/EventMessage.scala
Scala
mit
870
/* * Copyright 2020 Precog Data * * 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 ...
quasar-analytics/quasar
foundation/src/test/scala/quasar/ScalazSpecs2Instances.scala
Scala
apache-2.0
1,562
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distrib...
fusepoolP3/p3-silk
silk-workspace/src/main/scala/de/fuberlin/wiwiss/silk/workspace/modules/output/MemoryOutputModule.scala
Scala
apache-2.0
1,362