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 2015 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/rest/node/NodeAPI6.scala
Scala
gpl-3.0
3,980
/* * 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-eval/src/test/scala/com/netflix/atlas/eval/graph/GrapherSuite.scala
Scala
apache-2.0
18,802
package org.sbuild.plugins.http import java.io.File import java.io.FileNotFoundException import java.net.URL import org.sbuild.internal.I18n import org.sbuild.Path import org.sbuild.SchemeResolver import org.sbuild.SchemeHandler import org.sbuild.SchemeHandler.SchemeContext import org.sbuild.TargetContext import org.s...
SBuild-org/sbuild-http-plugin
org.sbuild.plugins.http/src/main/scala/org/sbuild/plugins/http/HttpSchemeHandler.scala
Scala
apache-2.0
3,138
@main def hello: Unit = { val x: Formatt.ToFormat['a' *: EmptyTuple] = "" }
dotty-staging/dotty
tests/pos/i11393/Test_2.scala
Scala
apache-2.0
81
/* * 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 ...
DieBauer/flink
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/calcite/FlinkRelBuilder.scala
Scala
apache-2.0
3,585
package controllers import java.util.concurrent.TimeoutException import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future import scala.concurrent.duration.DurationInt import javax.inject.Inject import javax.inject.Singleton import models.Gallery import play.api.Logger import play.api.i1...
carlosFattor/DoceTentacaoScala
app/controllers/GalleryControl.scala
Scala
apache-2.0
3,357
package sk.scalagine.math /** * Created with IntelliJ IDEA. * User: zladovan * Date: 13.09.14 * Time: 23:15 */ object MatrixImplicitConversions { final implicit def matrixToMatrix2x2(m: Matrix[Vector2, Vector2]): Matrix2x2 = new Matrix2x2( m.data(0)(0), m.data(0)(1), m.data(1)(0), m.data(1)(1))...
zladovan/scalagine
engine/math/src/main/scala/sk/scalagine/math/MatrixImplicitConversions.scala
Scala
mit
917
/* * 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 ...
ArvinDevel/onlineAggregationOnSparkV2
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetAvroCompatibilitySuite.scala
Scala
apache-2.0
8,726
package org.jetbrains.plugins.scala package actions import java.util.Properties import com.intellij.ide.IdeView import com.intellij.ide.actions.{CreateFileFromTemplateDialog, CreateTemplateInPackageAction} import com.intellij.ide.fileTemplates.{FileTemplate, FileTemplateManager, JavaTemplateUtil} import com.intellij.o...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/actions/NewScalaTypeDefinitionAction.scala
Scala
apache-2.0
7,978
package com.davidlukac.learn.scala /** * Created by davidlukac on 24/03/16. */ object LearnScalaRunner { def main(args: Array[String]) { LogicalFunctions.main(Array()) MathFunctions.main(Array()) } }
davidlukac/learning-scala
src/main/scala/com/davidlukac/learn/scala/LearnScalaRunner.scala
Scala
mit
219
package io.scalajs.nodejs.readline import io.scalajs.RawOptions import io.scalajs.nodejs.events.IEventEmitter import scala.scalajs.js import scala.scalajs.js.annotation.JSImport import scala.scalajs.js.| /** * Readline allows reading of a stream (such as process.stdin) on a line-by-line basis. * To use this modu...
scalajs-io/nodejs
app/common/src/main/scala/io/scalajs/nodejs/readline/Readline.scala
Scala
apache-2.0
1,941
/* Copyright (c) 2013-2016 Karol M. Stasiak 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, publish, distr...
KarolS/units
units/src/main/scala/io/github/karols/units/WithU.scala
Scala
mit
3,761
/* * Copyright 2022 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/http-verbs
http-verbs-common/src/main/scala/uk/gov/hmrc/http/package.scala
Scala
apache-2.0
879
/* * Copyright (C) 2014-2015 Really Inc. <http://really.io> */ package io.really.gorilla import akka.actor.Props import akka.testkit.{ EventFilter, TestProbe, TestActorRef } import _root_.io.really._ import _root_.io.really.gorilla.SubscriptionManager.{ UpdateSubscriptionFields, Unsubscribe } import _root_.io.really....
reallylabs/really
modules/really-core/src/test/scala/io/really/gorilla/ObjectSubscriberSpec.scala
Scala
apache-2.0
21,469
/* * scala-swing (https://www.scala-lang.org) * * Copyright EPFL, Lightbend, Inc., contributors * * 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...
scala/scala-swing
src/main/scala/scala/swing/ButtonGroup.scala
Scala
apache-2.0
1,506
package mappings.common object ErrorCodes { // val MicroServiceErrorCode = "PR001" val PostcodeMismatchErrorCode = "PR002" val VrmLockedErrorCode = "PR003" }
dvla/vrm-retention-online
app/mappings/common/ErrorCodes.scala
Scala
mit
163
/* * 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 ...
jstanier/zipkin
zipkin-web/src/test/scala/com/twitter/zipkin/web/QueryExtractorTest.scala
Scala
apache-2.0
3,437
package org.template.recommendation import org.apache.predictionio.controller.PPreparator import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.rdd.RDD import scala.io.Source // ADDED import org.apache.predictionio.controller.Params // ADDED // ADDED CustomPreparatorPar...
alex9311/PredictionIO
examples/scala-parallel-recommendation/custom-prepartor/src/main/scala/Preparator.scala
Scala
apache-2.0
894
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
gioenn/xSpark
sql/core/src/test/scala/org/apache/spark/sql/execution/columnar/compression/CompressionSchemeBenchmark.scala
Scala
apache-2.0
16,714
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 b...
hpe-cct/cct-core
src/main/scala/cogx/cogmath/collection/IdentityHashSet.scala
Scala
apache-2.0
1,381
package datacollector import java.io.File import java.util.concurrent.TimeUnit import akka.actor.{ Props, ActorRef, ActorPath, Actor } import akka.actor.Actor.Receive import akka.event.Logging import datacollector.HeartBeatActor.{ Start, HeartBeatRequest, HeartBeat } import scala.concurrent.duration.FiniteDuration ...
emrecelikten/foursquare-data-collector
src/main/scala/datacollector/HeartBeatActor.scala
Scala
gpl-3.0
2,028
/* * Shadowsocks - A shadowsocks client for Android * Copyright (C) 2014 <[email protected]> * * 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 y...
tenwx/shadowsocks-android
src/main/scala/com/github/shadowsocks/ShadowsocksApplication.scala
Scala
gpl-3.0
4,517
/* * Copyright 2017 Datamountaineer. * * 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...
datamountaineer/stream-reactor
kafka-connect-coap/src/main/scala/com/datamountaineer/streamreactor/connect/coap/connection/CoapManager.scala
Scala
apache-2.0
1,514
package spark.deploy.master private[spark] object WorkerState extends Enumeration("ALIVE", "DEAD", "DECOMMISSIONED") { type WorkerState = Value val ALIVE, DEAD, DECOMMISSIONED = Value }
koeninger/spark
core/src/main/scala/spark/deploy/master/WorkerState.scala
Scala
bsd-3-clause
192
class Hamming(strand1: String, strand2: String) { require(strand1.length == strand2.length) def distance = commonPairs.count { case (a, b) => a != b } private def commonPairs = strand1.zip(strand2) } object Hamming { def compute(strand1: String, strand2: String) = new Hamming(strand1, strand2).di...
nlochschmidt/xscala
hamming/example.scala
Scala
mit
329
package shapeless.datatype.mappable import shapeless._ import shapeless.labelled.FieldType import scala.language.higherKinds trait ToMappable[L <: HList, M] extends Serializable { def apply(l: L): M } trait LowPriorityToMappable1 { implicit def hconsToMappable1[K <: Symbol, V, T <: HList, M](implicit wit: W...
nevillelyh/shapeless-datatype
core/src/main/scala/shapeless/datatype/mappable/ToMappable.scala
Scala
apache-2.0
3,489
package org.jetbrains.plugins.hocon.lexer import com.intellij.psi.TokenType import com.intellij.psi.tree.IElementType import org.jetbrains.plugins.hocon.lang.HoconLanguage sealed class HoconTokenType(debugString: String) extends IElementType(debugString, HoconLanguage) object HoconTokenType extends TokenType { va...
ilinum/intellij-scala
src/org/jetbrains/plugins/hocon/lexer/HoconTokenType.scala
Scala
apache-2.0
1,420
/* * Copyright (C) 2005, The Beangle Software. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This...
beangle/ems
core/src/main/scala/org/beangle/ems/core/user/event/event.scala
Scala
lgpl-3.0
1,492
/** * 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...
eribeiro/kafka
core/src/main/scala/kafka/coordinator/GroupMetadataManager.scala
Scala
apache-2.0
46,660
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller, Vishnu Gowda Harish * @version 1.3 * @date Tue Mar 8 18:30:36 EST 2016 * @see LICENSE (MIT style license file). */ package testing.linalgebra import org.junit.Test import scala.math.{abs, max, m...
NBKlepp/fda
scalation_1.3/scalation_mathstat/src/test/scala/testing/linalgebra/RleVectorD_T.scala
Scala
mit
11,083
def foo[A <% String : Manifest](x: Int = 45) = x foo[Int]()(<caret>) // implicit ev$1: Int => String, ev$2: Manifest[Int]
triplequote/intellij-scala
scala/scala-impl/testdata/parameterInfo/functionParameterInfo/simple/SyntheticParameter.scala
Scala
apache-2.0
122
/* * Copyright 2016 Guy Van den Broeck and Wannes Meert (UCLA and KU Leuven) * * 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 * * Un...
UCLA-StarAI/Forclift
src/main/scala/edu/ucla/cs/starai/forclift/languages/focnf/FOCNF.scala
Scala
apache-2.0
8,387
package sp.domain.logic import play.api.libs.json._ import scala.util.Try import java.time._ import sp.domain._ /** * To use the attributes, you also need to include the json formaters * import sp.domain.Logic._ to get it all */ object AttributeLogic extends AttributeLogics trait AttributeLogics { // Attribu...
sequenceplanner/sp-domain
src/main/scala/sp/domain/logic/AttributeLogic.scala
Scala
mit
3,044
package it.polimi.genomics.core.DataStructures.MetaJoinCondition /** * generic trait for [[MetaJoinCondition]] attributes */ sealed trait AttributeEvaluationStrategy /** * Default evaluation, two attributes match if both end * with [[attribute]] . * * @param attribute the attribute name [prefix.]* name ...
DEIB-GECO/GMQL
GMQL-Core/src/main/scala/it/polimi/genomics/core/DataStructures/MetaJoinCondition/MetaJoinCondition.scala
Scala
apache-2.0
1,531
package chapter19 /** * 19.5 하위 바운드 * * Queue[T] 를 Queue[+T]로 만들 수 없는데, 그 이유는 T는 enqueue 메소드의 파라미터 타입인데, * 그 위치는 부정적인 위치이기 때문이다. * * enqueue를 다형성으로 더 일반화하고, 타입 파라미터에 하위바운드(lower bound)를 사용하는 것이다. * * U >: T * T를 U의 하위바운드로 지정. 따라서 U는 T의 슈퍼타입이어야만 한다. * 즉 U가 Any 일 때, T는 String, Int 등 다 된다는 것이다. * * 이는 타입 ...
seraekim/srkim-lang-scala
src/main/java/chapter19/c19_i05.scala
Scala
bsd-3-clause
1,945
/* * Copyright (c) 2011, Daniel Spiewak * 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 of cond...
djspiewak/anti-xml
src/main/scala/com/codecommit/antixml/util/vectorCases.scala
Scala
bsd-3-clause
11,992
/* * 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 ...
bdrillard/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/ui/SQLAppStatusListenerSuite.scala
Scala
apache-2.0
23,932
import annotation.Annotation object Test3 { class E[T >: Nothing <: String](s: T) extends Annotation class B // val a = new E[B](new B) @E[B](new B) val b = "hi" } object Test4 { class E[T <: String](s: T) extends Annotation class B val b: String @E[B](new B) = "hi" }
yusuke2255/dotty
tests/untried/neg/t935.scala
Scala
bsd-3-clause
285
package scala.slick.compiler import scala.slick.ast._ import Util.nodeToNodeOps import TypeUtil._ /** For SQL back-ends which do not support real boolean types for fields and * general expressions but which do have special boolean expressions and * operators, this phase injects conversions between fake and real b...
nuodb/slick
src/main/scala/scala/slick/compiler/RewriteBooleans.scala
Scala
bsd-2-clause
2,839
package smtlib package theories import trees.Terms._ import Operations._ object Ints { object IntSort { def apply(): Sort = { Sort(Identifier(SSymbol("Int"))) } def unapply(sort: Sort): Boolean = sort match { case Sort(Identifier(SSymbol("Int"), Seq()), Seq()) => true case _ => false...
regb/scala-smtlib
src/main/scala/smtlib/theories/Ints.scala
Scala
mit
1,708
package io.continuum.bokeh trait FillProps { self: HasFields with Vectorization => object fill_color extends Vectorized[Color](Color.Gray) object fill_alpha extends Vectorized[Percent](1.0) } trait LineProps { self: HasFields with Vectorization => object line_color extends Vectorized[Color](Color.Black) ...
bokeh/bokeh-scala
bokeh/src/main/scala/Mixins.scala
Scala
mit
1,031
/** * Copyright 2011-2017 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
MykolaB/gatling
src/sphinx/session/code/Feeders.scala
Scala
apache-2.0
4,949
/** * 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...
mohiva/silhouette
modules/authenticator/src/main/scala/silhouette/authenticator/format/SatReads.scala
Scala
apache-2.0
2,176
/* * 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/testng/example/ExampleTestNGSuite.scala
Scala
apache-2.0
1,998
/** * 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 ...
rnpandya/adam
adam-core/src/main/scala/org/bdgenomics/adam/rdd/ADAMContext.scala
Scala
apache-2.0
37,421
/* * 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/FlatSpecMixedInMatchersSpec.scala
Scala
apache-2.0
1,245
package phoenix.collection.immutable.trees import phoenix.collection.immutable.graphs.Graph /** * Created by Satya Prakash on 16/08/14. */ trait BinaryTree[+T] extends Tree[T]
Satyapr/data-structures-and-algorithms
Scala/src/phoenix/collection/immutable/trees/BinaryTree.scala
Scala
bsd-2-clause
179
/* * Copyright (c) 2011-2017 Interfaculty Department of Geoinformatics, University of * Salzburg (Z_GIS) & Institute of Geological and Nuclear Sciences Limited (GNS Science) * in the SMART Aquifer Characterisation (SAC) programme funded by the New Zealand * Ministry of Business, Innovation and Employment (MBIE) * ...
ZGIS/smart-portal-backend
app/models/owc/OwcStyleSetDAO.scala
Scala
apache-2.0
7,560
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/cypher/frontend-2.3/src/main/scala/org/neo4j/cypher/internal/frontend/v2_3/parser/BufferPosition.scala
Scala
apache-2.0
1,323
// See LICENSE.txt for license details. package templates import chisel3.iotesters.{PeekPokeTester, Driver, ChiselFlatSpec} /** * SingleCounter test harness */ class SingleCounterTests(c: SingleCounter) extends PeekPokeTester(c) { // def check(wire: Any, value: Any, printon: Bool) { // val a = peek(wire) ...
stanford-ppl/spatial-lang
spatial/core/resources/chiselgen/template-level/tests/templates/Counter.scala
Scala
mit
10,321
object T1 { trait T[A] class C extends T[String] object Test { def main(args: Array[String]): Unit = { classOf[C].getTypeParameters } } } object T2 { trait T[A] class C extends T[String] object Test { def main(args: Array[String]): Unit = { val x = classOf[C] x.getTypeParame...
loskutov/intellij-scala
testdata/scalacTests/pos/t4305.scala
Scala
apache-2.0
523
package progscala2.traits.ui /** * Created by younggi on 11/11/16. */ abstract class Widget
younggi/books
programming_scala/progscala2/src/main/scala/progscala2/traits/ui/Widget.scala
Scala
mit
95
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
sebadiaz/kafka
core/src/main/scala/kafka/zookeeper/ZooKeeperClient.scala
Scala
apache-2.0
21,988
package models.util import org.squeryl.dsl.GroupWithMeasures import play.api.libs.json.{Json, JsValue} trait GroupMeasureConversion { def toMap[A](groupMeasure:List[GroupWithMeasures[A,A]]):Map[A,A] = { groupMeasure.foldLeft(Map[A,A]()) { (prev,curr) => prev + (curr.key -> curr.measures) } } def...
haffla/stream-compare
app/models/util/GroupMeasureConversion.scala
Scala
gpl-3.0
745
/* Copyright 2016 ScalABM 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 distribu...
EconomicSL/agora
src/main/scala/org/economicsl/agora/markets/auctions/package.scala
Scala
apache-2.0
1,473
import akka.actor.{Props, ActorSystem} import akka.testkit.{ImplicitSender, TestKit} import com.frenchcoder.scalamones.elastic.ElasticJsonProtocol import com.frenchcoder.scalamones.elastic.Stat.NodesStat import com.frenchcoder.scalamones.service.KpiProvider import com.frenchcoder.scalamones.service.KpiProvider.{KpiNoti...
jpthomasset/scalamones
src/test/scala-2.11/KpiProviderSpec.scala
Scala
mit
2,788
package org.vitrivr.adampro.data.index.structures.ecp import org.apache.spark.sql.functions._ import org.apache.spark.sql.{DataFrame, Dataset} import org.vitrivr.adampro.config.AttributeNames import org.vitrivr.adampro.data.datatypes.TupleID.TupleID import org.vitrivr.adampro.data.datatypes.vector.Vector._ import org....
dbisUnibas/ADAMpro
src/main/scala/org/vitrivr/adampro/data/index/structures/ecp/ECPIndexGenerator.scala
Scala
mit
4,434
object Test extends dotty.runtime.LegacyApp { println(raw"[\\n\\t'${'"'}$$\\n]") }
folone/dotty
tests/run/rawstrings.scala
Scala
bsd-3-clause
82
/* * La Trobe University - Distributed Deep Learning System * Copyright 2016 Matthias Langer ([email protected]) * * 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.apa...
bashimao/ltudl
blaze/src/main/scala/edu/latrobe/blaze/batchpools/RetryOnException.scala
Scala
apache-2.0
3,518
/* * 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 ...
godfreyhe/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/logical/LogicalUnnestRule.scala
Scala
apache-2.0
4,826
/* * 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-rx/src/test/scala/wvlet/airframe/rx/RxOptionTest.scala
Scala
apache-2.0
3,967
package org.jetbrains.plugins.scala package lang package psi package impl package toplevel package typedef import com.intellij.lang.ASTNode import com.intellij.lang.java.lexer.JavaLexer import com.intellij.openapi.project.{DumbService, DumbServiceImpl, Project} import com.intellij.openapi.util.TextRange import com.int...
SergeevPavel/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/toplevel/typedef/ScObjectImpl.scala
Scala
apache-2.0
10,669
package edu.duke.oit.vw.models import edu.duke.oit.vw.utils._ import edu.duke.oit.vw.solr.Vivo import java.util.Date import java.text.SimpleDateFormat case class Gift(uri:String, vivoType: String, label: String, attributes:Option[Map[String, String]]) extends...
OIT-ADS-Web/vivo_widgets
src/main/scala/models/Gift.scala
Scala
bsd-3-clause
1,038
package org.refptr.iscala package tests import org.specs2.mutable.Specification class InterpreterSpec extends Specification with InterpreterUtil { sequential "Interpreter" should { import Results._ val Obj = "^([^@]+)@([0-9a-fA-F]+)$".r "support primitive values" in { in...
nkhuyu/IScala
src/test/scala/Interpreter.scala
Scala
mit
11,398
/* * Copyright (c) 2013 Scott Abernethy. * * 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...
scott-abernethy/opener-of-the-way
app/controllers/Gateways.scala
Scala
gpl-3.0
3,935
package com.sksamuel.elastic4s.http.index import com.sksamuel.elastic4s.JsonFormat import com.sksamuel.elastic4s.http.HttpExecutable import com.sksamuel.elastic4s.http.search.queries.QueryBuilderFn import com.sksamuel.elastic4s.indexes.{CreateIndexTemplateDefinition, DeleteIndexTemplateDefinition, GetIndexTemplateDefi...
FabienPennequin/elastic4s
elastic4s-http/src/main/scala/com/sksamuel/elastic4s/http/index/IndexTemplateImplicits.scala
Scala
apache-2.0
3,857
import sbt._ import Keys._ import PlayProject._ object ApplicationBuild extends Build { val appName = "submission" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq( "journalio" % "journalio" % "1.2" ) val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA...
lunatech-labs/lunatech-submission
project/Build.scala
Scala
apache-2.0
433
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.api.inject import java.util.concurrent.atomic.AtomicInteger import org.specs2.mutable.Specification import scala.collection.mutable import scala.concurrent.duration._ import scala.concurrent.{ Await, Future } class DefaultApp...
Shenker93/playframework
framework/src/play/src/test/scala/play/api/inject/DefaultApplicationLifecycleSpec.scala
Scala
apache-2.0
2,638
package exsplay.examples.user.rest.sync import exsplay.api.action.Action import spray.http.HttpMethods._ import exsplay.api.routing.Route /** * User: wert * Date: 21.07.13 * Time: 2:13 */ object Router { val routes: PartialFunction[Route, Action] = { case Route(GET, "v1" :: "users" :: id :: Nil) => R...
wertlex/exsplay
examples/src/main/scala/exsplay/examples/user/rest/sync/Router.scala
Scala
apache-2.0
612
/* * 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/core/src/main/scala/org/apache/spark/sql/SparkSessionExtensions.scala
Scala
apache-2.0
11,017
package example import common._ object Lists { /** * This method computes the sum of all elements in the list xs. There are * multiple techniques that can be used for implementing this method, and * you will learn during the class. * * For this example assignment you can use the following methods in ...
relyah/CourseraFunctionalProgramming
assignments/00gettingstarted/example/src/main/scala/example/Lists.scala
Scala
gpl-2.0
1,723
package com.fuscus.seien.appli.controller import com.fuscus.seien.appli.cont.{ FormCont, ActionCont } import com.fuscus.seien.infra.core.AppLogger import play.api.Logger import play.api.data.Form import play.api.libs.concurrent.Execution.Implicits.defaultContext import play.api.libs.json.JsValue import play.api.mvc._ ...
watawuwu/seien-backend
modules/appli/app/com/fuscus/seien/appli/controller/AppController.scala
Scala
mit
1,919
package com.github.maiflai import java.nio.file._ import org.sonar.api.batch.fs.InputFile package object sonar { type DiscoverXmlFiles = Path => Seq[Path] type ParseXmlFile = Path => TestSuiteResult type DiscoverScalaFile = TestClass => Option[InputFile] val discoverXmlFiles: DiscoverXmlFiles = path => {...
maiflai/sonar-scalatest
plugin/src/main/scala/com/github/maiflai/sonar/package.scala
Scala
unlicense
986
package mesosphere.marathon package core.task.tracker.impl import akka.Done import akka.actor.{ ActorRef, Status } import akka.event.EventStream import akka.testkit.TestProbe import ch.qos.logback.classic.Level import com.google.inject.Provider import mesosphere.AkkaUnitTest import mesosphere.marathon.core.CoreGuiceMo...
natemurthy/marathon
src/test/scala/mesosphere/marathon/core/task/tracker/impl/InstanceOpProcessorImplTest.scala
Scala
apache-2.0
20,664
/* * @author Philip Stutz * @author Mihaela Verman * * Copyright 2012 University of Zurich * * 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/li...
uzh/signal-collect
src/main/scala/com/signalcollect/worker/WorkerImplementation.scala
Scala
apache-2.0
27,721
package com.criteo.cuttle import java.sql.{Connection, PreparedStatement, ResultSet} import scala.concurrent.Future import cats.effect.IO import doobie.util.transactor.Transactor import org.mockito.Matchers._ import org.mockito.Mockito._ import org.scalatest.FunSuite import com.criteo.cuttle.ThreadPools.Implicits.sid...
criteo/cuttle
core/src/test/scala/com/criteo/cuttle/ExecutorSpec.scala
Scala
apache-2.0
6,150
package breeze.linalg import breeze.linalg.support._ import breeze.generic.UFunc.{InPlaceImpl, UImpl, InPlaceImpl2, UImpl2} /** * Class for classes that are broadcasting their columns. * That is denseMatrix(::, *) /= denseVector * @param underlying the tensor (or equivalent) being broadcasted * @tparam T the type...
wavelets/breeze
src/main/scala/breeze/linalg/BroadcastedColumns.scala
Scala
apache-2.0
3,905
package com.peterpotts.mobius import scala.math.BigDecimal.RoundingMode case class Matrix(left: Vector, right: Vector) { lazy val transpose = Matrix(Vector(left.top, right.top), Vector(left.bottom, right.bottom)) lazy val determinant = left.top * right.bottom - left.bottom * right.top lazy val spin = determinan...
peterpotts/mobius
src/main/scala/com/peterpotts/mobius/Matrix.scala
Scala
mit
1,923
/* * 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 ...
minixalpha/spark
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIService.scala
Scala
apache-2.0
4,320
class C1 { def a {} case class A } class C2 extends C1 { def b {} case class B } class C3 extends C2 { def c {} case class C println(/* line: 2 */a) println(/* line: 7 */b) println(/* line: 12 */c) println(super./* line: 2 */a) println(super./* line: 7 */b) println(super./* resolved: false *...
LPTK/intellij-scala
testdata/resolve2/inheritance/super/multiple/Class.scala
Scala
apache-2.0
764
package org.bitcoins.script.crypto import org.scalatest.{MustMatchers, FlatSpec} /** * Created by chris on 1/8/16. */ class CryptoOperationsFactoryTest extends FlatSpec with MustMatchers { "CryptoOperationsFactory" must "match strings with crypto operations" in { CryptoOperation.fromString("OP_CHECKSIG") mus...
Christewart/scalacoin
src/test/scala/org/bitcoins/script/crypto/CryptoOperationsFactoryTest.scala
Scala
mit
549
package com.tdl.study.scala /** * 特质 */ object Func003 { trait Ord { def < (that: Any): Boolean def <= (that: Any): Boolean = (this < that) || (this == that) def > (that: Any): Boolean = !(this <= that) def >= (that: Any): Boolean = !(this < that) } class Date(y: Int, m: Int, d: Int) extends...
taideli/study-parent
study-scala/src/test/scala/com/tdl/study/scala/Func003.scala
Scala
gpl-3.0
921
package rsce.entity import java.util.concurrent.ConcurrentHashMap import com.google.inject.Guice import rsce.entity.traits.Networked class World { val networkedEntities = new ConcurrentHashMap[Int, Entity with Networked] def getNetworkedEntity(id : Int) = networkedEntities.get(id) def addNetworkedEntity(enti...
Joe0/RSC-Emulator
src/main/scala/rsce/entity/World.scala
Scala
mit
471
package skinny.controller import org.scalatra.test.scalatest._ import org.scalatra.{ FutureSupport, AsyncResult } import scala.concurrent.{ Await, Future, ExecutionContext } import scala.concurrent.duration._ import scala.language.postfixOps // on Scala 2.10.0 ScalaTest #equal matcher with inner case classes works bu...
BlackPrincess/skinny-framework
framework/src/test/scala/skinny/controller/JSONFeatureSpec.scala
Scala
mit
5,386
/* * 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 agree...
eirslett/zipkin
zipkin-collector-service/config/collector-cassandra.scala
Scala
apache-2.0
1,165
/** * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ ...
CucumisSativus/rpgRollerBackend
functionalTest/src/main/scala/io/swagger/client/model/CreateCombatParameters.scala
Scala
mit
418
package com.datawizards.sparklocal.rdd import com.datawizards.sparklocal.SparkLocalBaseTest import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class CountTest extends SparkLocalBaseTest { test("Count result") { assert(RDDAPI(Seq(1,2,3)).count() == 3) } te...
piotr-kalanski/spark-local
src/test/scala/com/datawizards/sparklocal/rdd/CountTest.scala
Scala
apache-2.0
430
/* * Copyright 2001-2008 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...
yyuu/scalatest
src/main/scala/org/scalatest/tools/StandardOutReporter.scala
Scala
apache-2.0
1,260
/* * Copyright © 2014 TU Berlin ([email protected]) * * 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 app...
emmalanguage/emma
emma-flink/src/test/scala/org/emmalanguage/compiler/opt/FlinkSpecializeLoopsSpec.scala
Scala
apache-2.0
9,399
package im.tox.antox.utils import java.util import android.content.{BroadcastReceiver, Context, Intent} import android.net.{NetworkInfo, ConnectivityManager} import android.preference.PreferenceManager import im.tox.antox.tox.ToxSingleton import scala.collection.JavaConversions._ trait ConnectionTypeChangeListener ...
Ansa89/Antox
app/src/main/scala/im/tox/antox/utils/ConnectionManager.scala
Scala
gpl-3.0
1,828
package org.mitre.mandolin.mlp.spark import org.mitre.mandolin.mlp._ import org.mitre.mandolin.optimize.spark.DistributedOnlineOptimizer import org.mitre.mandolin.optimize.Updater import org.apache.spark.SparkContext import org.apache.spark.AccumulatorParam object DistributedMMLPOptimizer { def getDistributedOptim...
project-mandolin/mandolin
mandolin-spark/src/main/scala/org/mitre/mandolin/mlp/spark/DistributedMMLPOptimizer.scala
Scala
apache-2.0
4,419
package org.retistruen.view import org.joda.time.Seconds._ import org.joda.time.Minutes._ import org.retistruen.jmx.JMX import org.retistruen._ import org.retistruen.instrument.reduce.Max import akka.actor.ActorSystem class MyModel(override val actorSystem: ActorSystem) extends Model("mymodel")(actorSystem) with JMX ...
plalloni/retistruen
src/test/scala/org/retistruen/view/ShowModel.scala
Scala
mit
1,775
package com.plasmaconduit.framework import com.plasmaconduit.edge.http._ import io.netty.buffer.{Unpooled, ByteBuf} import io.netty.handler.codec.http.Cookie trait HttpRequest[R <: HttpRequest[R]] { self => val method: HttpMethod val version: HttpVersion val uri: String val path: String val queryString...
plasmaconduit/plasmaconduit-framework
src/main/scala/com/plasmaconduit/framework/HttpRequest.scala
Scala
mit
2,881
/* * Copyright 2008-present MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
rozza/mongo-scala-driver
driver/src/main/scala/org/mongodb/scala/gridfs/helpers/AsynchronousChannelHelper.scala
Scala
apache-2.0
2,694
package org.psliwa.idea.composerJson.intellij.codeAssist import javax.swing.Icon import com.intellij.codeInsight.completion.{InsertHandler, InsertionContext} import com.intellij.codeInsight.lookup.{LookupElement, LookupElementPresentation, LookupValueWithPriority} import com.intellij.psi.PsiElement final private[cod...
psliwa/idea-composer-plugin
src/main/scala/org/psliwa/idea/composerJson/intellij/codeAssist/BaseLookupElement.scala
Scala
mit
2,198
package gsd.linux.cnf import org.sat4j.tools.xplain.Xplain import org.sat4j.minisat.SolverFactory import collection.JavaConversions import org.sat4j.specs.{IConstr, ISolver} import collection.mutable.HashMap trait XplainSupport extends SATSolver[Xplain[ISolver]] { this: ConstraintMap => import JavaConversions._ ...
leutheus/linux-variability-analysis-tools.fm-translation
src/main/scala/gsd/linux/cnf/XplainSupport.scala
Scala
lgpl-3.0
645
package playground.spray import akka.actor.{ActorSystem, Actor, Props} import akka.pattern.ask import akka.util.Timeout import spray.routing.SimpleRoutingApp import scala.concurrent.duration._ import scala.util._ object PersonRepository { case class Person(name: String, age: Int) /* ==== Messages ==== */ ca...
ataraxer/spray-playground
src/main/scala/REST.scala
Scala
mit
2,128
/******************************************************************************* * 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 Licens...
capitalone/Hydrograph
hydrograph.engine/hydrograph.engine.spark/src/main/scala/hydrograph/engine/spark/components/adapter/S3FileTransferAdapter.scala
Scala
apache-2.0
1,995
package bifrost import akka.actor.ActorRef import bifrost.blocks.BifrostBlock import bifrost.forging.{Forger, ForgingSettings} import bifrost.scorexMod.GenericNodeViewHolder import bifrost.LocalInterface import bifrost.transaction.bifrostTransaction.BifrostTransaction import bifrost.transaction.box.proposition.ProofOf...
Topl/Project-Bifrost
src/main/scala/bifrost/BifrostLocalInterface.scala
Scala
mpl-2.0
2,844
package filodb.memory.format.vectors import java.nio.ByteBuffer import debox.Buffer import spire.syntax.cfor._ import filodb.memory.{BinaryRegion, MemFactory} import filodb.memory.format._ import filodb.memory.format.BinaryVector.BinaryVectorPtr import filodb.memory.format.Encodings._ import filodb.memory.format.Mem...
tuplejump/FiloDB
memory/src/main/scala/filodb.memory/format/vectors/DoubleVector.scala
Scala
apache-2.0
23,580