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
type RingF2[A] = RingF[RingF[RingF[A]]]
hmemcpy/milewski-ctfp-pdf
src/content/3.8/code/scala/snippet08.scala
Scala
gpl-3.0
39
package aafa.model import io.realm.RealmObject import io.realm.annotations.PrimaryKey class User extends RealmObject{ @PrimaryKey var id: Long = 1 var name: String = "test" }
aafa/realm-sbt-plugin
src/sbt-test/sbt-realm-test/realm/src/main/scala/aafa/model/model.scala
Scala
mit
181
package com.twitter.diffy.lifter import com.google.common.net.{HttpHeaders, MediaType} import com.twitter.io.Charsets import com.twitter.logging.Logger import com.twitter.util.{Try, Future} import org.jboss.netty.handler.codec.http.{HttpResponse, HttpRequest} import scala.collection.JavaConversions._ object HttpLif...
camiloribeiro/diffy
src/main/scala/com/twitter/diffy/lifter/HttpLifter.scala
Scala
apache-2.0
4,281
package com.sksamuel.elastic4s.requests.nodes trait NodesApi { def nodeInfo(names: Iterable[String]) = NodeInfoRequest(names.toSeq) def nodeInfo(names: String*) = NodeInfoRequest(names) def nodeStats(): NodeStatsRequest = NodeStatsRequest(Seq.empty) def nodeStats(first: S...
stringbean/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/requests/nodes/NodesApi.scala
Scala
apache-2.0
691
/* * Copyright 2012 Jahziah Wagner <jahziah[dot]wagner[at]gmail[dot]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.apache.org/licenses/LICENSE-2.0 * * Unle...
jahwag/OpenLobby
modules/Login/src/main/scala/com/openlobby/login/Activator.scala
Scala
apache-2.0
2,063
package pt.cnbc.wikimodels.client.snippet import _root_.net.liftweb.common._ import _root_.net.liftweb.http._ import S._ import _root_.net.liftweb.util._ import Helpers._ import _root_.scala.xml._ import _root_.pt.cnbc.wikimodels.rest.client.RestfulAccess /** * Created by IntelliJ IDEA. * User: alex * Date: 26-04...
alexmsmartins/WikiModels
wm_web_client/src/main/scala/pt/cnbc/wikimodels/client/snippet/ExportSBMLModelSnip.scala
Scala
mit
723
package models.conf import com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException import exceptions.UniqueNameException import play.api.Play.current import models.PlayCache import scala.slick.driver.MySQLDriver.simple._ import scala.slick.jdbc.JdbcBackend import scala.slick.lifted.ProvenShape /**...
sdgdsffdsfff/bugatti
app/models/conf/Template.scala
Scala
bsd-2-clause
3,385
/* * 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 ...
sgururajshetty/carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/timeseries/TestTimeSeriesCreateTable.scala
Scala
apache-2.0
22,157
package wvlet.log import java.io.{ByteArrayInputStream, ByteArrayOutputStream, ObjectInputStream, ObjectOutputStream} import wvlet.log.io.IOUtil object SerializationTest { trait A extends LogSupport { info("new A") def hello = info("hello") } } /** * */ class SerializationTest extends Spec { imp...
wvlet/log
wvlet-log/jvm/src/test/scala/wvlet/log/SerializationTest.scala
Scala
apache-2.0
784
package stretchypants import org.json4s.{ JArray, JString, JValue, JNothing, JInt, JObject } import org.json4s.JsonDSL._ import scala.concurrent.duration.FiniteDuration sealed trait Facet { def asJson: JValue } /** http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets.html */ object F...
softprops/stretchy-pants
src/main/scala/Facet.scala
Scala
mit
7,428
package debox import scala.annotation.{switch, tailrec} import scala.reflect.ClassTag import scala.{specialized => sp} import spire.algebra._ import spire.syntax.all._ /** * Set is a mutable hash set, with open addressing and double hashing. * * Set provides constant-time membership tests, and amortized * const...
beni55/debox
src/main/scala/debox/Set.scala
Scala
mit
24,163
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/ct-calculations
src/main/scala/uk/gov/hmrc/ct/computations/CP288.scala
Scala
apache-2.0
1,572
package mesosphere.marathon import java.util.UUID import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicBoolean import javax.inject.Named import akka.actor.SupervisorStrategy.Restart import akka.actor._ import akka.event.EventStream import akka.routing.RoundRobinPool import com.codahale.metric...
sledigabel/marathon
src/main/scala/mesosphere/marathon/MarathonModule.scala
Scala
apache-2.0
12,662
package cn.changhong.finagle.http /** * Created by yangguo on 14-10-24. */ case class User(username:String,password:String)
guoyang2011/myfinagle
Server/src/main/scala/cn/changhong/finagle/http/EntityFactory.scala
Scala
apache-2.0
127
package amora.backend.indexer import org.junit.Test import amora.backend.schema.Schema import amora.api._ class CommitTest extends RestApiTest { import amora.TestUtils._ private case class Person(name: String, age: Int) private def buildTurtleUpdate(ps: Seq[Person]) = Schema.turtleBuilder { (addPrefix, a...
sschaef/tooling-research
backend/src/test/scala/amora/backend/indexer/CommitTest.scala
Scala
mit
2,540
package scalapb.json4s import org.scalatest.{FlatSpec, MustMatchers} class NameUtilsSpec extends FlatSpec with MustMatchers { "snakeCaseToCamelCase" should "work for normal names" in { NameUtils.snakeCaseToCamelCase("scala_pb") must be("scalaPb") NameUtils.snakeCaseToCamelCase("foo_bar") must be("fooBar") ...
trueaccord/scalapb-json4s
src/test/scala/scalapb/json4s/NameUtilsSpec.scala
Scala
apache-2.0
1,142
object Main extends App { for (i <- 1 to (100,2)) println(i) }
nikai3d/ce-challenges
easy/oddnums.scala
Scala
bsd-3-clause
65
package scala.slick.ast /** * The standard library for query operators. */ object Library { trait AggregateFunctionSymbol extends Symbol class JdbcFunction(name: String) extends FunctionSymbol(name) class SqlFunction(name: String) extends FunctionSymbol(name) class SqlOperator(name: String) extends FunctionS...
boldradius/slick
src/main/scala/scala/slick/ast/Library.scala
Scala
bsd-2-clause
3,364
/** * Copyright (C) 2012-2013 Vadim Bartko (vadim.bartko@nevilon.com). * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or * (at your option) any later ve...
hudvin/nomad
src/main/scala/com/nevilon/nomad/crawler/Domain.scala
Scala
gpl-2.0
1,172
/* * 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-tail/shared/src/test/scala/monix/tail/IterantInterleaveSuite.scala
Scala
apache-2.0
2,303
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
felixmulder/scala
src/library/scala/beans/ScalaBeanInfo.scala
Scala
bsd-3-clause
1,621
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package kafka.manager.actor.cluster import java.io.Closeable import java.net.InetAddress import java.nio.ByteBuffer import java.time.Duration import java.util import java.util.Properties import jav...
yahoo/kafka-manager
app/kafka/manager/actor/cluster/KafkaStateActor.scala
Scala
apache-2.0
67,830
package proximaltest.controllers; import org.scalatestplus.play._ import play.api.mvc._ import play.api.test.FakeRequest import play.api.test.Helpers._ import proximaltest.helpers._ class QuestionControllerSpec extends PlaySpec with Results { "Question Controller" should { "not allow a non admin to create a ne...
silbermm/proximal
test/proximaltest/controllers/QuestionControllerSpec.scala
Scala
apache-2.0
735
package com.webtrends.harness.component.zookeeper.discoverable import akka.actor.Actor import akka.pattern.ask import akka.util.Timeout import com.webtrends.harness.command.{BaseCommandResponse, CommandException, _} import scala.concurrent.{Future, Promise} import scala.util.{Failure, Success} /** * @author Michael...
Webtrends/wookiee-zookeeper
src/main/scala/com/webtrends/harness/component/zookeeper/discoverable/DiscoverableCommandExecution.scala
Scala
apache-2.0
3,008
package spire.example import spire.implicits._ import spire.math._ import scala.annotation.tailrec import scala.collection.IterableLike import scala.collection.mutable.{Builder, GrowingBuilder, MapBuilder} import scala.collection.generic.CanBuildFrom /** * Some tools for simplifying decimal expressions, and playing...
woparry/spire
examples/src/main/scala/spire/example/simplification.scala
Scala
mit
6,919
package at.fabricate.openthings package lib import model.User import net.liftweb.sitemap.Loc._ import net.liftweb.http.RedirectResponse object AccessControl { /** Zugriffsbedingung: Benutzer ist eingeloggt. */ val loggedIn = If(() => User.loggedIn_?, () => RedirectResponse("/login")) }
Fabricate/OpenthingsImplementation
src/main/scala/at/fabricate/openthings/lib/AccessControl.scala
Scala
lgpl-3.0
312
//package teleporter.stream.integration.transaction import akka.Done import akka.stream.scaladsl.{Keep, Sink} import akka.stream.{KillSwitch, KillSwitches} import org.elasticsearch.action.index.IndexRequest import org.elasticsearch.index.VersionType import teleporter.integration.component.elasticsearch.ElasticSearch2 ...
huanwuji/teleporter
src/test/scala/teleporter/stream/integration/template/Hadoop2Elasticsearch.scala
Scala
agpl-3.0
1,753
package dotty.tools.backend.jvm import org.junit.Assert._ import org.junit.Test class StringInterpolatorOptTest extends DottyBytecodeTest { import ASMConverters._ @Test def testRawInterpolator = { val source = """ |class Foo { | val one = 1 | val two = "two" | val thr...
som-snytt/dotty
compiler/test/dotty/tools/backend/jvm/StringInterpolatorOptTest.scala
Scala
apache-2.0
1,959
trait Currency case class Yen(amount: Int) extends Currency case class Dollar(amount: Int) extends Currency def toS(currency:Currency):String = currency match { // 通貨の型でマッチさせる case Yen(amount) => { "%s yen".format(amount) // 変数amountには日本円の値が入る } case Dollar(amount) => { "%s dollar".format(amount) // 変数a...
akimichi/functionaljs
test/chap05.spec.scala
Scala
mit
463
package org.scalacvx.constraints import org.scalacvx.atoms.Expression import org.scalacvx.dcp.{ConcaveVexity, ConvexVexity, AffineVexity} /** * Created by lorenzo on 9/10/15. */ trait ComparisonConstraint extends Constraint { require(lhs.size == rhs.size, s"Cannot create equality constraint between expression...
lorenzolucido/ScalaCVX
src/main/scala/org/scalacvx/constraints/ComparisonConstraint.scala
Scala
mit
1,525
package com.rasterfoundry.notification.email import io.estatico.newtype.macros.newtype @SuppressWarnings(Array("AsInstanceOf")) object Model { sealed abstract class EncryptionScheme(val repr: String) { override def toString: String = repr } object EncryptionScheme { def fromStringE(s: String) = s.toLow...
raster-foundry/raster-foundry
app-backend/notification/src/main/scala/com/rasterfoundry/notification/email/Model.scala
Scala
apache-2.0
1,610
package security import play.api.libs.json.Json import play.api.mvc.BodyParsers.parse import play.api.mvc.BodyParser import play.api.mvc.Request import play.api.mvc.Action import play.api.mvc.AnyContent import play.api.mvc.Result import play.api.mvc.Results import play.api.mvc.WrappedRequest import models.Client cas...
lukaszbudnik/geo-layers
app/security/Security.scala
Scala
apache-2.0
1,388
object Spawn { def main(args: Array[String]) { error("Test error main") } }
matheshar/simple-build-tool
src/sbt-test/run/error/changes/RunFailureMain.scala
Scala
bsd-3-clause
80
package com.sksamuel.elastic4s.searches.aggs import com.sksamuel.elastic4s.searches.aggs.pipeline.PipelineAggregationDefinition import org.elasticsearch.search.aggregations._ trait AggregationDefinition { type B <: AggregationBuilder val builder: B def pipeline(pipeline: PipelineAggregationDefinition): this.t...
ulric260/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/aggs/AggregationDefinition.scala
Scala
apache-2.0
1,359
package de.tu_berlin.formic.datastructure.tree.client import akka.actor.ActorSystem import akka.testkit.TestKit import de.tu_berlin.formic.common.json.FormicJsonProtocol import de.tu_berlin.formic.datastructure.tree.TreeFormicJsonDataStructureProtocol import org.scalatest.{BeforeAndAfterAll, Matchers, WordSpecLike} /...
rbraeunlich/formic
tree/shared/src/test/scala/de/tu_berlin/formic/datastructure/tree/client/TreeClientDataStructureProviderSpec.scala
Scala
apache-2.0
2,154
/* Copyright 2014 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...
cchepelov/scalding
scalding-serialization/src/main/scala/com/twitter/scalding/serialization/macros/impl/ordered_serialization/providers/CaseClassOrderedBuf.scala
Scala
apache-2.0
3,475
package lila.forum import actorApi._ import akka.actor.ActorSelection import org.joda.time.DateTime import play.api.libs.json._ import lila.common.paginator._ import lila.db.api._ import lila.db.Implicits._ import lila.db.paginator._ import lila.hub.actorApi.timeline.{ Propagate, ForumPost } import lila.mod.ModlogApi...
JimmyMow/lila
modules/forum/src/main/PostApi.scala
Scala
mit
6,169
/** * This file is part of mycollab-esb. * * mycollab-esb 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. * * mycollab-esb is d...
maduhu/mycollab
mycollab-esb/src/main/scala/com/esofthead/mycollab/module/ecm/esb/impl/SaveContentCommandImpl.scala
Scala
agpl-3.0
3,293
package model.pokedex /** * Created by salim on 19/09/2016. */ case class PokemonMove(pokemon_id: Int, version_group_id: Int, move_id: Int, pokemon_move_method_id: Int, level: Int, order: Int) extends DexClass { def uid = pokemon_id } object PokemonMove extends DexObject[PokemonMove] { def fromMap(row: Map[St...
salimfadhley/scalamoo
src/main/scala/model/pokedex/PokemonMove.scala
Scala
mit
557
package com.blinkboxbooks.resourceserver import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import MatrixParameters._ @RunWith(classOf[JUnitRunner]) class MatrixParametersTest extends FunSuite { test("Matrix params, valid cases") { assert(getMatrixParams("").ge...
blinkboxbooks/resource-server.scala
src/test/scala/com/blinkboxbooks/resourceserver/MatrixParametersTest.scala
Scala
mit
1,521
package tests trait Baz { val bar/*caret*/ = 0 def foo() = { bar/*caret*/ match { case `bar`/*caret*/ => case _ => } } } class BazClass extends Baz { override var bar = 1 } object BazInst extends Baz { override def bar = 1 } object Test { def foo(i: Int = BazInst.bar) = { BazIns...
whorbowicz/intellij-scala
testdata/rename3/valInTrait/before/tests/Baz.scala
Scala
apache-2.0
378
/** * 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...
rhauch/kafka
core/src/test/scala/unit/kafka/log/OffsetIndexTest.scala
Scala
apache-2.0
6,145
package org.github.aalbul.jenkins.domain /** * Created by nuru on 3/30/14. */ case class JobList(jobs: List[JobOverview])
aalbul/reactive-jenkins
src/main/scala/org/github/aalbul/jenkins/domain/JobList.scala
Scala
gpl-2.0
124
/* * 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.apache.org...
MiguelPeralvo/spark-streaming-example-project
src/main/scala/com.snowplowanalytics.spark/streaming/StreamingCounts.scala
Scala
apache-2.0
4,374
/* * 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 agreed to in writ...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/ListShouldContainAllElementsOfLogicalOrSpec.scala
Scala
apache-2.0
40,636
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
xuwei-k/scala-js
scalalib/overrides-2.10/scala/runtime/ScalaRunTime.scala
Scala
bsd-3-clause
14,890
package pl.newicom.dddd.process import pl.newicom.dddd.aggregate.{DomainEvent, EntityId} import pl.newicom.dddd.office.LocalOfficeId import pl.newicom.dddd.process.ProcessConfig.CorrelationIdResolver import pl.newicom.dddd.saga.BusinessProcessId import scala.reflect.ClassTag object ProcessConfig { type Correlation...
pawelkaczor/akka-ddd
akka-ddd-core/src/main/scala/pl/newicom/dddd/process/ProcessConfig.scala
Scala
mit
677
//: ---------------------------------------------------------------------------- //: Copyright (C) 2016 Verizon. All Rights Reserved. //: //: 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 Licen...
oncue/mesos-scheduler
example/src/main/scala/Service.scala
Scala
apache-2.0
2,772
package vexriscv.demo import spinal.core._ import spinal.lib._ import spinal.lib.bus.amba3.apb._ import spinal.lib.bus.misc.SizeMapping import spinal.lib.com.jtag.Jtag import spinal.lib.com.uart._ import spinal.lib.io.{InOutWrapper, TriStateArray} import spinal.lib.misc.{InterruptCtrl, Prescaler, Timer} import spinal....
windelbouwman/ppci-mirror
examples/riscvmurax/Murax.scala
Scala
bsd-2-clause
10,120
package cromwell.services.keyvalue.impl import akka.actor.ActorSystem import cromwell.core.ExecutionIndex._ import cromwell.core.WorkflowId import cromwell.database.sql.tables.JobKeyValueEntry import cromwell.services.EngineServicesStore import cromwell.services.keyvalue.KeyValueServiceActor.KvJobKey import cromwell.u...
ohsu-comp-bio/cromwell
services/src/main/scala/cromwell/services/keyvalue/impl/BackendKeyValueDatabaseAccess.scala
Scala
bsd-3-clause
1,343
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-features/geomesa-feature-kryo/src/main/scala/org/locationtech/geomesa/features/kryo/ProjectingKryoFeatureDeserializer.scala
Scala
apache-2.0
3,792
package io.udash.web.guide.demos.rpc import com.avsystem.commons.serialization.{GenCodec, HasGenCodec, Input, Output} import io.udash.rpc._ import scala.concurrent.Future object GenCodecServerRPC extends DefaultServerRpcCompanion[GenCodecServerRPC] { case class DemoCaseClass(i: Int, s: String, intAsDouble: Double)...
UdashFramework/udash-guide
shared/src/main/scala/io/udash/web/guide/demos/rpc/GenCodecServerRPC.scala
Scala
gpl-3.0
1,904
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Tue Sep 13 17:37:39 EDT 2016 * @see LICENSE (MIT style license file). */ package scalation.analytics.classifier import scala.math.log import scalation.linalgebra.{MatrixD, Vec...
NBKlepp/fda
scalation_1.2/src/main/scala/scalation/analytics/classifier/DynBayesNetwork.scala
Scala
mit
1,292
package com.bstek.designer.core.palette import java.awt.event.{ActionEvent, ActionListener, KeyEvent} import java.awt._ import javax.swing._ import com.intellij.designer.palette.PaletteItemsComponent import com.intellij.icons.AllIcons import com.intellij.ui.Gray import com.intellij.util.ui.UIUtil /** * Created by r...
OuYuBin/IDEADorado
dorado-core/src/com/bstek/designer/core/palette/DoradoPaletteGroupComponent.scala
Scala
apache-2.0
3,691
package play.api.test import play.api.test._ import play.api.test.Helpers._ import org.specs2.mutable._ class HelpersSpec extends Specification { "inMemoryDatabase" should { "change database with a name argument" in { val inMemoryDatabaseConfiguration = inMemoryDatabase("test") inMemoryDatabaseCon...
noel-yap/setter-for-catan
play-2.1.1/framework/src/play-test/src/test/scala/play/api/test/HelpersSpec.scala
Scala
apache-2.0
973
package jsky.app.ot.gemini.editor import java.io.File import jsky.util.Preferences /** * */ package object auxfile { val DirectoryPref = "EdProgramAuxFile.Directory" val MaxFileSizeMb = 250 val MaxFileSize = MaxFileSizeMb * 1024 * 1024 def dirPreference: Option[File] = Option(Preferences.getPreferenc...
spakzad/ocs
bundle/jsky.app.ot/src/main/scala/jsky/app/ot/gemini/editor/auxfile/package.scala
Scala
bsd-3-clause
515
/* * 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/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQueryFileTest.scala
Scala
apache-2.0
2,944
package gapt.proofs import gapt.expr.VarOrConst import gapt.expr._ import gapt.expr.formula.hol.HOLAtomConst import gapt.expr.subst.Substitution import gapt.expr.util.freeVariables import gapt.expr.util.rename import gapt.proofs.context.update.Definition import scala.collection.mutable package object resolution { ...
gapt/gapt
core/src/main/scala/gapt/proofs/resolution/package.scala
Scala
gpl-3.0
5,883
package com.iz2use.express.transform.toscala trait ScalaCode { def scalaCode(implicit context: Context): String }
math85360/ifc-scala
shared/src/main/scala/com/iz2use/express/transform/toscala/ScalaCode.scala
Scala
apache-2.0
116
package org.apache.spark.sql import org.apache.spark.sql.execution.strategy.DDLStrategy import org.apache.spark.sql.parser.CarbonExtensionSqlParser import org.apache.spark.sql.test.util.PlanTest import org.scalatest.BeforeAndAfterAll class CarbonExtensionSuite extends PlanTest with BeforeAndAfterAll { var session:...
jackylk/incubator-carbondata
integration/spark/src/test/scala/org/apache/spark/sql/CarbonExtensionSuite.scala
Scala
apache-2.0
1,149
package functional import play.api.{Application => PlayApp} import play.api.test._ import play.api.test.Helpers._ import play.api.i18n.MessagesApi import play.api.i18n.{Lang, Messages, MessagesImpl, MessagesProvider} import java.time.Instant import play.api.inject.guice.GuiceApplicationBuilder import helpers.InjectorS...
ruimo/store2
test/functional/EmployeeUserMaintenanceSpec.scala
Scala
apache-2.0
18,584
package parsec.optimised import scala.reflect.macros.blackbox.Context import util.{Zeroval, TreeTools} /** * This trait rewrites grammars according to the Parsequery * transformation rules. */ trait ParsequeryTransform extends GrammarTrees with Zeroval with TreeTools { val c: Context import c.univ...
manojo/parsequery
macros/src/main/scala/parsec/optimised/ParsequeryTransform.scala
Scala
mit
13,517
package com.webtrends.harness.component.spray import akka.actor.{Actor, ActorRef} import com.webtrends.harness.component.spray.websocket._ import spray.can.server.ServerSettings /** * Created by wallinm on 4/3/15. */ trait SprayWebSocketServer { this : Actor => var webSocketServer:Option[ActorRef] = None def s...
mjwallin1/wookiee-spray
src/main/scala/com/webtrends/harness/component/spray/SprayWebSocketServer.scala
Scala
apache-2.0
806
/* * 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 ...
hequn8128/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/batch/table/AggregateTest.scala
Scala
apache-2.0
2,356
package uk.gov.dvla.vehicles.presentation.common.views.helpers import uk.gov.dvla.vehicles.presentation.common.UnitSpec import uk.gov.dvla.vehicles.presentation.common.views.constraints.Required.RequiredField import uk.gov.dvla.vehicles.presentation.common.views.helpers.HtmlArgsExtensions.RichHtmlArgs final class Htm...
dvla/vehicles-presentation-common
test/uk/gov/dvla/vehicles/presentation/common/views/helpers/HtmlArgsExtensionsSpec.scala
Scala
mit
12,386
/*-------------------------------------------------------------------------*\\ ** ScalaCheck ** ** Copyright (c) 2007-2021 Rickard Nilsson. All rights reserved. ** ** http://www.scalacheck.org ** ** ...
rickynils/scalacheck
src/test/scala/org/scalacheck/StatsSpecification.scala
Scala
bsd-3-clause
3,327
package io.scalajs.nodejs package url import io.scalajs.util.JSONHelper._ import io.scalajs.util.JsUnderOrHelper._ import org.scalatest.FunSpec /** * URLObject Tests * @author lawrence.daniels@gmail.com */ class URLObjectTest extends FunSpec { describe("URLObject") { val originalUrl = "https://www.googl...
scalajs-io/nodejs
app/current/src/test/scala/io/scalajs/nodejs/url/URLObjectTest.scala
Scala
apache-2.0
1,356
package io.netflow.lib import java.net.InetAddress import org.joda.time.DateTime case class BadDatagram(date: DateTime, sender: InetAddress)
ayscb/netflow
netflow1/netflow-master/src/main/scala/io/netflow/lib/BadDatagram.scala
Scala
apache-2.0
144
package example abstract class WhatToShow2(duration: Int) { def getDuration = this.duration def moveToNext(): WhatToShow2 } // todo add choosing times from list based on smth case class Cross(duration: Int) extends WhatToShow2(duration) { def setDuration(duration: Int) = { currentDuration = duration } ...
MysterionRise/psycho-test-framework
psycho-test-client/src/main/scala/example/WhatToShow2.scala
Scala
mit
937
/* * Copyright 2014 IBM Corp. * * 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...
bpburns/spark-kernel
kernel/src/main/scala/com/ibm/spark/kernel/protocol/v5/handler/KernelInfoRequestHandler.scala
Scala
apache-2.0
2,132
import blended.sbt.Dependencies object BlendedUtilLogging extends ProjectFactory { private[this] val helper = new ProjectSettings( projectName = "blended.util.logging", description = "Logging utility classes to use in other bundles", deps = Seq( Dependencies.slf4j ) ) override val project...
lefou/blended
project/BlendedUtilLogging.scala
Scala
apache-2.0
345
// src/main/scala/progscala2/typesystem/structuraltypes/Observer.scala package progscala2.typesystem.structuraltypes trait Subject { // <1> import scala.language.reflectiveCalls // <2> type State ...
sunilrebel/programming-scala
examples/src/main/scala/progscala2/typesystem/structuraltypes/observer.scala
Scala
mpl-2.0
669
package retronym.commons import BooleanW._ object PartialFunctionW { implicit def PartialFunctionToPartialFunctionW[A, B](pf: PartialFunction[A, B]) : PartialFunctionW[A, B] = { new PartialFunctionW(pf) } } class PartialFunctionW[-A, +B](pf: PartialFunction[A, B]) { def toFunction1 : Function1[A, Option[B]...
retronym/scala-sandbox
commons/src/main/scala/retronym/commons/PartialFunctionW.scala
Scala
mit
378
package temportalist.esotericraft.main.server import temportalist.esotericraft.main.common.ProxyCommon /** * Created by TheTemportalist on 12/31/2015. */ class ProxyServer extends ProxyCommon { }
TheTemportalist/EsoTeriCraft
src/main/scala/temportalist/esotericraft/main/server/ProxyServer.scala
Scala
apache-2.0
203
/* * 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 ...
MrCodeYu/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveUDFSuite.scala
Scala
apache-2.0
18,809
package us.feliscat.text.normalizer.en import us.feliscat.m17n.English import us.feliscat.text.StringOption import us.feliscat.text.normalizer.EscapeObject /** * @author K.Sakamoto * Created on 2016/08/07 */ object EnglishEscapeNoun extends EscapeObject(StringOption("escape_noun.txt")) with English
ktr-skmt/FelisCatusZero-multilingual
libraries/src/main/scala/us/feliscat/text/normalizer/en/EnglishEscapeNoun.scala
Scala
apache-2.0
316
/* * Copyright 2015 University of Basel, Graphics and Vision Research Group * * 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 * * Unl...
unibas-gravis/scalismo
src/test/scala/scalismo/mesh/boundingSpheres/MeshSurfaceDistanceTests.scala
Scala
apache-2.0
25,850
package muster package codec package argonaut import org.scalacheck.{Gen, Prop} import org.specs2.specification.Fragments import org.specs2.{ScalaCheck, Specification} import _root_.argonaut._, Argonaut._ class JsonFormatterSpec extends Specification with ScalaCheck { def is: Fragments = s2""" A Json Formatter shou...
json4s/muster
codecs/argonaut/src/test/scala/muster/codec/argonaut/JsonFormatterSpec.scala
Scala
mit
6,338
/* Copyright 2011 the original author or 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...
markusgumbel/scalabioalg
ui/src/main/scala/net/gumbix/bioinf/string/dotplot/DotPlot.scala
Scala
apache-2.0
1,496
/* * 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...
wzhongyuan/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/utils/tf/loaders/Mod.scala
Scala
apache-2.0
1,538
package computerdatabase.advanced import io.gatling.core.Predef._ import io.gatling.http.Predef._ import scala.concurrent.duration._ class Advanced1Simulation extends Simulation { val feeder = csv("search1.csv").random // Let's split this big scenario into composable business processes, like one would do with P...
evandor/skysail
skysail.product.demo.e2e.gatling/src/gatling/scala/computerdatabase/advanced/Advanced1Simulation.scala
Scala
apache-2.0
1,195
package scala.macros.tests package config import org.junit._ import org.junit.runner._ import org.junit.runners._ import org.junit.Assert._ import scala.macros.config._ @RunWith(classOf[JUnit4]) class VersionSuite { @Test def parseStable: Unit = { val s = "2.0.0" val version = Version.parse(s).get ass...
xeno-by/scalamacros
tests/api/src/test/scala/scala/macros/tests/config/VersionSuite.scala
Scala
bsd-3-clause
2,031
package scala.tools package reflect import scala.reflect.reify.Taggers import scala.tools.nsc.typechecker.{ Analyzer, Macros } import scala.reflect.runtime.Macros.currentMirror import scala.reflect.quasiquotes.{ Quasiquotes => QuasiquoteImpls } /** Optimizes system macro expansions by hardwiring them directly to thei...
felixmulder/scala
src/compiler/scala/tools/reflect/FastTrack.scala
Scala
bsd-3-clause
3,537
package edu.gemini.pit.ui.editor import edu.gemini.model.p1.immutable.EphemerisElement import edu.gemini.pit.ui.util._ import edu.gemini.shared.gui.textComponent.NumberField import edu.gemini.spModel.core.Coordinates import scala.swing._ import scala.swing.event.ValueChanged import java.util.{Date, TimeZone} import j...
spakzad/ocs
bundle/edu.gemini.pit/src/main/scala/edu/gemini/pit/ui/editor/EphemerisElementEditor.scala
Scala
bsd-3-clause
1,626
/* ************************************************************************************* * Copyright 2012 Normation SAS ************************************************************************************* * * This file is part of Rudder. * * Rudder is free software: you can redistribute it and/or modify * it under the...
armeniaca/rudder
rudder-core/src/main/scala/com/normation/rudder/batch/AutomaticReportsCleaner.scala
Scala
gpl-3.0
14,657
/* Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
jeppenejsum/gdata-scala-client
src/com/google/gdata/youtube/StdUserProfileEntry.scala
Scala
apache-2.0
1,045
/* * 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/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala
Scala
apache-2.0
58,401
package model.services import java.util.UUID import model.dtos._ import model.repositories._ import play.api.Play.current import play.api.i18n.{Messages, MessagesApi} import play.api.libs.json.JsArray import play.api.libs.ws.WS import utils.MailService import play.api.Play.current import play.api.i18n.Messages.Impli...
scify/DemocracIT-Web
app/model/services/AnnotationManager.scala
Scala
apache-2.0
10,368
/* Copyright (c) 2017, Robby, Kansas State University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of cond...
sireum/v3
web/js/src/main/scala/org/sireum/web/playground/Playground.scala
Scala
bsd-2-clause
21,494
package mesosphere.marathon.core.group import javax.inject.Provider import akka.actor.ActorRef import akka.event.EventStream import akka.stream.Materializer import com.codahale.metrics.Gauge import mesosphere.marathon.core.group.impl.{ GroupManagerActor, GroupManagerDelegate } import mesosphere.marathon.core.leadersh...
timcharper/marathon
src/main/scala/mesosphere/marathon/core/group/GroupManagerModule.scala
Scala
apache-2.0
2,103
package ch.wsl.box.client.services import wvlet.airframe._ trait ServiceModule { val httpClient = bind[HttpClient] val rest = bind[REST] val clientSession = bind[ClientSession] val navigator = bind[Navigator] }
Insubric/box
client/src/main/scala/ch/wsl/box/client/services/ServiceModule.scala
Scala
apache-2.0
222
/* * Copyright (c) 2012-2017 by its authors. Some rights reserved. * See the project homepage at: https://github.com/monix/shade * * Licensed under the MIT License (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy * of the License at: * * https://github.co...
lloydmeta/shade
src/main/scala/shade/CacheException.scala
Scala
mit
1,240
import shapeless.tag import shapeless.tag.@@ package object learnshapeless { def assertEquals[T](expected: T, actual: T) = assert(expected == actual, s"Expected: $expected != Actual: $actual") def assertHaveEqualTypes[A, B](a: A, b: B)(implicit ev: A =:= B): Unit = () def assertConformsToTypeOf[A, B](subtype...
benhutchison/learningshapeless
src/main/scala/learnshapeless/package.scala
Scala
apache-2.0
790
package com.danielasfregola.twitter4s.http.clients import akka.http.scaladsl.client.RequestBuilding import akka.http.scaladsl.model.HttpMethods._ import akka.http.scaladsl.model._ import akka.stream.Materializer import com.danielasfregola.twitter4s.http.marshalling.{BodyEncoder, Parameters} import com.danielasfregola....
DanielaSfregola/twitter4s
src/main/scala/com/danielasfregola/twitter4s/http/clients/OAuthClient.scala
Scala
apache-2.0
2,932
package pl.touk.nussknacker.engine.avro.source.delayed import cats.data.Validated.{Invalid, Valid} import pl.touk.nussknacker.engine.api.context.transformation.{DefinedEagerParameter, NodeDependencyValue} import pl.touk.nussknacker.engine.api.context.ValidationContext import pl.touk.nussknacker.engine.api.definition.P...
TouK/nussknacker
utils/avro-components-utils/src/main/scala/pl/touk/nussknacker/engine/avro/source/delayed/DelayedKafkaAvroSourceFactory.scala
Scala
apache-2.0
3,179
import sbt._ import Keys._ import java.io.File import scala.util.control.NonFatal object Protobuf { val paths = SettingKey[Seq[File]]("protobuf-paths", "The paths that contain *.proto files.") val outputPaths = SettingKey[Seq[File]]("protobuf-output-paths", "The paths where to save the generated *.java files.") ...
Product-Foundry/akka-cqrs
project/Protobuf.scala
Scala
apache-2.0
3,078
package mesosphere.marathon package core.health.impl import akka.event.EventStream import com.typesafe.config.{ Config, ConfigFactory } import mesosphere.AkkaUnitTest import mesosphere.marathon.core.group.GroupManager import mesosphere.marathon.core.health.{ Health, HealthCheck, MesosCommandHealthCheck } import mesosp...
guenter/marathon
src/test/scala/mesosphere/marathon/core/health/impl/MarathonHealthCheckManagerTest.scala
Scala
apache-2.0
13,655
package net.sansa_stack.query.spark.api.domain import org.apache.jena.sparql.algebra.{Table, TableFactory} import org.apache.jena.sparql.core.Var import org.apache.jena.sparql.engine.binding.Binding import org.apache.spark.rdd.RDD trait ResultSetSpark { def getResultVars: Seq[Var] def getBindings: RDD[Binding] ...
SANSA-Stack/SANSA-RDF
sansa-query/sansa-query-spark/src/main/scala/net/sansa_stack/query/spark/api/domain/ResultSetSpark.scala
Scala
apache-2.0
587
/* * 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 ...
maropu/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogVersionsSuite.scala
Scala
apache-2.0
14,251
package org.apache.datacommons.protectr.encryptors import com.n1analytics.paillier.{PaillierPrivateKey, PaillierPublicKey} class EncryptionKeyPair(seed:Int) extends Serializable{ private val paillierPrivateKey: PaillierPrivateKey = PaillierPrivateKey.create(seed) def getPrivateKey: PaillierPrivateKey = { pa...
data-commons/protectr
src/main/scala/org/apache/datacommons/protectr/encryptors/EncryptionKeyPair.scala
Scala
apache-2.0
426