code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package barbedwire import scala.lms.common._ import scala.lms.internal.Effects import lms._ import lms.util._ import lms.testutil.FileDiffSpec import java.io.PrintWriter import java.io.StringWriter import java.io.FileOutputStream /** * Basic test suite for foldleft */ trait StreamProg extends Streams with...
manojo/staged-fold-fusion
src/test/scala/barbedwire/StreamSuite.scala
Scala
mit
7,232
package week01.json case class JStr(str: String) extends JSON { }
juliocnsouzadev/scala_datascience
functional_program_design_in_scala/functional_program_design_in_scala/src/week01/json/JStr.scala
Scala
mit
69
/* * 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 ...
trueyao/spark-lever
mllib/src/main/scala/org/apache/spark/ml/impl/estimator/Predictor.scala
Scala
apache-2.0
8,946
package com.enkidu.lignum.parsers.ast.statement.declaration.initializers import com.enkidu.lignum.parsers.ast.statement.Block case class StaticInitializerDeclaration(block: Block) extends InitializerDeclaration { override def dispatch(visitor: Visitor): Unit = { block.dispatch(visitor) apply(visitor) } } ...
marek1840/java-parser
src/main/scala/com/enkidu/lignum/parsers/ast/statement/declaration/initializers/StaticInitializerDeclaration.scala
Scala
mit
321
package scaladex.data package maven import java.io.File import java.nio.file._ import java.util.Properties import scala.concurrent.Await import scala.concurrent.duration._ import scala.util.Try import com.typesafe.scalalogging.LazyLogging import org.apache.maven.model import org.apache.maven.model.Parent import org....
scalacenter/scaladex
modules/data/src/main/scala/scaladex/data/maven/PomsReader.scala
Scala
bsd-3-clause
2,874
/* - Coeus web framework ------------------------- * * Licensed under the Apache License, Version 2.0. * * Author: Spiros Tzavellas */ package com.tzavellas.coeus.http.security import javax.crypto.spec.IvParameterSpec /** * The default implementation of <code>CryptoProvider</code>. * * <p>For signing this im...
sptz45/coeus
src/main/scala/com/tzavellas/coeus/http/security/DefaultCryptoProvider.scala
Scala
apache-2.0
776
import org.scalatest.{Matchers, FlatSpec} import ru.biocad.ig.alicont.common.Scoring import ru.biocad.ig.alicont.conts.affine import ru.biocad.ig.common.resources.{MatrixLoader, MatrixTypes} /** * Created with IntelliJ IDEA. * User: pavel * Date: 22.04.14 * Time: 15:56 */ class AffineSemiglobalTest extends FlatSp...
zmactep/igcat
lib/ig-alicont/src/test/scala/AffineSemiglobalTest.scala
Scala
bsd-2-clause
1,318
package codecheck.github.transport.asynchttp19 import com.ning.http.client.{AsyncHttpClient, Response => AsyncHttpResponse, AsyncCompletionHandler} import codecheck.github.transport.{Transport, Request, Response, CompletionHandler} class AsyncHttp19Transport(client: AsyncHttpClient) extends Transport{ def prepare...
code-check/github-api-scala
src/main/scala/codecheck/github/transport/asynchttp19/AsyncHttp19Transport.scala
Scala
mit
1,794
package gui /** Note: Constraints is ugly and is a simple solution as to show basic theory rather than the perfect solution. **/ import java.text.SimpleDateFormat import java.util.ArrayList import java.util.Collections import java.util.Date import java.util.HashMap import scala.collection.JavaConversions.asScalaBuffe...
reqT/reqT-prototype-gui-constr
src/main/scala/gui/Constraints.scala
Scala
bsd-2-clause
27,457
/* * 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 ...
Quantiply/samza
samza-yarn/src/test/scala/org/apache/samza/job/yarn/TestSamzaAppMasterTaskManager.scala
Scala
apache-2.0
21,045
package controllers import play.api.data.Form import play.api.mvc._, Results._ import lila.api.Context import lila.app._ import lila.common.LilaCookie import views._ object Pref extends LilaController { private def api = Env.pref.api private def forms = Env.pref.forms def form = Auth { implicit ctx => me...
pavelo65/lila
app/controllers/Pref.scala
Scala
mit
1,968
package net.liftmodules.ng.test class I18nSpecs extends BaseSpec{ "The i18n-1name page" should "load" in { initialize("i18n-1name") } "The no-arg value on the i18n-1name page" should "be 'Howdy!'" in { id("no-params").element.text should be ("Howdy!") } "The 1-arg value on the i18n-1name page" shou...
extirpate/lift-ng
test-project/src/test/scala/net/liftmodules/ng/test/I18nSpecs.scala
Scala
apache-2.0
1,357
/* * Copyright 2021 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/help-frontend
app/uk/gov/hmrc/helpfrontend/config/ErrorHandler.scala
Scala
apache-2.0
1,254
/* Copyright 2017-19, Emmanouil Antonios Platanios. All Rights Reserved. * * 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 ...
eaplatanios/tensorflow_scala
modules/examples/src/main/scala/org/platanios/tensorflow/examples/RNNTutorialUsingPTB.scala
Scala
apache-2.0
5,605
package ch.uzh.cl.slmlib /** * Serialization related functionality. */ package object serialize { }
michtek/SLMLib
src/main/scala/ch/uzh/cl/slmlib/serialize/package.scala
Scala
apache-2.0
104
/* * Copyright (c) 2013 Elmar Athmer * * This file is part of SolarSystemGrandTour. * * SolarSystemGrandTour 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...
zauberpony/solarsystem-grand-tour
src/test/scala/net/aerospaceresearch/test/jplparser/ParserSpec.scala
Scala
gpl-3.0
5,976
package no.netcompany.testdatagen.generators.misc // Copyright (C) 2014 Lars Reed -- GNU GPL 2.0 -- see LICENSE.txt import org.junit.runner.RunWith import org.scalatest.FlatSpec import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class MarkovSpec extends FlatSpec { "The Markov generator INTERNAL...
lre-mesan/testdata
src/test/scala/no/netcompany/testdatagen/generators/misc/MarkovSpec.scala
Scala
gpl-2.0
2,003
/** * 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...
TiVo/kafka
core/src/test/scala/unit/kafka/server/IsrExpirationTest.scala
Scala
apache-2.0
10,592
//-*-coding:utf-8-*- // Generic N-dimensional Array base class package BIDMat import MatFunctions._ import java.util.Arrays import java.util.concurrent.atomic._ import java.nio.ByteBuffer import scala.concurrent.future import scala.collection.mutable.HashMap import scala.concurrent.ExecutionContext.Implicits.g...
phlip9/BIDMat
src/main/scala/BIDMat/ND.scala
Scala
bsd-3-clause
14,702
package edu.vanderbilt.hiplab.securema /** * Data Managers pre-process and submit encrypted data for computation * It runs Alice */ import java.io.{ObjectOutputStream, ObjectInputStream} import java.math.BigInteger import java.net.Socket import paillierp.Paillier import paillierp.key.PaillierPrivateThresholdKey i...
XieConnect/SecureMA
src/main/scala/edu/vanderbilt/hiplab/securema/Manager.scala
Scala
mit
7,249
package net.kogics.kojo.scenegraph.javafx import _root_.javafx.animation.AnimationTimer import _root_.javafx.application.Application import _root_.javafx.event.EventHandler import _root_.javafx.scene.canvas.Canvas import _root_.javafx.scene.input.MouseEvent import _root_.javafx.scene.paint.Color import _root_.javafx.s...
litan/kojo-scenegraph
src/net/kogics/kojo/scenegraph/javafx/FxAnimationMain.scala
Scala
gpl-3.0
2,880
package monocle.refined object all extends RefinedInstances trait RefinedInstances extends BitsInstances
japgolly/Monocle
refined/src/main/scala/monocle/refined/All.scala
Scala
mit
106
/** * File generated by the ThingML IDE * /!\Do not edit this file/!\ * In case of a bug in the generated code, * please submit an issue on our GitHub **/ package org.thingml.generated import org.thingml.generated._ import org.sintef.smac._ import scala.annotation.elidable import scala.annotation.elidable._ impor...
SINTEF-9012/TinyWebSockets
example/scala/WSClient/src/main/scala/org/thingml/generated/WSClient.scala
Scala
mit
20,802
package scala.android.dev.olivererxleben.de.helloscala import android.app.Activity import android.view.View case class TypedResource[T](id: Int) object TypedResource { implicit def view2typed(v: View) = new TypedViewHolder { def view = v } implicit def activity2typed(act: Activity) = new TypedActivityHolder { de...
olivererxleben/hello-scala-android
app/src/main/java/scala/android/dev/olivererxleben/de/helloscala/TypedResource.scala
Scala
mit
341
package io.leonard import play.api.libs.json.Format case class ClassMapping[A]( name: String, format: Format[A] )
leonardehrenfried/play-json-traits
src/main/scala/io/leonard/ClassMapping.scala
Scala
apache-2.0
120
import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context object Impls { def foo(c: Context)(x: c.Expr[Int]): c.Expr[Int] = { import c.universe._ val body = Apply(Select(x.tree, TermName("$plus")), List(Literal(Constant(1)))) c.Expr[Int](body) } def bar(c: Context)(x: c....
scala/scala
test/files/run/macro-basic-ma-mdmi/Impls_Macros_1.scala
Scala
apache-2.0
863
package de.tudresden.inf.lat.tabulas.table /** This is the default implementation of a table map. * */ case class TableMapImpl(mapOfTables: Map[String, Table]) extends TableMap { override val getTableIds: Seq[String] = mapOfTables.keySet.toSeq override val toString: String = { getTableIds.map(tableId => t...
julianmendez/tabulas
tabulas-core/src/main/scala/de/tudresden/inf/lat/tabulas/table/TableMapImpl.scala
Scala
apache-2.0
1,188
package com.wheaties.predicate.defined import com.wheaties.partials.PartialFunction2 class DefinedAt2[@specialized(Int,Long,Float,Double) -T1, @specialized(Int,Long,Float,Double) -T2, R](f: (T1, T2) => R, p: (T1, T2) => Boolean) extends PartialFunction2[T1, T2, R]{ import com.wheaties.predicate...
wheaties/Predicates
predicates/src/main/scala/com/wheaties/predicate/defined/DefinedAt2.scala
Scala
apache-2.0
1,481
/* * Happy Melly Teller * Copyright (C) 2013 - 2014, Happy Melly http://www.happymelly.com * * This file is part of the Happy Melly Teller. * * Happy Melly Teller 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 Fo...
HappyMelly/teller
app/models/database/AddressTable.scala
Scala
gpl-3.0
1,877
import org.specs2.mutable.Specification import org.specs2.specification.AfterAll import java.util.concurrent.Executors import fpinscala.parallelism.Nonblocking._ class NonblockingSpec extends Specification with AfterAll { val es = Executors.newCachedThreadPool def afterAll = es.shutdown val kvMap = Map(1 -> P...
yawaramin/fpinscala
exercises/src/test/scala/parallelism/NonblockingSpec.scala
Scala
mit
1,977
/** * Copyright 2015 Thomson Reuters * * 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...
nruppin/CM-Well
server/cmwell-grid/src/main/scala/k/grid/monitoring/GridMonitor.scala
Scala
apache-2.0
3,298
package models import play.api.libs.functional.syntax._ import play.api.libs.json.{JsPath, Writes} case class CruitedProduct(id: Long, code: String, price: Price) { def getTypeForDb: String = { code match { case CruitedProduct.CodeCvReview => CruitedPro...
PanzerKunst/redesigned-cruited.com-frontend
website/app/models/CruitedProduct.scala
Scala
gpl-3.0
1,615
package org.scalawag.timber.backend.receiver.formatter import org.scalawag.timber.api.Entry object MessageOnlyEntryFormatter extends EntryFormatter { override def format(value: Entry) = value.message.map(_.text).getOrElse("") }
scalawag/timber
timber-backend/src/main/scala/org/scalawag/timber/backend/receiver/formatter/MessageOnlyEntryFormatter.scala
Scala
apache-2.0
232
package physical trait Polygon { def centroid: GeoCoordinate def coordinates: Array[GeoCoordinate] def contains(coordinate: GeoCoordinate): Boolean def distance(coordinate: GeoCoordinate): Double def isWithinDistance(coordinate: GeoCoordinate, distance: Double): Boolean }
shawes/zissou
src/main/scala/physical/Polygon.scala
Scala
mit
290
/*********************************************************************** * Copyright (c) 2013-2022 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
locationtech/geomesa
geomesa-process/geomesa-process-vector/src/main/scala/org/locationtech/geomesa/process/transform/ArrowConversionProcess.scala
Scala
apache-2.0
12,165
package com.github.mjreid.flinkwrapper import play.api.libs.json.{JsPath, Reads} import play.api.libs.functional.syntax._ case class VertexMetrics( readBytes: Long, writeBytes: Long, readRecords: Long, writeRecords: Long ) object VertexMetrics { implicit val reads: Reads[VertexMetrics] = ( (JsPath \\ "...
mjreid/flink-rest-scala-wrapper
api/src/main/scala/com/github/mjreid/flinkwrapper/VertexMetrics.scala
Scala
apache-2.0
515
package org.jetbrains.plugins.scala.debugger.smartStepInto import com.intellij.debugger.SourcePosition import com.intellij.debugger.engine._ import com.intellij.psi.{PsiElement, PsiMethod} import com.intellij.util.Range import com.sun.jdi.{Location, Method} import org.jetbrains.annotations.Nullable import org.jetbrain...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/debugger/smartStepInto/ScalaBreakpointMethodFilter.scala
Scala
apache-2.0
4,667
package org.jetbrains.plugins.scala.testingSupport.scalatest.scala2_10.scalatest2_1_7 import org.jetbrains.plugins.scala.SlowTests import org.jetbrains.plugins.scala.testingSupport.scalatest.NestedSameNamesTest import org.junit.experimental.categories.Category /** * @author Roman.Shein * @since 17.01.2015. */ @Cat...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/testingSupport/scalatest/scala2_10/scalatest2_1_7/Scalatest2_10_2_1_7_NestedSameNamesTest.scala
Scala
apache-2.0
457
/** * 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...
scalate/scalate
scalate-jsp-converter/src/main/scala/org/fusesource/scalate/converter/JspConvert.scala
Scala
apache-2.0
4,396
/******************************************************************************* * Copyright (c) 2016 Andreas Wagner. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * ht...
MultiDeviceCTT/MCTT
MCTT-Translator/src/main/scala/mctt/emitter/scxml/SCXMLEmitter.scala
Scala
epl-1.0
4,255
/* * 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 ...
apache/incubator-datafu
datafu-spark/src/main/scala/spark/utils/overwrites/SparkPythonRunner.scala
Scala
apache-2.0
5,590
/* * 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
core/src/test/scala/org/apache/spark/util/ResetSystemProperties.scala
Scala
apache-2.0
2,748
/* * 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 ...
hortonworks-spark/cloud-integration
spark-cloud-integration/src/main/scala/org/apache/spark/cloudera/ParallelizedWithLocalityRDD.scala
Scala
apache-2.0
4,061
/* * Copyright 2014–2018 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...
jedesah/Quasar
mongodb/src/main/scala/quasar/physical/mongodb/execution.scala
Scala
apache-2.0
5,363
package org.nexbook.fix import org.nexbook.domain import org.nexbook.domain._ import org.nexbook.utils.Clock import quickfix.field.{OrdType, SenderCompID, Side} import quickfix.fix44.{Message, NewOrderSingle, OrderCancelRequest} /** * Created by milczu on 16.12.14. */ class FixOrderConverter(clock: Clock) { de...
milczarekIT/nexbook
src/main/scala/org/nexbook/fix/FixOrderConverter.scala
Scala
apache-2.0
1,434
package org.apache.spark.examples.sql.hive import java.io.File import org.apache.hadoop.conf._ import org.apache.hadoop.fs._ import org.apache.spark.sql._ import org.apache.spark.sql.hive.online.OnlineSQLConf._ import org.apache.spark.sql.hive.online.RandomSeed import scala.sys.process.Process /** * Usage: * * 1...
andrewor14/iolap
examples/src/main/scala/org/apache/spark/examples/sql/hive/TPCDSSuite.scala
Scala
apache-2.0
5,017
/* * 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/ACQ5034.scala
Scala
apache-2.0
1,084
package colossus package service import java.net.InetSocketAddress import akka.actor._ import akka.event.Logging import colossus.controller._ import colossus.core._ import colossus.metrics._ import scala.collection.mutable import scala.concurrent.duration._ import scala.concurrent.{Future, Promise} import scala.lan...
sunstick/colossus
colossus/src/main/scala/colossus/service/ServiceClient.scala
Scala
apache-2.0
11,042
package scintuit.data.api import enumeratum.{Enum, EnumEntry} import scintuit.data.raw import scala.language.postfixOps /** * Module for categorization types */ object categorization { type CategorizationSource = raw.categorization.CategorizationSource val CategorizationSource = raw.categorization.Categorizat...
drbild/scintuit
data/src/main/scala/scintuit/data/api/categorization.scala
Scala
apache-2.0
12,771
/** * 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/FileMergerSuite.scala
Scala
apache-2.0
1,700
package codegen.messagetypes import codegen.functions._ import datamodel._ import dto.UnitSpec class ArrayFieldFreeFunctionSpec extends UnitSpec { "Array field free function" should "generate a free function for arrays with dynamic elements" in { val arrayFreeFunction = FunctionDefinition( name = "string...
gatkin/cDTO
src/test/scala/codegen/messagetypes/ArrayFieldFreeFunctionSpec.scala
Scala
mit
3,794
class Employee() { private var _name:String = "John Q. Public" var salary:Double = 0.0 def this(name:String, salary:Double) { this() _name = name this.salary = salary } def name:String = this._name } var e = new Employee("Fred", 1000) println(e.name) println(e.salary) e = new Employee() printl...
Gerhut/scala-for-the-impatient
Chapter5/10.scala
Scala
unlicense
348
/*********************************************************************** * 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-tools/src/main/scala/org/locationtech/geomesa/tools/Runner.scala
Scala
apache-2.0
5,589
object Problem { def main(args: Array[String]) { val start = System.currentTimeMillis println(scala.io.Source.fromFile("numbers.txt").mkString.split("\\n").map(BigInt(_)).sum.toString.take(10)) val stop = System.currentTimeMillis println("Time taken: " + (stop - start) + "ms") } }
Jiri-Kremser/euler
013/Problem.scala
Scala
gpl-2.0
301
/* __ __ *\ * / /____ ___ ____ ___ ___ _/ / lasius * * / __/ -_) _ `/ _ \/ _ \/ _ `/ / contributed by tegonal * * \__/\__/\_, /\___/_//_/\_,_/_/ http://tegonal.com/ * * ...
tegonal/lasius
app/domain/LoginStateAggregate.scala
Scala
gpl-3.0
3,405
package com.bee4bit.cb.datastore trait DatastorePartitionBase { def dataStoreUUID:String; }
bert4b/calcdist
cb-server/src/main/java/com/bee4bit/cb/datastore/DatastorePartitionBase.scala
Scala
mit
94
package edu.kit.ipe.adl.indesign.fastbuild import edu.kit.ipe.adl.indesign.core.harvest.HarvestedResource import edu.kit.ipe.adl.indesign.core.harvest.fs.HarvestedFile import java.io.File import edu.kit.ipe.adl.indesign.core.harvest.fs.HarvestedTextFile import edu.kit.ipe.adl.indesign.module.scala.ScalaSourceFile impo...
opendesignflow/indesign
indesign-fastbuild/src/main/scala/edu/kit/ipe/adl/indesign/fastbuild/FBProject.scala
Scala
gpl-3.0
2,732
package org.jetbrains.plugins.scala package lang package completion package filters.expression import com.intellij.psi.{PsiElement, _} import com.intellij.psi.filters.ElementFilter import org.jetbrains.annotations.NonNls import org.jetbrains.plugins.scala.lang.completion.ScalaCompletionUtil._ import org.jetbrains.plug...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/lang/completion/filters/expression/FinallyFilter.scala
Scala
apache-2.0
2,774
package scala.meta package internal.hosts.scalac package converters import org.scalameta.invariants._ import org.scalameta.unreachable import scala.language.implicitConversions import scala.{Seq => _} import scala.collection.immutable.Seq import scala.reflect.ClassTag import scala.tools.nsc.{Global => ScalaGlobal} imp...
beni55/scalameta
scalahost/src/main/scala/scala/meta/internal/hosts/scalac/converters/ToMattrs.scala
Scala
bsd-3-clause
8,491
/* * Copyright 2012 IL <iron9light AT gmali DOT com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
iron9light/ideacolorschemes-commons
src/test/scala/com/ideacolorschemes/commons/SandboxSuite.scala
Scala
apache-2.0
1,813
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/Product15.scala
Scala
apache-2.0
2,612
package com.lordjoe.java_bridge.sample import com.lordjoe.java_bridge.{Suit, Hand, Deal} /** * com.lordjoe.bridge.sample.BridgeRules * User: Steve * Date: 10/5/2015 */ trait HandSatisfies { def isSatisfied(x: Hand): Boolean } class AndSet(rules: List[HandSatisfies]) extends HandSatisfies { override def isS...
lordjoe/ScalaBridge
src/main/scala/com/lordjoe/java_bridge/sample/BridgeRules.scala
Scala
apache-2.0
8,269
package at.logic.gapt.formats.leancop import at.logic.gapt.expr._ import at.logic.gapt.expr.fol._ import at.logic.gapt.expr.hol._ import at.logic.gapt.proofs.expansion.{ ExpansionSequent, ExpansionTree, formulaToExpansionTree } import java.io.{ FileReader, Reader, StringReader } import at.logic.gapt.formats.InputFile...
gebner/gapt
core/src/main/scala/at/logic/gapt/formats/leancop/LeanCoPParser.scala
Scala
gpl-3.0
15,097
/* * 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...
monixio/monix
monix-execution/jvm/src/main/scala_3.0/monix/execution/atomic/Atomic.scala
Scala
apache-2.0
8,897
import scala.reflect.runtime.universe._ object Test extends dotty.runtime.LegacyApp { val tree = reify{@transient @volatile var x = 2}.tree println(tree.toString) }
yusuke2255/dotty
tests/disabled/macro/run/t5225_1.scala
Scala
bsd-3-clause
170
package mesosphere.marathon.api import java.io.{ IOException, InputStream, OutputStream } import java.net._ import javax.inject.Named import javax.net.ssl._ import javax.servlet._ import javax.servlet.http.{ HttpServletRequest, HttpServletResponse } import com.google.inject.Inject import mesosphere.chaos.http.HttpCon...
yp-engineering/marathon
src/main/scala/mesosphere/marathon/api/LeaderProxyFilter.scala
Scala
apache-2.0
11,738
package controllers import java.util import java.util.ArrayList import javax.inject._ import play.api.mvc._ import play.api.libs.concurrent.Execution.Implicits.defaultContext import play.api.i18n.Messages import main.{MetroCarsUtils, PassengerUtils, StartUtils} import models.{MetroCar, Passenger, Station} import play...
diegofruizs/sdm
app/controllers/HomeController.scala
Scala
mit
2,486
package sce.engine.protocol.fen import org.scalatest.Matchers import org.scalatest.FlatSpec class Position extends FlatSpec with Matchers { // Figurenstellung := Reihe "/" Reihe "/" Reihe "/" Reihe "/" Reihe "/" Reihe "/" Reihe "/" Reihe // Reihe := { Figur | Leerfelder }+ // Figur := "p" | "r" | "n" | "b" | "...
SimiPro/sce
src/test/scala/sce/engine/protocol/fen/Position.scala
Scala
mit
540
/* * Copyright 2014 Adam Rosenberger * * 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...
arosenberger/nalloc
sandbox/src/main/scala/org/nalloc/bitb/kcits/sandbox/memoryusage/MemoryRecorder.scala
Scala
apache-2.0
1,584
package io.citrine.lolo /** * Created by maxhutch on 11/28/16. */ class SlowTest
CitrineInformatics/lolo
src/test/scala/io/citrine/lolo/SlowTest.scala
Scala
apache-2.0
86
package com.digitalpetri.ethernetip.client.cip import scala.concurrent.duration.Duration case class CipConnection(o2tConnectionId: Int, t2oConnectionId: Int, serialNumber: Int, originatorVendorId: Int, originatorSeria...
digitalpetri/scala-ethernet-ip
enip-client/src/main/scala/com/digitalpetri/ethernetip/client/cip/CipConnection.scala
Scala
apache-2.0
379
package something import scala.annotation.StaticAnnotation class enhance extends StaticAnnotation object Test { @enhance class SomeClass { } val x = SomeClass.equals(SomeClass) } @enhance class SomeClas1s { } object Test1 { val y = SomeClas1s.equals(SomeClas1s) } object Test2 { /*start*/(Test.x, Test1.y)/...
katejim/intellij-scala
testdata/typeInference/bugs5/SCL9533.scala
Scala
apache-2.0
349
package src.main.scala.model import _root_.java.io.File import _root_.java.net.URLEncoder import scala.collection.mutable.ListBuffer import weka.core.converters.SerializedInstancesLoader import com.vividsolutions._ import com.vividsolutions.jts.operation.distance.DistanceOp import org.geoscript.geometry._ import ...
je-nunez/DataMining_NewYork_Traffic_Speed
src/main/scala/model/CurrentRealTimeTrafficSpeeds.scala
Scala
gpl-2.0
16,126
package controllers import java.time.{Instant, OffsetDateTime, ZoneOffset} import aws.dynamo.CancellationDynamo import controllers.Auth.AuthRequest import models.{CancellationAudit, CancellationStatus} import play.api.Configuration import play.api.mvc._ class CancellationController(dynamoContext: CancellationDynamo....
ovotech/comms-audit-log
app/controllers/CancellationController.scala
Scala
mit
1,978
package org.jetbrains.plugins.scala package codeInspection package unusedInspections import java.util.Collections import com.intellij.codeHighlighting.TextEditorHighlightingPass import com.intellij.codeInsight.FileModificationService import com.intellij.codeInsight.daemon.HighlightDisplayKey import com.intellij.codeI...
katejim/intellij-scala
src/org/jetbrains/plugins/scala/codeInspection/unusedInspections/ScalaUnusedSymbolPass.scala
Scala
apache-2.0
11,261
/** * This file is part of mycollab-web. * * mycollab-web 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. * * mycollab-web is d...
maduhu/mycollab
mycollab-web/src/main/scala/com/esofthead/mycollab/module/project/view/milestone/MilestoneUrlResolver.scala
Scala
agpl-3.0
4,088
/* * 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 ...
bwsw/sj-platform
core/sj-common/src/main/scala/com/bwsw/sj/common/dal/model/instance/ExecutionPlan.scala
Scala
apache-2.0
3,320
package com.ing.baker.runtime.serialization.protomappings import com.ing.baker.il import com.ing.baker.runtime.serialization.ProtoMap.{ctxFromProto, ctxToProto, versioned} import com.ing.baker.runtime.akka.actor.protobuf import com.ing.baker.runtime.serialization.ProtoMap import scala.util.Try class IngredientDescri...
ing-bank/baker
core/baker-interface/src/main/scala/com/ing/baker/runtime/serialization/protomappings/IngredientDescriptorMapping.scala
Scala
mit
978
package org.vitrivr.adampro.query.ast.internal import org.apache.spark.sql.DataFrame import org.apache.spark.sql.functions._ import org.vitrivr.adampro.config.AttributeNames import org.vitrivr.adampro.data.entity.Entity import org.vitrivr.adampro.data.entity.Entity._ import org.vitrivr.adampro.utils.exception.QueryNot...
dbisUnibas/ADAMpro
src/main/scala/org/vitrivr/adampro/query/ast/internal/IndexScanExpression.scala
Scala
mit
4,733
package latis.ops.agg import latis.dm.Dataset import latis.dm.Tuple /** * An aggregation that simply combines Datasets by reducing them to Tuples. * No attempt at joining is made. */ class CollectionAggregation extends Aggregation { def aggregate(ds1: Dataset, ds2: Dataset): Dataset = (ds1, ds2) match { //T...
dlindhol/LaTiS
src/main/scala/latis/ops/agg/CollectionAggregation.scala
Scala
epl-1.0
765
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.api.db import play.api.{ Configuration, Environment } /** * The generic database configuration. * * @param driver The driver * @param url The jdbc URL * @param username The username * @param password The password * @para...
Shenker93/playframework
framework/src/play-jdbc/src/main/scala/play/api/db/DatabaseConfig.scala
Scala
apache-2.0
1,087
package eu.timepit.crjdt.core import eu.timepit.crjdt.core.Cmd._ import eu.timepit.crjdt.core.Expr._ import eu.timepit.crjdt.core.Key.{DocK, HeadK, IdK, StrK} import eu.timepit.crjdt.core.Mutation.{AssignM, DeleteM, InsertM} import eu.timepit.crjdt.core.TypeTag.{ListT, MapT, RegT} import org.scalacheck.{Arbitrary, Cog...
fthomas/crjdt
modules/core/src/test/scala/eu/timepit/crjdt/core/arbitrary.scala
Scala
apache-2.0
3,941
package com.twitter.scalding.hraven.estimation import cascading.flow.FlowStep import com.twitter.hraven.JobDescFactory.RESOURCE_MANAGER_KEY import com.twitter.hraven.rest.client.HRavenRestClient import com.twitter.hraven.util.JSONUtil import com.twitter.hraven.{Flow, TaskDetails} import com.twitter.scalding.estimation...
twitter/scalding
scalding-hraven/src/test/scala/com/twitter/scalding/hraven/estimation/HRavenHistoryServiceTest.scala
Scala
apache-2.0
4,912
/** * Copyright (C) 2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl) * * 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/LIC...
rvanheest-DANS-KNAW/easy-license-creator
src/main/scala/nl/knaw/dans/easy/license/LicenseCreator.scala
Scala
apache-2.0
3,440
/** * Copyright (c) 2002-2014, OnPoint Digital, Inc. All rights reserved * * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS...
alexwestphal/timez
src/main/scala/timez/Now.scala
Scala
bsd-3-clause
937
/* * 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 ...
style95/openwhisk
common/scala/src/main/scala/org/apache/openwhisk/core/database/mongodb/MongoDBArtifactStore.scala
Scala
apache-2.0
26,118
package sbtikvm sealed case class AssemblyReference(name: String, path: Option[String] = None)
HevyLight/sbt-ikvm
src/main/scala/sbtikvm/AssemblyReference.scala
Scala
apache-2.0
96
import org.scalajs.dom.window import scala.scalajs.js package object autosteamgifts { lazy val ALongTimeAgo = new js.Date(0) def isInBackground: Boolean = (window.location.protocol == "chrome-extension:") }
erdavila/auto-steamgifts
src/main/scala/autosteamgifts/package.scala
Scala
mit
214
package scala.xml import scala.xml.transform._ import scala.collection.Seq import org.junit.Assert.assertSame import org.junit.experimental.theories.Theories import org.junit.experimental.theories.Theory import org.junit.experimental.theories.DataPoints import org.junit.runner.RunWith /** * This test verifies that af...
scala/scala-xml
jvm/src/test/scala/scala/xml/ReuseNodesTest.scala
Scala
apache-2.0
3,449
package org.apache.spark.org.trustedanalytics.sparktk import org.apache.spark.api.python.{ SerDeUtil => SparkSerDeUtil, PythonUtils => SparkPythonUtils } import org.apache.spark.util.{ BoundedPriorityQueue => SparkBoundedPriorityQueue } import org.apache.spark.util.collection.{ Utils => SparkCollectionUtils } import o...
shibanis1/spark-tk
core/src/main/scala/org/apache/spark/org/trustedanalytics/sparttk/SparkAliases.scala
Scala
apache-2.0
670
/* * Copyright (c) 2014-2020 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...
alexandru/monifu
monix-reactive/shared/src/test/scala/monix/reactive/internal/builders/EvalOnceObservableSuite.scala
Scala
apache-2.0
2,425
import java.io.{File, FileInputStream} import scavlink.connection.frame.DefaultMarshallerFactory import scavlink.log.LogFileReader object ReadLog extends App { val file = new File(args(0)) val reader = new LogFileReader(DefaultMarshallerFactory.apply, new FileInputStream(file)) reader.readLog() foreach println ...
nickolasrossi/scavlink
src/it/scala/ReadLog.scala
Scala
mit
322
package com.sksamuel.elastic4s.ziojson import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec class ZIOJsonParamSerializerTest extends AnyWordSpec with Matchers { case class Place(id: Int, name: String) "A derived HitReader instance" should { "be implicitly derived if a Jso...
sksamuel/elastic4s
elastic4s-json-zio/src/test/scala/com/sksamuel/elastic4s/ziojson/ZIOJsonParamSerializerTest.scala
Scala
apache-2.0
2,362
package com.twitter.finagle.mux.lease.exp import com.twitter.util._ import com.twitter.conversions.storage.intToStorageUnitableWholeNumber import org.junit.runner.RunWith import org.scalatest.concurrent.{Eventually, IntegrationPatience} import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import scala....
LithiumTD/finagle
finagle-mux/src/test/scala/com/twitter/finagle/mux/lease/exp/WindowedByteCounterTest.scala
Scala
apache-2.0
5,846
/* * 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 ...
michalsenkyr/spark
core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala
Scala
apache-2.0
30,080
package com.danielasfregola.twitter4s.http.clients.authentication.oauth.parameters import com.danielasfregola.twitter4s.entities.enums.AccessType.AccessType import com.danielasfregola.twitter4s.http.marshalling.Parameters private[twitter4s] final case class RequestTokenParameters(x_auth_access_type: Option[AccessType...
DanielaSfregola/twitter4s
src/main/scala/com/danielasfregola/twitter4s/http/clients/authentication/oauth/parameters/RequestTokenParameters.scala
Scala
apache-2.0
342
package ru.reajames import Jms._ import org.reactivestreams._ import scala.annotation.tailrec import scala.util.{Failure, Success, Try} import javax.jms.{MessageProducer, Session} import java.util.concurrent.atomic.AtomicBoolean import scala.concurrent.{ExecutionContext, Future} import java.util.concurrent.{Concurrent...
dobrynya/reajames
src/main/scala/ru/reajames/JmsSender.scala
Scala
apache-2.0
8,933
package is.hail.utils import scala.collection.mutable import scala.reflect.ClassTag object FastIndexedSeq { def empty[T](implicit tct: ClassTag[T]): IndexedSeq[T] = FastIndexedSeq() def apply[T](args: T*)(implicit tct: ClassTag[T]): IndexedSeq[T] = { args match { case args: mutable.WrappedArray[T] => a...
hail-is/hail
hail/src/main/scala/is/hail/utils/FastIndexedSeq.scala
Scala
mit
416
package muster package codec package play import ast._ import input._ import _root_.play.api.libs.json._ object PlayJsonInputCursor { private final class PlayJsonObjectNode(parent: JsObject) extends ObjectNode(null) { private[this] val fields: Map[String, JsValue] = parent.value.toMap def readField(fieldN...
json4s/muster
codecs/play-json/src/main/scala/muster/codec/play/JsValueInput.scala
Scala
mit
5,306
/* * Copyright (c) <2015-2016>, see CONTRIBUTORS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list...
amanjpro/languages-a-la-carte
oberon0/src/main/scala/errors/errorcodes.scala
Scala
bsd-3-clause
2,106