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.twitter.finagle.kestrelx import scala.collection.JavaConversions._ import com.twitter.concurrent.{Offer, Broker} import com.twitter.conversions.time._ import com.twitter.finagle.kestrelx.protocol._ import com.twitter.finagle.builder.ClientBuilder import com.twitter.finagle.{ServiceFactory, Service} import...
cogitate/twitter-finagle-uuid
finagle-kestrelx/src/main/scala/com/twitter/finagle/kestrelx/Client.scala
Scala
apache-2.0
19,421
package spray.examples import scala.concurrent.Future import scala.concurrent.duration._ import akka.actor.ActorSystem import akka.io.IO import akka.pattern.ask import akka.util.Timeout import spray.http._ import spray.can.Http import HttpMethods._ trait RequestLevelApiDemo { private implicit val timeout: Timeout =...
fabiofumarola/akka-tutorial
src/main/scala/spray/examples/RequestLevelApiDemo.scala
Scala
cc0-1.0
1,337
/* Copyright 2015 Mate1 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 writ...
mate1/kafka-avro-tools
src/main/scala/com/mate1/kafka/avro/AvroDecoder.scala
Scala
apache-2.0
3,935
package com.typesafe.sbt.packager import sbt.Keys._ import sbt._ object SettingsHelper { def addPackage(config: Configuration, packageTask: TaskKey[File], extension: String, classifier: Option[String] = None): Seq[Setting[_]] = inConfig(config)( addArtif...
fsat/sbt-native-packager
src/main/scala-sbt-0.13/com/typesafe/sbt/packager/SettingsHelper.scala
Scala
bsd-2-clause
3,128
/*** * Copyright 2014 Rackspace US, 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 applica...
tylerroyal/api-checker
core/src/test/scala/com/rackspace/com/papi/components/checker/handler/DelegationHandlerTest.scala
Scala
apache-2.0
2,978
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.fixture import java.io.{ File => JFile } import java.nio.charset.Charset import java.nio.file.Files import org.ensime.api._ import org.ensime.config._ import org.ensime.c...
hzenginx/ensime-server
core/src/it/scala/org/ensime/fixture/EnsimeConfigFixture.scala
Scala
gpl-3.0
7,887
package breeze.stats.distributions /* Copyright 2009 David Hall, Daniel Ramage 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...
wavelets/breeze
src/test/scala/breeze/stats/distributions/UniformTest.scala
Scala
apache-2.0
1,253
/* * 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 ...
hengyicai/OnlineAggregationUCAS
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/GeneratedEvaluationSuite.scala
Scala
apache-2.0
2,439
package model import resources.{ApiV19, ApiV21} import upickle.default._ import utest._ import utest.framework.TestSuite object ContainerInfoTest extends TestSuite { def tests = TestSuite { 'ContainerInfo { val json = ApiV21.ContainerInfo val info = read[ContainerInfo](json) assert(info.id =...
felixgborrego/simple-docker-ui
src/test/scala/model/ContainerInfoTest.scala
Scala
mit
826
/* * 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 ...
mrchristine/spark-examples-dbc
src/main/scala/org/apache/spark/examples/SparkHdfsLR.scala
Scala
apache-2.0
2,793
package inloopio.math.random import java.util.Random /** * <p>This is the default {@link Random JDK RNG} extended * to implement the {@link RepeatableRNG} interface (for consistency with * the other RNGs in this package).</p> * * <p>The {@link MersenneTwisterRNG} should be used in preference to this * class bec...
dcaoyuan/inloopio-libs
inloopio-math/src/main/scala/inloopio/math/random/JavaRNG.scala
Scala
bsd-3-clause
1,636
/* Copyright 2016-17, Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH 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 applicab...
bpn1/ingestion
src/test/scala/de/hpi/ingestion/deduplication/similarity/OverlapUnitTest.scala
Scala
apache-2.0
978
/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2010, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/...
cran/rkafkajars
java/scala/math/Ordering.scala
Scala
apache-2.0
15,133
package codechicken.multipart.asm import codechicken.multipart.TileMultipart trait IMultipartFactory { def registerTrait(s_interface:String, s_trait:String, client:Boolean) def generatePassThroughTrait(s_interface:String):String def generateTile(types:Seq[String], client:Boolean):TileMultipart }
DragonsLover/ForgeMultipart
src/codechicken/multipart/asm/IMultipartFactory.scala
Scala
lgpl-2.1
320
package ru.pavkin.todoist.api.core.query import cats.{FlatMap, Id} import ru.pavkin.todoist.api.core.decoder.SingleResponseDecoder import ru.pavkin.todoist.api.core.{HasRawRequest, RequestDefinitionSpec} import ru.pavkin.todoist.api.utils.Flattener import shapeless.HNil import shapeless.test.{illTyped, typed} import ...
vpavkin/scalist
tests/src/test/scala/ru/pavkin/todoist/api/core/query/QueryDefinitionSpec.scala
Scala
mit
2,547
class C { val b = new B b.getInline }
dotty-staging/dotty
sbt-test/source-dependencies/inline-inherited/C.scala
Scala
apache-2.0
42
/** * 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...
geeag/kafka
core/src/test/scala/unit/kafka/message/MessageWriterTest.scala
Scala
apache-2.0
4,565
package se.apogo.kdom.api import io.shaka.http.Http.http import io.shaka.http.Request.{GET, POST} import org.json4s._ import org.json4s.jackson.JsonMethods._ import org.testng.annotations.Test import model._ class ApiTest { val apiUrl = "http://localhost:8080" implicit val formats = DefaultFormats @Test(enabl...
mratin/kdom
src/test/scala/se/apogo/kdom/api/ApiTest.scala
Scala
mit
2,921
package org.jetbrains.plugins.scala.lang.resolve import java.io.File import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi.util.text.StringUtil import com.intellij.openapi.vfs.CharsetToolkit import com.intellij.psi.{PsiElement, PsiFile} import com.intellij.psi.util.PsiTreeUtil import com.intellij.t...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/resolve/SimpleResolveTestBase.scala
Scala
apache-2.0
3,087
/* * Copyright 2012 Pellucid and Zenexity * * 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...
Enalmada/datomisca
core/src/main/scala/datomisca/SchemaFact.scala
Scala
apache-2.0
1,336
package helpers object StringHelper { def containsCaseInsensitive(s: String, l: List[String]): Boolean = { for (string <- l) { if (string.equalsIgnoreCase(s)) return true } false } }
TVilaboa/Egresados
app/helpers/StringHelper.scala
Scala
gpl-3.0
207
package com.gmail.at.pukanito.controller.bigdataset import com.gmail.at.pukanito.model.attributes.{AttributeDefinitionNode,AttributeModel} import com.gmail.at.pukanito.model.repository.GraphRepository /** * Big data model is an attribute definition graph stored in a * graph repository. Listeners can be attached to...
pukanito/bigdatanalysis
src/main/scala/com/gmail/at/pukanito/controller/bigdataset/BigDataModel.scala
Scala
gpl-3.0
753
import scala.language.higherKinds sealed trait Bool { type Not <: Bool type And[A <: Bool] <: Bool type Or[A <: Bool] <: Bool type If[Then <: A, Else <: A, A] <: A } sealed trait True extends Bool { type Not = False type And[A <: Bool] = A type Or[A <: Bool] = True type If[Then <: A, Else <: A, A] = T...
backpaper0/sandbox
scripts/type-level-programming/bool.scala
Scala
mit
2,099
package com.miguno.avro.relative import org.specs2.mutable.Specification import test.TestUtil import com.julianpeeters.avro.annotations._ @AvroTypeProvider("../../resources/AvroTypeProviderTestRelativeSchemaFilePath.avsc") @AvroRecord case class Tweet() class AvroTypeProviderRelativeSchemaFilePathTest extends Spec...
julianpeeters/avro-scala-macro-annotations
tests/src/test/scala/AvroTypeProviderTests/AvroTypeProviderRelativeSchemaFilePathTest.scala
Scala
apache-2.0
692
package org.bitcoins.spvnode.messages.data import org.bitcoins.spvnode.gen.DataMessageGenerator import org.scalacheck.{Prop, Properties} /** * Created by chris on 7/8/16. */ class GetDataMessageSpec extends Properties("GetDataMessageSpec") { property("Serialization symmetry") = Prop.forAll(DataMessageGener...
bitcoin-s/bitcoin-s-spv-node
src/test/scala/org/bitcoins/spvnode/messages/data/GetDataMessageSpec.scala
Scala
mit
409
package wom.graph import wom.graph.GraphNode.{GeneratedNodeAndNewNodes, GraphNodeWithInnerGraph} import wom.graph.GraphNodePort.{ConditionalOutputPort, ConnectedInputPort, InputPort, OutputPort} import wom.graph.expression.ExpressionNode import wom.types.WomBooleanType import common.collections.EnhancedCollections._ ...
ohsu-comp-bio/cromwell
wom/src/main/scala/wom/graph/ConditionalNode.scala
Scala
bsd-3-clause
2,350
package io.github.tomykaira.uchronie.ui import io.github.tomykaira.uchronie.git.Commit import io.github.tomykaira.uchronie.GitRepository case class CommitDecorator(commit: Commit) { val oneLineMessage: String = { val message = commit.message val lineEnd = message.indexOf('\\n') if (lineEnd == -1) ...
tomykaira/constraintscala
uchronie/src/main/scala/io/github/tomykaira/uchronie/ui/CommitDecorator.scala
Scala
bsd-3-clause
1,064
package ManualnOutdated import leon.lazyeval._ import leon.lang._ import leon.annotation._ import leon.instrumentation._ import scala.math.BigInt.int2bigInt //import leon.invariant._ object TestArray { sealed abstract class LList { def size: BigInt = { this match { case SNil() => BigInt(0) ...
epfl-lara/leon
testcases/lazy-datastructures/ManualnOutdated/TestArray.scala
Scala
gpl-3.0
1,136
package org.buttercoin.common.actor import akka.actor.{ ActorRef, ActorLogging } /** Sent to indicate the upstream actor for an {@link Upstream} instance */ case class SetUpstream(upstream: ActorRef) /** Allows the specification of an upstream actor, used to * route events or messages to an interested third party...
buttercoin/engine
common/src/main/scala/actors/Upstream.scala
Scala
mit
842
package actor import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.http.scaladsl.marshalling.ToResponseMarshallable.apply import akka.http.scaladsl.model.{ContentTypes, HttpEntity} import akka.http.scaladsl.server.Directive.addByNameNullaryApply import akka.http.scaladsl.server.Directives.{_segment...
xtwxy/mysc
dcim-cluster/cluster/src/main/scala/actor/WebServer.scala
Scala
apache-2.0
1,362
package edu.rice.habanero.benchmarks.nqueenk import edu.rice.habanero.actors.{LiftActor, LiftActorState, LiftPool} import edu.rice.habanero.benchmarks.nqueenk.NQueensConfig.{DoneMessage, ResultMessage, StopMessage} import edu.rice.habanero.benchmarks.{Benchmark, BenchmarkRunner} /** * @author <a href="http://shams.w...
shamsmahmood/savina
src/main/scala/edu/rice/habanero/benchmarks/nqueenk/NQueensLiftActorBenchmark.scala
Scala
gpl-2.0
5,201
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
witgo/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/jdbc/JDBCTableCatalog.scala
Scala
apache-2.0
12,214
package no.netcompany.testdatagen.utils import no.netcompany.testdatagen.Generator // Copyright (C) 2014 Lars Reed -- GNU GPL 2.0 -- see LICENSE.txt /** Utilities for handling streams. */ trait StreamUtils { /** * Combine a list of streams -- return a stream of Seqs with one element * from each input stream...
lre-mesan/testdata
src/main/scala/no/netcompany/testdatagen/utils/StreamUtils.scala
Scala
gpl-2.0
1,203
package org.webant.worker.config import java.io.File import org.apache.commons.io.FileUtils import org.apache.commons.lang3.StringUtils import org.apache.log4j.LogManager import org.webant.commons.entity.{SiteConfig, TaskConfig} import org.webant.commons.utils.{HttpUtils, JsonUtils} class HttpTaskConfigBuilder { p...
sutine/webant
webant-worker/src/main/scala/org/webant/worker/config/HttpTaskConfigBuilder.scala
Scala
apache-2.0
1,497
/* * 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/Observable.scala
Scala
apache-2.0
94,460
/* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Martin Odersky */ package dotty.tools package dotc import core.Contexts.Context object Main extends Driver { def resident(compiler: Compiler): Unit = unsupported("resident") /*loop { line => val command = new CompilerCommand(line split "...
som-snytt/dotty
tests/neg-with-compiler/Main.scala
Scala
apache-2.0
786
/* * Copyright 2016 OrgSync. * * 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 ...
orgsync/oskr-events
src/main/scala/com/orgsync/oskr/events/messages/Message.scala
Scala
apache-2.0
1,597
package util package object timers { def time[T](name: String)(f: => T): T = { val start = System.currentTimeMillis val res = f val end = System.currentTimeMillis println(name + ":" + (end - start) + "ms") res } }
PaulKeeble/TVTracker
app/util/timers/package.scala
Scala
gpl-2.0
248
package com.github.dannywe.csv.validation import javax.validation.Validation import com.github.dannywe.csv.base.StreamValidator object JavaxValidator extends StreamValidator(Validation.buildDefaultValidatorFactory.getValidator)
DannyWE/CsvStreamUtils
src/main/scala/com/github/dannywe/csv/validation/JavaxValidator.scala
Scala
apache-2.0
231
package bita import com.thenewmotion.akka.rabbitmq._ import com.thenewmotion.akka.rabbitmq.ChannelActor.ChannelMessage import com.rabbitmq.client._ import com.thenewmotion.akka.rabbitmq.ConnectionActor.{ Created, Create } import akka.actor.{ ActorSystem, Actor, Props, ActorRef } import akka.bita.{ RandomScheduleHelpe...
Tjoene/thesis
Case_Programs/akka-rabbitmq-0.0.2/src/test/scala/bita/PublishSubscribe.scala
Scala
gpl-2.0
3,380
package gitbucket.core.plugin import gitbucket.core.controller.Context import gitbucket.core.model.Issue import gitbucket.core.service.RepositoryService.RepositoryInfo import gitbucket.core.model.Profile._ import profile.api._ trait IssueHook { def created(issue: Issue, repository: RepositoryInfo)(implicit session...
gencer/gitbucket
src/main/scala/gitbucket/core/plugin/IssueHook.scala
Scala
apache-2.0
895
package pl.touk.nussknacker.engine.management.sample.global import pl.touk.nussknacker.engine.api.MetaData import pl.touk.nussknacker.engine.api.typed.typing.{Typed, TypingResult} import pl.touk.nussknacker.engine.api.typed.{TypedGlobalVariable, TypedMap} /** * Returns sample configuration - list of typed maps, bas...
TouK/nussknacker
engine/flink/management/dev-model/src/main/scala/pl/touk/nussknacker/engine/management/sample/global/ConfigTypedGlobalVariable.scala
Scala
apache-2.0
1,336
package com.brakmic.flink.demos /** * 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, Ve...
brakmic/TwitterFlink
twitter_flink/src/main/scala/com/brakmic/flink/demos/Job.scala
Scala
mit
2,122
/* * 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/main/scala/com/intel/analytics/bigdl/nn/Mul.scala
Scala
apache-2.0
3,069
package test import scala.io.Source import judge.common import judge.Solution object subarray_sum { val num_test = 100; var in_0 = List[List[Int]](); var in_1 = List[Int](); var out = List[](); def load_test() = { val in = Source.fromFile("./judge/tests/subarray-sum.txt").getLines; ...
wangyanxing/Judge-at-fgdsb
judge/scala/tests/subarray_sum.scala
Scala
mit
1,382
/* * 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 ...
h2oai/sparkling-water
core/src/main/scala/ai/h2o/sparkling/backend/H2OAwareBaseRDD.scala
Scala
apache-2.0
1,682
/* * Copyright 2012-2014 Comcast Cable Communications Management, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
weggert/sirius
src/test/scala/com/comcast/xfinity/sirius/api/impl/paxos/CommanderTest.scala
Scala
apache-2.0
5,382
package io.flow.lint.linters import io.flow.lint.Linter import io.flow.lint.util.Expansions import io.apibuilder.spec.v0.models.{Method, Operation, Resource, Service} /** * Enforce that for models with expansion where the return type is * expandable, the get/:id method has the expand parameter */ case object Ge...
flowcommerce/api-lint
src/main/scala/io/flow/lint/linters/GetByIdIsExpandable.scala
Scala
mit
1,255
package ru.tomtrix import akka.actor._ import ru.tomtrix.ttl.GUI._ object AppTest extends App { createApp("Trixer", 500, 400) { (shell, system) => system.actorOf(Props[Model], name = "Model") system.actorOf(Props(new View(shell)), name = "View") system.actorOf(Props[Controller], name = "Controller") }...
tom-trix/TomTrixLibrary
src/test/scala/ru/tomtrix/AppTest.scala
Scala
apache-2.0
322
package mesosphere.marathon.api.v2.json import mesosphere.marathon.{ MarathonSpec } import org.scalatest.Matchers class V2AppDefinitionTest extends MarathonSpec with Matchers { }
spacejam/marathon
src/test/scala/mesosphere/marathon/api/v2/json/V2AppDefinitionTest.scala
Scala
apache-2.0
181
package us.illyohs.civilmagiks.common.core.util import net.minecraft.block.Block import net.minecraft.block.material.Material import net.minecraft.block.state.IBlockState import net.minecraft.creativetab.CreativeTabs import net.minecraft.util.EnumBlockRenderType import net.minecraft.util.math.{AxisAlignedBB, BlockPos}...
Illyohs/CivilMagicks
src/main/scala/us/illyohs/civilmagiks/common/core/util/BlockBase.scala
Scala
bsd-2-clause
1,429
package pl.newicom.dddd.office import pl.newicom.dddd.serialization.{JsonSerializationHints, NoSerializationHints} import scala.reflect.ClassTag object OfficeInfo { def apply[A](_serializationHints: JsonSerializationHints)(implicit ct: ClassTag[A]): OfficeInfo[A] = new OfficeInfo[A] { def serializationHi...
ahjohannessen/akka-ddd
akka-ddd-messaging/src/main/scala/pl/newicom/dddd/office/OfficeInfo.scala
Scala
mit
880
/* * Copyright (c) 2013 Christos KK Loverdos * * 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...
loverdos/thrift3r
src/main/scala/com/ckkloverdos/thrift3r/collection/builder/CollectionBuilder.scala
Scala
apache-2.0
918
package org.gDanix.podapp_ng_server.models import org.gDanix.podapp_ng_server.dao.Tables.ImparteRow object Imparte { implicit def fromImparteRow: ImparteRow => Imparte = row => Imparte(row.asignatura, row.profesor, row.curso, row.group, row.creditos.toDouble) implicit def toImparteRow: Imparte => ImparteRow = imp...
gDanix/PODApp-ng-server
app/org/gDanix/podapp_ng_server/models/Imparte.scala
Scala
apache-2.0
523
/* * 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 n...
lindong28/kafka
core/src/test/scala/integration/kafka/api/BaseAdminIntegrationTest.scala
Scala
apache-2.0
10,969
/* * 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/fset-faststream
app/services/testdata/candidate/fsb/FsbAwaitingAllocationStatusGenerator.scala
Scala
apache-2.0
3,916
/* * Copyright 2013 Maurício Linhares * * Maurício Linhares licenses this file to you 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 ...
ilangostl/postgresql-async
db-async-common/src/main/scala/com/github/mauricio/async/db/util/ChannelWrapper.scala
Scala
apache-2.0
3,125
/* * Copyright 2009-2015 DigitalGlobe, 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 ag...
djohnson729/mrgeo
mrgeo-core/src/main/scala/org/mrgeo/spark/job/JobArguments.scala
Scala
apache-2.0
7,175
/* * 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 ...
practice-vishnoi/dev-spark-1
examples/src/main/scala/org/apache/spark/examples/LocalKMeans.scala
Scala
apache-2.0
3,510
package org.bitcoins.spvnode.networking import java.net.{InetSocketAddress, ServerSocket} import akka.actor.ActorSystem import akka.io.{Inet, Tcp} import akka.testkit.{ImplicitSender, TestActorRef, TestKit, TestProbe} import org.bitcoins.core.config.TestNet3 import org.bitcoins.core.util.{BitcoinSLogger, BitcoinSUtil...
bitcoin-s/bitcoin-s-spv-node
src/test/scala/org/bitcoins/spvnode/networking/ClientTest.scala
Scala
mit
2,829
package securesocial.testkit import securesocial.core.{Authenticator, AuthenticatorStore} import play.api.Application class FakeAuthenticatorStore(app:Application) extends AuthenticatorStore(app) { var authenticator:Option[Authenticator] = None def save(authenticator: Authenticator): Either[Error, Unit] = { t...
HyunsungJo/securesocial-test
test-kit/src/main/scala/securesocial/testkit/FakeAuthenticatorStore.scala
Scala
apache-2.0
625
package org.jetbrains.plugins.scala.lang.formatter.tests.scalafmt class ScalaFmtCustomConfigTest extends ScalaFmtTestBase { def testIncompleteFileWithRewriteRules_1(): Unit = { setScalafmtConfig("redundantBraces.conf") val before = s"""trait X { | def foo = 42 |} |def zo...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/formatter/tests/scalafmt/ScalaFmtCustomConfigTest.scala
Scala
apache-2.0
2,918
package jp.co.cyberagent.aeromock.proxy import jp.co.cyberagent.aeromock.core.el.ELContext import jp.co.cyberagent.aeromock.core.javassist.DynamicProxyBuilder import scala.reflect.ClassTag import javassist.CtClass import jp.co.cyberagent.aeromock.data.MethodDef import javassist.CtMethod import jp.co.cyberagent.aeromoc...
CyberAgent/aeromock
aeromock-server/src/main/scala/jp/co/cyberagent/aeromock/proxy/DynamicDataProxyBuilder.scala
Scala
mit
2,586
/* * 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 ...
maropu/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/r/ArrowRRunner.scala
Scala
apache-2.0
7,153
/* * Copyright 2017 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...
liquidarmour/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/AC162.scala
Scala
apache-2.0
1,903
/* * 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...
LREN-CHUV/workflow
src/main/scala/ch/chuv/lren/woken/dispatch/MetadataQueriesActor.scala
Scala
apache-2.0
5,463
package io.buoyant.namerd import com.fasterxml.jackson.core.{JsonGenerator, JsonParser} import com.fasterxml.jackson.databind.{DeserializationContext, JsonDeserializer, JsonSerializer, SerializerProvider} import com.fasterxml.jackson.databind.module.SimpleModule import com.twitter.finagle.{Dentry, NameTree, Path} obj...
denverwilliams/linkerd
namerd/core/src/main/scala/io/buoyant/namerd/DtabCodec.scala
Scala
apache-2.0
1,755
/*********************************************************************** * 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-hbase/geomesa-hbase-datastore/src/main/scala/org/locationtech/geomesa/hbase/utils/CoprocessorBatchScan.scala
Scala
apache-2.0
3,466
package com.pwootage.metroidprime.dump import java.io.{DataInputStream, FileWriter} import java.nio.file.{Files, Path, Paths} import com.pwootage.metroidprime.formats.common.{Face, PrimeFileType} import com.pwootage.metroidprime.formats.io.PrimeDataFile import com.pwootage.metroidprime.formats.mlvl.{Area, MLVL} impor...
Pwootage/prime-patcher
src/main/scala/com/pwootage/metroidprime/dump/CollisionDumper.scala
Scala
gpl-3.0
4,641
/* * Copyright (c) 2017 * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the foll...
lewismj/tiki
tests/src/test/scala/tiki/tests/KosarajuSpec.scala
Scala
bsd-2-clause
3,126
package org.vitrivr.adampro.query.distance import org.vitrivr.adampro.data.datatypes.vector.Vector.VectorBase import org.vitrivr.adampro.query.distance.Distance.Distance /** * ADAMpro * * Ivan Giangreco * June 2016 * * from Julia: sum((x .!= y) .* w) */ object HammingDistance extends ElementwiseSummedDi...
dbisUnibas/ADAMpro
src/main/scala/org/vitrivr/adampro/query/distance/HammingDistance.scala
Scala
mit
537
package org.lodsb.scales /* +1>> This source code is licensed as GPLv3 if not stated otherwise. >> NO responsibility taken for ANY harm, damage done >> to you, your data, animals, etc. >> +2>> >> Last modified: 2013-11-07 :: 17:46 >> Origin: >> +3>> >> Copyright (c) 2013: ...
lodsb/scales
src/main/scala/Contour.scala
Scala
gpl-3.0
2,681
package monocle.std import monocle.{Prism, PPrism, Iso, PIso} import scalaz.{\\/, -\\/, \\/-} object either extends EitherOptics trait EitherOptics { final def pStdLeft[A, B, C]: PPrism[Either[A, B], Either[C, B], A, C] = PPrism[Either[A, B], Either[C, B], A, C]{ case Left(a) => \\/-(a) case Ri...
NightRa/Monocle
core/src/main/scala/monocle/std/Either.scala
Scala
mit
995
/* * Copyright 2017 PayPal * * 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 ...
SarathChandran/squbs
squbs-unicomplex/src/test/scala/org/squbs/unicomplex/SystemSettingBeanSpec.scala
Scala
apache-2.0
3,191
/* * Copyright: Copyright (C) 2016, ATS Advanced Telematic Systems GmbH * License: MPL-2.0 */ package org.genivi.sota.http import akka.http.scaladsl.server.{Directive0, Directives} import com.typesafe.config.ConfigFactory object Scopes { lazy val apiDomain = ConfigFactory.load().getString("scopes.domain") l...
PDXostc/rvi_sota_server
common/src/main/scala/org/genivi/sota/http/Scopes.scala
Scala
mpl-2.0
1,361
package wow.auth.protocol.packets import wow.common.codecs._ import wow.auth.protocol.{ClientPacket, OpCodes} import scodec._ import scodec.codecs._ /** * A client realmlist request contains only four null bytes. */ case class ClientRealmlist() extends ClientPacket /** * The client realmlist request descriptor...
SKNZ/SpinaciCore
wow/core/src/main/scala/wow/auth/protocol/packets/ClientRealmlist.scala
Scala
mit
492
package com.arcusys.learn.storage.impl /** * User: dkudinov * Date: 14.3.2013 */ trait EntityStorage[E] { def getOne(parameters: (String, Any)*): Option[E] def getAll(parameters: (String, Any)*): Seq[E] def create(parameters: (String, Any)*) def create(entity: E, parameters: (String, Any)*) def delete...
ViLPy/Valamis
learn-persistence-api/src/main/scala/com/arcusys/learn/storage/impl/EntityStorage.scala
Scala
lgpl-3.0
698
/* 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...
iesl/fuse_ttl
src/factorie-factorie_2.11-1.1/src/main/scala/cc/factorie/app/nlp/phrase/Phrase.scala
Scala
apache-2.0
4,845
/** * Copyright (C) 2016 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
brunobuzzi/orbeon-forms
form-runner/jvm/src/test/scala/org/orbeon/oxf/test/TestHttpClient.scala
Scala
lgpl-2.1
8,644
/* * Copyright 2015 Stephan Rehfeld * * 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 ...
stephan-rehfeld/scaladelray
src/test/scala/test/scaladelray/optimization/AxisAlignedBoundingBoxSpec.scala
Scala
apache-2.0
4,784
/* * Copyright 2014–2017 SlamData 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 agr...
drostron/quasar
connector/src/main/scala/quasar/qscript/ShiftedRead.scala
Scala
apache-2.0
1,568
package filodb.memory.format.vectors import org.agrona.ExpandableArrayBuffer object HistogramTest { val bucketScheme = GeometricBuckets(1.0, 2.0, 8) val customScheme = CustomBuckets(Array(0.25, 0.5, 1.0, 2.5, 5.0, 10, Double.PositiveInfinity)) val rawHistBuckets = Seq( Array[Double](10, 15, 17, 20, 25, 34, ...
tuplejump/FiloDB
memory/src/test/scala/filodb.memory/format/vectors/HistogramTest.scala
Scala
apache-2.0
7,225
package org.helgoboss.domino.service_consuming import org.osgi.framework.BundleContext import org.helgoboss.domino.OsgiContext /** * A class that mixes in the [[ServiceConsuming]] trait. Use this if you want to use a class instead of a trait. */ class SimpleServiceConsuming(protected val bundleContext: BundleContex...
lefou/domino
src/main/scala/org/helgoboss/domino/service_consuming/SimpleServiceConsuming.scala
Scala
mit
423
package com.blogspot.nhu313.tictactoe.player import com.blogspot.nhu313.tictactoe.{Board, Player, Marker, IO} class HumanPlayer(val name: String, val marker: Marker, val io: IO) extends Player { def move(board: Board): Int = { var move = io.readInteger() while (!board.isValidMove(move)){ io.display("...
nhu313/tic_tac_toe_scala
src/main/scala/tictactoe/player/HumanPlayer.scala
Scala
apache-2.0
422
/* * 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 /** Class `AnyR...
martijnhoekstra/scala
test/scaladoc/resources/doc-root/AnyRef.scala
Scala
apache-2.0
5,543
/* * _ _ * _ __ ___ | |__ | | ___ * | '_ \\ / _ \\| '_ \\| |/ _ \\ noble :: norcane blog engine * | | | | (_) | |_) | | __/ Copyright (c) 2016-2018 norcane * |_| |_|\\___/|_.__/|_|\\___| * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file...
norcane/noble
sdk/noble-api/src/main/scala/com/norcane/noble/api/models/BlogPostMeta.scala
Scala
apache-2.0
2,409
/** * 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...
timve/gatling
gatling-core/src/main/scala/io/gatling/core/session/package.scala
Scala
apache-2.0
3,278
package com.softwaremill.mqperf.mq import java.util.Properties import java.util.concurrent.ConcurrentLinkedQueue import java.util.concurrent.locks.ReentrantReadWriteLock import com.softwaremill.mqperf.{ReceiverRunnable, ReportResults} import com.typesafe.scalalogging.slf4j.StrictLogging import kafka.consumer.{Consume...
agilemobiledev/mqperf
src/main/scala/com/softwaremill/mqperf/mq/KafkaMq.scala
Scala
apache-2.0
5,222
/* * 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 ...
brad-kaiser/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamingSymmetricHashJoinExec.scala
Scala
apache-2.0
25,090
package com.geteit.rcouch.actors import org.scalatest._ import akka.actor.ActorSystem import akka.testkit.{ImplicitSender, TestKit} import com.geteit.rcouch.Settings.ClusterSettings import scala.concurrent.duration._ import akka.pattern.gracefulStop import scala.concurrent.Await import com.geteit.rcouch.couchbase.Couc...
zbsz/reactive-couch
src/it/scala/com/geteit/rcouch/actors/BucketMonitorSpec.scala
Scala
apache-2.0
1,479
package models.db import ranking.common.RankingElement import scalikejdbc._ import org.json4s._ import org.json4s.native.JsonMethods._ import util.Ymdh case class MyfleetRanking( id: Long, rankingId: Int, rank: Int, yyyymmddhh: Int, targetId: Long, targetName: String, data: String, url: Option[String]...
b-wind/MyFleetGirls
server/app/models/db/MyfleetRanking.scala
Scala
mit
5,797
package org.scaladebugger.api.lowlevel.utils import org.scalamock.scalatest.MockFactory import org.scalatest.{FunSpec, Matchers, ParallelTestExecution} import org.scaladebugger.api.lowlevel.JDIArgument import org.scaladebugger.api.lowlevel.events.JDIEventArgument import org.scaladebugger.api.lowlevel.requests.JDIReque...
ensime/scala-debugger
scala-debugger-api/src/test/scala/org/scaladebugger/api/lowlevel/utils/JDIArgumentGroupSpec.scala
Scala
apache-2.0
2,269
package dk.gp.factorgraph import breeze.linalg.DenseMatrix import breeze.linalg.DenseVector import dk.bayes.factorgraph2.factor.CanonicalGaussianFactor import dk.bayes.factorgraph2.factor.CanonicalLinearGaussianFactor import dk.bayes.factorgraph2.variable.CanonicalGaussianVariable import dk.bayes.math.gaussian.Multiva...
danielkorzekwa/bayes-scala-gp
src/main/scala/dk/gp/factorgraph/GPVariable.scala
Scala
bsd-2-clause
1,610
/* * 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 ...
rezasafi/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala
Scala
apache-2.0
44,929
package com.twitter.finatra.http.tests.integration.fileserver import com.twitter.finagle.http.{Request, Status} import com.twitter.finatra.http.filters.CommonFilters import com.twitter.finatra.http.routing.HttpRouter import com.twitter.finatra.http.EmbeddedHttpServer import com.twitter.finatra.http.{Controller, HttpSe...
syamantm/finatra
http/src/test/scala/com/twitter/finatra/http/tests/integration/fileserver/LocalFileServerFeatureTest.scala
Scala
apache-2.0
1,543
/* * Copyright 2019 Spotify AB. * * 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 ...
regadas/scio
scio-smb/src/main/scala/com/spotify/scio/smb/syntax/SortMergeBucketScioContextSyntax.scala
Scala
apache-2.0
18,105
/*********************************************************************** * 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-arrow/geomesa-arrow-gt/src/main/scala/org/locationtech/geomesa/arrow/io/SimpleFeatureArrowFileReader.scala
Scala
apache-2.0
9,808
package ch.epfl.perfNetwork.drawers import scala.scalajs.js.Any.fromString import ch.epfl.perfNetwork.drawn.PerfBar import ch.epfl.perfNetwork.drawn.PerfBarChart import ch.epfl.perfNetwork.drawn.Vertex import ch.epfl.perfNetwork.webapp.Algebra._ import ch.epfl.perfNetwork.webapp.View /** * @author Thibault Urien * ...
ThibaultUrien/SemesterProject
js/src/main/scala/ch/epfl/perfNetwork/drawers/BarChartDrawer.scala
Scala
bsd-3-clause
5,920
package org.chiflink.ctaprocessor.processors.ctaprocessor.models /** * Created by ubuntu on 2/21/17. */ import org.apache.flink.api.common.state.{ReducingState, ReducingStateDescriptor, ValueState, ValueStateDescriptor} import org.apache.flink.streaming.api.scala.function.util.ScalaReduceFunction import org.apache...
chi-apache-flink-meetup/ctaProcessor
code/processors/ctaProcessor/src/main/scala/org/chiflink/ctaprocessor/processors/ctaprocessor/models/FixTrigger.scala
Scala
apache-2.0
2,536
/* * Copyright 2013 David Savage * * 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...
davemssavage/modula
api/src/main/scala/org/chronologicalthought/modula/ServiceReference.scala
Scala
apache-2.0
1,578