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 (c) 2013-2020 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...
aheyne/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/audit/AccumuloEventReader.scala
Scala
apache-2.0
2,009
package tubesocks import com.ning.http.client.{ AsyncHttpClient, AsyncHttpClientConfig } import com.ning.http.client.websocket.{ WebSocket, DefaultWebSocketListener, WebSocketUpgradeHandler } import java.net.URI /** A builder of sorts for (Web)Sockets */ object Sock { /** A partial function signature for handing ...
jarin/unfiltered
netty-websockets/src/test/scala/tubesocks/tubesocks.scala
Scala
mit
3,604
package powercards.cards import powercards.{Game, BasicVictoryCard, ActionCard} class Island extends ActionCard with BasicVictoryCard { val cost = 4 val vps = 2 def play(game: Game): Unit = ??? }
whence/powerlife
scala/powercards_oo/src/main/scala/powercards/cards/Island.scala
Scala
mit
205
package com.automatak.render.dnp3.objects.groups import com.automatak.render.dnp3.objects._ import com.automatak.render.dnp3.objects.VariationNames._ import FixedSizeField._ import com.automatak.render.dnp3.objects.generators.ConversionToCounter // counters object Group20 extends ObjectGroup { def objects = List(Gr...
thiagoralves/OpenPLC_v2
dnp3/generation/dnp3/src/main/scala/com/automatak/render/dnp3/objects/groups/Group20.scala
Scala
gpl-3.0
942
package tests.rescala import java.util.concurrent.atomic.AtomicInteger import rescala.Infiltrator.assertLevel class SignalTestSuite extends RETests { allEngines("signal Re Evaluates The Expression"){ engine => import engine._ val v = Var(0) var i = 1 val s: Signal[Int] = v.map { _ => i } i =...
volkc/REScala
Tests/shared/src/test/scala/tests/rescala/SignalTestSuite.scala
Scala
apache-2.0
2,219
package monocle.generic import monocle.MonocleSuite import monocle.law.discipline.IsoTests import org.scalacheck.Arbitrary import scalaz.Equal class ProductSpec extends MonocleSuite { case class Person(name: String, age: Int) implicit val personEq: Equal[Person] = Equal.equalA implicit val personArb: Arbitra...
NightRa/Monocle
test/src/test/scala/monocle/generic/ProductSpec.scala
Scala
mit
510
package uber.nosurge.actors import akka.actor.{Actor, Props} import shared.{NotSubscribed, Subscribed} import uber.nosurge.Settings import uber.nosurge.actors.Message._ import uber.nosurge.actors.Models.{ClientState, InitialData} import uber.nosurge.services.{FCMService, RideEstimatesService} class Receptionist(rider...
allantl/uber-nosurge-notifications
backend/src/main/scala/uber/nosurge/actors/Receptionist.scala
Scala
apache-2.0
2,123
/* * 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 ...
mylog00/flink
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/api/stream/table/CalcTest.scala
Scala
apache-2.0
4,992
package scala.scalajs.js.typedarray import scala.scalajs.js /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span> * An ArrayBufferView allows accessing the data of an [[ArrayBuffer]] */ @js.native trait ArrayBufferView extends js.Object { /** The underlying buffer of this ArrayBufferView ...
mdedetrich/scala-js
library/src/main/scala/scala/scalajs/js/typedarray/ArrayBufferView.scala
Scala
bsd-3-clause
555
import collection.AbstractMap println(/* resolved: false */ AbstractMap.getClass) println(classOf[/* path: scala.collection.AbstractMap, accessible: false*/ AbstractMap])
LPTK/intellij-scala
testdata/resolve2/import/element/Trait.scala
Scala
apache-2.0
172
package com.github.vooolll.domain.friends import com.github.vooolll.domain.FacebookPaging import com.github.vooolll.domain.profile.FacebookUser final case class FacebookFriends( friends: List[FacebookUser], paging: Option[FacebookPaging], summary: Option[FacebookFriendsSummary] ) final case class FacebookFrien...
vooolll/facebook4s
src/main/scala/com/github/vooolll/domain/friends/FacebookFriends.scala
Scala
apache-2.0
347
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package docs.home.scaladsl.persistence import scala.concurrent.Future import akka.NotUsed import akka.stream.scaladsl.Source import com.lightbend.lagom.scaladsl.api.Service import com.lightbend.lagom.scaladsl.api.ServiceCall trait BlogService extends...
lagom/lagom
docs/manual/scala/guide/cluster/code/docs/home/scaladsl/persistence/BlogService.scala
Scala
apache-2.0
437
package hercules.actors.qualitycontrol import hercules.entities.ProcessingUnit import akka.actor.Props object MiSeqQualityControllerActor { def props(): Props = Props(new MiSeqQualityControllerActor()) } /** * * TODO: This is not yet implemented. * * Concrete implementation for doing quality control on a ...
johandahlberg/hercules
src/main/scala/hercules/actors/qualitycontrol/MiSeqQualityControllerActor.scala
Scala
mit
515
/* * 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-webapp/src/main/scala/at/nonblocking/cliwix/webapp/InfoController.scala
Scala
agpl-3.0
2,510
/* * @author Philip Stutz * * Copyright 2010 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...
uzh/signal-collect
src/main/scala/com/signalcollect/Graph.scala
Scala
apache-2.0
9,952
/* * Copyright 2017 Datamountaineer. * * 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...
datamountaineer/stream-reactor
kafka-connect-rethink/src/main/scala/com/datamountaineer/streamreactor/connect/rethink/source/ReThinkSourceReadersFactory.scala
Scala
apache-2.0
3,926
package net.mtgto.garoon case class RequestToken(value: String)
mtgto/garoon
src/main/scala/net/mtgto/garoon/RequestToken.scala
Scala
gpl-3.0
65
package mesosphere.marathon package raml import java.time.OffsetDateTime import mesosphere.marathon.core.condition import mesosphere.marathon.core.health.{ MesosCommandHealthCheck, MesosHttpHealthCheck, MesosTcpHealthCheck, PortReference } import mesosphere.marathon.core.instance import mesosphere.marathon.core.pod.{...
guenter/marathon
src/main/scala/mesosphere/marathon/raml/PodStatusConversion.scala
Scala
apache-2.0
12,236
/* * La Trobe University - Distributed Deep Learning System * Copyright 2016 Matthias Langer (t3l@threelights.de) * * 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.apa...
bashimao/ltudl
blaze/src/main/scala/edu/latrobe/blaze/modules/jvm/SoftPlus10_JVM.scala
Scala
apache-2.0
2,137
/** * Copyright 2015 Thomson Reuters * * 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 ag...
hochgi/CM-Well
server/cmwell-util/src/main/scala/cmwell/util/exceptions/RetryException.scala
Scala
apache-2.0
690
package mesosphere.marathon package core.storage.store.impl.zk import akka.Done import akka.util.ByteString import scala.jdk.CollectionConverters._ import org.apache.curator.framework.CuratorFramework import org.apache.curator.framework.api.CuratorEventType._ import org.apache.curator.framework.api.{BackgroundCallback...
mesosphere/marathon
src/main/scala/mesosphere/marathon/core/storage/store/impl/zk/ZkFuture.scala
Scala
apache-2.0
5,978
package wdl import cats.instances.list._ import cats.syntax.apply._ import cats.syntax.foldable._ import shapeless.Coproduct import wdl.AstTools.EnhancedAstNode import wdl.exception.{ValidationException, VariableLookupException, VariableNotFoundException} import wdl.expression.WdlFunctions import wdl4s.parser.WdlParse...
ohsu-comp-bio/cromwell
wdl/src/main/scala/wdl/WdlCall.scala
Scala
bsd-3-clause
14,247
/** * 实现一个BigSequence类,将64个bit的序列打包在一个Long值中。提供apply和update操作来获取和设置某个具体的bit */ class BitSequence(private var value: Long = 0) { implicit def bool2int(b: Boolean) = if (b) 1 else 0 def update(bit: Int, state: Int) = value |= (state & 1L) << bit % 64 def apply(bit: Int): Int = if ((value & 1L << bit % 64) > 0) ...
vernonzheng/scala-for-the-Impatient
src/Chapter11/exercise07.scala
Scala
mit
564
package quisp.highcharts import quisp.enums._ import quisp.{ExtensibleJsFormat, GeneralJson, Point} import spray.json.DefaultJsonProtocol._ import spray.json._ /** * JSON formats for Highcharts config * @author rodneykinney */ object HighchartsJson { import quisp.GeneralJson.{colorJS, writerToFormat} implici...
rodneykinney/quisp
src/main/scala/quisp/highcharts/HighchartsJson.scala
Scala
apache-2.0
1,794
/** * Copyright (c) 2013, The National Archives <digitalpreservation@nationalarchives.gov.uk> * https://www.nationalarchives.gov.uk * * 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://moz...
adamretter/csv-validator
csv-validator-core/src/test/scala/uk/gov/nationalarchives/csv/validator/schema/v1_0/SchemaParserSpecs.scala
Scala
mpl-2.0
8,527
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play.data import javax.validation.Validation import org.specs2.mutable.Specification import play.api.i18n._ import play.data.format.Formatters import play.data.validation.Constraints.{ MaxLength, Required } import scala.beans.BeanPr...
wsargent/playframework
framework/src/play-java-forms/src/test/scala/play/data/PartialValidationSpec.scala
Scala
apache-2.0
1,778
package akkord.events trait VoiceState { val channel_id: Option[String] val user_id: String val session_id: String val guild_id: Option[String] val deaf: Boolean val mute: Boolean val self_deaf: Boolean val self_mute: Boolean val suppress: Boolean } case class VoiceStateImpl ( override val channel_...
ryanmiville/akkord
src/main/scala/akkord/events/VoiceState.scala
Scala
mit
632
/* * 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 ...
PredictionIO/PredictionIO
data/src/main/scala/org/apache/predictionio/data/storage/LEvents.scala
Scala
apache-2.0
19,424
/* * Copyright 2001-2015 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
examples/src/test/scala/org/scalatest/examples/asyncwordspec/noargasynctest/ExampleSpec.scala
Scala
apache-2.0
1,271
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
aosagie/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala
Scala
apache-2.0
25,281
package com.github.ldaniels528.trifecta.modules.etl.io.record.impl import com.github.ldaniels528.commons.helpers.OptionHelper.Risky._ import com.github.ldaniels528.trifecta.modules.etl.io.Scope import com.github.ldaniels528.trifecta.modules.etl.io.record.{DataTypes, Field} import org.scalatest.Matchers._ import org.sc...
ldaniels528/trifecta
app-cli/src/test/scala/com/github/ldaniels528/trifecta/modules/etl/io/record/impl/FixedLengthRecordSpec.scala
Scala
apache-2.0
2,268
package org.t3as.redact.service import javax.servlet.ServletConfig import javax.servlet.http.HttpServlet import io.swagger.jaxrs.config.BeanConfig /** Hard-coded config for now. * Could get from a properties file and allow overriding with env vars * (as in https://github.inside.nicta.com.au/nbacon/social-watch/tr...
NICTA/t3as-redact
src/main/scala/org/t3as/redact/service/MySwaggerBootstrap.scala
Scala
agpl-3.0
1,098
package PaperCode.Sec4OA //BEGIN_OVERVIEW_OA_ALG trait ExprAlg[E] { def lit(n: Int): E def add(e1: E, e2: E): E } //END_OVERVIEW_OA_ALG //BEGIN_OVERVIEW_OA_PRINT trait Print extends ExprAlg[String] { def lit(n: Int) = n.toString def add(e1: String, e2: String) = "(" + e1 + " + " + e2 + ")" } //END_OVERVIEW_O...
hy-zhang/parser
Scala/Parser/src/PaperCode/Sec4OA/Code2.scala
Scala
bsd-3-clause
1,347
/** * Copyright (C) 2012 Inria, University Lille 1. * * This file is part of PowerAPI. * * PowerAPI 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...
abourdon/powerapi-akka
examples/example-cpumonitor-linux/src/main/scala/fr/inria/powerapi/example/cpumonitor/linux/Listeners.scala
Scala
agpl-3.0
3,214
package com.github.agaro1121.parsing.payloads object LeagueRule { val payload = """ |{ | "id": "4", | "name": "Hardcore", | "description": "A character killed in Hardcore is moved to its parent league." |} """.stripMargin }
agaro1121/PathOfExileApiClient
src/test/scala/com/github/agaro1121/parsing/payloads/LeagueRule.scala
Scala
mit
270
class Open class Door[State] { def close[Phantom >: State <: Open]: Int = 0 def open[Phantom >: State <: Open](): Int = 0 } class Test { val door = new Door[AnyRef] // the error here happens later (at refchecks) println(door.close.toString) // the errors below happen when typing implicit conversions pri...
scala/scala
test/files/neg/t12413.scala
Scala
apache-2.0
471
// Visual test for ansiescape // Run from Activator console: // :load src/test/visual-test.scala import me.pmatiello.ansiescape.ANSI._ println("Visual Test") println() println(black("black")) println(red("red")) println(green("green")) println(yellow("yellow")) println(blue("blue")) println(purple("purple")) println...
pmatiello/ansiescape
src/test/visual-test.scala
Scala
apache-2.0
1,868
package models.database.alias import org.squeryl.KeyedEntity import org.squeryl.annotations._ case class Artist(@Column("artist_name") name:String, @Column("spotify_id") spotifyId:Option[String] = None, @Column("napster_id") napsterId:Option[String] = None, @Colum...
haffla/stream-compare
app/models/database/alias/Artist.scala
Scala
gpl-3.0
652
/* * Copyright 2001-2009 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
svn2github/scalatest
src/main/scala/org/scalatest/fixture/FunSuiteLike.scala
Scala
apache-2.0
10,319
package workflow import org.apache.spark.rdd.RDD /** * A [[TransformerOperator]] that gathers multiple datasets of {@tparam T} into a dataset of Seq[T] * (Or individual datums of T into a single Seq[T]) */ private[workflow] case class GatherTransformerOperator[T]() extends TransformerOperator { override private[...
tomerk/keystone
src/main/scala/workflow/GatherTransformerOperator.scala
Scala
apache-2.0
657
package demy.mllib.text import demy.mllib.util.log._ import demy.mllib.linalg.implicits._ import java.sql.Timestamp import org.apache.spark.ml.{Transformer, Estimator, PipelineStage} import org.apache.spark.ml.param.{Param, Params, ParamMap} import org.apache.spark.ml.util.Identifiable import org.apache.spark.ml.linal...
forchard-epi/demy
mllib/src/main/scala/text/EntityCalculator.scala
Scala
bsd-3-clause
20,382
package mojave import shapeless.Lens import scala.reflect.ClassTag case class PartialLens[A, B : ClassTag](wrapped: Lens[A, Option[B]]) { def andThen[C](second: Lens[B, Option[C]]): Lens[A, Option[C]] = PartialStep(wrapped, second) def modifyOpt(a: A)(fn: B => B) = wrapped.modify(a) { value => value.map(fn) } ...
raimohanska/mojave
src/main/scala/mojave/PartialLens.scala
Scala
mit
1,575
package scala.tools.nsc package backend.jvm package opt import org.junit.Assert._ import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 import scala.jdk.CollectionConverters._ import scala.reflect.internal.util.JavaClearable import scala.tools.nsc.backend.jvm.BTypes.MethodInlineInfo im...
scala/scala
test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala
Scala
apache-2.0
3,315
package org.sisioh.aws4s.sns.model import com.amazonaws.services.sns.model.DeleteTopicRequest import org.sisioh.aws4s.PimpedType object DeleteTopicRequestFactory { def create(): DeleteTopicRequest = new DeleteTopicRequest() def create(topicArn: String): DeleteTopicRequest = new DeleteTopicRequest(topicAr...
sisioh/aws4s
aws4s-sns/src/main/scala/org/sisioh/aws4s/sns/model/RichDeleteTopicRequest.scala
Scala
mit
722
package com.github.diegopacheco.scala3.playground.features object TraitsMain extends App { trait Animal: def speak():Unit trait HasTail: def wagTail():Unit class Dog extends Animal, HasTail: def speak() = println("Woof") def wagTail() = println("⎞⎜⎛ ⎞⎜⎛") val dog = Dog() println(...
diegopacheco/scala-playground
scala-3-playground/scala-3-playground/src/main/scala/com/github/diegopacheco/scala3/playground/features/TraitsMain.scala
Scala
unlicense
371
/** * Copyright 2015 Thomson Reuters * * 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 ag...
bryaakov/CM-Well
server/cmwell-domain/src/test/scala/InfotonSerializerSpec.scala
Scala
apache-2.0
13,168
// Copyright (C) 2015-2017 Red Tulip Systems BV. // // Author nikos.mouchtaris@redtulipsystems.com import sbt._ import Process._ import Keys._ object TelephonyConfiguration { val ProjectSettings = Seq( resolvers += Resolver.sonatypeRepo("snapshots"), libraryDependencies ++= Seq( "com.twilio.sdk" %...
mouchtaris/jleon
project/TelephonyConfiguration.scala
Scala
mit
447
/* * 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 package collecti...
martijnhoekstra/scala
src/library/scala/collection/immutable/Stream.scala
Scala
apache-2.0
22,453
/* * 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 ...
witgo/spark
external/avro/src/main/scala/org/apache/spark/sql/v2/avro/AvroPartitionReaderFactory.scala
Scala
apache-2.0
4,868
/** * This file is part of the TA Buddy project. * Copyright (c) 2013-2014 Alexey Aksenov ezh@ezh.msk.ru * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Global License version 3 * as published by the Free Software Foundation with the addition...
digimead/digi-TABuddy-desktop
part-model-editor/src/main/scala/org/digimead/tabuddy/desktop/model/editor/ui/view/editor/TableActions.scala
Scala
agpl-3.0
4,311
package org.ergoplatform import scorex.util.ModifierId trait ErgoBoxAssets { def value: Long def tokens: Map[ModifierId, Long] } final case class ErgoBoxAssetsHolder( val value: Long, val tokens: Map[ModifierId, Long] ) extends ErgoBoxAssets object ErgoBoxAssetsHolder { def apply(value: Long): ErgoBoxAsse...
ScorexFoundation/sigmastate-interpreter
sigmastate/src/main/scala/org/ergoplatform/ErgoBoxAssets.scala
Scala
mit
366
package com.twitter.scrooge.java_generator.test object ApacheCompatibilityHelpers { val cleanTypedefMetadata = """(new FieldValueMetaData\\([A-Z,a-z,0-9.]*).*?\\)\\)\\);""".r val randomWhitespace = """[ ]*\\{""".r def cleanWhitespace(actual: String, cleanEmptySemicolons: Boolean): Array[String] = { val valu...
thirstycrow/scrooge
scrooge-generator/src/main/scala/com/twitter/scrooge/java_generator/test/ApacheCompatibilityHelpers.scala
Scala
apache-2.0
777
package jp.co.bizreach.play2stub import play.api.libs.ws.WSResponse import play.api.mvc.{AnyContent, Request} /** * Created by scova0731 on 10/19/14. */ trait ParamBuilder { def build(response: Option[WSResponse])(implicit request: Request[AnyContent], route: Option[StubRoute]): Map[String, Any] } ...
bizreach/play2-stub
src/main/scala/jp/co/bizreach/play2stub/ParamBuilder.scala
Scala
apache-2.0
597
package wom.callable import wom.types.{WomMapType, WomStringType} import wom.values.{WomMap, WomString, WomValue} /** * Parameter documentation quoted from CWL Spec. * * @param outputPath runtime.outdir: an absolute path to the designated output directory * @param tempPath runtime.tmpdir: an absolute path to ...
ohsu-comp-bio/cromwell
wom/src/main/scala/wom/callable/RuntimeEnvironment.scala
Scala
bsd-3-clause
1,486
/* * 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
examples/src/test/scala/wvlet/airframe/examples/airspec/AirSpec_04_Session.scala
Scala
apache-2.0
1,093
package at.logic.gapt.examples import at.logic.gapt.cli.GAPScalaInteractiveShellLibrary.parse import at.logic.gapt.expr._ import at.logic.gapt.language.fol.{instantiate, FOLSubstitution, Utils} import at.logic.gapt.proofs.lk._ import at.logic.gapt.proofs.lk.base.LKProof // Functions to construct cut-free FOL LK proofs...
gisellemnr/gapt
examples/ProofSequences.scala
Scala
gpl-3.0
47,330
package org.scalajs.testsuite.utils object AssertThrows { /** Backport implementation of Assert.assertThrows to be used until JUnit 4.13 is * released. See org.junit.Assert.scala in jUnitRuntime. */ private def assertThrowsBackport(expectedThrowable: Class[_ <: Throwable], runnable: ThrowingRunnable):...
scala-js/scala-js-java-logging
testSuite/shared/src/test/scala/org/scalajs/testsuite/utils/AssertThrows.scala
Scala
bsd-3-clause
2,048
/* * Copyright (c) 2014-2021 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...
monifu/monifu
monix-eval/shared/src/test/scala/monix/eval/TaskAsyncSuite.scala
Scala
apache-2.0
4,332
package com.github.tminglei.slickpg import slick.driver.PostgresDriver import slick.jdbc.{PositionedResult, JdbcType} /** simple inet string wrapper */ case class InetString(value: String) { lazy val isIPv6 = value.contains(":") lazy val address = value.split("/")(0) lazy val masklen: Int = { val parts = va...
vikraman/slick-pg
src/main/scala/com/github/tminglei/slickpg/PgNetSupport.scala
Scala
bsd-2-clause
3,605
package br.com.caelum.hibernatequerydsl import org.junit.Ignore import scala.reflect.BeanProperty import org.hibernate.cfg.Configuration import br.com.caelum.hibernatequerydsl.PimpedSession._ import br.com.caelum.hibernatequerydsl.Expression._ import org.hibernate.Session import org.hibernate.criterion.Order._ import ...
asouza/hibernate-query-dsl
src/test/scala/br/com/caelum/hibernatequerydsl/PimpedSessionTest.scala
Scala
lgpl-2.1
13,499
package com.twitter.finagle.exp.mysql import com.twitter.finagle.exp.mysql.transport.BufferWriter import java.util.logging.Logger import language.implicitConversions /** * A value of type `A` can implicitly convert to a `Parameter` if an evidence `CanBeParameter[A]` is * available in scope. This type is not to be i...
sveinnfannar/finagle
finagle-mysql/src/main/scala/com/twitter/finagle/mysql/Parameter.scala
Scala
apache-2.0
2,743
package providers import java.time.LocalDateTime import java.time.temporal.ChronoUnit import java.util.TimeZone import com.feth.play.module.pa.PlayAuthenticate import javax.inject.{Inject, Singleton} import play.inject.ApplicationLifecycle import play.Environment import com.feth.play.module.pa.providers.cookie._ impo...
bravegag/play-authenticate-usage-scala
app/providers/MyCookieAuthProvider.scala
Scala
apache-2.0
3,805
package org.ergoplatform import sigmastate.SCollection.SByteArray import sigmastate.Values._ import sigmastate.eval.IRContext import sigmastate.interpreter.{Interpreter, PrecompiledScriptProcessor} import sigmastate.utxo._ /** Base class of verifying interpreter which expects ErgoLikeContext as input of * verify m...
ScorexFoundation/sigmastate-interpreter
sigmastate/src/main/scala/org/ergoplatform/ErgoLikeInterpreter.scala
Scala
mit
1,797
/* * Copyright 2022 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/fset-faststream
test/controllers/LaunchpadTestsControllerSpec.scala
Scala
apache-2.0
7,773
package com.easyforger.creatures import net.minecraft.entity.monster.EntityZombie import net.minecraft.world.World case class ZombieConfig(common: CommonEntityConfig = CommonEntityConfig()) extends CreatureConfig class CustomZombie(world: World) extends EntityZombie(world) with CommonCustomMonster { val zombie = V...
ThiagoGarciaAlves/easyforger
src/main/scala/com/easyforger/creatures/CustomZombie.scala
Scala
gpl-3.0
390
package com.ibm.watson.developer_cloud.language_translation.v2.model import java.io.File import com.ibm.watson.developer_cloud.service.GenericModel /** * Created by Martin Harvan (martin.harvan@sk.ibm.com) on 20/03/16. */ case class CreateModelOptions(baseModelId: String, forcedGlossary: File, monlingualCorpus: ...
kane77/watson-scala-wrapper
src/main/scala/com/ibm/watson/developer_cloud/language_translation/v2/model/CreateModelOptions.scala
Scala
apache-2.0
382
package org.bitcoins.core.number /** Helper trait to cache data types that represent numbers * Examples are [[org.bitcoins.core.script.constant.ScriptNumber]] * [[UInt32]] [[UInt64]] etc */ trait NumberCache[T] { def fromNativeNumber(long: Long): T /** The minimum number cached (inclusive) */ def minCache...
bitcoin-s/bitcoin-s
core/src/main/scala/org/bitcoins/core/number/NumberCache.scala
Scala
mit
1,719
package org.jetbrains.plugins.scala package lang package psi package stubs import api.toplevel.ScEarlyDefinitions import com.intellij.psi.stubs.StubElement /** * User: Alexander Podkhalyuzin * Date: 17.06.2009 */ trait ScEarlyDefinitionsStub extends StubElement[ScEarlyDefinitions] { }
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/stubs/ScEarlyDefinitionsStub.scala
Scala
apache-2.0
293
/* * 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 ...
benschaff/spark-druid-olap
src/main/scala/org/sparklinedata/druid/metadata/DruidRelationInfo.scala
Scala
apache-2.0
3,901
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/codegen/calls/HashCodeCallGen.scala
Scala
apache-2.0
1,525
/* * 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/utils/tf/loaders/TopKV2Spec.scala
Scala
apache-2.0
2,634
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/amls-frontend
app/controllers/businessdetails/CorporationTaxRegisteredController.scala
Scala
apache-2.0
4,360
/* * Copyright (C) 2017 The Proteus Project * * 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 ...
aagea/peach
peach-client/src/test/scala/com/proteus/peach/client/PeachAkkaClientIT.scala
Scala
apache-2.0
1,325
/* * 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 ...
mike0sv/spark
graphx/src/test/scala/org/apache/spark/graphx/lib/StronglyConnectedComponentsSuite.scala
Scala
apache-2.0
2,363
/* * 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 ...
twitwi/DynaML
src/main/scala/io/github/mandar2812/dynaml/prototype/QuadraticRenyiEntropy.scala
Scala
apache-2.0
3,372
/** * * This file is part of Fixbugs. * * Fixbugs 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. * * Fixbugs is dis...
FauxFaux/fixbugs
src/main/java/fixbugs/core/ir/NodeCondition.scala
Scala
lgpl-3.0
2,858
package org.qirx.cms.machinery import scala.language.higherKinds import scala.language.implicitConversions import scala.annotation.implicitNotFound object Coproduct { def apply[Head[_], Tail[_], x](value: Either[Head[x], Tail[x]])( implicit ev: Coproduct.NotAtLeft[Head]) = Co[Head, Tail].Product(value) @imp...
EECOLOR/play-cms
cms/src/main/scala/org/qirx/cms/machinery/Coproduct.scala
Scala
mit
2,778
/* * Copyright 2014–2018 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...
jedesah/Quasar
foundation/src/test/scala/quasar/matchers.scala
Scala
apache-2.0
1,630
/* * 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/EveryShouldContainOnlyLogicalAndSpec.scala
Scala
apache-2.0
74,268
/* * Tranquility. * Copyright 2013, 2014, 2015 Metamarkets Group, 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...
deepikakhera/spark-tranquility
storm/src/main/scala/com/metamx/tranquility/storm/common/StormRequiringSuite.scala
Scala
apache-2.0
2,363
package org.bitcoins.crypto import scodec.bits.ByteVector case class CurveCoordinate(bytes: ByteVector) extends FiniteFieldMember[CurveCoordinate](CryptoParams.getCurvePrime, 32) { override def fieldObj: FiniteFieldObject[CurveCoordinate] = CurveCoordinate } object CurveCoordinate extends FiniteFieldObjec...
bitcoin-s/bitcoin-s
crypto/src/main/scala/org/bitcoins/crypto/CurveCoordinate.scala
Scala
mit
489
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 b...
hpe-cct/cct-core
src/main/scala/cogx/compiler/optimizer/Optimizer.scala
Scala
apache-2.0
3,244
class Tokens { abstract class Token } trait TokenParsers { val lexical: Tokens } class MyTokenParsers extends TokenParsers { import lexical.* val lexical = new Tokens }
lampepfl/dotty
tests/untried/neg/t1845.scala
Scala
apache-2.0
177
package edu.arizona.sista.twitter4food import org.clulab.struct.Counter import java.util.regex.Pattern import scala.collection.mutable.ListBuffer import java.io.{FileWriter, PrintWriter} /** * * User: mihais * Date: 10/25/13 */ class GeoTagger(val statePatterns: Map[String, List[Pattern]]) { def this(stateFile...
clulab/twitter4food
src/main/scala/edu/arizona/sista/twitter4food/GeoTag.scala
Scala
apache-2.0
4,885
/* * 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 ...
Dax1n/spark-core
core/src/test/scala/org/apache/spark/util/collection/SizeTrackerSuite.scala
Scala
apache-2.0
6,743
package lila.chat import org.joda.time.DateTime import lila.user.User final class ChatPanic { private var until: Option[DateTime] = none def allowed(u: User): Boolean = !enabled || { (u.count.gameH > 10 && u.createdSinceDays(1)) || u.isVerified } def allowed(id: User.ID, fetch: User.ID => Fu[O...
luanlv/lila
modules/chat/src/main/ChatPanic.scala
Scala
mit
787
package io.github.reggert.reb4j.test import io.github.reggert.reb4j.{Entity, Raw} import org.scalacheck.{Arbitrary, Gen} trait RawGenerators extends UtilGenerators with LiteralGenerators { implicit val arbEntity: Arbitrary[Entity] = Arbitrary(genEntity) implicit val arbRawCompound : Arbitrary[Raw.Compound] = Ar...
reggert/reb4j
src/test/scala/io/github/reggert/reb4j/test/RawGenerators.scala
Scala
lgpl-3.0
1,948
package dotty import scala.language.unsafeNulls import java.nio.file._ /** Runtime properties from defines or environmnent */ object Properties { /** If property is unset or "TRUE" we consider it `true` */ private def propIsNullOrTrue(prop: String): Boolean = { val prop = System.getProperty("dotty.tests.int...
dotty-staging/dotty
compiler/test/dotty/Properties.scala
Scala
apache-2.0
3,181
package dotty.tools.dotc.classpath import dotty.tools.io.ClassRepresentation import dotty.tools.io.{AbstractFile, VirtualDirectory} import FileUtils._ import java.net.URL import dotty.tools.io.ClassPath case class VirtualDirectoryClassPath(dir: VirtualDirectory) extends ClassPath with DirectoryLookup[ClassFileEntryI...
som-snytt/dotty
compiler/src/dotty/tools/dotc/classpath/VirtualDirectoryClassPath.scala
Scala
apache-2.0
2,222
/* * Copyright 2013 - 2015, Daniel Krzywicki <daniel.krzywicki@agh.edu.pl> * * 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 ...
ros3n/IntOb
core/src/main/scala/pl/edu/agh/scalamas/mas/sync/SyncEnvironment.scala
Scala
mit
2,158
package uima.rs.ja import org.apache.uima.jcas.JCas import uima.rs.MultiLingualQuestion import us.feliscat.m17n.Japanese import us.feliscat.types.Question import us.feliscat.util.uima.JCasID /** * <pre> * Created on 2017/03/21. * </pre> * * @author K.Sakamoto */ class JapaneseQuestion(casId: JCasID, ...
ktr-skmt/FelisCatusZero-multilingual
src/main/scala/uima/rs/ja/JapaneseQuestion.scala
Scala
apache-2.0
461
package com.theseventhsense.datetime import com.theseventhsense.utils.types.SSDateTime import com.theseventhsense.utils.types.SSDateTime.DateTime.Format import com.theseventhsense.utils.types.SSDateTime.{DateTime, DayOfWeek, HourOfDay, TimeZone} /** * Created by erik on 6/15/16. */ abstract class AbstractRichDate...
7thsense/utils-datetime
shared/src/main/scala/com/theseventhsense/datetime/AbstractRichDateTime.scala
Scala
mit
1,548
/* * 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 ...
holdenk/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/SortOrder.scala
Scala
apache-2.0
8,837
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play import play.core.server._ import play.api.routing.sird._ import play.api.mvc._ object NettyTestServer extends App { lazy val Action = new ActionBuilder.IgnoringBody()(_root_.controllers.Execution.trampoline) val port: Int ...
Shruti9520/playframework
framework/src/play-netty-server/src/test/scala/play/NettyTestServer.scala
Scala
apache-2.0
608
/* * 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 ...
tengpeng/spark
mllib/src/main/scala/org/apache/spark/ml/feature/Tokenizer.scala
Scala
apache-2.0
5,527
// This does not currently work because it mixes higher-kinded types and raw type constructors. package dotty.collection package immutable import annotation.unchecked.uncheckedVariance trait Collection[T] { self => type This <: Collection { type This <: self.This } def companion: CollectionCompanion[This] } trai...
som-snytt/dotty
tests/invalid/pos/IterableSelfRec.scala
Scala
apache-2.0
1,982
package io.udash.properties.single import com.avsystem.commons._ import io.udash.properties._ import io.udash.properties.seq.{ReadableSeqProperty, ReadableSeqPropertyFromSingleValue} import io.udash.utils.Registration /** Base interface of every Property in Udash. */ trait ReadableProperty[+A] { /** @return Curren...
UdashFramework/udash-core
core/src/main/scala/io/udash/properties/single/ReadableProperty.scala
Scala
apache-2.0
6,290
// Copyright 2017 EPFL DATA Lab (data.epfl.ch) // // 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...
epfldata/squid
src/test/scala/squid/functional/FoldTupleVarOptimsNew.scala
Scala
apache-2.0
2,618
package uk.gov.dvla.vehicles.presentation.common.mappings import play.api.data.FormError import play.api.data.Forms._ import play.api.data.format.Formatter import uk.gov.dvla.vehicles.presentation.common import common.model.{SearchFields, Address} import common.views.models.AddressAndPostcodeViewModel.Form.addressLine...
dvla/vehicles-presentation-common
app/uk/gov/dvla/vehicles/presentation/common/mappings/AddressPicker.scala
Scala
mit
6,176
package org.http4s package headers /** * Defined by http://tools.ietf.org/html/rfc6797 */ object `Strict-Transport-Security` extends HeaderKey.Default
hvesalai/http4s
core/src/main/scala/org/http4s/headers/Strict-Transport-Security.scala
Scala
apache-2.0
154