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
/** * Created by xd on 2015/01/01. */ import skinny.task._, generator._ object TaskRunner extends SkinnyTaskLauncher { register("model", (params) => PlayModelGenerator.run(params)) register("reverse-model", (params) => PlayReverseModelGenerator.run(params)) register("reverse-model-all", (params) => PlayRevers...
yamitzky/nonplay-play
task/TaskRunner.scala
Scala
cc0-1.0
354
package com.mentatlabs.nsa package scalac package options /* -Xfull-lubs * =========== * 2.10.0 - 2.12.0: Retains pre 2.10 behavior of less aggressive truncation of least upper bounds. */ case object ScalacXFullLubs extends ScalacOptionBoolean("-Xfull-lubs", ScalacVersions.`2.10.0`)
mentat-labs/sbt-nsa
nsa-core/src/main/scala/com/mentatlabs/nsa/scalac/options/advanced/ScalacXFullLubs.scala
Scala
bsd-3-clause
294
package spark import org.scalatest.FunSuite import org.scalatest.prop.Checkers import scala.collection.mutable.ArrayBuffer import SparkContext._ // Common state shared by FailureSuite-launched tasks. We use a global object // for this because any local variables used in the task closures will rightfully // be copie...
koeninger/spark
core/src/test/scala/spark/FailureSuite.scala
Scala
bsd-3-clause
2,608
package test.billing import org.specs2.mutable._ import org.specs2.Specification import java.net.URL import org.specs2.matcher.MatchResult import org.specs2.execute.{ Result => SpecsResult } import com.stackmob.newman.response.{ HttpResponse, HttpResponseCode } import com.stackmob.newman._ import com.stackmob.newman.d...
megamsys/verticegateway
test/billing/QuotasSpec.scala
Scala
mit
2,580
package org.obi.attr sealed trait JavaVersion { def version: String } final case object Java11 extends JavaVersion { override def version = "1.1" } final case object Java12 extends JavaVersion { override def version = "1.2" } final case object Java13 extends JavaVersion { override def version = "1.3...
tomjadams/obibuild
src/main/scala/org/obi/attr/javac/JavaVersion.scala
Scala
apache-2.0
572
package unfiltered.netty import org.specs2.mutable.Specification import unfiltered.response.{ Pass, ResponseString } import unfiltered.request.{ GET, Path => UFPath } import scala.concurrent.Future object FutureServerSpec extends Specification with org.specs2.matcher.ThrownMessages with unfiltered.specs2.netty.Serve...
realestate-com-au/unfiltered
netty/src/test/scala/FutureServerSpec.scala
Scala
mit
983
package debop4s.data.slick.databases import debop4s.config.server.DatabaseSetting import debop4s.data.common.JdbcDrivers import scala.collection.mutable /** * [[SlickDB]] 를 생성해주는 Helper Class 입니다. * @author sunghyouk.bae@gmail.com 15. 3. 22. */ object StandardDB { lazy val Databases = mutable.Map[DatabaseSetti...
debop/debop4s
debop4s-data-slick/src/main/scala/debop4s/data/slick/databases/StandardDB.scala
Scala
apache-2.0
1,204
package lila.game import lila.db.{ BSON, ByteArray } import org.joda.time.DateTime import reactivemongo.bson._ import chess.variant.{ Variant, Crazyhouse } import chess.{ CheckCount, Color, Clock, White, Black, Status, Mode, UnmovedRooks } object BSONHandlers { import lila.db.ByteArray.ByteArrayBSONHandler pri...
clarkerubber/lila
modules/game/src/main/BSONHandlers.scala
Scala
agpl-3.0
6,528
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
elastic/elasticsearch-hadoop
spark/sql-30/src/test/scala/org/elasticsearch/spark/sql/DataFrameFieldExtractorTest.scala
Scala
apache-2.0
2,941
/* * (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/gpu_operator/expression/BinaryRelationalExpression.scala
Scala
apache-2.0
2,275
package com.ubeeko.exceptions /** * Created with IntelliJ IDEA. * User: elb * Date: 18/02/13 * Time: 09:01 */ trait TechnicalException extends Exception
eric-leblouch/htalk
src/main/scala/com/ubeeko/exceptions/TechnicalException.scala
Scala
apache-2.0
158
/********************************************************************************************************************** * This file is part of Scrupal, a Scalable Reactive Web Application Framework for Content Management * * ...
scrupal/scrupal
scrupal-storage/src/main/scala/scrupal/storage/api/Collection.scala
Scala
apache-2.0
3,400
package io.github.mandar2812.dynaml.pipes import org.scalatest.{FlatSpec, Matchers} class MetaPipeSpec extends FlatSpec with Matchers { "Meta pipes" should " extend the idea of curried functions, compose with other pipes" in { val mult_by_num = MetaPipe((n: Int) => (x: Int) => n*x) val add_one = DataPipe...
transcendent-ai-labs/DynaML
dynaml-pipes/src/test/scala-2.11/io/github/mandar2812/dynaml/pipes/MetaPipeSpec.scala
Scala
apache-2.0
945
package org.lodsb.scales /* +1>> This source code is licensed as GPLv3 if not stated otherwise. >> NO responsibility taken for ANY harm, damage done >> to you, your data, animals, etc. >> +2>> >> Last modified: 2013-11-06 :: 00:22 >> Origin: >> +3>> >> Copyright (c) 2013: >...
lodsb/scales
src/main/scala/Pitch.scala
Scala
gpl-3.0
3,299
package benchmarks.incremental import org.openjdk.jmh.annotations._ import org.openjdk.jmh.infra.Blackhole import rescala.extra.incremental.IncrementalApi.{State => _, _} import java.util.concurrent.TimeUnit /** @author gerizuna * @since 10.10.19 */ @BenchmarkMode(Array(Mode.AverageTime)) @OutputTimeUnit(TimeUni...
guidosalva/REScala
Code/Microbenchmarks/src/main/scala/benchmarks/incremental/SizeBenchmarkWithInsert.scala
Scala
apache-2.0
1,410
/* * 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/test/scala/org/apache/spark/sql/DatasetSerializerRegistratorSuite.scala
Scala
apache-2.0
2,353
package org.scalatra package oauth2 package model import java.net.URI import OAuth2Imports._ import collection.mutable import validation.{ FieldName, ErrorCode, ValidationError } case object LoginFailed extends ErrorCode case object AlreadyConfirmed extends ErrorCode case object NotUnique extends ErrorCode case objec...
scalatra/oauth2-server
src/main/scala/org/scalatra/oauth2/model/OAuth2Error.scala
Scala
mit
9,695
package gapt.examples.sequence import gapt.expr._ import gapt.expr.formula.fol.FOLFunction import gapt.expr.formula.fol.FOLTerm import gapt.proofs.Ant import gapt.proofs.Suc import gapt.proofs.gaptic.Proof import gapt.proofs.gaptic.allR import gapt.proofs.gaptic.chain import gapt.proofs.gaptic.impR import gapt.proofs....
gapt/gapt
examples/sequence/LinearCutExampleProof.scala
Scala
gpl-3.0
1,652
package com.twitter.finatra.http.tests.integration.doeverything.main.domain import com.twitter.finatra.domain.WrappedValue import com.twitter.finatra.validation.Min case class ValidatedWrappedLong( @Min(1) value: Long) extends WrappedValue[Long]
syamantm/finatra
http/src/test/scala/com/twitter/finatra/http/tests/integration/doeverything/main/domain/ValidatedWrappedLong.scala
Scala
apache-2.0
252
package com.twitter.finagle.ssl import java.security.cert.{Certificate, CertificateFactory} import java.util.logging.{Level, Logger} import javax.net.ssl._ import org.jboss.netty.channel.{ Channel, ChannelHandlerContext, ChannelLocal, MessageEvent, SimpleChannelHandler } import collection.JavaConversions._ import ...
enachb/finagle_2.9_durgh
finagle-core/src/main/scala/com/twitter/finagle/ssl/Ssl.scala
Scala
apache-2.0
2,134
package com.anakiou.modbus.msg import java.io.DataInput import java.io.DataOutput import com.anakiou.modbus.Modbus import com.anakiou.modbus.ModbusCoupler import com.anakiou.modbus.procimg.DigitalOut import com.anakiou.modbus.procimg.IllegalAddressException class WriteCoilRequest extends ModbusRequest() { private...
anakiou/scamod
src/com/anakiou/modbus/msg/WriteCoilRequest.scala
Scala
apache-2.0
1,891
package de.zalando.model import de.zalando.apifirst.Application._ import de.zalando.apifirst.Domain._ import de.zalando.apifirst.ParameterPlace import de.zalando.apifirst.naming._ import de.zalando.apifirst.Hypermedia._ import de.zalando.apifirst.Http._ import de.zalando.apifirst.Security import java.net.URL import Sec...
zalando/play-swagger
play-scala-generator/src/test/scala/model/resources.additional_properties_yaml.scala
Scala
mit
1,662
/** * Copyright (C) 2011 - 2012 Eric Van Dewoestine * * 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 3 of the License, or * (at your option) any later version. * * This p...
euclio/eclim
org.eclim.sdt/scala/eclim/plugin/sdt/command/src/SrcUpdateCommand.scala
Scala
gpl-3.0
2,852
/* * 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
test/connectors/EnrolmentStubConnectorSpec.scala
Scala
apache-2.0
2,370
package tbox trait Semigroup[A] { def append(a1 : A, a2 : A) : A } object Semigroup { def apply[A](implicit ev : Semigroup[A]) = ev implicit class SemigroupOps[A](self : A) { def ++(other : A)(implicit ev : Semigroup[A]) = ev.append(self, other) } implicit val Int_Semigroup = new Semigroup[Int] {...
ChrisNeveu/TBox
src/test/scala/Semigroup.scala
Scala
bsd-3-clause
493
/** * Copyright (c) 2016 Intel Corporation  * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *       http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
ashaarunkumar/spark-tk
sparktk-core/src/test/scala/org/trustedanalytics/sparktk/frame/internal/ops/FilterDropRowsTest.scala
Scala
apache-2.0
2,602
/* * 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/accounts/frs102/boxes/AC121A.scala
Scala
apache-2.0
1,545
package com.datawizards.sparklocal.broadcast import com.datawizards.sparklocal.SparkLocalBaseTest import com.datawizards.sparklocal.session.{ExecutionEngine, SparkSessionAPI} import org.apache.spark.SparkException import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) cl...
piotr-kalanski/spark-local
src/test/scala/com/datawizards/sparklocal/broadcast/BroadcastTest.scala
Scala
apache-2.0
2,505
package org.mrgeo.mapalgebra import org.mrgeo.mapalgebra.raster.RasterMapOp import org.mrgeo.mapalgebra.utils.RasterMapOpTestVerifySupport import org.mrgeo.utils.tms.Bounds import org.scalatest.{BeforeAndAfter, FlatSpec} @SuppressWarnings(Array("all")) // Test code, not included in production class CropMapOpTest exte...
ngageoint/mrgeo
mrgeo-mapalgebra/mrgeo-mapalgebra-image/src/test/scala/org/mrgeo/mapalgebra/CropMapOpTest.scala
Scala
apache-2.0
4,604
/* * 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.classp...
martijnhoekstra/scala
src/compiler/scala/tools/nsc/classpath/DirectoryClassPath.scala
Scala
apache-2.0
14,611
package yang.flexmapping.getval import java.util import com.nsn.oss.nbi.flexmapping.EventField import yang.flexmapping.getval.handler.AttributeNameTypeHandler /** * Created by y28yang on 4/9/2016. */ class GetValFromEvent(val attributeName: String) extends GetValue { override def getValue(event: util.Map[Event...
wjingyao2008/firsttry
NextGenAct/src/main/scala/yang/flexmapping/getval/GetValFromEvent.scala
Scala
apache-2.0
417
/* * Copyright 2011-2018 GatlingCorp (http://gatling.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.org/licenses/LICENSE-2.0 * * Unless required by applic...
wiacekm/gatling
gatling-recorder/src/main/scala/io/gatling/recorder/ui/swing/frame/ConfigurationFrame.scala
Scala
apache-2.0
24,328
package mechanics /** * This class represents a warrior character, which purpose is to * simply inflcit damage on any enemy characters in range (soldiers * or otherwise). Some soldiers can also damage buildings. * This class also holds the basics of the combat system. */ class Soldier(initialLocation: Position, o...
Berthur/AgeOfLords
src/mechanics/Soldier.scala
Scala
gpl-3.0
2,440
package porteurbars import org.scalatest.FunSpec import scala.concurrent.Await import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration._ import tugboat.Docker class TemplateSpec extends FunSpec { describe("template") { it ("should render") { val template = Template("test...
softprops/docker-porteurbars
src/test/scala/TemplateSpec.scala
Scala
mit
518
package shopScala.async_reactive import com.mongodb.casbah.Imports._ import com.mongodb.casbah.MongoClient import shopScala.util.Constants._ import shopScala.util.User object AsyncCasbah extends App { val client: MongoClient = MongoClient(new MongoClientURI(MONGODB_URI)) val db: MongoDB = client(SHOP_DB_NAME) ...
hermannhueck/reactive-mongo-access
src/main/scala/shopScala/async_reactive/AsyncCasbah.scala
Scala
apache-2.0
712
/* * 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 ...
RSulzmann/openwhisk
tests/src/test/scala/org/apache/openwhisk/core/database/s3/S3AttachmentStoreAwsTests.scala
Scala
apache-2.0
1,184
/* * Copyright (C) 2011, Mysema Ltd * * 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 wri...
mysema/scalagen
scalagen/src/main/scala/com/mysema/scalagen/Annotations.scala
Scala
apache-2.0
2,369
/* * 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 ...
ConeyLiu/spark
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/server/SparkSQLOperationManager.scala
Scala
apache-2.0
7,006
/* * 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 ...
aljoscha/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/batch/sql/TableSourceTest.scala
Scala
apache-2.0
3,388
package com import org.AAA class B extends AAA
ilinum/intellij-scala
testdata/move/scl4878/after/com/B.scala
Scala
apache-2.0
48
/** * Copyright (C) 2007-2008 Scala OTP Team */ package scala.actors.db import scala.collection.mutable.Map /** * @author <a href="http://jonasboner.com">Jonas Bon&#233;r</a> */ @serializable sealed abstract case class DBMessage // ----------------------- // --- CONFIG MESSAGES --- // ----------------------- @s...
bingoyang/scala-otp
db/src/main/scala/scala/actors/db/Messages.scala
Scala
bsd-3-clause
4,838
/* * 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 ...
skonto/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
Scala
apache-2.0
52,187
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/annotation/target/param.scala
Scala
apache-2.0
1,881
class A { def m3(p: String) = /*start*/p match { case "i" => new java.util.ArrayList[Int](2) case "s" => new java.util.ArrayList[String](3) }/*end*/ } //util.ArrayList[_ >: Int with String]
ilinum/intellij-scala
testdata/typeInference/bugs4/SCL2397.scala
Scala
apache-2.0
201
package com.insweat.hssd.lib.tree trait TreeModifySupport { /** Inserts a new node named name under parent. * If parent is None, the new node will be attempted as the root node. * @throws IllegalArgumentException if * - parent is None but root already exists, * - parent is not a n...
insweat/hssd
com.insweat.hssd.lib/src/com/insweat/hssd/lib/tree/TreeModifySupport.scala
Scala
lgpl-3.0
1,022
package sample.eventuate import java.util.UUID import akka.util.Timeout import akka.pattern.ask import OrderActor._ import org.slf4j.LoggerFactory import scala.concurrent.Await import scala.concurrent.duration.DurationInt import scala.util.Random object OrderBot extends App { val locations = List( new OrderL...
volkerstampa/akka-eventuate-scala
src/main/scala/sample/eventuate/OrderBot.scala
Scala
cc0-1.0
2,872
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.api.data.validation import org.specs2.mutable._ import play.api.data._ import play.api.data.Forms._ import play.api.data.format.Formats._ import play.api.data.validation.Constraints._ import play.api.libs.json.JsonValidationEr...
Shenker93/playframework
framework/src/play/src/test/scala/play/api/data/validation/ValidationSpec.scala
Scala
apache-2.0
9,028
/* sbt -- Simple Build Tool * Copyright 2009 Mark Harrah */ package sbt import java.lang.{ Process => JProcess, ProcessBuilder => JProcessBuilder } import java.io.{ Closeable, File, IOException } import java.io.{ BufferedReader, InputStream, InputStreamReader, OutputStream, PipedInputStream, PipedOutputStream } imp...
corespring/sbt
util/process/src/main/scala/sbt/Process.scala
Scala
bsd-3-clause
11,778
/* * 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 ...
ueshin/apache-spark
sql/core/src/main/scala/org/apache/spark/sql/execution/ui/SQLAppStatusStore.scala
Scala
apache-2.0
4,937
package wandou.math.algebra /** * Implements a vector with all the same values. */ class ConstantVector private (value: Double, _size: Int) extends AbstractVector(_size) { /** * Subclasses must override to return an appropriately sparse or dense result * * @param rows the row cardinality * @param c...
wandoulabs/wandou-math
wandou-math/src/main/scala/wandou/math/algebra/ConstantVector.scala
Scala
apache-2.0
2,959
package pl.touk.nussknacker.engine.flink.util.transformer.aggregate import cats.data.NonEmptyList import com.typesafe.config.ConfigFactory import org.apache.flink.api.common.functions.RuntimeContext import org.apache.flink.api.common.typeinfo.TypeInformation import org.apache.flink.api.scala._ import org.apache.flink....
TouK/nussknacker
engine/flink/components/base/src/test/scala/pl/touk/nussknacker/engine/flink/util/transformer/aggregate/SingleSideJoinTransformerSpec.scala
Scala
apache-2.0
8,514
package controllers import play.api._ import play.api.mvc._ import play.api.cache.Cache import play.api.Play.current import play.api.db._ import play.api.libs.json._ import play.api.libs.functional.syntax._ import play.api.data._ import play.api.data.Forms._ import scala.slick.driver.PostgresDriver.simple._ import ...
wojdyga/sfdc-heroku-remotetasks
app/controllers/Application.scala
Scala
apache-2.0
3,976
package toguru.impl import toguru.api.Toggle.ToggleId import scala.util.Try object TogglesString { private def lowerCaseKeys[T](m: Map[String,T]) = m.map { case (k, v) => (k.toLowerCase, v) } /** * Parses the string for a forced activation of features. * * @param togglesString usually has a format lik...
andreas-schroeder/toguru-scala-client
src/main/scala/toguru/impl/TogglesString.scala
Scala
mit
1,567
package models import java.text.SimpleDateFormat import java.util.Date import play.api.libs.json._ import play.api.libs.functional.syntax._ case class Tweet(id: String, text: String, user: User, date: Date, sentiment: Option[Int] = None, salesforceId: Option[String] = None) object Tweet { implicit val twitterDat...
jamesward/tweet-engagement
app/models/Tweet.scala
Scala
mit
1,179
/******************************************************************************* * Copyright (c) 2019. Carl Minden * * 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 3 of the ...
carlminden/anathema-roguelike
src/com/anathema_roguelike/entities/characters/player/perks/abilities/techniques/KatanaExpertise.scala
Scala
gpl-3.0
1,346
package net.bmjames package object opts extends builder.Builder with common.Common with extra.Extra with helpdoc.Help with types.ParserFunctions { type Parser[A] = types.Parser[A] type ParserInfo[A] = types.ParserInfo[A] }
bmjames/scala-optparse-applicative
src/main/scala/net/bmjames/opts/package.scala
Scala
bsd-3-clause
240
import org.scalatest.FunSuite import vc.ksk.elevator.RequestReader import vc.ksk.util.Loan._ import java.io.BufferedReader import java.io.InputStreamReader import java.io.StringReader import org.apache.commons.io._ import vc.ksk.util.Reader import scala.collection.mutable.ArrayBuffer import vc.ksk.elevator.Person clas...
ksk9687/go_for_it_5
src/test/scala/Request.scala
Scala
mit
1,919
/* * 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 ...
bOOm-X/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/arithmetic.scala
Scala
apache-2.0
20,902
package com.thibaultdelor.scala.bigdecimalprez import scala.util.Random import java.math.MathContext import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator import java.text.SimpleDateFormat object BenchmarkBigDecimal { val ITER: Int = 10000000 def main(args: Array[String]): Unit = { val myBds: Array[BigDe...
thibaultdelor/BigDecimal_Prez
src/com/thibaultdelor/scala/bigdecimalprez/TestBigDecimal.scala
Scala
lgpl-3.0
2,239
import sbt._ import Keys._ import java.io.File // Runs the freshly-built Scrooge binary (used for integration tests and benchmarking) // How to run: `sbt genTestThrift` or `sbt genBenchmarkThrift` object ScroogeRunner { val javaNamespace = """-n thrift.defaults=thrift.java_defaults |-n thrift.colors=thrift...
benhoyt/scrooge
project/ScroogeRunner.scala
Scala
apache-2.0
9,276
/** * Copyright 2011-2017 GatlingCorp (http://gatling.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.org/licenses/LICENSE-2.0 * * Unless required by appli...
timve/gatling
gatling-commons/src/main/scala/io/gatling/commons/util/SystemProps.scala
Scala
apache-2.0
841
/* * ProblemTest.scala * Test of SFI problems. * * Created By: Avi Pfeffer (apfeffer@cra.com) * Creation Date: March 1, 2015 * * Copyright 2015 Avrom J. Pfeffer and Charles River Analytics, Inc. * See http://www.cra.com or email figaro@cra.com for information. * * See http://www.github.com/p2t2/figaro ...
scottcb/figaro
Figaro/src/test/scala/com/cra/figaro/test/algorithm/structured/ProblemTest.scala
Scala
bsd-3-clause
3,220
/* * 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 ...
spark-test/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
Scala
apache-2.0
13,841
package extruder.laws import cats.data.{OptionT, ValidatedNel} import cats.{Applicative, Eq} import extruder.core.{MultiParser, MultiShow} import org.scalacheck.Prop._ import org.scalacheck.{Arbitrary, Prop} import org.typelevel.discipline.Laws trait MultiParserShowTests[F[_], A] extends Laws { def laws: MultiParse...
janstenpickle/extruder
laws/src/main/scala/extruder/laws/MultiParserShowTests.scala
Scala
mit
1,090
/* * 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
edu/src/main/scala/org/openurp/edu/textbook/service/TextbookOrderLineCodeGenerator.scala
Scala
lgpl-3.0
904
/** * Copyright 2009 Jorge Ortiz * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
scalaj/scalaj-time
src/main/scala/org/scala_tools/time/RichLocalDateTime.scala
Scala
apache-2.0
2,308
package top.myetl.lucenerdd import org.apache.lucene.document.{Document, Field, StringField} import org.apache.spark.{SparkConf, SparkContext} import top.myetl.lucenerdd.convert.BeanToDoc import top.myetl.lucenerdd.util.Constants /** * Created by pengda on 17/1/6. */ object TestWrite { def main(args: Array[Str...
myetl/sparkLu
sparklu-core/src/test/scala/top/myetl/lucenerdd/TestWrite.scala
Scala
apache-2.0
1,209
/** * Copyright 2011-2016 GatlingCorp (http://gatling.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.org/licenses/LICENSE-2.0 * * Unless required by appli...
thkluge/gatling
gatling-commons/src/main/scala/io/gatling/commons/util/StringHelper.scala
Scala
apache-2.0
5,018
package app import service._ import util.{UsersAuthenticator, Keys} import util.Implicits._ class DashboardController extends DashboardControllerBase with IssuesService with PullRequestService with RepositoryService with AccountService with UsersAuthenticator trait DashboardControllerBase extends ControllerBase ...
campolake/gitbucketV2.1
src/main/scala/app/DashboardController.scala
Scala
apache-2.0
4,018
package gsd.linux package object cnf { type Clause = List[Int] type CNF = Iterable[Clause] implicit def toRichCNF(in: CNF) = new RichCNF(in) class RichCNF(in: CNF) { def toDimacs(varMap: Map[Int, String], gens: Set[Int] = Set()): String = { val sb = new StringBuilder for (...
scas-mdd/linux-variability-analysis-tools.fm-translation
src/main/scala/gsd/linux/cnf/package.scala
Scala
gpl-3.0
1,243
/* * MnoClassifier learns MSISDN-Operator combinations to afterwards predict Operators. * Copyright (C) 2013 MACH Connectivity GmbH * * 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...
mkroli/mnoclassifier
src/main/scala/com/github/mkroli/mnoclassifier/types/NetworkOperator.scala
Scala
gpl-2.0
948
/* * Copyright 2015 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...
scottcutts/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600a/v2/LPQ07.scala
Scala
apache-2.0
884
package memnets.ui import memnets.model._ case class Tracer( tgt: Yb, window: Int = 25, sampling: Int = 3, yScale: Option[Double] = None )(implicit model: DynamicSystem) extends Element { var name = s"Tracer for ${tgt.name}" def ui: YbUI = tgt.ui model.elements += this }
MemoryNetworks/memnets
api/src/main/scala/memnets/ui/Tracer.scala
Scala
apache-2.0
300
package com.twitter.finagle.kestrel.integration import com.twitter.conversions.time._ import com.twitter.finagle.{Kestrel, Service} import com.twitter.finagle.builder.ClientBuilder import com.twitter.finagle.kestrel.Server import com.twitter.finagle.kestrel.protocol._ import com.twitter.io.Buf import com.twitter.util....
spockz/finagle
finagle-kestrel/src/test/scala/com/twitter/finagle/kestrel/integration/InterpreterServiceTest.scala
Scala
apache-2.0
1,830
package controllers import com.mohiva.play.silhouette.api.LogoutEvent import com.mohiva.play.silhouette.api.actions._ import com.mohiva.play.silhouette.impl.providers.GoogleTotpInfo import javax.inject.Inject import play.api.mvc._ import utils.route.Calls import scala.concurrent.ExecutionContext /** * The basic app...
mohiva/play-silhouette-seed
app/controllers/ApplicationController.scala
Scala
apache-2.0
1,196
/* * 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 ...
windeye/spark
core/src/main/scala/org/apache/spark/rdd/ZippedPartitionsRDD.scala
Scala
apache-2.0
4,825
/* * 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/. */ /* Copyright (c) 2007-2016, Rickard Nilsson All rights reserved. Redistribution and use in source and binar...
sirthias/swave
core/src/test/scala/org/scalacheck/ArbitraryArities.scala
Scala
mpl-2.0
26,840
/* * 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/test/scala/org/apache/spark/sql/execution/SparkPlannerSuite.scala
Scala
apache-2.0
2,355
package algorithms.implementation /** * Created by yujieshui on 2017/5/24. */ object QyeensAttackII { case class Position(row: Int, column: Int) def solution(n: Int, q: Position, ks: Set[Position]) = { val a = q.row to(1, -1) map (row => Position(row, q.column)) takeWhile (!ks.contains(_)) val b = q...
1178615156/hackerrank
src/main/scala/algorithms/implementation/QyeensAttackII.scala
Scala
apache-2.0
1,522
package com.twitter.finagle.service import com.twitter.conversions.DurationOps._ import com.twitter.finagle._ import com.twitter.finagle.client.Transporter import com.twitter.finagle.stats.StatsReceiver import com.twitter.finagle.util.{DefaultLogger, Updater} import com.twitter.logging.Level import com.twitter.util._ ...
twitter/finagle
finagle-core/src/main/scala/com/twitter/finagle/service/FailFastFactory.scala
Scala
apache-2.0
8,249
/* * This file is part of the ToolXiT 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 or agreed t...
gnieh/toolxit-bibtex
src/main/scala/toolxit/bibtex/TernaryOption.scala
Scala
apache-2.0
2,220
package com.dwolla.cloudflare import com.dwolla.cloudflare.domain.dto.logpush.{CreateJobDTO, CreateOwnershipDTO, LogpushJobDTO, LogpushOwnershipDTO} import com.dwolla.cloudflare.domain.model.logpush._ import com.dwolla.cloudflare.domain.model.{Implicits => _, _} import io.circe.syntax._ import fs2._ import org.http4s....
Dwolla/scala-cloudflare
client/src/main/scala/com/dwolla/cloudflare/LogpushClient.scala
Scala
mit
2,651
package com.insweat.hssd.lib package object tree { type BaseTreeDataLike = TreeDataLike type EntryNode = structured.TreeNode type ValueNode = flat.TreeNode }
insweat/hssd
com.insweat.hssd.lib/src/com/insweat/hssd/lib/tree/package.scala
Scala
lgpl-3.0
170
package scray.common.key import scala.util.Sorting import scray.common.key.api.KeyGenerator import scray.common.key.api.ScrayKey import com.typesafe.scalalogging.LazyLogging /** * Create a key of Array[String]. * If array is empty return '_' * The ordering of elements in the array is ignored. */ class OrderedStr...
scray/scray
scray-querying/modules/scray-querying/src/main/scala/scray/common/key/OrderedStringKey.scala
Scala
apache-2.0
1,445
package com.danielasfregola.twitter4s.entities final case class LookupEntities(url: LookupUrls, description: LookupUrls) final case class LookupUrls(urls: Seq[LookupUrl]) final case class LookupUrl(url: String, expanded_url: String, display_url: String, indices: Seq[Int])
DanielaSfregola/twitter4s
src/main/scala/com/danielasfregola/twitter4s/entities/LookupEntities.scala
Scala
apache-2.0
276
package com.monochromeroad.play.xwiki.rendering import macros._ /** * @author Masatoshi Hayashi */ class XWikiRendererSpec extends XWikiSyntaxSpec { val componentManager = new XWikiComponentManager(getClass.getClassLoader) val macroManager = new XWikiMacroManager(componentManager) macroManager.registerMacro(...
literalice/play-xwiki-rendering
src/test/scala/com/monochromeroad/play/xwiki/rendering/XWikiRendererSpec.scala
Scala
lgpl-2.1
1,700
// stretching more flexible try/catch's legs a bit object o { try Integer.parseInt("xxxx") catch { case e => 5 } try 5 try try try 10 try try try 10 catch { case e => 20 } finally 30 try try try 10 catch { case e => 20 } finally 30 finally 40 try try try 10 catch { case e => 20 } finally 30 finally 40 final...
yusuke2255/dotty
tests/pending/pos/tryexpr.scala
Scala
bsd-3-clause
356
package com.sfxcode.nosql.mongo.dao import better.files.{File, Resource} import com.sfxcode.nosql.mongo.test.TestDatabase._ import com.sfxcode.nosql.mongo._ import org.specs2.mutable.Specification import org.specs2.specification.BeforeAll abstract class PersonSpecification extends Specification with BeforeAll { se...
sfxcode/simple-mongo
src/test/scala/com/sfxcode/nosql/mongo/dao/PersonSpecification.scala
Scala
apache-2.0
485
package com.webtrends.harness.http import java.net.{HttpURLConnection, URL} import java.util.concurrent.TimeUnit import akka.actor.{Props, ActorSystem} import akka.testkit.TestKit import akka.util.Timeout import com.webtrends.harness.TestKitSpecificationWithJUnit import com.webtrends.harness.service.messages.CheckHeal...
mjwallin1/wookiee
wookiee-core/src/test/scala/com/webtrends/harness/http/InternalHttpSpec.scala
Scala
apache-2.0
1,290
/* * Copyright 2011-2017 Chris de Vreeze * * 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 agree...
dvreeze/yaidom
jvm/src/test/scala/eu/cdevreeze/yaidom/queryapitests/indexed/XQuery3UseCasesTest.scala
Scala
apache-2.0
4,132
/* * Copyright 2015 Textocat * * 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 la...
textocat/textokit-core
Textokit.ShalTeF/src/test/scala/com/textocat/textokit/shaltef/mappings/pattern/PhrasePatternTestSuite.scala
Scala
apache-2.0
1,832
package com.trainologic.samples.petclinic.web import monix.eval.Task import cats.~> import argonaut._ import org.atnos.eff._ import syntax.eff._ import ReaderEffect._ import monix.TaskEffect._ import org.http4s._, org.http4s.dsl._ import argonaut._ import com.trainologic.samples.petclinic._ import service.ClinicServic...
Trainologic/petclinic_eff
src/main/scala/com/trainologic/samples/petclinic/web/OwnerController.scala
Scala
apache-2.0
2,011
package org.clulab.twitter4food.util import org.clulab.twitter4food.util.FileUtils._ import org.slf4j.LoggerFactory /** * Reads two or more TwitterAccount files (two lines per tweet) and merges them. <br> * Usage is MergeDatasets file1.txt file2.txt ... outfile.txt * * @author Dane Bell */ object MergeDatas...
clulab/twitter4food
src/main/scala/org/clulab/twitter4food/util/MergeDatasets.scala
Scala
apache-2.0
2,122
/* * 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/ct600/v3/B300.scala
Scala
apache-2.0
1,238
package com.github.rodbate.profiles import org.springframework.beans.factory.annotation.Value import org.springframework.stereotype.Component @Component class Spec (@Value("#{systemProperties['os.name']}") version: String) { def getVersion: String = version }
rodbate/IntegrationTest
src/main/java/com/github/rodbate/profiles/Spec.scala
Scala
apache-2.0
267
package org.reactress package object isolates { val self = ??? }
axel22/reactive-collections
src/main/scala/org/reactress/isolates/package.scala
Scala
bsd-3-clause
75
package controllers import play.api.mvc.Controller /** * Created by mati on 30/05/2014. */ object MyAssets extends Controller { def versioned(path: String) = routes.Assets.versioned(path).url }
matiwinnetou/play-soy-view-example
app/controllers/MyAssets.scala
Scala
apache-2.0
202
/** * 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...
Parth-Brahmbhatt/kafka
core/src/test/scala/unit/kafka/utils/TestUtils.scala
Scala
apache-2.0
30,322
package com.sungevity import breeze.linalg._ import breeze.stats._ package object cmaes { /** * A partial stop function that is used to evaluate whether optimal solution has been reached. */ type StopCondition = PartialFunction[(Int, DenseVector[Double]), Boolean] /** * A helper stop function that...
VolodymyrOrlov/cma-es-scala
src/main/scala/com/sungevity/cmaes/package.scala
Scala
apache-2.0
2,963
package com.danielasfregola.twitter4s.entities final case class AccessToken(key: String, secret: String)
DanielaSfregola/twitter4s
src/main/scala/com/danielasfregola/twitter4s/entities/AccessToken.scala
Scala
apache-2.0
106