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
/* * ------------------------------------------------------------------------------------------------- * - Project: Objectify - * - Copyright: ©2014 Matygo Educational Incorporated operating as Learndot - * - Author: ...
learndot/Objectify.scala
src/main/scala/org/objectify/executor/Invoker.scala
Scala
mit
2,273
package com.dominikgruber.fpinscala.chapter03 import org.scalatest._ class Exercise19Spec extends FlatSpec with Matchers { "filter" should "remove odd numbers from a list" in { val l = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) List.filter(l)(x => x % 2 == 0) should be (List(2, 4, 6, 8, 10)) } }
TheDom/functional-programming-in-scala
src/test/scala/com/dominikgruber/fpinscala/chapter03/Exercise19Spec.scala
Scala
mit
304
import controllers.ViewSta import play.api.test.Helpers._ import play.api.test._ import scala.concurrent.Await import scala.util.Try import scala.concurrent.duration._ /** * * @author ponkotuy * Date: 15/02/13. */ object DropStage extends App { import Common._ val count = Try { args(0).toInt }.getOrElse(100) ...
ttdoda/MyFleetGirls
profiler/src/main/scala/DropStage.scala
Scala
mit
578
/* * 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 ...
ElfoLiNk/spark-bench
Terasort/src/main/scala/TerasortValidator.scala
Scala
apache-2.0
4,535
/* Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
mjanson/gdata-scala-client
src/com/google/gdata/data/media/Credit.scala
Scala
apache-2.0
1,409
package breeze.util import breeze.linalg.{DenseVector, DenseMatrix} import scala.reflect.ClassTag import breeze.math.Complex /**This utility class facilitates transparent access of breeze data objects from plain Java without Scala-related Generic complications. * @author ktakagaki * @date 03/20/2014. */ object Jav...
chen0031/breeze
math/src/main/scala/breeze/util/JavaArrayOps.scala
Scala
apache-2.0
3,810
import pl.iterators.kebs.tagged.slick.SlickSupport import slick.lifted.Isomorphism import org.scalatest.funsuite.AnyFunSuite import org.scalatest.matchers.should.Matchers class TaggedTypeIsomorphismTests extends AnyFunSuite with Matchers with SlickSupport { import pl.iterators.kebs.tagged._ trait Tag1 type Sim...
theiterators/kebs
tagged/src/test/scala/TaggedTypeIsomorphismTests.scala
Scala
mit
809
/** * Copyright 2015 Devon Miller * * 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...
aappddeevv/scala-vdom
js/src/main/scala/im/events/Delegate.scala
Scala
apache-2.0
12,207
package org.clulab.numeric.actions import org.clulab.odin.{Actions, Mention, State} import org.clulab.numeric.mentions._ import org.clulab.numeric._ import scala.collection.mutable.ArrayBuffer class NumericActions extends Actions { // // local actions // /** Constructs a NumberRange mention from a token pat...
sistanlp/processors
main/src/main/scala/org/clulab/numeric/actions/NumericActions.scala
Scala
apache-2.0
3,768
/* * Copyright 2015 Webtrends (http://www.webtrends.com) * * 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. * Yo...
pcross616/wookiee
wookiee-core/src/main/scala/com/webtrends/harness/component/Component.scala
Scala
apache-2.0
4,173
package de.zalando.beard.renderer import de.zalando.beard.ast._ import de.zalando.beard.parser.BeardTemplateParser import scala.annotation.tailrec import scala.collection.GenTraversableOnce import scala.collection.immutable.Seq import scala.util.{Success, Try} /** * @author dpersa */ case class TemplateName(name: ...
danpersa/beard
src/main/scala/de/zalando/beard/renderer/DefaultTemplateCompiler.scala
Scala
apache-2.0
7,361
/* Copyright (C) 2008-2014 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
zxsted/factorie
src/main/scala/cc/factorie/infer/MPLP.scala
Scala
apache-2.0
7,313
import java.security.KeyPairGenerator import org.scalatestplus.play.PlaySpec import pdi.jwt.{JwtAlgorithm, JwtCirce, JwtClaim, JwtJson, JwtOptions} class JwtSpec extends PlaySpec { "jwt-scala" should { "be able to encode claim and decode it" in { val keyGen = KeyPairGenerator.getInstance("RSA") key...
j5ik2o/forseti
app/open-id-provider/test/JwtSpec.scala
Scala
mit
823
/** * Utilities. * * @author Yujian Zhang <yujian{dot}zhang[at]gmail(dot)com> * * License: * GNU General Public License v2 * http://www.gnu.org/licenses/gpl-2.0.html * Copyright (C) 2013 Yujian Zhang */ package net.whily.android.worldmetro import android.app.Activity import net.whily.scaland.Util obje...
whily/worldmetro
src/main/scala/Misc.scala
Scala
gpl-2.0
618
package com.seanshubin.detangler.console import java.nio.file.Path import java.time.Clock import com.seanshubin.detangler.analysis._ import com.seanshubin.detangler.bytecode.{ClassParser, ClassParserImpl} import com.seanshubin.detangler.contract.{FilesContract, FilesDelegate} import com.seanshubin.detangler.domain._ ...
SeanShubin/detangler
console/src/main/scala/com/seanshubin/detangler/console/AfterConfigurationWiring.scala
Scala
unlicense
3,434
/* * Copyright 2022 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/vat-registration-frontend
app/models/view/test/SicAndComplianceTestSetup.scala
Scala
apache-2.0
1,619
package deburnat.transade.core.storages import deburnat.transade.core.admins.CoreAdmin.{platform, st, _st} /** * An algorithm for dynamic programming. It uses internally a two-dimensional * matrix to store the previous results. * Project name: deburnat * Date: 7/27/13 * Time: 12:10 AM * @author Patrick Meppe (...
deburnatshazem/deburnat
core/src/main/scala/deburnat/transade/core/storages/interfaces/Storage.scala
Scala
apache-2.0
742
package com.jeff.chaser.models.components.ai.states /** * State component to represent patrolling state */ class PatrolComponent extends AiStateComponent{ var side = 0 var timeInState = 5f }
jregistr/Academia
CSC455-Game-Programming/Chaser/core/src/com/jeff/chaser/models/components/ai/states/PatrolComponent.scala
Scala
mit
199
package edu.gemini.model.p1.immutable import edu.gemini.model.p1.{mutable => M} import org.specs2.mutable._ class GmosSBlueprintSpec extends Specification with SemesterProperties { "The GmosS Blueprint" should { "include the Lya395 filter, REL-1236" in { val blueprint = GmosSBlueprintImaging(GmosSFilter....
fnussber/ocs
bundle/edu.gemini.model.p1/src/test/scala/edu/gemini/model/p1/immutable/GmosSBlueprintSpec.scala
Scala
bsd-3-clause
772
package com.github.j5ik2o.reactive.redis.parser.model final case class NumberExpr(value: Long) extends Expr
j5ik2o/reactive-redis
core/src/main/scala/com/github/j5ik2o/reactive/redis/parser/model/NumberExpr.scala
Scala
mit
109
/* * Copyright 2016 Uncharted Software 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 ...
unchartedsoftware/sparkpipe-twitter-ops
src/main/scala/software/uncharted/sparkpipe/ops/community/twitter/tweets/package.scala
Scala
apache-2.0
10,608
package example import diode._ import scalatags.JsDom.all._ /** * Counter view renders the counter value and provides interaction through various buttons affecting the counter value. * * @param counter * Model reader for the counter value * @param dispatch * Dispatcher */ class CounterView(counter: ...
ochrons/diode
examples/simple/src/main/scala/example/CounterView.scala
Scala
mit
777
package org.jetbrains.sbt package settings import java.util import com.intellij.openapi.components._ import com.intellij.openapi.externalSystem.settings.{AbstractExternalSystemSettings, ExternalSystemSettingsListener} import com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil import com.intellij.openapi.mo...
whorbowicz/intellij-scala
src/org/jetbrains/sbt/settings/SbtSystemSettings.scala
Scala
apache-2.0
5,437
package com.rasterfoundry.api.tool import com.rasterfoundry.api.utils.queryparams._ import com.rasterfoundry.datamodel._ import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.directives.ParameterDirectives.parameters trait ToolQueryParameterDirective extends QueryParametersCommon { val to...
raster-foundry/raster-foundry
app-backend/api/src/main/scala/tools/QueryParameters.scala
Scala
apache-2.0
754
import leon.lang._ object ObjectAliasing5 { case class A(var x: Int) case class B(a: A) def f1(b: B): A = { b.a } }
epfl-lara/leon
src/test/resources/regression/xlang/error/ObjectAliasing5.scala
Scala
gpl-3.0
132
package shop import akka.actor.{Actor, ActorRef, ActorSystem, Props} import cart.Item import com.typesafe.config.ConfigFactory import shop.ProductCatalogMessages.TopMatching object Main extends App { val config = ConfigFactory.load() val catalogSystem = ActorSystem("productCatalog", config.getConfig("productcatal...
apisarek/reactivescala-course
src/main/scala/shop/Main.scala
Scala
mit
897
/* * Copyright 2016 Carlo Micieli * * 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...
CarloMicieli/hascalator
core/src/test/scala/io/hascalator/typeclasses/SemigroupSpec.scala
Scala
apache-2.0
1,536
package org.randi3.schema import scala.slick.driver.{BasicProfile, ExtendedProfile} import scala.slick.lifted.DDL /** * A simple example that uses statically typed queries against an in-memory * H2 database. The example data comes from Oracle's JDBC tutorial at * http://download.oracle.com/javase/tutorial/jdbc/ba...
dschrimpf/randi3-method-block
src/main/scala/org/randi3/schema/BlockRandomizationSchema.scala
Scala
gpl-3.0
2,119
/* * 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 ...
sjtu-iiot/graphx-algorithm
src/main/scala/org/apache/spark/graphx/package.scala
Scala
gpl-2.0
1,441
// Exercise 4: Collections and operations. // For this exercise, you'll want to open up the Scaladocs // for the immutable List and Map types. // // NOTE: For a list of fun problems to practice these // collection transformations, see http://projecteuler.net/. import CheapTests._ // Here are collections we'll use: ...
deanwampler/SeductionsOfScalaTutorial
tutorial-exercises/ex4-collections.scala
Scala
apache-2.0
3,791
/* * 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...
travisbrown/scalatest
src/test/scala/org/scalatest/SuiteProp.scala
Scala
apache-2.0
774
/* Copyright 2017-18, Emmanouil Antonios Platanios. 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/LICENSE-2.0 * * Unless ...
eaplatanios/tensorflow
tensorflow/scala/api/src/main/scala/org/platanios/tensorflow/api/ops/control_flow/ControlFlow.scala
Scala
apache-2.0
63,334
package lila.tournament import org.joda.time.format.ISODateTimeFormat import play.api.libs.json._ import scala.concurrent.duration._ import lila.common.LightUser import lila.common.PimpedJson._ import lila.game.{ Game, GameRepo } import lila.user.User final class JsonView( getLightUser: String => Option[LightUse...
Happy0/lila
modules/tournament/src/main/JsonView.scala
Scala
mit
5,924
package org.bitcoins.core.hd /** * Address chain (external vs. change) used by * [[https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change BIP44]], * [[https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki BIP84]] * and * [[https://github.com/bitcoin/bips/blob/master/bip-0049.mediawiki...
bitcoin-s/bitcoin-s-core
core/src/main/scala/org/bitcoins/core/hd/HDChainType.scala
Scala
mit
1,200
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
alexandru/monifu
monix-eval/shared/src/main/scala/monix/eval/instances/CatsParallelForTask.scala
Scala
apache-2.0
2,558
import com.thesamet.proto.e2e.no_box._ import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.must.Matchers import com.google.protobuf.InvalidProtocolBufferException class NoBoxSpec extends AnyFlatSpec with Matchers { val car = Car(tyre1 = Tyre(size = 10), tyre2 = Some(Tyre(size = 20))) "no_box" ...
scalapb/ScalaPB
e2e/src/test/scala/NoBoxSpec.scala
Scala
apache-2.0
2,219
/** * FILE: BuildingPossessionTest.scala * PERCORSO /Codice/sgad/servertier/src/test/scala/sgad/servertier/dataaccess/data/userdata * DATA CREAZIONE: 20 Febbraio 2014 * AUTORE: ProTech * EMAIL: protech.unipd@gmail.com * * Questo file è proprietà del gruppo ProTech, viene rilasciato sotto licenza Apache v2. * *...
protechunipd/SGAD
Codice/sgad/servertier/src/test/scala/sgad/servertier/dataaccess/data/userdata/BuildingPossessionTest.scala
Scala
apache-2.0
4,284
/* * 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/main/scala/org/elasticsearch/spark/sql/api/java/JavaEsSparkSQL.scala
Scala
apache-2.0
3,252
package org.jetbrains.plugins.scala package lang package psi package types package api package designator import com.intellij.psi._ import org.jetbrains.plugins.scala.caches.{BlockModificationTracker, RecursionManager} import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.lang.psi.api.base...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/types/api/designator/ScProjectionType.scala
Scala
apache-2.0
14,523
package com.arcusys.valamis.lesson.scorm.model.sequencing case class SequencingRulesResponse(terminationRequest: Option[TerminationRequestType.Value] = None, sequencingRequest: Option[SequencingRequestType.Value] = None) object SequencingRulesResponse { //That ugly option is to avoid type erasure clashes def te...
ViLPy/Valamis
valamis-scorm-lesson/src/main/scala/com/arcusys/valamis/lesson/scorm/model/sequencing/SequencingRulesResponse.scala
Scala
lgpl-3.0
837
package io.seldon.spark.tags import org.apache.log4j.Logger import org.apache.log4j.Level import org.apache.spark.SparkConf import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import io.seldon.spark.SparkUtils import org.apache.spark.mllib.feature.HashingTF import org.apache.spark.mllib.feature...
michaelshing/seldon-server
offline-jobs/spark/src/main/scala/io/seldon/spark/tags/UserTagAffinityCluster.scala
Scala
apache-2.0
15,637
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.3 * @date Wed Feb 20 17:39:57 EST 2013 * @see LICENSE (MIT style license file). */ package scalation.analytics.par import math.pow import scalation.linalgebra.{Fac_QR_H, VectoD} import...
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/analytics/par/Regression.scala
Scala
mit
14,748
package info.armado.ausleihe.admin.transport.responses import javax.xml.bind.annotation.{XmlAccessType, XmlAccessorType, XmlRootElement} object AddGamesResponseDTO { def apply(success: Boolean): AddGamesResponseDTO = new AddGamesResponseDTO(success) /** * Creates a new [[AddGamesResponseDTO]] instance based ...
Spielekreis-Darmstadt/lending
lending-admin-interfaces/src/main/scala/info/armado/ausleihe/admin/transport/responses/AddGamesResponseDTO.scala
Scala
apache-2.0
1,631
/* * 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 ...
starpit/openwhisk
core/controller/src/main/scala/org/apache/openwhisk/core/loadBalancer/InvokerPoolFactory.scala
Scala
apache-2.0
1,565
/** * Copyright (C) 2013 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 program i...
wesley1001/orbeon-forms
src/main/scala/org/orbeon/oxf/fr/FormRunnerHome.scala
Scala
lgpl-2.1
11,891
package org.jetbrains.plugins.scala.lang.transformation.types import org.jetbrains.plugins.scala.lang.transformation.TransformerTest /** * @author Pavel Fatin */ class ExpandTupleTypeTest extends TransformerTest(ExpandTupleType) { def testTuple2() = check( "val v: (A, B)", "val v: Tuple2[A, B]" ) d...
whorbowicz/intellij-scala
test/org/jetbrains/plugins/scala/lang/transformation/types/ExpandTupleTypeTest.scala
Scala
apache-2.0
656
/** * 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...
eljefe6a/kafka
core/src/main/scala/kafka/common/ZkNodeChangeNotificationListener.scala
Scala
apache-2.0
5,237
package org.jetbrains.plugins.scala.testingSupport.specs2.specs2_2_12_4_0_0 import org.jetbrains.plugins.scala.SlowTests import org.jetbrains.plugins.scala.testingSupport.specs2.SCL7228Test import org.junit.experimental.categories.Category /** * @author Roman.Shein * @since 11.01.2015. */ @Category(Array(classOf[S...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/testingSupport/specs2/specs2_2_12_4_0_0/Specs2_2_12_4_0_0_SCL7228Test.scala
Scala
apache-2.0
416
package com.equalinformation.bpm.poc.consumer.scala import vaadin.scala._ import vaadin.scala.server.ScaladinRequest /** * Created by bpupadhyaya on 11/28/15. */ class ActivitiConsumerUI extends UI(title = "Activiti Consumer") { val layout = new VerticalLayout { sizeFull() } val headerLayout = new Ver...
bpupadhyaya/ActivitiConsumerScala
src/main/java/com/equalinformation/bpm/poc/consumer/scala/ActivitiConsumerUI.scala
Scala
mit
3,921
package controllers import dao.{AuthorityDao, RoomDao} import database.{RoomDb, RoomTable} import models.{Room, RoomProtocol} import org.joda.time.DateTime import play.api.libs.json.{Reads, Writes} import play.api.mvc.ControllerComponents import security.LWMRole.{Admin, EmployeeRole, StudentRole} import security.Secur...
THK-ADV/lwm-reloaded
app/controllers/RoomController.scala
Scala
mit
1,879
package org.jetbrains.plugins.scala package lang package parser package parsing package patterns import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder /** * @author Alexander Podkhalyuzin * Date: 28.02.2008 */ /* * Patern ::= Pattern1 {'|' Pattern1} */ object Pattern extends Pattern { ov...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/parser/parsing/patterns/Pattern.scala
Scala
apache-2.0
946
package org.http4s package server import java.net.{Inet4Address, Inet6Address, InetSocketAddress} import org.log4s.getLogger abstract class Server[F[_]] { private[this] val logger = getLogger def address: InetSocketAddress def isSecure: Boolean def baseUri: Uri = Uri( scheme = Some(if (isSecure) Uri.Sc...
ChristopherDavenport/http4s
server/src/main/scala/org/http4s/server/Server.scala
Scala
apache-2.0
842
/* * 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 ...
daewon/incubator-s2graph
s2counter_core/src/main/scala/org/apache/s2graph/counter/util/CartesianProduct.scala
Scala
apache-2.0
1,037
/** * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package akka.remote.serialization import scala.collection.immutable import org.spark_project.protobuf.ByteString import akka.actor.ActorSelectionMessage import akka.actor.ExtendedActorSystem import akka.actor.SelectChildName import akka.actor.S...
Fincore/org.spark-project.akka
remote/src/main/scala/akka/remote/serialization/MessageContainerSerializer.scala
Scala
mit
3,240
package net.sansa_stack.rdf.flink.stats import java.io.StringWriter import net.sansa_stack.rdf.flink.utils.{Logging, NodeKey} import org.apache.flink.api.scala.{DataSet, _} import org.apache.flink.core.fs.FileSystem import org.apache.jena.graph.{Node, Triple} import org.apache.jena.vocabulary.{OWL, RDF, RDFS} /** ...
SANSA-Stack/SANSA-RDF
sansa-rdf/sansa-rdf-flink/src/main/scala/net/sansa_stack/rdf/flink/stats/RDFStatistics.scala
Scala
apache-2.0
15,074
/* * Copyright (C) 2016 Nikos Katzouris * * 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 program is d...
nkatzz/OLED
src/main/scala/oled/distributed/Utils.scala
Scala
gpl-3.0
9,174
package com.afei.akkaangular import akka.actor.ActorSystem import akka.event.Logging import akka.http.scaladsl.Http import akka.stream.ActorMaterializer import com.afei.akkaangular.api.Routes import com.typesafe.config.ConfigFactory object Main extends App with Routes{ implicit val system = ActorSystem() implici...
yuanqingfei/gdbscan-akka-d3js
jvm/src/main/scala/com/afei/akkaangular/Main.scala
Scala
apache-2.0
585
package neuroflow.core /** * @author bogdanski * @since 03.01.16 */ trait IllusionBreaker { self: Network[_, _, _] => /** * Checks if the [[Settings]] are properly defined for this network. * Throws a [[neuroflow.core.IllusionBreaker.SettingsNotSupportedException]] if not. Default behavior is no op....
zenecture/neuroflow
core/src/main/scala/neuroflow/core/IllusionBreaker.scala
Scala
apache-2.0
547
/* * Copyright (c) 2012 Dame Ningen. * All rights reserved. * * This file is part of Gausel. * * Gausel 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 o...
Uchuu/Gausel
trunk/src/test/scala/TestParser.scala
Scala
gpl-3.0
1,895
package ua.nure.lab4 import org.specs2.mutable.Specification import scala.collection.mutable /** * Class Lab4commonTest implementation. * * @author Bohdan_Suprun */ class Lab4commonTest extends Specification { "Lab4commonTest" should { "values" in { Lab4common values ((x) => x * x, 1, 3) mustEq...
isCompetent/spp
src/test/scala/ua/nure/lab4/Lab4commonTest.scala
Scala
mit
798
package processes.freeMonads.vanillaScala.single import scala.concurrent.Future import domain.Profile import play.api.mvc.AnyContent import play.api.mvc.Request import play.api.mvc.Result import processes.PatchAssignment import processes.Services import processes.freeMonads.single.NestedProgramParts import processes....
EECOLOR/scala-clean-code-patterns
src/main/scala/processes/freeMonads/vanillaScala/single/Nested.scala
Scala
mit
2,655
/*********************************************************************** * 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 ...
mdzimmerman/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/index/GeoMesaSchemaValidator.scala
Scala
apache-2.0
4,663
package io.gatling.amqp.config import akka.actor._ import com.rabbitmq.client.ConnectionFactory import com.typesafe.scalalogging.StrictLogging import io.gatling.amqp.data._ import io.gatling.amqp.event._ import io.gatling.core.config.Protocol import io.gatling.core.controller.throttle.Throttler import io.gatling.core....
maiha/gatling-amqp
src/main/scala/io/gatling/amqp/config/AmqpProtocol.scala
Scala
mit
1,942
/* * Copyright (C) 2016-2017 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.scaladsl.persistence import scala.concurrent.ExecutionContext import akka.actor.ActorSystem import akka.stream.Materializer import com.lightbend.lagom.internal.persistence.ReadSideConfig import com.lightbend.lagom...
edouardKaiser/lagom
persistence/scaladsl/src/main/scala/com/lightbend/lagom/scaladsl/persistence/PersistenceComponents.scala
Scala
apache-2.0
1,301
//: ---------------------------------------------------------------------------- //: Copyright (C) 2015 Verizon. All Rights Reserved. //: //: Licensed under the Apache License, Version 2.0 (the "License"); //: you may not use this file except in compliance with the License. //: You may obtain a copy of the Licen...
neigor/funnel
integration/src/multi-jvm/scala/IntegrationChemist.scala
Scala
apache-2.0
1,864
/* * Simple BinaryTree (Int) Implementation * Search Trees * In order * Pre order * Post order * Level order * */ package object BinaryTree { import scala.collection.mutable.Queue trait Tree { def toListInOrder : List[Int] = this match { case Empty() => Nil case Leaf(v) => v...
bgaster/scala-intro
BinaryTree/src/main/scala/BinaryTree.scala
Scala
mit
2,844
package org.airpnp.plist; import java.io.IOException class PropertyListException(private val reason: java.lang.String) extends IOException(reason) { } /** * Represent a binary property list error due to an unhandled feature. */ class PropertyListUnhandledException(private val reason: java.lang.String) extends Prop...
provegard/ScAirPnp
src/main/scala/org/airpnp/plist/Exceptions.scala
Scala
mit
523
package com.imaginea.activegrid.core.models import com.imaginea.activegrid.core.utils.ActiveGridUtils import com.typesafe.scalalogging.Logger import org.neo4j.graphdb.Node import org.slf4j.LoggerFactory /** * Created by sampathr on 22/9/16. */ case class ImageInfo(override val id: Option[Long], ...
nagulmeeras/activeGrid
src/main/scala/com/imaginea/activegrid/core/models/ImageInfo.scala
Scala
apache-2.0
3,608
package com.eevolution.context.dictionary.domain.api.service import com.eevolution.context.dictionary.api import com.eevolution.context.dictionary.domain.model.PrintLabelLineTrl /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This program is free software: you can redist...
adempiere/ADReactiveSystem
dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/api/service/PrintLabelLineTrlService.scala
Scala
gpl-3.0
1,251
/** * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package actorbintree import akka.actor.{ Props, ActorRef, ActorSystem } import org.scalatest.{ BeforeAndAfterAll, FlatSpec } import akka.testkit.{ TestProbe, ImplicitSender, TestKit } import org.scalatest.matchers.ShouldMatchers import scala.ut...
mitochon/hexercise
src/mooc/reactive/week5.actorbintree/src/test/scala/actorbintree/BinaryTreeSuite.scala
Scala
mit
4,609
// Project: scalanative-cocoa // Module: Foundation // Description: Generated with scala-obj-bindgen (with manual postprocessing) from: // objc/objc.h, objc/NSObject.h, objc/Protocol.h, Foundation/NSObject.h package cocoa.foundation import scalanative.native._ import objc._ import scala.scalanat...
jokade/scalanative-cocoa
foundation/src/main/scala/cocoa/foundation/NSCoding.scala
Scala
mit
495
package spire package math package extras import org.scalacheck.Arbitrary.{arbitrary, _} import org.scalacheck._ import org.scalatest.{Matchers, _} import org.scalatest.prop._ import spire.implicits._ import spire.laws.arb.rational import spire.math.Rational import scala.util.Try class FixedPointCheck extends PropSp...
rklaehn/spire
tests/src/test/scala/spire/math/extras/FixedPointCheck.scala
Scala
mit
5,248
/* * Copyright 2012-2013 Eligotech BV. * * 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 ...
CoderPaulK/eventsourced
es-journal/es-journal-dynamodb/src/it/scala/org/eligosource/eventsourced/journal/dynamodb/DynamoDBJournalSpec.scala
Scala
apache-2.0
965
package net.liftmodules import _root_.net.liftweb._ import util.Props import http._ /** * ==FoBo Popper Resource Module== * * This resource module provides Popper resource components to the FoBo Popper Toolkit module, * but can also be used as-is, see below for setup information. * * If you are using this...
karma4u101/FoBo
Popper/Popper-Res/src/main/scala/net/liftmodules/fobopopres/fobopopres.scala
Scala
apache-2.0
3,791
/* * 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 ...
shaneknapp/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/inputFileBlock.scala
Scala
apache-2.0
4,245
/** * 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...
MykolaB/gatling
gatling-core/src/test/scala/io/gatling/core/feeder/FeederBuilderSpec.scala
Scala
apache-2.0
5,085
package skinny.micro.contrib.json4s import skinny.json4s._ import skinny.micro.context.SkinnyContext import skinny.micro.{ Format, SkinnyMicroBase } /** * JSON response support. */ trait JSONSupport extends JSONStringOps { self: SkinnyMicroBase => /** * Returns JSON response. * * @param entity entity ...
xerial/skinny-micro
micro-json4s/src/main/scala/skinny/micro/contrib/json4s/JSONSupport.scala
Scala
bsd-2-clause
1,020
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/cypher/cypher-compiler-2.3/src/main/scala/org/neo4j/cypher/internal/compiler/v2_3/ast/rewriters/normalizeReturnClauses.scala
Scala
apache-2.0
3,866
package im.actor.server.models import org.joda.time.DateTime case class Group( id: Int, creatorUserId: Int, accessHash: Long, title: String, isPublic: Boolean, createdAt: DateTime, about: Option[String], topic: Option[String] ) object Group { def fromF...
berserkertdl/actor-platform
actor-server/actor-models/src/main/scala/im/actor/server/models/Group.scala
Scala
mit
1,132
package com.twitter.finagle.factory import com.twitter.finagle._ import com.twitter.finagle.stats._ import com.twitter.finagle.util.Rng import com.twitter.util._ import java.net.InetSocketAddress import org.junit.runner.RunWith import org.mockito.Matchers.any import org.mockito.Mockito.{times, verify, when} import org...
kristofa/finagle
finagle-core/src/test/scala/com/twitter/finagle/factory/BindingFactoryTest.scala
Scala
apache-2.0
13,387
/* * Copyright 2015 Webtrends (http://www.webtrends.com) * * 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. * Yo...
mjwallin1/wookiee
wookiee-test/src/main/scala/com/webtrends/harness/service/test/TestHarness.scala
Scala
apache-2.0
7,422
/* * 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 ...
mdespriee/spark
sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala
Scala
apache-2.0
63,774
package score.discord.canti.command import net.dv8tion.jda.api.entities.Message import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should import score.discord.canti.TestFixtures import score.discord.canti.command.api.* import score.discord.canti.util.BotMessages import score.discord.canti.wrappers...
ScoreUnder/canti-bot
src/test/scala/score/discord/canti/command/HelpCommandTest.scala
Scala
agpl-3.0
2,212
object O extends Dynamic { def applyDynamic(s: String)() {} } O./* file: this, name: applyDynamic */foo()
ilinum/intellij-scala
testdata/resolve2/dynamic/ApplyDynamic.scala
Scala
apache-2.0
109
/* * 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 ...
wangyixiaohuihui/spark2-annotation
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLExecutionSuite.scala
Scala
apache-2.0
4,943
/* * Copyright 2016 Lightcopy * * 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...
lightcopy/parquet-index
src/test/scala/com/github/lightcopy/testutil/ParquetLogging.scala
Scala
apache-2.0
1,303
package cobalt.parser.expression import cobalt.ast.AST.{DoubleConst, FloatConst, IntConst, LongConst} import cobalt.parser.ExpressionParser import cobalt.utils.TestUtil import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.{FunSpec, Matchers} @RunWith(classOf[JUnitRunner]) class ...
Michael2109/cobalt
src/test/scala/cobalt/parser/expression/NumberParserTest.scala
Scala
lgpl-3.0
1,133
class A { class B { def outer(): Unit = { def inner(): Int = 2 val fi: Function0[Int] = () => inner() } } } object Test { def foo(x: Int) = { trait B { def bar = x } class C extends B { override def bar = super[B].bar } new C().bar } def f1(x: Int) = { ...
som-snytt/dotty
tests/run/llift.scala
Scala
apache-2.0
2,578
package dotty.tools package dotc import core._ import Contexts._, Periods._, Symbols._, Phases._, Decorators._ import dotty.tools.dotc.transform.TreeTransforms.TreeTransformer import io.PlainFile import util.{SourceFile, NoSource, Stats, SimpleMap} import reporting.Reporter import transform.TreeChecker import java.io....
reactormonk/dotty
src/dotty/tools/dotc/Run.scala
Scala
bsd-3-clause
3,220
package gettingstarted import org.scalatest.FunSuite import org.scalatest.prop.TableDrivenPropertyChecks class MyModuleTest extends FunSuite with TableDrivenPropertyChecks{ import MyModule._ val fibCases = Table( ("n", "expected"), (0, 0), (1, 1), (2, 1), (3, 2), (4, 3), (5, 5), (...
ara-ta3/FunctionalProgramminginScala
src/test/scala/gettingstarted/MyModuleTest.scala
Scala
mit
690
package com.azavea.maml.eval.directive import com.azavea.maml.eval._ import com.azavea.maml.error._ import com.azavea.maml.ast._ import com.azavea.maml.eval.tile._ import com.azavea.maml.util._ import geotrellis.raster.Tile import geotrellis.raster.mapalgebra.focal import geotrellis.vector.Point import geotrellis.pro...
geotrellis/maml
jvm/src/main/scala/eval/directive/FocalDirectives.scala
Scala
apache-2.0
4,167
package macros import scala.quoted.* def oops(using Quotes) = { var v = '{0}; val q = '{ ??? match { case x => ${ v = '{x}; v } } } v } inline def test = ${oops}
lampepfl/dotty
tests/neg-macros/i7142d/Macro_1.scala
Scala
apache-2.0
169
package model import io.circe.{Decoder, Encoder} import io.circe.generic.semiauto._ import io.circe.generic.auto._ final case class CountryInfo( name: String, population: Option[Double], area: Option[Double], gini: Option[Double], currencies: List[Currency], capital: String, subregion: Opt...
radusw/cities
src/main/scala/model/CountryInfo.scala
Scala
apache-2.0
562
package task.airport package util import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.Route trait ResourcesSupport { val resources: Route = getFromResourceDirectory("") } object ResourcesSupport extends ResourcesSupport
rarrabi/task-airport
jvm/src/main/scala/task/airport/util/ResourcesSupport.scala
Scala
mit
258
package blended.security.ssl.internal import org.scalatest.FreeSpec // TODO FIXME: Review and re-enable this test class CertificateControllerSpec extends FreeSpec { // private[this] val log = Logger[CertificateControllerSpec] // private[this] val subject = "CN=test, O=blended, C=Germany" // private[this] val vali...
lefou/blended
blended.security.ssl/src/test/scala/blended/security/ssl/internal/CertificateControllerSpec.scala
Scala
apache-2.0
4,602
package controllers import scala.concurrent._ import ExecutionContext.Implicits.global import play.api._ import play.api.mvc._ import play.api.libs.json._ import trending.util._ object Application extends Controller { def index = Action.async { request => Location.getCoordinates(request.remoteAddress).map { ...
fbessadok/trendingvenues
app/controllers/Application.scala
Scala
mit
756
/* * Copyright (c) 2015 Goldman Sachs. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v. 1.0 which accompany this distribution. * The Eclipse Public License is available at http://www.ecli...
g-votte/eclipse-collections
scala-unit-tests/src/test/scala/org/eclipse/collections/impl/MultiReaderThreadSafetyTestTrait.scala
Scala
bsd-3-clause
27,093
/* Copyright 2013 Josh Conrad 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 di...
jmconrad/scala-groupcache
src/main/scala/groupcache/peers/http/HttpPeerPicker.scala
Scala
apache-2.0
2,588
package org.http4s package headers object `Retry-After` extends HeaderKey.Default
hvesalai/http4s
core/src/main/scala/org/http4s/headers/Retry-After.scala
Scala
apache-2.0
84
// the type Function1[A,B] // can be written as A => B object ArrayUtils { def filter(xs: Array[Int], pred: Function1[Int,Boolean]): Array[Int] = ??? }
agconti/scala-school
04-functions-as-values/slides/slide033.scala
Scala
mit
159