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
// 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 // distributed unde...
cloudant-labs/clouseau
src/test/scala/com/cloudant/clouseau/IndexServiceSpec.scala
Scala
apache-2.0
22,647
package dao import play.api.libs.json._ import play.modules.reactivemongo.ReactiveMongoApi import play.modules.reactivemongo.json._ import reactivemongo.api.commands.WriteResult import reactivemongo.play.json.collection.JSONCollection import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.F...
denis-mludek/zencroissants
server/app/dao/Repository.scala
Scala
mit
1,745
package models import java.util.ArrayList class Route( var stations: ArrayList[String] = new ArrayList[String]() ) { }
diegofruizs/sdm
app/models/Route.scala
Scala
mit
150
/* Expand: Lift Scored structure out to the top level * * AST and Denotations both contain constructs which hide Scored[A] * instances at lower levels. This reduces exponential blowup, since * it represents Cartesian product structure in an unexpanded manner. * * In the end, however, one usually needs to expand ...
eddysystems/eddy
tarski/src/tarski/Expand.scala
Scala
bsd-2-clause
9,391
package com.basho.riak.spark.examples.streaming import java.util.UUID import kafka.serializer.StringDecoder import org.apache.spark.sql.Row import org.apache.spark.streaming.Durations import org.apache.spark.streaming.StreamingContext import org.apache.spark.streaming.kafka.KafkaUtils import org.apache.spark.{SparkCo...
basho/spark-riak-connector
examples/src/main/scala/com/basho/riak/spark/examples/streaming/StreamingTSExample.scala
Scala
apache-2.0
2,995
/** * 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...
tc-dc/kafka-mesos
src/scala/iface/0_8/ly/stealth/mesos/kafka/interface/impl/ZkUtils.scala
Scala
apache-2.0
2,789
package com.komanov.mysql.streaming import com.wix.mysql.EmbeddedMysql import com.wix.mysql.EmbeddedMysql._ import com.wix.mysql.config.Charset import com.wix.mysql.config.MysqldConfig._ import com.wix.mysql.config.SchemaConfig._ import com.wix.mysql.distribution.Version object MysqlRunner { private lazy val mysql...
dkomanov/mysql-streaming
mysql-streaming-core/src/main/scala/com/komanov/mysql/streaming/MysqlRunner.scala
Scala
mit
770
package be.cmpg.walk.neighbourhoodScoring import org.specs2.mutable.Specification import org.junit.runner.RunWith import org.specs2.runner.JUnitRunner import java.nio.file.Paths import be.cmpg.graph.Gene import be.cmpg.graph.NetworkReader import be.cmpg.graph.Network import collection.immutable.ListMap import java.io....
spulido99/SSA
src/test/scala/be/cmpg/walk/neighbourhoodScoring/UniformNetworkTest.scala
Scala
gpl-2.0
1,347
/** * Copyright (C) 2016 Orbeon, Inc. * * 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 * 2.1 of the License, or (at your option) any later version. * * This p...
orbeon/orbeon-forms
src/test/scala/org/orbeon/oxf/test/PlatformProcessorTest.scala
Scala
lgpl-2.1
787
package edu.arizona.sista.struct /** * Stores a mutable number of type T * User: mihais * Date: 3/18/13 */ class MutableNumber[T](var value:T) extends Serializable { override def hashCode = value.hashCode override def equals(other:Any):Boolean = { other match { case that:MutableNumber[T] => value ==...
michaelcapizzi/processors
src/main/scala/edu/arizona/sista/struct/MutableNumber.scala
Scala
apache-2.0
415
/* This file is part of Intake24. Copyright 2015, 2016 Newcastle University. 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 appl...
digitalinteraction/intake24
FoodDataServices/src/main/scala/uk/ac/ncl/openlab/intake24/services/NdnsCompoundFoodGroupsService.scala
Scala
apache-2.0
873
import com.typesafe.sbt.packager.archetypes.JavaAppPackaging import sbt._ import Keys._ import org.scalatra.sbt._ object KoauthsamplescalatraBuild extends Build { val Organization = "com.hunorkovacs" val Name = "koauth-sample-scala-consumer-scalatra" val Version = "1.1.1-SNAPSHOT" val ScalaVersion = "2.11.6" ...
kovacshuni/koauth-sample-scala-consumer-scalatra-heroku
project/build.scala
Scala
apache-2.0
1,306
/* * 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 ...
tzulitai/flink
flink-table/flink-table-api-scala-bridge/src/test/scala/org/apache/flink/table/api/bridge/scala/internal/StreamTableEnvironmentImplTest.scala
Scala
apache-2.0
3,880
/* * 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
mllib/src/main/scala/org/apache/spark/mllib/tree/impl/NodeIdCache.scala
Scala
apache-2.0
7,274
/* * 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 ...
aokolnychyi/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/RemoveRedundantAliasAndProjectSuite.scala
Scala
apache-2.0
5,231
/* * Copyright (C) 2016 Christopher Batey and Dogan Narinc * * 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...
mikefero/cpp-driver
gtests/src/integration/scassandra/server/server/src/main/scala/org/scassandra/server/priming/json/PrimingJsonImplicits.scala
Scala
apache-2.0
9,683
/** * Copyright 2015 Frank Austin Nothaft * * 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 ...
fnothaft/gnocchi
gnocchi-core/src/test/scala/net/fnothaft/gnocchi/sql/GenotypeStateMatrixSuite.scala
Scala
apache-2.0
1,743
package org.eol.globi.collections import org.anormcypher.{Cypher, Neo4jREST} import play.api.libs.json.{JsObject, Json, JsArray} object CollectionBuilder { def namesForTaxonExternalId(taxonId: Long): Option[(String, Option[String])] = { val language: String = """@en""" val query = Cypher( """START ta...
jhpoelen/foragus
src/main/scala/org/eol/globi/collections/CollectionBuilder.scala
Scala
mit
4,579
package no.digipost.labs.legacy import org.scalatra.test.scalatest.{ScalatraFunSuite, ScalatraSuite} import no.digipost.labs.items._ import no.digipost.labs.Settings import org.bson.types.ObjectId import no.digipost.labs.items.DbItem import java.util.Date class LegacyRedirectResourceTest extends ScalatraFunSuite { ...
digipost/labs
backend/src/test/scala/no/digipost/labs/legacy/LegacyRedirectResourceTest.scala
Scala
apache-2.0
3,224
package eu.shiftforward.icfpc2015.model import eu.shiftforward.icfpc2015.model.{ Command, PowerPhrase } import org.specs2.mutable.Specification class PowerPhraseSpec extends Specification { "The PowerPhrase" should { val powerphrase1 = PowerPhrase("ei!".toList) val powerphrase2 = PowerPhrase("lae".toList) ...
ShiftForward/icfpc2015
src/test/scala/eu/shiftforward/icfpc2015/model/PowerPhraseSpec.scala
Scala
mit
3,034
package megaforms.mapping import megaforms.FormError import megaforms.validation.Constraint import scala.collection.immutable.Seq /** * Allows for optional mappings, turning a ```Mapping[T]``` into a ```Mapping[Option[T]]``` * where the value might be missing. Will not introduce * a new level in the path, just ha...
klasekwall/megaforms
megaforms/shared/src/main/scala/megaforms/mapping/OptionalMapping.scala
Scala
apache-2.0
1,635
/* * 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 ...
nchammas/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcDeserializer.scala
Scala
apache-2.0
11,198
package finloader import org.joda.time.format.ISODateTimeFormat /** * @author Paul Lysak * Date: 15.08.13 * Time: 22:44 */ object FinloaderUtils { def parseAmount(amt: String): (Long, String) = { val parts = amt.split(" ", 2).toList val amount = (parts.head.toDouble * 100).toLong val...
paul-lysak/finloader
src/main/scala/finloader/FinloaderUtils.scala
Scala
apache-2.0
536
/* * Copyright (c) 2012 Michael Rose * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this work except in compliance with the License. * You may obtain a copy of the License in the LICENSE file, or at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
Xorlev/Simon
simon-sinatra-handler/src/main/scala/com/xorlev/simon/handlers/HaltedHandlerException.scala
Scala
apache-2.0
871
package doobie.util import shapeless._, shapeless.test._ import doobie.imports._ import doobie.contrib.postgresql.syntax._ import org.specs2.mutable.Specification import scalaz.{ Free, Coyoneda, Monad } import scalaz.syntax.monad._ object unapplyspec extends Specification { "Unapply" should { "allow use of ...
jamescway/doobie
contrib/postgresql/src/test/scala/doobie/contrib/postgresql/unapply.scala
Scala
mit
495
package lp.template.wizard object Ascii { def classToSnakeCase(name: String) = { name .replaceAll("([A-Z]+)([A-Z][a-z])", "$1_$2") .replaceAll("([a-z\\\\d])([A-Z])", "$1_$2") .toLowerCase } def classToMinusSnakeCase(name: String) = classToSnakeCase(name).replaceAll("_", "-") def classTo...
leigh-perry/template-wizard
src/main/scala/lp/template/wizard/Ascii.scala
Scala
apache-2.0
655
package org.broadinstitute.dsde.workbench.sam.model import monocle.macros.Lenses import org.broadinstitute.dsde.workbench.model._ import org.broadinstitute.dsde.workbench.sam.service.ManagedGroupService.MangedGroupRoleName import spray.json.{DefaultJsonProtocol, JsValue, RootJsonFormat} /** * Created by dvoet on 5/...
broadinstitute/sam
src/main/scala/org/broadinstitute/dsde/workbench/sam/model/SamModel.scala
Scala
bsd-3-clause
13,316
package com.mildlyskilled import akka.actor.{ActorSystem, Props} import com.mildlyskilled.actors.Client import com.mildlyskilled.core.{ConsoleAction, Network} import com.mildlyskilled.protocol.Message._ import com.typesafe.config.ConfigFactory import java.util.logging.Logger import scala.tools.jline.console.ConsoleR...
mildlyskilled/sIRC
src/main/scala/com/mildlyskilled/ClientApplication.scala
Scala
mit
2,056
package controllers.c1 import play.api.Logger import play.api.mvc._ import play.api.libs.json._ import scala.concurrent.Future /** * Created by trydofor on 7/2/15. * @see https://playframework.com/documentation/2.4.x/ScalaContentNegotiation * @see https://github.com/playframework/playframework/blob/2.4.x/document...
moilioncircle/playframework-2.4.x-scala
app/controllers/c1/S7ScalaContentNegotiation.scala
Scala
apache-2.0
997
package com.tresata.spark.scalding.demo /** * Created by Ivan Nikolov <[email protected]> on 30/01/15. */ case class FruitLine(name: String, color: String, quantity: Int)
tresata/spark-scalding
demo/src/main/scala/com/tresata/spark/scalding/demo/FruitLine.scala
Scala
apache-2.0
179
/* * Copyright 2020 Precog Data * * 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 ...
quasar-analytics/quasar
core/src/test/scala/quasar/compile/CompilerSpec.scala
Scala
apache-2.0
72,664
/** * Copyright (c) 2013, The National Archives <[email protected]> * 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/OrRuleSpec.scala
Scala
mpl-2.0
4,660
package cats.examples.typeclasses.functors import cats._ import cats.data.Nested import language.postfixOps /** * Apply extends the Functor type class with a new function, ap. * * ap is similar to map, in that we are transforming a value within a context * such as Option, List, i.e. the F in F[A]. * * ap...
carwynellis/cats-examples
src/main/scala/cats/examples/typeclasses/functors/ApplyExample.scala
Scala
mit
3,547
package doobie.free import scalaz.{ Catchable, Coyoneda, Free => F, Kleisli, Monad, ~>, \\/ } import scalaz.concurrent.Task import doobie.util.capture._ import java.lang.Class import java.lang.Object import java.lang.String import java.sql.Blob import java.sql.CallableStatement import java.sql.Clob import java.sql.C...
beni55/doobie
core/src/main/scala/doobie/free/statement.scala
Scala
mit
23,816
package gitbucket.core.service import gitbucket.core.model.{Account, GroupMember} import org.specs2.mutable.Specification import java.util.Date class AccountServiceSpec extends Specification with ServiceSpecBase { "AccountService" should { val RootMailAddress = "root@localhost" "getAllUsers" in { withTest...
intermezzo-fr/gitbucket
src/test/scala/gitbucket/core/service/AccountServiceSpec.scala
Scala
apache-2.0
2,626
package im.actor.server.group import scala.util.control.NoStackTrace object GroupErrors { final object InvalidAccessHash extends IllegalArgumentException("Invalid group access hash") with NoStackTrace final object NotAMember extends Exception("Not a group member") with NoStackTrace case object UserAlreadyJoi...
chieryw/actor-platform
actor-server/actor-peer-managers/src/main/scala/im/actor/server/group/GroupOffice.scala
Scala
mit
805
package io.grpc { trait Grpc } package bar { import io.grpc.Grpc object a extends Grpc }
som-snytt/dotty
tests/pos/i2856.scala
Scala
apache-2.0
95
package models case class MultiLineAddress(lineOne: Option[String] = None, lineTwo: Option[String] = None, lineThree: Option[String] = None)
Department-for-Work-and-Pensions/ClaimCapture
c3/app/models/MultiLineAddress.scala
Scala
mit
142
/** * Copyright 2011-2012 @WalmartLabs, a division of Wal-Mart Stores, 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 * * Unl...
walmartlabs/mupd8
src/main/scala/com/walmartlabs/mupd8/MapUpdatePool.scala
Scala
apache-2.0
8,393
package dhg.ccg.parse.scg.mcmc import dhg.util._ import dhg.ccg.cat._ import dhg.ccg.parse._ import dhg.ccg.parse.pcfg._ import dhg.ccg.parse.pcfg.mcmc._ import dhg.ccg.prob._ import scalaz._ import Scalaz._ import dhg.ccg.tagdict.StartEndTags trait ScgAlphaPriorMaker { def makeAll(guideCharts: Vector[CfgGuideChar...
dhgarrette/2015-ccg-parsing
src/main/scala/dhg/ccg/parse/scg/mcmc/ScgAlphaPriorMaker.scala
Scala
apache-2.0
10,041
import edu.uta.diql._ import org.apache.spark._ import org.apache.spark.rdd._ import org.apache.spark.sql._ import org.apache.log4j._ import org.apache.hadoop.fs._ import scala.util.Random object PageRank { def main ( args: Array[String] ) { val repeats = args(0).toInt val vertices = args(1).toInt val e...
fegaras/DIQL
benchmarks/sqlgen/PageRank.scala
Scala
apache-2.0
5,177
package com.twitter.finagle.redis.server.protocol import com.twitter.finagle.redis.server.ByteArrayKey import com.twitter.io.Buf import org.scalatest.FreeSpec import org.scalatest._ class CommandParserSpec extends FreeSpec with Matchers { "CommandParser" - { // "auxilary methods" - { // "parts separated wit...
gustavoamigo/finagle-redis-server
src/test/scala/com/twitter/finagle/redis/server/protocol/CommandParserSpec.scala
Scala
apache-2.0
2,556
package com.nutomic.ensichat.views import java.text.DateFormat import android.content.Context import com.mobsandgeeks.adapters.{Sectionizer, SimpleSectionAdapter} import com.nutomic.ensichat.R import com.nutomic.ensichat.core.messages.Message import scala.collection.JavaConverters._ object DatesAdapter { private...
Nutomic/ensichat
android/src/main/scala/com/nutomic/ensichat/views/DatesAdapter.scala
Scala
mpl-2.0
979
object NewModifiers/*<-_empty_::NewModifiers.*/ { inline val foo/*<-_empty_::NewModifiers.foo.*/ = "foo" opaque type A/*<-_empty_::NewModifiers.A#*/ = Int/*->scala::Int#*/ }
som-snytt/dotty
tests/semanticdb/expect/NewModifiers.expect.scala
Scala
apache-2.0
178
package com.github.saurfang.spark.tsne.impl import breeze.linalg._ import breeze.stats.distributions.Rand import com.github.saurfang.spark.tsne.tree.SPTree import com.github.saurfang.spark.tsne.{TSNEGradient, TSNEHelper, TSNEParam, X2P} import org.apache.spark.mllib.linalg.distributed.RowMatrix import org.apache.spark...
saurfang/spark-tsne
spark-tsne-core/src/main/scala/com/github/saurfang/spark/tsne/impl/BHTSNE.scala
Scala
apache-2.0
3,401
package mesosphere.marathon package raml import mesosphere.marathon.core.instance object LocalVolumeConversion { implicit val localVolumeIdWrites: Writes[instance.LocalVolumeId, LocalVolumeId] = Writes { localVolumeId => LocalVolumeId( runSpecId = localVolumeId.runSpecId.toRaml, containerPath = loca...
janisz/marathon
src/main/scala/mesosphere/marathon/raml/LocalVolumeConversion.scala
Scala
apache-2.0
427
package omnibus.api.streaming import akka.actor._ import akka.actor.SupervisorStrategy.Stop import scala.util.Failure import omnibus.core.actors.CommonActor import omnibus.service.streamed.{ EndOfStream, TimeOutStream } trait StreamingResponse[B] extends CommonActor { val timerCtx = metrics.timer("streaming").ti...
agourlay/omnibus
src/main/scala/omnibus/api/streaming/StreamingResponse.scala
Scala
apache-2.0
1,063
/** * Copyright: Copyright (C) 2016, ATS Advanced Telematic Systems GmbH * License: MPL-2.0 */ package org.genivi.sota.device_registry.db import java.time.Instant import org.genivi.sota.core.DatabaseSpec import org.genivi.sota.data.DeviceGenerators.{genDeviceId, genDeviceT} import org.genivi.sota.data.Namespac...
PDXostc/rvi_sota_server
device-registry/src/test/scala/org/genivi/sota/device_registry/db/DeviceRepositorySpec.scala
Scala
mpl-2.0
1,805
package uk.co.morleydev.zander.client.data.exception /** * Created by jason on 24/06/14. */ class InvalidOperationException(val operation : String) extends InvalidArgumentsException("Operation " + operation + " is not valid operation")
MorleyDev/zander.client
src/main/scala/uk/co/morleydev/zander/client/data/exception/InvalidOperationException.scala
Scala
mit
239
/* * Copyright 2020 Lenses.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 applicable law or agreed to in...
datamountaineer/stream-reactor
kafka-connect-aws-s3/src/test/scala/io/lenses/streamreactor/connect/aws/s3/source/BucketSetup.scala
Scala
apache-2.0
2,248
package wikipedia import org.apache.spark.SparkConf import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.rdd.RDD case class WikipediaArticle(title: String, text: String) { /** * @return Whether the text of this article mentions `lang` or not * @param lang Lang...
jeffreylloydbrown/classwork
BigDataAndSpark/wikipedia/src/main/scala/wikipedia/WikipediaRanking.scala
Scala
unlicense
10,556
/* * Copyright (C) 2015 The Regents of The University California. * 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 License at * * http://www.apache.org/licenses/LICENS...
uclaabs/abs
src/main/scala/shark/execution/abm/ContinuousOutputParserSimple.scala
Scala
apache-2.0
1,831
// map と無名関数を使う object FizzBuzz05 { def main(args: Array[String]) { (1 to 20) map { x => if (x % 3 == 0 && x % 5 == 0) "FizzBuzz" else if (x % 3 == 0) "Fizz" else if (x % 5 == 0) "Buzz" else x.toString } foreach println } }
mzkrelx/wakuwaku-scala1
FizzBuzz05.scala
Scala
mit
310
package gitbucket.core.ssh import gitbucket.core.model.Profile.profile.blockingApi._ import gitbucket.core.plugin.{GitRepositoryRouting, PluginRegistry} import gitbucket.core.service.{AccountService, DeployKeyService, RepositoryService, SystemSettingsService} import gitbucket.core.servlet.{CommitLogHook, Database} imp...
xuwei-k/gitbucket
src/main/scala/gitbucket/core/ssh/GitCommand.scala
Scala
apache-2.0
9,141
/* * Copyright (C) 2017 Vincibean <Andrea Bessi> * * 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. * * Thi...
Vincibean/ScalaForTheImpatient-Solutions
src/main/scala/org/vincibean/scala/impatient/chapter13/exercise8/package.scala
Scala
gpl-3.0
1,246
/* * 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 not u...
tophua/spark1.52
sql/core/src/test/scala/org/apache/spark/sql/sources/ResolvedDataSourceSuite.scala
Scala
apache-2.0
2,843
package com.airbnb.aerosolve.demo.IncomePrediction; import com.typesafe.config.ConfigFactory import org.apache.spark.{SparkContext, SparkConf} import org.slf4j.{LoggerFactory, Logger} /* * Runs an arbitrary job given a config resource name. * The config must contain * job_name : name_of_job * jobs = [ list of jobs...
sagivo/aerosolve
demo/income_prediction/src/main/scala/JobRunner.scala
Scala
apache-2.0
1,901
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
scalatest/scalatest
jvm/scalatest-test/src/test/scala/org/scalatest/tools/SuiteDiscoveryHelperSuite.scala
Scala
apache-2.0
15,712
// scalac: -Xsource:2.13 -deprecation -Xfatal-warnings // // bug 989 '42' // SI-10133 ''' ''; // SI-10120 'abc' 'utf_8' 'utf-8' '
martijnhoekstra/scala
test/files/neg/badtok-1.scala
Scala
apache-2.0
137
/* * Copyright 2016 Scalalaz Podcast Team * * 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 ...
scalalaz-podcast/scalalaz-gen
src/main/scala/ru/scalalaz/gen/writers/RSSWriter.scala
Scala
apache-2.0
3,822
package di import javax.inject.{Provider, Singleton} import slick.jdbc.JdbcProfile @Singleton class JdbcProfileProvider extends Provider[JdbcProfile] { override lazy val get = slick.jdbc.PostgresProfile }
THK-ADV/lwm-reloaded
app/di/JdbcProfileProvider.scala
Scala
mit
209
package models.Services import java.util.UUID import javax.inject.Inject import akka.actor.Status.Success import models.DAOs.{ProductDAO, UserDAO} import models.User import utils.Base64 import scala.concurrent.ExecutionContext.Implicits._ import scala.concurrent.Future /** * Created by carlos on 16/10/15. */ class ...
carlosFattor/DoceTentacaoSlick
app/models/Services/UserService.scala
Scala
apache-2.0
1,376
/** * 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
formulae/formula-disk-single/src/test/scala/fr/inria/powerapi/formula/disk/single/DiskFormulaSuite.scala
Scala
agpl-3.0
3,458
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
akopich/spark
mllib/src/main/scala/org/apache/spark/ml/feature/MinHashLSH.scala
Scala
apache-2.0
7,404
package protocol.utils import java.util.UUID import scala.concurrent.duration.{FiniteDuration, _} import scala.concurrent.{Await, Future} import akka.stream.Materializer import akka.stream.scaladsl._ import akka.stream.testkit._ import akka.stream.testkit.scaladsl._ import akka.http.scaladsl.model._ import akka.http....
fdimuccio/play2-sockjs
src/test/scala/protocol/utils/TestHelpers.scala
Scala
apache-2.0
5,664
package org.tmoerman.lab import com.holdenkarau.spark.testing.SharedSparkContext import org.apache.spark.mllib.linalg.SparseMatrix import org.apache.spark.mllib.linalg.distributed.RowMatrix import org.scalatest.{FlatSpec, Matchers} import org.tmoerman.plongeur.test.TestResources import org.tmoerman.plongeur.util.RDDFu...
tmoerman/plongeur
scala/plongeur-spark/src/test/scala/org/tmoerman/lab/MLLab.scala
Scala
mit
1,100
class A class C class B extends C class Z[+T] def goo[A, BB >: A](x: A): Z[BB] = new Z[BB] val zzzzzz : Z[C] = /*start*/goo(new B)/*end*/ //Z[B]
LPTK/intellij-scala
testdata/typeInference/bugs5/SCL4095B.scala
Scala
apache-2.0
144
package com.sksamuel.elastic4s.search.aggs import com.sksamuel.elastic4s.testkit.ElasticSugar import org.scalatest.{FreeSpec, Matchers} abstract class AbstractAggregationTest extends FreeSpec with Matchers with ElasticSugar { client.execute { createIndex("aggregations") mappings { mapping("breakingbad") ...
tyth/elastic4s
elastic4s-tests/src/test/scala/com/sksamuel/elastic4s/search/aggs/AbstractAggregationTest.scala
Scala
apache-2.0
1,733
package p class D { def ok() = () }
scala/scala
test/files/pos/t7232f/q.scala
Scala
apache-2.0
40
/** * Flexmojos is a set of maven goals to allow maven users to compile, optimize and test Flex SWF, Flex SWC, Air SWF and Air SWC. * Copyright (C) 2008-2012 Marvin Froeder <[email protected]> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publi...
chrisdutz/flexmojos
flexmojos-testing/flexmojos-test-harness/src/test/scala/net/flexmojos/oss/tests/matcher/ClassMatcher.scala
Scala
gpl-2.0
2,004
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package org.scalajs.testsuite.javalib.io impo...
nicolasstucki/scala-js
test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/io/CommonStreamsTests.scala
Scala
apache-2.0
4,306
package edu.gemini.seqexec.server /** * Created by jluhrs on 5/18/15. */ sealed trait SeqexecFailure object SeqexecFailure { /** Seqexec does not know how to deal with instrument in sequence. */ case class UnrecognizedInstrument(name: String) extends SeqexecFailure /** Something went wrong while running a s...
arturog8m/ocs
bundle/edu.gemini.seqexec.server/src/main/scala/edu/gemini/seqexec/server/SeqexecFailure.scala
Scala
bsd-3-clause
1,353
package org.jetbrains.plugins.scala package debugger import java.io.File import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicReference import com.intellij.debugger.DebuggerManagerEx import com.intellij.debugger.engine._ import com.intellij.debugger.engine.evaluation._ import com.intellij.deb...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/debugger/ScalaDebuggerTestCase.scala
Scala
apache-2.0
19,292
/* * 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 ...
ptkool/spark
mllib/src/test/scala/org/apache/spark/ml/FunctionsSuite.scala
Scala
apache-2.0
2,405
package com.munchii.sbt.resolver import com.amazonaws.services.s3.{AmazonS3, AmazonS3URI} import com.amazonaws.services.s3.model.{ListObjectsRequest, ObjectMetadata} import java.io.ByteArrayInputStream import scala.annotation.tailrec import scala.collection.JavaConverters._ case class S3DirectoryListing(uri: AmazonS3...
munchii/sbt-s3-resolver
src/main/scala/com/munchii/sbt/resolver/S3DirectoryListing.scala
Scala
apache-2.0
2,523
package io.catbird package util import cats.Eq import cats.instances.int._ import cats.instances.tuple._ import cats.kernel.laws.discipline.{ MonoidTests, SemigroupTests } import cats.laws.discipline._ import com.twitter.concurrent.AsyncStream import com.twitter.conversions.DurationOps._ class AsyncStreamSuite extend...
travisbrown/catbird
util/src/test/scala/io/catbird/util/asyncstream.scala
Scala
apache-2.0
1,026
package nodescala import scala.language.postfixOps import scala.util.{Try, Success, Failure} import scala.collection._ import scala.concurrent._ import ExecutionContext.Implicits.global import scala.concurrent.duration._ import scala.async.Async.{async, await} import org.scalatest._ import NodeScala._ import org.junit...
wezil/principles-reactive-programming
nodescala/tests.scala
Scala
mit
3,077
package ohnosequences.tabula.impl import ohnosequences.cosas._, records._, fns._, types._ import ohnosequences.cosas.ops.typeSets._ import ohnosequences.tabula._ import ImplicitConversions._ import com.amazonaws.services.dynamodbv2.model._ // TODO check region of clients case class DynamoDBExecutors(dynamoClient: Any...
ohnosequences/tabula
src/main/scala/tabula/impl/DynamoDBExecutors.scala
Scala
agpl-3.0
2,554
package net.zzorn.controls import org.scalaprops.Bean import net.zzorn.Settings /** * */ class SpeedSettings extends Settings { val strafeSpeed = p('strafeSpeed, 10f).editor(makeSlider(0, 100)) val forwardSpeed = p('forwardSpeed, 30f).editor(makeSlider(0, 100)) val backSpeed = p('backSpeed, 5f).editor(makeS...
zzorn/ludumdare20
src/main/scala/net/zzorn/controls/SpeedSettings.scala
Scala
gpl-2.0
460
//package demesne.module // //import akka.actor.{ActorSystem, Props} //import com.typesafe.config.Config //import shapeless.Lens //import demesne._ //import demesne.testkit.AggregateRootSpec //import org.scalatest.Tag //import omnibus.archetype.domain.model.core.{Entity, EntityLensProvider} //import org.scalatest.concu...
dmrolfs/demesne
core/src/test/scala/demesne/module/SimpleAggregateModuleSpec.scala
Scala
apache-2.0
13,795
/* 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 distr...
tresata/scalding
scalding-core/src/test/scala/com/twitter/scalding/ExecutionTest.scala
Scala
apache-2.0
27,527
import org.platanios.tensorflow.api._ import org.platanios.tensorflow.api.tf.learn._ import org.platanios.tensorflow.data.image.MNISTLoader import java.nio.file.Paths trait IndexTensorsExample { // #tensors_example val t1 = Tensor(1.2, 4.5) val t2 = Tensor(-0.2, 1.1) t1 + t2 == Tensor(1.0, 5.6) // #tensors_...
eaplatanios/tensorflow_scala
docs/src/main/scala/Index.scala
Scala
apache-2.0
3,056
/* * Copyright 2018 Heiko Seeberger * * 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...
hseeberger/accessus
src/test/scala/rocks/heikoseeberger/accessus/AccessusTests.scala
Scala
apache-2.0
2,995
/* * 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 ...
duynguyen/incubator-openwhisk
common/scala/src/main/scala/whisk/core/connector/MessageConsumer.scala
Scala
apache-2.0
9,141
package demo package components import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ import scalacss.ProdDefaults._ object InfoTemplate { case class Props( browsersTested: List[String], componentFilePath: String, scalacss: Boolean ) case class Backend($ : BackendScop...
aparo/scalajs-react-components
demo/src/main/scala/demo/components/InfoTemplate.scala
Scala
apache-2.0
1,671
package mimir.lenses import java.sql.SQLException import mimir.Database import mimir.algebra.Type.T import mimir.algebra._ import mimir.ctables.{Model, VGTerm} import org.apache.lucene.search.spell.{JaroWinklerDistance, LevensteinDistance, NGramDistance, StringDistance} /** * Created by vinayak on 7/20/15. */ clas...
Legacy25/mimir
mimircore/src/main/scala/mimir/lenses/SchemaMatchingLens.scala
Scala
apache-2.0
5,099
/************************************************************************ Tinaviz * ************************************************************************ This application is part of the Tinasoft project: http://tinasoft.eu Tinaviz main developer: julian.bilcke @ iscpif.fr (twitt...
moma/tinaviz
src/main/scala/eu/tinasoft/tinaviz/pipeline/Workflow.scala
Scala
gpl-3.0
24,391
/* * Copyright 2016 David Russell * * 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...
onetapbeyond/opencpu-spark-executor
src/test/scala/io/onetapbeyond/opencpu/spark/executor/OpenCPUSparkExecutorTestSpec.scala
Scala
apache-2.0
3,738
package it.seralf.apache.archive import java.net.URL import org.jsoup.Jsoup import us.codecraft.xsoup.Xsoup import scala.collection.JavaConversions._ object MBoxParser { val timeout = 3000 def getList(project: String, period: String) = { val url = s"http://mail-archives.apache.org/mod_mbox/$project/$perio...
seralf/apart
src/main/scala/it/seralf/apache/archive/MBoxParser.scala
Scala
apache-2.0
592
/* * 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 ...
hwstreaming/flink
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/table.scala
Scala
apache-2.0
34,642
package pl.touk.nussknacker.engine.avro.sink.flink import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient import org.apache.avro.{AvroRuntimeException, Schema} import org.scalatest.BeforeAndAfter import pl.touk.nussknacker.engine.avro.KafkaAvroIntegrationMockSchemaRegistry.schemaRegistryMockClient import...
TouK/nussknacker
engine/flink/avro-components-utils/src/test/scala/pl/touk/nussknacker/engine/avro/sink/flink/KafkaAvroSinkFactoryWithEditorIntegrationTest.scala
Scala
apache-2.0
5,909
package magnolia1.examples import magnolia1.* trait Eq[T]: def equal(value: T, value2: T): Boolean object Eq extends AutoDerivation[Eq]: def join[T](ctx: CaseClass[Eq, T]): Eq[T] = (v1, v2) => ctx.params.forall { p => p.typeclass.equal(p.deref(v1), p.deref(v2)) } override def split[T](ctx: SealedTrait[Eq,...
propensive/magnolia
src/examples/eq.scala
Scala
apache-2.0
824
private[this] object {{__stats_name}} { val RequestsCounter = scopedStats.scope("{{clientFuncNameForWire}}").counter("requests") val SuccessCounter = scopedStats.scope("{{clientFuncNameForWire}}").counter("success") val FailuresCounter = scopedStats.scope("{{clientFuncNameForWire}}").counter("failures") val Fai...
thirstycrow/scrooge
scrooge-generator/src/main/resources/scalagen/finagleClientFunction.scala
Scala
apache-2.0
2,950
/* * Copyright 2016 Frugal Mechanic (http://frugalmechanic.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 * * Unless required...
frugalmechanic/fm-common
js/src/main/scala/fm/common/rich/RichEvent.scala
Scala
apache-2.0
744
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, 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...
capitalone/Hydrograph
hydrograph.engine/hydrograph.engine.spark/src/main/scala/hydrograph/engine/spark/components/base/StraightPullComponentBase.scala
Scala
apache-2.0
1,020
package artie.instances import artie.Util import org.specs2.mutable.Specification final class DatabaseGeneratorInstancesSpec extends Specification { object autoimport extends DatabaseGeneratorInstances with DatabaseColumnReaderInstances import autoimport._ val table = "db_table" val createTable = s""...
pheymann/artie
core/src/it/scala/artie/instances/DatabaseGeneratorInstancesSpec.scala
Scala
mit
1,665
package org.http4s import java.time.{ZoneOffset, Instant} import org.http4s.headers.{`Set-Cookie`, `Content-Type`} import scalaz.\\/ import scalaz.concurrent.Task trait MessageOps extends Any { type Self /** Remove headers that satisfy the predicate * * @param f predicate * @return a new message ob...
hvesalai/http4s
core/src/main/scala/org/http4s/MessageOps.scala
Scala
apache-2.0
5,791
package barneshut import java.awt._ import java.awt.event._ import javax.swing._ import javax.swing.event._ import scala.collection.parallel.TaskSupport import scala.collection.parallel.Combiner import scala.collection.parallel.mutable.ParHashSet import common._ class Simulator(val taskSupport: TaskSupport, val timeS...
adihubba/progfun1
parprog1-barneshut/src/main/scala/barneshut/Simulator.scala
Scala
mit
4,023
package ammonite.runtime import java.io._ object Ser { def serialize(m: AnyRef): Array[Byte] = { val baos = new ByteArrayOutputStream() val oos = new ObjectOutputStream(baos) try { oos.writeObject(m) baos.toByteArray } finally oos.close() } def deserialize(b: Array[Byte], loader...
alexarchambault/ammonium
amm/runtime/src/main/scala/ammonite/runtime/Ser.scala
Scala
mit
1,165
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
ron8hu/spark
mllib/src/test/scala/org/apache/spark/ml/feature/SQLTransformerSuite.scala
Scala
apache-2.0
2,848