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
/** * Copyright 2011-2016 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...
GabrielPlassard/gatling
gatling-core/src/main/scala/io/gatling/core/check/extractor/css/NodeConverter.scala
Scala
apache-2.0
1,829
package org.scalatra.servlet import javax.servlet.ServletContext trait MountConfig { def apply(ctxt: ServletContext) }
etorreborre/scalatra
common/src/main/scala/org/scalatra/servlet/MountConfig.scala
Scala
bsd-2-clause
124
/* * Copyright 2017 by Simba Project * * 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 agree...
InitialDLab/Simba
src/main/scala/org/apache/spark/sql/simba/util/LiteralUtil.scala
Scala
apache-2.0
983
/* * 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 ...
tillrohrmann/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/BatchFileSystemITCaseBase.scala
Scala
apache-2.0
1,543
/* * 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 ...
SteamShon/incubator-s2graph
s2core/src/main/scala/org/apache/s2graph/core/features/S2DataTypeFeatures.scala
Scala
apache-2.0
2,074
package com.twitter.finagle import com.github.benmanes.caffeine.cache.{CacheLoader, Caffeine, LoadingCache} import com.twitter.cache.caffeine.CaffeineCache import com.twitter.concurrent.AsyncSemaphore import com.twitter.conversions.DurationOps._ import com.twitter.finagle.stats.{DefaultStatsReceiver, StatsReceiver} im...
luciferous/finagle
finagle-core/src/main/scala/com/twitter/finagle/InetResolver.scala
Scala
apache-2.0
9,764
package org.denigma.kappa.notebook.styles import scalacss.Defaults._ trait TextLayerStyles extends StyleSheet.Standalone { import dsl._ ".textLayer" -( position.absolute, left(0 px), top( 0 px), right (0 px), bottom (0 px), overflow.hidden, opacity(0.2), lineHeight(1.0), trans...
antonkulaga/kappa-notebook
app/jvm/src/main/scala/org/denigma/kappa/notebook/styles/TextLayerStyles.scala
Scala
mpl-2.0
1,545
package knub.master_thesis.preprocessing import java.util import java.util.HashSet; import java.util.ArrayList; import java.io._; import cc.mallet.types.FeatureSequenceWithBigrams; import cc.mallet.types.Instance; import cc.mallet.types.Token; import cc.mallet.types.TokenSequence; import cc.mallet.pipe.Pipe object ...
knub/master-thesis
code/scala/src/main/scala/knub/master_thesis/preprocessing/UseFixedVocabulary.scala
Scala
apache-2.0
1,271
package scala.models import scala.language.implicitConversions import simulacrum._ import com.bryzek.apidoc.spec.v0.models._ @typeclass trait HasAttributes[T] { def getAttributes(t: T): Seq[Attribute] def findAttribute(t: T, name: String): Option[Attribute] = getAttributes(t).find(_.name == name) } object...
movio/movio-apidoc-generator
scala-generator/src/main/scala/models/HasAttributes.scala
Scala
mit
1,522
/* * 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 ...
manuzhang/incubator-gearpump
experiments/akkastream/src/main/scala/org/apache/gearpump/akkastream/example/Test10.scala
Scala
apache-2.0
2,760
import sml.instructions.AddInstruction import sml.{Labels, Machine} /** * Tests for the AddInstruction class * @author lmignot */ class AddInstructionSpec extends BaseSpec { private val Label = "L1" private val OP = "add" private val R1 = 1 private val R2 = 2 private val R3 = 3 private val ZERO = 0 ...
BBK-PiJ-2015-67/sdp-portfolio
coursework/cw-one/src/test/scala/AddInstructionSpec.scala
Scala
unlicense
2,556
package com.yetu.oauth2provider.browser /** * Created by elisahilprecht on 30/03/15. */ class DownloadBrowserSpec extends BaseBrowserSpec { "Download page" must { "have title called 'Download'" in { go to (s"http://localhost:$port" + setupDownloadUrl) pageTitle mustBe "Download" } "show ne...
yetu/oauth2-provider
test/com/yetu/oauth2provider/browser/DownloadBrowserSpec.scala
Scala
mit
803
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play.api.libs import play.api._ import play.api.libs.crypto._ // Keep Crypto around to manage global state for now... private[play] object Crypto { private val cookieSignerCache: (Application) => CookieSigner = Application.instanc...
Shruti9520/playframework
framework/src/play/src/main/scala/play/api/libs/Crypto.scala
Scala
apache-2.0
620
/* * 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 ...
wgpshashank/spark
core/src/main/scala/spark/storage/BlockManagerSlaveActor.scala
Scala
apache-2.0
1,349
package strd.pg import java.sql.{Connection, Statement} import com.mchange.v2.c3p0.AbstractConnectionCustomizer import org.slf4j.LoggerFactory import scala.collection.mutable object SchemaConnectionCustomizer { val schemas = new mutable.HashMap[String, String]() } class SchemaConnectionCustomizer extends Abstract...
onerinvestments/strd
strd-commons/src/main/scala/strd/pg/SchemaConnectionCustomizer.scala
Scala
apache-2.0
1,027
/* * 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 ...
manuzhang/incubator-gearpump
external/serializer/src/main/scala/org/apache/gearpump/streaming/serializer/ChillSerializer.scala
Scala
apache-2.0
1,210
/* * Copyright (c) 2012-2015 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apach...
jramos/snowplow
3-enrich/scala-hadoop-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.hadoop/bad/NullNumericFieldsSpec.scala
Scala
apache-2.0
3,130
package com.felixmilea.vorbit.main import akka.actor.ActorSystem import com.felixmilea.vorbit.utils.Initable import com.felixmilea.vorbit.utils.ConfigManager import com.felixmilea.vorbit.utils.Loggable object Vorbit extends App with Loggable { Info("Vorbit running") override def wrapLog(m: String) = "VB: " + m ...
felixmc/Felix-Milea-Ciobanu-Vorbit
code/com/felixmilea/vorbit/main/Vorbit.scala
Scala
mit
322
package xitrum.handler.inbound import io.netty.channel.{ChannelHandler, SimpleChannelInboundHandler, ChannelHandlerContext} import ChannelHandler.Sharable import xitrum.Config import xitrum.handler.HandlerEnv import xitrum.handler.outbound.XSendFile @Sharable class BaseUrlRemover extends SimpleChannelInboundHandler[...
xitrum-framework/xitrum
src/main/scala/xitrum/handler/inbound/BaseUrlRemover.scala
Scala
mit
1,191
package mesosphere.mesos import mesosphere.marathon.Protos.{ Constraint, MarathonTask } import com.google.common.collect.Lists import mesosphere.marathon.Protos.Constraint.Operator import scala.collection.JavaConverters._ import scala.util.Random import mesosphere.mesos.protos.{ FrameworkID, SlaveID, OfferID, TextAttr...
tnachen/marathon
src/test/scala/mesosphere/mesos/ConstraintsTest.scala
Scala
apache-2.0
11,030
package mockws import org.scalatest.prop.PropertyChecks import org.scalatest.{FunSuite, Matchers} import play.api.libs.concurrent.Execution.Implicits._ import play.api.libs.iteratee.Concurrent._ import play.api.libs.iteratee.{Enumerator, Iteratee} import play.api.libs.json.Json import play.api.libs.ws.{WSAuthScheme, W...
matterche/play-mockws
src/test/scala/mockws/MockWSTest.scala
Scala
mit
9,668
package com.thangiee.metadroid import com.typesafe.scalalogging.LazyLogging import scala.annotation.StaticAnnotation import scala.language.experimental.macros import scala.reflect.macros.blackbox class Case extends StaticAnnotation { def macroTransform(annottees: Any*) = macro CaseImpl.impl } object CaseImpl exte...
Thangiee/Metadroid
core/src/main/scala/com/thangiee/metadroid/Case.scala
Scala
mit
3,805
package com.twitter.finagle.util import java.util.concurrent.ThreadFactory import org.mockito.Matchers.any import org.mockito.Mockito.verify import org.scalatest.FunSuite import org.scalatestplus.mockito.MockitoSugar class BlockingTimeTrackingThreadFactoryTest extends FunSuite with MockitoSugar { private class Run...
luciferous/finagle
finagle-core/src/test/scala/com/twitter/finagle/util/BlockingTimeTrackingThreadFactoryTest.scala
Scala
apache-2.0
715
/* * 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...
iteratoruk/microservice-bootstrap
src/test/scala/uk/gov/hmrc/play/microservice/bootstrap/MicroserviceFiltersSpec.scala
Scala
apache-2.0
2,122
package edu.cmu.dynet /** Behind the scenes, DyNet frequently operates on C++ `std::vector<>` types. The wrapper * classes implement [[scala.collection.mutable.IndexedSeq]] to make them easy to work with * in Scala code. Each has a `size: Long` constructor and a `values: Seq[_]` constructor. */ import scala.lan...
xunzhang/dynet
contrib/swig/src/main/scala/edu/cmu/dynet/Vector.scala
Scala
apache-2.0
3,744
package debop4s.web.scalatra.scalate import javax.servlet.http.HttpServletRequest import org.fusesource.scalate.TemplateEngine import org.fusesource.scalate.layout.DefaultLayoutStrategy import org.scalatra._ import org.scalatra.scalate._ import scala.collection.mutable /** * Scalate Template Engine을 이용하여 Web Page를...
debop/debop4s
debop4s-web-scalatra/src/main/scala/debop4s/web/scalatra/scalate/ScalatraWebStack.scala
Scala
apache-2.0
1,716
package com.ing.baker.il case class EventOutputTransformer(newEventName: String, ingredientRenames: Map[String, String])
ing-bank/baker
core/intermediate-language/src/main/scala/com/ing/baker/il/EventOutputTransformer.scala
Scala
mit
122
/* * 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 ...
JihongMA/incubator-carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/datacompaction/MajorCompactionStopsAfterCompaction.scala
Scala
apache-2.0
5,139
package com.dataintuitive.luciuscore package model.v3 import io.SampleCompoundRelationsIO.loadSampleCompoundRelationsFromFileV2 import DbFunctions._ import com.dataintuitive.test.BaseSparkContextSpec import org.scalatest.flatspec.AnyFlatSpec class DbFunctionsTest extends AnyFlatSpec with BaseSparkContextSpec{ inf...
data-intuitive/LuciusCore
src/test/scala/com/dataintuitive/luciuscore/model/v3/DbFunctionsTest.scala
Scala
apache-2.0
2,084
/* * 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
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/RewriteAsOfJoin.scala
Scala
apache-2.0
3,460
/* * Copyright 2014 Frugal Mechanic (http://frugalmechanic.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...
rmarsch/fm-sbt-s3-resolver
src/main/scala/fm/sbt/S3URLHandler.scala
Scala
apache-2.0
12,271
package play.it.http import play.api.mvc.{Results, EssentialAction} import play.api.test._ import play.api.test.TestServer import play.api.libs.concurrent.Promise import play.api.libs.iteratee._ import java.util.concurrent.TimeUnit import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.glob...
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/play-integration-test/src/test/scala/play/it/http/HttpPipeliningSpec.scala
Scala
mit
2,429
package spinoco.fs2.http import cats.effect.IO import fs2._ import org.scalacheck.Properties import org.scalacheck.Prop._ import spinoco.protocol.http._ import spinoco.protocol.http.codec.HttpRequestHeaderCodec import spinoco.protocol.http.header._ import spinoco.protocol.mime.{ContentType, MIMECharset, MediaType} o...
Spinoco/fs2-http
src/test/scala/spinoco/fs2/http/HttpRequestSpec.scala
Scala
mit
2,076
package net.mm.example.services import net.mm.composer.relations.Relation._ class UserService extends FakeService { val getUsers: Source[String, User] = _.map(u => (u, User(u))).toMap.asFuture } case class User(username: String)
mosche/finatra-composition-proxy
example/src/main/scala/net/mm/example/services/UserService.scala
Scala
mit
233
/* ,i::, :;;;;;;; ;:,,::;. 1ft1;::;1tL t1;::;1, :;::; _____ __ ___ __ fCLff ;:: tfLLC / ___/ / |/ /____ _ _____ / /_ CLft11 :,, i1tffLi \\__ \\ ____ / /|_/ ...
S-Mach/s_mach.concurrent
src/main/scala/s_mach/concurrent/config/RetryConfig.scala
Scala
mit
1,435
package com.sksamuel.scapegoat.inspections.collections import com.sksamuel.scapegoat._ /** * @author Stephen Samuel * This inspection was inspired by http://p5wscala.wordpress.com/scalaprocessing-gotchas/#t2 */ class CollectionPromotionToAny extends Inspection( text = "Collection promotion to Any...
sksamuel/scalac-scapegoat-plugin
src/main/scala/com/sksamuel/scapegoat/inspections/collections/CollectionPromotionToAny.scala
Scala
apache-2.0
2,198
package org.jetbrains.sbt package project import java.io.File import javax.swing.Icon import com.intellij.ide.util.projectWizard.WizardContext import com.intellij.openapi.externalSystem.model.DataNode import com.intellij.openapi.externalSystem.model.project.ProjectData import com.intellij.openapi.externalSystem.servi...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/sbt/project/SbtProjectImportBuilder.scala
Scala
apache-2.0
1,074
/* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Martin Odersky */ package scala.tools.nsc package typechecker import scala.language.postfixOps import scala.collection.mutable import scala.collection.mutable.ListBuffer import scala.tools.nsc.settings.ScalaVersion import scala.tools.nsc.sett...
felixmulder/scala
src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
Scala
bsd-3-clause
83,931
package com.ubirch.avatar.model.actors import com.ubirch.avatar.model.rest.device.DeviceDataRaw case class AnchoredRawData(raw: DeviceDataRaw)
ubirch/ubirch-avatar-service
model-rest/src/main/scala/com/ubirch/avatar/model/actors/AnchoredRawData.scala
Scala
apache-2.0
144
package com.mesosphere.universe.test import com.mesosphere.universe import com.netaporter.uri.Uri import io.circe.Json import io.circe.JsonObject import io.circe.syntax._ import java.nio.ByteBuffer import java.nio.charset.StandardCharsets import org.scalatest.prop.TableFor1 import org.scalatest.prop.TableFor2 object ...
takirala/cosmos
cosmos-test-common/src/main/scala/com/mesosphere/universe/test/TestingPackages.scala
Scala
apache-2.0
14,665
package resource import java.net.URL import java.nio.file._ import java.util.Collections object Resource { def readFile(url: URL): String = { val uri = url.toURI val fileSystem = if (uri.getScheme != "jar") None else Some(FileSystems.newFileSystem(uri, Collections.emptyMap[String, Object...
xuwei-k/xsbt
sbt-app/src/sbt-test/classloader-cache/resources/libraries/foo/src/main/scala/resource/Resource.scala
Scala
apache-2.0
550
/** * Trait Parameters: http://dotty.epfl.ch/docs/reference/trait-parameters.html */ object TraitParams { trait Base(val msg: String) class A extends Base("Hello") class B extends Base("Dotty!") // Union types only exist in Dotty, so there's no chance that this will accidentally be compiled with Scala 2 ...
smarter/dotty-example-project
src/main/scala/TraitParams.scala
Scala
bsd-3-clause
589
/* * Copyright (C) 2016 Nikos Katzouris * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
nkatzz/OLED
src/main/scala/metric/Matcher.scala
Scala
gpl-3.0
3,847
/* * Copyright 2014–2020 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...
slamdata/quasar
ejson/src/main/scala/quasar/ejson/package.scala
Scala
apache-2.0
1,102
/* * 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
core/src/main/scala/org/apache/spark/SparkConf.scala
Scala
apache-2.0
32,958
/* * Copyright 2014-2022 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 agr...
Netflix/atlas
atlas-core/src/main/scala/com/netflix/atlas/core/model/package.scala
Scala
apache-2.0
794
/** * 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...
noslowerdna/kafka
core/src/main/scala/kafka/server/ReplicaFetcherThread.scala
Scala
apache-2.0
16,446
// Copyright (C) 2011-2012 the original author or authors. // See the LICENCE.txt file distributed with this work for additional // information regarding copyright ownership. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
dwango/scalastyle
src/main/scala/org/scalastyle/scalariform/BlankLineBetweenDefinitionChecker.scala
Scala
apache-2.0
5,805
/* * 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 ...
Intel-bigdata/OAP
oap-cache/oap/src/main/scala/org/apache/spark/sql/execution/datasources/oap/utils/OapUtils.scala
Scala
apache-2.0
8,955
package kr.ac.kaist.ir.deep.train import kr.ac.kaist.ir.deep.fn._ import kr.ac.kaist.ir.deep.layer.NormalizeOperation import kr.ac.kaist.ir.deep.network.Network import kr.ac.kaist.ir.deep.rec.BinaryTree /** * __Input Operation__ : VectorTree as Input & Recursive Auto-Encoder Training (no output type) * * @note We ...
nearbydelta/ScalaNetwork
src/main/scala/kr/ac/kaist/ir/deep/train/StandardRAEType.scala
Scala
gpl-2.0
2,902
/* * 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...
psyyz10/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/nn/MSECriterionSpec.scala
Scala
apache-2.0
4,210
package lib.formats import lib.helper.Markup import lib.joda._ import models.enums._ import play.api.templates.Html import play.api.templates.HtmlFormat import play.api.i18n.Messages object Renderer { private val noValue = Html("""<em class="muted">not assigned</em>""") /** * Returns a ''H...
fynnfeldpausch/frame
app/lib/formats/Renderer.scala
Scala
mit
1,743
package basics.functions class ConvertFunction extends (Int => String) { def apply(m: Int): String = { String.valueOf(m) } }
szaqal/KitchenSink
Scala/01/src/main/scala/basics/functions/ConvertFunction.scala
Scala
gpl-3.0
131
package org.apache.spark.ml.dsl import org.apache.spark.ml.dsl.utils.messaging.{MessageAPI_<<, MessageRelay} import org.apache.spark.sql.catalyst.trees.TreeNode import org.apache.spark.sql.utils.DataTypeRelay trait StepTreeNode[BaseType <: StepTreeNode[BaseType]] extends TreeNode[StepTreeNode[BaseType]] { val self...
tribbloid/spookystuff
mldsl/src/main/scala/org/apache/spark/ml/dsl/StepTreeNode.scala
Scala
apache-2.0
2,117
/* * 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 ...
tophua/spark1.52
core/src/main/scala/org/apache/spark/deploy/master/MasterSource.scala
Scala
apache-2.0
2,015
package com.avsystem.commons package redis.commands import com.avsystem.commons.redis.ClusterUtils.keyWithSameSlotAs import com.avsystem.commons.redis._ /** * Author: ghik * Created: 14/04/16. */ trait KeyedKeysApiSuite extends CommandsSuite { import RedisApi.Batches.StringTyped._ apiTest("COPY") { s...
AVSystem/scala-commons
commons-redis/src/test/scala/com/avsystem/commons/redis/commands/KeysApiSuite.scala
Scala
mit
5,366
/* * ____ ____ _____ ____ ___ ____ * | _ \\ | _ \\ | ____| / ___| / _/ / ___| Precog (R) * | |_) | | |_) | | _| | | | | /| | | _ Advanced Analytics Engine for NoSQL Data * | __/ | _ < | |___ | |___ |/ _| | | |_| | Copyright (C) 2010 - 2013 SlamData, In...
precog/platform
performance/src/test/scala/com/precog/performance/PerformanceSuite.scala
Scala
agpl-3.0
1,283
package org.jetbrains.plugins.scala.codeInspection.delayedInit import com.intellij.codeInspection.ProblemsHolder import com.intellij.psi.{PsiClass, PsiElement} import org.jetbrains.plugins.scala.codeInspection.{AbstractInspection, InspectionsUtil} import org.jetbrains.plugins.scala.extensions.{Both, ContainingClass, L...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/codeInspection/delayedInit/FieldFromDelayedInitInspection.scala
Scala
apache-2.0
1,977
package keystoneml.loaders import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import keystoneml.pipelines.Logging import keystoneml.utils.MultiLabeledImage case class VOCDataPath(imagesDirName: String, namePrefix: String, numParts: Option[Int]) case class VOCLabelPath(labelsFileName: String) /** ...
amplab/keystone
src/main/scala/keystoneml/loaders/VOCLoader.scala
Scala
apache-2.0
1,661
package memnets.fx.app import javafx.application.Application import memnets.core._ object SingletonAppFX { private var _startUpBuilder: ModelBuilder = _ private var _config: ModelConfig = _ /** helper for Java */ def demoJ(builder: BldType, args: Array[String] = Array()): Unit = { demo(builder, args = ar...
MemoryNetworks/memnets
fx/src/main/scala/memnets/fx/app/DemoFX.scala
Scala
apache-2.0
957
package com.metl.snippet import com.metl.model.Globals import net.liftweb._ import http._ import SHtml._ import common._ import util._ import Helpers._ object ThemeChooser { def render = "#themeCss [href]" #> "/static/assets/styles/%s/main.css".format(Globals.themeName) }
StackableRegiments/analyticalmetlx
src/main/scala/com/metl/snippet/ThemeChooser.scala
Scala
apache-2.0
277
package org.scalex package binary import scala.collection.generic.CanBuildFrom import sbinary._, DefaultProtocol._, Operations._ import semverfi.{ Valid, Version } import model._ private[binary] object BinaryFormat extends DefaultProtocol with RichProtocol { import Sugar._ implicit val entityF = wrap[Entity, ...
ornicar/scalex
src/main/scala/binary/BinaryFormat.scala
Scala
mit
3,027
package org.jetbrains.plugins.scala.lang.psi.types import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.lang.psi.api.base.types.ScTypeElement import org.jetbrains.plugins.scala.lang.psi.api.expr.{ScAssignStmt, ScExpression} import org.jetbrains.plugins.scala.lang.psi.api.statements.params.ScParameterC...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/types/ApplicabilityProblem.scala
Scala
apache-2.0
2,312
/* * 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 ...
zimmermatt/flink
flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/SideOutputITCase.scala
Scala
apache-2.0
11,143
package test import org.scalatest.PropSpec class ExamplePropSpec extends PropSpec { property("an empty Set should have size 0") { assert(Set.empty[Int].size == 0) } }
cheeseng/scalatest
scalatest-test.js/src/test/scala/test/ExamplePropSpec.scala
Scala
apache-2.0
178
/* * 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 ...
saltstar/spark
resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/submit/steps/initcontainer/InitContainerMountSecretsStepSuite.scala
Scala
apache-2.0
2,531
/* * Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.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 ...
47deg/github4s
github4s/src/main/scala/github4s/domain/User.scala
Scala
apache-2.0
1,252
package streams import org.scalatest.FunSuite import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import Bloxorz._ @RunWith(classOf[JUnitRunner]) class BloxorzSuite extends FunSuite { trait SolutionChecker extends GameDef with Solver with StringParserTerrain { /** * This method applie...
jan-j/functional-programming-principles-in-scala
week-7/src/test/scala/streams/BloxorzSuite.scala
Scala
mit
2,318
package io.mem0r1es.trank.pipeline import java.net.URI import scala.Array.canBuildFrom import org.apache.lucene.index.Term import org.apache.lucene.search.TermQuery import com.typesafe.config.Config import io.mem0r1es.trank.util.IndexUtils import io.mem0r1es.trank.util.TRankIndexType object TypeRetrieval { /**...
ahmadassaf/TRank
src/main/scala/io/mem0r1es/trank/pipeline/TypeRetrieval.scala
Scala
apache-2.0
1,092
import sbt._ import Keys._ import AndroidKeys._ object General { val settings = Defaults.defaultSettings ++ Seq ( organization := "org.positronicnet", version := "0.4-SNAPSHOT", scalaVersion := "2.9.0-1", platformName in Android := "android-14" ) lazy val fullAndroidSettings = General.setti...
rst/positronic_net
project/build.scala
Scala
bsd-3-clause
3,132
/** * Licensed to the Minutemen Group under one or more contributor license * agreements. See the COPYRIGHT file distributed with this work for * additional information regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in complian...
datalek/silhouette
silhouette/src/main/scala/silhouette/util/SecureRandomIDGenerator.scala
Scala
apache-2.0
2,076
package loader.core import loader.core.events.Event import loader.InternalLoaderException import scala.reflect.ClassTag import loader.exceptions._ import reflect.runtime.universe.TypeTag object definition { import scala.language.implicitConversions //the compiler seems to require a little help, so t...
Y-P-/data-processing-binding
XX3/obsolete/core/definition.scala
Scala
gpl-3.0
19,883
package collins.models import play.api.libs.json.Json import play.api.libs.json.JsObject import play.api.libs.json.JsNumber import play.api.libs.json.JsString import org.squeryl.PrimitiveTypeMode._ import org.squeryl.Schema import org.squeryl.Table import collins.solr.SolrKey import collins.solr.SolrSingleValue impo...
box/collins
app/collins/models/AssetMeta.scala
Scala
apache-2.0
6,919
/* * Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com> */ package com.qifun.statelessFuture package test package run package become import scala.language.postfixOps import scala.concurrent._ import com.qifun.statelessFuture.Future import scala.concurrent.duration._ import scala.concurrent.duration.Dur...
Atry/stateless-future-test
test/src/test/scala/com/qifun/statelessFuture/test/run/become/BecomeSpec.scala
Scala
bsd-3-clause
2,642
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools package re...
scala/scala
src/compiler/scala/tools/reflect/StdTags.scala
Scala
apache-2.0
2,427
package com.gx.simplefactory import org.scalatest.{FlatSpec, Matchers} /** * Copyright 2017 josephguan * * 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.or...
josephguan/scala-design-patterns
creational/simple-factory/src/test/scala/com/gx/simplefactory/SimpleFactorySpect.scala
Scala
apache-2.0
1,177
package controllers import cms.dto.Entry import cms.ContentManager import play.api.data.Forms.list import play.api.data.Forms.mapping import play.api.data.Forms.nonEmptyText import play.api.data.Forms.text import play.api.data.Form object Content extends LangAwareController { val entryForm = Form( mapping( ...
lukaszbudnik/hackaton-portal
app/controllers/Content.scala
Scala
apache-2.0
2,605
package net.sourceforge.cilib.simulator import java.io.File object RunBasicShell extends App { val simulators = SimulatorShell.prepare(new File("xml/firefly.xml")) SimulatorShell.execute(simulators, new ProgressText(simulators.size)) }
felixamerbauer/firefly-simulator
src/test/scala/net/sourceforge/cilib/simulator/RunBasicShell.scala
Scala
gpl-3.0
242
package org.crashstars.akka.primes import akka.actor.Actor import org.crashstars.common.Logging /** * Created by navidad on 19/11/15. */ class PrimeListener extends Actor with Logging { override def receive = { case AggregateResult(finalResult) => { logInfo(s"Distinct primes numbers found : ${finalResu...
anavidad3/PoC-spark-scala-maven
src/main/scala/org/crashstars/akka/primes/PrimeListener.scala
Scala
apache-2.0
431
/*********************************************************************** * 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-features/geomesa-feature-kryo/src/main/scala/org/locationtech/geomesa/features/kryo/impl/LazyDeserialization.scala
Scala
apache-2.0
11,724
/* * Copyright 2014-2021 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 agr...
brharrington/atlas
atlas-eval/src/main/scala/com/netflix/atlas/eval/graph/ImageFlags.scala
Scala
apache-2.0
1,028
package st import org.scalatest.WordSpec class WordSpecTest extends WordSpec { "A Set" when { "empty" should { "have size 0" in { assert(Set.empty.isEmpty) } "produce NoSuchElementException when head is invoked" in { intercept[NoSuchElementException] { Set.empty.head...
objektwerks/scala.test
src/test/scala/st/WordSpecTest.scala
Scala
mit
350
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.persistence.jdbc import java.util.UUID import akka.Done import akka.actor.ActorSystem import akka.persistence.query.NoOffset import akka.persistence.query.Offset import akka.persistence.query.TimeBasedUU...
rcavalcanti/lagom
persistence-jdbc/core/src/main/scala/com/lightbend/lagom/internal/persistence/jdbc/SlickOffsetStore.scala
Scala
apache-2.0
6,454
package com.twitter.finagle.netty3 import com.twitter.finagle._ import com.twitter.finagle.channel.{ ChannelRequestStatsHandler, ChannelStatsHandler, WriteCompletionTimeoutHandler } import com.twitter.finagle.server.Listener import com.twitter.finagle.ssl.{Engine, SslShutdownHandler} import com.twitter.finagle.stats...
joshbedo/finagle
finagle-core/src/main/scala/com/twitter/finagle/netty3/server.scala
Scala
apache-2.0
11,790
package com.gizwits.rabbitmq import java.util.concurrent.atomic.AtomicInteger import com.rabbitmq.client._ import org.apache.commons.lang.StringUtils import org.apache.spark.Logging import org.apache.spark.storage.StorageLevel import org.apache.spark.streaming.StreamingContext import org.apache.spark.streaming.dstre...
Bestfeel/spark-rabbitmq-stream
src/main/scala/com/gizwits/rabbitmq/RabbitMQInputDStream.scala
Scala
apache-2.0
5,675
package poly.util.cliconfig import scala.collection._ import scala.collection.JavaConversions._ /** * Provides utilities to access command-line interface configurations. * @author Tongfei Chen (ctongfei@gmail.com). */ object CliConfig extends DefaultMap[String, String] { override def apply(key: String) = System...
ctongfei/poly-util
src/main/scala/poly/util/cliconfig/CliConfig.scala
Scala
mit
536
/* * Copyright (C) 2013 Alcatel-Lucent. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * Licensed 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 cop...
molecule-labs/molecule
molecule-net-examples/src/main/scala/molecule/examples/net/TelnetAdapter.scala
Scala
apache-2.0
3,374
package lr2 import org.apache.spark.rdd.RDD import org.apache.spark.SparkContext._ import org.apache.spark.SparkContext import classification._ import classification.OptimizerType._ import classification.RegularizerType._ import utilities.SparseMatrix import utilities.DoubleVector class DistributedGradient( over...
XianXing/bdl
src/main/scala/bdl/lr2/DistributedGradient.scala
Scala
apache-2.0
2,978
/* ************************************************************************************* * Copyright 2011 Normation SAS ************************************************************************************* * * This file is part of Rudder. * * Rudder is free software: you can redistribute it and/or modify * it under the...
armeniaca/rudder
rudder-web/src/main/scala/com/normation/rudder/web/services/Section2FieldService.scala
Scala
gpl-3.0
12,955
// @SOURCE:/home/baptiste/check_my_ride/conf/routes // @HASH:66277d7cd60a62c63c0557fa462785079a0dca5e // @DATE:Mon Aug 18 16:34:53 CEST 2014 import Routes.{prefix => _prefix, defaultPrefix => _defaultPrefix} import play.core._ import play.core.Router._ import play.core.j._ import play.api.mvc._ import Router.queryS...
Viewtiful/Check-my-ride
target/scala-2.10/src_managed/main/routes_reverseRouting.scala
Scala
apache-2.0
4,424
package models.team import scalaz._ import Scalaz._ import scalaz.effect.IO import scalaz.Validation import scalaz.Validation.FlatMap._ import scalaz.NonEmptyList._ import scalaz.syntax.SemigroupOps import cache._ import db._ import models.Constants._ import io.megam.auth.funnel.FunnelErrors._ import com.datastax.dr...
megamsys/verticegateway
app/models/team/Organizations.scala
Scala
mit
5,873
package week7.bloxorz /** * This component implements a parser to define terrains from a * graphical ASCII representation. * * When mixing in that component, a level can be defined by * defining the field `level` in the following form: * * val level = * """------ * |--ST-- * |--oo-- * ...
zapstar/funprog
fp-scala/src/week7/bloxorz/StringParserTerrain.scala
Scala
mit
2,627
package edu.msstate.dasi.csb.workload.spark import edu.msstate.dasi.csb.workload.Workload import org.apache.spark.graphx.Graph import scala.reflect.ClassTag /** * Connected Components algorithm implementation. */ class ConnectedComponents(engine: SparkEngine) extends Workload { val name = "Connected Components" ...
msstate-dasi/csb
csb/src/main/scala/edu/msstate/dasi/csb/workload/spark/ConnectedComponents.scala
Scala
gpl-3.0
508
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribute...
wvlet/airframe
airframe-metrics/.jvm/src/main/scala/wvlet/airframe/metrics/TimeVector.scala
Scala
apache-2.0
4,757
/* * 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...
zhichao-li/BigDL
dl/src/test/scala/com/intel/analytics/bigdl/torch/MaxSpec.scala
Scala
apache-2.0
4,296
/* * Copyright © 2015 - 2019 Lightbend, Inc. <http://www.lightbend.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 requ...
lightbend/paradox
theme-plugin/src/main/scala/com/lightbend/paradox/sbt/ParadoxThemePlugin.scala
Scala
apache-2.0
2,568
object Test { def bar(tl: => String) = { val x = tl _ // error val y = x _ // error val s: String = x() // error } }
som-snytt/dotty
tests/neg/i941.scala
Scala
apache-2.0
135
package net.rrm.ehour.ui.report.detailed import net.rrm.ehour.AbstractSpringWebAppSpec import net.rrm.ehour.ui.report.cache.ReportCacheService import org.mockito.Mockito._ class DetailedReportRESTResourceSpec extends AbstractSpringWebAppSpec { "Detailed Report REST resource" should { val cacheService = mockServ...
momogentoo/ehour
eHour-wicketweb/src/test/scala/net/rrm/ehour/ui/report/detailed/DetailedReportRESTResourceSpec.scala
Scala
gpl-2.0
766
package mesosphere.marathon.api.v2 import java.util import javax.inject.Inject import javax.servlet.http.HttpServletRequest import javax.ws.rs._ import javax.ws.rs.core.{ Context, MediaType, Response } import com.codahale.metrics.annotation.Timed import mesosphere.marathon.api.v2.json.Formats._ import mesosphere.mara...
timcharper/marathon
src/main/scala/mesosphere/marathon/api/v2/TasksResource.scala
Scala
apache-2.0
5,451
package org.gark87.yajom.macros import org.gark87.yajom.base.BaseMapper import language.experimental.macros import scala.collection.mutable import scala.reflect.macros.Universe class CreateOnNull { def findSetter[T: y.c.WeakTypeTag](y: YajomContext) (qualifier: y.c.Tree, name: y....
gark87/yajom
yajom-macros/src/main/scala/org/gark87/yajom/macros/CreateOnNull.scala
Scala
mit
5,567