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 models.db import com.ponkotuy.tool.DiffCalc import scalikejdbc._ import com.ponkotuy.data /** * * @param instant : Instant Construction * @param develop : Development Material * @param revamping : Revamping(Upgrade) Material * @author ponkotuy * Date: 14/02/19. */ case class Material( id: Long, mem...
nekoworkshop/MyFleetGirls
server/app/models/db/Material.scala
Scala
mit
3,231
/* * 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 ...
hvanhovell/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/PlannerSuite.scala
Scala
apache-2.0
53,116
package io.questions.model.questionnaire import java.time._ import io.questions.QuestionsSpec import io.questions.model.questionnaire.PrimitiveAnswer.{ DateTimeAnswer, EnumerationAnswer, StringAnswer } import org.scalacheck.Gen class PrimitiveAnswerSpec extends QuestionsSpec { "valueEquals" - { "answers equal...
channingwalton/qanda
questionnaire/src/test/scala/io/questions/model/questionnaire/PrimitiveAnswerSpec.scala
Scala
mit
8,144
// // Copyright 2013, Martin Pokorny <[email protected]> // // This Source Code Form is subject to the terms of the Mozilla Public License, // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. // package org.truffulatree.scampi2 import org.brid...
mpokorny/scampi
src/main/scala/org/truffulatree/scampi2/Errors.scala
Scala
mpl-2.0
2,245
/** * Copyright 2013 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 agreed to i...
srvaroa/RxJava
language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Observable.scala
Scala
apache-2.0
231,784
/* * 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 ...
mahak/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala
Scala
apache-2.0
41,110
/* * Extended.scala * Extended values, which could also be Star (unspecified). * * Created By: Avi Pfeffer ([email protected]) * Creation Date: Dec 27, 2013 * * Copyright 2013 Avrom J. Pfeffer and Charles River Analytics, Inc. * See http://www.cra.com or email [email protected] for information. * * See ...
jyuhuan/figaro
Figaro/src/main/scala/com/cra/figaro/algorithm/lazyfactored/Extended.scala
Scala
bsd-3-clause
1,519
/* * Copyright 2017 Sumo Logic * * 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...
SumoLogic/epigraph
java/codegen/src/main/scala/ws/epigraph/java/service/projections/req/CodeChunk.scala
Scala
apache-2.0
1,284
package mesosphere.marathon.tasks import scala.util.Random import org.apache.mesos.Protos.Offer import mesosphere.mesos.protos import mesosphere.mesos.protos.{ RangesResource, Resource } import mesosphere.marathon.state.AppDefinition import scala.collection.JavaConverters._ /** * Utility class for checking if the p...
tnachen/marathon
src/main/scala/mesosphere/marathon/tasks/PortsMatcher.scala
Scala
apache-2.0
2,440
package io.eels.yarn object YarnUtils { def jarForClass(klass: Class[_]): String = { val uri = klass.getResource("/" + klass.getName.replace('.', '/') + ".class") assert(uri != null, s"Class $klass not found in resource path") // if the class is inside a jar, the uri will be of the form jar:file:/path/m...
eel-lib/eel
eel-yarn/src/main/scala/io/eels/yarn/YarnUtils.scala
Scala
mit
546
package com.sksamuel.scapegoat.inspections import com.sksamuel.scapegoat.{Levels, Inspection, Reporter} import scala.reflect.runtime._ import scala.reflect.runtime.universe._ /** @author Stephen Samuel */ class ComparingFloatingPointTypes extends Inspection { override def traverser(reporter: Reporter) = new univer...
RichardBradley/scapegoat
src/main/scala/com/sksamuel/scapegoat/inspections/ComparingFloatingPointTypes.scala
Scala
apache-2.0
1,029
package uk.gov.gds.ier.service import uk.gov.gds.ier.validation.constraints.NationalityConstraints import uk.gov.gds.ier.validation.{ErrorMessages, FormKeys} import uk.gov.gds.ier.model.PartialNationality import uk.gov.gds.ier.model.IsoNationality import uk.gov.gds.ier.validation.constants.NationalityConstants._ clas...
alphagov/ier-frontend
app/uk/gov/gds/ier/service/IsoCountryService.scala
Scala
mit
1,243
/** * Copyright 2011 Alberto Franco * * 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...
pmsg863/xmgps
vertx3test/src/main/java/com/xmgps/yfzx/hwb/scala/simpleweb/Server.scala
Scala
apache-2.0
1,170
package dsl.reactive.examples import dsl.reactive._ import dsl.reactive.auxiliary._ import dsl.reactive.optimizations._ import virtualization.lms.common._ trait ConstantFoldingSimple extends ReactiveDSL { def f(x : Rep[Unit]) = { printTime() val v1 = ISignal { 43l } val v2 = ISignal { 43l } val v3 =...
markus1189/OptiReactive
src/main/scala/dsl/reactive/examples/ConstantFolding.scala
Scala
gpl-3.0
1,720
package us.feliscat.text.normalizer.ja import us.feliscat.text.StringOption /** * @author K.Sakamoto * Created on 15/10/28 */ class JapaneseNormalizedCharacter(private var character: Char) { character = JapaneseNormalizer.normalize(StringOption(character.toString)).get.head def toChar: Char = { ch...
ktr-skmt/FelisCatusZero-multilingual
libraries/src/main/scala/us/feliscat/text/normalizer/ja/JapaneseNormalizedCharacter.scala
Scala
apache-2.0
334
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.scaladsl.api import akka.NotUsed import com.lightbend.lagom.internal.api.Execution import com.lightbend.lagom.scaladsl.api.transport.RequestHeader import com.lightbend.lagom.scaladsl.api.transport.ResponseHeader import sca...
lagom/lagom
service/scaladsl/api/src/main/scala/com/lightbend/lagom/scaladsl/api/ServiceCall.scala
Scala
apache-2.0
4,686
package diffson package jsonpatch import jsonpointer._ import cats.implicits._ import org.scalatest._ import org.scalatest.flatspec.AnyFlatSpec import scala.util.Try import scala.language.implicitConversions import org.scalatest.matchers.should.Matchers abstract class TestJsonPatch[Json](implicit Json: Jsony[Json...
gnieh/diffson
testkit/shared/src/main/scala/diffson/TestJsonPatch.scala
Scala
apache-2.0
7,510
/** * 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...
mihbor/kafka
core/src/test/scala/unit/kafka/utils/json/JsonValueTest.scala
Scala
apache-2.0
6,373
/* * GNU GENERAL PUBLIC LICENSE * Version 2, June 1991 * * Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Everyone is permitted to copy and distribute verbatim copies * of this license document, ...
P1tt187/fhs-schedule-generator
app/logic/generator/schedulerater/rater/Rater.scala
Scala
gpl-2.0
19,255
package com.arcusys.valamis.slide.service.export import java.io.{ByteArrayInputStream, File, InputStream} import java.util.regex.Pattern import com.arcusys.valamis.content.service.{PlainTextService, QuestionService} import com.arcusys.valamis.file.service.FileService import com.arcusys.valamis.content.model._ import ...
igor-borisov/valamis
valamis-slide/src/main/scala/com/arcusys/valamis/slide/service/export/SlideSetExportUtils.scala
Scala
gpl-3.0
13,917
package korolev.blazeServer import java.net.InetAddress import java.security.KeyStore import javax.net.ssl.{KeyManagerFactory, SSLContext} import org.http4s.blaze.util.BogusKeystore import scala.concurrent.ExecutionContextExecutorService /** * @author Aleksey Fomkin <[email protected]> */ case class Blaz...
PhilAndrew/JumpMicro
JMSangriaGraphql/src/main/scala/korolev/blazeServer/BlazeServerConfig.scala
Scala
mit
1,258
package pl.arapso.scaffoldings.scala.custom.collections object SeqExample { def main(args: Array[String]): Unit = { sequenceExample } def sequenceExample = { val listWithInts: Seq[Int] = Seq(1, 2, 3, 4, 5, 6, 7) println(listWithInts) val prependZero = 0 +: listWithInts println(prependZe...
arapso-scaffoldings/scala
scala-tutor/custom/src/main/scala/pl/arapso/scaffoldings/scala/custom/collections/SeqExample.scala
Scala
apache-2.0
399
package test abstract class Top { require(1 > 0) def bar(x: Int): Unit = () }
epfl-lara/stainless
frontends/benchmarks/extraction/valid/ClassBody.scala
Scala
apache-2.0
84
package slick.jdbc import java.util.concurrent.Executors import org.reactivestreams.Subscriber import scala.concurrent.{ExecutionContext, Future} import java.util.Properties import java.sql.{Array => _, _} import javax.sql.DataSource import javax.naming.InitialContext import slick.dbio._ import slick.backend.{Data...
adamkozuch/slick
slick/src/main/scala/slick/jdbc/JdbcBackend.scala
Scala
bsd-2-clause
27,238
package uitest import com.jayway.awaitility.scala.AwaitilitySupport import com.softwaremill.bootzooka.common.Utils import org.fest.assertions.Assertions._ import org.scalatest.BeforeAndAfterEach import uitest.pages.RegistrationPage class RegisterUiSpec extends BaseUiSpec with AwaitilitySupport with BeforeAndAfterEach...
umitunal/bootzooka
ui-tests/src/test/scala/uitest/RegisterUiSpec.scala
Scala
apache-2.0
1,381
/* * Copyright (c) 2013 David Soergel <[email protected]> * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package worldmake.storage.casbah import com.mongodb.casbah.Imports._ import com.typesafe.scalalogging.slf4j.Logging import scala.collection.mutable import...
davidsoergel/worldmake
src/main/scala/worldmake/storage/casbah/CasbahStorage.scala
Scala
apache-2.0
1,989
/* * 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
core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionClient.scala
Scala
apache-2.0
18,560
/* * 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 ...
ron8hu/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/python/ExtractPythonUDFs.scala
Scala
apache-2.0
8,475
package org.qirx.littlespec.sbt import scala.concurrent.duration.Duration import scala.concurrent.duration.FiniteDuration import org.qirx.littlespec.fragments.Code import org.qirx.littlespec.fragments.CompoundResult import org.qirx.littlespec.fragments.Failure import org.qirx.littlespec.fragments.Pending import org.q...
EECOLOR/little-spec
sbt/src/main/scala/org/qirx/littlespec/sbt/SbtReporter.scala
Scala
mit
6,391
package org.jetbrains.plugins.scala.lang.macros.expansion import java.awt.event.MouseEvent import java.util import com.intellij.codeHighlighting.Pass import com.intellij.codeInsight.daemon._ import com.intellij.icons.AllIcons import com.intellij.navigation.GotoRelatedItem import com.intellij.notification.Notification...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/macros/expansion/MacroExpansionLineMarkerProvider.scala
Scala
apache-2.0
6,072
package com.twitter.finagle.example.memcachedproxy import com.twitter.finagle.memcached.protocol.text.Memcached import com.twitter.finagle.memcached.protocol.{Command, Response} import com.twitter.finagle.Service import com.twitter.finagle.builder.{Server, ClientBuilder, ServerBuilder} import java.net.{ConnectExceptio...
lysu/finagle
finagle-example/src/main/scala/com/twitter/finagle/example/memcachedproxy/MemcachedProxy.scala
Scala
apache-2.0
1,516
/* * 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 ...
mdespriee/spark
core/src/main/scala/org/apache/spark/SparkConf.scala
Scala
apache-2.0
33,249
package com.github.hobbitvt.election import java.util.concurrent.atomic.AtomicBoolean import com.typesafe.scalalogging.LazyLogging import scala.concurrent.duration.{ Duration, _ } import scala.concurrent.{ ExecutionContext, Future, Promise } import scala.util.{ Failure, Success } /** * Promoter starts leader elect...
hobbit-vt/leader-election
src/main/scala/com/github/hobbitvt/election/ElectionPromoter.scala
Scala
mit
3,895
object Test extends App { println(test1) println(test2) println(test3) println(test4) println(test5) try { println(test6) } catch { case _: Throwable => println("OK") } println(test7) try { println(test8) } catch { case _: Throwable => println("OK") } println(test9) println(test10) println(test11...
scala/scala
test/files/run/exceptions-nest.scala
Scala
apache-2.0
2,697
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
xjrk58/elasticsearch-hadoop
spark/sql-20/src/main/scala/org/elasticsearch/spark/sql/ScalaEsRowRDD.scala
Scala
apache-2.0
2,854
package com.arcusys.valamis.web.servlet.admin import javax.servlet.http.HttpServletRequest import com.arcusys.learn.liferay.util.PortletName import com.arcusys.valamis.lrssupport.lrsEndpoint.model.{AuthType, LrsEndpoint} import com.arcusys.valamis.persistence.common.SlickDBInfo import com.arcusys.valamis.slick.util.S...
arcusys/Valamis
valamis-portlets/src/test/scala/com/arcusys/valamis/web/servlet/admin/AdminServletTest.scala
Scala
gpl-3.0
2,939
/** * Digi-Lib-Test - various test helpers for Digi components * * Copyright (c) 2013-2015 Alexey Aksenov [email protected] * * 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:...
ezh/digi-lib-test
src/test/scala/org/digimead/lib/test/LoggingHelperSpec.scala
Scala
apache-2.0
2,498
package edu.rice.habanero.benchmarks.pingpong import edu.rice.habanero.actors.HabaneroSelector import edu.rice.habanero.benchmarks.pingpong.PingPongConfig.{Message, PingMessage, StartMessage, StopMessage} import edu.rice.habanero.benchmarks.{Benchmark, BenchmarkRunner} import edu.rice.hj.Module0._ import edu.rice.hj.a...
shamsmahmood/savina
src/main/scala/edu/rice/habanero/benchmarks/pingpong/PingPongHabaneroSelectorBenchmark.scala
Scala
gpl-2.0
2,792
/* * Copyright 2013 Maurício Linhares * * Maurício Linhares licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
dripower/postgresql-async
db-async-common/src/main/scala/com/github/mauricio/async/db/pool/AsyncObjectPool.scala
Scala
apache-2.0
3,093
package io.getquill.monad import language.experimental.macros import com.twitter.util.Future import io.getquill.context.Context import com.twitter.util.Try trait TwitterFutureIOMonad extends IOMonad { this: Context[_, _] => type Result[T] = Future[T] def runIO[T](quoted: Quoted[T]): IO[RunQuerySingleResult[T]...
mentegy/quill
quill-finagle-mysql/src/main/scala/io/getquill/monad/TwitterFutureIOMonad.scala
Scala
apache-2.0
1,555
/* ************************************************************************************* * 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/main/scala/com/normation/rudder/repository/RuleRepository.scala
Scala
agpl-3.0
5,418
/* * 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 * distribute...
wvlet/airframe
airframe-scalatest/shared/src/main/scala/wvlet/airframe/AirframeSpec.scala
Scala
apache-2.0
1,974
package com.cave.metrics.data.postgresql import java.sql.{SQLException, Timestamp} import java.util.UUID import com.cave.metrics.data._ import com.cave.metrics.data.postgresql.Tables._ import org.joda.time.DateTime import org.postgresql.util.PSQLException import scala.concurrent._ import scala.slick.driver.PostgresD...
gilt/cave
core/src/main/scala/com/cave/metrics/data/postgresql/PostgresDataManagerImpl.scala
Scala
mit
39,816
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package scaps.api case class Module(organization: String, name: String, revision: String) { def moduleId = s"$o...
scala-search/scaps
api/shared/src/main/scala/scaps/api/Module.scala
Scala
mpl-2.0
482
/* * 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
mllib/src/test/scala/org/apache/spark/ml/param/ParamsSuite.scala
Scala
apache-2.0
12,035
package mesosphere.marathon package core.task.update.impl import java.time.Clock import javax.inject.Inject import akka.event.EventStream import com.google.inject.name.Names import com.typesafe.scalalogging.StrictLogging import mesosphere.marathon.core.condition.Condition import mesosphere.marathon.core.event.Unknown...
Caerostris/marathon
src/main/scala/mesosphere/marathon/core/task/update/impl/TaskStatusUpdateProcessorImpl.scala
Scala
apache-2.0
4,438
package com.clemble.query import reactivemongo.api.{BSONSerializationPack} import reactivemongo.bson.{BSONDocumentReader, BSONInteger, BSONDocument} import reactivemongo.play.json.ImplicitBSONHandlers._ import com.clemble.query.model._ import play.api.libs.iteratee.Enumerator import play.api.libs.json.{JsObject} imp...
clemble/scala-query-dsl
src/main/scala/com/clemble/query/MongoBSONQueryFactory.scala
Scala
apache-2.0
2,980
package akka.persistence.couchbase import org.apache.commons.codec.binary.Base64 /** * Wraps message bytes to easily support serialization. * * @param bytes of the message. */ case class Message(bytes: Array[Byte]) object Message { def deserialize(s: String): Message = apply(Base64.decodeBase64(s)) def...
Product-Foundry/akka-persistence-couchbase
src/main/scala/akka/persistence/couchbase/Message.scala
Scala
apache-2.0
402
// Copyright: 2010 - 2016 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html // Copyright (c) 2011-2015 ScalaMock Contributors (https://github.com/paulbutcher/ScalaMock/graphs/contributors) // // Permission is hereby granted, free of charge, to any person obtaining a ...
espinhogr/ensime-server
testutil/src/main/scala/org/scalamock/scalatest/AbstractMockFactory.scala
Scala
gpl-3.0
2,476
package pl.touk.nussknacker.engine.management.streaming import pl.touk.nussknacker.engine.build.{ScenarioBuilder, GraphBuilder} import pl.touk.nussknacker.engine.graph.EspProcess import pl.touk.nussknacker.engine.graph.node.SubsequentNode import pl.touk.nussknacker.engine.spel object SampleProcess { import spel.Im...
TouK/nussknacker
engine/flink/management/src/it/scala/pl/touk/nussknacker/engine/management/streaming/SampleProcess.scala
Scala
apache-2.0
1,258
package shopScala.promises import java.lang.Thread.sleep import scala.concurrent.{Future, Promise} import scala.util.{Failure, Success, Try} import scala.concurrent.ExecutionContext.Implicits.global object PromiseSync extends App { def now() = new java.util.Date() def hello = { sleep(5000) "hello" } ...
hermannhueck/reactive-mongo-access
src/main/scala/shopScala/promises/PromiseSync.scala
Scala
apache-2.0
756
package crochet import util.DynamicVariable import javax.servlet.http.{HttpSession, HttpServletResponse, HttpServletRequest} /** * This trait provides the basic dynamic environment for a web API * * @author Xavier Llora * @date Jan 10, 2010 at 2:38:45 PM * */ protected trait CrochetDynamicEnvironment { val...
xllora/Crochet
src/main/scala/CrochetDynamicEnvironment.scala
Scala
bsd-3-clause
1,982
package io.scalajs.nodejs.os import scala.scalajs.js /** * User Information Object * @example {{{ {"uid":501,"gid":20,"username":"ldaniels","homedir":"/Users/ldaniels","shell":"/bin/bash"} }}} */ class UserInfoObject(val uid: Int, val gid: Int, val username: String, val homedir: String, val shell: String) ...
scalajs-io/nodejs
app/common/src/main/scala/io/scalajs/nodejs/os/UserInfoObject.scala
Scala
apache-2.0
339
/** * Copyright (c) 2002-2014, OnPoint Digital, Inc. All rights reserved * * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS...
alexwestphal/timez
src/main/scala/timez/syntax/time/ZonedDateTimeSyntax.scala
Scala
bsd-3-clause
1,292
package services import java.security.MessageDigest import org.apache.commons.codec.binary.Hex /** * Created by unoedx on 17/05/16. */ object Hash { private def md = MessageDigest.getInstance("MD5"); private val HASH_SALT = "sad9834jkfad89gvv3qy1@#%agad4wvaguy8ab5sr46sr8eg435fb4s6e8r3g54btr68h3fd5g4hs8th6sd...
waveinch/ses-transactional
app/services/Hash.scala
Scala
apache-2.0
487
package io.dmitryivanov.tcpfrontman import io.netty.channel._ class TcpProxyBackendHandler(inboundChannel: Channel) extends ChannelInboundHandlerAdapter { import TcpProxyFrontendHandler._ override def channelRead(ctx: ChannelHandlerContext, msg: scala.Any): Unit = { inboundChannel.writeAndFlush(msg).addList...
ajantis/tcp-frontman
src/main/scala/io/dmitryivanov/tcpfrontman/TcpProxyBackendHandler.scala
Scala
apache-2.0
889
package com.crobox.clickhouse.dsl sealed trait FromQuery extends Query with OperationalQuery { override val internalQuery: InternalQuery = InternalQuery(from = Some(this)) val alias: Option[String] val finalized: Boolean } sealed case class InnerFromQuery(innerQuery: OperationalQuery, alias: Option[String] = No...
crobox/clickhouse-scala-client
dsl/src/main/scala/com.crobox.clickhouse/dsl/FromQuery.scala
Scala
lgpl-3.0
578
/* * Copyright 2015 LG CNS. * * 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...
jw0201/scouter
scouter.server/src/scouter/server/netio/service/net/TcpServer.scala
Scala
apache-2.0
2,079
class Plugins(info: sbt.ProjectInfo) extends sbt.PluginDefinition(info) { val codasRepo = "codahale.com" at "http://repo.codahale.com/" val rsync = "com.codahale" % "rsync-sbt" % "0.1.1" }
jamesgolick/sbt-ruby
project/plugins/Plugins.scala
Scala
mit
193
package xyz.sethy.minigame.tasks import org.bukkit.entity.Player import org.bukkit.{Bukkit, ChatColor, GameMode, Location} import org.bukkit.scheduler.BukkitRunnable /** * Created by Seth on 29/04/2017. */ class PreGameTask extends BukkitRunnable { override def run(): Unit = { val online = Bukkit.getOnlin...
McAllisterSoftware/Minigame
src/main/scala/xyz/sethy/minigame/tasks/PreGameTask.scala
Scala
agpl-3.0
982
package sodium abstract class Listener { def unlisten() /** * Combine listeners into one where a single unlisten() invocation will unlisten * both the inputs. */ final def append(two: Listener): Listener = { val one = this new Listener() { override def unlisten() { one.unlisten()...
kevintvh/sodium
scala/src/main/scala/sodium/Listener.scala
Scala
bsd-3-clause
365
/* * 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 ...
Intel-bigdata/OAP
oap-native-sql/core/src/test/scala/org/apache/spark/sql/connector/AlterTableTests.scala
Scala
apache-2.0
40,150
/* * Copyright 2012 Arktekk AS * * 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...
arktekk/scala-atom
src/test/scala/no/arktekk/atom/extension/mediarss/MediaContentSpec.scala
Scala
apache-2.0
1,580
package com.mdataset.service.api.model import com.ecfront.ez.framework.core.helper.TimeHelper import com.ecfront.ez.framework.service.storage.foundation._ import com.ecfront.ez.framework.service.storage.mongo.MongoSecureStorage import com.mdataset.lib.basic.model.MdsCollectStatusDTO import scala.beans.BeanProperty /...
MDataSet/mds
modules/service_api/src/main/scala/com/mdataset/service/api/model/MdsCollectStatusEntity.scala
Scala
apache-2.0
1,480
package com.seanshubin.templater.domain import scala.annotation.tailrec sealed trait SequenceComparisonResult[+T] { def areSame: Boolean def toMultipleLineString: Seq[String] } object SequenceComparisonResult { case object Same extends SequenceComparisonResult[Nothing] { def areSame = true def toMul...
SeanShubin/generate-from-template
domain/src/test/scala/com/seanshubin/templater/domain/SequenceComparison.scala
Scala
unlicense
2,184
/* * Copyright (c) 2015 Mario Pastorelli ([email protected]) * * 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 app...
melrief/casecsv
src/test/scala/casecsv/StringConverterSuite.scala
Scala
apache-2.0
2,798
/* * Copyright 2010 LinkedIn * * 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 w...
jinfei21/kafka
src/kafka/producer/async/QueueClosedException.scala
Scala
apache-2.0
792
/* * 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
sql/hive/src/test/scala/org/apache/spark/sql/hive/online/OnlineSQLSuite.scala
Scala
apache-2.0
17,695
/** * 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...
solidfire/jsvcgen
project/common.scala
Scala
apache-2.0
7,682
/*********************************************************************** * 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 ...
drackaer/geomesa
geomesa-features/geomesa-feature-common/src/main/scala/org/locationtech/geomesa/features/serialization/package.scala
Scala
apache-2.0
805
/* Copyright 2016-17, Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH 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 applicab...
bpn1/ingestion
src/test/scala/de/hpi/ingestion/datalake/DataLakeImportImplementationTest.scala
Scala
apache-2.0
2,854
package net.fluxo.blue.downloader /** * Created with IntelliJ IDEA. * User: Ronald Kurniawan (viper) * Date: 25/12/13 * Time: 9:45 PM * */ class VideoDownloadMonitor extends Runnable { def run() { } }
fluxodesign/FluxoBlue
src/main/scala/net/fluxo/blue/downloader/VideoDownloadMonitor.scala
Scala
lgpl-3.0
212
package com.realizationtime.btdogg.hashessource import akka.actor.{Actor, ActorLogging, ActorRef} import com.realizationtime.btdogg.hashessource.HashesSource.{SpottedHash, Subscribe} import com.realizationtime.btdogg.hashessource.SourcesHub._ class SourcesHub extends Actor with ActorLogging { private var subscribe...
bwrega/btdogg
src/main/scala/com/realizationtime/btdogg/hashessource/SourcesHub.scala
Scala
mit
1,028
package services import controllers.ArrivalGenerator.arrival import drt.shared.PortCode import drt.shared.Terminals.{T1, T2} import drt.shared.api.Arrival import org.specs2.mutable.Specification class CodeSharesSpec extends Specification { import drt.shared.CodeShares._ "Given one flight " + "When we ask f...
UKHomeOffice/drt-scalajs-spa-exploration
server/src/test/scala/services/CodeSharesSpec.scala
Scala
apache-2.0
5,560
package feature import com.twitter.finagle.http.Method.{Get, Post} import com.twitter.finagle.http.Request import com.twitter.finagle.http.Status.{Ok, Unauthorized} import env.{ResponseStatusAndContent, RunningTestEnvironment} import example.{EmailAddress, Id, User, Username} import io.circe.generic.auto._ import io.f...
daviddenton/fintrospect-example-app
src/test/scala/feature/ReportInhabitantsTest.scala
Scala
apache-2.0
1,780
package sandbox import com.typesafe.config.ConfigFactory import akka.actor.ActorSystem import akka.stream.ActorMaterializer import org.apache.kafka.common.serialization.StringDeserializer import org.apache.kafka.common.serialization.StringSerializer import org.scalacheck.Gen import akka.stream.scaladsl.Source import a...
jthompson-hiya/akka-streams-sandbox
src/main/scala/sandbox/NameAggregator.scala
Scala
mit
3,351
package org.apache.spark.sql.cassandra import com.datastax.spark.connector.types.UDTFieldDef import org.apache.spark.Logging import org.apache.spark.sql.cassandra.types.{UUIDType, InetAddressType} import org.apache.spark.sql.types.StructField import org.apache.spark.sql.{types => catalystTypes} import com.datastax.sp...
IMCG/spark-cassandra
spark-cassandra-connector/src/main/scala/org/apache/spark/sql/cassandra/DataTypeConverter.scala
Scala
apache-2.0
2,974
package models.analysis import play.api.libs.json.{JsObject, Json} object Purposes { sealed trait Purpose { self => val id: Int val noPurpose: String val enPurpose: String } val purposes = List( MaterialDetermination, Dating, ProvenanceDetermination, ContructionUnderstanding ) ...
MUSIT-Norway/musit
service_backend/app/models/analysis/Purposes.scala
Scala
gpl-2.0
1,726
package org.dberg.hubot import org.dberg.hubot.models.Message object SpecHelpers { val exception = new Exception("Dumb Exception") //Just a helper method to abstract out the response a //listener generates for our tests //Param is kind of redundanat since its in the body but helps //make this easy and gen...
denen99/hubot-scala
src/test/scala/org/dberg/hubot/SpecHelpers.scala
Scala
apache-2.0
563
package org.http4s package twirl import cats._ import org.http4s.headers.`Content-Type` import org.http4s.MediaType._ import play.twirl.api._ trait TwirlInstances { implicit def htmlContentEncoder[F[_]: Applicative]( implicit charset: Charset = DefaultCharset): EntityEncoder[F, Html] = contentEncoder(`tex...
reactormonk/http4s
twirl/src/main/scala/org/http4s/twirl/TwirlInstances.scala
Scala
apache-2.0
1,300
/* * Copyright (c) 2014 Contributor. All rights reserved. */ package org.scalaide.ui.internal.editor.decorators.implicits import scala.reflect.internal.util.SourceFile import org.scalaide.ui.internal.editor.decorators.BaseSemanticAction import org.eclipse.jface.preference.IPreferenceStore import org.eclipse.jface.te...
andrey-ilinykh/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/ui/internal/editor/decorators/implicits/ImplicitHighlightingPresenter.scala
Scala
bsd-3-clause
4,303
package co.aa8y.datadude.config import org.apache.spark.SparkConf import org.apache.spark.sql.SparkSession case class DumperConfig( sparkConf: SparkConf = new SparkConf(), schema: String = "", table: String = "", outputBaseDir: String = "", outputFormat: String = "json", jdbc: JdbcConfig = JdbcConfig() ) ...
aa8y/data-dude
src/main/scala/co/aa8y/datadude/config/DumperConfig.scala
Scala
gpl-3.0
1,810
package controllers import com.mohiva.play.silhouette.api.Silhouette import model.actuator.{ActuatorRepository, Command} import model.location.LocationRepository import play.api.Logger import play.api.libs.json.Json import play.api.mvc.{Action, AnyContent, Controller} import security.utils.auth.DefaultEnv import scal...
vavravl1/home_center
app/controllers/ActuatorController.scala
Scala
mit
1,280
package V1 import scala.language.implicitConversions /** * Host language: * Language in which the interpreter is implemented. * * Interpreted language: * The language that the interpreter evaluates. * * Metacircular-Interpreter * Host language == Interpreted Language * * Substitution: * To su...
Tooa/interpreters
src/V1/WAEInterp.scala
Scala
apache-2.0
3,367
class A { class G trait B class K[T >: G with B] { def z(t: T) = 1 def z(s: String) = "text" /*start*/z(new G with B)/*end*/ } } //Int
LPTK/intellij-scala
testdata/typeInference/bugs5/CompoundTypeConformance.scala
Scala
apache-2.0
157
package lib import io.flow.delta.config.v0.models.{BuildConfig, BuildConfigUndefinedType, Cluster, Config, ConfigError, ConfigProject, ConfigUndefinedType, EcsBuildConfig, K8sBuildConfig} import io.flow.delta.config.v0.models.json._ import play.api.libs.json.Json import scala.util.{Failure, Success, Try} object Proj...
flowcommerce/delta
api/app/lib/ProjectConfigUtil.scala
Scala
mit
1,201
import com.amazonaws.auth.profile.ProfileCredentialsProvider import com.amazonaws.auth.{AWSCredentialsProviderChain, DefaultAWSCredentialsProviderChain} import com.amazonaws.regions.Regions import com.amazonaws.services.s3.AmazonS3ClientBuilder import com.gu.pandomainauth.PanDomainAuthSettingsRefresher import controlle...
guardian/pan-domain-authentication
pan-domain-auth-example/app/di.scala
Scala
apache-2.0
1,802
package com.github.andr83.parsek.spark.sink import java.util.UUID import com.github.andr83.parsek._ import com.github.andr83.parsek.formatter.FieldFormatter import com.github.andr83.parsek.serde.{SerDe, Serializer, StringSerializer} import com.github.andr83.parsek.spark.util.RDDUtils.{DefaultPartitioner, FieldsPartit...
andr83/parsek
spark/src/main/scala/com/github/andr83/parsek/spark/sink/SequenceFileSink.scala
Scala
mit
3,037
// scalastyle:off /* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Alexander Spoon */ package org.apache.spark.repl import java.net.URL import scala.reflect.io.AbstractFile import scala.tools.nsc._ import scala.tools.nsc.backend.JavaPlatform import scala.tools.nsc.interpreter._ import scal...
aokolnychyi/spark
repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoop.scala
Scala
apache-2.0
39,818
package org.elasticmq.actor.test import akka.actor.{ActorRef, ActorSystem, Props} import org.elasticmq.StrictSQSLimits import org.elasticmq.actor.QueueManagerActor import org.elasticmq.util.MutableNowProvider import org.scalatest.{BeforeAndAfterEach, Suite} trait QueueManagerForEachTest extends BeforeAndAfterEach { ...
adamw/elasticmq
core/src/test/scala/org/elasticmq/actor/test/QueueManagerForEachTest.scala
Scala
apache-2.0
777
/* sbt -- Simple Build Tool * Copyright 2011 Mark Harrah */ package sbt import sbt.util.Logger import java.io.File import sbt.librarymanagement.Resolver import sbt.internal.librarymanagement.{ InlineIvyConfiguration, IvyPaths } object ConsoleProject { def apply(state: State, extra: String, cleanupCommands: Strin...
mdedetrich/sbt
main/src/main/scala/sbt/ConsoleProject.scala
Scala
bsd-3-clause
2,078
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
equella/Equella
Source/Plugins/Core/com.equella.serverbase/scalasrc/com/tle/core/db/tables/Settings.scala
Scala
apache-2.0
950
package io.taig.gandalf.report.syntax import io.taig.gandalf.{ Error, Term } import io.taig.gandalf.report.ops import shapeless.{ HList, Witness } import scala.language.implicitConversions trait term { implicit def termSyntax[N <: String, I, O, A <: HList, E]( term: Term.Aux[N, I, O, A, Error[N, A]] )( i...
Taig/Gandalf
report/src/main/scala/io/taig/gandalf/report/syntax/term.scala
Scala
mit
444
/* * 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 ...
saltstar/spark
core/src/test/scala/org/apache/spark/rdd/PairRDDFunctionsSuite.scala
Scala
apache-2.0
34,535
/* * 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...
scalatest/scalatest
jvm/scalatest-test/src/test/scala/org/scalatest/CatchReporterSpec.scala
Scala
apache-2.0
4,125
package flags import scala.language/*=>scala.language.*/.experimental/*=>scala.language.experimental.*/.macros/*=>scala.language.experimental.macros.*/ package object p/*<=flags.p.package.*/ { private lazy val x/*<=flags.p.package.x.*/ = 1 protected implicit var y/*<=flags.p.package.y().*/: Int/*=>scala.Int#*/ = ...
scalameta/scalameta
tests/jvm/src/test/resources/example/Flags.scala
Scala
bsd-3-clause
2,177
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
goldmedal/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisExternalCatalogSuite.scala
Scala
apache-2.0
3,340
package org.jetbrains.plugins.scala package annotator class ApplicationTestBase_2_11 extends ApplicationTestBase { override protected def supportedIn(version: ScalaVersion): Boolean = version <= LatestScalaVersions.Scala_2_11 } class ApplicationTestBase_2_12 extends ApplicationTestBase { override protected def s...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/annotator/ApplicationTest.scala
Scala
apache-2.0
5,653
package infra.hubs.pubsub import akka.actor._ import scala.concurrent.duration.FiniteDuration import scala.Some import infra.hubs.HubTopic /** * @author alari * @since 12/19/13 */ trait PubSubTopic[T] extends HubTopic[T] { topic: Actor => private var listeners = Set[ActorRef]() private var timeout: Option[C...
alari/play-hubs
module-code/app/infra/hubs/pubsub/PubSubTopic.scala
Scala
mit
2,167
package repositories trait Repository[M, I] { def getOneById(id: I): M }
manuelkiessling/play2-compiletime-cassandra-di
app/repositories/Repository.scala
Scala
mit
76