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
/* * 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/gmp-frontend
app/models/MemberDetails.scala
Scala
apache-2.0
860
package views.html.timesheet import play.templates._ import play.templates.TemplateMagic._ import play.api.templates._ import play.api.templates.PlayMagic._ import models._ import controllers._ import java.lang._ import java.util._ import scala.collection.JavaConversions._ import scala.collection.JavaConverters._ im...
paperlotus/Time-Trotter
target/scala-2.10/src_managed/main/views/html/timesheet/timesheetTable.template.scala
Scala
apache-2.0
10,583
/* Copyright 2013 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
zirpins/scalding
scalding-core/src/main/scala/com/twitter/scalding/typed/Grouped.scala
Scala
apache-2.0
11,096
package com.twitter.finagle.serverset2 import com.twitter.conversions.time._ import com.twitter.finagle.serverset2.client._ import com.twitter.finagle.zookeeper.ZkInstance import com.twitter.io.Buf import com.twitter.util.{Await, Duration, Promise, Stopwatch, Var} import org.junit.runner.RunWith import org.scalatest.c...
JustinTulloss/finagle
finagle-serversets/src/test/scala/com/twitter/finagle/serverset2/ZooKeeperZkTest.scala
Scala
apache-2.0
4,760
/* * 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...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/CatchReporterProp.scala
Scala
apache-2.0
23,981
package android import java.io.File import com.android.SdkConstants import com.android.builder.core.AndroidBuilder import com.android.ide.common.process.{CachedProcessOutputHandler, ProcessInfoBuilder} import com.android.sdklib.BuildToolInfo import sbt._ import scala.language.postfixOps import scala.xml.{Elem, XML} ...
dant3/android-sdk-plugin
src/dex.scala
Scala
bsd-3-clause
14,473
//package models.v012 // //import org.specs2.mutable.Specification //import models.admin.AdminWeb //import org.specs2.specification.BeforeAfterAll //import models.json.DTOIds //import models.json.DTONames //import play.api.libs.json.Json //import play.api.libs.json.JsValue //import models.persistence.GlobalConfigForDB ...
gennadij/admin
server/test/org/genericConfig/admin/models/dependency/ChangeLog012_3Spec.scala
Scala
apache-2.0
2,323
/** * 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...
ErikKringen/kafka
core/src/main/scala/kafka/utils/ReplicationUtils.scala
Scala
apache-2.0
4,644
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Wed Jul 31 13:54:40 EDT 2013 * @see LICENSE (MIT style license file). */ package scalation.graphalytics.mutable import scala.collection.mutable.{Set => SET} import scala.reflec...
NBKlepp/fda
scalation_1.2/src/main/scala/scalation/graphalytics/mutable/Cycle.scala
Scala
mit
3,154
/* * 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-test/src/test/scala/com/spotify/scio/coders/instances/kryo/JodaSerializerTest.scala
Scala
apache-2.0
2,901
/* * Copyright (C) 2010 Romain Reuillon * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progra...
ISCPIF/PSEExperiments
openmole-src/openmole/core/org.openmole.core.workflow/src/main/scala/org/openmole/core/workflow/sampling/Factor.scala
Scala
agpl-3.0
1,195
/* * 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 ...
vadopolski/ignite
modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/ping/VisorPingCommand.scala
Scala
apache-2.0
6,050
import java.sql.Connection import java.sql.DriverManager import org.sqlite.JDBC object SqliteConnection { def getConnection(dbName: String) = { DriverManager.getConnection("jdbc:sqlite:%s.db".format(dbName)) } }
jeroanan/SunshineRecorder
src/Sqlite/SqliteConnection.scala
Scala
gpl-3.0
224
package tethys.derivation import tethys.commons.LowPriorityInstance import tethys.derivation.impl.derivation.AutoDerivationMacro import tethys.{JsonObjectWriter, JsonReader} import scala.language.experimental.macros trait AutoDerivation { implicit def jsonWriterMaterializer[A]: LowPriorityInstance[JsonObjectWriter...
tethys-json/tethys
modules/macro-derivation/src/main/scala/tethys/derivation/AutoDerivation.scala
Scala
apache-2.0
488
/* * @author Philip Stutz * * Copyright 2013 University of Zurich * * 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 * * U...
danihegglin/DynDCO
src/main/scala/com/signalcollect/util/IntHashMap.scala
Scala
apache-2.0
7,440
package test.se.gigurra.sandbox import org.junit.Test class test_return { /* // Does not compile val f: String => Boolean = { return true } */ @Test def test(): Unit = { val items = List("a", "c") def lambda_return(): Boolean = { items.exists { item => if (item == "c...
GiGurra/sandbox
src/test/scala/se/gigurra/sandbox/test_return.scala
Scala
mit
642
package mesosphere.raml.ir import mesosphere.raml.backend.{PlayReads, camelify, scalaFieldName, underscoreToCamel} import treehugger.forest._ import treehuggerDSL._ case class FieldT( rawName: String, `type`: Type, comments: Seq[String], constraints: Seq[ConstraintT[_]], required: Boolean, def...
mesosphere/marathon
type-generator/src/main/scala/mesosphere/raml/ir/FieldT.scala
Scala
apache-2.0
3,483
package dotty.tools.backend.jvm import org.junit.Test import org.junit.Assert._ import scala.tools.asm.Opcodes._ class ArrayApplyOptTest extends DottyBytecodeTest { import ASMConverters._ @Test def testArrayEmptyGenericApply = { test("Array[String]()", List(Op(ICONST_0), TypeOp(ANEWARRAY, "java/lang/String"...
dotty-staging/dotty
compiler/test/dotty/tools/backend/jvm/ArrayApplyOptTest.scala
Scala
apache-2.0
7,887
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js tools ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2014, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
andreaTP/scala-js
tools/shared/src/main/scala/org/scalajs/core/tools/javascript/Printers.scala
Scala
bsd-3-clause
16,974
package org.igye.learnpl2.models import javafx.beans.property.{IntegerProperty, StringProperty} trait LoadTextModel { val text: StringProperty def loadFromFile(filePath: String) def saveAs(filePath: String) def save() val caretPosition: IntegerProperty val loadedFrom: StringProperty def re...
Igorocky/learnpl2
src/main/scala/org/igye/learnpl2/models/LoadTextModel.scala
Scala
mit
328
/* * Copyright (c) 2018. Fengguo Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 * which accompanies this distribution, and is available at * https://www.apache.org/licenses/LICENSE-2.0 * * Detailed contributors ar...
arguslab/Argus-SAF
jawa/src/main/scala/org/argus/jawa/core/io/Streamable.scala
Scala
apache-2.0
4,640
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
alexandru/monifu
monix-reactive/shared/src/test/scala/monix/reactive/internal/operators/PublishSelectorSuite.scala
Scala
apache-2.0
1,855
package io.iohk.ethereum.faucet import akka.actor.{Actor, ActorLogging, Props} import akka.util.ByteString import io.iohk.ethereum.domain.Address import io.iohk.ethereum.faucet.FaucetHandler.WalletException import io.iohk.ethereum.faucet.FaucetStatus.WalletAvailable import io.iohk.ethereum.faucet.jsonrpc.WalletService...
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/faucet/FaucetHandler.scala
Scala
mit
3,534
package com.sksamuel.elastic4s.search.aggs import com.sksamuel.elastic4s.searches.DateHistogramInterval import com.sksamuel.elastic4s.RefreshPolicy import com.sksamuel.elastic4s.testkit.DockerTests import org.scalatest.{FreeSpec, Matchers} import scala.util.Try class StatsBucketPipelineAggHttpTest extends FreeSpec w...
Tecsisa/elastic4s
elastic4s-tests/src/test/scala/com/sksamuel/elastic4s/search/aggs/StatsBucketPipelineAggHttpTest.scala
Scala
apache-2.0
1,972
// Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache 2.0 license. // Please see LICENSE file in the project root for terms. package com.yahoo.ml.caffe import caffe.Caffe._ import com.yahoo.ml.jcaffe.{CaffeNet, Utils} import org.apache.commons.cli.{BasicParser, CommandLine, Options} import org.apache...
anfeng/CaffeOnSpark
caffe-grid/src/main/scala/com/yahoo/ml/caffe/Config.scala
Scala
apache-2.0
13,632
package com.socrata.soql.parsing import scala.util.parsing.input.Reader import org.scalatest.FunSuite import org.scalatest.MustMatchers import com.socrata.soql.tokens.Token class ParserConsistencyTest extends FunSuite with MustMatchers { val printTimings = false private def timing[T](tag: String)(f: => T): T =...
socrata-platform/soql-reference
soql-standalone-parser/src/test/scala/com/socrata/soql/parsing/ParserConsistencyTest.scala
Scala
apache-2.0
4,150
package skinny.micro.implicits import scala.language.implicitConversions import java.util.Date import skinny.micro.{ MultiParams, Params, SkinnyMicroException } /** * Implicit conversion for MicroParams. */ trait SkinnyMicroParamsImplicits { self: DefaultImplicits => sealed class TypedParams(params: Params)...
xerial/skinny-micro
micro/src/main/scala/skinny/micro/implicits/SkinnyMicroParamsImplicits.scala
Scala
bsd-2-clause
2,694
/* * Copyright (C) 2005, The Beangle Software. * * 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 3 of the License, or * (at your option) any later version. * * This...
beangle/commons
text/src/main/scala/org/beangle/commons/text/i18n/Message.scala
Scala
lgpl-3.0
1,089
/******************************************************************************* * Copyright (c) 2014 Guillaume DUBUISSON DUPLESSIS <guillaume.dubuisson_duplessis@insa-rouen.fr>. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * ...
GuillaumeDD/scala99problems
src/main/scala/logicAndCodes/P47/Logic.scala
Scala
gpl-3.0
709
package org.phenopackets.pxftools.util import java.io.InputStream import scala.collection.JavaConverters._ import org.phenopackets.api.PhenoPacket import org.phenopackets.api.model.association.PhenotypeAssociation import org.phenopackets.api.model.condition.ConditionFrequency import org.phenopackets.api.model.condit...
phenopackets/pxftools
src/main/scala/org/phenopackets/pxftools/util/NoctuaDiseasePhenotypeModelReader.scala
Scala
bsd-3-clause
8,486
/* * Copyright (c) 2014-2018 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
Wogan/monix
monix-reactive/shared/src/test/scala/monix/reactive/internal/builders/StateActionObservableSuite.scala
Scala
apache-2.0
3,051
package com.tbrown.twitterStream trait Config { protected lazy val config = TwitterStreamingConfig def getString(key: String) = config.getString(key) def getInt(key: String) = config.getInt(key) } trait ElasticSearchConfig extends Config { lazy val host = getString("elasticsearch.host") lazy val port = get...
tbrown1979/Tweeper
src/main/scala/config.scala
Scala
mit
769
package dsmoq.services /** * ユーザおよびグループのAccessLevel定数定義体 */ object UserAndGroupAccessLevel { /** * Denyを表すAccessLevelの値 */ val DENY = 0 /** * AllowDownloadを表すAccessLevelの値 */ val ALLOW_DOWNLOAD = 2 /** * オーナー、またはプロバイダを表すAccessLevelの値 */ val OWNER_OR_PROVIDER = 3 }
nkawa/dsmoq
server/apiServer/src/main/scala/dsmoq/services/UserAndGroupAccessLevel.scala
Scala
apache-2.0
389
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
luchy0120/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/nn/GraphSpec.scala
Scala
apache-2.0
57,466
package com.wavesplatform.settings import com.wavesplatform.Version import com.wavesplatform.utils.ScorexLogging /** * System constants here. */ object Constants extends ScorexLogging { val ApplicationName = "waves" val AgentName = s"Waves v${Version.VersionString}" val UnitsInWave = 100000000L val...
wavesplatform/Waves
node/src/main/scala/com/wavesplatform/settings/Constants.scala
Scala
mit
1,147
package com.evojam.mongodb.client.cursor import scala.concurrent.ExecutionContext import scala.language.existentials import com.mongodb.ReadPreference import com.mongodb.async.AsyncBatchCursor import com.mongodb.operation.AsyncReadOperation import org.bson.codecs.Codec import rx.lang.scala.Observable import com.evoj...
evojam/mongodb-driver-scala
src/main/scala/com/evojam/mongodb/client/cursor/OperationCursor.scala
Scala
apache-2.0
1,506
package org.denigma.threejs.extras import org.denigma.threejs.{Vector3, Vector2, Camera} import org.scalajs.dom import scala.scalajs.js import scala.scalajs.js.annotation.JSName @JSName("THREE.TrackballControls") class TrackBallControls( camera:Camera) extends js.Object{ def getMouseOnScreen(clientX:...
waman/threejs-facade
facade/src/main/scala/org/denigma/threejs/extras/TrackBallControls.scala
Scala
mpl-2.0
903
package reopp.common.guardedcommands.dataconnectors import reopp.common.guardedcommands._ import reopp.common.{OptionSol, Utils} import Utils._ import reopp.common.guardedcommands.Var /** * Created with IntelliJ IDEA. * User: jose * Date: 18/07/12 * Time: 11:15 * To change this template use File | Settings | Fil...
joseproenca/ip-constraints
code/src/main/scala/reopp/common/guardedcommands/dataconnectors/GCWriter.scala
Scala
mit
1,470
/* * 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 ...
thesiddharth/norbert
network/src/main/scala/com/linkedin/norbert/network/client/NetworkClient.scala
Scala
apache-2.0
15,445
/* Copyright 2009-2016 EPFL, Lausanne */ import leon.lang._ object Generics2 { abstract class List[T] case class Cons[A](head: A, tail: List[A]) extends List[A] case class Nil[B]() extends List[B] def size[T](l: List[T]): BigInt = (l match { case Nil() => BigInt(0) case Cons(h, t) => 1+size(t) })en...
regb/leon
src/test/resources/regression/verification/purescala/invalid/Generics2.scala
Scala
gpl-3.0
460
/* * 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 ...
chenc10/Spark-PAF
examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionExample.scala
Scala
apache-2.0
6,428
package viewModel import com.thetestpeople.trt.model._ case class TestsSummaryView(configuration: Configuration, testCounts: TestCounts) { val passCount = testCounts.passed val failCount = testCounts.failed val warnCount = testCounts.warning val ignoredCount = testCounts.ignored val totalCount = tes...
thetestpeople/trt
app/viewModel/TestsSummaryView.scala
Scala
mit
631
/* * Copyright 2014–2017 SlamData 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...
drostron/quasar
repl/src/main/scala/quasar/repl/package.scala
Scala
apache-2.0
741
/* * The MIT License (MIT) * * Copyright (c) 2014 MineFormers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, ...
MineFormers/MFCore
src/main/scala/de/mineformers/core/block/BaseBlock.scala
Scala
mit
2,053
package org.lau.tlv import scodec.bits.ByteVector import scodec.bits._ import scala.language.experimental.macros import scala.language.implicitConversions import fastparse.byte.all.Parser /** * Created by lau on 1/9/17. */ package object ber { implicit def getTag(tlv: List[BerTLV]) = new GetFromTLVList(tlv) ...
lfcabend/tlvlib
src/main/scala/org/lau/tlv/ber/package.scala
Scala
apache-2.0
3,637
/** * Copyright (C) 2009-2011 the original author or authors. * See the notice.md file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
dnatic09/scalate
scalate-guice/src/main/scala/org/fusesource/scalate/guice/ScalateModule.scala
Scala
apache-2.0
5,724
package org.apache.spark.sql.cassandra import com.datastax.spark.connector.cql.CassandraConnectorConf import com.datastax.spark.connector.rdd.ReadConf import com.datastax.spark.connector.writer.WriteConf import org.apache.commons.lang.StringUtils import org.apache.spark.{SparkConf, SparkContext} import org.apache.spar...
nvoron23/spark-cassandra-connector
spark-cassandra-connector/src/main/scala/org/apache/spark/sql/cassandra/CassandraSQLContext.scala
Scala
apache-2.0
10,167
// Copyright 2016, Martin Pokorny <martin@truffulatree.org> // // 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.h2odb import org.scalatest...
mpokorny/h2odb
src/test/scala/UnitSpec.scala
Scala
mpl-2.0
379
package lib import org.scalatest.FlatSpec class UrlKeySpec extends FlatSpec { behavior of "Url Key Generator" it should "leave good urls alone" in { assert("foo" === UrlKey.generate("foo")) assert("foo-bar" === UrlKey.generate("foo-bar")) } it should "leave numbers alone" in { assert("foo123" =...
krschultz/apidoc-generator
lib/src/test/scala/UrlKeySpec.scala
Scala
mit
531
package is.hail.types import is.hail.expr.ir._ import is.hail.types.physical.{PStruct, PType} import is.hail.types.virtual.{TStruct, Type} import is.hail.rvd.RVDType import is.hail.utils._ import org.json4s.CustomSerializer import org.json4s.JsonAST.JString class TableTypeSerializer extends CustomSerializer[TableType...
hail-is/hail
hail/src/main/scala/is/hail/types/TableType.scala
Scala
mit
2,424
package turksem import spacro.HIT import spacro.Assignment import spacro.HITInfo import spacro.HITDataService import scala.util.Try import upickle.default._ // import slick.dbio.Effect.Write import slick.jdbc.{GetResult, JdbcBackend, JdbcProfile, PostgresProfile} // import slick.jdbc.JdbcBackend._ // import slick.s...
julianmichael/mturk-semantics
turksem/jvm/src/main/scala/turksem/SQLHITDataService.scala
Scala
mit
5,746
package springnz.sparkplug.core import com.typesafe.scalalogging.LazyLogging import org.apache.spark.SparkContext import springnz.sparkplug.util.Pimpers._ import scala.util.Try trait ExecutorU { protected def configurer: Configurer def execute[A](operation: SparkOperation[A]): Any } trait Executor[B] extends Ex...
springnz/sparkplug
sparkplug-core/src/main/scala/springnz/sparkplug/core/Executor.scala
Scala
mit
1,589
/* * 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 ...
hortonworks-spark/cloud-integration
cloud-examples/src/test/scala/com/cloudera/spark/cloud/common/SeekReadTests.scala
Scala
apache-2.0
3,387
package org.jetbrains.plugins.scala package lang package refactoring package namesSuggester import com.intellij.openapi.util.text.StringUtil import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.lang.psi.api.base.{ScLiteral, ScReferenceElement} import org.jetbrains.plugins.scala.lang.psi.a...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/namesSuggester/NameSuggester.scala
Scala
apache-2.0
6,464
/* * 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 ...
chenc10/Spark-PAF
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/interfaces.scala
Scala
apache-2.0
15,144
/* * Copyright (C) 2013 Alcatel-Lucent. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * Licensed 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 cop...
molecule-labs/molecule
molecule-parsers/src/main/scala/molecule/parsers/bytebuffer/package.scala
Scala
apache-2.0
8,378
package io.iohk.ethereum.blockchain.sync.fast import akka.util.ByteString import io.iohk.ethereum.consensus.validators.Validators import io.iohk.ethereum.consensus.validators.std.StdBlockValidator import io.iohk.ethereum.consensus.validators.std.StdBlockValidator.BlockValid import io.iohk.ethereum.domain.{BlockBody, B...
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/blockchain/sync/fast/SyncBlocksValidator.scala
Scala
mit
1,716
package controllers import javax.inject.Inject import com.mohiva.play.silhouette.api.{Environment, LogoutEvent, Silhouette} import com.mohiva.play.silhouette.impl.authenticators.CookieAuthenticator import com.mohiva.play.silhouette.impl.providers.SocialProviderRegistry import play.api.i18n.MessagesApi import play.api...
kolowheel/Instrumentality
app/controllers/SignInOutController.scala
Scala
apache-2.0
1,119
package com.datastax.driver.spark.writer import org.junit.Assert._ import org.junit.Test class PropertyExtractorTest { class TestClass(val field1: String, val field2: Int) @Test def testSimpleExtraction() { val testObject = new TestClass("a", 1) val propertyExtractor = new PropertyExtractor(classOf[Te...
bovigny/cassandra-driver-spark
src/test/scala/com/datastax/driver/spark/writer/PropertyExtractorTest.scala
Scala
apache-2.0
1,031
package io.aos.ebnf.sql import java.sql._ import java.util.Properties // these are the types of relations which can show up in a // FROM clause abstract trait Relation case class TableRelation(name: String) extends Relation case class SubqueryRelation(stmt: SelectStmt) extends Relation case class TableColumn(name: S...
echalkpad/t4f-data
parser/ebnf/src/main/scala/io/aos/ebnf/sql/schema.scala
Scala
apache-2.0
2,631
package info.glennengstrand.news.event import io.vertx.lang.scala.{ScalaVerticle, ScalaLogger} import io.vertx.scala.ext.web.RoutingContext import scala.concurrent.Future import scala.util.{Success, Failure} import io.circe._, io.circe.generic.auto._, io.circe.parser._, io.circe.syntax._ import info.glennengstrand.new...
gengstrand/clojure-news-feed
server/feed11/src/main/scala/info/glennengstrand/news/event/GetParticipantEvent.scala
Scala
epl-1.0
1,215
package models.services import java.util.UUID import javax.inject.Inject import com.mohiva.play.silhouette.api.LoginInfo import com.mohiva.play.silhouette.impl.providers.CommonSocialProfile import models.User import models.daos.UserDAO import scala.concurrent.Future import scala.concurrent.ExecutionContext /** * Han...
joaoraf/tripspace
app/models/services/UserServiceImpl.scala
Scala
apache-2.0
2,048
/** * Copyright (C) 2009-2011 the original author or authors. * See the notice.md file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
scalate/scalate
scalate-wikitext/src/main/scala/org/fusesource/scalate/wikitext/ChildrenTag.scala
Scala
apache-2.0
3,598
/* * Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
Lymia/MPPatch
src/main/scala/moe/lymia/mppatch/util/logger.scala
Scala
mit
3,379
package dotty.tools.dotc package transform import core._ import Contexts._, Symbols._, Types._, Flags._, StdNames._ import MegaPhase._ import NameKinds.NonLocalReturnKeyName import config.SourceVersion._ object NonLocalReturns { import ast.tpd._ val name: String = "nonLocalReturns" val description: String = "e...
dotty-staging/dotty
compiler/src/dotty/tools/dotc/transform/NonLocalReturns.scala
Scala
apache-2.0
3,787
/* * 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 n...
guozhangwang/kafka
core/src/test/scala/integration/kafka/api/BaseConsumerTest.scala
Scala
apache-2.0
3,094
package org.pico.fp.impl.syntax.ops import org.pico.fp.@@ import scala.language.higherKinds class UntaggedOps_6HPvv4s[V, F[_]](val self: F[V]) extends AnyVal { @inline final def tagged[T]: F[V @@ T] = self.asInstanceOf[F[V @@ T]] }
newhoggy/pico-fp
pico-fp/src/main/scala/org/pico/fp/impl/syntax/ops/UntaggedOps_6HPvv4s.scala
Scala
mit
239
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc.interp...
scala/scala
src/repl/scala/tools/nsc/interpreter/NamedParam.scala
Scala
apache-2.0
1,542
/* ************************************************************************************* * Copyright 2013 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/reports/statusUpdate/StatusUpdateSquerylRepository.scala
Scala
agpl-3.0
4,201
package core.security /** * Created by zephyre on 1/25/16. */ object UserRole extends Enumeration { val Admin = Value("admin") val User = Value("user") }
Lvxingpai/Hanse
app/core/security/UserRole.scala
Scala
apache-2.0
161
package finatra.quickstart import com.google.inject.Stage import com.twitter.finatra.http.EmbeddedHttpServer import com.twitter.inject.server.FeatureTest class TwitterCloneStartupTest extends FeatureTest { override val server = new EmbeddedHttpServer( stage = Stage.PRODUCTION, twitterServer = new TwitterCl...
syamantm/finatra
examples/twitter-clone/src/test/scala/finatra/quickstart/TwitterCloneStartupTest.scala
Scala
apache-2.0
458
/** * 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...
KevinLiLu/kafka
core/src/test/scala/other/kafka/ReplicationQuotasTestRig.scala
Scala
apache-2.0
12,986
package rebox import scala.{specialized => sp} import scala.collection.{immutable => im, mutable => m} import scala.reflect.ClassTag import java.util.NoSuchElementException object Map { def empty[K: ClassTag, V: ClassTag]: Map[K, V] = new Map[K, V](0, im.Map.empty, debox.Map.empty) def apply[K, V](base: deb...
non/rebox
src/main/scala/rebox/Map.scala
Scala
mit
3,141
package org.scalacoin.script.flag import org.scalatest.{FlatSpec, MustMatchers} /** * Created by chris on 4/6/16. */ class ScriptFlagUtilTest extends FlatSpec with MustMatchers { "ScriptFlagUtil" must "check if strict der encoding check is required" in { ScriptFlagUtil.requiresStrictDerEncoding(Seq(ScriptVer...
TomMcCabe/scalacoin
src/test/scala/org/scalacoin/script/flag/ScriptFlagUtilTest.scala
Scala
mit
924
package com.rasterfoundry.database import java.sql.Timestamp import java.util.UUID import com.rasterfoundry.database.Implicits._ import com.rasterfoundry.datamodel._ import com.rasterfoundry.datamodel.PageRequest import doobie._ import doobie.implicits._ import doobie.postgres.implicits._ import doobie.postgres.circe...
azavea/raster-foundry
app-backend/db/src/main/scala/DatasourceDao.scala
Scala
apache-2.0
5,206
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
pgandhi999/spark
core/src/main/scala/org/apache/spark/status/api/v1/StagesResource.scala
Scala
apache-2.0
10,266
/* * 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 ...
tophua/spark1.52
core/src/test/scala/org/apache/spark/PartitioningSuite.scala
Scala
apache-2.0
11,462
/* * 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 ...
cloudera/spark
core/src/main/scala/org/apache/spark/deploy/worker/ui/WorkerWebUI.scala
Scala
apache-2.0
7,221
package moscalic import java.awt.image.BufferedImage import java.io.{File, FileInputStream} import javax.imageio.ImageWriter import scala.collection.mutable.ArrayBuffer import com.sksamuel.scrimage.nio.JpegWriter import com.sksamuel.scrimage._ object Moscalic { val pixelImageSize = 50 def main(a: Array[Str...
ChrisCoffey/sandbox
moscalic/Moscalic.scala
Scala
unlicense
4,713
package arpc.rpc import scala.util.Try sealed trait RPC case class Request(id: Int, service: String, req: Any) extends RPC case class Reply(id: Int, rep: Try[Any]) extends RPC case class Notification(listner: String, msg: Any) extends RPC
ConnorDillon/arpc
src/main/scala/arpc/rpc/RPC.scala
Scala
gpl-3.0
241
/* * 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 ...
SHASHANKB/spark
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala
Scala
apache-2.0
59,478
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2008-2009, David MacIver ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/collection/immutable/TreeHashMap.scala
Scala
apache-2.0
9,826
/* * 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
core/src/main/scala/org/apache/spark/deploy/master/ui/MasterWebUI.scala
Scala
apache-2.0
4,535
package gloving import scala.concurrent.{Await, Future} import scala.concurrent.duration._ import scala.concurrent.ExecutionContext.Implicits.global import java.net.URI import java.io.{File, PrintWriter} import scala.collection.mutable.{Map,HashMap} import org.apache.spark.SparkContext import org.apache.spark.Spark...
anelson/gloving
src/main/scala/WordVectorKMeansClusterer.scala
Scala
apache-2.0
3,773
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
pgandhi999/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/RateControlMicroBatchStream.scala
Scala
apache-2.0
1,294
/* * 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 ...
chgm1006/spark-app
src/main/scala/org/apache/spark/examples/mllib/TallSkinnyPCA.scala
Scala
apache-2.0
2,131
package controllers import com.google.inject.Inject import mappings.common.ErrorCodes import models.CacheKeyPrefix import models.CaptureCertificateDetailsFormModel import models.CaptureCertificateDetailsModel import models.DirectToPaperViewModel import models.VehicleAndKeeperLookupFormModel import models.VehicleLookup...
dvla/vrm-assign-online
app/controllers/VehicleLookupFailure.scala
Scala
mit
11,349
package com.richardchankiyin.log import org.scalatest.FlatSpec import com.typesafe.scalalogging.Logger import org.slf4j.LoggerFactory import scala.util.{Try,Success,Failure} class LogKeeperTest extends FlatSpec{ lazy val logger = Logger(LoggerFactory.getLogger(this.getClass)) "LogKeeper" should "increase the...
richardchankiyin/sysdashboard
HealthCheck/src/test/scala/com/richardchankiyin/log/LogKeeperTest.scala
Scala
gpl-3.0
4,821
/* * Copyright (C) 2005, The OpenURP Software. * * 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 3 of the License, or * (at your option) any later version. * * This...
openurp/api
prac/src/main/scala/org/openurp/prac/innovation/model/Intro.scala
Scala
lgpl-3.0
1,033
/* * 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
rdbc-implbase/src/test/scala/io/rdbc/implbase/ConnectionFactoryPartialImplSpec.scala
Scala
apache-2.0
3,661
package com.example import com.twitter.finagle.httpx.Status.Ok import com.twitter.finatra.http.test.EmbeddedHttpServer import com.twitter.inject.server.FeatureTest class ExampleFeatureTest extends FeatureTest { override val server = new EmbeddedHttpServer(new Server) "Server" should { "ping" in { serv...
waxmittmann/finatra-sandbox
src/test/scala/com/example/ExampleFeatureTest.scala
Scala
apache-2.0
419
/* * Copyright (c) 2014-2016 * nonblocking.at gmbh [http://www.nonblocking.at] * * This file is part of Cliwix. * * Cliwix is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the...
nonblocking/cliwix
cliwix-core/src/main/scala/at/nonblocking/cliwix/core/filedata/FileDataLoader.scala
Scala
agpl-3.0
1,715
package info.armado.ausleihe.client.remote.services import java.time.Year import info.armado.ausleihe.client.transport.dataobjects.entities._ import info.armado.ausleihe.client.transport.dataobjects.inuse.NotInUseDTO import info.armado.ausleihe.client.transport.requests.ReturnGameRequestDTO import info.armado.ausleihe...
Spielekreis-Darmstadt/lending
lending-client-backend/src/test/scala/info/armado/ausleihe/client/remote/services/ReturnGamesServiceTest.scala
Scala
apache-2.0
3,519
/* * Copyright (C) 2020 MapRoulette contributors (see CONTRIBUTORS.md). * Licensed under the Apache License, Version 2.0 (see LICENSE). */ package org.maproulette.framework.repository import java.sql.Connection import anorm.SqlParser._ import anorm._ import com.vividsolutions.jts.geom.{Coordinate, GeometryFactory...
mgcuthbert/maproulette2
app/org/maproulette/framework/repository/UserRepository.scala
Scala
apache-2.0
23,474
/* * 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...
liquidarmour/ct-calculations
src/test/scala/uk/gov/hmrc/ct/accounts/validation/ValidateAssetsEqualSharesSpec.scala
Scala
apache-2.0
5,814
/** * Copyright 2013 Gianluca Amato * * This file is part of JANDOM: JVM-based Analyzer for Numerical DOMains * JANDOM 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 ...
francescaScozzari/Jandom
core/src/main/scala/it/unich/jandom/ui/gui/MainFrame.scala
Scala
lgpl-3.0
5,572
package org.jetbrains.plugins.scala.lang.parser.parsing.top import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.parser.ErrMsg import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder import org.jetbrains.plugins.scala.lang.parser.parsing.params.Ty...
gtache/intellij-lsp
intellij-lsp-dotty/src/org/jetbrains/plugins/scala/lang/parser/parsing/top/TraitDef.scala
Scala
apache-2.0
1,052
/* * Copyright (C) 2007 Lalit Pant <pant.lalit@gmail.com> * * The contents of this file are subject to the GNU General Public License * Version 3 (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.gnu.org/copyleft/gpl.html * ...
litan/jiva-ng
src/main/scala/net/kogics/jiva/evolution/ApgaFitnessEvaluator.scala
Scala
gpl-3.0
1,923
/* * 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 ...
starpit/openwhisk
tests/src/test/scala/common/SimpleExec.scala
Scala
apache-2.0
1,915
package planstack.anml.model import planstack.anml.model.concrete.{EmptyVarRef, VarRef} class PartialContext(val parentContext:Option[AbstractContext]) extends AbstractContext { def addUndefinedVar(name:LVarRef, typeName:String) { assert(!variables.contains(name), "Local variable already defined: "+name) ...
planstack/anml
src/main/scala/planstack/anml/model/PartialContext.scala
Scala
apache-2.0
1,979