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 scalaxb.compiler.xsd sealed trait NamespaceKind case object SchemaKind extends NamespaceKind case object XsdTypeKind extends NamespaceKind case object GroupKind extends NamespaceKind case object AttributeGroupKind extends NamespaceKind case class NameKey(kind: NamespaceKind, namespace: Option[String], name: S...
eed3si9n/scalaxb
cli/src/main/scala/scalaxb/compiler/xsd/NameKey.scala
Scala
mit
1,267
package ru.arkoit.finchrich.controller import io.finch._ import org.scalatest.{FlatSpec, Inside, Matchers} class EndpointExtractorSpec extends FlatSpec with Matchers with Fixtures { behavior of "EndpointExtractor" it should "transform controller to an endpoint" in { val cnt = new ComplexController() val ...
akozhemiakin/finchrich
controller/src/test/scala/ru/arkoit/finchrich/controller/EndpointExtractorSpec.scala
Scala
apache-2.0
403
package scala.slick.jdbc import scala.language.higherKinds import scala.collection.generic.CanBuildFrom import java.sql.{ResultSet, Blob, Clob, Date, Time, Timestamp} import java.io.Closeable import scala.slick.util.{ReadAheadIterator, CloseableIterator} /** * A database result positioned at a row and column. */ ab...
nuodb/slick
src/main/scala/scala/slick/jdbc/PositionedResult.scala
Scala
bsd-2-clause
12,463
import sbt.Keys._ import sbt._ /** * This plugins adds Akka snapshot repositories when running a nightly build. */ object AkkaSnapshotRepositories extends AutoPlugin { override def trigger: PluginTrigger = allRequirements // This is also copy/pasted in ScriptedTools for scripted tests to also use the snapshot r...
marcospereira/playframework
project/AkkaSnapshotRepositories.scala
Scala
apache-2.0
876
package io.github.suitougreentea.VariousMinos import io.github.suitougreentea.VariousMinos.game.{HandlerBomb, Game} import org.newdawn.slick.{Graphics, Input, Color} /** * Created by suitougreentea on 14/11/29. */ trait ModeMenuItem { val name: String //val description: String = "" val color: Color val heig...
suitougreentea/VariousMinos2
src/main/scala/io/github/suitougreentea/VariousMinos/MenuItem.scala
Scala
mit
1,265
package net.ceedubs.ficus.readers import com.typesafe.config.ConfigFactory import net.ceedubs.ficus.Spec import com.typesafe.config.ConfigValueType import net.ceedubs.ficus.ConfigSerializerOps._ class ConfigValueReaderSpec extends Spec with ConfigValueReader { def is = s2""" The ConfigValue value reader should ...
ceedubs/ficus
src/test/scala/net/ceedubs/ficus/readers/ConfigValueReaderSpec.scala
Scala
mit
2,127
/* ,i::, :;;;;;;; ;:,,::;. 1ft1;::;1tL t1;::;1, :;::; _____ __ ___ __ fCLff ;:: tfLLC / ___/ / |/ /____ _ _____ / /_ CLft11 :,, i1tffLi \\__ \\ ____ / /|_/ ...
S-Mach/s_mach.explain
explain_json/src/main/scala/s_mach/explain_json/package.scala
Scala
mit
2,872
package com.sk.app.proxmock.application.domain.providers.headers import com.sk.app.proxmock.application.configuration.ConfigurationContext import org.springframework.messaging.Message /** * Created by Szymon on 06.10.2016. */ case class EmptyHeadersProvider() extends HeadersProvider { override def get(context: Co...
szymonkudzia/proxmock
sources/src/main/scala/com/sk/app/proxmock/application/domain/providers/headers/EmptyHeadersProvider.scala
Scala
mit
401
package de.fosd.typechef.typesystem import de.fosd.typechef.conditional._ import de.fosd.typechef.featureexpr.FeatureExprFactory import de.fosd.typechef.featureexpr.FeatureExprFactory._ import de.fosd.typechef.parser.c._ import org.junit.runner.RunWith import org.scalatest.{Matchers, FunSuite} import org.scala...
mbeddr/TypeChef
CTypeChecker/src/test/scala/de/fosd/typechef/typesystem/DeadCodeTest.scala
Scala
lgpl-3.0
1,608
package tu.coreservice.action.way2think import tu.model.knowledge.communication.ShortTermMemory import tu.model.knowledge.{Constant, Probability, KnowledgeURI} import tu.coreservice.action.{Action} import tu.model.knowledge.helper.URIGenerator import tu.model.knowledge.domain.Concept import tu.model.knowledge.narrati...
keskival/2
coreservice.action.way2think/src/main/scala/tu/coreservice/action/way2think/Way2Think.scala
Scala
gpl-3.0
1,337
import sbt._ import sbt.Keys._ object Dependencies { object Netty { private val version = "4.0.27.Final" val all = "io.netty" % "netty-all" % version val epoll = "io.netty" % "netty-transport-native-epoll" % version } private val config = "com.typesafe" % "config" % "1.3.0" val microservice = de...
alexandrnikitin/netty-scala-template
project/Dependencies.scala
Scala
mit
469
// code-examples/TypeLessDoMore/package-example1.scala package com.example.mypkg class MyClass { // ... }
XClouded/t4f-core
scala/src/tmp/TypeLessDoMore/package-example1.scala
Scala
apache-2.0
110
/** * Copyright (C) 2015-2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
vesaakerman/easy-sword2
src/main/scala/nl/knaw/dans/api/sword2/MergeFiles.scala
Scala
apache-2.0
1,554
/* * Code Pulse: A real-time code coverage testing tool. For more information * see http://code-pulse.com * * Copyright (C) 2014 Applied Visions - http://securedecisions.avi.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
secdec/codepulse
codepulse/src/main/scala/com/secdec/codepulse/data/model/slick/SlickH2ProjectDataProvider.scala
Scala
apache-2.0
4,373
package llsm.io.metadata import java.nio.file.{Path, Paths} import java.util.UUID import cats._ import cats.arrow.FunctionK import cats.data.Kleisli import llsm.{BaseSuite, NoInterpolation} import llsm.algebras.{MetadataF, MetadataLow, MetadataLowF} import llsm.interpreters._ class MetadataSuite extends BaseSuite wi...
keithschulze/llsm
tests/src/main/scala/llsm/io/metadata/MetadataSuite.scala
Scala
mit
2,108
package summingbird import sbt._ import Keys._ import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact object SummingbirdBuild extends Build { def withCross(dep: ModuleID) = dep cross CrossVersion.binaryMapped { case "2.9.3" => "...
sengt/summingbird-batch
project/Build.scala
Scala
apache-2.0
8,771
/** * Copyright (C) 2011 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...
wesley1001/orbeon-forms
src/main/scala/org/orbeon/oxf/xforms/analysis/ElementAnalysis.scala
Scala
lgpl-2.1
20,169
/* ,i::, :;;;;;;; ;:,,::;. 1ft1;::;1tL t1;::;1, :;::; _____ __ ___ __ fCLff ;:: tfLLC / ___/ / |/ /____ _ _____ / /_ CLft11 :,, i1tffLi \\__ \\ ____ / /|_/...
S-Mach/s_mach.codetools
codetools/src/main/scala/s_mach/codetools/reflectPrint/ReflectPrintTupleImplicits.scala
Scala
mit
13,650
package geotrellis.geometry import scala.math.{atan, exp, floor, log, sin} package object projection { val earthRadius = 6378137.0 /** * Given geographic coordinates (lng, lat), return web mercator * coordinates (x, y). */ def latLngToWebMercator(lng:Double, lat:Double) = { // TODO: figure out ...
Tjoene/thesis
Case_Programs/geotrellis-0.7.0/src/main/scala/geotrellis/geometry/package.scala
Scala
gpl-2.0
1,306
def getOrElse[B >: A](b: => B): B = this match { case Noone => b case Soome(a) => a }
grzegorzbalcerek/scala-exercises
Optioon/stepOptioonGetOrElse.scala
Scala
bsd-2-clause
90
package models.daos.slick import com.mohiva.play.silhouette.api.LoginInfo import com.mohiva.play.silhouette.impl.daos.DelegableAuthInfoDAO import com.mohiva.play.silhouette.impl.providers.OAuth2Info import play.api.db.slick._ import play.api.libs.iteratee.Enumerator import play.api.libs.ws._ import play.api import sca...
mehdichamouma/session-montpellier
app/models/daos/slick/OAuth2InfoDAOSlick.scala
Scala
apache-2.0
3,613
package com.rasterfoundry.api.maptoken import java.util.UUID import akka.http.scaladsl.server.Route import akka.http.scaladsl.model.StatusCodes import cats.effect.IO import com.rasterfoundry.akkautil.PaginationDirectives import com.rasterfoundry.akkautil.{ Authentication, CommonHandlers, UserErrorHandler } impo...
aaronxsu/raster-foundry
app-backend/api/src/main/scala/maptoken/Routes.scala
Scala
apache-2.0
3,807
package sword.langbook.android.activities import android.app.Activity import android.content.Intent import android.os.Bundle import android.support.v7.widget.{GridLayoutManager, LinearLayoutManager} import sword.langbook.android.{TR, R} import sword.langbook.db.Alphabet object AlphabetDetails { private val classNam...
carlos-sancho-ramirez/android-scala-langbook
src/main/scala/sword/langbook/android/activities/AlphabetDetails.scala
Scala
mit
1,541
/* * Copyright 2014-2021 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...
copperlight/atlas
atlas-core/src/main/scala/com/netflix/atlas/core/util/BoundedPriorityBuffer.scala
Scala
apache-2.0
2,917
/* Copyright 2017 Jo Pol This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it ...
d-bl/GroundForge
src/test/scala/dibl/Permutations.scala
Scala
gpl-3.0
1,671
/* * 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 ...
aosagie/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogVersionsSuite.scala
Scala
apache-2.0
12,446
package actors import akka.actor.{ActorSystem, Actor, Props, ActorRef, PoisonPill} import akka.testkit.TestKit import akka.testkit.ImplicitSender import org.scalatest.{WordSpecLike, Matchers, BeforeAndAfterAll} import cc.mewa.channels.ChannelManagerActor import akka.util.Timeout import akka.testkit.TestProbe import sc...
AnthillTech/mewa
test/actors/ConnectionActorSpec.scala
Scala
bsd-2-clause
5,803
package org.alcaudon.api import java.util.UUID import cats.Semigroup import cats.implicits._ import org.alcaudon.api.DataflowBuilder._ import org.alcaudon.api.DataflowNodeRepresentation.{ ComputationRepresentation, SinkRepresentation, SourceRepresentation, StreamRepresentation } import org.alcaudon.core.sourc...
fcofdez/alcaudon
src/main/scala/org/alcaudon/api/DataflowBuilder.scala
Scala
apache-2.0
3,918
/* * 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...
svn2github/scalatest
src/main/scala/org/scalatest/Matchers.scala
Scala
apache-2.0
375,654
package mot import java.util.concurrent.ConcurrentHashMap import mot.monitoring.Commands import mot.dump.Dumper import scala.collection.JavaConversions._ /** * Mot context. Instances of [[mot.Client]] and [[mot.Server]] need to be associated with a context. * * @param monitoringPort Port to bind the monitoring so...
marianobarrios/mot
src/main/scala/mot/Context.scala
Scala
bsd-2-clause
1,792
package com.felixmilea.vorbit.composition import com.felixmilea.vorbit.utils.Loggable class CommentComposer(private[this] val ngrams: NgramManager) extends Loggable { def this(n: Int, dataset: Int, subset: Int, edition: Int) = { this(NgramManager(n, dataset, subset, edition)) } val n = ngrams.n private...
felixmc/Felix-Milea-Ciobanu-Vorbit
code/com/felixmilea/vorbit/composition/CommentComposer.scala
Scala
mit
951
import org.sbtidea.test.util.AbstractScriptedTestBuild import sbt._ import Keys.libraryDependencies object ScriptedTestBuild extends AbstractScriptedTestBuild("with-integration-tests") { lazy val root = Project("main", file("."), settings = Defaults.defaultSettings ++ scriptedTestSettings ++ Seq( libraryDependen...
mpeltonen/sbt-idea
src/sbt-test/sbt-idea/with-integration-tests/project/Build.scala
Scala
bsd-3-clause
436
package com.seanshubin.uptodate.logic import java.nio.file.Paths import org.scalatest.FunSuite import org.scalatest.easymock.EasyMockSugar class PomFileUpgraderTest extends FunSuite with EasyMockSugar { test("automatically update") { val upgradesForPom1 = Seq( Upgrade("pom-1", "group-1", "artifact-1", "v...
SeanShubin/up-to-date
logic/src/test/scala/com/seanshubin/uptodate/logic/PomFileUpgraderTest.scala
Scala
unlicense
3,327
/** * 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...
logzio/camel
components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/SThrowExceptionTest.scala
Scala
apache-2.0
1,313
/* * Seldon -- open source prediction engine * ======================================= * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * ********************************************************************************************** * * Licensed under the Apache License, Vers...
guiquanz/seldon-server
offline-jobs/spark/src/main/scala/io/seldon/spark/topics/createVWTopicTraining.scala
Scala
apache-2.0
8,032
package com.github.j5ik2o.chatwork.domain case class Organization (organizationId: Int, organizationName: String)
j5ik2o/chatwork-client
src/main/scala/com/github/j5ik2o/chatwork/domain/Organization.scala
Scala
apache-2.0
116
object DisrespectfulOverride { abstract class A { def f(): BigInt = { ??? : BigInt } ensuring(_ > 0) } case class C() extends A { override def f() = 0 } }
epfl-lara/stainless
frontends/benchmarks/verification/invalid/DisrespectfulOverride.scala
Scala
apache-2.0
182
package chandu0101.scalajs.rn.examples.uiexplorer import chandu0101.scalajs.rn import chandu0101.scalajs.rn.components._ import chandu0101.scalajs.rn.examples.uiexplorer.apis._ import chandu0101.scalajs.rn.examples.uiexplorer.components._ import chandu0101.scalajs.rn.examples.uiexplorer.components.navigator.NavigatorE...
chandu0101/scalajs-react-native
examples/src/main/scala/chandu0101/scalajs/rn/examples/uiexplorer/UIExplorerList.scala
Scala
apache-2.0
4,730
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2006-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
sjrd/scala-parser-combinators
src/main/scala/scala/util/parsing/json/Lexer.scala
Scala
bsd-3-clause
3,413
package im.actor.server.api.rpc import akka.actor._ import im.actor.api.rpc.Service final class RpcApiExtension(system: ExtendedActorSystem) extends Extension { private var _services = Seq.empty[Service] private var _chain = buildChain def services = _services def chain = _chain def register(clazz: Class...
EaglesoftZJ/actor-platform
actor-server/actor-rpc-api/src/main/scala/im/actor/server/api/rpc/RpcApiExtension.scala
Scala
agpl-3.0
1,202
package nexus /** * @author Tongfei Chen */ trait IsIntTensorK[T[_], @specialized(Long, Int, Short, Byte) Z] extends RingTensorK[T, Z] { self => type ElementTag[z] = IsInt[z] override type TensorTag[ta] = IsTensor[ta, Z] // TODO val Z: IsInt[Z] def elementType = Z def ground[U]: IsTensor[T[U], Z] = ???...
ctongfei/nexus
tensor/src/main/scala/nexus/IsIntTensorK.scala
Scala
mit
323
package dotty.tools.dottydoc import dotty.tools.dotc.util.SourceFile import dotty.tools.io.{Path, PlainFile} object SourceUtil { /** Create a temporary `.scala` source file with the given content */ def makeTemp(content: String): SourceFile = { val tempFile = java.io.File.createTempFile("dottydoc-test-", ".s...
som-snytt/dotty
doc-tool/test/dotty/tools/dottydoc/SourceUtil.scala
Scala
apache-2.0
518
/* * Copyright 2016 Dennis Vriend * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
prettynatty/akka-persistence-jdbc
src/test/scala/akka/persistence/jdbc/dao/SlickSnapshotDaoTest.scala
Scala
apache-2.0
744
/** * (c) Copyright 2014 WibiData, Inc. * * See the NOTICE 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. * You may obtain a copy of...
kijiproject/kiji-express
kiji-express/src/test/scala/org/kiji/express/InputSourceValidationJob.scala
Scala
apache-2.0
3,346
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.api.libs.concurrent import akka.Done import akka.actor.setup.{ ActorSystemSetup, Setup } import akka.actor.{ CoordinatedShutdown, _ } import akka.stream.{ ActorMaterializer, Materializer } import com.typesafe.config.{ Config, Co...
Shenker93/playframework
framework/src/play/src/main/scala/play/api/libs/concurrent/Akka.scala
Scala
apache-2.0
9,571
package monocle.function import monocle.MonocleSuite import monocle.refined._ import monocle.refined.all._ import shapeless.test.illTyped import eu.timepit.refined.auto._ import scala.collection.immutable.SortedMap class AtExample extends MonocleSuite { test("at creates a Lens from a Map, SortedMap to an optional ...
julien-truffaut/Monocle
example/src/test/scala/monocle/function/AtExample.scala
Scala
mit
2,103
package sbt package mavenint import org.apache.ivy.core.module.id.ModuleRevisionId import org.apache.ivy.core.settings.IvySettings import org.eclipse.aether.artifact.{ DefaultArtifact => AetherArtifact } import org.eclipse.aether.installation.{ InstallRequest => AetherInstallRequest } import org.eclipse.aether.metadat...
dansanduleac/sbt
sbt-maven-resolver/src/main/scala/sbt/mavenint/MavenCacheRepositoryResolver.scala
Scala
bsd-3-clause
3,854
/* * 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/test/scala/org/apache/spark/sql/execution/PlannerSuite.scala
Scala
apache-2.0
18,138
package amora.api import java.io.ByteArrayInputStream import java.io.ByteArrayOutputStream import java.nio.charset.StandardCharsets import org.apache.jena.query.QueryExecutionFactory import org.apache.jena.query.QueryFactory import org.apache.jena.query.QuerySolution import org.apache.jena.query.ResultSetFactory impo...
sschaef/tooling-research
backend/src/main/scala/amora/api/Api.scala
Scala
mit
4,234
package org.nkvoll.javabin.service import akka.actor.{ Actor, ActorLogging } import akka.pattern.pipe import org.elasticsearch.action.index.IndexRequest import org.elasticsearch.client.Client import org.elasticsearch.index.query.QueryBuilders import org.elasticsearch.indices.IndexMissingException import org.nkvoll.jav...
nkvoll/javabin-rest-on-akka
src/main/scala/org/nkvoll/javabin/service/UserService.scala
Scala
mit
4,321
/* * 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 ...
aokolnychyi/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcRelationProvider.scala
Scala
apache-2.0
4,120
package models import scala.xml._ import scala.util.control.Exception._ import scala.util._ import play.api.libs.json._ import play.api.Play.current object WikiRead{ val baseUrl = "http://en.wikipedia.org" case class BirdPage(name: String, sci: String, url: String) def bir...
siddhartha-gadgil/AppyBirdDay
app/models/WikiRead.scala
Scala
mit
2,871
package ee.cone.c4proto object BigDecimalFactory { def apply(scale: Int, bytes: okio.ByteString): BigDecimal = BigDecimal(new java.math.BigDecimal(new java.math.BigInteger(bytes.toByteArray), scale)) def unapply(value: BigDecimal): Option[(Int,okio.ByteString)] = { val byteString = ToByteString(value.bigD...
wregs/c4proto
c4proto-types/src/main/scala/ee/cone/c4proto/BigDecimal.scala
Scala
apache-2.0
707
package com.giyeok.jparser.studio2 import com.giyeok.jparser.ParsingErrors.ParsingError import com.giyeok.jparser.metalang3a.MetaLanguage3.ProcessedGrammar import com.giyeok.jparser.metalang3a.ValuefyExprSimulator import com.giyeok.jparser.nparser.ParseTreeUtil.expectedTermsFrom import com.giyeok.jparser.nparser.Parse...
Joonsoo/moon-parser
visualize/src/main/scala/com/giyeok/jparser/studio2/RightPanel.scala
Scala
mit
8,031
package modelservice.storage import scala.annotation.tailrec import scala.collection.{immutable, mutable} import scala.concurrent.{ExecutionContext, Await, Future} import scala.util.hashing._ /** * Base asset type */ trait MSAsset { def getHash()(implicit ec: ExecutionContext): Future[Int] protected def toBy...
kiip/model-service
src/main/scala/modelservice/storage/MSAsset.scala
Scala
bsd-3-clause
5,637
package scala.build import sbt._ import sbt.Keys.{ artifact, dependencyClasspath, moduleID, resourceManaged } object ScaladocSettings { val webjarResoources = Seq( "org.webjars" % "jquery" % "3.4.1" ) def extractResourcesFromWebjar = Def.task { def isWebjar(s: Attributed[File]): Boolean = s.get(...
martijnhoekstra/scala
project/ScaladocSettings.scala
Scala
apache-2.0
763
package pl.iterators.kebs.macros.enums import enumeratum.EnumEntry import enumeratum.values.ValueEnumEntry import pl.iterators.kebs.macros.MacroUtils abstract class EnumMacroUtils extends MacroUtils { import c.universe._ private val EnumEntry = typeOf[EnumEntry] private val ValueEnumEntry = typeOf[ValueEn...
theiterators/kebs
macro-utils/src/main/scala-2/pl/iterators/kebs/macros/enums/EnumMacroUtils.scala
Scala
mit
664
object Error { def f { case class X(b: Boolean = false) val r = X() } def g = { val x = 0 var y = 1 // no constant type def foo(z: Int = y) = 1 val z = 2 foo() } }
loskutov/intellij-scala
testdata/scalacTests/pos/t4036.scala
Scala
apache-2.0
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"); yo...
noslowerdna/kafka
core/src/test/scala/unit/kafka/server/epoch/LeaderEpochFileCacheTest.scala
Scala
apache-2.0
18,012
/* * 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 ...
apache/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/functions/utils/TableSqlFunction.scala
Scala
apache-2.0
8,814
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not ed...
cliffano/swaggy-jenkins
clients/scala-akka/generated/src/main/scala/org/openapitools/client/model/PipelineBranchesitemlatestRun.scala
Scala
mit
998
package scala.slick.jdbc.meta import scala.slick.jdbc.ResultSetInvoker import scala.slick.session._ /** * A common privilege type which is used by MTablePrivilege and MColumnPrivilege. */ case class MPrivilege(grantor: Option[String], grantee: String, privilege: String, grantable: Option[Boolean]) object MPrivileg...
zefonseca/slick-1.0.0-scala.2.11.1
src/main/scala/scala/slick/jdbc/meta/MPrivilege.scala
Scala
bsd-2-clause
1,394
/* * 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
mllib/src/main/scala/org/apache/spark/ml/functions.scala
Scala
apache-2.0
3,140
package nl.rabobank.oss.rules.dsl.nl.grammar import LoopBerekeningGlossary._ import nl.rabobank.oss.rules.dsl.nl.grammar.meta.BerekeningReferentie class LoopBerekening extends Berekening ( Gegeven(altijd) Bereken simpleLoopResult bevat resultaten van SimpeleLoopElementBerekening over loopInput , Gegeven(alt...
scala-rules/scala-rules
engine/src/test/scala/nl/rabobank/oss/rules/dsl/nl/grammar/LoopBerekening.scala
Scala
mit
1,421
package concrete package heuristic package value import com.typesafe.scalalogging.LazyLogging import scala.util.Random final class RandomValue(rand: Random) extends ValueSelector with LazyLogging { override def toString = "random" def compute(s: MAC, ps: ProblemState): ProblemState = ps override def select(...
concrete-cp/concrete
src/main/scala/concrete/heuristic/value/RandomValue.scala
Scala
lgpl-2.1
596
/* * Copyright (c) <2015-2016>, see CONTRIBUTORS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list...
amanjpro/languages-a-la-carte
arrooj/src/main/scala/symbols/symbols.scala
Scala
bsd-3-clause
3,541
/** * SparklineData, Inc. -- http://www.sparklinedata.com/ * * Scala based Audience Behavior APIs * * Copyright 2014-2015 SparklineData, 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 Lice...
cubefyre/audience-behavior-apis
analytics/src/main/scala/org/sparklinedata/analytics/utils/Utils.scala
Scala
apache-2.0
1,442
package deburnat.transade.gui.north import deburnat.transade.gui.{admins, components} import swing._ import BorderPanel.Position.{Center, East} import components.{HBoxPanel, LButton, TransOptionPane} import TransOptionPane._ import java.io.File import admins.GuiAdmin._ import admins.TemplatesAdmin._ /** * Project ...
deburnatshazem/transade
gui/src/main/scala/deburnat/transade/gui/north/NorthPanel.scala
Scala
apache-2.0
2,656
package scavlink.link.nav import scavlink.coord._ import scavlink.state.{LocationState, State} import scala.concurrent.duration._ /** * Guided mode course that travels through a sequence of waypoints. * Computes distance change with Theil's incomplete method to smooth distance samples. * @author Nick Rossi */ ca...
nickolasrossi/scavlink
src/main/scala/scavlink/link/nav/GotoLocations.scala
Scala
mit
1,996
// // Copyright 2014-2020 Paytronix Systems, 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 ...
paytronix/utils-open
interchange/json/src/main/scala/com/paytronix/utils/interchange/format/json/derive.scala
Scala
apache-2.0
13,031
package com.twitter.finagle.http.filter import com.twitter.conversions.time._ import com.twitter.finagle.http.codec.HttpDtab import com.twitter.finagle.http.{Status, Response, Request} import com.twitter.finagle.{Service, Dtab} import com.twitter.util.{Await, Future} import org.junit.runner.RunWith import org.scalates...
adriancole/finagle
finagle-http/src/test/scala/com/twitter/finagle/http/filter/DtabFilterTest.scala
Scala
apache-2.0
3,510
package gate import akka.actor.Actor import util.Context import util.FutureTransaction._ import model.Mythos._ import org.squeryl.PrimitiveTypeMode._ import model._ import play.api.Logger import scala.concurrent.Future import akka.actor.ActorRef /** * When woken, the Devourer will purge all old history. */ class De...
scott-abernethy/opener-of-the-way
app/gate/Devourer.scala
Scala
gpl-3.0
2,337
/* * Copyright (c) 2012 Michael Rose * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this work except in compliance with the License. * You may obtain a copy of the License in the LICENSE file, or at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
Xorlev/Simon
simon-sinatra-handler/src/main/scala/com/xorlev/simon/handlers/SinatraHandler.scala
Scala
apache-2.0
6,108
class HelloName(name: String) { def hello = println("Hello "+name+"!") override def toString = "HelloName("+name+")" }
grzegorzbalcerek/scala-book-examples
examples/HelloName.scala
Scala
mit
123
package com.spark import org.apache.log4j.{Level, Logger} import org.apache.spark.rdd.RDD import org.apache.spark.{SparkConf, SparkContext} import scala.Tuple2 object AvgFriendsByAge { def main(args: Array[String]): Unit = { Logger.getLogger("org").setLevel(Level.ERROR) val sparkConf = new SparkConf() ...
vikramkb/spark
src/main/scala/com/spark/AvgFriendsByAge.scala
Scala
apache-2.0
1,534
package org.psesd.srx.services.prs import org.mongodb.scala.Document import org.mongodb.scala.bson.BsonValue /** Student Success Link Data Organization Model * * @version 1.0 * @since 1.0 * @author Margarett Ly (iTrellis, LLC) */ object SslOrganization extends SslEntity { def apply(authorizedEntityId: St...
PSESD/srx-services-prs
src/main/scala/org/psesd/srx/services/prs/SslOrganization.scala
Scala
mit
1,350
package leo.modules.calculus import leo.datastructures.Type.BoundType import scala.annotation.tailrec import leo.datastructures.{BFSAlgorithm, NDStream, SearchConfiguration, Subst, Term, Type} import leo.modules.myAssert trait Matching { type UEq = (Term, Term); type UTEq = (Type, Type) type TermSubst = Subst; t...
lex-lex/Leo-III
src/main/scala/leo/modules/calculus/Matching.scala
Scala
bsd-3-clause
37,089
/** * Copyright 2011-2017 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
timve/gatling
gatling-metrics/src/main/scala/io/gatling/metrics/GraphiteDataWriter.scala
Scala
apache-2.0
4,416
package com.sksamuel.elastic4s.requests.searches.aggs import com.sksamuel.elastic4s.requests.script.Script import com.sksamuel.elastic4s.ext.OptionImplicits._ case class StatsAggregation(name: String, field: Option[String] = None, missing: Option[AnyRef] = None,...
sksamuel/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/requests/searches/aggs/StatsAggregation.scala
Scala
apache-2.0
1,144
package org.improving.scalify import Scalify._ import org.eclipse.jdt.core._ import org.eclipse.jdt.core.dom import dom.{ PrimitiveType => PT } // import scalaz.OptionW._ // ***** getDeclaringNode ***** // * <li>package - a <code>PackageDeclaration</code></li> // * <li>class or interface - a <code>TypeDeclaration</cod...
mbana/scalify
src/main/node/Bindings.scala
Scala
isc
11,548
package domala.internal.macros.reflect.mock case class MockNestEntity( id: Int, embedded: MockEmbeddable, )
bakenezumi/domala
core/src/test/scala/domala/internal/macros/reflect/mock/MockNestEntity.scala
Scala
apache-2.0
116
package dotty.tools package runner import java.net.URL import scala.util.control.NonFatal import java.lang.reflect.InvocationTargetException import java.lang.reflect.UndeclaredThrowableException import java.util.concurrent.ExecutionException /** * This is a copy implementation from scala/scala scala.tools.nsc.Common...
dotty-staging/dotty
compiler/src/dotty/tools/runner/ObjectRunner.scala
Scala
apache-2.0
1,617
package org.miszkiewicz.model sealed trait SendGridCredentials case class ApiKey(apiKey: String) extends SendGridCredentials case class UserCredentials(login: String, password: String) extends SendGridCredentials
dmiszkiewicz/sendgrid-scala
src/main/scala/org/miszkiewicz/model/SendGridCredentials.scala
Scala
mit
216
package com.tristanpenman.chordial.core.algorithms import akka.actor.{Actor, ActorLogging, ActorRef, Props, ReceiveTimeout} import akka.util.Timeout import com.tristanpenman.chordial.core.Pointers.{GetSuccessor, GetSuccessorOk} import com.tristanpenman.chordial.core.shared.{Interval, NodeInfo} import scala.concurrent...
tristanpenman/chordial
modules/core/src/main/scala/com/tristanpenman/chordial/core/algorithms/ClosestPrecedingNodeAlgorithm.scala
Scala
bsd-3-clause
3,099
/* * 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 ...
apache/kylin
kylin-spark-project/kylin-spark-query/src/main/scala/org/apache/spark/sql/SparderContextFacade.scala
Scala
apache-2.0
1,625
/* * Scala classfile decoder (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 com....
rememberthemilk/jerkson
src/main/scala/com/codahale/jerkson/util/scalax/rules/scalasig/Type.scala
Scala
mit
1,619
package edu.umass.ciir.kbbridge.kb2text import edu.umass.ciir.kbbridge.util._ import edu.umass.ciir.kbbridge.nlp.TextNormalizer import collection.mutable.ListBuffer import org.lemurproject.galago.core.parse.Document import scala.Some import edu.umass.ciir.kbbridge.data.repr.EntityRepr import scala.collection.JavaConve...
daltonj/KbBridge
src/main/scala/edu/umass/ciir/kbbridge/kb2text/WikiEntityRepr.scala
Scala
apache-2.0
9,952
package exceptions case class ParseException(message: String) extends Throwable
arpanchaudhury/SFD
src/main/scala/exceptions/ParseException.scala
Scala
mit
81
// Copyright (C) 2016 MapRoulette contributors (see CONTRIBUTORS.md). // Licensed under the Apache License, Version 2.0 (see LICENSE). package org.maproulette.models import org.joda.time.DateTime import play.api.libs.json.{DefaultWrites, Json, Reads, Writes} import play.api.libs.json.JodaWrites._ import play.api.libs....
Crashfreak/maproulette2
app/org/maproulette/models/TaskReview.scala
Scala
apache-2.0
1,624
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/amls-frontend
test/controllers/hvd/CashPaymentOverTenThousandEurosControllerSpec.scala
Scala
apache-2.0
7,100
/* * Copyright 2014-2021 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...
brharrington/atlas
atlas-core/src/test/scala/com/netflix/atlas/core/validation/MaxUserTagsRuleSuite.scala
Scala
apache-2.0
1,826
import org.springframework.transaction.support._ import org.springframework.transaction._ import scala.util._ trait TxHelpers { type TxCallback[T] = TransactionStatus => T private def transactionCallback[T](callback: TxCallback[T]): TransactionCallback[T] = new TransactionCallback[T]() { def doInTransaction(s...
orthanner/coreauth
src/main/scala/TxHelpers.scala
Scala
cc0-1.0
528
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.3 * @date Fri Dec 27 15:41:58 EST 2013 * @see LICENSE (MIT style license file). */ package apps.tableau import scalation.model.Modelable import scalation.random.{Exponential, Variate} ...
NBKlepp/fda
scalation_1.3/scalation_models/src/main/scala/apps/tableau/CallCenter.scala
Scala
mit
3,846
package scala.collection.parallel trait Operators[T] { def reduceOperators: List[(T, T) => T] def countPredicates: List[T => Boolean] def forallPredicates: List[T => Boolean] def existsPredicates: List[T => Boolean] def findPredicates: List[T => Boolean] def mapFunctions: List[T => T] def partialMapFu...
shimib/scala
test/scalacheck/scala/collection/parallel/Operators.scala
Scala
bsd-3-clause
1,147
package dao.sitedata import scala.concurrent.Future import javax.inject.Inject import play.api.db.slick.DatabaseConfigProvider import play.api.db.slick.HasDatabaseConfigProvider import play.api.libs.concurrent.Execution.Implicits.defaultContext import slick.driver.JdbcProfile import slick.jdbc.GetResult import models....
tnddn/iv-web
portal/rest-portal/app/dao/sitedata/SiteInfoDetailDao.scala
Scala
apache-2.0
5,465
package japgolly.scalajs.react.core import japgolly.scalajs.react._ import japgolly.scalajs.react.test.TestUtil._ import japgolly.scalajs.react.test.{InferenceHelpers, ReactTestUtils, Simulate} import japgolly.scalajs.react.vdom.ImplicitsFromRaw._ import scala.annotation.nowarn import utest._ @nowarn("cat=deprecation...
japgolly/scalajs-react
tests/src/test/scala/japgolly/scalajs/react/core/ScalaComponentTest.scala
Scala
apache-2.0
15,780
package at.logic.gapt.proofs.lkNew import at.logic.gapt.expr._ import at.logic.gapt.expr.hol.HOLPosition import at.logic.gapt.proofs._ import at.logic.gapt.proofs.lk.base._ import org.specs2.execute.Success import org.specs2.mutable._ /** * Created by sebastian on 8/6/15. */ class LKNewTest extends Specification { ...
loewenheim/gapt
src/test/scala/at/logic/gapt/proofs/lkNew/LKNewTest.scala
Scala
gpl-3.0
42,744
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
andrewor14/iolap
core/src/test/scala/org/apache/spark/deploy/JsonProtocolSuite.scala
Scala
apache-2.0
7,709
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600e/v3/calculations/IncomeCalculator.scala
Scala
apache-2.0
1,061
/* * Copyright 2016 rdbc contributors * * 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...
rdbc-io/rdbc-pgsql
rdbc-pgsql-core/src/main/scala/io/rdbc/pgsql/core/internal/typecodec/sco/ScodecPgInt2Codec.scala
Scala
apache-2.0
907