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
package com.bostontechnologies.quickfixs sealed trait FixVersion trait Fix50 extends FixVersion trait Fix44 extends FixVersion object FixVersion { implicit object Fix50 extends Fix50 implicit object Fix44 extends Fix44 }
Forexware/quickfixs
src/main/scala/com/bostontechnologies/quickfixs/FixVersion.scala
Scala
apache-2.0
231
package cafesat package api import Formulas._ import asts.fol.Trees.{Or, And, freshPropositionalVariable} import scala.language.implicitConversions /** Contains helper functions for building [[Formulas.Formula Formula]]. * * The basic building blocks of formulas are true/false literals and propositional * var...
regb/cafesat
src/main/scala/cafesat/api/FormulaBuilder.scala
Scala
mit
2,550
/* * 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 ...
InspurUSA/kudu
java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala
Scala
apache-2.0
6,470
package databench.util import grizzled.slf4j.{ Logging => GrizzledLogging } import grizzled.slf4j.Logger trait Logging { @transient val logger = Logger(getClass) protected def trace(s: String) = logger.trace(s) protected def debug(s: String) = logger.debug(s) protected def info...
databench/databench
databench-runner/src/main/scala/databench/util/Logging.scala
Scala
lgpl-2.1
1,147
/* ************************************************************************************* * Copyright 2011 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-core/src/main/scala/com/normation/rudder/repository/xml/GitParseGroupLibrary.scala
Scala
gpl-3.0
6,856
package io.rout.routing import com.twitter.finagle.{Filter, Service} import com.twitter.finagle.http.{Request, Response} import io.rout.ReqRead case class FilterRequestToService[X](filter: Filter[Request,Response,X,Response] => RequestToService){ def apply(x: Filter[Request,Response,X,Response]): RequestToService...
teodimoff/rOut
routing/src/io/rout/routing/RequestComposition.scala
Scala
apache-2.0
776
package info.hupel.isabelle import scala.concurrent.{Future, Promise} import scalaz.concurrent.Task /** * Tools for setting up an [[Setup Isabelle installation]] and managing * [[Resources Isabelle sources]] and [[Resolver environments]] at runtime. * Most functions in this package have some effect on the local f...
larsrh/libisabelle
modules/setup/src/main/scala/package.scala
Scala
apache-2.0
662
package com.rikmuld.camping.features.blocks.campfire.cook import com.rikmuld.camping.CampingMod import com.rikmuld.camping.Definitions.Kit import com.rikmuld.camping.common.inventory.{SlotItem, SlotItemMeta} import com.rikmuld.camping.features.blocks.campfire.cook.equipment.CookingEquipment import com.rikmuld.corerm.g...
Rikmuld/MC-Camping
scala/com/rikmuld/camping/features/blocks/campfire/cook/ContainerCampfireCook.scala
Scala
gpl-3.0
2,686
package skinny.util import org.scalatest._ class TimeLoggingSpec extends FlatSpec with Matchers with TimeLogging { behavior of "TimeLogging" it should "work" in { val result = warnElapsedTime(10) { Thread.sleep(100) "AAA" } result should equal("AAA") } }
holycattle/skinny-framework
common/src/test/scala/skinny/util/TimeLoggingSpec.scala
Scala
mit
290
package edu.scalanus.ir object IrTreePrettyPrinter { private val INDENT = " " def apply(root: IrNode): String = { val sb = new StringBuilder apply(root, 0, sb) sb.toString() } private def apply(node: IrNode, indent: Int, sb: StringBuilder): Unit = { sb.append(INDENT * indent).append(node)....
mkaput/scalanus
src/main/scala/edu/scalanus/ir/IrTreePrettyPrinter.scala
Scala
mit
409
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js Test Suite ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013-2015, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
doron123/scala-js
test-suite/src/test/scala/org/scalajs/testsuite/javalib/PriorityQueueTest.scala
Scala
bsd-3-clause
7,337
package org.bitcoins.core.hd /** The address types covered by BIP44, BIP49 and BIP84 */ sealed abstract class AddressType object AddressType { /** Uses BIP84 address derivation, gives bech32 address (`bc1...`) */ final case object SegWit extends AddressType /** Uses BIP49 address derivation, gives SegWit addr...
bitcoin-s/bitcoin-s-core
core/src/main/scala/org/bitcoins/core/hd/AddressType.scala
Scala
mit
525
package com.twitter.scalding import com.stripe.dagon.{Dag, FunctionK, Literal, Memoize, PartialRule, Rule} import com.twitter.scalding.ExecutionOptimizationRules.ZipMap.{MapLeft, MapRight} import com.twitter.scalding.typed.functions.ComposedFunctions.ComposedMapFn import com.twitter.scalding.typed.functions.{ComposedF...
twitter/scalding
scalding-core/src/main/scala/com/twitter/scalding/ExecutionOptimizationRules.scala
Scala
apache-2.0
16,134
import scala.scalanative.native._, stdio._ object Hello { def main(args: Array[String]): Unit = { throw new Exception() } }
phdoerfler/scala-native
tests/run/errors-reported/changes/Hello-1.scala
Scala
bsd-3-clause
133
package org.phenoscape.kb.ingest.zfin import org.apache.commons.lang3.StringUtils import org.phenoscape.kb.ingest.util.Vocab import org.phenoscape.scowl._ import org.semanticweb.owlapi.apibinding.OWLManager import org.semanticweb.owlapi.model.{IRI, OWLAxiom} import scala.collection.mutable import scala.io.Source obj...
phenoscape/phenoscape-kb-ingest
src/main/scala/org/phenoscape/kb/ingest/zfin/ZFINPreviousGeneNamesToOWL.scala
Scala
mit
1,120
package com.sksamuel.elastic4s.tasks import com.sksamuel.elastic4s.ElasticsearchClientUri import com.sksamuel.elastic4s.http.{ElasticDsl, HttpClient} import com.sksamuel.elastic4s.testkit.SharedElasticSugar import org.scalatest.{FlatSpec, Matchers} class TasksTest extends FlatSpec with SharedElasticSugar with Matcher...
aroundus-inc/elastic4s
elastic4s-tests/src/test/scala/com/sksamuel/elastic4s/tasks/TasksTest.scala
Scala
apache-2.0
825
/* * Copyright 2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 the "License"; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or...
unic/ScalaWebTest
scalawebtest-integration/src/it/scala/org/scalawebtest/integration/gauge/WhitespaceInAttributesGaugeSpec.scala
Scala
apache-2.0
2,066
package ml.combust.mleap.core.feature import ml.combust.mleap.core.types._ import org.scalatest.FunSpec class RegexTokenizerModelSpec extends FunSpec { describe("regex tokenizer model") { val model = RegexTokenizerModel(regex = """\s""".r, matchGaps = true, tokenMinLength = 3, lowercaseText = true) ...
combust/mleap
mleap-core/src/test/scala/ml/combust/mleap/core/feature/RegexTokenizerModelSpec.scala
Scala
apache-2.0
627
package meowsynth object Tagline { val taglines = Seq( "Meow meow meow!", "You make me want to meow.", "What's new, pussycat?", "Purrfect harmony.", "I'd like to teach the world to meow.", "Built with cats!", "Now with twice the meow.", "No cats were harmed during the making of this m...
davegurnell/meowsynth
src/main/scala/meowsynth/Tagline.scala
Scala
apache-2.0
397
package fr.univ.nantes.roomanager.bean import java.util.Calendar import scala.beans.BeanProperty /** * @author Pierre Gaultier * @author Alexis Giraudet */ class ReservationBean(@BeanProperty var id_salle: Int, @BeanProperty var id_demandeur: Int, @BeanProperty var id_t...
Giraudux/roomanager
src/main/scala/fr/univ/nantes/roomanager/bean/ReservationBean.scala
Scala
mit
482
/* * Copyright 2016 Nicolas Rinaudo * * 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...
nrinaudo/kantan.regex
java8/src/test/scala/kantan/regex/java8/ZonedDateTimeDecoderTests.scala
Scala
apache-2.0
1,315
package blended.mgmt.repo.rest.internal import blended.akka.http.HttpContext import blended.akka.http.SimpleHttpContext import blended.domino.TypesafeConfigWatching import blended.mgmt.repo.ArtifactRepo import blended.security.BlendedPermissionManager import blended.util.logging.Logger import domino.DominoActivator im...
lefou/blended
blended.mgmt.repo.rest/src/main/scala/blended/mgmt/repo/rest/internal/ArtifactRepoRestActivator.scala
Scala
apache-2.0
1,374
package net.liftmodules import _root_.net.liftweb._ import http._ import common._ /** * ==FoBo AngularJS Toolkit Module== * This FoBo toolkit module provides AngularJS API and Resource components to the FoBo Module, * but can also be used as-is, see below for setup information. * * If you are using this mod...
karma4u101/FoBo
Angular/AngularJS/src/main/scala/net/liftmodules/foboajs/foboajs.scala
Scala
apache-2.0
21,668
package org.jetbrains.plugins.hocon.editor import com.intellij.codeInsight.editorActions.moveUpDown.StatementUpDownMover.MoveInfo import com.intellij.codeInsight.editorActions.moveUpDown.{LineMover, LineRange} import com.intellij.openapi.editor.Editor import com.intellij.openapi.util.Key import com.intellij.psi.{PsiEl...
ghik/intellij-hocon
src/org/jetbrains/plugins/hocon/editor/HoconObjectEntryMover.scala
Scala
apache-2.0
9,904
/* * 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/nisp-frontend
test/uk/gov/hmrc/nisp/helpers/TestAccountBuilder.scala
Scala
apache-2.0
7,163
/** * @author Yuuto */ package yuuto.enhancedinventories.compat.inventorytools import net.minecraft.block.Block import net.minecraft.entity.player.EntityPlayer import net.minecraft.init.Blocks import net.minecraft.item.ItemStack import net.minecraft.tileentity.TileEntity import net.minecraft.world.World import net.m...
AnimeniacYuuto/EnhancedInventories
src/main/scala/yuuto/enhancedinventories/compat/inventorytools/ConnectiveDollyBlockHandler.scala
Scala
gpl-2.0
4,628
// Copyright 2016 Carl Pulley import com.typesafe.sbt.SbtGhPages.ghpages import com.typesafe.sbt.SbtGit.git import com.typesafe.sbt.SbtSite.site import sbt.Keys._ object ScalaDoc { val settings = site.settings ++ ghpages.settings ++ site.includeScaladoc() ++ Seq(git.remoteRepo := s"https://git...
carlpulley/docker-compose-testkit
project/ScalaDoc.scala
Scala
apache-2.0
361
/* * Copyright (c) 2014-2015 by its authors. Some rights reserved. * See the project homepage at: http://www.monifu.org * * 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://...
virtualirfan/monifu
monifu/shared/src/main/scala/monifu/reactive/internals/operators/groupBy.scala
Scala
apache-2.0
4,710
/* * Copyright (c) 2013-2015 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 available at * http://www.opensource.org/licenses/apache2.0.php. ...
vpipkt/geomesa
geomesa-filter/src/main/scala/org/locationtech/geomesa/filter/PropertyLiteral.scala
Scala
apache-2.0
689
package leo.modules.calculus import leo.datastructures.{Signature, Term} import leo.datastructures.Term._ import leo.modules.HOLSignature._ import leo.{Checked, LeoTestSuite} /** * Created by lex on 09.01.17. */ class MatchingTest extends LeoTestSuite { private val IMPL = HOPatternMatching // HOMatching priv...
leoprover/Leo-III
src/test/scala/leo/modules/calculus/MatchingTest.scala
Scala
bsd-3-clause
5,817
/* * 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 ...
chuckchen/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala
Scala
apache-2.0
28,510
package spark.storage import java.util.LinkedHashMap import java.util.concurrent.ArrayBlockingQueue import spark.{SizeEstimator, Utils} import java.nio.ByteBuffer import collection.mutable.ArrayBuffer /** * Stores blocks in memory, either as ArrayBuffers of deserialized Java objects or as * serialized ByteBuffers. ...
baeeq/incubator-spark
core/src/main/scala/spark/storage/MemoryStore.scala
Scala
bsd-3-clause
8,885
package parse import models.Coord import play.api.libs.functional.syntax._ import play.api.libs.json._ /** GoogleJsonRead * @author Stephen Johnson */ object GoogleJsonRead { implicit val coordReads: Reads[Coord] = ((JsPath \\ "lat").read[Double] and (JsPath \\ "lng").read[Double]) (Coord.apply _) }
peregin55/travel
app/parse/GoogleJsonRead.scala
Scala
gpl-3.0
310
package de.tu_berlin.impro3.spark.spatio_temporal_dynamics.metrics import de.tu_berlin.impro3.spark.spatio_temporal_dynamics._ import geo.Location import model.HashTag import org.apache.spark.rdd.RDD /** The spread metric. */ object Spread { def apply(set: OccurSet): Double = { val occurs = set.values.toStr...
joroKr21/spatio-temporal-dynamics
impro3-ws14-spark/src/main/scala/de/tu_berlin/impro3/spark/spatio_temporal_dynamics/metrics/Spread.scala
Scala
apache-2.0
730
package controllers.s_self_employment import play.api.Play._ import play.api.mvc._ import models.view.CachedClaim import models.domain._ import models.view.Navigable import models.view.ClaimHandling.ClaimResult import play.api.i18n._ object SelfEmployment extends Controller with CachedClaim with Navigable with I18nSu...
Department-for-Work-and-Pensions/ClaimCapture
c3/app/controllers/s_self_employment/SelfEmployment.scala
Scala
mit
1,839
package com.socrata.http.server.routing import org.scalatest.{MustMatchers, FunSuite} import scala.collection.LinearSeq class PathTreeBuilderTest extends FunSuite with MustMatchers { // It would be nice to just make sure that the builders produce the correct pathtrees. // Unfortunately, they introduce an anonymou...
socrata-platform/socrata-http
socrata-http-server/src/test/scala/com/socrata/http/server/routing/PathTreeBuilderTest.scala
Scala
apache-2.0
4,933
package coder.simon.slots.common object Utils { type Substitute = (Symbol, Symbol) => Option[Symbol] def toSymbolArray(reelsConfig: Array[Array[Int]]) = reelsConfig.map(l => l.map(Symbol)) def toSymbolPayTable(rawPayTable: Map[Int, Map[Int, Int]]) = rawPayTable.map { case (s, m) => (Symbol(s), m) }.toMap ...
erlangxk/fpscala
src/main/scala/coder/simon/slots/common/Utils.scala
Scala
mit
1,639
package sampler.empirical import org.scalatest.FreeSpec class EmpiricalTableTest extends FreeSpec { "Observation count" in pending "Probability table" in pending }
tearne/Sampler
sampler-core/src/test/scala/sampler/empirical/EmpiricalTableTest.scala
Scala
apache-2.0
172
package com.twitter.finagle.http.codec /** * ChannelBufferUsageTracker tracks the channel buffer used by outstanding requests. An exception * will be thrown if the total size exceeds a limit. * ChannelBufferManager uses ChannelBufferUsageTracker. */ import com.twitter.finagle.stats.{NullStatsReceiver, StatsReceiv...
travisbrown/finagle
finagle-http/src/main/scala/com/twitter/finagle/http/codec/ChannelBufferManager.scala
Scala
apache-2.0
3,234
package lila.tournament import org.specs2.mutable.Specification object ArenaTournamentColorHistoryTest { def apply(s: String): ArenaTournamentColorHistory = { s.foldLeft(ArenaTournamentColorHistory(None)) { (acc, c) => c match { case 'W' => acc.incColor(1) case 'B' => acc.incColor(-1) ...
antma/scala-tools
src/test/scala/ArenaTournamentColorHistoryTest.scala
Scala
mit
2,496
/* * Copyright 2010 LinkedIn * * 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 w...
tcrayford/hafka
kafka/core/src/main/scala/kafka/producer/DefaultPartitioner.scala
Scala
bsd-3-clause
889
package org.jetbrains.plugins.scala.lang.psi.impl.search import com.intellij.openapi.util.Pair import com.intellij.psi._ import com.intellij.psi.impl.search.JavaOverridingMethodsSearcher import com.intellij.psi.impl.source.PsiMethodImpl import com.intellij.psi.search.searches.{AllOverridingMethodsSearch, OverridingMet...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/search/JavaRawOverridingSearcher.scala
Scala
apache-2.0
5,065
package org.jetbrains.plugins.scala package annotator package gutter import com.intellij.codeInsight.navigation.actions.GotoDeclarationHandler import com.intellij.openapi.actionSystem.DataContext import com.intellij.openapi.editor.Editor import com.intellij.psi.{PsiElement, PsiFile, PsiMethod, ResolveResult} import or...
triplequote/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/annotator/gutter/ScalaGoToDeclarationHandler.scala
Scala
apache-2.0
5,051
package ca.aretex.labs.data import java.io.InputStream import ca.aretex.labs.data.jsonmodel.Person import org.junit.Test /** * Created by Choungmo Fofack on 5/4/17. */ class LazyJsonArrayReaderEngineTest { val expectedSmallSize = 7 val expectedLargeSize = 10000 @Test def testReadStreamSmallFile() = { ...
nicaiseeric/lazy-json
src/test/scala/ca/aretex/labs/data/LazyJsonArrayReaderEngineTest.scala
Scala
apache-2.0
1,087
/* Copyright 2012 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...
twitter/chill
chill-scala/src/main/scala/com/twitter/chill/EnumerationSerializer.scala
Scala
apache-2.0
1,772
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2015-2021 Andre White. * * 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 * * https://www.apache.org/licenses/LICENSE...
adarro/ddo-calc
subprojects/common/ddo-core/src/main/scala/io/truthencode/ddo/model/feats/ShieldProficiency.scala
Scala
apache-2.0
1,382
/* ************************************************************************************* * Copyright 2011 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/bootstrap/liftweb/LiftInitContextListener.scala
Scala
gpl-3.0
4,717
package com.betfair.robots.racing import akka.actor.Actor import com.betfair.domain.{LimitOrder, PersistenceType, PlaceInstruction, Side} import com.betfair.service.BetfairServiceNG import org.joda.time import org.joda.time.{DateTime, DateTimeZone} import scala.collection.mutable import scala.concurrent._ import scal...
city81/betfair-service-ng
src/main/scala/com/betfair/robots/racing/MonitorPrices.scala
Scala
bsd-2-clause
1,711
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
holdenk/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/Columnar.scala
Scala
apache-2.0
22,532
package com.fingerco package processors // Spark import org.apache.spark.streaming.kinesis._ import org.apache.spark.streaming.{ Duration, StreamingContext } import org.apache.spark.streaming.dstream.DStream import org.apache.spark.storage.StorageLevel import com.amazonaws.services.kinesis.clientlibrary.lib.worker.Ini...
fingerco/watcher-url-scraper
src/main/scala/com/fingerco/processors/ScrapeStreamProcessor.scala
Scala
apache-2.0
1,958
import sbt._ import Keys._ object MyBuild extends Build { lazy val buildSettings = Defaults.defaultSettings ++ Seq( version := "0.1-SNAPSHOT", organization := "com.simba", scalaVersion := Option(System.getProperty("scala.version")).getOrElse("2.10.4") ) lazy val sprayactorsnippets = Project( id ...
ShiZhan/live-triples
project/Build.scala
Scala
apache-2.0
455
package xsbt.test import java.io.File import org.specs2.mutable.Specification import org.specs2.matcher.FileMatchers import sbt._ import sbt.io.IO import sbt.io.Path._ object FileCommandsSpec extends Specification with FileMatchers { "The touch command" should { "touch a file that doesn't exist" in withTmpDir ...
mdedetrich/sbt
scripted/base/src/test/scala/xsbt/test/FileCommandsSpec.scala
Scala
bsd-3-clause
3,699
/** * Copyright 2015 Ram Sriharsha * * 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...
simonellistonball/magellan
src/test/scala/magellan/PointSuite.scala
Scala
apache-2.0
1,049
package spinoco.protocol.kafka /** * Reponse from kafka broker * @param correlationId Correlation id as presented in request * @param response Response received from kafka */ case class ResponseMessage ( correlationId: Int , response: Response )
Spinoco/protocol
kafka/src/main/scala/spinoco/protocol/kafka/ResponseMessage.scala
Scala
mit
270
/* File: Gen.scala (Ch 8) * Authors: Paul Chiusano and Runar Bjarnason * Url: https://github.com/fpinscala/fpinscala * * Description: This is a modified version of the file Gen.scala * that accompanies the book "Functional Programming in Scala" by * Chiusano and Bjarnason. This version of the file includes ...
williamdemeo/fpinscala_wjd
exercises/src/main/scala/fpinscala/testing/Gen.scala
Scala
mit
25,465
/* * Copyright (c) 2013-2014 Sanoma Oyj. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licens...
ornicar/maxmind-geoip2-scala
src/test/scala/com/sanoma/cda/geoip/IpLocation_test.scala
Scala
apache-2.0
1,920
val cfg = osc.UDP.Config() cfg.localAddress = "192.168.0.77" val t = osc.UDP.Transmitter(cfg) t.connect() t.localPort t.isConnected t.dump() val tgt = new java.net.InetSocketAddress("192.168.0.25", 0x4C69) t.send(osc.Message("/foo"), tgt) t.send(osc.Message("/led", 0x080808, 0x080808, 0x080808, 0xFFFFFF), tgt) t.send(...
Sciss/AnemoneActiniaria
notes/OscLightTest.scala
Scala
gpl-3.0
1,634
package code package commons import org.joda.time._ import java.util.Date import java.util.Calendar import java.util.GregorianCalendar import java.util.TimeZone import java.text.SimpleDateFormat import net.liftweb.http.S import scala.language.reflectiveCalls /** * Common time handling functions. * * @author Davi...
dodie/time-admin
src/main/scala/code/service/TimeUtils.scala
Scala
apache-2.0
6,656
package org.randi3.web.snippet import scala.xml._ import scala.xml.NodeSeq import org.randi3.web.lib.DependencyFactory import net.liftweb.http.SHtml._ import net.liftweb.http._ import js.JsCmds.Replace import net.liftweb.util.Helpers._ import scalaz.NonEmptyList import org.randi3.model.criterion._ import constrain...
dschrimpf/randi3-web
src/main/scala/org/randi3/web/snippet/EdcEditSnippet.scala
Scala
gpl-3.0
27,645
package dbtarzan.gui import akka.actor.ActorRef import dbtarzan.db._ import dbtarzan.gui.browsingtable._ import dbtarzan.gui.info.{ColumnsTable, IndexesInfo, Info, QueryInfo} import dbtarzan.gui.orderby.OrderByEditorStarter import dbtarzan.gui.tabletabs.TTableForMapWithId import dbtarzan.gui.util.JFXUtil import dbtarz...
aferrandi/dbtarzan
src/main/scala/dbtarzan/gui/BrowsingTable.scala
Scala
apache-2.0
7,337
package controllers import play.api._ import play.api.i18n.Messages import play.api.mvc._ object Application extends Controller { def index = Action { implicit request => request.session.get("userId") match { case None => Ok(views.html.index()) case Some(userId) => val userSession = requ...
knoldus/Play-Starter-Template
app/controllers/Application.scala
Scala
apache-2.0
1,265
package justin.httpapi import java.util.UUID import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._ import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Route import akka.http.scaladsl.testkit.ScalatestRouteTest import justin.db.client.{ActorRefStorageNodeClient, GetValueResponse, ...
speedcom/JustinDB
justin-http-api/src/test/scala/justin/httpapi/HttpRouterTest.scala
Scala
apache-2.0
6,744
package com.ignition.script import scala.xml.{ Elem, Node } import org.apache.spark.sql.Row import org.apache.spark.sql.types.{ DataType, StructType } import org.json4s.{ JString, JValue, jvalue2monadic } import com.ignition.types.TypeUtils /** * Row expression processor. It evaluates a data row and returns the re...
uralian/ignition
src/main/scala/com/ignition/script/RowExpression.scala
Scala
apache-2.0
1,625
// -*- mode: Scala;-*- // Filename: JSONAMQPDispatcher.scala // Authors: lgm // Creation: Tue May 26 06:40:08 2009 // Copyright: Not supplied // Description: // ------------------------------------------------------------------------ package net.lift...
leithaus/strategies
src/main/scala/net/liftweb/amqp/JSONAMQPDispatcher.scala
Scala
cc0-1.0
6,713
/* * 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 ...
ueshin/apache-flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/plan/rules/dataSet/DataSetValuesRule.scala
Scala
apache-2.0
1,776
/* * Backup.scala * (Backup) * * Copyright (c) 2014-2018 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * [email protected] */ package de.sciss.backup import java.awt.Col...
Sciss/Backup
src/main/scala/de/sciss/backup/Backup.scala
Scala
gpl-3.0
7,701
/** * © 2019 Refinitiv. 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 required by applicable l...
e-orz/CM-Well
server/cmwell-domain/src/main/scala/cmwell/domain/package.scala
Scala
apache-2.0
4,881
/* * Copyright 2018 Analytics Zoo Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
intel-analytics/analytics-zoo
zoo/src/main/scala/com/intel/analytics/zoo/serving/utils/Supportive.scala
Scala
apache-2.0
977
/* * 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...
dotty-staging/scalatest
examples/src/test/scala/org/scalatest/examples/featurespec/composingbeforeandaftereach/ExampleSpec.scala
Scala
apache-2.0
1,964
package com.themillhousegroup.edn import org.specs2.mutable.Specification import com.themillhousegroup.edn.test.{ StreamChecking, EDNParsing } import java.io.FileNotFoundException class ParseableSourceSpec extends Specification with EDNParsing with StreamChecking { "The ParseableSource object" should { "Allow...
themillhousegroup/edn-scala
src/test/scala/com/themillhousegroup/edn/ParseableSourceSpec.scala
Scala
gpl-2.0
1,525
/** * 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...
kingargyle/turmeric-bot
components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/MulticastTest.scala
Scala
apache-2.0
2,221
/** * Copyright 2015 Thomson Reuters * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
hochgi/CM-Well
server/cmwell-util/src/main/scala/cmwell/util/stream/StreamEventInspector.scala
Scala
apache-2.0
2,401
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc packag...
lrytz/scala
src/compiler/scala/tools/nsc/transform/Erasure.scala
Scala
apache-2.0
68,692
package com.github.dtaniwaki.akka_pusher import akka.actor.ActorSystem import akka.http.scaladsl.model._ import akka.http.scaladsl.model.HttpMethods._ import akka.stream.ActorMaterializer import akka.http.scaladsl.model.MediaTypes._ import akka.stream.scaladsl.Flow import org.joda.time.DateTimeUtils import org.specs2....
dtaniwaki/akka-pusher
src/test/scala/com/github/dtaniwaki/akka_pusher/PusherClientSpec.scala
Scala
mit
12,529
package pl.iterators.kebs.instances import pl.iterators.kebs.instances.net.URIString trait NetInstances extends URIString object NetInstances extends NetInstances
theiterators/kebs
instances/src/main/scala/pl/iterators/kebs/instances/NetInstances.scala
Scala
mit
166
package controllers import io.flow.healthcheck.v0.Client import io.flow.healthcheck.v0.models.Healthcheck import play.api.libs.ws._ import play.api.test._ class HealthchecksSpec extends PlaySpecification { import scala.concurrent.ExecutionContext.Implicits.global private val port = 9010 lazy val client = new...
flowcommerce/splashpage
api/test/controllers/Healthchecks.scala
Scala
mit
567
package fr.univnantes.vroom.control import fr.univnantes.vroom.core.Systeme /** * Classe paramétrable représentant une commande concrète * @param system Objet utilisé pour le fonctionnement du logiciel * @tparam R Type de retour, */ abstract class Command[R](system: Systeme) { /** * Méthode exécutant...
Callidon/v-room
src/main/scala/fr/univnantes/vroom/control/Command.scala
Scala
mit
387
/** * Copyright 2015, deepsense.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 ...
deepsense-io/seahorse-workflow-executor
deeplang/src/it/scala/io/deepsense/deeplang/utils/SparkUtilsIntegSpec.scala
Scala
apache-2.0
1,619
class B { def foo(a: A): Int = 1 }
som-snytt/xsbt
sbt/src/sbt-test/source-dependencies/value-class/changes/B0.scala
Scala
bsd-3-clause
37
/* * Copyright 2013 websudos ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
nosheenzaza/phantom-data-centric
phantom-dsl/src/test/scala/com/websudos/phantom/dsl/query/AllowedBatchQueriesTest.scala
Scala
gpl-2.0
2,261
package io.github.chenfh5.lucene_analysis.pinyin import org.elasticsearch.analysis.PinyinConfig import org.elasticsearch.common.settings.Settings import org.elasticsearch.index.analysis.PinyinAnalyzer import org.slf4j.LoggerFactory import io.github.chenfh5.lucene_analysis.CustomAnalyzer object PinyinClient extends ...
chenfh5/test-spark-connect-es
src/main/scala/io/github/chenfh5/lucene_analysis/pinyin/PinyinClient.scala
Scala
apache-2.0
1,217
/* * Copyright 2014 http4s.org * * 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...
http4s/http4s
server/jvm/src/test/scala/org/http4s/server/staticcontent/WebjarServiceFilterSuite.scala
Scala
apache-2.0
1,532
package mesosphere.marathon.core.task.tracker.impl import mesosphere.marathon.core.base.ConstantClock import mesosphere.marathon.core.task.Task import mesosphere.marathon.core.task.tracker.TaskTracker import mesosphere.marathon.core.task.tracker.impl.TaskOpProcessorImpl.StatusUpdateActionResolver import mesosphere.mar...
pgkelley4/marathon
src/test/scala/mesosphere/marathon/core/task/tracker/impl/StatusUpdateActionResolverTest.scala
Scala
apache-2.0
1,978
package models import scalikejdbc.specs2.mutable.AutoRollback import org.specs2.mutable._ import scalikejdbc._ import org.joda.time.{LocalDate} class CronLineSpec extends Specification { "CronLine" should { val cl = CronLine.syntax("cl") "find by primary keys" in new AutoRollback { val maybeFound ...
akyao/ketsuco
test/models/CronLineSpec.scala
Scala
mit
1,912
/* * Copyright (c) 2013-2014 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apac...
snowplow/kinesis-example-scala-consumer
project/KinesisExampleScalaConsumerBuild.scala
Scala
apache-2.0
1,728
package a65.测试2 object Runner3 { def number1gen(n: Int): Number1 = n match { case n1 if n1 > 0 => Number1S(number1gen(n1 - 1)) case 0 => Number1T } def number3gen(n: Int): Number3 = n match { case n1 if n1 > 0 => new Number3S(number3gen(n1 - 1)) case 0 => Number3T } d...
djx314/ubw
a66-指数对数-原型/src/main/scala/a65/测试2/Runner3.scala
Scala
bsd-3-clause
1,909
package org.nisshiee.towerdefensescala import org.specs2._, matcher.DataTables class PointSpec extends Specification with DataTables { def is = "Point" ^ "isIn" ^ "x,...
nisshiee/towerdefense-scala
src/test/scala/model/PointSpec.scala
Scala
mit
1,850
/* * 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 ...
hequn8128/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/plan/rules/dataSet/DataSetPythonCalcRule.scala
Scala
apache-2.0
2,270
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ object Root
benmccann/playframework
dev-mode/sbt-plugin/src/sbt-test/play-sbt-plugin/multiproject/app/Root.scala
Scala
apache-2.0
80
package com.jgrier.flinkstuff.metrics import java.util.concurrent.TimeUnit import com.codahale.metrics.{MetricFilter, ScheduledReporter} import metrics_influxdb.{HttpInfluxdbProtocol, InfluxdbReporter} import metrics_influxdb.api.measurements.CategoriesMetricMeasurementTransformer import org.apache.flink.dropwizard.S...
jgrier/flink-stuff
flink-influx-reporter/src/main/scala/com/jgrier/flinkstuff/metrics/InfluxDbReporter.scala
Scala
apache-2.0
2,470
import org.scalactic.Equality import org.scalatest.matchers.{MatchResult, Matcher} import org.scalatest.prop.PropertyChecks import org.scalatest.{FlatSpec, MustMatchers} class GallantTest extends FlatSpec with MustMatchers with PropertyChecks { case class DummySensor(override val name: String, override val id: Lon...
mikolak-net/scalatest_matcher_prez_demo
src/test/scala/GallantTest.scala
Scala
gpl-2.0
6,388
package org.broadinstitute.dsde.vault.model import com.wordnik.swagger.annotations.ApiModelProperty import spray.json import scala.annotation.meta.field object uBAMCollectionJsonProtocol extends json.DefaultJsonProtocol { implicit val impUBamCollection = jsonFormat4(UBamCollection) implicit val impUBamCollection...
broadinstitute/vault-api
src/main/scala/org/broadinstitute/dsde/vault/model/UBamCollection.scala
Scala
bsd-3-clause
2,003
package com.github.tminglei.slickpg import slick.driver.PostgresDriver import slick.jdbc.{PositionedResult, JdbcType} trait PgJson4sSupport extends json.PgJsonExtensions with utils.PgCommonJdbcTypes { driver: PostgresDriver => import driver.api._ import org.json4s._ type DOCType def pgjson: String val jso...
btd/slick-pg
src/main/scala/com/github/tminglei/slickpg/addon/PgJson4sSupport.scala
Scala
bsd-2-clause
1,796
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/iterators/ArrowFileIterator.scala
Scala
apache-2.0
2,535
/* * Copyright 2011-2022 GatlingCorp (https://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...
gatling/gatling
gatling-graphite/src/main/scala/io/gatling/graphite/GraphitePathPattern.scala
Scala
apache-2.0
3,921
/* * Copyright (C) 2017 LREN CHUV for Human Brain Project * * This program 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 option) any later version...
HBPSP8Repo/workflow
tests/woken-test/src/test/scala/ch/chuv/lren/woken/test/WokenAkkaAPITest.scala
Scala
apache-2.0
23,976
package akka.ainterface.datatype.interpolation import akka.ainterface.datatype.{ErlAtom, ErlTerm} import scala.language.experimental.macros final class ErlTermStringContext(val context: StringContext) extends AnyVal { def erl(args: ErlTerm*): ErlTerm = macro ErlTermInterpolationMacro.erlImpl } final class ErlAtomS...
ainterface/ainterface
ainterface/src/main/scala/akka/ainterface/datatype/interpolation/ErlTermStringContext.scala
Scala
apache-2.0
683
package com.blogspot.ramannanda.scala.algorithms.easy import com.typesafe.scalalogging.LazyLogging import org.scalatest.{FlatSpec, FunSuite, Matchers} /** * Created by Ramandeep Singh on 7/17/17. */ class SumIntegerPairs$Test extends FlatSpec with Matchers with LazyLogging { val data = Array(1, 5, 4, 9, 8, 10) ...
ramannanda9/algorithms-in-scala
src/test/scala/com/blogspot/ramannanda/scala/algorithms/easy/SumIntegerPairs$Test.scala
Scala
gpl-3.0
754
package pl.pholda.malpompaaligxilo.dsl.expr.date import pl.pholda.malpompaaligxilo.dsl.DslFormExpr import pl.pholda.malpompaaligxilo.form.FormInstance import pl.pholda.malpompaaligxilo.util.Date case class DateFromString(string: DslFormExpr[Any]) extends DslFormExpr[Date] { override def apply(formInstance: FormInst...
pholda/MalpompaAligxilo
dsl/shared/src/main/scala/pl/pholda/malpompaaligxilo/dsl/expr/date/DateFromString.scala
Scala
gpl-3.0
607
package net.iakovlev.dynamo.generic.test import net.iakovlev.dynamo.generic.AwsAttributeValueDecoder import org.specs2.mutable.Specification import scala.collection.JavaConverters._ class DecodeMapAsMapTest extends Specification with AwsAttributeValueDecoder with TestBase { "Decode map field as a simpl...
RomanIakovlev/easycodecs
aws-dynamodb-v2-bindings/src/test/scala/net/iakovlev/dynamo/generic/test/DecodeMapAsMapTest.scala
Scala
apache-2.0
898