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) 2015-2015 Paulo Angelo Alves Resende <pa@pauloangelo.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as * published by the Free Software Foundation. You may not use, modify or * distribute this program und...
pauloangelo/hogzilla
src/org/hogzilla/http/package.scala
Scala
gpl-2.0
911
package filodb.cassandra import com.typesafe.config.Config import monix.execution.Scheduler import filodb.cassandra.columnstore.CassandraColumnStore import filodb.cassandra.metastore.CassandraMetaStore import filodb.coordinator.StoreFactory import filodb.core.downsample.DownsampledTimeSeriesStore import filodb.core.m...
tuplejump/FiloDB
cassandra/src/main/scala/filodb.cassandra/CassandraTSStoreFactory.scala
Scala
apache-2.0
2,615
package no.penger.export import com.sksamuel.avro4s.{Decoder, Encoder, FromRecord, SchemaFor} import no.penger.export.JsonTransform.{entityToJson, jsonToEntity} import org.scalatest.FunSuite class JsonTests extends FunSuite with TestHelpers { test("ser-des Billan") { implicit val sc = Decoder[Billan] impli...
pengerno/penger-export
src/test/scala/no/penger/export/JsonTests.scala
Scala
mit
1,367
package slick.lifted import slick.ast._ import slick.ast.Util.nodeToNodeOps import slick.model.ForeignKeyAction /** A Tag marks a specific row represented by an AbstractTable instance. */ sealed trait Tag { /** Return a new instance of the AbstractTable carrying this Tag, with a new path */ def taggedAs(path: Nod...
slick/slick
slick/src/main/scala/slick/lifted/AbstractTable.scala
Scala
bsd-2-clause
5,303
package pimpathon.frills import pimpathon.genTraversableLike.GTLGT import scala.collection.{GenTraversable, GenTraversableLike} import scalaz.{NonEmptyList, \\/} import pimpathon.frills.genTraversableLike.{GenTraversableLikeFrillsMixin, GenTraversableLikeOfDisjunctionFrillsMixin} import pimpathon.boolean._ object...
raymanoz/pimpathon
src/main/scala/pimpathon/frills/vector.scala
Scala
apache-2.0
833
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
VinACE/adam
adam-cli/src/main/scala/org/bdgenomics/adam/cli/ADAMMain.scala
Scala
apache-2.0
3,862
// scalac: -Xfatal-warnings // // Test case added to show the behaviour of functions with // by-name parameters. The evaluation behaviour was already correct. // // We did flush out a spurious "pure expression does nothing in statement position" // warning, hence -Xfatal-warnings in the flags file. object Test extends...
lrytz/scala
test/files/run/t7584.scala
Scala
apache-2.0
541
import ammonite.ops._ import ammonite.ops.ImplicitWd._ import java.io._ object folderAndDoc{ def main( args: Array[String] ): Unit = { val workingDirectory = pwd mkdir! workingDirectory/'example_folder write(workingDirectory/'example_folder/"file1.txt", "Ammonites are among the most prolific artifacts to...
samw430/git-all-scala
src/main/scala/folderAndDoc.scala
Scala
gpl-3.0
332
package com.nrinaudo.fetch import org.scalatest.{Matchers, FunSpec} import org.scalatest.prop.GeneratorDrivenPropertyChecks import org.scalacheck.{Arbitrary, Gen} object MediaTypeSpec { def main: Gen[String] = Gen.oneOf("text", "application", "video", "audio", "image", "message", "multipart") def sub: Gen[String]...
nrinaudo/fetch
core/src/test/scala/com/nrinaudo/fetch/MediaTypeSpec.scala
Scala
mit
5,137
package com.monovore.decline import java.net.{URI, URISyntaxException} import java.util.UUID import cats.data.{Validated, ValidatedNel} import cats.{Defer, Functor, SemigroupK} import scala.annotation.implicitNotFound import scala.concurrent.duration.{Duration, FiniteDuration} /** * This typeclass captures the inf...
bkirwi/decline
core/shared/src/main/scala/com/monovore/decline/Argument.scala
Scala
apache-2.0
7,289
package net.jetmq.broker import scodec.Attempt.{Failure, Successful} import scodec.bits.BitVector import scodec.{Attempt, Codec, DecodeResult} /** * Created by vitalybaum on 21/11/15. */ object PacketsHelper { def decode(b: BitVector): List[Either[Packet, Failure]] = { try { val packet = Codec[Packe...
butaji/JetMQ
core/src/main/scala/net/jetmq/broker/PacketsHelper.scala
Scala
mit
1,169
package org.aprsdroid.app import android.app.Activity import android.app.AlertDialog import android.content.{Context, DialogInterface, Intent} import android.net.Uri import android.os.Bundle import android.text.Editable import android.text.InputFilter import android.text.TextWatcher import android.util.Log import andr...
ge0rg/aprsdroid
src/PasscodeDialog.scala
Scala
gpl-2.0
4,338
/* * 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-reactive/shared/src/test/scala/monix/reactive/internal/operators/ObservableOpsReturningTaskSuite.scala
Scala
apache-2.0
8,725
/* * 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 ...
SparklineData/spark-druid-olap
src/main/scala/org/apache/spark/sql/sparklinedata/execution/metrics/DruidQueryExecutionMetric.scala
Scala
apache-2.0
2,607
package example case class Result( input : Int, status : String, calcTime : Option[String] = None, result : Option[String] = None) case class Message( msg : String )
johanprinsloo/akka-cassandra-cluster-test
src/main/scala/example/Result.scala
Scala
apache-2.0
224
package ohnosequences.sbt.nice import sbt._, Keys._ import scala.sys.process._ import scala.util._ case class Git( val workingDir: File, // NOTE: this allows to pass context to the logger (the current command with its args) val logger: (String, Seq[String]) => ProcessLogger ) { def path(file: File): String =...
ohnosequences/nice-sbt-settings
src/main/scala/Git.scala
Scala
agpl-3.0
7,738
package views.disposal_of_vehicle /** * The following are used to deduplicate code across views and tests; they are not used in view-model mappings. */ object Error { final val SubmitId = "startAgain" }
dvla/vehicles-online
app/views/disposal_of_vehicle/Error.scala
Scala
mit
208
import sbt._ object Dependencies { lazy val scalaTest: ModuleID = "org.scalatest" %% "scalatest" % "3.0.1" }
pvasilyev/scala-playground
project/Dependencies.scala
Scala
apache-2.0
112
/** * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com> */ package akka.actor import java.io.ObjectStreamException import java.util.{ LinkedList ⇒ JLinkedList, ListIterator ⇒ JListIterator } import java.util.concurrent.TimeUnit import java.util.concurrent.locks.ReentrantLock import scala.annotation.t...
jmnarloch/akka.js
akka-js-actor/shared/src/main/scala/akka/actor/RepointableActorRef.scala
Scala
bsd-3-clause
10,976
/* * 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 ...
nehabhardwaj01/incubator-carbondata
examples/spark2/src/main/scala/org/apache/carbondata/examples/CarbonPartitionExample.scala
Scala
apache-2.0
7,863
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.core.server import java.lang.management.ManagementFactory import java.util.Properties /** * Abstracts a JVM process so it can be mocked for testing or to * isolate pseudo-processes within a VM. Code using this class * should use the m...
benmccann/playframework
transport/server/play-server/src/main/scala/play/core/server/ServerProcess.scala
Scala
apache-2.0
2,229
// Copyright (C) 2011-2012 the original author or authors. // See the LICENCE.txt file distributed with this work for additional // information regarding copyright ownership. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
carstendev/Functional-Programming-in-Scala-Course
example/src/main/scala/example/Lists.scala
Scala
apache-2.0
2,471
package unof.cv.tools import unof.cv.base.charLib.CharacterLibrary import unof.cv.utils.Transforme import unof.cv.base.charLib.CMShape import unof.cv.base.charLib.LayersSelector import unof.cv.base.charLib.LayersSelector import unof.cv.base.charLib.LayersSelector import unof.cv.base.charLib.CMAdress class AppStat( ...
Hgjj/CharViewer
js/src/main/scala/unof/cv/tools/AppStat.scala
Scala
bsd-3-clause
4,085
/* * 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/B330.scala
Scala
apache-2.0
1,299
/*********************************************************************** * Copyright (c) 2013-2016 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 is ...
nagavallia/geomesa
geomesa-hbase/geomesa-hbase-spark-runtime/src/test/scala/org/locationtech/geomesa/hbase/spark/HBaseSparkProviderIntegrationTest.scala
Scala
apache-2.0
4,319
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
tophua/spark1.52
streaming/src/test/scala/org/apache/spark/streaming/FailureSuite.scala
Scala
apache-2.0
1,966
package fix package v0_8_0 import com.google.api.services.bigquery.model.TableReference import com.spotify.scio.ScioContext import com.spotify.scio.bigquery._ import com.spotify.scio.values.SCollection object FixBigQueryDeprecationsExample { def example[T <: TableRow](sc: ScioContext): SCollection[TableRow] = { ...
spotify/scio
scalafix/output-0_8/src/main/scala/fix/FixBigQueryDeprecations.scala
Scala
apache-2.0
451
import sbt._ object Dependencies { val repos = Seq( "Local Maven Repo" at "file://" + Path.userHome.absolutePath + "/.m2/repository", "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/", "Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases" ) val akkaActo...
jmarin/GeoSearch
project/Dependencies.scala
Scala
apache-2.0
1,485
/* * 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 ...
highfei2011/spark
mllib/src/test/scala/org/apache/spark/mllib/fpm/FPGrowthSuite.scala
Scala
apache-2.0
10,307
package pasties /** * Provides a class as an interface to * the pastebin API. * * The only class to use is [[pasties.PasteBinAPI]]. Example usage: * {{{ * scala> val APIInterface = PasteBinAPI("Your developer key") * }}} * * @author bmcg * @version 0.0.1 * */ // Imports import scala.util.{Try,...
b-mcg/pasties
src/main/scala/pasties/PasteBinAPI.scala
Scala
gpl-3.0
10,200
package cromwell.engine.workflow import cromwell.engine.backend.{BackendCallJobDescriptor, Backend, WorkflowDescriptor} import org.scalatest.{FlatSpec, Matchers} import org.specs2.mock.Mockito import wdl4s.Call class BackendCallKeySpec extends FlatSpec with Matchers with Mockito { it should "build correct call roo...
cowmoo/cromwell
engine/src/test/scala/cromwell/engine/workflow/BackendCallKeySpec.scala
Scala
bsd-3-clause
2,364
package gv.jleon package domain import scala.collection.JavaConverters._ import shapeless.{ HNil, :: } import config.{ RichConfigValue } object MirrorFactory { final object key { val FetchStrategy = "fetchStrategy" val Mirrors = "mirrors" } /** * Yield `(mirror prefix ⇒ mirror config) * * @...
mouchtaris/jleon
src/main/scala-2.12/gv/jleon/domain/MirrorFactory.scala
Scala
mit
2,462
/** * Created by faganpe on 22/06/2015. */ import com.typesafe.config.ConfigFactory import org.apache.spark.graphx.Edge import org.apache.spark.mllib.clustering.KMeans import org.apache.spark.mllib.fpm.FPGrowth import org.apache.spark.sql.{SaveMode, Row} import org.apache.spark.sql.Row; import org.apache.spark.rdd.RD...
faganpe/KafkaStreamingPOC
src/main/scala/FPGrowth.scala
Scala
apache-2.0
5,776
package edu.cmu.dynet /** Represents a "dimension", which you should think of as the dimension of a tensor. Can only be * constructed using factory methods in the companion object. * * @param dim */ class Dim private[dynet] (private[dynet] val dim: internal.Dim) { def size(): Long = dim.size def batchSiz...
shuheik/dynet
contrib/swig/src/main/scala/edu/cmu/dynet/Dim.scala
Scala
apache-2.0
2,019
package nasa.nccs.wps import java.text.SimpleDateFormat import java.util.Calendar import scala.xml import nasa.nccs.caching.RDDTransientVariable import nasa.nccs.cdapi.tensors.CDFloatArray import nasa.nccs.edas.rdd.CDRecord import nasa.nccs.edas.utilities.appParameters import nasa.nccs.esgf.process.UID.ndigits import ...
nasa-nccs-cds/EDAS
src/main/scala/nasa/nccs/wps/results.scala
Scala
gpl-2.0
23,984
/** * API for getting build-in resources */ package helper /** * @author ShiZhan * API for getting build-in resources */ object Resource extends Logging { def getInputStream(name: String) = getClass.getClassLoader.getResourceAsStream(name) def getString(name: String) = io.Source.fromInputStream(getIn...
ShiZhan/fs-crawler
src/main/scala/helper/Resource.scala
Scala
apache-2.0
500
package ghpages.pages import japgolly.scalajs.react._, vdom.html_<^._ import japgolly.scalajs.react.extra._ import japgolly.scalajs.react.extra.router.{RouterConfigDsl, RouterCtl} import ghpages.examples._ import ghpages.examples.util._ abstract class Example(val title: String, val routerPath: ...
matthughes/scalajs-react
gh-pages/src/main/scala/ghpages/pages/ExamplesPage.scala
Scala
apache-2.0
2,955
package im.actor.server.api.rpc.service.auth import java.net.URLEncoder import java.time.{ LocalDateTime, ZoneOffset } import cats.data.Xor import com.google.protobuf.ByteString import com.google.protobuf.wrappers.Int32Value import im.actor.api.rpc._ import im.actor.api.rpc.auth._ import im.actor.api.rpc.contacts.{ A...
actorapp/actor-platform
actor-server/actor-tests/src/test/scala/im/actor/server/api/rpc/service/auth/AuthServiceSpec.scala
Scala
agpl-3.0
40,047
package dhg.ccg.parse.inf import scala.annotation.tailrec import scala.collection.immutable.BitSet import scala.collection.mutable.{ BitSet => MBitSet } import scala.collection.mutable.{ Map => MMap } import scala.collection.mutable.{ Set => MSet } import dhg.ccg.cat._ import dhg.ccg.prob._ import dhg.ccg.util._ impor...
dhgarrette/2015-ccg-parsing
src/main/scala/dhg/ccg/parse/inf/ParamResampler.scala
Scala
apache-2.0
6,298
/* * Beangle, Agile Development Scaffold and Toolkits. * * Copyright © 2005, The Beangle Software. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License...
beangle/tomcat
core/src/main/scala/org/beangle/sas/model/Host.scala
Scala
gpl-3.0
1,036
/* * 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
base/src/main/scala/edu/latrobe/Equatable.scala
Scala
apache-2.0
1,674
package sangria.marshalling import sangria.marshalling.json4s.native._ import sangria.marshalling.testkit._ import org.json4s.JsonAST._ import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec class Json4sNativeSupportSpec extends AnyWordSpec with Matchers with MarshallingB...
sangria-graphql/sangria-json4s-native
src/test/scala/sangria/marshalling/Json4sNativeSupportSpec.scala
Scala
apache-2.0
2,013
/* ************************************************************************************* * Copyright 2016 Normation SAS ************************************************************************************* * * This file is part of Rudder. * * Rudder is free software: you can redistribute it and/or modify * it under the...
armeniaca/rudder
rudder-web/src/main/scala/com/normation/rudder/web/rest/settings/SettingsApi.scala
Scala
gpl-3.0
19,916
package github import java.time.ZonedDateTime import play.api.libs.json.JsValue /** * Subset of milestone. See https://developer.github.com/v3/issues/milestones/ */ case class Milestone ( id: Long, title: String, due: Option[ZonedDateTime], closedAt: Option[ZonedDateTime], url: String ) { def this(jsVa...
shuwada/github-burnup-chart
src/main/scala/github/Milestone.scala
Scala
apache-2.0
581
package org.scalaide.ui.internal.editor.hover import scala.tools.nsc.doc.html.HtmlPage import scala.tools.nsc.doc.base._ import scala.tools.nsc.doc.base.comment._ import scala.reflect.internal.util.SourceFile import org.eclipse.jface.internal.text.html.BrowserInformationControlInput import scala.xml.NodeSeq import sca...
aleksi-lukkarinen/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/ui/internal/editor/hover/ScalaDocHtmlProducer.scala
Scala
bsd-3-clause
5,045
/* * 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.jsinterop impor...
scala-js/scala-js
test-suite/js/src/test/scala/org/scalajs/testsuite/jsinterop/TupleTest.scala
Scala
apache-2.0
14,397
package cb008 /** * Created by liguodong on 2016/7/21. */ object UseTraitAsInterface extends App{ //The term “mixed in” is also used when extending a single object instance with a trait, like this: //val f = new Foo with Trait1 } package section01{ trait BaseSoundPlayer { def play def close ...
liguodongIOT/java-scala-mix-sbt
src/main/scala/scalacookbook/chapter08/UseTraitAsInterface.scala
Scala
apache-2.0
3,175
package db.util import cats.Monad import slick.dbio import slick.dbio.{DBIOAction, Effect, NoStream} import scala.concurrent.ExecutionContext object DBIOActionInstances { type DB[A] = DBIOAction[A, NoStream, Effect.All] implicit def dbMonad(implicit ec: ExecutionContext): Monad[DB] = new Monad[DB] { overr...
TouK/nussknacker
ui/server/src/main/scala/db/util/DBIOActionInstances.scala
Scala
apache-2.0
663
/* Copyright (c) 2014-2022 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
dmlc/xgboost
jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/Booster.scala
Scala
apache-2.0
9,845
package nl.malienkolders.htm.battle package model import net.liftweb._ import mapper._ import common._ import util._ import Helpers._ import scala.xml._ import comet.ViewerServer import dispatch._ import Http._ import net.liftweb.json._ import lib._ class AdminServer extends LongKeyedMapper[AdminServer] with IdPK wit...
hema-tournament-manager/htm
htm-battle/src/main/scala/nl/malienkolders/htm/battle/model/AdminServer.scala
Scala
apache-2.0
590
/* * Copyright (c) 2016 Brendan McAdams & Thomas Lockney * * 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 applica...
bwmcadams/quaich
http-macros/src/main/scala/codes/bytes/quaich/api/http/macros/package.scala
Scala
apache-2.0
8,315
/* * 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/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFilterSuite.scala
Scala
apache-2.0
89,261
package tastytest object DelayedChained { sealed trait Root final class LeafA extends Root object Internal { sealed trait Branch extends Root object Deeper { final class LeafB extends Branch final class LeafC extends Branch } } }
lrytz/scala
test/tasty/neg/src-3/DelayedChained.scala
Scala
apache-2.0
270
package io.prediction.examples.regression.local import io.prediction.controller.EmptyParams import io.prediction.controller.Engine import io.prediction.controller.IEngineFactory import io.prediction.controller.EngineParams import io.prediction.controller.LFirstServing import io.prediction.controller.LAlgorithm import ...
wangmiao1981/PredictionIO
examples/experimental/scala-local-regression/Run.scala
Scala
apache-2.0
4,900
/* * Copyright (c) 2015. Paweł Cesar Sanjuan Szklarz. * * 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...
paweld2/Service-Architecture-Model
infrastructure/src/main/scala/eu/pmsoft/sam/model/SamModelBuilder.scala
Scala
apache-2.0
8,836
package org.reactress package container import scala.collection._ import scala.annotation.implicitNotFound trait ReactBuilder[@spec(Int, Long, Double) -T, +Repr] extends ReactMutable.SubscriptionSet { def +=(value: T): Boolean def -=(value: T): Boolean def container: Repr } object ReactBuilder { @i...
axel22/reactive-collections
src/main/scala/org/reactress/container/ReactBuilder.scala
Scala
bsd-3-clause
526
package mesosphere.marathon.core.task.tracker.impl import akka.actor.{ ActorRef, Status } import akka.util.Timeout import mesosphere.marathon.Protos.MarathonTask import mesosphere.marathon.core.task.tracker.{ TaskTracker, TaskTrackerConfig } import mesosphere.marathon.core.task.bus.TaskChangeObservables.TaskChanged im...
yp-engineering/marathon
src/main/scala/mesosphere/marathon/core/task/tracker/impl/TaskOpProcessorImpl.scala
Scala
apache-2.0
7,870
package org.kimbasoft.akka.actor.regular import akka.actor._ import org.kimbasoft.akka.actor.regular.ActorComplex.Exceptions import org.kimbasoft.akka.actor.regular.ActorComplex.Exceptions.{ComplexRequestException, ComplexManagementException} import org.kimbasoft.akka.actor.regular.ActorComplex.Manager.{Stop, Start} i...
kimba74/sandbox-scala
src/main/scala/org/kimbasoft/akka/actor/regular/ActorComplex.scala
Scala
gpl-3.0
2,793
package com.ocado.examplesimulation.controllerapiabstraction import com.ocado.examplecontroller.SimpleController class SimpleSimulationToControllerApi(controller: SimpleController) extends SimulationToControllerApi { override def receive(obj: Any): Unit = controller.receive(obj) /** * Nothing required to shu...
ocadotechnology/AkkaSimExample
src/main/scala/com/ocado/examplesimulation/controllerapiabstraction/SimpleSimulationToControllerApi.scala
Scala
agpl-3.0
395
package suggestions package gui import scala.collection.mutable.ListBuffer import scala.collection.JavaConverters._ import scala.concurrent._ import scala.concurrent.ExecutionContext.Implicits.global import scala.swing._ import scala.util.{ Try, Success, Failure } import scala.swing.event._ import swing.Swing._ import...
gempesaw/reactive-coursera
suggestions/src/main/scala/suggestions/gui/WikipediaSuggest.scala
Scala
mit
4,295
package io.github.loustler.abstractInternalControl import org.scalatest.FunSuite /** * @author loustler * @since 07/21/2017 20:54 */ class ByNameParameterTest extends FunSuite { test("The assertion should be true") { ByNameParameter myAssert (() => 5 > 3) ByNameParameter myAssert2 5 > 3 // It is aweso...
loustler/sKaLa
src/test/scala/io/github/loustler/abstractInternalControl/ByNameParameterTest.scala
Scala
apache-2.0
330
package controllers import models.AppScanSourceXmlParser import models.UploadAppScanSourceXml import models.Validator import models.wrappers.EventReader import models.wrappers.SystemEvents import models.data.{DataCompilation, AppScanStringMatcher} import main.ParsedAppScanSourceXmlData import com.mongodb.casbah.comm...
blackboard/appscan-source-parser
src/main/Execute.scala
Scala
bsd-3-clause
5,649
/* * 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 ...
HuaweiBigData/carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/createTable/TestCreateTableWithTableComment.scala
Scala
apache-2.0
2,290
/** * Copyright (C) 2009-2011 the original author or authors. * See the notice.md file distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
dnatic09/scalate
scalate-core/src/main/scala/org/fusesource/scalate/ssp/SspCodeGenerator.scala
Scala
apache-2.0
11,529
package sbt.internal.util import org.scalacheck._ import Prop._ import Gen.{ listOf, oneOf } import ConsoleLogger.{ ESC, hasEscapeSequence, isEscapeTerminator, removeEscapeSequences } object Escapes extends Properties("Escapes") { property("genTerminator only generates terminators") = forAllNoShrink(genTermina...
Duhemm/util
internal/util-logging/src/test/scala/Escapes.scala
Scala
bsd-3-clause
5,321
package play.api.libs.json import play.api.data.validation.ValidationError sealed trait PathNode { def apply(json: JsValue): List[JsValue] def toJsonString: String private[json] def splitChildren(json: JsValue): List[Either[(PathNode, JsValue), (PathNode, JsValue)]] def set(json: JsValue, transform: JsValue ...
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/play-json/src/main/scala/play/api/libs/json/JsPath.scala
Scala
mit
20,986
package org.coursera.naptime.ari.graphql.schema import com.linkedin.data.DataMap import com.linkedin.data.schema.EnumDataSchema import org.coursera.naptime.ari.graphql.SangriaGraphQlContext import sangria.schema.EnumType import sangria.schema.EnumValue import sangria.schema.Field import scala.collection.JavaConverter...
vkuo-coursera/naptime
naptime-graphql/src/main/scala/org/coursera/naptime/ari/graphql/schema/NaptimeEnumField.scala
Scala
apache-2.0
1,251
/* * 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...
chenc10/Spark-PAF
sql/core/src/main/scala/org/apache/spark/sql/DatasetHolder.scala
Scala
apache-2.0
1,283
/* * Copyright 2015 Otto (GmbH & Co KG) * * 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...
ottogroup/flink-spector
flinkspector-datastream/src/test/scala/io/flinkspector/datastream/StreamTestBaseSpec.scala
Scala
apache-2.0
3,079
package com.lot.utils import com.typesafe.scalalogging.LazyLogging import akka.actor.ActorSystem import spray.httpx.SprayJsonSupport._ import spray.json.DefaultJsonProtocol import spray.http._ import spray.client.pipelining._ import scala.concurrent.duration._ import scala.concurrent.{ Await, Future } class WebSocke...
thimmaiah/life_of_a_trade_scala
src/main/scala/com/lot/utils/WebSocket.scala
Scala
apache-2.0
2,133
/* * 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...
keithhall/ct-calculations
src/main/scala/uk/gov/hmrc/ct/computations/calculations/ProfitAndLossCalculator.scala
Scala
apache-2.0
1,039
package com.eevolution.context.dictionary.domain.api.service import com.eevolution.context.dictionary._ import com.eevolution.context.dictionary.domain.model.ReferenceList /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This program is free software: you can redistribute...
adempiere/ADReactiveSystem
dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/api/service/ReferenceListService.scala
Scala
gpl-3.0
1,212
/* * 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/main/scala/org/apache/spark/executor/Executor.scala
Scala
apache-2.0
19,844
package japgolly.scalajs.react.extra.router /** The means by which the location should be set to a given URL. */ sealed trait SetRouteVia object SetRouteVia { /** The current URL will not be recorded in history. User can't hit ''Back'' button to reach it. * * Implemented via `replaceState` in the History A...
japgolly/scalajs-react
extra/src/main/scala/japgolly/scalajs/react/extra/router/SetRouteVia.scala
Scala
apache-2.0
1,069
/* * 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 ...
rmetzger/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/agg/AggregateITCaseBase.scala
Scala
apache-2.0
25,393
package com.owlandrews.nescala object Controller { val ButtonA = 0 val ButtonB = 1 val ButtonSelect = 2 val ButtonStart = 3 val ButtonUp = 4 val ButtonDown = 5 val ButtonLeft = 6 val ButtonRight = 7 } case class Controller() { private val buttons = scala.collection.concur...
hywelandrews/nescala
src/main/scala/com/owlandrews/nescala/Controller.scala
Scala
gpl-2.0
1,000
/* * 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/main/scala/org/apache/spark/TaskState.scala
Scala
apache-2.0
2,051
/* * 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 ...
iiisthu/sparkSdn
core/src/test/scala/org/apache/spark/storage/DiskBlockManagerSuite.scala
Scala
apache-2.0
3,780
package im.mange.acceptance.driveby.scalatest.browser import im.mange.acceptance.driveby.scalatest.WebSpecification import im.mange.common.ConditionNotMetException import im.mange.driveby.Id import im.mange.driveby.conditions._ import org.scalatest.Matchers class ClickSpec extends WebSpecification with Matchers { d...
alltonp/driveby
src/test/scala/im/mange/acceptance/driveby/scalatest/browser/ClickSpec.scala
Scala
apache-2.0
1,500
package io.github.andrebeat.pool import java.util.concurrent.BlockingQueue import org.specs2.mutable.Specification import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.{ blocking, Future } import scala.concurrent.duration._ import scala.reflect.ClassTag abstract class PoolSpec[P[_ <: AnyR...
andrebeat/scala-pool
src/test/scala/io/github/andrebeat/pool/PoolSpec.scala
Scala
mit
8,716
// http://en.wikipedia.org/wiki/Sieve_of_Sundaram def sundaramSieve(limit: Int): collection.SortedSet[Int] = { val range = (2 to limit) val primeList = range.diff(for { i <- range j <- range candidate = i + j + (2 * i * j) if i <= j && candidate <= limit } yield candidate).map(_ * 2 + 1) collection....
andystanton/euler
problems/003/scala/sundaram.scala
Scala
mit
550
package skuber.ext /** * @author David O'Riordan */ import skuber._ import skuber.ext.Ingress.Backend case class Ingress( val kind: String ="Ingress", override val apiVersion: String = extensionsAPIVersion, val metadata: ObjectMeta = ObjectMeta(), spec: Option[Ingress.Spec] = None, status: Option[Ingre...
coryfklein/skuber
client/src/main/scala/skuber/ext/Ingress.scala
Scala
apache-2.0
2,632
package com.mucahitbayar.shoppingcart.domain case class Product(name:String,price:BigDecimal) { def isEqual(other:Product):Boolean=this.name.toLowerCase==other.name.toLowerCase def isEqual(productName:String):Boolean=this.name.toLowerCase==productName.toLowerCase }
mucahitbayar/ScalaTDDShop
src/main/scala/com/mucahitbayar/shoppingcart/domain/Product.scala
Scala
mit
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 ...
dbtsai/spark
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingAggregationSuite.scala
Scala
apache-2.0
28,894
// src/main/scala/progscala2/typesystem/selftype/ButtonSubjectObserver.scala package progscala2.typesystem.selftype case class Button(label: String) { // <1> def click(): Unit = {} } object ButtonSubjectObserver extends SubjectObserver { // <2> type S = ObservableBu...
sunilrebel/programming-scala
examples/src/main/scala/progscala2/typesystem/selftype/ButtonSubjectObserver.scala
Scala
mpl-2.0
933
package com.github.rosmith.nlp.query.model class SemanticRoleArgumentModel(parent: SemanticRoleElementModel) extends Serializable { private var _type: String = null private var value: String = null private var _sentPos: Int = -1 def argType(t: String) = _type = t def argValue(v: String) = value = v d...
rosmith/giet
src/main/scala/com/github/rosmith/nlp/query/model/SemanticRoleArgumentModel.scala
Scala
mit
1,214
def greeting5(name: String)(implicit greetWord: String, ending: String):String = greetWord + " " + name + ending
grzegorzbalcerek/scala-book-examples
examples/ImplicitParameters5.scala
Scala
mit
115
// // Copyright 2016 Commonwealth Bank of Australia // // 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 ...
CommBank/coppersmith
core/src/main/scala/commbank/coppersmith/Patterns.scala
Scala
apache-2.0
1,639
import scala.language.postfixOps import scala.util._ import scala.util.control.NonFatal import scala.concurrent._ import scala.concurrent.duration._ import ExecutionContext.Implicits.global import scala.async.Async.{async, await} /** Contains basic data types, data structures and `Future` extensions. */ package o...
keshavbashyal/playground-notes
principles-of-reactive-programming/nodescala/src/main/scala/nodescala/package.scala
Scala
mit
6,142
package debop4s.core.jodatime import java.util.{Calendar, Date} import debop4s.core.conversions.jodatime._ import org.joda.time.{Chronology, LocalTime} object JodaLocalTime extends JodaLocalTime trait JodaLocalTime { type Property = LocalTime.Property final val MIDNIGHT = LocalTime.MIDNIGHT final val Midnigh...
debop/debop4s
debop4s-core/src/main/scala/debop4s/core/jodatime/JodaLocalTime.scala
Scala
apache-2.0
1,014
package com.hurence.logisland.util.spark import java.util import java.util.Objects._ import com.hurence.logisland.component.PropertyDescriptor import com.hurence.logisland.config.ControllerServiceConfiguration import com.hurence.logisland.controller._ class ControllerServiceLookupSink(createControllerServiceLookup:...
MiniPlayer/log-island
logisland-engines/logisland-spark-engine21/src/main/scala/com/hurence/logisland/util/spark/ControllerServiceLookupSink.scala
Scala
apache-2.0
1,079
/* * 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
sql/core/src/test/scala/org/apache/spark/sql/internal/ExecutorSideSQLConfSuite.scala
Scala
apache-2.0
8,152
/* * Copyright 2016-2018 SN127.fi * * 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...
jaa127/tackler
cli/src/test/scala/fi/sn127/tackler/cli/BuildInfoTest.scala
Scala
apache-2.0
1,305
/* * 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 ...
GJL/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/plan/nodes/logical/FlinkLogicalMatch.scala
Scala
apache-2.0
3,457
package com.datastax.spark.connector.cql import java.io.FileInputStream import java.security.{KeyStore, SecureRandom} import javax.net.ssl.{SSLContext, TrustManagerFactory} import org.apache.commons.io.IOUtils import org.apache.spark.SparkConf import com.datastax.driver.core.policies.ExponentialReconnectionPolicy im...
jimenefe/spark-cassandra-connector
spark-cassandra-connector/src/main/scala/com/datastax/spark/connector/cql/CassandraConnectionFactory.scala
Scala
apache-2.0
4,528
package scalaprops package scalazlaws import scalaprops.Property.forAll import scalaz._ import scalaz.std.anyVal._ object foldable { def leftFMConsistent[F[_], A](implicit F: Foldable[F], afa: Gen[F[A]], ea: Equal[A]) = forAll(F.foldableLaw.leftFMConsistent[A] _) def rightFMConsistent[F[_], A](implicit F: Fo...
scalaprops/scalaprops
scalaz/src/main/scala/scalaprops/scalazlaws/foldable.scala
Scala
mit
743
/* * Copyright (c) 2016 eBay Software Foundation. * * 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...
keshin/RTran
rtran-report/src/main/scala/com/ebay/rtran/report/Report.scala
Scala
apache-2.0
2,236
/* * @author Philip Stutz * @author Mihaela Verman * * Copyright 2013 University of Zurich * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
elaverman/cuilt
src/test/scala/com/signalcollect/dcop/tests/integration/WrmiEvalSpec.scala
Scala
apache-2.0
17,758
// Generated by the Scala Plugin for the Protocol Buffer Compiler. // Do not edit! // // Protofile syntax: PROTO3 package com.google.protobuf.`type` import _root_.scalapb.internal.compat.JavaConverters._ /** Enum value definition. * * @param name * Enum value name. * @param number * Enum value number. ...
dotty-staging/ScalaPB
scalapb-runtime/jvm/src/main/scala/com/google/protobuf/type/EnumValue.scala
Scala
apache-2.0
9,414
/* * 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
airframe-codec/src/main/scala/wvlet/airframe/codec/StandardCodec.scala
Scala
apache-2.0
1,184