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 net.mkowalski.sparkfim.model import net.mkowalski.sparkfim.test.BaseTest class ItemTest extends BaseTest { test("Items with same prefix") { val item1 = Item(1, 2, 3, 4) val item2 = Item(1, 2, 3, 5) assert(item1.prefix == item2.prefix) } test("Empty prefix when single item id") { val it...
mjkowalski/spark-fim
src/test/scala/net/mkowalski/sparkfim/model/ItemTest.scala
Scala
mit
1,892
package com.sksamuel.elastic4s.searches.queries import com.sksamuel.exts.OptionImplicits._ case class FuzzyQuery(field: String, termValue: Any, fuzziness: Option[String] = None, boost: Option[Double] = None, transpositions: Option...
Tecsisa/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/queries/FuzzyQuery.scala
Scala
apache-2.0
1,256
import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context object Macros { def foo[U: Numeric](x: U): Unit = macro foo_impl[U] def bar[U: Numeric : Equiv, Y <% String](x: U)(implicit s: String): Unit = macro bar_impl[U, Y] def foo_impl[U](c: Context)(x: c.Expr[U])(numeric: c.Expr[Num...
lrytz/scala
test/files/pos/t5744/Macros_1.scala
Scala
apache-2.0
1,127
/* * 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 ...
WindCanDie/spark
core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala
Scala
apache-2.0
19,113
package scalariform.formatter import scalariform.lexer.Token import scalariform.lexer.Tokens._ import scalariform.parser._ import scalariform.utils.Utils import scalariform.utils.TextEditProcessor import scalariform.utils.BooleanLang._ import scalariform.formatter.preferences._ import PartialFunction._ import scala.ma...
raboof/scalariform
scalariform/src/main/scala/scalariform/formatter/CaseClauseFormatter.scala
Scala
mit
8,280
val itermax=100000 val nbreplications=100 val vision = Val[Double] val minimumSeparation = Val[Double] val maxAlignTurn = Val[Double] val maxCohereTurn = Val[Double] val maxSeparateTurn = Val[Double] val groupCount = Val[Double] val relativeDiffusion = Val[Double] val velocity = Val[Double] val seed = Val[Long] va...
ISCPIF/PSEExperiments
openmolescripts/flocking/pse/flockingRepli.scala
Scala
agpl-3.0
2,326
package com.eevolution.context.dictionary.infrastructure.service.impl import java.util.UUID import com.eevolution.context.dictionary.infrastructure.repository.ReferenceListRepository import com.eevolution.context.dictionary.infrastructure.service.ReferenceListService import com.lightbend.lagom.scaladsl.api.ServiceCal...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/service/impl/ReferenceListServiceImpl.scala
Scala
gpl-3.0
2,082
/* * 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 t...
siddhaism/zipkin
zipkin-web/src/main/scala/com/twitter/zipkin/common/json/JsonTraceTimeline.scala
Scala
apache-2.0
1,188
/* * 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
core/src/main/scala/org/apache/spark/api/r/RRDD.scala
Scala
apache-2.0
6,564
import scala.reflect.api.{Universe => ApiUniverse} import scala.reflect.runtime.{universe => ru} object Test extends dotty.runtime.LegacyApp { println(ru.typeOf[List[Int]]) def foo[T: ru.TypeTag] = { println(ru.typeOf[T]) println(implicitly[ApiUniverse#TypeTag[T]]) } foo[Map[String, String]] }
yusuke2255/dotty
tests/pending/run/newTags.scala
Scala
bsd-3-clause
312
package edu.gemini.gsa.client.api import edu.gemini.model.p1.immutable._ import edu.gemini.spModel.core.Coordinates import scalaz._ import Scalaz._ // To avoid circular dependencies we bridge the p1 Instrument to GSA in the class below sealed trait GSAInstrument { def name: String } object GSAInstrument { // GS...
spakzad/ocs
bundle/edu.gemini.gsa.client/src/main/scala/edu/gemini/gsa/client/api/GsaParams.scala
Scala
bsd-3-clause
2,786
package edu.berkeley.cs.amplab.carat.tools import spark._ import spark.SparkContext._ import edu.berkeley.cs.amplab.carat.dynamodb.DynamoAnalysisUtil import spark.timeseries.TimeSeriesSpark import edu.berkeley.cs.amplab.carat.CaratRate object APrioriRateAnalysis extends App { val tmpdir = "/mnt/TimeSeriesSpark-unst...
lagerspetz/TimeSeriesSpark
src/edu/berkeley/cs/amplab/carat/tools/APrioriRateAnalysis.scala
Scala
bsd-3-clause
1,865
package chrome.system.cpu.bindings import scala.scalajs.js @js.native trait CPUInfo extends js.Object { def numOfProcessors: Int = js.native def archName: String = js.native def modelName: String = js.native def features: js.Array[Feature] = js.native def processors: js.Array[Processor] = js.native }
lucidd/scala-js-chrome
bindings/src/main/scala/chrome/system/cpu/bindings/CPUInfo.scala
Scala
mit
320
package org.jetbrains.plugins.scala.testingSupport.specs2 /** * @author Roman.Shein * @since 11.02.2015. */ abstract class Specs2WholeSuiteTest extends Specs2TestCase { def testSpecification() { addFileToProject("SpecificationTest.scala", """ |import org.specs2.mutable.Specification | ...
LPTK/intellij-scala
test/org/jetbrains/plugins/scala/testingSupport/specs2/Specs2WholeSuiteTest.scala
Scala
apache-2.0
1,141
package im.actor.server.persist.sequence import com.google.protobuf.wrappers.StringValue import im.actor.server.db.ActorPostgresDriver.api._ import im.actor.server.model.{ UpdateMapping, SeqUpdate } private[sequence] final class UserSequenceTable(tag: Tag) extends Table[SeqUpdate](tag, "user_sequence") { def userId...
ljshj/actor-platform
actor-server/actor-persist/src/main/scala/im/actor/server/persist/sequence/UserSequenceRepo.scala
Scala
mit
2,136
/* Copyright (c) 2018 Lucas Satabin * * 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...
satabin/lingua
fst/src/main/scala/lingua/fst2/filter/EpsilonSequencingFilter.scala
Scala
apache-2.0
1,622
package ru.finagram.api /** * This trait represents an incoming update. */ trait Update { val updateId: Long } /** * This object represents an incoming update with [[Message]]. * * @param updateId The updateβ€˜s unique identifier. * Update identifiers start from a certain positive number and i...
finagram/finagram
src/main/scala/ru/finagram/api/Update.scala
Scala
mit
788
/* * 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/main/scala/org/scalatest/Notifying.scala
Scala
apache-2.0
2,230
package com.freshsoft.matterbridge.client.rss import java.time.OffsetDateTime import java.time.format.DateTimeFormatter import akka.actor.{Actor, ActorRef, Props} import akka.event.{Logging, LoggingAdapter} import com.freshsoft.matterbridge.server.{MatterBridgeContext, RssConfigActorService} import com.freshsoft.matt...
Freshwood/matterbridge
src/main/scala/com/freshsoft/matterbridge/client/rss/RssReaderWorkerActor.scala
Scala
mit
5,059
/** * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com> */ package akka.util import annotation.tailrec import collection.immutable.HashMap private[akka] object WildcardTree { private val empty = new WildcardTree[Nothing]() def apply[T](): WildcardTree[T] = empty.asInstanceOf[WildcardTree[T]] } pr...
jmnarloch/akka.js
akka-js-actor/shared/src/main/scala/akka/util/WildcardTree.scala
Scala
bsd-3-clause
1,023
/* * Copyright 2015-2020 Snowflake Computing * * 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 ...
snowflakedb/spark-snowflakedb
src/test/scala/net/snowflake/spark/snowflake/MiscSuite01.scala
Scala
apache-2.0
11,147
package com.arcusys.learn.slide import SlideEntityConverters._ import com.arcusys.learn.persistence.liferay.service.LFSlideLocalServiceUtil import com.arcusys.valamis.slide.model.SlideModel import com.arcusys.valamis.slide.storage.SlideRepositoryContract import scala.collection.JavaConversions._ import com.arcusys.lea...
ViLPy/Valamis
learn-persistence-liferay-wrapper/src/main/scala/com/arcusys/learn/slide/SlideRepository.scala
Scala
lgpl-3.0
1,945
package org.receiver2d.engine.geometry import org.receiver2d.engine.math.{Matrix, Vec2} /** * Represents a circle */ case class Circle(center: Vec2, radius: Float) extends Ellipse(center, radius)
Prince781/Receiver2D
src/main/scala/org/receiver2d/engine/geometry/Circle.scala
Scala
gpl-2.0
199
/*********************************************************************** * Copyright (c) 2013-2020 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...
aheyne/geomesa
geomesa-process/geomesa-process-vector/src/test/scala/org/locationtech/geomesa/process/transform/BinConversionProcessTest.scala
Scala
apache-2.0
3,989
package validator import models.{LineStation, StopStation} import scala.collection.breakOut class StationStopValidator(allStops: Seq[StopStation]) { import StationStopValidator._ def validate(stations: Seq[LineStation]): Seq[Error] = { val stationIds: Set[Long] = allStops.map(_.lineStationId)(breakOut) ...
ponkotuy/train-stamp-rally
app/validator/StationStopValidator.scala
Scala
apache-2.0
888
package se.lu.nateko.cp.meta.api import scala.collection.AbstractIterator trait CloseableIterator[+T] extends Iterator[T] with AutoCloseable{self => def ++[A >: T](other: => CloseableIterator[A]) = new CloseableIterator[A]{ private[this] var thatInitialized = false private[this] lazy val that = { thatIniti...
ICOS-Carbon-Portal/meta
src/main/scala/se/lu/nateko/cp/meta/api/CloseableIterator.scala
Scala
gpl-3.0
1,325
/* * 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/help-to-save-frontend
app/uk/gov/hmrc/helptosavefrontend/connectors/IvConnector.scala
Scala
apache-2.0
2,285
package com.twitter.scalding.serialization.macros.impl.ordered_serialization.providers import scala.reflect.macros.whitebox.Context /** * The `knownDirectSubclasses` method doesn't provide stable ordering * since it returns an unordered `Set` and the `Type` AST nodes don't * override the `hashCode` method, relying...
tdyas/scalding
scalding-serialization/src/main/scala/com/twitter/scalding/serialization/macros/impl/ordered_serialization/providers/StableKnownDirectSubclasses.scala
Scala
apache-2.0
662
package demo package components package materialui.svgicons import chandu0101.scalajs.react.components.materialui.MuiSvgIcon import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.prefix_<^._ object FileFolder { val component = ReactComponentB[Unit]("FileFolder") .render(P => { MuiSvgIcon()(...
tpdi/scalajs-react-components
demo/src/main/scala/demo/components/materialui/svgicons/FileFolder.scala
Scala
apache-2.0
514
package im.actor.server.util import scala.concurrent._ import scala.language.postfixOps import akka.actor.ActorSystem import slick.dbio.Effect.Read import slick.dbio.{ DBIO, DBIOAction, Effect, NoStream } import slick.driver.PostgresDriver.api._ import slick.profile.SqlAction import im.actor.api.rpc._ import im.acto...
supertanglang/actor-platform
actor-server/actor-utils/src/main/scala/im/actor/server/util/UserUtils.scala
Scala
mit
6,837
package cwe.scala.library.runtime.test.math.bignumbers import cwe.scala.library.runtime.test.ScalaTest import cwe.scala.library.math.bignumbers._ import cwe.scala.library.boxes.Numerics._ import cwe.scala.library.audit.AuditServiceProvider class TestRealImplBaseN extends ScalaTest { override def run(): Unit = { Au...
wwwigii-system/research
cwe-scala-library/src/cwe/scala/library/runtime/test/math/bignumbers/TestRealImplBaseN.scala
Scala
gpl-3.0
6,305
package im.actor.server.activation object Activation { sealed trait Code { def code: String } sealed trait PhoneCode extends Code { def phone: Long } final case class SmsCode(phone: Long, code: String) extends PhoneCode { override def equals(that: Any): Boolean = that match { case t...
lzpfmh/actor-platform
actor-server/actor-activation/src/main/scala/im/actor/server/activation/Activation.scala
Scala
mit
1,080
import java.io.File import java.text.SimpleDateFormat import java.util.TimeZone import com.github.tototoshi.csv._ import org.joda.time.{DateTimeZone, LocalDateTime} object PLDIAssignments extends App { if (args.size == 0) { println("Usage:") println("\\tsbt \\"run <users.csv> <assignments.csv> <print times? ...
dbarowy/PLDI_15_SV_assignments
src/main/scala/PLDIAssignments.scala
Scala
bsd-2-clause
4,346
/* * 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-2.0 * ...
adarro/ddo-calc
subprojects/common/ddo-util/src/main/scala/io/truthencode/ddo/support/matching/WordMatchStrategies.scala
Scala
apache-2.0
1,424
package com.example.http4s import cats.effect._ import cats.implicits._ import fs2.{Scheduler, Stream} import io.circe.Json import org.http4s._ import org.http4s.MediaType._ import org.http4s.circe._ import org.http4s.dsl.Http4sDsl import org.http4s.headers._ import org.http4s.server._ import org.http4s.server.middlew...
reactormonk/http4s
examples/src/main/scala/com/example/http4s/ExampleService.scala
Scala
apache-2.0
8,118
package org.judal.examples.scala.jdbc import org.junit.Test import org.judal.Using._ import org.scalatest.Suite import org.judal.storage.scala.TableOperation import org.judal.examples.scala.model.Student /** * Use TableOperation wrapper to fetch students whose last name is "Kol" * then change the ...
sergiomt/judal
aexample/src/main/scala/org/judal/examples/scala/jdbc/E13_FetchByNonUniqueIndexUsingOperationWrapper.scala
Scala
apache-2.0
1,352
package go3d.testing import org.junit.{Assert, Test} import go3d.* class TestConstants: @Test def testMinBoardSize(): Unit = Assert.assertEquals(MinBoardSize, 3) @Test def testMaxBoardSize(): Unit = Assert.assertEquals(MaxBoardSize, 25) @Test def testMaxHandicaps(): Unit = Assert.assertEquals(MaxH...
lene/go-3
src/test/scala/TestConstants.scala
Scala
gpl-2.0
496
/* * 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 ...
gioenn/xSpark
external/kafka-0-10/src/main/scala/org/apache/spark/streaming/kafka010/KafkaTestUtils.scala
Scala
apache-2.0
9,198
/* * Licensed to Intel Corporation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Intel Corporation licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use t...
SeaOfOcean/BigDL
dl/src/test/scala/com/intel/analytics/bigdl/nn/TanhSpec.scala
Scala
apache-2.0
3,659
package com.wandoulabs.onecache.core import com.wandoulabs.onecache.core.cache.Cache trait CacheManager { def getCache(name: Any): Cache }
cowboy129/onecache
onecache-core/src/main/scala/com/wandoulabs/onecache/core/CacheManager.scala
Scala
apache-2.0
143
package berlin.jentsch.modelchecker.akka.example import akka.Done import akka.actor.typed._ import akka.actor.typed.scaladsl.Behaviors._ import berlin.jentsch.modelchecker.akka._ import berlin.jentsch.modelchecker.akka.example.Philosophers.stickFree object Philosophers { def apply(): Behavior[Unit] = setup { ctx =>...
Jentsch/modelchecker
akka/src/test/scala/berlin/jentsch/modelchecker/akka/example/Philosophers.scala
Scala
mit
2,404
/* * Copyright (c) 2013-2014 TelefΓ³nica InvestigaciΓ³n y Desarrollo S.A.U. * * 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 * * Unle...
telefonicaid/fiware-cosmos-platform
common/src/main/scala/es/tid/cosmos/common/BooleanFutures.scala
Scala
apache-2.0
1,851
package es.weso.typing import util._ case class ReasonTypingAsMap[Node, Label, ReasonPos, ReasonNeg]( m: Map[Node,ReasonTypeRow[Label,ReasonPos,ReasonNeg]] ) extends ReasonPosNegTyping[Node,Label,ReasonPos,ReasonNeg] { override def nodes = m.keys.toSeq override def addPosTypeReason(n: Node, label: Lab...
labra/ShExcala
src/main/scala/es/weso/typing/ReasonTypingAsMap.scala
Scala
mit
1,382
package org.scalacoin.script.crypto import org.scalacoin.script.ScriptOperationFactory /** * Created by chris on 1/8/16. */ trait CryptoOperationFactory extends ScriptOperationFactory[CryptoOperation] { override def operations = Seq(OP_CHECKMULTISIG, OP_CHECKMULTISIGVERIFY, OP_CHECKSIG, OP_CHECKSIGVERIFY, OP...
TomMcCabe/scalacoin
src/main/scala/org/scalacoin/script/crypto/CryptoOperationFactory.scala
Scala
mit
457
/* * 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
scalatest-test/src/test/scala/org/scalatest/TheSameElementsInOrderAsContainMatcherDeciderSpec.scala
Scala
apache-2.0
10,359
/* * Copyright 2016 The BigDL 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 agr...
intel-analytics/BigDL
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/keras/layers/GlobalMaxPooling3D.scala
Scala
apache-2.0
3,033
// ----------------------------------------------------------------------------- // // Scalax - The Scala Community Library // Copyright (c) 2005-8 The Scalax Project. All rights reserved. // // The primary distribution site is http://scalax.scalaforge.org/ // // This software is released under the terms of the Rev...
rememberthemilk/jerkson
src/main/scala/com/codahale/jerkson/util/scalax/rules/SeqRule.scala
Scala
mit
3,683
package org.jetbrains.plugins.scala package editor.enterHandler import com.intellij.codeInsight.CodeInsightSettings import com.intellij.codeInsight.editorActions.enter.EnterHandlerDelegate.Result import com.intellij.codeInsight.editorActions.enter.EnterHandlerDelegateAdapter import com.intellij.openapi.actionSystem.Da...
SergeevPavel/intellij-scala
src/org/jetbrains/plugins/scala/editor/enterHandler/MultilineStringEnterHandler.scala
Scala
apache-2.0
11,342
package cassandra.fixtures case class Pair(inner:(String, Int, Boolean))
fabianmurariu/cassandra-scala-nuveau-driver
cql/app/src/test/scala/cassandra/fixtures/Pair.scala
Scala
apache-2.0
74
package cromwell.backend.impl.jes.io import cats.data.Validated._ import cats.syntax.apply._ import cats.syntax.validated._ import com.google.api.services.genomics.model.Disk import cromwell.core.path.{DefaultPathBuilder, Path} import common.exception.MessageAggregation import common.validation.ErrorOr._ import wom.va...
ohsu-comp-bio/cromwell
supportedBackends/jes/src/main/scala/cromwell/backend/impl/jes/io/JesAttachedDisk.scala
Scala
bsd-3-clause
3,344
package de.ummels.prioritymap import org.scalacheck.{Arbitrary, Gen} import org.scalatest.{PropSpecLike, prop, Matchers} trait PropertySpec extends PropSpecLike with prop.PropertyChecks with Matchers with prop.Configuration { override implicit val generatorDrivenConfig: PropertyCheckConfiguration = PropertyChec...
ummels/scala-prioritymap
tests/shared/src/test/scala/de/ummels/prioritymap/PropertySpec.scala
Scala
isc
1,246
package com.krux.hyperion.contrib.activity.file import java.io.File import java.nio.file.{ AtomicMoveNotSupportedException, Files, Paths, StandardCopyOption } case class FileRepartitioner(options: Options) { def repartition(): Boolean = moveFiles(nameFiles(split(merge()))) private def merge(): File = options.in...
hoangelos/hyperion
contrib/activity/file/src/main/scala/com/krux/hyperion/contrib/activity/file/FileRepartitioner.scala
Scala
apache-2.0
3,319
/* * The MIT License (MIT) * <p> * Copyright (c) 2018 * <p> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
amannocci/streamy
plugin-protobuf/src/test/scala/io/techcode/streamy/protobuf/component/ProtobufTransformerSpec.scala
Scala
mit
3,602
package im.actor.acl import java.nio.ByteBuffer import java.security.MessageDigest import akka.actor.ActorSystem import im.actor.concurrent.{ ThreadLocalMD5, ThreadLocalSHA256 } import im.actor.util.ThreadLocalSecureRandom trait ACLBase { private def getMDInstance = ThreadLocalMD5.current() private def getSHA2...
EaglesoftZJ/actor-platform
actor-server/actor-runtime/src/main/scala/im/actor/acl/ACLBase.scala
Scala
agpl-3.0
1,179
/** * This file is part of the TA Buddy project. * Copyright (c) 2014-2015 Alexey Aksenov ezh@ezh.msk.ru * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Global License version 3 * as published by the Free Software Foundation with the addition...
digimead/digi-TABuddy-desktop
part-core-keyring/src/main/scala/org/digimead/tabuddy/desktop/core/keyring/KeyRingGeneral.scala
Scala
agpl-3.0
13,602
package mesosphere.marathon package core.storage.store.impl.zk import java.util.concurrent.TimeUnit import akka.Done import akka.actor.{ ActorSystem, Scheduler } import akka.stream.{ ActorMaterializer, Materializer } import scala.concurrent.ExecutionContext.Implicits.global import mesosphere.marathon.core.base.Lifecy...
guenter/marathon
benchmark/src/main/scala/mesosphere/marathon/core/storage/store/impl/zk/ZkPresistenceStoreBenchmark.scala
Scala
apache-2.0
2,239
package com.sksamuel.elastic4s.searches.queries import com.sksamuel.exts.OptionImplicits._ case class RangeQueryDefinition(field: String, boost: Option[Double] = None, timeZone: Option[String] = None, includeUpper: Option[...
aroundus-inc/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/queries/RangeQueryDefinition.scala
Scala
apache-2.0
2,475
package controllers import play.api.Play.current import play.api.libs.iteratee.Concurrent.Channel import play.api.libs.json.Json import play.api.libs.ws.WS trait ETCDWatcher { def start(uri : String, index : Int) def addListener(channel : Channel[String]) : Boolean def removeListener(channel : Channel[String]) ...
KlaasYK/wacc2015
front-end/app/controllers/ETCDWatcher.scala
Scala
mit
2,566
package quizleague.web.model import quizleague.web.util.rx.RefObservable import scalajs.js class CompetitionStatistics( val id: String, val competitionName: String, val results: js.Array[ResultEntry] = js.Array() ...
gumdrop/quizleague-maintain
js/src/main/scala/quizleague/web/model/CompetitionStatistics.scala
Scala
mit
725
package it.agilelab.bigdata.spark.search.serialization import com.esotericsoftware.kryo.Kryo import it.agilelab.bigdata.spark.search.impl._ import org.apache.spark.serializer.KryoRegistrator class SparkSearchKryoRegistrator extends KryoRegistrator { override def registerClasses(kryo: Kryo): Unit = { kryo.register...
agile-lab-dev/sparksearchengine
src/main/scala/it/agilelab/bigdata/spark/search/serialization/SparkSearchKryoRegistrator.scala
Scala
apache-2.0
540
package io.getquill.codegen.model import io.getquill.codegen.gen.HasBasicMeta import io.getquill.codegen.model.Stereotyper.Namespacer object Stereotyper { type Namespacer[TableMeta] = TableMeta => String type Expresser[TableMeta, ColumnMeta] = (RawSchema[TableMeta, ColumnMeta]) => TableStereotype[TableMeta, Colum...
getquill/quill
quill-codegen/src/main/scala/io/getquill/codegen/model/Stereotyper.scala
Scala
apache-2.0
682
package uima.cc.qalab import java.util.Locale import org.apache.uima.cas.CAS import org.apache.uima.collection.CasConsumer_ImplBase import org.apache.uima.resource.ResourceProcessException import uima.cc.qalab.en.{EnglishQALabExtractionSubtaskDocumentCasConsumer, EnglishQALabExtractionSubtaskSentenceCasConsumer} impo...
ktr-skmt/FelisCatusZero-multilingual
src/main/scala/uima/cc/qalab/QALabExtractionSubtaskCasConsumer.scala
Scala
apache-2.0
1,346
package sbt import java.io.File import sbt.internal.util.AttributeKey import sbt.internal.inc.classpath.ClassLoaderCache import sbt.librarymanagement.ModuleID object BasicKeys { val historyPath = AttributeKey[Option[File]]( "history", "The location where command line history is persisted.", 40) val sh...
Duhemm/sbt
main-command/src/main/scala/sbt/BasicKeys.scala
Scala
bsd-3-clause
1,611
import scala.tools.partest.BytecodeTest import scala.tools.testkit.ASMConverters import ASMConverters._ class D { // This is compiled with `A_1.class` on the classpath. When inlining `flop` (which invokes // `A_1.bar`), the inliner can check that the call to `A_1.bar` can be safely inlined into a // different cl...
martijnhoekstra/scala
test/files/run/bcodeInlinerMixed/Test_2.scala
Scala
apache-2.0
1,048
package ru.fediq.scrapingkit.tools import akka.http.scaladsl.model.Uri import ru.fediq.scrapingkit.backend.LinksHistory import scala.concurrent.{ExecutionContext, Future} class LinksHistoryFiller( linksHistory: LinksHistory ) { def add(uri: Uri)(implicit ec: ExecutionContext): Future[Any] = { linksHistory.is...
fediq/scraping-kit
scraping-kit-platform/src/main/scala/ru/fediq/scrapingkit/tools/LinksHistoryFiller.scala
Scala
mit
588
package com.getjenny.starchat.utils import akka.http.scaladsl.testkit.ScalatestRouteTest import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec class SystemConfigurationTest extends AnyWordSpec with Matchers with ScalatestRouteTest{ "System configuration" should { "create hashma...
GetJenny/starchat
src/test/scala/com/getjenny/starchat/utils/SystemConfigurationTest.scala
Scala
gpl-2.0
574
/* * 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 ...
wangmiao1981/spark
core/src/main/scala/org/apache/spark/api/python/Py4JServer.scala
Scala
apache-2.0
2,789
package hyperdrive.cj.http import hyperdrive.cj.model._ import java.net.URI import spray.json._ object CollectionJsonProtocol extends DefaultJsonProtocol { implicit val uriFormat = new JsonFormat[URI] { def write(o:URI) = JsString(o.toString()) def read(value:JsValue) = new URI(value.toString()) } i...
ScalaConsultants/hyperdrive
src/main/scala/hyperdrive/cj/http/CollectionJsonProtocol.scala
Scala
unlicense
1,434
/* * Copyright (c) 2012-13 Crown Copyright * Animal Health and Veterinary Laboratories Agency * * 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...
tsaratoon/Sampler
sampler-cluster/src/main/scala/sampler/cluster/abc/algorithm/Generation.scala
Scala
apache-2.0
1,877
/* * 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
mllib/src/main/scala/org/apache/spark/ml/feature/RFormula.scala
Scala
apache-2.0
25,072
package chapter15 /* * 15.5 λ΄‰μΈν•œ 클래슀 * * μ–΄λ–»κ²Œ ν•΄μ•Ό λͺ¨λ“  κ°€λŠ₯성을 λ‹€ μ²˜λ¦¬ν–ˆλ‹€λŠ” μ•ˆμ „ν•œ λŠλ‚Œμ„ 받을 수 μžˆλŠ”κ°€? * */ sealed abstract class Expr2 case class Var2(name: String) extends Expr2 case class Number2(num: Double) extends Expr2 case class UnOp2(operator: String, arg: Expr2) extends Expr2 case class BinOp2(operator: String, left: Expr2...
seraekim/srkim-lang-scala
src/main/java/chapter15/c15_i05.scala
Scala
bsd-3-clause
992
package org.jetbrains.plugins.scala.testingSupport.specs2 import org.jetbrains.plugins.scala.lang.structureView.element.Test._ /** * @author Roman.Shein * @since 20.04.2015. */ abstract class Specs2FileStructureViewTest extends Specs2TestCase { private def prepareAndRunTestInner(status: Int, tests: String*): Un...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/testingSupport/specs2/Specs2FileStructureViewTest.scala
Scala
apache-2.0
1,783
/* * 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 ...
haowu80s/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeFormatterSuite.scala
Scala
apache-2.0
2,320
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
duynguyen/incubator-openwhisk
common/scala/src/main/scala/whisk/core/database/ArtifactStoreExceptions.scala
Scala
apache-2.0
1,374
package CQLConnect import java.sql import java.util.Date import scala.reflect.ClassTag import com.datastax.spark.connector._ import com.datastax.spark.connector.cql._ import org.apache.spark.sql.cassandra._ import org.apache.spark.sql.types._ import org.apache.spark.sql.{Dataset, Row, SparkSession} import org.apache...
AkhilNairAmey/CQLConnect
java/CassandraTable.scala
Scala
mit
4,279
/** * Copyright 2009 Latterfrosken Software Development Limited * * This file is part of Lafros GUI-Alerts. * * Lafros GUI-Alerts 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 th...
robcd/lafros-gui
lafros-gui-alerts/src/main/scala/com/lafros/gui/alerts/JTitledConstrainableLabel.scala
Scala
gpl-3.0
2,985
package webserviceclients.dispose import play.api.libs.json.Json import uk.gov.dvla.vehicles.presentation.common.webserviceclients.common.MicroserviceResponse final case class DisposeResponse(transactionId: String, registrationNumber: String, auditId: ...
dvla/vehicles-online
app/webserviceclients/dispose/DisposeResponseDto.scala
Scala
mit
614
package gsd.linux.tools import java.io.PrintStream import util.parsing.combinator.{JavaTokenParsers, RegexParsers, PackratParsers} /** * TODO */ class REPLParser extends RegexParsers with JavaTokenParsers with PackratParsers { val num: Parser[Int] = "[0-9]+".r ^^ { _.toInt } val id: Parser[String] = "\\\\w+".r ...
scas-mdd/linux-variability-analysis-tools.fm-translation
src/main/scala/gsd/linux/tools/REPLParser.scala
Scala
gpl-3.0
1,096
/* * 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 ...
hvanhovell/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
Scala
apache-2.0
84,288
package org.jetbrains.plugins.scala.failed.typeInference import org.jetbrains.plugins.scala.PerfCycleTests import org.jetbrains.plugins.scala.lang.typeInference.TypeInferenceTestBase import org.junit.experimental.categories.Category /** * @author Nikolay.Tropin */ @Category(Array(classOf[PerfCycleTests])) class C...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/failed/typeInference/ContravarianceTest.scala
Scala
apache-2.0
2,571
/** * @(#) AutoCar.scala 2015εΉ΄3月4ζ—₯ * TURBO CRAWLERι«˜ζ€§θƒ½η½‘η»œηˆ¬θ™« */ package turbo.crawler.sample import java.util.Date import javax.persistence.Column import javax.persistence.Entity import javax.persistence.GeneratedValue import javax.persistence.Id import javax.persistence.ManyToOne import javax.persistence....
fengshao0907/Mycat-spider
src/test/scala/turbo/crawler/sample/AutoCar.scala
Scala
apache-2.0
1,311
/*********************************************************************** * Copyright (c) 2013-2019 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...
elahrvivaz/geomesa
geomesa-fs/geomesa-fs-storage/geomesa-fs-storage-parquet/src/test/scala/org/locationtech/geomesa/parquet/CompactionTest.scala
Scala
apache-2.0
4,537
/** * 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"); yo...
gf53520/kafka
core/src/main/scala/kafka/admin/LogDirsCommand.scala
Scala
apache-2.0
5,982
/* * Copyright (C) 2016 University of Basel, Graphics and Vision Research Group * * 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) an...
unibas-gravis/scalismo-ui
src/main/scala/scalismo/ui/control/interactor/Recipe.scala
Scala
gpl-3.0
7,231
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/lgpl-3.0.en.html package org.ensime.sexp class SexpPackageSpec extends SexpSpec { val foostring = SexpString("foo") val barstring = SexpString("bar") val foosym = SexpSymbol("foo") val barsym ...
jozi-k/ensime-server
s-express/src/test/scala/org/ensime/sexp/SexpPackageSpec.scala
Scala
gpl-3.0
2,603
package co.theasi.plotly import org.scalatest.{Matchers, FlatSpec} class BarOptionsSpec extends FlatSpec with Matchers { "BarOptions" should "support setting marker options via updater" in { val testColor = Color.rgba(1, 2, 3, 0.2) val expectedOptions = MarkerOptions().color(testColor) val barOptions = ...
ASIDataScience/scala-plotly-client
src/test/scala/co/theasi/plotly/BarOptionsSpec.scala
Scala
mit
423
/* * 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 ...
fhueske/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/rules/physical/stream/StreamExecSinkRule.scala
Scala
apache-2.0
3,333
/* * #%L * MITH General Utilities * %% * Copyright (C) 2011 - 2012 Maryland Institute for Technology in the Humanities * %% * 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 * * h...
umd-mith/mith-jvm-lib
util/src/main/scala/edu/umd/mith/util/aws/s3/HathiCleanup.scala
Scala
apache-2.0
2,242
package reftree.svg import reftree.svg.animation._ import reftree.svg.api.{SvgWrapper, OptimizedSvgApi, BaseSvgApi} case class GraphAnimation[Svg](api: BaseSvgApi[Svg]) { val alignment = GraphAlignment(api) val cleanup = GraphCleanup(api) val accentuation = GraphAccentuation(api) val interpolation = GraphInte...
stanch/reftree
core/shared/src/main/scala/reftree/svg/GraphAnimation.scala
Scala
gpl-3.0
1,516
package org.apache.mesos.chronos.scheduler.jobs import org.apache.mesos.chronos.scheduler.api.{DependentJobResource, Iso8601JobResource} import org.apache.mesos.chronos.scheduler.graph.JobGraph import org.apache.mesos.chronos.scheduler.state.PersistenceStore import org.joda.time.format.ISODateTimeFormat import org.jod...
mikkokupsu/chronos
src/test/scala/org/apache/mesos/chronos/scheduler/jobs/JobSchedulerIntegrationTest.scala
Scala
apache-2.0
29,602
package org.jboss.shrinkwrap.resolver.api import org.jboss.shrinkwrap.resolver.api.maven.ConfigurableMavenResolverSystem object MavenResolver { def apply() = ResolverSystemFactory .createFromUserView( classOf[ConfigurableMavenResolverSystem], //Class which the resolver breaks on Class.forName(...
ToIthaca/sbt-robovm
src/main/scala/org/jboss/shrinkwrap/resolver/api/MavenResolver.scala
Scala
bsd-2-clause
404
/** * Copyright (C) 2015-2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
PaulBoon/easy-stage-dataset
src/test/scala/nl/knaw/dans/easy/stage/fileitem/SdoFiles.scala
Scala
apache-2.0
2,534
package im.mange.backdoor.server.kryo import com.twitter.chill.ScalaKryoInstantiator import im.mange.backdoor.BackdoorMessage import im.mange.backdoor.server.kryo.serialiser.{DateTimeSerializer, LocalDateSerializer} import org.joda.time.{DateTime, LocalDate} object Cryopreservation { import java.util.Base64 impo...
alltonp/backdoor-liftweb
src/main/scala/im/mange/backdoor/server/kryo/Cryopreservation.scala
Scala
apache-2.0
1,186
package com.github.diegopacheco.scala3.playground.features @main def ImplicitConversionsApp():Unit = { given Conversion[String, Int] with def apply(s:String):Int = Integer.parseInt(s) // a method that expects an Int def plus1(i:Int) = i + 1 // pass it a String that converts to an Int println(plus1("...
diegopacheco/scala-playground
scala-3-playground/scala-3-playground/src/main/scala/com/github/diegopacheco/scala3/playground/features/ImplicitConversionsApp.scala
Scala
unlicense
330
package com.twitter.inject.requestscope import com.twitter.finagle.{Service, SimpleFilter} import com.twitter.util.Future import javax.inject.Inject class FinagleRequestScopeFilter[Req, Rep] @Inject()( finagleScope: FinagleRequestScope) extends SimpleFilter[Req, Rep] { def apply(request: Req, service: Service[...
deanh/finatra
inject/inject-request-scope/src/main/scala/com/twitter/inject/requestscope/FinagleRequestScopeFilter.scala
Scala
apache-2.0
447
package fr.univ.nantes.roomanager.dao.salle import fr.univ.nantes.roomanager.bean.SalleBean /** * @author Pierre Gaultier * @author Alexis Giraudet */ class SalleDaoImpl extends SalleDao { private var increment: Int = 0 private var salles: Set[SalleBean] = Set() override def get(id: Int): SalleBean = { ...
Giraudux/roomanager
src/main/scala/fr/univ/nantes/roomanager/dao/salle/SalleDaoImpl.scala
Scala
mit
1,605
/*********************************************************************** * 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 ...
tkunicki/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/index/encoders/BinEncoder.scala
Scala
apache-2.0
2,429
package com.truecar.mleap.demo.server import java.io.File import ml.bundle.fs.DirectoryBundle import com.truecar.mleap.runtime.transformer.Transformer import com.truecar.mleap.serialization.ml.v1.MlJsonSerializer /** * Created by hwilkins on 1/20/16. */ object Boot extends App { val transformerPath = args(0) ...
TrueCar/mleap-demo
server/src/main/scala/com/truecar/mleap/demo/server/Boot.scala
Scala
mit
640
/** * 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...
tnachen/kafka
core/src/main/scala/kafka/consumer/SimpleConsumer.scala
Scala
apache-2.0
7,744
/** Test matrix multiplication with specialization. */ @deprecated("Suppress warnings", since="2.11") object Test { import scala.reflect.ClassManifest class Matrix[@specialized A: ClassManifest](val rows: Int, val cols: Int) { private val arr: Array[Array[A]] = Array.ofDim[A](rows, cols) def apply(i: Int, j: In...
lrytz/scala
test/files/specialized/spec-matrix-old.scala
Scala
apache-2.0
2,096