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
// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2014-2015 Preferred Networks and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License version 2.1...
jubatus/jubatus-on-yarn
jubatusonyarn/jubatus-on-yarn-test/src/main/scala/us/jubat/yarn/test/Test13.scala
Scala
lgpl-2.1
3,816
object i0 { (null: Any) match { case 1 , i1 @ (false)('i2', 'i3') <- flatMap(i4: Int, ) => true type i0[i1] >: i2 <: i1[i2] val i9: i2[scala] = i9 lazy i10 :: i7 === i8 i10[i3]('.i9', i7 == i10) def <(i6: List[i1]): i4[i9, i10] def i2(i3: i0 { type i6 <: mutable ; def Float[i77: i8]; i10, i18) } trait i11[i4] { def app...
som-snytt/dotty
tests/fuzzy/f901d61a9bc6053c910245552c74c4c73e43efe0.scala
Scala
apache-2.0
478
package vm.interpreter.impl import org.apache.bcel.generic.CHECKCAST import sai.vm.Reference import vm.Frame import vm.interpreter.{InstructionInterpreter, InterpreterBuilder} private[interpreter] object CheckcastInterpreter extends InterpreterBuilder[CHECKCAST] { override def apply(i: CHECKCAST): InstructionInter...
oliverhaase/sai
src/sai/vm/interpreter/impl/CheckcastInterpreter.scala
Scala
mit
686
package net.categoricaldata.category trait Category { category => type O type M def identity(o: O): M def source(m: M): O def target(m: M): O def compose(m1: M, m2: M): M // and now some convenience methods for composing many morphisms def compose(m0: M, ms: M*): M = ms.fold(m0)(compose _) def compo...
JasonGross/categoricaldata
src/main/scala/net/categoricaldata/category/Category.scala
Scala
mit
1,656
/* * Skylark * http://skylark.io * * Copyright 2012-2017 Quantarray, 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...
quantarray/skylark
skylark-measure/src/main/scala/com/quantarray/skylark/measure/MeasureProvider.scala
Scala
apache-2.0
870
/* * Copyright 2014 Heiko Seeberger * * 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 wri...
huntc/akka-sse
src/test/scala/de/heikoseeberger/akkasse/EventStreamMarshallingSpec.scala
Scala
apache-2.0
1,969
package com.ubirch.backend.chain.model /** * author: cvandrei * since: 2016-09-07 */ object MetaModel { val version: String = "1.0" }
ubirch/ubirch-storage-service
model/src/main/scala/com/ubirch/backend/chain/model/MetaModel.scala
Scala
apache-2.0
145
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/ListShouldContainNoElementsOfLogicalOrSpec.scala
Scala
apache-2.0
38,869
package types trait Refs { trait T type TYPEREF = Int type TERMREFpkg = /**/scala./**/Long private[types] val TYPEREFpkg: Int = ??? type TYPEREFsymbol = T def TYPEREFdirect[T]: T def TERMREFdirect(x: Int): x.type }
JetBrains/intellij-scala
tasty/runtime/data/types/Refs.scala
Scala
apache-2.0
235
package entities import slick.lifted.{ForeignKeyQuery, ProvenShape} import utils.DbModule case class SubIssue(id: Long, issueId: Long, summary: String, assigneeId: Long, reporterId: Long) extends BaseEntity { def toSimple = SimpleSubIssue(issueId, summary, assigneeId, reporterId) def toVerySimple = VerySimpleSub...
Kanris826/spray-slick-swagger
src/main/scala/entities/SubIssues.scala
Scala
apache-2.0
1,422
package org.jetbrains.plugins.scala package lang package psi package impl package base package types import com.intellij.lang.ASTNode import com.intellij.psi.{PsiElement, ResolveState} import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.lang.psi.api.base.types._ import org.jetbrains.plug...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/base/types/ScExistentialTypeElementImpl.scala
Scala
apache-2.0
3,402
import scala.tools.partest.nest.FileManager._ object Test extends dotty.runtime.LegacyApp { val cm = reflect.runtime.currentMirror val u = cm.universe import u._ val JavaUniverseTpe = typeOf[reflect.runtime.JavaUniverse] val DefinitionsModule = JavaUniverseTpe.member(TermName("definitions")) def forceCod...
yusuke2255/dotty
tests/pending/run/t6240-universe-code-gen.scala
Scala
bsd-3-clause
3,008
/* * Copyright (c) 2014-2018 by The Monix Project Developers. * See the project homepage at: https://monix.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...
Wogan/monix
monix-execution/shared/src/main/scala/monix/execution/exceptions/CompositeException.scala
Scala
apache-2.0
1,680
/* Copyright (C) 2011 by John A. De Goes * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pub...
jdegoes/RosettaJson
src/test/scala/rosetta/json/dispatch/JsonDispatchTest.scala
Scala
mit
1,483
package com.ambrosoft.learning /** * Created by jacek on 3/12/17. */ case class Point(x: Int, y: Int) { lazy val dist: Double = euclideanDist(x, y) def dist(p: Point): Double = euclideanDist(p.x - x, p.y - y) } object Zero extends Point(0, 0) object PointMain extends App { println(Zero) println(Zero.x) ...
JacekAmbroziak/Ambrosoft
src/main/scala/com/ambrosoft/learning/Point.scala
Scala
apache-2.0
344
package com.twitter.finagle.thrift import org.jboss.netty.channel.{SimpleChannelHandler, ChannelEvent, ChannelHandlerContext} import org.jboss.netty.handler.codec.frame.{LengthFieldBasedFrameDecoder, LengthFieldPrepender} class ThriftFrameCodec extends SimpleChannelHandler { private[this] val decoder = new LengthFi...
foursquare/finagle
finagle-thrift/src/main/scala/com/twitter/finagle/thrift/ThriftFrameCodec.scala
Scala
apache-2.0
655
package scuff.concurrent import java.util.concurrent.{ ConcurrentLinkedQueue, CountDownLatch, RejectedExecutionException, ThreadFactory } import scala.concurrent.{ ExecutionContextExecutor, Future } import scala.util.control.NonFatal object LockFreeExecutionContext { /** * Queue abstraction. */ trait Run...
nilskp/scuff
src/main/scala/scuff/concurrent/LockFreeExecutionContext.scala
Scala
mit
3,194
/* * Copyright (c) 2014-2021 by The Monix Project Developers. * See the project homepage at: https://monix.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...
monifu/monifu
monix-reactive/jvm/src/main/scala/monix/reactive/compression/internal/operators/GunzipOperator.scala
Scala
apache-2.0
10,823
package com.twitter.finagle.exp.zookeeper.integration.standalone.v3_5.command import com.twitter.finagle.exp.zookeeper.ZookeeperDefs.CreateMode import com.twitter.finagle.exp.zookeeper.data.Ids import com.twitter.finagle.exp.zookeeper.integration.standalone.StandaloneIntegrationConfig import com.twitter.util.Await imp...
finagle/finagle-zookeeper
integration/src/test/scala/com/twitter/finagle/exp/zookeeper/integration/standalone/v3_5/command/CheckWatcherTest.scala
Scala
apache-2.0
1,190
import sbt._, Keys._ object Dependencies { private val home = "file://" + Path.userHome.absolutePath object Resolvers { val typesafe = "typesafe.com" at "http://repo.typesafe.com/typesafe/releases/" val sonatype = "sonatype" at "https://oss.sonatype.org/content/repositories/releases" val sonatypeS = ...
danilovsergey/i-bur
project/Dependencies.scala
Scala
mit
2,301
package scala.quoted package staging import dotty.tools.dotc.CompilationUnit import dotty.tools.dotc.util.NoSource /** Compilation unit containing the contents of a quoted expression */ private class ExprCompilationUnit(val exprBuilder: QuoteContext => Expr[_]) extends CompilationUnit(NoSource)
som-snytt/dotty
staging/src/scala/quoted/staging/ExprCompilationUnit.scala
Scala
apache-2.0
298
package org.embulk.input.dynamodb.operation import java.util.Optional import com.amazonaws.services.dynamodbv2.model.AttributeValue import com.amazonaws.services.dynamodbv2.AmazonDynamoDB import org.embulk.config.{ Config, ConfigDefault, ConfigException, Task => EmbulkTask } object DynamodbOperationProxy { ...
lulichn/embulk-input-dynamodb
src/main/scala/org/embulk/input/dynamodb/operation/DynamodbOperationProxy.scala
Scala
mit
1,764
/* * 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 ...
tzulitai/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/api/validation/TableSourceValidationTest.scala
Scala
apache-2.0
10,788
/* elm-scala: an implementation of ELM in Scala using MTJ Copyright (C) 2014 Davi Pereira dos Santos 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 yo...
Crespo911/elm-scala
src/main/scala/ml/classifiers/ConvergentIncremental.scala
Scala
gpl-3.0
3,449
package io.iohk.ethereum.faucet.jsonrpc import io.iohk.ethereum.faucet.jsonrpc.FaucetDomain.{SendFundsRequest, SendFundsResponse, StatusRequest, StatusResponse} import io.iohk.ethereum.jsonrpc.JsonMethodsImplicits import io.iohk.ethereum.jsonrpc.JsonRpcError.InvalidParams import io.iohk.ethereum.jsonrpc.serialization....
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/faucet/jsonrpc/FaucetMethodsImplicits.scala
Scala
mit
1,156
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ //###replace: package tasks package scalaguide.scheduling import play.api.ApplicationLoader.Context import play.api.routing.Router import play.api.{BuiltInComponentsFromContext, NoHttpFiltersComponents} class MyBuiltInComponentsFromContext(c...
Shruti9520/playframework
documentation/manual/working/commonGuide/schedule/code/scalaguide/scheduling/MyBuiltInComponentsFromContext.scala
Scala
apache-2.0
590
object Test extends App { import Macros._ println("2".toOptionOfInt) }
som-snytt/dotty
tests/disabled/macro/run/macro-term-declared-in-implicit-class/Test_2.scala
Scala
apache-2.0
74
/* * 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 ...
eric-haibin-lin/mxnet
scala-package/core/src/test/scala/org/apache/mxnet/KVStoreSuite.scala
Scala
apache-2.0
3,048
package model import play.api.libs.json._ /** * Represents the Swagger definition for ClassesByClass. * @param additionalProperties Any additional properties this model may have. */ @javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2022-02-1...
cliffano/swaggy-jenkins
clients/scala-play-server/generated/app/model/ClassesByClass.scala
Scala
mit
1,432
/*********************************************************************** * 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...
jahhulbert-ccri/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/data/TableSharingTest.scala
Scala
apache-2.0
6,253
package org.mybatis.caches.rediscala.serializer import org.xerial.snappy.Snappy private[rediscala] object SnappyRedisSerializer { def apply[T](inner: RedisSerializer[T] = FstRedisSerializer[T]()): SnappyRedisSerializer[T] = { new SnappyRedisSerializer[T](inner) } } /** * Snappy 압축 알고리즘을 이용하여 객체를 직...
debop/mybatis-redis
src/main/scala/org/mybatis/caches/rediscala/serializer/SnappyRedisSerializer.scala
Scala
apache-2.0
948
package epic.features import epic.framework.Feature /** * * @author dlwh */ @SerialVersionUID(1L) case class MultiSurfaceFeaturizer[W](feats: IndexedSeq[SurfaceFeaturizer[W]]) extends SurfaceFeaturizer[W] with Serializable { def this(feats: SurfaceFeaturizer[W]*) = this(feats.toArray) def anchor(w: IndexedSeq...
maxim-rabinovich/epic
src/main/scala/epic/features/MultiSurfaceFeaturizer.scala
Scala
apache-2.0
580
import actors._ import com.google.inject.AbstractModule import play.api.libs.concurrent.AkkaGuiceSupport class Module extends AbstractModule with AkkaGuiceSupport { override def configure(): Unit = { bindActor[StocksActor]("stocksActor") bindActor[UserParentActor]("userParentActor") bindActorFactory[User...
BijanVan/play-scala-websocket-demo
app/Module.scala
Scala
mit
351
import scala.collection.mutable.HashMap object AssertionError extends AnyRef with App { abstract class A {} object A1 extends A {} object A2 extends A {} class Manager { final class B {} val map = new HashMap[A, B] } def test[T](f: => T): Unit = { f } test { ...
lampepfl/dotty
tests/untried/neg/t876.scala
Scala
apache-2.0
497
package dazzle.waffle.adapter import java.io.InputStream import java.nio.file.Path import scala.util.Try trait Adapter { /** * Reads the content of the file * * @param key key * @return input stream */ def read(key: String): Try[InputStream] /** * Writes the given content into the file * ...
dazzle-lab/waffle
src/main/scala/dazzle/waffle/adapter/Adapter.scala
Scala
mit
1,216
import play.Project._ import sbt._ import Keys._ import play.Project._ import scala.Some import scala.Some object ApplicationBuild extends Build { val appName = fromEnv("project.artifactId").getOrElse("play-maven-test") val appVersion = fromEnv("project.version").getOrElse("1.0-SNAPSHOT") val appDependencies =...
cpcundill/nanoko-maven-play2-plugin-test
project/Build.scala
Scala
apache-2.0
1,286
package com.atomist.rug.runtime.lang.js import javax.script.ScriptEngineManager import jdk.nashorn.api.scripting.{JSObject, ScriptObjectMirror} import org.scalatest.{FlatSpec, Matchers} object NashornConstructorTest { val SimpleJavascriptEditor: String = """ |"use strict"; |var RugOperation_1 = re...
atomist/rug
src/test/scala/com/atomist/rug/runtime/lang/js/NashornConstructorTest.scala
Scala
gpl-3.0
1,908
/* * 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 ...
bOOm-X/spark
core/src/test/scala/org/apache/spark/util/UninterruptibleThreadSuite.scala
Scala
apache-2.0
5,227
/* * 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 ...
esi-mineset/spark
mllib/src/main/scala/org/apache/spark/mllib/clustering/BisectingKMeans.scala
Scala
apache-2.0
18,165
play { val leastChange = LeastChange.ar(a = 394.84225, b = 327.47897) val gbmanL = GbmanL.ar(freq = Seq(394.84225, 394.85), xi = 742.4219, yi = -2726.2134) val fBSineL = FBSineL.ar(freq = Seq(859.40076, 859.41), im = 742.4219, fb = -0.0029116, a = 327.47897, c = 0.26494086, xi = 327.47897, yi = -0.46837935) va...
Sciss/Grenzwerte
individual_sounds/T1-L14-542-765.scala
Scala
gpl-3.0
1,701
package com.wixpress.guineapig.web import com.wixpress.guineapig.drivers.SpecificationWithEnvSupport import org.specs2.specification.Scope class MetaDataControllerIT extends SpecificationWithEnvSupport { trait Context extends Scope "MetaData controller" should { "fetch languages" in new Context { ht...
wix/petri
guineapig-webapp-os/src/it/java/com/wixpress/guineapig/web/MetaDataControllerIT.scala
Scala
bsd-3-clause
487
/* * Copyright 2016 Coursera 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...
coursera/naptime
naptime/src/main/scala/org/coursera/naptime/ari/fetcher/LocalFetcher.scala
Scala
apache-2.0
5,370
package cz.kamenitxan.jakon.webui.functions import java.util import com.mitchellbosecke.pebble.extension.Function import cz.kamenitxan.jakon.core.template.pebble.PebbleExtension /** * Created by tomaspavel on 6.10.16. */ class AdminPebbleExtension extends PebbleExtension { override def getFunctions: util.Map[Str...
kamenitxan/Jakon
modules/backend/src/main/scala/cz/kamenitxan/jakon/webui/functions/AdminPebbleExtension.scala
Scala
bsd-3-clause
720
package net.bhardy.braintree.scala.gw import net.bhardy.braintree.scala.exceptions.NotFoundException import net.bhardy.braintree.scala.util.Http import scala.math.BigDecimal import net.bhardy.braintree.scala._ import search.SubscriptionSearchRequest /** * Provides methods to interact with {@link Subscription Subscri...
benhardy/braintree-scala
src/main/scala/gw/SubscriptionGateway.scala
Scala
mit
3,599
package org.pignat.bwatnwa trait PointListener { def point(s:Int) }
RandomReaper/bwatnwa
src/main/scala/org/pignat/bwatnwa/PointListener.scala
Scala
agpl-3.0
70
package org.libss.util.helpers /** * date: 02.06.2016 22:44 * author: Kaa * * Gender enumeration class */ object Gender extends Enumeration { type Gender = Value val Male = Value("male") val Female = Value("female") }
kanischev/libss
libss-utils/src/main/scala/org/libss/util/helpers/Gender.scala
Scala
apache-2.0
235
package breeze /* Copyright 2012 David Hall 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 writin...
wavelets/breeze
src/main/scala/breeze/linalg/package.scala
Scala
apache-2.0
8,426
package com.pointr.tensorflow import java.io.File import com.pointr.tcp.util.Logger.{debug, error, warn} import com.pointr.tcp.util.{FileUtils, Logger} import com.pointr.tcp.rpc.TcpParams import com.pointr.tensorflow.GpuClient.{GpuAlternate, GpuClientInfo, GpuInfo, GpusInfo} import com.pointr.util.TfAppConfig import...
OpenChaiSpark/OCspark
tf/src/main/scala/com/pointr/tensorflow/GpuFailoverService.scala
Scala
apache-2.0
4,924
package com.github.slackey.codecs.responses import com.github.slackey.codecs.types._ case class ImOpen( channel: Channel )
slackey/slackey
src/main/scala/com/github/slackey/codecs/responses/ImOpen.scala
Scala
mit
127
package dk.gp.gpc import breeze.optimize.ApproximateGradientFunction import breeze.linalg.DenseVector import breeze.optimize.LBFGS import dk.gp.gpc.util.calcGPCLoglik import breeze.linalg._ import util._ import breeze.optimize._ object gpcTrain { def apply(gpcModel: GpcModel, maxIter: Int = 100): GpcModel = { ...
danielkorzekwa/bayes-scala-gp
src/main/scala/dk/gp/gpc/gpcTrain.scala
Scala
bsd-2-clause
897
/* * Copyright ixias.net All Rights Reserved. * * Use of this source code is governed by an MIT-style license * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ package ixias.play.api.mvc import play.api.mvc.Results._ import play.api.m...
sp1rytus/ixias
framework/ixias-play-core/src/main/scala/ixias/play/api/mvc/JsonHelper.scala
Scala
mit
1,357
package io.github.mandar2812.PlasmaML.helios.core import ammonite.ops._ import io.github.mandar2812.dynaml.utils.annotation.Experimental import io.github.mandar2812.dynaml.DynaMLPipe._ import io.github.mandar2812.dynaml.tensorflow._ import io.github.mandar2812.dynaml.models._ import io.github.mandar2812.dynaml.utils i...
mandar2812/PlasmaML
helios/src/main/scala/io/github/mandar2812/PlasmaML/helios/PDTModel.scala
Scala
lgpl-2.1
19,795
package ghtorrent case class GHTorrentException(message: String) extends Exception(message)
PRioritizer/PRioritizer-analyzer
src/main/scala/ghtorrent/GHTorrentException.scala
Scala
mit
94
/** * Copyright 2016, deepsense.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
deepsense-io/seahorse-workflow-executor
deeplang/src/main/scala/io/deepsense/deeplang/utils/CustomTransformerFactory.scala
Scala
apache-2.0
1,641
/******************************************************************************* * (C) Copyright 2015 ADP, 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.apach...
adplabs/unicorn
unibase/src/main/scala/unicorn/unibase/DocumentSerializer.scala
Scala
apache-2.0
2,783
package nest.sparkle.util import scala.concurrent.Promise import org.scalatest.{Matchers, FunSuite} import rx.lang.scala.Observable import nest.sparkle.util.ObservableFuture._ import nest.sparkle.util.FutureAwait.Implicits._ import scala.concurrent.duration._ class TestObservableUtil extends FunSuite with Matchers {...
mighdoll/sparkle
util-tests/src/test/java/nest/sparkle/util/TestObservableUtil.scala
Scala
apache-2.0
1,352
/** --------------------------------------------------------------------------- Copyright (c) 2011 Dan Simpson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includin...
dansimpson/satchel
core/src/main/scala/org/ds/satchel/processors/JstProcessor.scala
Scala
mit
1,717
package pl.touk.nussknacker.openapi.functional import com.typesafe.scalalogging.LazyLogging import org.asynchttpclient.DefaultAsyncHttpClient import org.scalatest._ import pl.touk.nussknacker.engine.api._ import pl.touk.nussknacker.engine.api.test.EmptyInvocationCollector.Instance import pl.touk.nussknacker.engine.api...
TouK/nussknacker
components/openapi/src/it/scala/pl/touk/nussknacker/openapi/functional/OpenAPIServiceSpec.scala
Scala
apache-2.0
2,687
/* * 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 ...
sgururajshetty/carbondata
integration/spark-common/src/main/scala/org/apache/carbondata/spark/tasks/DictionaryWriterTask.scala
Scala
apache-2.0
3,596
package org.vitrivr.adampro.data.index.structures.va import breeze.linalg._ import org.apache.spark.ml.feature.PCA import org.apache.spark.sql.functions._ import org.apache.spark.sql.{DataFrame, Dataset} import org.vitrivr.adampro.config.AttributeNames import org.apache.spark.ml.linalg.{DenseVector, Vectors} import or...
dbisUnibas/ADAMpro
src/main/scala/org/vitrivr/adampro/data/index/structures/va/VAPlusIndexGenerator.scala
Scala
mit
5,916
/* * 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 ...
actuaryzhang/spark
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaSourceProvider.scala
Scala
apache-2.0
28,494
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
travisbrown/scalatest
src/test/scala/org/scalatest/matchers/ShouldEndWithSubstringSpec.scala
Scala
apache-2.0
14,804
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
tdanford/adam
adam-core/src/test/scala/org/bdgenomics/adam/rdd/GenomicPositionPartitionerSuite.scala
Scala
apache-2.0
7,417
import scala.tools.nsc.interactive.tests._ import scala.reflect.internal.util._ object Test extends InteractiveTest { import compiler._, definitions._ override def runDefaultTests(): Unit = { def resolveTypeTagHyperlink(): Unit = { val sym = compiler.askForResponse(() => compiler.currentRun.runDefiniti...
scala/scala
test/files/presentation/t7678/Runner.scala
Scala
apache-2.0
2,378
package org.bitcoins.core.dlc.accounting import org.bitcoins.core.currency.{CurrencyUnit, CurrencyUnits} /** Similar to [[org.bitcoins.core.dlc.accounting.DLCAccounting]], but * represents the entire accounting for the wallet */ case class DLCWalletAccounting( myCollateral: CurrencyUnit, theirCollateral: ...
bitcoin-s/bitcoin-s
core/src/main/scala/org/bitcoins/core/dlc/accounting/DLCWalletAccounting.scala
Scala
mit
985
package dbtarzan.gui.tabletabs import dbtarzan.db.DBTableStructure /* Normally it shows the name of the table. If the tab is derived from a foreign key, it is in the form: [table] < [origin table] where origin table is the table on the other side of the foreign key If a filter (where) has been applied...
aferrandi/dbtarzan
src/main/scala/dbtarzan/gui/tabletabs/TableStructureText.scala
Scala
apache-2.0
756
/******************************************************************************* * This file is part of tiscaf. * * tiscaf 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 3 of the L...
gnieh/tiscaf
core/src/main/scala/tiscaf/HSslContext.scala
Scala
lgpl-3.0
6,842
package assets.mustache.forces import uk.gov.gds.ier.transaction.forces.nationality.NationalityMustache import uk.gov.gds.ier.test._ class NationalityTemplateTest extends TemplateTestSuite with NationalityMustache { it should "properly render all properties from the model" in { running(FakeApplication()) ...
alphagov/ier-frontend
test/assets/mustache/forces/NationalityTemplateTest.scala
Scala
mit
4,569
package filodb.coordinator.client import filodb.core.query.{ColumnFilter, QueryContext} import filodb.query.{LogicalPlan => LogicalPlan2, QueryCommand} object QueryCommands { import filodb.core._ // These correspond to the ColumnStore PartitionScan methods, but take in raw data ie strings, ints // Which partit...
filodb/FiloDB
coordinator/src/main/scala/filodb.coordinator/client/QueryCommands.scala
Scala
apache-2.0
4,422
/* * 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 ...
matthewfranglen/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/CoalesceShufflePartitions.scala
Scala
mit
4,577
/* * Copyright (c) 2015-2019 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...
RetentionGrid/snowplow
3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/registry/UrbanAirshipAdapter.scala
Scala
apache-2.0
6,930
package org.jetbrains.plugins.scala.testingSupport.test.scalatest import org.jetbrains.plugins.scala.lang.psi.api.toplevel.typedef.ScTypeDefinition import org.jetbrains.plugins.scala.testingSupport.test.TestConfigurationUtil.isInheritor import org.jetbrains.plugins.scala.testingSupport.test.scalatest.ScalaTestMigration...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/testingSupport/test/scalatest/ScalaTestUtil.scala
Scala
apache-2.0
6,568
object Test { final class Tag[T] def foo[Z >: Int <: Int, Y >: Z <: Z, X >: Y <: Y, T]: Tag[T] => T = { case _ : Tag[X] => 0 } }
lampepfl/dotty
tests/pos/i11682.scala
Scala
apache-2.0
141
package com.datastax.driver.spark.connector import java.lang.reflect.{Proxy, Method, InvocationHandler} import com.datastax.driver.core.Session /** Wraps a `Session` and intercepts `close` method to invoke `afterClose` handler. */ class SessionProxy(session: Session, afterClose: Session => Any) extends InvocationHand...
bovigny/cassandra-driver-spark
src/main/scala/com/datastax/driver/spark/connector/SessionProxy.scala
Scala
apache-2.0
1,024
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
hequn8128/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/batch/table/validation/SetOperatorsValidationTest.scala
Scala
apache-2.0
4,527
class MotherClass extends MixinWithSymbol { def foo = Symbol("sym1") } object Test { def main(args: Array[String]): Unit = { (new MotherClass).symbolFromTrait } }
som-snytt/dotty
tests/run/t8933b/Test.scala
Scala
apache-2.0
174
package me.laiseca.restcale.methodcall import scala.reflect.runtime.{universe => ru} import scala.reflect.runtime.universe._ class TypeTransformer { def supports(tpe: Type):Boolean = TypeTransformer.TYPE_TRANSFORMERS.contains(tpe) def transform(stringValue: String, tpe: Type):Option[Any] = Option.apply(tra...
xabierlaiseca/restcale
core/src/main/scala/me/laiseca/restcale/methodcall/TypeTransformer.scala
Scala
apache-2.0
1,611
/** * Copyright (C) 2009-2011 the original author or authors. * See the notice.md 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. * Yo...
dnatic09/scalate
scalate-core/src/main/scala/org/fusesource/scalate/filter/ScalaMarkdownFilter.scala
Scala
apache-2.0
1,436
/* * 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 ...
aosagie/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalog/v2/CatalogNotFoundException.scala
Scala
apache-2.0
1,107
/** * 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...
piavlo/operations-debs-kafka
core/src/main/scala/kafka/server/KafkaServerStartable.scala
Scala
apache-2.0
1,526
/* * 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...
pncampbell/ct-calculations
src/main/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/AC121A.scala
Scala
apache-2.0
1,545
package tabula import Tabula._ import shapeless._ import shapeless.ops.hlist._ /** A column that has a name, most commonly produced by calling the * `[[Column.@@]]` method on a column. */ class NamedColumn[F, T, C, Col](val name: Cell[String], val underlying: Col)( implicit ev: Col <:< Column[F, T, C]) ex...
maxaf/tabula
core/src/main/scala/tabula/NamedColumn.scala
Scala
mit
1,092
package scalasthlm.jms import javax.jms.ConnectionFactory import akka.NotUsed import akka.actor.ActorSystem import akka.stream.ActorMaterializer import akka.stream.alpakka.jms.JmsSinkSettings import akka.stream.alpakka.jms.scaladsl.JmsSink import akka.stream.scaladsl.{Sink, Source} class BaseTrait { implicit val a...
ScalaSthlm/alpakka-integration-patterns
module-template/src/main/scala/scalasthlm/template/BaseTrait.scala
Scala
apache-2.0
518
package me.yingrui.segment.core import org.junit.Assert._ import org.junit.Test class SegmentResultTest { @Test def should_return_original_index_of_word { val segmentResult = SegmentWorker( "segment.lang.en" -> "true", "segment.lang.en.stemming" -> "true").segment("我们,He loves us!") println(s...
yingrui/mahjong
lib-segment/src/test/scala/me/yingrui/segment/core/SegmentResultTest.scala
Scala
gpl-3.0
978
package com.emotioncity.soriento import com.orientechnologies.orient.core.command.OCommandRequest import com.orientechnologies.orient.core.db.ODatabaseRecordThreadLocal import com.orientechnologies.orient.core.db.document.{ODatabaseDocument, ODatabaseDocumentTx} import com.orientechnologies.orient.core.record.impl.ODo...
b0c1/Soriento
src/main/scala/com/emotioncity/soriento/RichODatabaseDocumentImpl.scala
Scala
apache-2.0
2,384
package scalan.it import scalan._ import scalan.compilation.{GraphVizConfig, Compiler} import scalan.util.FileUtil import scalan.util.FileUtil.file // extracted so it can be used with different suite styles trait ItTestsUtil[Prog <: Scalan] extends TestsUtil { override def testOutDir = "it-out" // can be overrid...
scalan/scalan
core/src/test/scala/scalan/it/ItTestsUtil.scala
Scala
apache-2.0
11,222
package co.ledger.wallet.core.wallet.ripple.api import co.ledger.wallet.core.device.utils.{EventEmitter, EventReceiver} import co.ledger.wallet.core.net.{WebSocket, WebSocketFactory} import co.ledger.wallet.core.wallet.ripple.XRP import co.ledger.wallet.core.wallet.ripple.events.{NewBlock, NewTransaction} import co.le...
LedgerHQ/ledger-wallet-ripple
src/main/scala/co/ledger/wallet/core/wallet/ripple/api/WebSocketRipple.scala
Scala
mit
10,478
package BIDMach.models import BIDMat.{Mat,SBMat,CMat,DMat,FMat,IMat,HMat,GMat,GIMat,GSMat,SMat,SDMat} import BIDMat.MatFunctions._ import BIDMat.SciFunctions._ import BIDMach.datasources._ import BIDMach.updaters._ import BIDMach._ import java.text.NumberFormat import edu.berkeley.bid.CUMACH._ import scala.collection...
ypkang/BIDMach
src/main/scala/BIDMach/models/BayesNet.scala
Scala
bsd-3-clause
28,204
package controllers.s_employment import play.api.Play._ import scala.language.reflectiveCalls import play.api.mvc.Controller import play.api.data.Form import play.api.data.Forms._ import models.view.{Navigable, CachedClaim} import models.domain.{BeenEmployed, PensionAndExpenses} import utils.helpers.CarersForm._ impo...
Department-for-Work-and-Pensions/ClaimCapture
c3/app/controllers/s_employment/GPensionAndExpenses.scala
Scala
mit
5,260
/* Copyright 2012 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
tresata/scalding
scalding-parquet/src/main/scala/com/twitter/scalding/parquet/thrift/ParquetThrift.scala
Scala
apache-2.0
4,826
// Generated by the Scala Plugin for the Protocol Buffer Compiler. // Do not edit! // // Protofile syntax: PROTO2 package com.google.protobuf.descriptor /** Describes the relationship between generated code and its original source * file. A GeneratedCodeInfo message is associated with only one generated * source ...
trueaccord/ScalaPB
scalapb-runtime/src/main/scalajs/com/google/protobuf/descriptor/GeneratedCodeInfo.scala
Scala
apache-2.0
19,393
package com.lljv.analytics.hadoopengine import java.util.HashMap import org.apache.kafka.clients.consumer.ConsumerRecord import org.apache.kafka.clients.producer.{KafkaProducer, ProducerConfig, ProducerRecord} import org.apache.spark.streaming.dstream.InputDStream import org.apache.spark.streaming.dstream.DStream impo...
dotdeb/Science-Finder
Analytics/HadoopEngine/src/main/scala/com/lljv/analytics/hadoopengine/KafkaEngine.scala
Scala
apache-2.0
5,081
package troy.tast sealed trait SimpleSelection object SimpleSelection { sealed trait ColumnName[columnName <: Identifier] extends SimpleSelection sealed trait ColumnNameOf[columnName <: Identifier, term <: Term] extends SimpleSelection sealed trait ColumnNameDot[columnName <: Identifier, fieldName <: String] ext...
schemasafe/troy
typelevel-ast/src/main/scala/troy/tast/SimpleSelection.scala
Scala
apache-2.0
343
/***************************************************************************************** * Copyright 2017 Capital One Services, LLC and Bitwise, 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 ...
capitalone/Hydrograph
hydrograph.engine/hydrograph.engine.spark/src/main/scala/hydrograph/engine/spark/components/InputTeradataComponent.scala
Scala
apache-2.0
6,730
/* Copyright 2009-2016 EPFL, Lausanne */ package leon package xlang import leon.purescala.Common._ import leon.purescala.Definitions._ import leon.purescala.Expressions._ import leon.purescala.Extractors._ import leon.purescala.Constructors._ import leon.purescala.ExprOps._ import leon.purescala.TypeOps.leastUpperBou...
regb/leon
src/main/scala/leon/xlang/ImperativeCodeElimination.scala
Scala
gpl-3.0
17,364
package kpi.twitter.analysis import com.typesafe.config.{Config, ConfigFactory} package object utils { /** * kpi.twitter.analysis.BuildInfo class is auto generated before * compilation phase by all other modules that depend on this one. */ lazy val buildInfo = Class.forName("kpi.twitter.analysis.Buil...
GRpro/TwitterAnalytics
lib/utils/src/main/scala/kpi/twitter/analysis/utils/package.scala
Scala
apache-2.0
1,562
/* * Copyright (C) 2015 Language Technology Group * * 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. * * ...
tudarmstadt-lt/newsleak
common/src/test/scala/model/queryable/impl/RelationshipQueryableImplTest.scala
Scala
agpl-3.0
2,362
/* * Copyright 2015 Simin You * * 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 ...
manueltimita/SpatialSpark
src/main/scala/spatialspark/partition/udp/UserDefinedPartition.scala
Scala
apache-2.0
790
package org.dmonix.area51.akka.extension import java.util.concurrent.atomic.AtomicLong import akka.actor.{Actor, ActorSystem, ExtendedActorSystem, Extension, ExtensionId, ExtensionIdProvider, Props} object DummyExtension extends ExtensionId[DummyExtension] with ExtensionIdProvider { //The lookup method is req...
pnerg/area51-akka
src/main/scala/org/dmonix/area51/akka/extension/DummyExtension.scala
Scala
apache-2.0
2,146
package hasheq import org.scalacheck.Properties import org.scalatest.FunSuite import org.scalatest.prop.Checkers trait TestSuite extends FunSuite with Checkers { protected def checkAll(props: Properties): Unit = for ((name, prop) <- props.properties) { test(name) { check(prop) } } }
TomasMikula/hasheq
src/test/scala/hasheq/TestSuite.scala
Scala
bsd-3-clause
303