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
/* * 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 ...
rjpower/spark
core/src/main/scala/spark/util/AkkaUtils.scala
Scala
apache-2.0
3,387
package colossus.metrics import akka.actor._ import scala.concurrent.duration._ trait Histogram extends EventCollector { def add(value: Int, tags: TagMap = TagMap.Empty) } case class BucketList(buckets: Vector[Int]) extends AnyVal case class HistogramParams ( address: MetricAddress, bucketRanges: BucketLi...
zgagnon/colossus
colossus-metrics/src/main/scala/colossus/metrics/collectors/Histogram.scala
Scala
apache-2.0
8,621
/* * Copyright © 2015-2019 the contributors (see Contributors.md). * * This file is part of Knora. * * Knora 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 *...
musicEnfanthen/Knora
salsah1/src/main/scala/org/knora/salsah/Settings.scala
Scala
agpl-3.0
1,952
package simplez import org.specs2.ScalaCheck import org.specs2.mutable.Specification import std.anyVal.intInstances class MonoidSpec extends Specification with ScalaCheck { "A monoid " should { "work for Ints" in { import std.anyVal._ check((a: Int, b: Int) => Monoid[Int].append(a, b) - a - b == ...
inoio/simplez
main/src/test/scala/simplez/MonoidSpec.scala
Scala
bsd-2-clause
659
/* * 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 ...
CodingCat/spark-eventhubs
examples/src/main/scala/com/microsoft/spark/streaming/examples/directdstream/StreamingWordCount.scala
Scala
apache-2.0
2,404
/** * Copyright (C) 2014 Stratio (http://stratio.com) * * 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...
mt0803/streaming-cep-engine
api/src/main/scala/com/stratio/streaming/api/StratioStreamingAPI.scala
Scala
apache-2.0
15,083
package strd.net.http import java.util.concurrent._ import java.util.concurrent.atomic._ import io.netty.channel.{ChannelFuture, ChannelFutureListener, ChannelHandlerContext} import io.netty.handler.codec.http.HttpResponseStatus import org.slf4j.LoggerFactory import strd.util.CTime import scala.annotation.tailrec t...
onerinvestments/strd
strd-commons/src/main/scala/strd/net/http/HttpStream.scala
Scala
apache-2.0
6,819
package com.oni.udash.views import io.udash._ import com.oni.udash._ import org.scalajs.dom.Element import com.oni.udash.styles.{DemoStyles, GlobalStyles} import scalacss.ScalatagsCss._ object IndexOoViewPresenter extends DefaultViewPresenterFactory[IndexOoState.type](() => new IndexOoView) class IndexOoView extends...
ObjectNirvana/oni-web
frontend/src/main/scala/com/oni/udash/views/IndexOoView.scala
Scala
epl-1.0
2,036
package de.tu_berlin.formic.gatling.experiment.json import de.tu_berlin.formic.datastructure.json.JsonPath import de.tu_berlin.formic.datastructure.json.client.FormicJsonObject import de.tu_berlin.formic.datastructure.json.JsonTreeNode import de.tu_berlin.formic.gatling.Predef._ import de.tu_berlin.formic.gatling.acti...
rbraeunlich/formic
formic-gatling/src/test/scala/de/tu_berlin/formic/gatling/experiment/json/JsonInsertSimulation.scala
Scala
apache-2.0
3,516
package org.locationtech.geomesa.core.util import org.apache.accumulo.core.client.{BatchScanner, Scanner} import org.locationtech.geomesa.core.data.AccumuloConnectorCreator import org.locationtech.geomesa.core.index.ExplainerOutputType import org.opengis.feature.simple.SimpleFeatureType class ExplainingConnectorCrea...
jwkessi/geomesa
geomesa-core/src/main/scala/org/locationtech/geomesa/core/util/ExplainingConnectorCreator.scala
Scala
apache-2.0
1,320
package com.datamountaineer.streamreactor.connect.pulsar.source import com.datamountaineer.streamreactor.connect.pulsar.config.PulsarConfigConstants import org.apache.kafka.common.config.ConfigException import org.scalatest.{Matchers, WordSpec} import scala.collection.JavaConverters._ /** * Created by andrew@datam...
CodeSmell/stream-reactor
kafka-connect-pulsar/src/test/scala/com/datamountaineer/streamreactor/connect/pulsar/source/PulsarSourceConnectorTest.scala
Scala
apache-2.0
2,080
package dsmoq.persistence import org.joda.time.DateTime import PostgresqlHelper.PgConditionSQLBuilder import PostgresqlHelper.PgSQLSyntaxType import scalikejdbc.AutoSession import scalikejdbc.DBSession import scalikejdbc.ResultName import scalikejdbc.ResultName import scalikejdbc.SQLSyntax import scalikejdbc.SQLSynta...
nkawa/dsmoq
server/common/src/main/scala/dsmoq/persistence/DatasetAccessLog.scala
Scala
apache-2.0
4,137
package ch.epfl.perfNetwork.webapp /** * @author Thibault Urien * * A convnience class that pimp (Double,Double) with some vector functions. * Import it with Algebra._ */ object Algebra { implicit def diVec(dd: (Double, Int)): DDVector = new DDVector(dd._1, dd._2) implicit def idVec(dd: (Int, Double)): DDVec...
ThibaultUrien/SemesterProject
js/src/main/scala/ch/epfl/perfNetwork/webapp/Algebra.scala
Scala
bsd-3-clause
1,828
package goggles.macros.interpret.infrastructure import goggles.macros.At import goggles.macros.interpret._ import goggles.macros.interpret.features._ import goggles.macros.parse._ import goggles.macros.errors.UserError trait InterpretASTContext { self: Contextual with DslModeContext with Opti...
kenbot/goggles
macros/src/main/scala/goggles/macros/interpret/infrastructure/InterpretASTContext.scala
Scala
mit
2,486
package bank import akka.actor.{ ActorSystem, Actor, Props, ActorRef } import akka.dispatch.Await import akka.util.duration._ import akka.util.Timeout import akka.dispatch.DefaultPromise import akka.dispatch.{ Promise, Future } import akka.pattern.ask object BankMain { implicit val timeout = Timeout(5000.millise...
Tjoene/thesis
benchmark/src/main/scala/bank/Main.scala
Scala
gpl-2.0
946
package controller import skinny._ import skinny.validator._ import model.{ Employee, Schedule, EmployeeSchedule } import skinny.controller.feature.RequestScopeFeature class EmployeesSchedulesController extends ApplicationController { protectFromForgery() beforeAction() { set(RequestScopeFeature.ATTR_RESOURC...
grimrose/skinny-employee-schedule-sample
src/main/scala/controller/EmployeesSchedulesController.scala
Scala
mit
4,243
package com.lljv.analytics.analyzerengine case class AnalyzerManagerCommand( CommandName: String, Parameters: Option[Array[String]], Result: Option[String], KafkaKey: Option[String] )
dotdeb/Science-Finder
Analytics/AnalyzerEngine/src/main/scala/com/lljv/analytics/analyzerengine/AnalyzerManagerCommand.scala
Scala
apache-2.0
193
/* * Copyright 2019 ACINQ SAS * * 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...
ACINQ/eclair
eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteUtils.scala
Scala
apache-2.0
2,877
/*********************************************************************** * Copyright (c) 2017-2019 IBM * 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 ac...
elahrvivaz/geomesa
geomesa-cassandra/geomesa-cassandra-datastore/src/main/scala/org/locationtech/geomesa/cassandra/data/CassandraDataStoreFactory.scala
Scala
apache-2.0
7,662
package scala.runtime import org.junit.Test import org.junit.Assert._ import scala.tools.testkit.AllocationTest class BooleanBoxingTest extends SideEffectTest with AllocationTest { val value = true @Test def hash1(): Unit = { nonAllocating(value.hashCode()) } @Test def hash2(): Unit = { nonAllocati...
scala/scala
test/junit/scala/runtime/BooleanBoxingTest.scala
Scala
apache-2.0
1,129
class Foo(x: Int) {} case class Bar(y: Int) extends Foo(y); trait T {} trait U {} class C() {} trait T1; trait T2 {} trait T5 extends T; trait T6 extends T {} trait T7 extends T with U; trait T8 extends T with U {} class C1(); class C2() {} class C5() extends C(); class C6() extends C() {} class C7() extends C() ...
yusuke2255/dotty
tests/untried/pos/philippe3.scala
Scala
bsd-3-clause
670
/*********************************************************************** * Copyright (c) 2013-2018 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...
ddseapy/geomesa
geomesa-index-api/src/main/scala/org/locationtech/geomesa/index/api/GeoMesaIndexManager.scala
Scala
apache-2.0
3,799
/*********************************************************************** * Copyright (c) 2013-2022 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...
locationtech/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/stats/Z3Histogram.scala
Scala
apache-2.0
6,709
package at.nonblocking.cliwix.integrationtest import at.nonblocking.cliwix.core.LiferayInfo import at.nonblocking.cliwix.core.command._ import at.nonblocking.cliwix.core.compare.LiferayEntityComparator import at.nonblocking.cliwix.core.handler._ import at.nonblocking.cliwix.integrationtest.TestEntityFactory._ import a...
nonblocking/cliwix
cliwix-test-integration/src/test/scala/at/nonblocking/cliwix/integrationtest/CompanyHandlerIntegrationTest.scala
Scala
agpl-3.0
6,871
package com.cloudwick.generator.osge import org.slf4j.LoggerFactory import com.cloudwick.generator.utils.Utils import java.util.concurrent.{Executors, ExecutorService} import java.util.concurrent.atomic.AtomicLong /** * Description goes here * @author ashrith */ class ConcurrentWriter(totalEvents: Long, config: O...
davinashreddy/generator
src/main/scala/com/cloudwick/generator/osge/ConcurrentWriter.scala
Scala
apache-2.0
1,708
package org.zella.web import java.util.logging.Level import com.gargoylesoftware.htmlunit.{BrowserVersion, WebClient} import com.google.common.truth.Truth._ import org.junit.{After, Before, Ignore, Test} /** * @author zella. */ class TempFileWebCrawlerTest { //TODO mp3spbcrawler val VALID_DOWNLOAD_LINK = "h...
zella/Mp3SpbDownloader
src/test/scala/org/zella/web/TempFileWebCrawlerTest.scala
Scala
mit
1,603
/* * 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/streaming/progress.scala
Scala
apache-2.0
10,673
/* * Copyright 2015 Netflix, 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...
rspieldenner/atlas
atlas-akka/src/test/scala/com/netflix/atlas/akka/ConfigApiSuite.scala
Scala
apache-2.0
3,674
/* * 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 ...
frankfzw/varys
core/src/main/scala/varys/framework/slave/ui/SlaveWebUI.scala
Scala
apache-2.0
6,397
package edu.rice.habanero.benchmarks.fib import edu.rice.habanero.actors.{JumiActor, JumiActorState, JumiPool} import edu.rice.habanero.benchmarks.{Benchmark, BenchmarkRunner} /** * * @author <a href="http://shams.web.rice.edu/">Shams Imam</a> (shams@rice.edu) */ object FibonacciJumiActorBenchmark { def main(ar...
shamsmahmood/savina
src/main/scala/edu/rice/habanero/benchmarks/fib/FibonacciJumiActorBenchmark.scala
Scala
gpl-2.0
2,121
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js sbt plugin ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
japgolly/scala-js
sbt-plugin/src/main/scala/scala/scalajs/sbtplugin/ScalaJSPlugin.scala
Scala
bsd-3-clause
11,971
package Yosemite.framework.master /** * Created by zhanghan on 17/4/6. */ private[Yosemite] object JobState extends Enumeration{ type JobState=Value val WAITING, READY, RUNNING, FINISHED, FAILED, REJECTED,TEST = Value }
zhanghan1990/Yosemite
Yosemite/src/main/scala/Yosemite/framework/master/JobState.scala
Scala
apache-2.0
231
/* * 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/frsse2008/boxes/ACQ8214.scala
Scala
apache-2.0
831
/* * Copyright (c) 2013 Habla 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 or ag...
hablapps/updatable
src/test/scala/org/hablapps/updatable/test/AtBuilderTest.scala
Scala
apache-2.0
8,349
package ostinato.chess.core import ostinato.chess.core.NotationParser.PreParseInsights import ostinato.core.{Board, XY} case class ChessBoard( override val grid: Vector[Option[ChessPiece]], turn: ChessPlayer = WhiteChessPlayer, enPassantPawn: Option[EnPassantPawn] = None, castlingAvailable: Map[(Chess...
MarianoGappa/ostinato
shared/src/main/scala/ostinato/chess/core/ChessBoard.scala
Scala
mit
13,241
/* * Copyright 2007-2011 WorldWide Conferencing, 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 * * Unless required by applica...
pbrant/framework
web/webkit/src/main/scala/net/liftweb/http/js/ScriptRenderer.scala
Scala
apache-2.0
9,652
package demo.twitter import java.util.Date import org.apache.spark.SparkConf import org.apache.spark.streaming.twitter.TwitterUtils import org.apache.spark.streaming.{Milliseconds, Seconds, StreamingContext} /** * Twitterの上位ハッシュタグを取得して表示します */ object TwitterTrendingHashtagsSample { def main(args: Array[String])...
h-mochizuki/rts-sample
spark-sample/src/main/scala/demo/twitter/TwitterTrendingHashtagsSample.scala
Scala
apache-2.0
2,441
package at.junction.api.fields import org.bukkit.Location case class LocationDescriptor(server: String, world: String, x: Double, y: Double, z: Double, pitch: Float, yaw: Float) {} object LocationDescriptor { def apply(loc: Location)(implicit serverId: String): LocationDescriptor = { new LocationDescriptor(ser...
JunctionAt/JunctionAPI
src/main/scala/at/junction/api/fields/LocationDescriptor.scala
Scala
agpl-3.0
410
package org.faker import org.scalatest.{FunSpec, Matchers} import org.faker.data._ class DataSpec extends FunSpec with Matchers { describe("get") { it("should return a value from the first matching locale") { val result = Data.get("address.country")(FakerLocale.DE_AT) result should be('defined) ...
ralli/faker_scala
src/test/scala/org/faker/DataSpec.scala
Scala
bsd-3-clause
692
package io.buoyant.linkerd.protocol import java.io.{File, InputStream} import java.net.InetSocketAddress import java.nio.file.StandardCopyOption.REPLACE_EXISTING import java.nio.file.{Files, Paths} import com.twitter.finagle.buoyant.TlsClientConfig import com.twitter.finagle.http.{Method, Status, param => _, _} import...
linkerd/linkerd
linkerd/protocol/http/src/e2e/scala/io/buoyant/linkerd/protocol/HttpTlsEndToEndTest.scala
Scala
apache-2.0
7,027
/* * Copyright (C) 2010 Romain Reuillon * * 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. * * This progra...
ISCPIF/PSEExperiments
openmole-src/openmole/core/org.openmole.core.workflow/src/main/scala/org/openmole/core/workflow/data/DataSet.scala
Scala
agpl-3.0
2,762
package org.apache.spark.examples.streaming import java.io.InputStream import java.net.Socket import org.apache.hadoop.io.BytesWritable import org.apache.spark.storage.StorageLevel import org.apache.spark.streaming.StreamingContext import org.apache.spark.streaming.dstream.ReceiverInputDStream import org.apache.spark....
tophua/spark1.52
examples/src/main/scala/org/apache/spark/examples/streaming/ImageInputDStream.scala
Scala
apache-2.0
2,323
package dbtarzan.config.password import org.scalatest.flatspec.AnyFlatSpec class EncryptionVerificationTest extends AnyFlatSpec { "the encryption key" should "verify against its own verification key" in { val encryptionKey = EncryptionKey("amp1V30NtnMEyaIR") val verificationKey = EncryptionVerification.to...
aferrandi/dbtarzan
src/test/scala/dbtarzan/config/password/EncryptionVerificationTest.scala
Scala
apache-2.0
1,430
def f(x: Int): Boolean = x < 0 || x > 0 && x != 3 def g(x: Option[Int]) = x match case Some(err) => println("hi") ??? case None => ???
lampepfl/dotty
tests/pos/leading-infix-op.scala
Scala
apache-2.0
162
/* ASIB - A Scala IRC Bot Copyright (C) 2012 Iain Cambridge This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio...
icambridge-old/asib
src/main/scala/asib/command/Kick.scala
Scala
gpl-3.0
1,121
package io.buoyant.namerd import com.fasterxml.jackson.annotation.JsonIgnore import com.fasterxml.jackson.databind.JsonMappingException import com.twitter.finagle.{Path, Dtab} import com.twitter.io.Buf import com.twitter.util.{Activity, Future} import io.buoyant.namer.fs.FsInitializer import org.scalatest.FunSuite ob...
denverwilliams/linkerd
namerd/core/src/test/scala/io/buoyant/namerd/NamerdConfigTest.scala
Scala
apache-2.0
2,745
/* * Copyright 2017 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 ...
spotify/featran
core/src/main/scala/com/spotify/featran/transformers/Binarizer.scala
Scala
apache-2.0
1,975
package lila.common package paginator import cats.data.Validated import lila.common.config.MaxPerPage final class Paginator[A] private[paginator] ( val currentPage: Int, val maxPerPage: MaxPerPage, /** Returns the results for the current page. * The result is cached. */ val currentPageRes...
luanlv/lila
modules/common/src/main/paginator/Paginator.scala
Scala
mit
3,166
package com.outr.arango.api import com.outr.arango.api.model._ import io.youi.client.HttpClient import io.youi.http.HttpMethod import io.youi.net._ import io.circe.Json import scala.concurrent.{ExecutionContext, Future} object APIUserUserDatabaseDbnameCollection { def delete(client: HttpClient, user: String,...
outr/arangodb-scala
api/src/main/scala/com/outr/arango/api/APIUserUserDatabaseDbnameCollection.scala
Scala
mit
1,040
package riftwarp import scala.reflect.ClassTag import scalaz.syntax.validation._ import almhirt.common._ import almhirt.almvalidation.kit._ import riftwarp.impl.WarpPackerRegistry import riftwarp.serialization.common._ import riftwarp.std._ trait WarpPackers extends Function1[WarpDescriptor, AlmValidation[BlindWarpPa...
chridou/almhirt
riftwarp/src/main/scala/riftwarp/WarpPackers.scala
Scala
apache-2.0
4,559
/* * 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 ...
jkbradley/spark
core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
Scala
apache-2.0
14,749
package net.virtualvoid.reify2 import org.specs2.mutable.Specification class SpliceStatementsTest extends Specification { "spliceStatements" should { "fast constant array example" in { def f(x: Int): Int = x + 42 FastConstructor.array(1, 2, 3, 4, f(5), 6, 7, 8) must be_==(Array(1, 2, 3, 4, 47, 6, 7,...
jrudolph/reify-v2
reify-test/src/test/scala/net/virtualvoid/reify2/SpliceStatementsTest.scala
Scala
apache-2.0
337
package example import org.scalatra.test.scalatest.ScalatraFlatSpec import skinny.engine._ import skinny.engine.json._ import scala.concurrent.Future object HelloServlet extends SingleApp with EngineJSONStringOps { def message(implicit ctx: Context) = { s"Hello, ${params(ctx).getOrElse("name", "Anonymous")}" ...
holycattle/skinny-framework
engine-json/src/test/scala/example/HelloServletSpec.scala
Scala
mit
1,159
/* * 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
core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala
Scala
apache-2.0
53,267
package org.jetbrains.plugins.scala.testingSupport.utest.scala2_13.utest_0_7_4.old_syntax import org.jetbrains.plugins.scala.testingSupport.utest.UTestPackageTest import org.jetbrains.plugins.scala.testingSupport.utest.scala2_13.utest_0_7_4.UTestTestBase_2_13_0_7_4 class UTestPackageTest_2_13_0_7_4_old_syntax extends...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/testingSupport/utest/scala2_13/utest_0_7_4/old_syntax/UTestPackageTest_2_13_0_7_4_old_syntax.scala
Scala
apache-2.0
367
package com.zobot.client.packet.definitions.clientbound.play import com.zobot.client.packet.Packet case class BlockBreakAnimation(entityId: Int, location: Any, destroyStage: Any) extends Packet { override lazy val packetId = 0x08 override lazy val packetData: Array[Byte] = fromVarInt(entityId) ++ fromAny...
BecauseNoReason/zobot
src/main/scala/com/zobot/client/packet/definitions/clientbound/play/BlockBreakAnimation.scala
Scala
mit
362
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package swave.core sealed abstract class Split object Split { sealed abstract class Command /** * E...
sirthias/swave
core/src/main/scala/swave/core/Split.scala
Scala
mpl-2.0
1,304
package stackoverflow import org.apache.spark.SparkConf import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.rdd.RDD import annotation.tailrec import scala.reflect.ClassTag /** A raw stackoverflow posting, either a question or an answer */ case class Posting(postingType:...
alvsanand/scala-spark-big-data
stackoverflow/src/main/scala/stackoverflow/StackOverflow.scala
Scala
apache-2.0
10,351
package mesosphere.marathon.api.v1 import javax.ws.rs._ import mesosphere.marathon.MarathonSchedulerService import mesosphere.marathon.tasks.TaskTracker import javax.ws.rs.core.{Response, MediaType} import javax.inject.Inject import com.codahale.metrics.annotation.Timed import java.util.logging.Logger import javax.ws....
MiLk/marathon
src/main/scala/mesosphere/marathon/api/v1/TasksResource.scala
Scala
apache-2.0
1,206
package io.iohk.ethereum.network import java.net.{InetSocketAddress, URI} import akka.actor.SupervisorStrategy.Stop import akka.actor._ import akka.util.{ByteString, Timeout} import io.iohk.ethereum.blockchain.sync.BlacklistSupport import io.iohk.ethereum.blockchain.sync.BlacklistSupport.BlackListId import io.iohk.et...
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/network/PeerManagerActor.scala
Scala
mit
16,586
/* * Copyright 2016 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...
ahudspith-equalexperts/ct-calculations
src/main/scala/uk/gov/hmrc/ct/computations/CP83.scala
Scala
apache-2.0
945
/* * Copyright 2016 LinkedIn Corp. * * 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...
qubole/dr-elephant
app/org/apache/spark/deploy/history/SparkDataCollection.scala
Scala
apache-2.0
11,510
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package swave.core.internal.testkit import scala.collection.immutable.VectorBuilder import scala.concurrent.{...
sirthias/swave
core-tests/src/test/scala/swave/core/internal/testkit/TestStage.scala
Scala
mpl-2.0
1,812
package net.scalytica.symbiotic.mongodb.docmanagement import net.scalytica.symbiotic.test.specs.{FolderRepositorySpec, MongoSpec} class MongoDBFolderRepositorySpec extends FolderRepositorySpec with MongoSpec { override val folderRepo = new MongoDBFolderRepository(config) }
kpmeen/symbiotic
symbiotic-mongodb/src/test/scala/net/scalytica/symbiotic/mongodb/docmanagement/MongoDBFolderRepositorySpec.scala
Scala
apache-2.0
280
object Test extends App { import scala.reflect.runtime.universe._ import scala.reflect.runtime.{currentMirror => cm} import scala.tools.reflect.ToolBox val tree = Apply(Select(Ident(TermName("Macros")), TermName("foo")), List(Literal(Constant(42)))) println(cm.mkToolBox().eval(tree)) }
lampepfl/dotty
tests/disabled/macro/run/macro-reflective-ma-normal-mdmi/Test_2.scala
Scala
apache-2.0
297
/* * Copyright 2016-2021 All sbt-sonar contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
mwz/sbt-sonar
src/main/scala-sbt-1.0/sbtsonar/SbtCompat.scala
Scala
apache-2.0
835
package tmvault.io import tmvault.util.SHA1Hash import tmvault.{Future, ExecutionContext} /** * A simple in-memory block store for testing */ object InMemoryBlockStore { def create(implicit ec: ExecutionContext): BlockStore = new InMemoryBlockStore() private object DataBlock { def apply(data: Array[Byte])...
rklaehn/tmvault
tmvault/src/main/scala/tmvault/io/InMemoryBlockStore.scala
Scala
apache-2.0
1,537
package mesosphere.marathon.health import akka.actor.{ Actor, ActorLogging, ActorRef, Cancellable, Props } import akka.event.EventStream import mesosphere.marathon.MarathonSchedulerDriver import mesosphere.marathon.Protos.HealthCheckDefinition.Protocol import mesosphere.marathon.Protos.MarathonTask import mesosphere.m...
felixb/marathon
src/main/scala/mesosphere/marathon/health/HealthCheckActor.scala
Scala
apache-2.0
5,515
object Test extends dotty.runtime.LegacyApp { println(new C().blackbox) println(new C().refinedBlackbox) println(new C().whitebox) println(new C().refinedWhitebox) }
yusuke2255/dotty
tests/disabled/macro/run/macro-bundle-context-alias/Test_2.scala
Scala
bsd-3-clause
173
/** * 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...
KevinLiLu/kafka
core/src/main/scala/kafka/server/DelegationTokenManager.scala
Scala
apache-2.0
17,778
/* * 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 ...
jatin9896/incubator-carbondata
datamap/mv/plan/src/main/scala/org/apache/carbondata/mv/plans/util/Printers.scala
Scala
apache-2.0
11,007
package com.github.mrpowers.spark.spec.sql import com.github.mrpowers.spark.fast.tests.DatasetComparer import com.github.mrpowers.spark.spec.SparkSessionTestWrapper import org.scalatest.FunSpec import org.apache.spark.sql.functions._ import org.apache.spark.sql.types._ class ParquetPredicatePushdownFilteringSpec ex...
MrPowers/spark-spec
src/test/scala/com/github/mrpowers/spark/spec/sql/ParquetPredicatePushdownFilteringSpec.scala
Scala
mit
1,125
/* * 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 ...
rednaxelafx/apache-spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/FilterPushdownSuite.scala
Scala
apache-2.0
47,946
package com.scalableQuality.quick.core.checks import org.scalatest.prop.{ GeneratorDrivenPropertyChecks, TableDrivenPropertyChecks } import org.scalatest.{FlatSpec, Matchers} class CheckColumnValueTest extends FlatSpec with Matchers with GeneratorDrivenPropertyChecks with TableDrivenPropertyChecks...
MouslihAbdelhakim/Quick
src/test/scala/com/scalableQuality/quick/core/checks/CheckColumnValueTest.scala
Scala
apache-2.0
6,702
/*********************************************************************** * 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 ...
MutahirKazmi/geomesa
geomesa-index-api/src/main/scala/org/locationtech/geomesa/index/index/Z3Index.scala
Scala
apache-2.0
10,380
package com.olegych.scastie.util import java.io.File import java.nio.file.{Files, StandardCopyOption} import akka.actor.{Actor, ActorRef, ActorSystem} import akka.testkit.{ImplicitSender, TestActorRef, TestKit, TestProbe} import com.olegych.scastie.api.ProcessOutput import com.olegych.scastie.api.ProcessOutputType._ ...
scalacenter/scastie
utils/src/test/scala/com.olegych.scastie.util/ProcessActorTest.scala
Scala
apache-2.0
1,988
package osgifelix import java.io.File import aQute.bnd.osgi.Jar import aQute.bnd.version.Version import sbt.ModuleID object ManifestInstructions { val Default = ManifestInstructions() } case class ManifestInstructions(imports: String = "*", exports: String = "*;version=VERSION", pr...
doolse/sbt-osgi-felix
src/main/scala/osgifelix/ManifestInstructions.scala
Scala
apache-2.0
1,171
package core import domain._ /** * Trait to include in data accessing services */ trait DbService { lazy val db = DatabaseCfg.db lazy val config = DatabaseCfg.config lazy val driver = slick.driver.H2Driver val usersTable = Users(driver) val treesTable = FamilyTrees(driver) // val personsTable: TableQuer...
pnosko/staging.vita.infinita.api
src/main/scala/core/DbService.scala
Scala
cc0-1.0
437
/* * 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 ...
szhem/spark
sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
Scala
apache-2.0
115,514
abstract class RecoveryCompleted object RecoveryCompleted extends RecoveryCompleted abstract class TypedRecoveryCompleted object TypedRecoveryCompleted extends TypedRecoveryCompleted class Test { TypedRecoveryCompleted match { case RecoveryCompleted => println("Recovery completed") // error case ...
lampepfl/dotty
tests/neg/i9740.scala
Scala
apache-2.0
522
package org.scalaide.refactoring.internal.method.ui import org.eclipse.swt.widgets.Button import org.scalaide.refactoring.internal.ScalaIdeRefactoring /** * Generates the wizard page for a ChangeParameterOrder refactoring. */ trait ChangeParameterOrderConfigurationPageGenerator extends MethodSignatureRefactoringCo...
dragos/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/refactoring/internal/method/ui/ChangeParameterOrderConfigurationPageGenerator.scala
Scala
bsd-3-clause
4,133
package com.arcusys.valamis.certificate.schema import com.arcusys.valamis.certificate.model.goal.CourseGoal import com.arcusys.valamis.core.DbNameUtils._ import com.arcusys.valamis.core.SlickProfile import com.arcusys.valamis.model.PeriodTypes trait CourseGoalTableComponent extends CertificateTableComponent{ self: Sl...
ViLPy/Valamis
valamis-slick-persistence/src/main/scala/com/arcusys/valamis/certificate/schema/CourseGoalTableComponent.scala
Scala
lgpl-3.0
1,300
/* * 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...
wzhongyuan/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/models/maskrcnn/UtilsSpec.scala
Scala
apache-2.0
76,758
package example.application import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.SerializationFeature._ import example.application.resource.{CollectionResource, BasicResource, OptionResource, JsonResource} import io.dropwizard.Configuration import io.dropwizard.setup.{Bootstrap, Env...
jostly/scala-dropwizard
src/test/scala/example/application/ExampleApplication.scala
Scala
mit
1,471
package mesosphere.marathon package core.task.jobs import akka.actor.{ ActorRef, PoisonPill, Terminated } import akka.testkit.TestProbe import java.time.Clock import mesosphere.AkkaUnitTest import mesosphere.marathon.test.SettableClock import mesosphere.marathon.core.condition.Condition import mesosphere.marathon.core...
guenter/marathon
src/test/scala/mesosphere/marathon/core/task/jobs/ExpungeOverdueLostTasksActorTest.scala
Scala
apache-2.0
9,653
package net.ceedubs.ficus.readers import java.net.{URI, URISyntaxException} import com.typesafe.config.{Config, ConfigException} trait URIReaders { implicit val javaURIReader: ValueReader[URI] = new ValueReader[URI] { def read(config: Config, path: String): URI = { val s = config.getString(path) tr...
mdedetrich/ficus
src/main/scala/net/ceedubs/ficus/readers/URIReaders.scala
Scala
mit
542
/* Deduction Tactics Copyright (C) 2012-2015 Raymond Dodge This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This progra...
rayrobdod/deductionTactics
src/main/scala/com/rayrobdod/deductionTactics/consoleView/BoardNavigator.scala
Scala
gpl-3.0
3,683
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/plan/metadata/FlinkRelMdFilteredColumnIntervalTest.scala
Scala
apache-2.0
9,325
/* * Copyright 2009-2011 Freie Universität Berlin * * 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...
fusepoolP3/p3-silk
silk-core/src/main/scala/de/fuberlin/wiwiss/silk/evaluation/statistics/AggregatedComplexity.scala
Scala
apache-2.0
1,407
import sbt._ import Keys._ import sbtbuildinfo.Plugin._ import org.ensime.sbt.util.SExp._ import org.ensime.sbt.Plugin.Settings.ensimeConfig import sbtrelease.ReleasePlugin._ import net.virtualvoid.sbt.graph.Plugin.graphSettings import sbtrelease._ import ReleaseStateTransformations._ import ReleaseKeys._ import Releas...
crispywalrus/service.g8
src/main/g8/project/Build.scala
Scala
apache-2.0
3,281
/* * 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 ...
apache/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/nodes/calcite/LogicalWindowAggregate.scala
Scala
apache-2.0
2,754
package im.actor.server.persist.llectro import slick.driver.PostgresDriver.api._ import im.actor.server.models class InterestTable(tag: Tag) extends Table[models.llectro.Interest](tag, "llectro_interests") { def id = column[Int]("id", O.PrimaryKey) def name = column[String]("name") def parentId = column[Int]("...
chenbk85/actor-platform
actor-server/actor-persist/src/main/scala/im/actor/server/persist/llectro/Interest.scala
Scala
mit
884
package models case class ParameterData(code: String, domain: Int, objDomain: Int, widScope: Int, narrStrategy: Int, delay: Int )
jandom-devel/JandomWeb
app/models/ParameterData.scala
Scala
gpl-3.0
130
package com.lot.utils import akka.actor.ActorSystem import com.lot.utils.Configuration trait ActorModule { val system: ActorSystem } trait ActorModuleImpl extends ActorModule { this: Configuration => val system = ActorSystem("lot-web", config) }
thimmaiah/life_of_a_trade_scala
src/main/scala/com/lot/utils/ActorModule.scala
Scala
apache-2.0
256
/* * BuildUtil.scala * * Updated: Jan 28, 2015 * * Copyright (c) 2015, CodeMettle */ import sbt.{CrossVersion, ModuleID} object BuildUtil { implicit class ExcludeModId(val u: ModuleID) extends AnyVal { def excludeCross(group: String, art: String, scalaVersion: String) = { val suff = Cros...
CodeMettle/reactivemq
project/BuildUtil.scala
Scala
apache-2.0
602
/* * 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 ...
mahak/spark
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/consumer/InternalKafkaConsumerPool.scala
Scala
apache-2.0
9,372
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
xuwei-k/scala-js
stubs/src/main/scala/scala/scalajs/js/annotation/ExportAnnotations.scala
Scala
bsd-3-clause
1,191
package scala.ch.fram.medlineGeo.crunching.localize.geonames import ch.fram.medlineGeo.crunching.localize.geonames.{ GeonamesCity, GeonamesCityLoader } import ch.fram.medlineGeo.models.{ GeoCoordinates, Location } import org.specs2.mutable.Specification /** * Created by alex on 13/09/15. */ class GeonameCitiesSpecs...
alexmasselot/medlineGeoBackend
test/scala/ch/fram/medlineGeo/crunching/localize/geonames/GeonameCitiesSpecs.scala
Scala
mit
1,570
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2018, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
ashawley/scala-xml
shared/src/main/scala/scala/xml/Node.scala
Scala
bsd-3-clause
6,872
/* * Copyright (c) <2015-2016>, see CONTRIBUTORS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list...
amanjpro/languages-a-la-carte
calcj/src/main/scala/ast/TreeFactories.scala
Scala
bsd-3-clause
4,217