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 com.typesafe.sbt package packager package archetypes import Keys._ import sbt._ import sbt.Project.Initialize import sbt.Keys.{ mappings, target, name, mainClass, normalizedName } import linux.LinuxPackageMapping import SbtNativePackager._ import com.typesafe.sbt.packager.linux.LinuxPackageMapping /** * This...
yanns/sbt-native-packager
src/main/scala/com/typesafe/sbt/packager/archetypes/JavaServerApplication.scala
Scala
bsd-2-clause
3,032
/* * 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.tools.nsc packag...
scala/scala
src/compiler/scala/tools/nsc/symtab/SymbolTable.scala
Scala
apache-2.0
400
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/cypher/cypher-compiler-2.3/src/main/scala/org/neo4j/cypher/internal/compiler/v2_3/ast/convert/plannerQuery/ExpressionConverters.scala
Scala
apache-2.0
5,934
package com.monsanto.arch.kamon.spray.can import akka.actor.{ActorSystem, Props} import akka.io.IO import akka.testkit.{ImplicitSender, TestKit} import com.monsanto.arch.kamon.spray.can.server.SprayServerMetrics import com.typesafe.config.ConfigFactory import kamon.Kamon import kamon.metric.Entity import org.scalatest...
MonsantoCo/spray-kamon-metrics
src/test/scala/com/monsanto/arch/kamon/spray/can/KamonHttpSpec.scala
Scala
bsd-3-clause
2,538
package com.dragisak.typelevel import org.scalatest.WordSpec import org.scalatest.Matchers._ import Nat._ import NatToInt._ class NListSpec extends WordSpec { "List" should { "should compile if types match" in { val a: NList[Int, Nat2] = 1 :: 2 :: NNil } "should have correct size" in { ...
dragisak/type-level
src/test/scala/com/dragisak/typelevel/NListSpec.scala
Scala
apache-2.0
517
package se.lu.nateko.cp.meta.upload import akka.actor.ActorSystem import akka.http.scaladsl.Http import java.net.URI import scala.concurrent.Future import se.lu.nateko.cp.meta.DataObjectDto import se.lu.nateko.cp.meta.CpmetaJsonProtocol import se.lu.nateko.cp.meta.utils.async.{ok, error, executeSequentially} import ak...
ICOS-Carbon-Portal/meta
src/test/scala/se/lu/nateko/cp/meta/upload/L3UpdateWorkbench.scala
Scala
gpl-3.0
2,910
package org.jetbrains.plugins.scala.lang.typeInference package generated class TypeInferenceMethodCallTest extends TypeInferenceTestBase { //This class was generated by build script, please don't change this override def folderPath: String = super.folderPath + "methodCall/" def testApplyArray() {doTest()} de...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/lang/typeInference/generated/TypeInferenceMethodCallTest.scala
Scala
apache-2.0
1,637
object SCL4354 { import java.util import scala.collection.JavaConverters._ implicit def castingScalaListConversion(javaList: util.List[_]): {def asScalaListOf[T]: List[T]} = new { def asScalaListOf[T]: List[T] = /*start*/javaList.asInstanceOf[util.List[T]].asScala.toList/*end*/ } } //List[T]
ilinum/intellij-scala
testdata/typeInference/bugs5/SCL4354.scala
Scala
apache-2.0
305
/* * MandelActors - Mandelbrot fractal generator using actors * Copyright (C) 2011 Jesper de Jong * * 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 * ...
jesperdj/mandelactors
src/main/scala/org/jesperdj/mandelactors/Sampler.scala
Scala
gpl-3.0
4,412
package im.actor.server.persist import im.actor.server.models import slick.driver.PostgresDriver.api._ object SexColumnType { implicit val sexColumnType = MappedColumnType.base[models.Sex, Int](_.toInt, models.Sex.fromInt) }
boneyao/actor-platform
actor-server/actor-persist/src/main/scala/im/actor/server/persist/SexColumnType.scala
Scala
mit
233
/* * 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 ...
michalsenkyr/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
Scala
apache-2.0
26,194
import org.scalatest.Tag package object sbtmarathon { object FunctionalTest extends Tag("sbtmarathon.FunctionalTest") } // end package object
Tapad/sbt-marathon
marathon/src/test/scala/sbtmarathon/package.scala
Scala
bsd-3-clause
145
/* * 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 ...
manuzhang/incubator-gearpump
experiments/yarn/src/main/scala/org/apache/gearpump/experiments/yarn/appmaster/Command.scala
Scala
apache-2.0
4,478
/** * 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...
YMartsynkevych/camel
components/camel-scala/src/test/scala/org/apache/camel/scala/routeSpec.scala
Scala
apache-2.0
4,288
/* * Copyright 2019 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/scio
scio-tensorflow/src/test/scala/com/spotify/scio/tensorflow/TFSequenceExampleIOTest.scala
Scala
apache-2.0
2,084
package uk.gov.dvla.service.testing.dropwizard import com.google.common.base.Strings import com.google.common.collect.ImmutableMap import com.massrelevance.dropwizard.ScalaApplication import com.sun.jersey.api.client.Client import io.dropwizard.Configuration import io.dropwizard.cli.ServerCommand import io.dropwizard....
dvla/sdl-opensource
test-helpers/src/main/scala/uk.gov.dvla.service.testing.dropwizard/DropwizardSpec.scala
Scala
mit
2,300
package dotty.tools.dotc.core import dotty.tools.tasty.TastyFormat /** The possible tags of a NameKind */ object NameTags extends TastyFormat.NameTags { final val FLATTENED = 5 // A flat name, generated by Flatten final val TRAITSETTER = 6 // A Scala-2 trait setter, generated by AugmentScala2Traits ...
som-snytt/dotty
compiler/src/dotty/tools/dotc/core/NameTags.scala
Scala
apache-2.0
2,137
package com.ctask.client import java.nio.file.{Files, Paths, StandardOpenOption} import com.ctask.client.util.ClientProperties import play.api.libs.json.Json import scala.util.{Failure, Success, Try} /** * Handles persistence for the task list in use. */ object TaskListInUse { implicit val taskListInUseJsonR...
modsrm/ctask
client/src/main/scala/com/ctask/client/TaskListInUse.scala
Scala
gpl-3.0
1,666
package org.jetbrains.plugins.scala.annotator import com.intellij.codeInsight.intention.IntentionAction import org.jetbrains.plugins.scala.ExtensionPointDeclaration import org.jetbrains.plugins.scala.lang.psi.api.base.ScReferenceElement /** * @author Pavel Fatin */ abstract class UnresolvedReferenceFixProvider { ...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/annotator/UnresolvedReferenceFixProvider.scala
Scala
apache-2.0
550
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.config import java.io.File import java.nio.file.{ Path, Paths } import scala.collection.breakOut import scala.collection.JavaConverters._ import com.typesafe.config._ im...
VlachJosef/ensime-server
core/src/main/scala/org/ensime/config/richconfig.scala
Scala
gpl-3.0
4,121
package chapterx.answer12 import scratchpad.monoid._ //object Main { // def main(args: Array[String]): Unit = { // //// Foldable[List] //// // val foldable: Foldable[List] = new Foldable[List] {} // // //// val listFoldable: Foldable[List] = new ListFoldable() // // ListFoldable. // } //} trait Foldable...
waxmittmann/fpinscala
answerkey/monoids/12.answer.scala
Scala
mit
1,716
package controllers import javax.inject.Inject import dao.ParenthoodDAO import models.Parenthood._ import play.api.libs.json._ import play.api.mvc._ import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future class ParenthoodController @Inject()(parenthoodDao: ParenthoodDAO) extends Con...
magura42/KickAppServer
app/controllers/ParenthoodController.scala
Scala
mit
2,227
/** * Copyright (c) 2013, The National Archives <digitalpreservation@nationalarchives.gov.uk> * http://www.nationalarchives.gov.uk * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozi...
digital-preservation/dali
src/main/scala/uk/gov/tna/dri/preingest/loader/unit/network/RemotePath.scala
Scala
mpl-2.0
936
package com.dbrsn.datatrain.dsl import cats.free.Free import cats.free.Free.inject import cats.free.Inject import scala.language.higherKinds trait ImageComponent { type Img type FileExisted type FileNotExisted sealed trait ImageDSL[A] object ImageDSL { case class Cover(input: Img, width: Int, height...
dborisenko/data-train
data-train-core/src/main/scala/com/dbrsn/datatrain/dsl/ImageComponent.scala
Scala
apache-2.0
2,470
package io.youi.app sealed trait ReconnectStrategy object ReconnectStrategy { case object Reload extends ReconnectStrategy case object Stop extends ReconnectStrategy case object Reconnect extends ReconnectStrategy }
outr/youi
app/js/src/main/scala/io/youi/app/ReconnectStrategy.scala
Scala
mit
223
package tifmo import dcstree.SemRole import dcstree.Relation package inference { abstract case class RuleArg(arg: Any) { private[inference] val terms: Set[TermIndex] private[inference] def dumpMe(tmmap: Map[TermIndex, TermIndex]): RuleArg } trait RuleDo[T <: IEPred] extends ((IEngineCore, T, Seq[RuleArg]) ...
tianran/tifmo
src/tifmo/inference/RuleArg.scala
Scala
bsd-2-clause
2,203
// Copyright (c) 2011 Paul Butcher // // 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, modify, merge, publish,...
paulbutcher/borachio
project/Build.scala
Scala
mit
3,333
// Generated by the Scala Plugin for the Protocol Buffer Compiler. // Do not edit! // // Protofile syntax: PROTO3 package com.google.protobuf.wrappers object GoogleProtobufWrappersProto { lazy val descriptor: com.google.protobuf.Descriptors.FileDescriptor = { val proto = com.google.protobuf.DescriptorProtos.F...
eiennohito/ScalaPB
scalapb-runtime/js/src/main/scala/com/google/protobuf/wrappers/GoogleProtobufWrappersProto.scala
Scala
apache-2.0
1,078
/* * Copyright 2015 Paul Horn * * 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...
lirenhao/typed-actors
docs/src/test/scala/akka/PrintLogger.scala
Scala
apache-2.0
1,380
/* * Copyright 2022 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/self-service-time-to-pay-frontend
app/testonly/TestUserReturns.scala
Scala
apache-2.0
1,536
/* * 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/test/scala/org/apache/spark/sql/execution/DeprecatedWholeStageCodegenSuite.scala
Scala
apache-2.0
1,900
package cook.actor import cook.config.ConfigRef import cook.ref.FileRef import scala.concurrent.Future import scala.util.Try trait ConfigRefManager { def taskComplete(refName: String)(tryConfigRef: Try[ConfigRef]) def getConfigRef(cookFileRef: FileRef): Future[ConfigRef] def step2LoadIncludeRefs(refName: Stri...
timgreen/cook
src/cook/actor/ConfigRefManager.scala
Scala
apache-2.0
363
/* * Copyright 2016 Nicolas Rinaudo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
nrinaudo/kantan.regex
core/shared/src/test/scala/kantan/regex/RegexTests.scala
Scala
apache-2.0
1,396
package com.rocketfuel.sdbc.base import com.rocketfuel.sdbc.base trait Updatable[Key, Connection, Update <: base.Update[Connection]] { def update(key: Key): Update } trait UpdatableMethods[Connection, Update <: base.Update[Connection]] { def updateIterator[Key]( key: Key )(implicit updatable: base.Updatab...
wdacom/sdbc
base/src/main/scala/com/rocketfuel/sdbc/base/Updatable.scala
Scala
bsd-3-clause
622
import sbt._ import Keys._ object ThoughtBuild extends Build { }
ssjskipp/thought
project/Build.scala
Scala
mit
67
/* * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package play.api.db import java.sql.Connection import javax.sql.DataSource import play.api.Application /** * Provides a high-level API for getting JDBC connections. * * For example: * {{{ * val conn = DB.getConnection("customers") * }}} ...
jyotikamboj/container
pf-framework/src/play-jdbc/src/main/scala/play/api/db/DB.scala
Scala
mit
2,742
import scala.util.Properties object Version { val scaliper = "0.5.0" + Properties.envOrElse("SCALIPER_VERSION_SUFFIX", "-SNAPSHOT") val scala = "2.10.6" val sprayJson = "1.3.2" val spray = "1.3.3" val akka = "2.3.9" }
azavea/scaliper
project/Version.scala
Scala
apache-2.0
229
/* * 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 ...
pronix/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/AggregationIterator.scala
Scala
apache-2.0
19,625
package com.cengallut.textualapp import com.cengallut.textual.{TextualActivity, TouchComposite, Action} import com.cengallut.textual.core.CharGrid /** Demonstration of event handling for multiple sub-grids. */ class Demo3 extends TextualActivity { override def onBufferReady(buffer: CharGrid): Unit = { val (to...
AliceCengal/android-textual
demo-android-scala/src/main/scala/com/cengallut/textualapp/Demo3.scala
Scala
mit
907
package org.jetbrains.plugins.scala package lang package psi package impl package base package patterns import com.intellij.lang.ASTNode import com.intellij.psi._ import org.jetbrains.plugins.scala.lang.psi.api.ScalaElementVisitor import org.jetbrains.plugins.scala.lang.psi.api.base.patterns._ import org.jetbrains.plu...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/base/patterns/ScLiteralPatternImpl.scala
Scala
apache-2.0
863
/* * 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 ...
wowmsi/safe
safe-lang/src/main/scala/safe/safesets/client/MasterWorkerMessageProtocol.scala
Scala
apache-2.0
1,613
/* Listok is a dialect of LISP Copyright (C) 2011 Konstantin Boukreev ru.kolyvan@gmail.com This file is part of Listok. Listok 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 t...
kolyvan/listok
src/main/scala/interop.scala
Scala
lgpl-3.0
6,249
/** * Copyright 2013-2015, AlwaysResolve Project (alwaysresolve.org), MOYD.CO LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
Moydco/AlwaysResolveDNS
src/main/scala/httpSync/HttpToDns.scala
Scala
apache-2.0
4,128
/* * 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 ...
pgandhi999/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/CostBasedJoinReorder.scala
Scala
apache-2.0
19,576
package org.broadinstitute.clio.server.webservice import org.broadinstitute.clio.server.service.StatusService import org.broadinstitute.clio.status.model.{ ClioStatus, SearchStatus, StatusInfo, VersionInfo } import org.broadinstitute.clio.transfer.model.ApiConstants._ import org.scalamock.scalatest.MockFactory...
broadinstitute/clio
clio-server/src/test/scala/org/broadinstitute/clio/server/webservice/StatusWebServiceSpec.scala
Scala
bsd-3-clause
1,190
import org.specs2.mutable.Specification import reactivemongo.api.MongoDriver import scala.concurrent.duration.FiniteDuration /** A Test Suite For MongoDriver */ class MongoDriverSpec extends Specification { sequential val hosts = Seq("localhost") "MongoDriver" should { "start and close cleanly with no co...
reactific/ReactiveMongo
driver/src/test/scala/MongoDriverSpec.scala
Scala
apache-2.0
1,015
package scala.meta package contrib trait TreeExtractors { object Select { def unapply(tree: Tree): Option[(Term, Name)] = tree match { case Term.Select(qual, name) => Some(qual -> name) case Type.Select(qual, name) => Some(qual -> name) case _ => None } } }
MasseGuillaume/scalameta
scalameta/contrib/shared/src/main/scala/scala/meta/contrib/TreeExtractors.scala
Scala
bsd-3-clause
289
package xiatian.knowledge.highlight import better.files.File /** * Highlight DataSet * * @author Tian Xia Email: xiat@ruc.edu.cn * School of IRM, Renmin University of China. * Jul 06, 2017 18:31 */ object HighlightDataSet { lazy val highlightFiles = File("./data/highlight").list.toList.s...
iamxiatian/knowledge
src/main/scala/xiatian/knowledge/highlight/HighlightDataSet.scala
Scala
gpl-3.0
2,490
package fpinscala.ch06_state import annotation.tailrec trait RNG { def nextInt: (Int, RNG) } object RNG { def simple(seed: Long): RNG = new RNG { def nextInt = { // `&` is bitwise AND // `<<` is left binary shift val seed2 = (seed*0x5DEECE66DL + 0xBL) & ((1L << 48) - 1) // `>>>`...
shajra/fpinscala-exercises-shajra
answers/src/main/scala/fpinscala/ch06_state/State.scala
Scala
mit
12,796
/** * This file is part of agora-mixnet. * Copyright (C) 2015-2016 Agora Voting SL <agora@agoravoting.com> * agora-mixnet 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 L...
agoravoting/agora-mixnet
src/main/scala/Demo.scala
Scala
agpl-3.0
31,341
/* * 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...
jenniew/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/SoftSign.scala
Scala
apache-2.0
2,115
package mesosphere.marathon.integration.setup import akka.actor.ActorSystem import mesosphere.marathon.integration.facades.ITEnrichedTask import org.slf4j.LoggerFactory import play.api.libs.json.{ JsValue, Json } import spray.client.pipelining._ import spray.http.HttpResponse import scala.concurrent.duration.{ Durati...
ss75710541/marathon
src/test/scala/mesosphere/marathon/integration/setup/ServiceMockFacade.scala
Scala
apache-2.0
1,025
package com.argcv.iphigenia.biendata /** * * @author Yu Jing <yu@argcv.com> on 12/21/16 */ package object smp2016 { }
yuikns/iphigenia
src/main/scala/com/argcv/iphigenia/biendata/smp2016/package.scala
Scala
mit
123
/** * Copyright 2015 Mohiva Organisation (license at mohiva dot com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
rfranco/play-silhouette
silhouette/test/com/mohiva/play/silhouette/impl/providers/OAuth2ProviderSpec.scala
Scala
apache-2.0
10,947
import org.scalatest._ import NumericContainer._ class NumericExample extends FlatSpec with Matchers { "An Impl" should "be instantiable as an int" in { val one = Impl(1) } it should "be instantiable as a double" in { val double = Impl(2.0) } it should "be instantiable as a float" in { val f...
mrmechko/spire-test
src/test/scala/NumericContainer.scala
Scala
gpl-2.0
1,797
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package scalaguide.tests.webservice package client { //#client import javax.inject.Inject import play.api.libs.ws.WSClient import scala.concurrent.{ExecutionContext, Future} class GitHubClient(ws: WSClient, baseUrl: String)(implicit ec: Ex...
wsargent/playframework
documentation/manual/working/scalaGuide/main/tests/code/webservice/ScalaTestingWebServiceClients.scala
Scala
apache-2.0
4,368
package coder.simon import java.util.UUID class Account(x: Int) { var balance = x def withdrawWithLog(delta: Int) = { val yyy = balance val result = withdraw(delta) println(s"before $yyy,delta is $delta, after $balance") result } def withdraw(delta: Int) = synchronized { if (delta > 0 &&...
erlangxk/concurrent_account_demo
ConcurrentWebWithDB/app/models/RaceCondition.scala
Scala
mit
1,007
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.lang.parser.ScalaElementTypes import org.jetbrains.plugins.scala.lang...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/statements/params/ScParametersImpl.scala
Scala
apache-2.0
2,458
package model trait IssueLabelComponent extends TemplateComponent { self: Profile => import profile.simple._ lazy val IssueLabels = TableQuery[IssueLabels] class IssueLabels(tag: Tag) extends Table[IssueLabel](tag, "ISSUE_LABEL") with IssueTemplate with LabelTemplate { def * = (userName, repositoryName, is...
campolake/gitbucketV2.1
src/main/scala/model/IssueLabels.scala
Scala
apache-2.0
659
package springrtsru.pages.games import springrtsru.pages.{BaseContentPage, Games, PageIndex} class ZerokGamePage extends BaseContentPage { override def getTitle: String = "Zero-K RTS" override def getPageIndex: PageIndex = Games }
Eltario/springrts-ru-website
src/main/scala/springrtsru/pages/games/ZerokGamePage.scala
Scala
unlicense
238
/* * 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 ...
shaneknapp/spark
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveFileFormat.scala
Scala
apache-2.0
6,649
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.libs import org.scalacheck.Arbitrary.arbitrary import org.scalacheck.{ Arbitrary, Gen } import org.specs2.mutable.Specification import org.specs2.ScalaCheck object FTupleSpec extends Specification with ScalaCheck { import Arbitr...
jyotikamboj/container
pf-framework/src/play/src/test/scala/play/libs/FTupleSpec.scala
Scala
mit
2,355
/* * The MIT License (MIT) * * Copyright (c) 2014 MineFormers * * 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, ...
MineFormers/Kybology
src/main/scala/de/mineformers/kybology/core/block/BlockRift.scala
Scala
mit
2,713
/* * 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 ...
goldmedal/spark
core/src/main/scala/org/apache/spark/SparkContext.scala
Scala
apache-2.0
124,013
package services.publisher import com.google.inject.{Inject, Singleton} import common.publisher.{BasicPubSubService, Event, Param} import monix.execution.Scheduler import models.Message import scala.language.postfixOps @Singleton class MessagePubSubServiceImpl @Inject()(implicit scheduler: Scheduler) extends BasicPub...
sysgears/apollo-universal-starter-kit
modules/chat/server-scala/src/main/scala/services/publisher/MessagePubSubServiceImpl.scala
Scala
mit
753
package evescala.cache import com.twitter.storehaus.cache.TTLCache import com.twitter.util.Duration class PerKeyTTLCache[K, V]( defaultTTL: Duration ) extends TTLCache[K, V](ttl = defaultTTL, cache = Map.empty)(() => System.currentTimeMillis) { def putWithTTL(kv: (K, V), ttl: Duration): (Set[K], TTLCache[K, V]) =...
pequalsnp/evescala
src/main/scala/evescala/cache/PerKeyTTLCache.scala
Scala
apache-2.0
434
package io.skysail.core.server import akka.actor.{ActorRef, ActorSystem, Props} import akka.http.scaladsl.Http import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.Route import akka.http.scaladsl.server.RouteResult.route2HandlerFlow import akka.osgi.ActorSystemActivator import akka.stream.Act...
evandor/skysail-core
skysail.core/src/io/skysail/core/server/AkkaServer.scala
Scala
apache-2.0
6,604
package xyz.nabijaczleweli.nactors.process import java.util.UUID import xyz.nabijaczleweli.lonning.Logger import xyz.nabijaczleweli.lonning.loutput.FileLOutput import xyz.nabijaczleweli.nactors.Actor import xyz.nabijaczleweli.scala_game_of_life.util.DataUtil /** Contains <tt>Actor</tt>s and <tt>ActorThread</tt>s. *...
nabijaczleweli/Scala-Game-of-Life
src/main/scala/xyz/nabijaczleweli/nactors/process/ActorsHome.scala
Scala
mit
2,283
package com.sksamuel.elastic4s.searches.aggs.pipeline import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval import org.elasticsearch.search.aggregations.pipeline.BucketHelpers.GapPolicy import org.elasticsearch.search.aggregations.pipeline.PipelineAggregatorBuilders import org.elasticsear...
ulric260/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/aggs/pipeline/DerivativeDefinition.scala
Scala
apache-2.0
1,745
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
sgururajshetty/carbondata
integration/spark2/src/main/scala/org/apache/carbondata/datamap/CarbonMergeBloomIndexFilesRDD.scala
Scala
apache-2.0
2,824
/* * Original implementation (C) 2009-2011 Debasish Ghosh * Adapted and extended in 2011 by Mathias Doenitz * * 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/l...
rsun07/spray-json
src/main/scala/spray/json/DefaultJsonProtocol.scala
Scala
apache-2.0
972
package common import org.mashupbots.socko.events.WebSocketFrameEvent import akka.actor.{Actor, ActorRef} case class POST(socketId: String, message: String) case class MESSAGES(messages: List[String]) case class GETTAGMESSAGES(event: WebSocketFrameEvent) case class REQUESTFORTAG(tag: String) case class GETUSERMESSAG...
highlanderkev/ChatShare
ChatShare/common/src/main/scala/messages.scala
Scala
mit
2,055
package com.typesafe.akka.http.benchmark.entity case class Fortune(id: Int, message: String)
zdanek/FrameworkBenchmarks
frameworks/Scala/akka-http/src/main/scala/com/typesafe/akka/http/benchmark/entity/Fortune.scala
Scala
bsd-3-clause
94
/* * Copyright 2018 Aman Mehara * * 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 ...
amanmehara/programming-app-data
Scala/Sequence Maximum/SequenceMaximum.scala
Scala
apache-2.0
686
package com.mdataset.service.api import com.ecfront.ez.framework.core.EZManager import com.mdataset.service.api.export.query.SocketAPI import com.mdataset.service.api.process.QueryProcessor import com.typesafe.scalalogging.slf4j.LazyLogging /** * API Service启动类 */ object MdsStartup extends App with LazyLogging { ...
MDataSet/mds
modules/service_api/src/main/scala/com/mdataset/service/api/MdsStartup.scala
Scala
apache-2.0
581
/* * 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...
SRGOM/scalatest
scalatest-test/src/test/scala/org/scalatest/ShouldTripleEqualsToleranceSpec.scala
Scala
apache-2.0
48,262
package com.stefansavev.randomprojections.implementation import java.util.Random import com.stefansavev.randomprojections.datarepr.dense.{DataFrameView} import com.stefansavev.randomprojections.datarepr.sparse.SparseVector class OnlineVariance(k: Int) { var n = 0.0 val mean = Array.ofDim[Double](k) val sqrLeft...
codeaudit/random-projections-at-berlinbuzzwords
src/main/scala/com/stefansavev/randomprojections/implementation/DataInformedProjectionStrategy.scala
Scala
apache-2.0
4,564
/* * 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 ...
bwsw/sj-platform
core/sj-common/src/main/scala/com/bwsw/sj/common/config/BenchmarkConfigNames.scala
Scala
apache-2.0
1,079
package com.dwolla.circe import io.circe._ import io.circe.generic.extras.Configuration import io.circe.{ DecodingFailure, Json } import shapeless._ import shapeless.labelled.{ field, FieldType } object EnumerationSnakeCodec extends EnumerationSnakeCodec /** This is mainly copied from Circe's [[io.circe.generic.extr...
Dwolla/scala-cloudflare
client/src/main/scala/com/dwolla/circe/EnumerationSnakeCodec.scala
Scala
mit
3,424
package com.wix.mysql.config import java.io.File import java.nio.file.Files import com.wix.mysql.EmbeddedMysql.anEmbeddedMysql import com.wix.mysql.config.DownloadConfig.aDownloadConfig import com.wix.mysql.support.IntegrationTest.testConfigBuilder import com.wix.mysql.support.{IntegrationTest, MysqlCacheServingHttpS...
wix/wix-embedded-mysql
wix-embedded-mysql/src/test/scala/com/wix/mysql/config/DownloadConfigTest.scala
Scala
bsd-3-clause
2,818
/* * Copyright 2015 IBM Corp. * * 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 ...
codeaudit/spark-kernel
communication/src/main/scala/com/ibm/spark/communication/actors/ReqSocketActor.scala
Scala
apache-2.0
1,667
/* * Copyright (c) 2014 Oculus Info Inc. * http://www.oculusinfo.com/ * * Released under the MIT License. * * 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, includ...
aashish24/aperture-tiles
tile-generation/src/main/scala/com/oculusinfo/tilegen/tiling/IndexingScheme.scala
Scala
mit
4,196
/** * 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...
ajw625/orbeon-forms
src/test/scala/org/orbeon/oxf/xforms/control/XFormsControlsTest.scala
Scala
lgpl-2.1
6,091
package model import skinny.orm._, feature._ import scalikejdbc._ import org.joda.time._ case class MailBatch( id: Long, mailId: Option[Long] = None, status: Option[Int] = None, textbody: Option[String] = None, htmlbody: Option[String] = None, mailCount: Option[String] = None, startAt: Option[DateTime] ...
yoshitakes/skinny-task-example
src/main/scala/model/MailBatch.scala
Scala
mit
807
package com.github.tminglei.slickpg import java.sql.{Date, Time, Timestamp} import javax.xml.bind.DatatypeConverter import java.util.{Calendar, TimeZone} import org.postgresql.core.Provider import slick.jdbc.{JdbcType, PostgresProfile} trait PgDateSupport extends date.PgDateExtensions with utils.PgCommonJdbcTypes { ...
TimothyKlim/slick-pg
src/main/scala/com/github/tminglei/slickpg/PgDateSupport.scala
Scala
bsd-2-clause
7,870
/** * Copyright (C) 2012-2013 Vadim Bartko (vadim.bartko@nevilon.com). * * 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 2 of the License, or * (at your option) any later ve...
hudvin/nomad
src/main/scala/com/nevilon/nomad/crawler/ContentSaver.scala
Scala
gpl-2.0
840
/* * * Copyright (c) 2016 Sylvain Julmy * * 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 2 of the License, or * (at your option) any later version. * * This program is...
SnipyJulmy/MSE_1617_PA
KlugHDL/src/main/scala/klughdl/core/model/Model.scala
Scala
gpl-2.0
5,413
package org.jetbrains.plugins.scala package lang package completion import com.intellij.codeInsight.completion.{CompletionParameters, PrefixMatcher} import com.intellij.openapi.util.Key import com.intellij.psi._ import org.jetbrains.plugins.scala.lang.lexer._ import org.jetbrains.plugins.scala.lang.parser._ import org...
JetBrains/intellij-scala-historical
src/org/jetbrains/plugins/scala/lang/completion/ScalaCompletionUtil.scala
Scala
apache-2.0
10,897
package uk.gov.dvla.vehicles.presentation.common import play.api.Play object ConfigProperties { implicit val stringProp = (property: String) => Play.current.configuration.getString(property) implicit val intProp = (property: String) => Play.current.configuration.getInt(property) implicit val booleanProp = (prop...
dvla/vehicles-presentation-common
app/uk/gov/dvla/vehicles/presentation/common/ConfigProperties.scala
Scala
mit
2,373
import org.apache.spark.sql._ import Main.{spark, logger} object Converter { def parquetFileName(tableName:String) = s"$tableName.parquet" def write(df: DataFrame, tableName: String) = { df.write .mode(SaveMode.Overwrite) .parquet(parquetFileName(tableName)) } } class Converter(conf: AppConfig)...
lovasoa/spark-joinapp
src/main/scala/Convert.scala
Scala
mit
949
package au.com.agiledigital.toolform.model import org.scalacheck.{Arbitrary, Gen} import org.scalatest.{FlatSpec, Matchers} import org.scalacheck.Prop.forAll class PortMappingTest extends FlatSpec with Matchers { private implicit final val ArbitraryProtocol: Arbitrary[PortProtocolType] = Arbitrary(Gen.oneOf(PortPr...
agiledigital/toolform
src/test/scala/au/com/agiledigital/toolform/model/PortMappingTest.scala
Scala
apache-2.0
3,287
/* * 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/js/src/main/scala/monix/execution/atomic/package.scala
Scala
apache-2.0
1,987
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/cypher/cypher/src/test/scala/org/neo4j/cypher/HttpServerTestSupport.scala
Scala
apache-2.0
5,939
/** * 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...
unix1986/universe
tool/kafka-0.8.1.1-src/core/src/main/scala/kafka/producer/async/DefaultEventHandler.scala
Scala
bsd-2-clause
17,692
package org.jetbrains.plugins.scala package lang.psi.light import lang.psi.api.statements.ScAnnotationsHolder import lang.psi.types.result.{Success, TypingContext} import lang.psi.types.{ScType, ScParameterizedType} import com.intellij.psi.{PsiClass, PsiClassType} import extensions.toPsiClassExt /** * @author Alefas...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/light/LightUtil.scala
Scala
apache-2.0
2,272
package org.crockeo.genericplatformer.assets import com.badlogic.gdx.graphics.g2d.{ TextureRegion, SpriteBatch, Animation } import com.badlogic.gdx.graphics.Texture import com.badlogic.gdx.utils.Array // Actor for updating the animations class AnimationActor(val animation: Animation) { private var time: Float = 0.0...
crockeo/generic-platformer
src/org/crockeo/genericplatformer/assets/AnimationManager.scala
Scala
gpl-3.0
1,946
package collins.softlayer import models.Status import util.config.Configurable object SoftLayerConfig extends Configurable { override val namespace = "softlayer" override val referenceConfigFilename = "softlayer_reference.conf" def enabled = getBoolean("enabled", false) def username = getString("username", "...
Shopify/collins
app/collins/softlayer/SoftLayerConfig.scala
Scala
apache-2.0
759
package io.github.quark.action import io.github.quark.action.OperationAction.OperationOutput import io.github.quark.action.OperationResult.{Abort, Success} import io.github.quark.stage.PipelineStage.{Input, Output} import scala.concurrent.{ExecutionContext, Future} sealed trait OperationResult[+T] object OperationR...
burakkose/Quark
src/main/scala/io/github/quark/action/OperationAction.scala
Scala
apache-2.0
1,240
/* * 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 ...
dbtsai/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala
Scala
apache-2.0
9,541
/* * Artificial Intelligence for Humans * Volume 1: Fundamental Algorithms * Scala Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * Copyright 2013 by Jeff Heaton * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
HairyFotr/aifh
vol1/scala-examples/src/main/scala/com/heatonresearch/aifh/randomize/MersenneTwisterGenerateRandom.scala
Scala
apache-2.0
4,682