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 info.fotm.clustering.RMClustering import info.fotm.clustering.Clusterer import info.fotm.clustering.Clusterer.{V, Cluster} //import scala.util.Random // https://en.wikipedia.org/wiki/K-means_clustering class KMeansClusterer extends Clusterer { val rng = new scala.util.Random(100) def clusteri...
temeer/Fotm-Tem-Clone
core/src/main/scala/info/fotm/clustering/RMClustering/KMeansClusterer.scala
Scala
mit
3,822
import sbt._ import Keys._ object FPInScalaBuild extends Build { val opts = Project.defaultSettings ++ Seq( scalaVersion := "2.10.3", resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" ) lazy val root = Project(id = "fpinscala", base = file("."), ...
karolchmist/fpinscala
project/Build.scala
Scala
mit
1,292
/* ************************************************************************************* * Copyright 2011 Normation SAS ************************************************************************************* * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
jooooooon/rudder
rudder-web/src/main/scala/bootstrap/liftweb/checks/CheckDIT.scala
Scala
agpl-3.0
5,655
package store import scala.concurrent.{ExecutionContext, Await, Future} import scala.concurrent.duration._ import scala.language.postfixOps import scala.util.{Failure, Success} object Simulator extends App { implicit val ec = ExecutionContext.global val catalog = Catalog() val store = new Store(catalog) val ...
objektwerks/store
src/main/scala/store/Simulator.scala
Scala
apache-2.0
678
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/Product19.scala
Scala
apache-2.0
2,980
package test // these classes are in totally different package in order to ensure that macro generates correct identifiers that // can be accessed outside of the `sangria` package. import sangria.macros.derive._ import sangria.schema.{EnumType, ObjectType, OutputType} case class CompanionA(b: CompanionB) object Comp...
sangria-graphql/sangria
modules/derivation/src/test/scala/test/testMacroModelWithCompanions.scala
Scala
apache-2.0
1,235
/* * 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/scalatest/ClueSpec.scala
Scala
apache-2.0
9,282
package roc package postgresql package server import org.specs2._ final class ErrorNoticeMinutiaSpec extends Specification with ScalaCheck { def is = s2""" ErrorNoticeMessageFields Severity must equal 'S' ${ENMF().testSeverity} SQLSTATE Code must equal 'C' ${ENMF().testCode} Mess...
penland365/roc
core/src/test/scala/roc/postgresql/server/ErrorNoticeMinutiaSpecs.scala
Scala
bsd-3-clause
10,755
import play.api.{ Application, ApplicationLoader, BuiltInComponentsFromContext } import play.api.libs.ws.ahc.AhcWSComponents import com.softwaremill.macwire._ import router.Routes import com.lightbend.lagom.scaladsl.api._ import com.lightbend.lagom.scaladsl.client.LagomServiceClientComponents import com.lightbend.lagom...
rstento/lagom
dev/sbt-plugin/src/sbt-test/sbt-plugin/run-all-scaladsl/p/app/Loader.scala
Scala
apache-2.0
1,093
package com.gx.loan /** * Copyright 2017 josephguan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
josephguan/scala-design-patterns
behavioral/loan/src/main/scala/com/gx/loan/using.scala
Scala
apache-2.0
856
/* * 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 ...
aljoscha/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/batch/sql/RankTest.scala
Scala
apache-2.0
5,963
package org.vitrivr.adampro.data.index.structures.va.marks import org.vitrivr.adampro.data.datatypes.vector.Vector import org.vitrivr.adampro.data.index.IndexingTaskTuple import org.vitrivr.adampro.data.index.structures.va.VAIndex.Marks /** * ADAMpro * * Ivan Giangreco * September 2016 */ private[va] object...
dbisUnibas/ADAMpro
src/main/scala/org/vitrivr/adampro/data/index/structures/va/marks/VAPlusMarksGenerator.scala
Scala
mit
1,848
package shapeless import scala.language.experimental.macros import scala.reflect.macros.whitebox import shapeless.labelled.{ FieldType, field } /** * Provides default values of case class-like types. * * The `Out` type parameter is an HList type whose length is the number of fields of `T`. Its elements correspond...
rorygraves/perf_tester
corpus/shapeless/src/main/scala/shapeless/default.scala
Scala
apache-2.0
10,118
/** * Copyright 2015 ICT. * * 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 ...
DataSysLab/netflow
query/src/test/scala/cn/ac/ict/acs/netflow/query/master/SubmissionSuite.scala
Scala
apache-2.0
893
/* * Copyright (c) 2013-2015 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 is available at * http://www.opensource.org/licenses/apache2.0.php. ...
vpipkt/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/geotools/ConfigSftProvider.scala
Scala
apache-2.0
1,714
package lila.tournament package crud import org.joda.time.{ DateTime, DateTimeZone } import lila.user.User final class CrudApi { def list = TournamentRepo uniques 50 def one(id: String) = TournamentRepo uniqueById id def editForm(tour: Tournament) = CrudForm.apply fill CrudForm.Data( name = tour.name, ...
clarkerubber/lila
modules/tournament/src/main/crud/CrudApi.scala
Scala
agpl-3.0
2,248
package implementationVoteSimple import Gvote.AbstractElection import Gvote.ModeScrutin import Gvote.Candidat class Election(_modeScrutin : ModeScrutin) extends AbstractElection(_modeScrutin){ type ImplTour = Tour type Candidate = Candidat def this(modeScrutin : String, nbTour : Int, listGagnantParTour : List[In...
DoumbiaAmadou/FrameworkVote
src/implementationVoteSimple/Election.scala
Scala
mit
443
/* * 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...
yiheng/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/nn/ops/InvSpec.scala
Scala
apache-2.0
1,039
package com.zobot.client.packet.definitions.clientbound.play import com.zobot.client.packet.Packet case class PlayerListHeaderAndFooter(header: Any, footer: Any) extends Packet { override lazy val packetId = 0x4A override lazy val packetData: Array[Byte] = fromAny(header) ++ fromAny(footer) }
BecauseNoReason/zobot
src/main/scala/com/zobot/client/packet/definitions/clientbound/play/PlayerListHeaderAndFooter.scala
Scala
mit
309
/*********************************************************************** * 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...
ddseapy/geomesa
geomesa-utils/src/test/scala/org/locationtech/geomesa/utils/iterators/PlaybackIteratorTest.scala
Scala
apache-2.0
3,184
/* * 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 ...
zzcclp/carbondata
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/measurenullvalue/NullMeasureValueTestCaseAggregate.scala
Scala
apache-2.0
2,780
package com.gregghz.ds import org.specs2.mutable._ import scalaz.State class GapBufferSpec extends Specification { "GapBuffer" should { "insert text correctly" in { val g = new GapBuffer[Char]() val machine = for { _ <- g.insert('h') _ <- g.insert('e') _ <- g.insert('l'...
gregghz/ds
src/test/scala/GapBufferSpec.scala
Scala
mit
4,665
package dynamite import java.io.ByteArrayOutputStream import java.nio.charset.StandardCharsets import dynamite.Dynamo.DynamoClient import com.amazonaws.services.dynamodbv2.AmazonDynamoDB import com.amazonaws.services.dynamodbv2.model.{ AttributeDefinition, AttributeValue, KeySchemaElement, KeyType, Provision...
joprice/dynamite
src/test/scala/dynamite/ScriptSpec.scala
Scala
apache-2.0
7,223
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
google/sync3k-server
src/main/scala/sync3k/WebServer.scala
Scala
apache-2.0
2,403
/** * 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/main/scala/kafka/utils/CommandLineUtils.scala
Scala
apache-2.0
5,310
package benchmark.controllers import com.twitter.finagle.http.{Request, Response} import com.twitter.finatra.http.{Controller => HttpController} import com.twitter.io.Buf import com.twitter.util.Future class Controller extends HttpController { private[this] val helloWorldText = "Hello, World!" private[this] val h...
sanjoydesk/FrameworkBenchmarks
frameworks/Scala/finatra/src/main/scala/benchmark/controllers/Controller.scala
Scala
bsd-3-clause
628
package lila.common import scala.concurrent.duration.FiniteDuration import scala.concurrent.stm.Ref final class WindowCount(timeout: FiniteDuration) { private val counter = Ref((0, (0, nowMillis))) private val tms = timeout.toMillis def add { val current = nowMillis counter.single.transform { c...
Happy0/lila
modules/common/src/main/WindowCount.scala
Scala
mit
848
/* * This file is part of Kiama. * * Copyright (C) 2013-2015 Anthony M Sloane, Macquarie University. * * Kiama is free software: you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation, either version 3 of the License, or ...
adeze/kiama
library/src/org/kiama/rewriting/NominalRewriter.scala
Scala
gpl-3.0
5,524
import controllers.MicroServiceError.MicroServiceErrorRefererCacheKey import models.BusinessChooseYourAddressFormModel.BusinessChooseYourAddressCacheKey import models.DisposeCacheKeyPrefix.CookiePrefix import models.EnterAddressManuallyFormModel.EnterAddressManuallyCacheKey import models.VehicleLookupFormModel.VehicleL...
dvla/vehicles-online
app/models/package.scala
Scala
mit
3,004
package japgolly.scalajs.react.test import scala.scalajs.js.Object import ReactTestUtils.Simulate /** * Allows composition and abstraction of `ReactTestUtils.Simulate` procedures. */ class Simulation(_run: (() => ReactOrDomNode) => Unit) { def run(n: => ReactOrDomNode): Unit = _run(() => n) def andThen(f:...
beni55/scalajs-react
test/src/main/scala/japgolly/scalajs/react/test/Simulation.scala
Scala
apache-2.0
8,166
package org.tomahna.scalaresume.resume import scala.io.Source import org.junit.runner.RunWith import org.scalatest.FlatSpec import org.scalatest.Matchers import org.scalatest.junit.JUnitRunner import play.api.libs.json.Json import java.time.LocalDate @RunWith(classOf[JUnitRunner]) class PublicationTest extends Flat...
Tomahna/scalaresume
resume/src/test/scala/org/tomahna/scalaresume/resume/PublicationTest.scala
Scala
mit
858
import org.scalatest.FlatSpec import scalax.file.Path import edu.udlap.graph.Graph import edu.udlap.analysis._ class SNASpecs extends FlatSpec { val testGraphPath = "target/SNASpecsDB" val graph = new Graph(testGraphPath) // Insert all persons graph.insertPerson("ID01", "Franco") graph.insertPerson("ID02",...
Innova4DReaumobile/census_prototype
src/test/scala/SNASpecs.scala
Scala
mit
1,871
package models import com.github.aselab.activerecord._ import com.github.aselab.activerecord.dsl._ object Tables extends ActiveRecordTables with PlaySupport { val users = table[User] }
xdougx/scala-activerecord
play2Sbt/src/sbt-test/generator/simple/app/models/Tables.scala
Scala
mit
189
package org.jetbrains.plugins.scala package lang package psi package stubs package impl import com.intellij.psi.PsiElement import com.intellij.psi.stubs.{IStubElementType, StubElement} import com.intellij.reference.SoftReference import com.intellij.util.io.StringRef import org.jetbrains.plugins.scala.lang.psi.api.bas...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/stubs/impl/ScVariableStubImpl.scala
Scala
apache-2.0
4,402
/* ************************************************************************************* * Copyright 2011 Normation SAS ************************************************************************************* * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
Kegeruneku/rudder
rudder-core/src/test/scala/com/normation/rudder/services/reports/ExecutionBatchTest.scala
Scala
agpl-3.0
31,846
/* * -╥⌐⌐⌐⌐ -⌐⌐⌐⌐- * ≡╢░░░░⌐\\░░░φ ╓╝░░░░⌐░░░░╪╕ * ╣╬░░` `░░░╢┘ φ▒╣╬╝╜ ░░╢╣Q * ║╣╬░⌐ ` ╤▒▒▒Å` ║╢╬╣ * ╚╣╬░⌐ ╔▒▒▒▒`«╕ ╢╢╣▒ * ╫╬░░╖ .░ ╙╨╨ ╣╣╬░φ ╓φ░╢╢Å * ╙╢░░░░⌐"░░░╜ ╙Å░░░░⌐░░░░╝` * ``˚¬ ⌐ ˚˚⌐´ * * ...
Flipkart/connekt
busybees/src/main/scala/com/flipkart/connekt/busybees/streams/flows/reponsehandlers/GCMResponseHandler.scala
Scala
mit
10,682
package org.jetbrains.plugins.scala package lang package resolve import com.intellij.lang.java.JavaLanguage import com.intellij.psi._ import com.intellij.psi.impl.source.resolve.JavaResolveUtil import com.intellij.psi.scope.{NameHint, PsiScopeProcessor} import com.intellij.psi.search.GlobalSearchScope import com.intel...
SergeevPavel/intellij-scala
src/org/jetbrains/plugins/scala/lang/resolve/ResolveUtils.scala
Scala
apache-2.0
26,946
package de.m7w3.signal.store.model import org.whispersystems.libsignal.SignalProtocolAddress import slick.jdbc.H2Profile.api._ case class Address(id: Int, signalAddress: SignalProtocolAddress) object Address { def apply(address: SignalProtocolAddress): Address = { new Address(address.hashCode(), address) } ...
ayoub-benali/signal-desktop-client
src/main/scala/de/m7w3/signal/store/model/Addresses.scala
Scala
apache-2.0
940
package scala.xml.quote package internal import fastparse.all._ import scala.xml.parsing.TokenTests import internal.{ast => p} private[internal] class XmlParser(Hole: P[p.Placeholder]) extends TokenTests { import XmlParser._ private val S = CharsWhile(isSpace).opaque("whitespace") val XmlExpr: P[Seq[p.Node]]...
densh/scala-xml-quote
src/main/scala/scala/xml/quote/internal/XmlParser.scala
Scala
bsd-3-clause
5,068
package org.shelmet.heap.server import org.shelmet.heap.model.{Snapshot, JavaClass, JavaHeapObject} object FinalizerSummaryPage { private class HistogramElement(val clazz: JavaClass) extends Ordered[HistogramElement] { var count: Long = 0L def updateCount() { this.count += 1 } override def ...
rorygraves/shelmet
src/main/scala/org/shelmet/heap/server/FinalizerSummaryPage.scala
Scala
gpl-2.0
1,920
/** * Copyright 2015, deepsense.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
deepsense-io/seahorse-workflow-executor
workflowjson/src/test/scala/io/deepsense/models/json/graph/NodeStatusJsonProtocolSpec.scala
Scala
apache-2.0
4,037
// scalac: -Xlint:type-parameter-shadow -language:higherKinds -Xfatal-warnings // class B { type T = Int trait D // method parameter shadows some other type def foobar[D](in: D) = in.toString // type member's parameter shadows some other type type MySeq[D] = Seq[D] // class parameter shadows some othe...
scala/scala
test/files/neg/t5691.scala
Scala
apache-2.0
747
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/plan/nodes/dataset/DataSetJoin.scala
Scala
apache-2.0
19,469
/* * RichVector2bSpec.scala * * Copyright (c) 2013 Lonnie Pryor III * * 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 r...
lpryor/fulcrum
math/src/test/scala/fulcrum/math/RichVector2bSpec.scala
Scala
apache-2.0
3,337
package edu.gemini.model.p1.targetio.table import edu.gemini.spModel.core.{Declination, RightAscension, MagnitudeSystem, Magnitude} object Serializers { implicit object StringWriter extends StilSerializer[String] { def asBinary(value: String) = value def primitiveClass = classOf[String] def asText(value...
arturog8m/ocs
bundle/edu.gemini.model.p1.targetio/src/main/scala/edu/gemini/model/p1/targetio/table/Serializers.scala
Scala
bsd-3-clause
2,167
package com.computableideas.lib.extractors.test import org.scalatest.FlatSpec import org.scalatest.Matchers import org.scalatest.prop._ class CommonSuite extends FlatSpec with Matchers with PropertyChecks
MrBogomips/ScalaExtractorsLib
lib/src/test/scala/com/computableideas/lib/extractors/test/CommonSuite.scala
Scala
apache-2.0
206
package java.lang import scala.scalajs.js class Throwable(s: String, private var e: Throwable) extends Object with java.io.Serializable { def this() = this(null, null) def this(s: String) = this(s, null) def this(e: Throwable) = this(if (e == null) null else e.toString, e) private[this] var stackTrace: Array...
lrytz/scala-js
javalanglib/src/main/scala/java/lang/Throwables.scala
Scala
bsd-3-clause
10,683
package util.plugins import models.Asset import collins.provisioning.ProvisionerConfig import collins.softlayer.{SoftLayerConfig, SoftLayerPlugin} import play.api.Play object SoftLayer { def plugin: Option[SoftLayerPlugin] = pluginEnabled def pluginEnabled: Option[SoftLayerPlugin] = { Play.maybeApplication...
Shopify/collins
app/util/plugins/SoftLayer.scala
Scala
apache-2.0
1,343
/* option.scala */ object OptionBisect { // Part A def findRootOpt(low: Double, high: Double)(f: Double => Double): Option[Double] = ??? // Part B def solveQuad(a: Double): Option[Double] = ??? } /* eof */
darrenjw/scala-course
exercises/option/src/main/scala/option.scala
Scala
gpl-3.0
226
package com.logimethods.smartmeter.generate import com.logimethods.smartmeter.generate._ import org.scalatest._ import java.time._ import Math._ class TemperatureProviderTest extends FunSuite { test("temperature") { val firstDay = LocalDateTime.of(2017, 1, 1, 0, 0) val lastDay = LocalDateTime.of(2017, 12, ...
Logimethods/smart-meter
dockerfile-app_inject/src/test/scala/com/logimethods/smartmeter/generate/TemperatureProviderTest.scala
Scala
mit
765
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs/contributors // License: http://www.gnu.org/licenses/lgpl-3.0.en.html package org.ensime.sexp import scala.collection.immutable.ListMap import shapeless.{ :: => :*:, _ } import shapeless.labelled._ trait DerivedSexpReader[Base, A] { def read...
fommil/ensime-server
s-express/src/main/scala/org/ensime/sexp/DerivedSexpReader.scala
Scala
gpl-3.0
1,846
/* * Channel.scala * (ScalaOSC) * * Copyright (c) 2008-2021 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU Lesser General Public License v2.1+ * * * For further information, please contact Hanns Holger Rutz at * [email protected] */ package de.sciss.osc import java.io.{...
Sciss/ScalaOSC
shared/src/main/scala/de/sciss/osc/Channel.scala
Scala
lgpl-2.1
5,857
package edu.gemini.itc.shared import edu.gemini.spModel.core.Peer import edu.gemini.util.trpc.client.TrpcClient import scala.collection.JavaConversions._ import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future import scala.swing.Color import scalaz._ import Scalaz._ /** The data str...
spakzad/ocs
bundle/edu.gemini.itc.shared/src/main/scala/edu/gemini/itc/shared/ItcService.scala
Scala
bsd-3-clause
8,780
/* Copyright 2009-2021 EPFL, Lausanne */ object Nested16 { def foo(i: BigInt): BigInt = { def rec1(j: BigInt): BigInt = { require(j >= 0) def rec2(k: BigInt): BigInt = { require(j > 0 || j == k) if(k == 0) 0 else rec1(j-1) } rec2(j) } rec1(3) } ensuring(0 == _) ...
epfl-lara/stainless
frontends/benchmarks/verification/valid/MicroTests/Nested16.scala
Scala
apache-2.0
323
package org.openapitools.server.model /** * @param `class` for example: ''null'' * @param links for example: ''null'' * @param jenkinsOrganizationPipeline for example: ''null'' * @param name for example: ''null'' */ final case class GithubOrganization ( `class`: Option[String], links: Option[GithubOrganiz...
cliffano/swaggy-jenkins
clients/scala-akka-http-server/generated/src/main/scala/org/openapitools/server/model/GithubOrganization.scala
Scala
mit
407
package util import java.util.stream.Collectors import org.jsoup.nodes.Element import org.jsoup.select.Elements /** * <pre> * Created on 6/3/15. * </pre> * @author K.Sakamoto */ object JsoupHelper { implicit def elementsToElements4Scala(elements: Elements): Elements4Scala = { new Elements4Scala(elements) ...
ktr-skmt/FelisCatusZero
src/main/scala/util/JsoupHelper.scala
Scala
apache-2.0
550
package pl.touk.nussknacker.openapi import io.swagger.v3.oas.models.media.Schema package object parser { type SwaggerRefSchemas = Map[SwaggerRef, Schema[_]] }
TouK/nussknacker
components/openapi/src/main/scala/pl/touk/nussknacker/openapi/parser/package.scala
Scala
apache-2.0
166
package ohnosequences.stuff /** =Functions on functions= @groupprio basic 0 @groupname basic @groupdesc basic @groupprio ccc 1 @groupname ccc Cartesian-closed structure @groupdesc ccc This methods correspond to the Cartesian-closed structure on [[Scala]]. */ object functions { /** the identit...
ohnosequences/stuff
src/main/scala/functions.scala
Scala
agpl-3.0
939
/* * Copyright (c) 2013-2015 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 is available at * http://www.opensource.org/licenses/apache2.0.php. ...
drackaer/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/index/QueryFilterSplitterTest.scala
Scala
apache-2.0
22,999
/* * Copyright (c) 2013-2014 Erik van Oosten * * 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 ...
scullxbones/metrics-scala
src/test/scala/nl/grons/metrics/scala/MetricNameSpec.scala
Scala
apache-2.0
2,453
package com.eharmony.aloha.semantics.compiled.plugin.proto.codegen object MapType extends Enumeration { type MapType = Value val MAP = Value("map") val FLAT_MAP = Value("flatMap") val NONE = Value }
eHarmony/aloha
aloha-io-proto/src/main/scala/com/eharmony/aloha/semantics/compiled/plugin/proto/codegen/MapType.scala
Scala
mit
216
/* * Copyright 2017 TabMo http://tabmo.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 ...
tabmo/parquet-avro-shapeless
src/main/scala/io/tabmo/avro/AvroEncoders.scala
Scala
apache-2.0
3,214
package com.microsoft.awt.directives import com.microsoft.awt.components.{EmoticonSupport, SessionFactory} import org.scalajs.angularjs.Directive._ import org.scalajs.angularjs.sanitize.Sce import org.scalajs.angularjs.{Attributes, Directive, JQLite, Scope, injected} import org.scalajs.nodejs.util.ScalaJsHelper._ impo...
ldaniels528/awt
app-angularjs/src/main/scala/com/microsoft/awt/directives/CensorableDirective.scala
Scala
apache-2.0
2,464
package bound import scalaz._ import Scalaz._ /** * A value of type `Scope[B,F,A]` is an `F` expression with bound variables in `B` * and free variables in `A`. */ abstract class Scope[B,F[_],A] { def unscope: F[Var[B,F[A]]] def map[C](f: A => C)(implicit M: Functor[F]): Scope[B,F,C] = Scope(unscope map (...
Chattered/scala-bound
core/src/main/scala/bound/Scope.scala
Scala
mit
5,464
package org.scalaide.ui.internal.completion import org.scalaide.core.completion.ScalaCompletions import org.eclipse.jface.text.contentassist.ICompletionProposal import org.eclipse.jface.text.contentassist.IContextInformation import org.eclipse.core.runtime.IProgressMonitor import org.eclipse.jdt.ui.text.java.IJavaComp...
stephenh/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/ui/internal/completion/ScalaCompletionProposalComputer.scala
Scala
bsd-3-clause
2,092
package com.tribbloids.spookystuff.testutils /** * Created by peng on 17/05/16. */ trait LocalURIDocsFixture extends LocalPathDocsFixture { override def HTML_URL = "file://" + super.HTML_URL override def JSON_URL = "file://" + super.JSON_URL override def PNG_URL = "file://" + super.PNG_URL override def PD...
tribbloid/spookystuff
core/src/test/scala/com/tribbloids/spookystuff/testutils/LocalURIDocsFixture.scala
Scala
apache-2.0
571
package org.jetbrains.plugins.scala package lang package psi package impl package base package literals import java.lang import java.lang.{Float => JFloat} import com.intellij.lang.ASTNode import com.intellij.openapi.project.Project import com.intellij.psi.util.PsiLiteralUtil import org.jetbrains.plugins.scala.lang.p...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/base/literals/ScFloatLiteralImpl.scala
Scala
apache-2.0
1,327
package org.pfcoperez.dailyalgorithm.datastructures.graphs.undirected object labeled { case class Edge[L, Node: Ordering, W](label: L, a: Node, b: Node, weight: W) extends Link[Node, W] { override val nodeOrdering = implicitly[Ordering[Node]] override def key: Any = label } object Edge { def apply[...
pfcoperez/algorithmaday
src/main/scala/org/pfcoperez/dailyalgorithm/datastructures/graphs/undirected/labeledUndirectedGraph.scala
Scala
gpl-3.0
3,659
class Test { def res(x: quoted.Expr[Int])(using quoted.Reflection): quoted.Expr[Int] = x match { // error case '{ 1 + $b } => // error: Type must be fully defined. Consider annotating the splice using a type ascription: (${b}: XYZ). b // error: Not found: b } }
dotty-staging/dotty
tests/neg-macros/i6324.scala
Scala
apache-2.0
275
package us.feliscat.ir.fulltext.indri import java.nio.charset.{CodingErrorAction, StandardCharsets} import java.nio.file.Path import us.feliscat.text.StringNone import us.feliscat.util.LibrariesConfig import us.feliscat.util.process._ import scala.collection.mutable.ListBuffer import scala.concurrent.duration._ impo...
ktr-skmt/FelisCatusZero-multilingual
libraries/src/main/scala/us/feliscat/ir/fulltext/indri/IndriIndexer.scala
Scala
apache-2.0
1,140
package com.scalaAsm.x86 package Instructions package General // Description: Store String // Category: general/datamovstring trait STOSD extends InstructionDefinition { val mnemonic = "STOSD" } object STOSD extends ZeroOperands[STOSD] with STOSDImpl trait STOSDImpl extends STOSD { implicit object _0 extends No...
bdwashbu/scala-x86-inst
src/main/scala/com/scalaAsm/x86/Instructions/General/STOSD.scala
Scala
apache-2.0
410
/* * 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-workbench-outdated/src/main/scala/de/fuberlin/wiwiss/silk/workbench/lift/comet/PopulationContent.scala
Scala
apache-2.0
6,410
/* * Copyright 2014-2022 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Netflix/atlas
atlas-core/src/main/scala/com/netflix/atlas/core/validation/NameValueLengthRule.scala
Scala
apache-2.0
1,523
package ranking.common import org.scalatest.FunSuite class RankingElementSuite extends FunSuite { test("ranking ids are unique") { val ids = RankingType.values.flatMap { typ => typ.rankings.map(_.id) } assert(ids.distinct.length === ids.length) } }
b-wind/MyFleetGirls
server/test/ranking/common/RankingElementSuite.scala
Scala
mit
273
package crakken.actor import akka.actor._ import akka.event._ import scala.concurrent.duration._ import akka.util.Timeout import scala.reflect._ import crakken.data.repository._ import crakken.actor.Testing.Processing import crakken.actor.Testing.GetState import crakken.actor.Testing.Idle import scala.u...
CrakkenCrawler/crakken
app/crakken/actor/CrawlRequestActor.scala
Scala
apache-2.0
2,408
package persistence_fsm import actors.{DisplayOrderActor, ProductQuantityActor} import akka.actor.{ActorRef, ActorSystem} import akka.persistence.fsm.PersistentFSM import akka.testkit.{ImplicitSender, TestKit, TestKitBase} import db.populators.Seeder import domain.models.{DeliveryMethod, PaymentMethod} import domai...
kkrzys/eShop
eShop-core/src/test/scala/persistence_fsm/OrderingProcessFSMTest.scala
Scala
apache-2.0
3,317
package at.logic.gapt.provers.veriT import at.logic.gapt.algorithms.rewriting.TermReplacement import at.logic.gapt.formats.veriT._ import at.logic.gapt.proofs.HOLSequent import at.logic.gapt.proofs.expansionTrees._ import at.logic.gapt.utils.traits.ExternalProgram import at.logic.gapt.utils.runProcess import java.io._...
loewenheim/gapt
src/main/scala/at/logic/gapt/provers/veriT/VeriT.scala
Scala
gpl-3.0
2,753
/* * 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 ...
wangmiao1981/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/WriteToDataSourceV2Exec.scala
Scala
apache-2.0
18,441
package io.github.tailhq.dynaml.probability.distributions import breeze.stats.distributions._ /** * Univariate Truncated Gaussian Distribution * * @param mu The mean of the base gaussian. * @param sigma Std Deviation of the base gaussian. * @param a Lower limit of truncation. * @param b Upper limit of tru...
mandar2812/DynaML
dynaml-core/src/main/scala/io/github/tailhq/dynaml/probability/distributions/TruncatedGaussian.scala
Scala
apache-2.0
2,009
package edu.knowitall.cluewebextractor import de.l3s.boilerpipe.extractors import edu.washington.cs.knowitall.tool.sentence.OpenNlpSentencer import edu.washington.cs.knowitall.common.Timing import edu.washington.cs.knowitall.common.Resource import scala.collection.JavaConverters._ import org.slf4j.Logger import org.sl...
xdavidjung/cluewebextractor
src/main/scala/edu/knowitall/cluewebextractor/CluewebExtractorMain.scala
Scala
apache-2.0
9,717
/* * #%L * vaadinutil * %% * Copyright (C) 2014 KangWoo, Lee * %% * 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 re...
imcharsi/vaadinutil
src/main/scala/com/github/imcharsi/vaadin/vaadinutil/converter/OptionDateConverter.scala
Scala
apache-2.0
2,528
package models /** * Created by alper on 26/11/14. */ case class LoginCombination(pin:String,pwd:String, fp:String, card:String, face:String) object LoginCombination{ def fromParser( pin:String = "", pwd:String = "", fp:String = "", card:St...
ZKTecoEu/ZKRestApi
ZKRestServer/app/models/LoginCombination.scala
Scala
mit
506
package controllers import javax.inject.Inject import actors.{ContainersActor, CreateContainer, Port} import akka.actor.ActorSystem import play.api.Mode import play.api.Play.current import play.api.libs.json._ import play.api.libs.ws.WSClient import play.api.mvc.{Action, Controller, WebSocket} import play.api.mvc.Web...
snigle/FrontDockerOrchestrator
PlayProject/app/controllers/ContainersController.scala
Scala
mit
1,974
package nz.wicker.autoencoder.math.structure import math._ /** * Vector space structure with `Double` as field, * for everything that looks like Real^n for some * natural n. * * We are aware of the fact that Real numbers is * not the only field, and we are also aware that * scalar product structure does not n...
joergwicker/autoencoder
src/main/scala/nz/wicker/autoencoder/math/structure/VectorSpace.scala
Scala
gpl-3.0
826
package pl.touk.nussknacker.ui.api import akka.http.scaladsl.server.Directive1 import pl.touk.nussknacker.engine.api.process.ProcessName import pl.touk.nussknacker.restmodel.process.{ProcessIdWithName, ProcessIdWithNameAndCategory} import pl.touk.nussknacker.restmodel.processdetails.{BaseProcessDetails, ProcessShapeFe...
TouK/nussknacker
ui/server/src/main/scala/pl/touk/nussknacker/ui/api/ProcessDirectives.scala
Scala
apache-2.0
2,185
package drx.interface import java.util.concurrent.ThreadLocalRandom import VarMap.mapmapOps import drx.concreteplatform import drx.interface.DSL.{Owner, BagVar, Val, Var} import scala.collection.generic.CanBuildFrom import scala.collection.mutable class BagBuilder[X](private val underlying: mutable.Map[X, Int] = mu...
drcicero/drx
shared/src/main/scala/drx/interface/Table.scala
Scala
mit
6,685
package org.langmeta.internal package semanticdb package vfs import java.io.File import java.io.FileOutputStream import org.langmeta.io._ import org.langmeta.internal.semanticdb.{vfs => v} import org.langmeta.internal.semanticdb.{schema => s} object Database { def load(classpath: Classpath): v.Database = { val ...
DavidDudson/scalameta
langmeta/langmeta/shared/src/main/scala/org/langmeta/semanticdb/internal/vfs/Database.scala
Scala
bsd-3-clause
1,023
package com.blinkbox.books.auth import com.blinkbox.security.jwt.{InvalidTokenException, UnsupportedTokenException, TokenDecoder} import com.blinkbox.security.jwt.encryption.{RSA_OAEP, A128GCM, EncryptionMethod} import com.blinkbox.security.jwt.signatures.{ES256, SignatureAlgorithm} import java.security._ import java....
blinkboxbooks/common-spray-auth.scala
src/main/scala/com/blinkbox/books/auth/ZuulTokenDecoder.scala
Scala
mit
3,012
package scala.meta package semantic import org.scalameta.adt._ import org.scalameta.annotations._ import org.scalameta.invariants._ import org.scalameta.unreachable import scala.{Seq => _} import scala.annotation.compileTimeOnly import scala.collection.immutable.Seq import scala.reflect.{ClassTag, classTag} import sca...
mdemarne/scalameta
scalameta/src/main/scala/scala/meta/semantic/Api.scala
Scala
bsd-3-clause
39,404
/** * Copyright 2015 Thomson Reuters * * 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 ag...
bryaakov/CM-Well
server/cmwell-irw/src/main/scala/cmwell/irw/IRWServiceNativeImpl2.scala
Scala
apache-2.0
32,627
/* * Copyright 2015 Webtrends (http://www.webtrends.com) * * See the LICENCE.txt file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
Webtrends/wookiee-cache
src/main/scala/com/webtrends/harness/component/cache/Cacheable.scala
Scala
apache-2.0
8,200
/* * 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
core/src/main/scala/org/apache/gearpump/cluster/main/Master.scala
Scala
apache-2.0
8,462
package ru.wordmetrix.webcrawler import org.scalatest.{ BeforeAndAfterAll, Matchers, WordSpecLike } import GMLStorage.{ GMLStorageEstimator, GMLStorageSeed } import akka.actor.ActorSystem import akka.testkit.{ DefaultTimeout, ImplicitSender, TestKit, TestProbe } import ru.wordmetrix.utils.CFG import ru.wordmetrix.vect...
electricmind/webcrawler
src/test/scala/ru/wordmetrix/webcrawler/TestLinkedVectorsStorage.scala
Scala
apache-2.0
2,890
package incognito.anonymization.redistribution; //package uis.cipsi.incognito.anonymization.redistribution // //import uis.cipsi.incognito.informationLoss.InformationLoss //import scala.collection.mutable.ArrayBuffer //import uis.cipsi.incognito.rdd.Data //import org.apache.spark.broadcast.Broadcast //import org.apache...
achak1987/SparkAnonymizationToolkit
src/main/scala/incognito/archive/InitializeCenters.scala
Scala
apache-2.0
6,950
package sparklyr class ClassUtils { def getClassLoader: ClassLoader = { Option(Thread.currentThread().getContextClassLoader).getOrElse(getClass.getClassLoader) } def classForName(className: String): Class[_] = { Class.forName(className, true, getClassLoader) } def classExists(className: String): Bo...
rstudio/sparklyr
java/spark-1.6.0/classutils.scala
Scala
apache-2.0
453
// Copyright: 2010 - 2016 https://github.com/ensime/ensime-server/graphs // Licence: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.core.javac import akka.event.slf4j.SLF4JLogging import com.sun.source.tree.{ IdentifierTree, Tree } import com.sun.source.util.TreePath import javax.lang.model.`type`.{ De...
d1egoaz/ensime-sbt
src/sbt-test/sbt-ensime/ensime-server/core/src/main/scala/org/ensime/core/javac/Helpers.scala
Scala
apache-2.0
3,649
/* * Copyright (C) 2016-2020 Lightbend Inc. <https://www.lightbend.com> */ package akka.persistence.cassandra.journal import akka.actor.{ ExtendedActorSystem, Props } import akka.persistence.RecoveryCompleted import akka.persistence.cassandra.{ CassandraLifecycle, CassandraSpec, Persister } import akka.serializatio...
chbatey/akka-persistence-cassandra
core/src/test/scala/akka/persistence/cassandra/journal/CassandraSerializationSpec.scala
Scala
apache-2.0
2,579
/* * Copyright 2017 Datamountaineer. * * 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...
datamountaineer/stream-reactor
kafka-connect-redis/src/test/scala/com/datamountaineer/streamreactor/connect/redis/sink/writer/RedisInsertSortedSetTest.scala
Scala
apache-2.0
3,796
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/nodes/physical/stream/StreamExecExchange.scala
Scala
apache-2.0
4,597
/* * Copyright © 2015 Reactific Software LLC. All Rights Reserved. * * 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...
reactific/RxMongo
messages/src/main/scala/rxmongo/messages/AuthMechanism.scala
Scala
mit
1,918