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 quizleague.web.site.team import scalajs.js import quizleague.web.core.RouteComponent import quizleague.web.core.GridSizeComponentConfig import quizleague.web.site.SideMenu import quizleague.web.site.login.LoginService object TeamsComponent extends RouteComponent with GridSizeComponentConfig { val template...
gumdrop/quizleague-maintain
js/src/main/scala/quizleague/web/site/team/TeamsComponent.scala
Scala
mit
1,677
package quisp.enums /** * @author rodneykinney */ object VAlign { val TOP = top val MIDDLE = middle val BOTTOM = bottom case object top extends VAlign case object middle extends VAlign case object bottom extends VAlign } sealed trait VAlign extends EnumTrait
rodneykinney/quisp
src/main/scala/quisp/enums/VAlign.scala
Scala
apache-2.0
278
package org.jetbrains.plugins.scala package lang package parameterInfo package patternParameterInfo import com.intellij.lang.parameterInfo.ParameterInfoHandlerWithTabActionSupport import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.lang.psi.api.base.patterns.ScPatternArgumentList /** * @author Ale...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/lang/parameterInfo/patternParameterInfo/PatternParameterInfoTestBase.scala
Scala
apache-2.0
733
/* * Copyright 2013 http4s.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
rossabaker/http4s
examples/blaze/src/main/scala/com/example/http4s/blaze/BlazeHttp2Example.scala
Scala
apache-2.0
847
package com.github.mrpowers.spark.daria.sql import utest._ import com.github.mrpowers.spark.fast.tests.DataFrameComparer import com.github.mrpowers.spark.daria.sql.SparkSessionExt._ import org.apache.spark.sql.types.{IntegerType, StringType} object EtlDefinitionTest extends TestSuite with SparkSessionTestWrapper wit...
MrPowers/spark-daria
src/test/scala/com/github/mrpowers/spark/daria/sql/EtlDefinitionTest.scala
Scala
mit
2,781
package cn.changhong.zipkin import java.net.InetSocketAddress import java.util.Random import cn.changhong.core.{NewsModel, IndexNewsOperatorServices} import com.twitter.finagle.builder.ServerBuilder import com.twitter.finagle.stats.DefaultStatsReceiver import com.twitter.finagle.thrift.ThriftServerFramedCodec import ...
guoyang2011/myfinagle
ThriftDemo/src/main/scala/cn/changhong/zipkin/StartEndPointThriftServer.scala
Scala
apache-2.0
1,283
/* * 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 ...
fhueske/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/api/stream/table/stringexpr/TableAggregateStringExpressionTest.scala
Scala
apache-2.0
3,494
package chapter3 sealed trait Tree[+A] case class Leaf[A](value: A) extends Tree[A] case class Empty[A]() extends Tree[A] case class Branch[A](left: Tree[A], right: Tree[A]) extends Tree[A] object Tree { // Add helpers for tree construction }
amolnayak311/functional-programming-in-scala
src/chapter3/Tree.scala
Scala
unlicense
258
/*********************************************************************** * 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-hbase/geomesa-hbase-tools/src/main/scala/org/locationtech/geomesa/hbase/tools/data/HBaseDeleteCatalogCommand.scala
Scala
apache-2.0
1,379
/* * 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 ...
h2oai/sparkling-water
scoring/src/main/scala/ai/h2o/sparkling/ml/params/NullableFloatArrayParam.scala
Scala
apache-2.0
2,654
package glint.models.client.async import akka.actor.ActorRef import breeze.linalg.{DenseVector, Vector} import com.typesafe.config.Config import glint.messages.server.request.PushMatrixLong import glint.messages.server.response.ResponseLong import glint.partitioning.Partitioner import spire.implicits.cfor /** * Asy...
rjagerman/glint
src/main/scala/glint/models/client/async/AsyncBigMatrixLong.scala
Scala
mit
2,057
/* * 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/fset-faststream
app/repositories/schemepreferences/SchemePreferencesRepository.scala
Scala
apache-2.0
3,493
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package detailedtopics.configuration.securityheaders object SecurityHeaders { //#filters import javax.inject.Inject import play.api.http.DefaultHttpFilters import play.filters.headers.SecurityHeadersFilter import play.api.mvc.Ac...
wsargent/playframework
documentation/manual/working/commonGuide/filters/code/SecurityHeaders.scala
Scala
apache-2.0
699
package com.naughtyzombie.sparkle.recipesearch.model /** * Created by pram on 08/11/2015. */ case class Recipe(id: String, name: String, source: String, recipeYield: String, ingredients: List[String], prepTime: String, ...
pram/sparkle
src/main/scala/com/naughtyzombie/sparkle/recipesearch/model/Recipe.scala
Scala
mit
448
package formation.warp10 import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.stream.ActorMaterializer import formation.warp10.data.{MagasinStorage, ProductStorage} import formation.warp10.mock.MockApi import formation.warp10.warp10.{MagasinWarp10, ProductWarp10} import kneelnrise.warp10scala.model...
kneelnrise/formation-warp10
src/main/scala/formation/warp10/Boot.scala
Scala
mit
1,306
/* * 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/dal/model/instance/RegularInstanceDomain.scala
Scala
apache-2.0
4,233
package gv package isi package std.io import java.nio.{ ByteBuffer } import isi.io.{ ByteSink } trait ByteSinkDecorationOps[T] extends Any { def self: T @inline final def write(from: ByteBuffer)(implicit sink: ByteSink[T]): Int = sink writeFrom (self, from) }
mouchtaris/jleon
src/main/scala-2.12/gv/isi/std/io/ByteSinkDecorationOps.scala
Scala
mit
276
package org.jetbrains.plugins.scala package refactoring.changeSignature import java.io.File import com.intellij.openapi.util.io.FileUtilRt import com.intellij.openapi.vfs.CharsetToolkit import com.intellij.psi._ import com.intellij.psi.impl.source.PostprocessReformattingAspect import com.intellij.refactoring.changeSi...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/refactoring/changeSignature/ChangeSignatureTestBase.scala
Scala
apache-2.0
5,915
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package controller.api import com.typesafe.config.{ ConfigFactory, Config } import controllers.KafkaManagerContext import controllers.api.KafkaStateCheck import features.ApplicationFeatures import kaf...
Knewton/kafka-manager
test/controller/api/TestKafkaStateCheck.scala
Scala
apache-2.0
7,820
package com.github.akiomik.ideaAndroidScala import com.intellij.ide.fileTemplates._ import com.intellij.openapi.util.IconLoader import org.jetbrains.plugins.scala.ScalaFileType class AndroidScalaFileTemplateFactory extends FileTemplateGroupDescriptorFactory { val templates = Seq("Activity.scala", "Fragment.scala", ...
akiomik/idea-android-scala
src/com/github/akiomik/ideaAndroidScala/AndroidScalaFileTemplateFactory.scala
Scala
mit
801
/** * Copyright © 2015, eXist-db * 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 of conditio...
adamretter/exist-expath-file-module
src/main/scala/org/exist/xquery/modules/expath/file/ExpathFileModule.scala
Scala
bsd-3-clause
30,837
package edison.search import edison.search.serialization.JsonSerialization.DefaultSerializers._ import edison.search.serialization.{ JsonSerialization, JsonSerializer } import edison.search.tree.Helpers.TreePrettyPrinter import edison.search.tree.IntegerTree import edison.util.SmartSpec class JsonSerializationTest ex...
pawel-wiejacha/edison
core/src/test/scala/edison/search/serialization/JsonSerializationTest.scala
Scala
mit
3,382
package com.wuyuntao.aeneas.tests.views import java.time.OffsetDateTime import java.util.UUID import com.wuyuntao.aeneas.View case class UserById(val id: UUID, val email: String, val lastLoginTime: OffsetDateTime) extends View
wuyuntao/Aeneas
aeneas-core/src/test/scala/com/wuyuntao/aeneas/tests/views/UserById.scala
Scala
apache-2.0
236
object StringReductions extends App { println(io.Source.stdin.getLines().toList.head.distinct) }
PaulNoth/hackerrank
practice/functional_programming/recursion/string_reductions/StringReductions.scala
Scala
mit
99
package net.jcain.net import akka.actor.FSM.{CurrentState, SubscribeTransitionCallBack, Transition} import akka.actor.{ActorSystem, Props} import akka.io.Tcp.Connect import akka.io.{IO, Tcp} import akka.testkit.{ImplicitSender, TestKit, TestProbe} import akka.util.ByteString import java.net.InetSocketAddress import or...
jec/MockSMTP
src/test/scala/net/jcain/net/MockSMTPSpec.scala
Scala
bsd-3-clause
17,986
package com.lucidchart.open.nark.controllers import com.lucidchart.open.nark.request.{AppFlash, AppAction, AuthAction, DashboardAction} import com.lucidchart.open.nark.views import com.lucidchart.open.nark.models.{DashboardTagsModel, DashboardModel, TagConverter} import com.lucidchart.open.nark.models.records.{Dashboa...
lucidsoftware/nark
app/com/lucidchart/open/nark/controllers/DashboardTagsController.scala
Scala
apache-2.0
2,059
package scoverage.macrosupport import scala.reflect.macros.blackbox.Context private object TesterMacro { type TesterContext = Context { type PrefixType = Tester.type } def test(c: TesterContext) = { import c.universe._ q"""println("macro test")""" } }
scoverage/scalac-scoverage-plugin
scalac-scoverage-plugin/src/test/scala-2.11+/scoverage/macrosupport/TesterMacro.scala
Scala
apache-2.0
271
package io.youi.component.support import io.youi.component.Component /** * ThemeComponent is a convenience trait presuming that its companion object is a Theme without a unique selector */ trait ThemedComponent { this: Component => classes += getClass.getSimpleName }
outr/youi
gui/src/main/scala/io/youi/component/support/ThemedComponent.scala
Scala
mit
278
/* Copyright 2009 David Hall, Daniel Ramage 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 writin...
langkilde/epic
src/test/scala/epic/features/PorterStemmerTest.scala
Scala
apache-2.0
1,358
package com.blstream.sbtsearchmavenplugin import java.net.{ URL, URLConnection } import sbt.Logger import scala.util.Try case class Artifact(g: String, a: String, latestVersion: String) trait Search { self: MavenOrgSearcher with QueryCleaner with ResultsParser with ArtifactsPrinter => def search(args: Seq[Strin...
blstream/sbt-search-maven-plugin
src/main/scala/com/blstream/sbtsearchmavenplugin/search.scala
Scala
mit
3,346
/** * Created by tonirilix on 12/18/15. */ /** * NOTE: Scalas's List, scala.List, differs from Java's java.util.List type in that * Scala Lists are always immutable (whereas Java Lists can be mutable). */ // Creating and initializing a list val oneTwoThree = List(1, 2, 3); /** * NOTE: List in Scala beh...
tonirilix/lab_scala
03_NextStepsInScala/src/useList.scala
Scala
mit
1,989
/* * Copyright 2017 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...
VlachJosef/bforms
app/uk/gov/hmrc/bforms/typeclasses/Attribute.scala
Scala
apache-2.0
2,262
package io.mediachain.util import com.orientechnologies.orient.core.id.ORecordId import io.mediachain.Types._ import io.mediachain.XorMatchers import org.specs2.Specification object HashingSpec extends Specification with XorMatchers { def is = s2""" $hashesCanonical - Hashes a Canonical, ignoring the ...
mediachain/L-SPACE
l_space/src/test/scala/io/mediachain/util/HashingSpec.scala
Scala
mit
915
package grpcgateway.server import grpcgateway.handlers.GrpcGatewayHandler import io.netty.bootstrap.ServerBootstrap import io.netty.channel.{ChannelFuture, EventLoopGroup} class GrpcGatewayServer private[server] ( port: Int, bootstrap: ServerBootstrap, masterGroup: EventLoopGroup, slaveGroup: EventLoopGroup, ...
btlines/grpcgateway
runtime/src/main/scala/grpcgateway/server/GrpcGatewayServer.scala
Scala
mit
708
//############################################################################ // Programmation IV - 2002 - Week 02 //############################################################################ object M0 { def gcd(a: Int, b: Int): Int = if (b == 0) a else gcd(b, a % b) def factorial(n: Int): Int = if (n == 0) 1 e...
scala/scala
test/files/run/Course-2002-02.scala
Scala
apache-2.0
16,831
package cc.factorie.app.nlp.ner import java.io._ import cc.factorie.app.nlp.lexicon.{LexiconsProvider, StaticLexicons} import cc.factorie._ import cc.factorie.app.chain.{ChainModel, SegmentEvaluation} import cc.factorie.app.nlp._ import cc.factorie.optimize.{AdaGrad, ParameterAveraging, Trainer} import cc.factorie.u...
patverga/factorie
src/main/scala/cc/factorie/app/nlp/ner/ChainNer.scala
Scala
apache-2.0
18,678
/* * 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/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TimestampFormatter.scala
Scala
apache-2.0
3,855
package reactivemongo.api import scala.concurrent.{ ExecutionContext, Future } import reactivemongo.core.errors.GenericDatabaseException import reactivemongo.api.commands._ import reactivemongo.api.indexes.CollectionIndexesManager /** * A mixin that provides commands about this Collection itself. * * @define au...
ornicar/ReactiveMongo
driver/src/main/scala/api/CollectionMetaCommands.scala
Scala
apache-2.0
5,774
package im.actor.server.session import akka.actor._ import akka.stream.actor.{ ActorPublisher, ActorSubscriber } import akka.stream.scaladsl._ import akka.stream.{ FlowShape, OverflowStrategy } import scodec.bits._ import im.actor.api.rpc.ClientData import im.actor.server.mtproto.protocol._ import im.actor.server.mtp...
jamesbond12/actor-platform
actor-server/actor-session/src/main/scala/im/actor/server/session/SessionStream.scala
Scala
mit
4,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 may ...
ioana-delaney/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/GenerateUnsafeProjection.scala
Scala
apache-2.0
15,235
package model.swagger case class Authorizations(authorizations: Seq[Authorization])
dwyks/log2swagger
app/model/swagger/Authorizations.scala
Scala
mit
84
/* * Copyright 2015 Databricks 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 ...
bit1129/spark-sql-perf
src/main/scala/com/databricks/spark/sql/perf/tpcds/ImpalaKitQueries.scala
Scala
apache-2.0
69,756
package scala.slick.test.memory import org.junit.Test import org.junit.Assert._ import scala.slick.testutil.TestDBs import scala.slick.memory.{DistributedDriver, DistributedBackend} /** Test for the DistributedDriver */ class DistributedQueryingTest { val tdb1 = TestDBs.H2Mem val tdb2 = TestDBs.DerbyMem val dPr...
dvinokurov/slick
slick-testkit/src/test/scala/scala/slick/test/memory/DistributedQueryingTest.scala
Scala
bsd-2-clause
2,433
package twatcher.logics import twatcher.globals.{db, twitter} import twatcher.models._ import twatcher.actors._ import play.api.libs.concurrent.Akka import play.api.libs.concurrent.Execution.Implicits.defaultContext import play.api.Logger import play.api.Play.current import scala.concurrent.Future import scala.concu...
srd7/twatcher
app/logics/BatchLogic.scala
Scala
mit
2,710
/** * _____ _ _ _____ _ * | __| |_ ___|_|___ ___| __|___| |_ _ ___ ___ * |__ | _| _| | | . |__ | . | | | | -_| _| * |_____|_| |_| |_|_|_|_ |_____|___|_|\_/|___|_| * |___| * * File: Stringsolver.scala * Author: Mikaël ...
MikaelMayer/StringSolver
src/main/scala/ch/epfl/lara/synthesis/stringsolver/StringSolver.scala
Scala
gpl-2.0
75,644
import sbt._ import java.io.File import org.apache.commons.io.FileUtils import sbt.Keys._ object RestSeverDemoBuild extends Build { lazy val accTest = config("at") extend Test lazy val unitTest = config("ut") extend Test lazy val systemTest = config("st") extend Test lazy val VMaxRealtimeMonitorProject = Pr...
LeagueForHacker/Rest-Sever-Demo
project/Build.scala
Scala
mit
1,842
/* * bytefrog: a tracing framework for the JVM. For more information * see http://code-pulse.com/bytefrog * * 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/bytefrog-clients
file-api/src/main/scala/com/secdec/bytefrog/fileapi/tracefile/entry/MethodIdEntry.scala
Scala
apache-2.0
2,286
package spinoco.fs2.cassandra.internal import spinoco.fs2.cassandra.CType /** * Created by pach on 11/06/16. */ trait ListColumnInstance[C[_],V] object ListColumnInstance { implicit def seqInstance[V](implicit ev:CType[V]):ListColumnInstance[Seq,V] = new ListColumnInstance[Seq,V] { } implicit def lis...
Spinoco/fs2-cassandra
core/src/main/scala/spinoco/fs2/cassandra/internal/ListColumnInstance.scala
Scala
mit
554
/* * 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 ...
vladisav/ignite
modules/spark/src/main/scala/org/apache/ignite/spark/IgniteDataFrameSettings.scala
Scala
apache-2.0
5,685
package scala.meta.internal import java.io.ByteArrayOutputStream import java.io.InputStream import java.nio.charset.StandardCharsets import java.nio.file.Files import java.util import scala.meta.internal.classpath._ import scala.meta.io.AbsolutePath import scala.tools.asm._ import scala.tools.asm.ClassReader._ import ...
olafurpg/scalameta
semanticdb/metacp/src/main/scala/scala/meta/internal/metacp/package.scala
Scala
bsd-3-clause
3,464
package wakfutcp.protocol sealed trait Message { def id: Short } trait ClientMessage extends Message { def arch: Byte } trait ServerMessage extends Message object ClientMessage { val HeaderSize: Int = 5 } object ServerMessage { val HeaderSize: Int = 4 }
OpenWakfu/wakfutcp
protocol/src/main/scala/wakfutcp/protocol/Message.scala
Scala
mit
267
/** * Intel Intrinsics for Lightweight Modular Staging Framework * https://github.com/ivtoskov/lms-intrinsics * Department of Computer Science, ETH Zurich, Switzerland * __ _ __ _ _ * / /____ ___ _____ (_)____ / /_ _____ (_)____ __...
ivtoskov/lms-intrinsics
src/main/scala/ch/ethz/acl/intrinsics/Utils.scala
Scala
apache-2.0
3,248
/* * 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 ...
lxsmnv/spark
sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
Scala
apache-2.0
27,221
package com.softwaremill.bootzooka.test import com.softwaremill.bootzooka.common.sql.SqlDatabase import com.softwaremill.bootzooka.email.application.{DummyEmailService, EmailTemplatingEngine} import com.softwaremill.bootzooka.user.application.{UserDao, UserService} import com.softwaremill.bootzooka.user.domain.User im...
ldrygala/bootzooka
backend/src/test/scala/com/softwaremill/bootzooka/test/TestHelpersWithDb.scala
Scala
apache-2.0
1,041
package com.github.bruneli.phyqty /* * Copyright 2016 Renaud Bruneliere * * 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 ...
bruneli/phyqty
src/main/scala/com/github/bruneli/phyqty/DecimalMultiplier.scala
Scala
apache-2.0
2,777
/* 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 not use this f...
transcendent-ai-labs/DynaML
dynaml-notebook/src/main/scala/io/github/mandar2812/dynaml/jupyter/DynaMLKernel.scala
Scala
apache-2.0
2,578
package com.datawizards.dmg.metadata import com.datawizards.dmg.annotations.column case class Company( @column(name="companyName") name: String, address: String, industry: String )
mateuszboryn/data-model-generator
src/test/scala/com/datawizards/dmg/metadata/Company.scala
Scala
apache-2.0
191
/** * 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...
brunobuzzi/orbeon-forms
src/main/scala/org/orbeon/oxf/util/XPathCache.scala
Scala
lgpl-2.1
23,660
package chess package format case class UciMove(orig: Pos, dest: Pos, promotion: Option[PromotableRole] = None) { def keys = orig.key + dest.key def uci = keys + promotionString def keysPiotr = orig.piotrStr + dest.piotrStr def piotr = keysPiotr + promotionString def promotionString = promotion.fold("")(_...
psuter/scalachess
src/main/scala/format/UciMove.scala
Scala
mit
1,282
package im.actor.server.api.rpc.service.encryption import im.actor.api.rpc.encryption._ import im.actor.api.rpc._ import im.actor.server.{ ImplicitSessionRegion, ImplicitAuthService, BaseAppSuite } import scala.concurrent.Await import scala.concurrent.duration._ import scala.util.Random final class EncryptionService...
actorapp/actor-platform
actor-server/actor-tests/src/test/scala/im/actor/server/api/rpc/service/encryption/EncryptionServiceSpec.scala
Scala
agpl-3.0
7,306
package org.pico.statsd.impl import java.net.InetSocketAddress import java.nio.ByteBuffer import java.nio.channels.DatagramChannel import org.pico.disposal.std.autoCloseable._ import org.pico.event.{Bus, Sink, SinkSource} import org.pico.statsd.StatsdClientException case class UdpEmitFailed( address: InetSocketA...
pico-works/pico-statsd
pico-statsd/src/main/scala/org/pico/statsd/impl/UdpEmitter.scala
Scala
mit
1,073
/* * Copyright 2018 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...
nicf82/play-ui
src/main/play-26/uk/gov/hmrc/play/config/OptimizelyConfig.scala
Scala
apache-2.0
1,003
package com.wixpress.common.specs2.impostisers import java.lang.invoke.{MethodHandles, MethodType} import java.lang.reflect.{Constructor, Method} /** * Invokes methods as defined in their [[getDeclaringClass]], bypassing any overrides. * This is useful for invoking the actual implementations of non-abstract method...
wix/specs2-jmock
src/main/scala/com/wixpress/common/specs2/impostisers/SpecialMethodInvoker.scala
Scala
bsd-3-clause
2,707
/** * Copyright 2017 https://github.com/sndnv * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
sndnv/noisecluster
vili/app/controllers/System.scala
Scala
apache-2.0
7,058
package demo.components.semanticui import chandu0101.macros.tojs.GhPagesMacros import chandu0101.scalajs.react.components.semanticui._ import demo.components.CodeExample import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ object SuiContainerDemo { val code = GhPagesMacros.exampleSource ...
chandu0101/scalajs-react-components
demo/src/main/scala/demo/components/semanticui/SuiContainerDemo.scala
Scala
apache-2.0
1,613
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
WindCanDie/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogVersionsSuite.scala
Scala
apache-2.0
11,544
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
akopich/spark
sql/core/src/test/scala/org/apache/spark/sql/sources/DataSourceTest.scala
Scala
apache-2.0
3,495
package com.signalcollect import language.higherKinds import org.scalacheck.Arbitrary import org.scalacheck.Arbitrary._ import org.scalacheck.Gen import org.scalacheck.Gen._ import org.scalatest.FlatSpec import org.scalatest.ShouldMatchers import org.scalatest.prop.Checkers import org.scalatest.mock.EasyMockSugar impo...
mageru/signal-collect
src/test/scala/com/signalcollect/VertexSpec.scala
Scala
apache-2.0
2,505
package chana.reactor case object AskView
wandoulabs/chana
src/main/scala/chana/reactor/AskView.scala
Scala
apache-2.0
43
// Generated by <a href="http://scalaxb.org/">scalaxb</a>. package eveapi.xml.account.eve.CharacterAffiliation import scala.concurrent.Future /** usage: val obj = scalaxb.fromXML[eveapi.xml.account.eve.CharacterAffiliation.Foo](node) val document = scalaxb.toXML[eveapi.xml.account.eve.CharacterAffiliation.Foo](obj, ...
scala-eveapi/eveapi
xml/src/main/scala/eveapi/xml/eve/CharacterAffiliation/xmlprotocol.scala
Scala
mit
10,089
// // Copyright 2010-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
validation/src/main/scala/com/paytronix/utils/validation/base.scala
Scala
apache-2.0
14,795
/* * 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 ...
rikima/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercionSuite.scala
Scala
apache-2.0
70,039
package IFDS class BiDiTestHelper { val a = Node("a") val a1 = Node("a1") val a2 = Node("a2") val b = Node("b") val c = Node("c") val cs = Node("cs") val d = Node("d") val e = Node("e") val f = Node("f") val g = Node("g") val h = Node("h") val i = Node("i") val x = Node("x") val y = Node("y...
packlnd/IFDS-RA
src/test/scala/IFDS/BiDiTestHelper.scala
Scala
mit
15,516
package rx.lang.scala.observables import org.junit.Test import org.junit.Assert._ import org.scalatestplus.junit.JUnitSuite import rx.lang.scala.observers.TestSubscriber import rx.lang.scala.{Notification, Observable} class AsyncOnSubscribeTests extends JUnitSuite { @Test def testStateful(): Unit = { val las...
ReactiveX/RxScala
src/test/scala/rx/lang/scala/observables/AsyncOnSubscribeTests.scala
Scala
apache-2.0
2,323
/* * 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-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketSCollectionSyntax.scala
Scala
apache-2.0
3,414
package jellies.client trait MenuButton { def text: String def isVisible: Boolean def isClickable: Boolean def onClick(): Unit } object DummyMenuButton extends MenuButton { def text = ??? def isVisible = false def isClickable = ??? def onClick() = ??? }
zxqfl/jellies
js/src/main/scala/jellies/client/MenuButton.scala
Scala
mit
279
/** * Copyright (C) 2015 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/licenses/LICENSE-2.0...
DANS-KNAW/easy-stage-dataset
lib/src/main/scala/nl.knaw.dans.easy.stage/Settings.scala
Scala
apache-2.0
4,299
package com.codacy.client.stash.client.auth /** scalaj.http Copyright 2010 Jonathan Hoffman Modified by Rodrigo Fernandes (@rtfpessoa) to support OAuth1 with SHA1withRSA Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
codacy/stash-scala-client
src/main/scala/com/codacy/client/stash/client/auth/OAuth1.scala
Scala
apache-2.0
4,675
import scala.annotation.experimental @experimental def x = 2 @experimental class A { def f = x // ok because A is experimental } @experimental class B { def f = x // ok because A is experimental } @experimental object C { def f = x // ok because A is experimental } @experimental class D { def f = { obj...
dotty-staging/dotty
tests/neg-custom-args/no-experimental/experimentalMembers.scala
Scala
apache-2.0
549
/* * Copyright (c) 2015 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, and * you may not use this file except in compliance with the Apache License * Version 2.0. You may obtain a copy of the Apache License Version 2.0 at * http://www.apach...
ClaraVista-IT/snowplow
2-collectors/scala-stream-collector/src/main/scala/com.snowplowanalytics.snowplow.collectors/package.scala
Scala
apache-2.0
1,831
/* * Copyright (c) 2015-2022 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.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.ap...
opencypher/openCypher
tools/tck-inspection/src/main/scala_2.13/org/opencypher/tools/tck/inspection/browser/web/BrowserPages.scala
Scala
apache-2.0
3,964
package org.sgine.ui import com.badlogic.gdx.{Gdx, ApplicationListener} import com.badlogic.gdx.graphics.{FPSLogger, OrthographicCamera, Texture, GL10} import render.{ArrayBuffer, Vertex, TextureCoordinates} object RawTest extends ApplicationListener { lazy val camera = new OrthographicCamera(1024, 768) lazy val ...
Axiometry/sgine
ui/src/test/scala/org/sgine/ui/RawTest.scala
Scala
bsd-3-clause
2,801
/* This file is part of Static Web Gallery (SWG). MathMaster 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. MathMaster is distribute...
orest-d/swg
swg/src/test/scala/eu/lateral/swg/db/DatabaseSuite.scala
Scala
gpl-3.0
2,431
/* * Copyright 2009-2010 LinkedIn, 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 ...
rhavyn/norbert
examples/src/main/scala/com/linkedin/norbert/cluster/NorbertClusterClientMain.scala
Scala
apache-2.0
2,372
/* * 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...
dnvriend/akka-serialization-test
src/main/scala/com/github/dnvriend/serializer/json/JsonSerializer.scala
Scala
apache-2.0
1,580
package com.github.diegopacheco.sandbox.scripts.scala.basic.func object FlatMapFunMain { object Time{ def bench(m:String)(f: => Unit){ val init = System.currentTimeMillis() f val end = System.currentTimeMillis() printf("{%s} execution in %d\\n", m,(end - init)) } } def main(args: Arra...
diegopacheco/scala-playground
scala-playground/src/com/github/diegopacheco/sandbox/scripts/scala/basic/func/FlatMapFun.scala
Scala
unlicense
669
/* * Copyright 2014 Alan Rodas Bonjour * * 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 ...
alanrodas/scaland
cli/src/main/scala/com/alanrodas/scaland/cli/runtime/parameters.scala
Scala
apache-2.0
7,536
package ch.wsl.box.cache.redis import akka.actor.ActorSystem import ch.wsl.box.services.file.{FileCacheKey, FileId, ImageCacheStorage} import com.typesafe.config.{Config, ConfigFactory} import net.ceedubs.ficus.Ficus._ import scredis._ import scredis.protocol.AuthConfig import scala.concurrent.{ExecutionContext, Futu...
Insubric/box
server-cache-redis/src/main/scala/ch/wsl/box/cache/redis/RedisImageCacheStorage.scala
Scala
apache-2.0
1,599
class X(val elem: Int) { def foo(y: String): Int = y.length + elem } object X { implicit class BarDeco(x: X) { def bar: String = "!" } } object Implicits { implicit val impl: X = new X(0) implicit def conv(x: Int): X = new X(x) class Xdecorator(x: X) extends Object { def foo(cond: Boolean): Int...
densh/dotty
tests/pos/implicits1.scala
Scala
bsd-3-clause
923
package org.http4s import cats.effect.Sync import io.circe.{Json, Printer} package object circe extends CirceInstances { override val defaultPrinter: Printer = Printer.noSpaces override def jsonDecoder[F[_]: Sync]: EntityDecoder[F, Json] = CirceInstances.defaultJsonDecoder }
reactormonk/http4s
circe/src/main/scala/org/http4s/circe/package.scala
Scala
apache-2.0
291
package org.scalawiki.wlx import org.scalawiki.dto.Image import org.scalawiki.wlx.dto.{Contest, Monument} import org.scalawiki.wlx.stat.Output import org.specs2.mutable.Specification class GallerySpec extends Specification { val contest = Contest.WLMUkraine(2015) val uploadConfig = contest.uploadConfigs.head v...
intracer/scalawiki
scalawiki-wlx/src/test/scala/org/scalawiki/wlx/GallerySpec.scala
Scala
apache-2.0
2,634
package org.singingwizard.genetics.prographs import scala.annotation.tailrec import org.singingwizard.util.collections.RandomSelection._ import org.singingwizard.util.collections.MetricOperations._ case class InterfacedGraph(inputs: Set[PortOnBlock[_]], outputs: Set[PortOnBlock[_]], graph: Graph) { def interfaceDif...
arthurp/genetic-prographs
prographs/src/org/singingwizard/genetics/prographs/GraphCutting.scala
Scala
gpl-3.0
7,079
package de.kaufhof.pillar import java.util.Date import com.datastax.driver.core.Session import com.datastax.driver.core.querybuilder.QueryBuilder object Migration { def apply(description: String, authoredAt: Date, up: String): Migration = { new IrreversibleMigration(description, authoredAt, up) } def apply...
j-potts/pillar
src/main/scala/de/kaufhof/pillar/Migration.scala
Scala
mit
2,350
package org.openurp.edu.eams.teach.grade.transcript.service.impl import org.beangle.commons.collection.Collections import org.openurp.edu.base.Student import org.openurp.edu.eams.teach.grade.service.CourseGradeProvider import org.openurp.edu.eams.teach.grade.service.impl.GradeFilter import org.openurp.edu.eams.teach....
openurp/edu-eams-webapp
grade/src/main/scala/org/openurp/edu/eams/teach/grade/transcript/service/impl/TranscriptPublishedGradeProvider.scala
Scala
gpl-3.0
1,874
/* * 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 ...
bravo-zhang/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/RowIterator.scala
Scala
apache-2.0
3,170
package net.scalax.ubw.database.test import net.scalax.ubw.core.AtomicPathImpl import net.scalax.ubw.json.operation.{ FDefaultAtomicHelper, FPropertyAtomicHelper } import net.scalax.ubw.mix.helpers.{ Slick2JsonFsnImplicit, SlickCRUDImplicits } import net.scalax.ubw.slick.helpers.{ FJsonAtomicHelper, FStrSelectExt...
scalax/fsn
sample/commonSlick/src/main/scala/Sample05.scala
Scala
mit
2,000
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Aegeaner/spark
core/src/main/scala/org/apache/spark/security/SocketAuthServer.scala
Scala
apache-2.0
3,706
package utils import models.daos.UserDAOImpl import models.services.UserServiceImpl trait UserServiceModule { lazy val userDAO = new UserDAOImpl lazy val userService = new UserServiceImpl(userDAO) }
yzernik/office-ladder
server/app/utils/UserServiceModule.scala
Scala
mit
206
package latis.reader.tsml import scala.collection.immutable.{ Range => _ } import scala.collection.mutable import scala.collection.Searching._ import java.nio.ByteBuffer import java.nio.ByteOrder import java.nio.channels.FileChannel import java.nio.file._ import latis.data.Data import latis.data.seq.DataSeq import l...
dlindhol/LaTiS
src/main/scala/latis/reader/tsml/ColumnarBinaryAdapter2.scala
Scala
epl-1.0
13,063
package com.github.mdr.mash.view.model import com.github.mdr.mash.classes.MashClass import com.github.mdr.mash.functions.MashFunction import com.github.mdr.mash.ns.core.help.{ FieldHelpClass, MethodHelpClass } import com.github.mdr.mash.view.model.TwoDTableModelCreator.isSuitableForTwoDTable import com.github.mdr.mash...
mdr/mash
src/main/scala/com/github/mdr/mash/view/model/DisplayModel.scala
Scala
mit
1,821